1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Xbae 4.60.4.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME='Xbae'
423PACKAGE_TARNAME='xbae'
424PACKAGE_VERSION='4.60.4'
425PACKAGE_STRING='Xbae 4.60.4'
426PACKAGE_BUGREPORT=''
427
428ac_unique_file="src/Matrix.c"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar XBAE_CURRENT XBAE_REVISION XBAE_AGE XBAE_MAJOR XBAE_MINOR XBAE_PICO man2html_cmd MAN2HTML LT_BUILD_MAN2HTML_TRUE LT_BUILD_MAN2HTML_FALSE 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 LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS Have_Libxp_TRUE Have_Libxp_FALSE LT_HAVELIBXP XPLIB LT_HAVE_XP link_motif include_motif MOTIF_CFLAGS MOTIF_LIBS ACLOCALDIR Aclocal_TRUE Aclocal_FALSE UseEditres_TRUE UseEditres_FALSE HaveXpm_TRUE HaveXpm_FALSE HaveWcl_TRUE HaveWcl_FALSE ac_have_ctags Have_Exctags_TRUE Have_Exctags_FALSE x_includes x_libraries AS DLLTOOL OBJDUMP THE_DATE LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures Xbae 4.60.4 to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980			  [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982			  [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008Program names:
1009  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013X features:
1014  --x-includes=DIR    X include files are in DIR
1015  --x-libraries=DIR   X library files are in DIR
1016
1017System types:
1018  --build=BUILD     configure for building on BUILD [guessed]
1019  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020_ACEOF
1021fi
1022
1023if test -n "$ac_init_help"; then
1024  case $ac_init_help in
1025     short | recursive ) echo "Configuration of Xbae 4.60.4:";;
1026   esac
1027  cat <<\_ACEOF
1028
1029Optional Features:
1030  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032  --enable-static[=PKGS]
1033                          build static libraries [default=no]
1034  --disable-dependency-tracking  speeds up one-time build
1035  --enable-dependency-tracking   do not reject slow dependency extractors
1036  --enable-shared[=PKGS]
1037                          build shared libraries [default=yes]
1038  --enable-fast-install[=PKGS]
1039                          optimize for fast installation [default=yes]
1040  --disable-libtool-lock  avoid locking (might break parallel builds)
1041  --enable-maintainer-mode  enable make rules and dependencies not useful
1042			  (and sometimes confusing) to the casual installer
1043  --enable-production     build a production version
1044  --enable-exceed     build a DLL for Exceed
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-gnu-ld           assume the C compiler uses GNU ld [default=no]
1050  --with-pic              try to use only PIC/non-PIC objects [default=use
1051                          both]
1052  --with-tags[=TAGS]
1053                          include additional configurations [automatic]
1054  --with-x                use the X Window System
1055  --with-motif-includes=DIR    Motif include files are in DIR
1056  --with-motif-libraries=DIR   Motif libraries are in DIR
1057  --with-editres,         enable support for EditRes
1058  --with-dmalloc=path   use dmalloc, see INSTALL(.html) for reference
1059
1060Some influential environment variables:
1061  CC          C compiler command
1062  CFLAGS      C compiler flags
1063  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064              nonstandard directory <lib dir>
1065  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066              headers in a nonstandard directory <include dir>
1067  CPP         C preprocessor
1068  CXX         C++ compiler command
1069  CXXFLAGS    C++ compiler flags
1070  CXXCPP      C++ preprocessor
1071  F77         Fortran 77 compiler command
1072  FFLAGS      Fortran 77 compiler flags
1073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081  # If there are subdirs, report their specific --help.
1082  ac_popdir=`pwd`
1083  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084    test -d $ac_dir || continue
1085    ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089  # A "../" for each directory in $ac_dir_suffix.
1090  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092  ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096  .)  # No --srcdir option.  We are building in place.
1097    ac_srcdir=.
1098    if test -z "$ac_top_builddir"; then
1099       ac_top_srcdir=.
1100    else
1101       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102    fi ;;
1103  [\\/]* | ?:[\\/]* )  # Absolute path.
1104    ac_srcdir=$srcdir$ac_dir_suffix;
1105    ac_top_srcdir=$srcdir ;;
1106  *) # Relative path.
1107    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
1110
1111# Do not use `cd foo && pwd` to compute absolute paths, because
1112# the directories may not exist.
1113case `pwd` in
1114.) ac_abs_builddir="$ac_dir";;
1115*)
1116  case "$ac_dir" in
1117  .) ac_abs_builddir=`pwd`;;
1118  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120  esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_top_builddir=${ac_top_builddir}.;;
1124*)
1125  case ${ac_top_builddir}. in
1126  .) ac_abs_top_builddir=$ac_abs_builddir;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_srcdir=$ac_srcdir;;
1133*)
1134  case $ac_srcdir in
1135  .) ac_abs_srcdir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138  esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_top_srcdir=$ac_top_srcdir;;
1142*)
1143  case $ac_top_srcdir in
1144  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147  esac;;
1148esac
1149
1150    cd $ac_dir
1151    # Check for guested configure; otherwise get Cygnus style configure.
1152    if test -f $ac_srcdir/configure.gnu; then
1153      echo
1154      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1155    elif test -f $ac_srcdir/configure; then
1156      echo
1157      $SHELL $ac_srcdir/configure  --help=recursive
1158    elif test -f $ac_srcdir/configure.ac ||
1159	   test -f $ac_srcdir/configure.in; then
1160      echo
1161      $ac_configure --help
1162    else
1163      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164    fi
1165    cd $ac_popdir
1166  done
1167fi
1168
1169test -n "$ac_init_help" && exit 0
1170if $ac_init_version; then
1171  cat <<\_ACEOF
1172Xbae configure 4.60.4
1173generated by GNU Autoconf 2.59
1174
1175Copyright (C) 2003 Free Software Foundation, Inc.
1176This configure script is free software; the Free Software Foundation
1177gives unlimited permission to copy, distribute and modify it.
1178_ACEOF
1179  exit 0
1180fi
1181exec 5>config.log
1182cat >&5 <<_ACEOF
1183This file contains any messages produced by compilers while
1184running configure, to aid debugging if configure makes a mistake.
1185
1186It was created by Xbae $as_me 4.60.4, which was
1187generated by GNU Autoconf 2.59.  Invocation command line was
1188
1189  $ $0 $@
1190
1191_ACEOF
1192{
1193cat <<_ASUNAME
1194## --------- ##
1195## Platform. ##
1196## --------- ##
1197
1198hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1199uname -m = `(uname -m) 2>/dev/null || echo unknown`
1200uname -r = `(uname -r) 2>/dev/null || echo unknown`
1201uname -s = `(uname -s) 2>/dev/null || echo unknown`
1202uname -v = `(uname -v) 2>/dev/null || echo unknown`
1203
1204/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1205/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1206
1207/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1208/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1209/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1211/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1212/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1213/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1214
1215_ASUNAME
1216
1217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218for as_dir in $PATH
1219do
1220  IFS=$as_save_IFS
1221  test -z "$as_dir" && as_dir=.
1222  echo "PATH: $as_dir"
1223done
1224
1225} >&5
1226
1227cat >&5 <<_ACEOF
1228
1229
1230## ----------- ##
1231## Core tests. ##
1232## ----------- ##
1233
1234_ACEOF
1235
1236
1237# Keep a trace of the command line.
1238# Strip out --no-create and --no-recursion so they do not pile up.
1239# Strip out --silent because we don't want to record it for future runs.
1240# Also quote any args containing shell meta-characters.
1241# Make two passes to allow for proper duplicate-argument suppression.
1242ac_configure_args=
1243ac_configure_args0=
1244ac_configure_args1=
1245ac_sep=
1246ac_must_keep_next=false
1247for ac_pass in 1 2
1248do
1249  for ac_arg
1250  do
1251    case $ac_arg in
1252    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254    | -silent | --silent | --silen | --sile | --sil)
1255      continue ;;
1256    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1258    esac
1259    case $ac_pass in
1260    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1261    2)
1262      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1263      if test $ac_must_keep_next = true; then
1264	ac_must_keep_next=false # Got value, back to normal.
1265      else
1266	case $ac_arg in
1267	  *=* | --config-cache | -C | -disable-* | --disable-* \
1268	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1269	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1270	  | -with-* | --with-* | -without-* | --without-* | --x)
1271	    case "$ac_configure_args0 " in
1272	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1273	    esac
1274	    ;;
1275	  -* ) ac_must_keep_next=true ;;
1276	esac
1277      fi
1278      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1279      # Get rid of the leading space.
1280      ac_sep=" "
1281      ;;
1282    esac
1283  done
1284done
1285$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1287
1288# When interrupted or exit'd, cleanup temporary files, and complete
1289# config.log.  We remove comments because anyway the quotes in there
1290# would cause problems or look ugly.
1291# WARNING: Be sure not to use single quotes in there, as some shells,
1292# such as our DU 5.0 friend, will then `close' the trap.
1293trap 'exit_status=$?
1294  # Save into config.log some information that might help in debugging.
1295  {
1296    echo
1297
1298    cat <<\_ASBOX
1299## ---------------- ##
1300## Cache variables. ##
1301## ---------------- ##
1302_ASBOX
1303    echo
1304    # The following way of writing the cache mishandles newlines in values,
1305{
1306  (set) 2>&1 |
1307    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1308    *ac_space=\ *)
1309      sed -n \
1310	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1311	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312      ;;
1313    *)
1314      sed -n \
1315	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316      ;;
1317    esac;
1318}
1319    echo
1320
1321    cat <<\_ASBOX
1322## ----------------- ##
1323## Output variables. ##
1324## ----------------- ##
1325_ASBOX
1326    echo
1327    for ac_var in $ac_subst_vars
1328    do
1329      eval ac_val=$`echo $ac_var`
1330      echo "$ac_var='"'"'$ac_val'"'"'"
1331    done | sort
1332    echo
1333
1334    if test -n "$ac_subst_files"; then
1335      cat <<\_ASBOX
1336## ------------- ##
1337## Output files. ##
1338## ------------- ##
1339_ASBOX
1340      echo
1341      for ac_var in $ac_subst_files
1342      do
1343	eval ac_val=$`echo $ac_var`
1344	echo "$ac_var='"'"'$ac_val'"'"'"
1345      done | sort
1346      echo
1347    fi
1348
1349    if test -s confdefs.h; then
1350      cat <<\_ASBOX
1351## ----------- ##
1352## confdefs.h. ##
1353## ----------- ##
1354_ASBOX
1355      echo
1356      sed "/^$/d" confdefs.h | sort
1357      echo
1358    fi
1359    test "$ac_signal" != 0 &&
1360      echo "$as_me: caught signal $ac_signal"
1361    echo "$as_me: exit $exit_status"
1362  } >&5
1363  rm -f core *.core &&
1364  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1365    exit $exit_status
1366     ' 0
1367for ac_signal in 1 2 13 15; do
1368  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369done
1370ac_signal=0
1371
1372# confdefs.h avoids OS command line length limits that DEFS can exceed.
1373rm -rf conftest* confdefs.h
1374# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1375echo >confdefs.h
1376
1377# Predefined preprocessor variables.
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_NAME "$PACKAGE_NAME"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_VERSION "$PACKAGE_VERSION"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_STRING "$PACKAGE_STRING"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401_ACEOF
1402
1403
1404# Let the site file select an alternate cache file if it wants to.
1405# Prefer explicitly selected file to automatically selected ones.
1406if test -z "$CONFIG_SITE"; then
1407  if test "x$prefix" != xNONE; then
1408    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1409  else
1410    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1411  fi
1412fi
1413for ac_site_file in $CONFIG_SITE; do
1414  if test -r "$ac_site_file"; then
1415    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416echo "$as_me: loading site script $ac_site_file" >&6;}
1417    sed 's/^/| /' "$ac_site_file" >&5
1418    . "$ac_site_file"
1419  fi
1420done
1421
1422if test -r "$cache_file"; then
1423  # Some versions of bash will fail to source /dev/null (special
1424  # files actually), so we avoid doing that.
1425  if test -f "$cache_file"; then
1426    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427echo "$as_me: loading cache $cache_file" >&6;}
1428    case $cache_file in
1429      [\\/]* | ?:[\\/]* ) . $cache_file;;
1430      *)                      . ./$cache_file;;
1431    esac
1432  fi
1433else
1434  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435echo "$as_me: creating cache $cache_file" >&6;}
1436  >$cache_file
1437fi
1438
1439# Check that the precious variables saved in the cache have kept the same
1440# value.
1441ac_cache_corrupted=false
1442for ac_var in `(set) 2>&1 |
1443	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1444  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445  eval ac_new_set=\$ac_env_${ac_var}_set
1446  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1447  eval ac_new_val="\$ac_env_${ac_var}_value"
1448  case $ac_old_set,$ac_new_set in
1449    set,)
1450      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452      ac_cache_corrupted=: ;;
1453    ,set)
1454      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1456      ac_cache_corrupted=: ;;
1457    ,);;
1458    *)
1459      if test "x$ac_old_val" != "x$ac_new_val"; then
1460	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1461echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1462	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1463echo "$as_me:   former value:  $ac_old_val" >&2;}
1464	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1465echo "$as_me:   current value: $ac_new_val" >&2;}
1466	ac_cache_corrupted=:
1467      fi;;
1468  esac
1469  # Pass precious variables to config.status.
1470  if test "$ac_new_set" = set; then
1471    case $ac_new_val in
1472    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474    *) ac_arg=$ac_var=$ac_new_val ;;
1475    esac
1476    case " $ac_configure_args " in
1477      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1478      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479    esac
1480  fi
1481done
1482if $ac_cache_corrupted; then
1483  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487   { (exit 1); exit 1; }; }
1488fi
1489
1490ac_ext=c
1491ac_cpp='$CPP $CPPFLAGS'
1492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494ac_compiler_gnu=$ac_cv_c_compiler_gnu
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523ac_aux_dir=
1524for ac_dir in . $srcdir/.; do
1525  if test -f $ac_dir/install-sh; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/install-sh -c"
1528    break
1529  elif test -f $ac_dir/install.sh; then
1530    ac_aux_dir=$ac_dir
1531    ac_install_sh="$ac_aux_dir/install.sh -c"
1532    break
1533  elif test -f $ac_dir/shtool; then
1534    ac_aux_dir=$ac_dir
1535    ac_install_sh="$ac_aux_dir/shtool install -c"
1536    break
1537  fi
1538done
1539if test -z "$ac_aux_dir"; then
1540  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1541echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1542   { (exit 1); exit 1; }; }
1543fi
1544ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1545ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1546ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547
1548am__api_version="1.9"
1549# Find a good install program.  We prefer a C program (faster),
1550# so one script is as good as another.  But avoid the broken or
1551# incompatible versions:
1552# SysV /etc/install, /usr/sbin/install
1553# SunOS /usr/etc/install
1554# IRIX /sbin/install
1555# AIX /bin/install
1556# AmigaOS /C/install, which installs bootblocks on floppy discs
1557# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1558# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1559# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1560# OS/2's system install, which has a completely different semantic
1561# ./install, which can be erroneously created by make from ./install.sh.
1562echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1563echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1564if test -z "$INSTALL"; then
1565if test "${ac_cv_path_install+set}" = set; then
1566  echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571  IFS=$as_save_IFS
1572  test -z "$as_dir" && as_dir=.
1573  # Account for people who put trailing slashes in PATH elements.
1574case $as_dir/ in
1575  ./ | .// | /cC/* | \
1576  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1577  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1578  /usr/ucb/* ) ;;
1579  *)
1580    # OSF1 and SCO ODT 3.0 have their own names for install.
1581    # Don't use installbsd from OSF since it installs stuff as root
1582    # by default.
1583    for ac_prog in ginstall scoinst install; do
1584      for ac_exec_ext in '' $ac_executable_extensions; do
1585	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1586	  if test $ac_prog = install &&
1587	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588	    # AIX install.  It has an incompatible calling convention.
1589	    :
1590	  elif test $ac_prog = install &&
1591	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1592	    # program-specific install script used by HP pwplus--don't use.
1593	    :
1594	  else
1595	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1596	    break 3
1597	  fi
1598	fi
1599      done
1600    done
1601    ;;
1602esac
1603done
1604
1605
1606fi
1607  if test "${ac_cv_path_install+set}" = set; then
1608    INSTALL=$ac_cv_path_install
1609  else
1610    # As a last resort, use the slow shell script.  We don't cache a
1611    # path for INSTALL within a source directory, because that will
1612    # break other packages using the cache if that directory is
1613    # removed, or if the path is relative.
1614    INSTALL=$ac_install_sh
1615  fi
1616fi
1617echo "$as_me:$LINENO: result: $INSTALL" >&5
1618echo "${ECHO_T}$INSTALL" >&6
1619
1620# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1621# It thinks the first close brace ends the variable substitution.
1622test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1623
1624test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1625
1626test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1627
1628echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1629echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1630# Just in case
1631sleep 1
1632echo timestamp > conftest.file
1633# Do `set' in a subshell so we don't clobber the current shell's
1634# arguments.  Must try -L first in case configure is actually a
1635# symlink; some systems play weird games with the mod time of symlinks
1636# (eg FreeBSD returns the mod time of the symlink's containing
1637# directory).
1638if (
1639   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1640   if test "$*" = "X"; then
1641      # -L didn't work.
1642      set X `ls -t $srcdir/configure conftest.file`
1643   fi
1644   rm -f conftest.file
1645   if test "$*" != "X $srcdir/configure conftest.file" \
1646      && test "$*" != "X conftest.file $srcdir/configure"; then
1647
1648      # If neither matched, then we have a broken ls.  This can happen
1649      # if, for instance, CONFIG_SHELL is bash and it inherits a
1650      # broken ls alias from the environment.  This has actually
1651      # happened.  Such a system could not be considered "sane".
1652      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1653alias in your environment" >&5
1654echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1655alias in your environment" >&2;}
1656   { (exit 1); exit 1; }; }
1657   fi
1658
1659   test "$2" = conftest.file
1660   )
1661then
1662   # Ok.
1663   :
1664else
1665   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1666Check your system clock" >&5
1667echo "$as_me: error: newly created file is older than distributed files!
1668Check your system clock" >&2;}
1669   { (exit 1); exit 1; }; }
1670fi
1671echo "$as_me:$LINENO: result: yes" >&5
1672echo "${ECHO_T}yes" >&6
1673test "$program_prefix" != NONE &&
1674  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1675# Use a double $ so make ignores it.
1676test "$program_suffix" != NONE &&
1677  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1678# Double any \ or $.  echo might interpret backslashes.
1679# By default was `s,x,x', remove it if useless.
1680cat <<\_ACEOF >conftest.sed
1681s/[\\$]/&&/g;s/;s,x,x,$//
1682_ACEOF
1683program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1684rm conftest.sed
1685
1686# expand $ac_aux_dir to an absolute path
1687am_aux_dir=`cd $ac_aux_dir && pwd`
1688
1689test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1690# Use eval to expand $SHELL
1691if eval "$MISSING --run true"; then
1692  am_missing_run="$MISSING --run "
1693else
1694  am_missing_run=
1695  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1696echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1697fi
1698
1699if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1700  # We used to keeping the `.' as first argument, in order to
1701  # allow $(mkdir_p) to be used without argument.  As in
1702  #   $(mkdir_p) $(somedir)
1703  # where $(somedir) is conditionally defined.  However this is wrong
1704  # for two reasons:
1705  #  1. if the package is installed by a user who cannot write `.'
1706  #     make install will fail,
1707  #  2. the above comment should most certainly read
1708  #     $(mkdir_p) $(DESTDIR)$(somedir)
1709  #     so it does not work when $(somedir) is undefined and
1710  #     $(DESTDIR) is not.
1711  #  To support the latter case, we have to write
1712  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1713  #  so the `.' trick is pointless.
1714  mkdir_p='mkdir -p --'
1715else
1716  # On NextStep and OpenStep, the `mkdir' command does not
1717  # recognize any option.  It will interpret all options as
1718  # directories to create, and then abort because `.' already
1719  # exists.
1720  for d in ./-p ./--version;
1721  do
1722    test -d $d && rmdir $d
1723  done
1724  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1725  if test -f "$ac_aux_dir/mkinstalldirs"; then
1726    mkdir_p='$(mkinstalldirs)'
1727  else
1728    mkdir_p='$(install_sh) -d'
1729  fi
1730fi
1731
1732for ac_prog in gawk mawk nawk awk
1733do
1734  # Extract the first word of "$ac_prog", so it can be a program name with args.
1735set dummy $ac_prog; ac_word=$2
1736echo "$as_me:$LINENO: checking for $ac_word" >&5
1737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738if test "${ac_cv_prog_AWK+set}" = set; then
1739  echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741  if test -n "$AWK"; then
1742  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1743else
1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745for as_dir in $PATH
1746do
1747  IFS=$as_save_IFS
1748  test -z "$as_dir" && as_dir=.
1749  for ac_exec_ext in '' $ac_executable_extensions; do
1750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751    ac_cv_prog_AWK="$ac_prog"
1752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753    break 2
1754  fi
1755done
1756done
1757
1758fi
1759fi
1760AWK=$ac_cv_prog_AWK
1761if test -n "$AWK"; then
1762  echo "$as_me:$LINENO: result: $AWK" >&5
1763echo "${ECHO_T}$AWK" >&6
1764else
1765  echo "$as_me:$LINENO: result: no" >&5
1766echo "${ECHO_T}no" >&6
1767fi
1768
1769  test -n "$AWK" && break
1770done
1771
1772echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1773echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1774set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1775if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1776  echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778  cat >conftest.make <<\_ACEOF
1779all:
1780	@echo 'ac_maketemp="$(MAKE)"'
1781_ACEOF
1782# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1783eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1784if test -n "$ac_maketemp"; then
1785  eval ac_cv_prog_make_${ac_make}_set=yes
1786else
1787  eval ac_cv_prog_make_${ac_make}_set=no
1788fi
1789rm -f conftest.make
1790fi
1791if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1792  echo "$as_me:$LINENO: result: yes" >&5
1793echo "${ECHO_T}yes" >&6
1794  SET_MAKE=
1795else
1796  echo "$as_me:$LINENO: result: no" >&5
1797echo "${ECHO_T}no" >&6
1798  SET_MAKE="MAKE=${MAKE-make}"
1799fi
1800
1801rm -rf .tst 2>/dev/null
1802mkdir .tst 2>/dev/null
1803if test -d .tst; then
1804  am__leading_dot=.
1805else
1806  am__leading_dot=_
1807fi
1808rmdir .tst 2>/dev/null
1809
1810# test to see if srcdir already configured
1811if test "`cd $srcdir && pwd`" != "`pwd`" &&
1812   test -f $srcdir/config.status; then
1813  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1814echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1815   { (exit 1); exit 1; }; }
1816fi
1817
1818# test whether we have cygpath
1819if test -z "$CYGPATH_W"; then
1820  if (cygpath --version) >/dev/null 2>/dev/null; then
1821    CYGPATH_W='cygpath -w'
1822  else
1823    CYGPATH_W=echo
1824  fi
1825fi
1826
1827
1828# Define the identity of the package.
1829 PACKAGE='xbae'
1830 VERSION='4.60.4'
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE "$PACKAGE"
1835_ACEOF
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define VERSION "$VERSION"
1840_ACEOF
1841
1842# Some tools Automake needs.
1843
1844ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1845
1846
1847AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1848
1849
1850AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1851
1852
1853AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1854
1855
1856MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1857
1858install_sh=${install_sh-"$am_aux_dir/install-sh"}
1859
1860# Installed binaries are usually stripped using `strip' when the user
1861# run `make install-strip'.  However `strip' might not be the right
1862# tool to use in cross-compilation environments, therefore Automake
1863# will honor the `STRIP' environment variable to overrule this program.
1864if test "$cross_compiling" != no; then
1865  if test -n "$ac_tool_prefix"; then
1866  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1867set dummy ${ac_tool_prefix}strip; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_STRIP+set}" = set; then
1871  echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873  if test -n "$STRIP"; then
1874  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879  IFS=$as_save_IFS
1880  test -z "$as_dir" && as_dir=.
1881  for ac_exec_ext in '' $ac_executable_extensions; do
1882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885    break 2
1886  fi
1887done
1888done
1889
1890fi
1891fi
1892STRIP=$ac_cv_prog_STRIP
1893if test -n "$STRIP"; then
1894  echo "$as_me:$LINENO: result: $STRIP" >&5
1895echo "${ECHO_T}$STRIP" >&6
1896else
1897  echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901fi
1902if test -z "$ac_cv_prog_STRIP"; then
1903  ac_ct_STRIP=$STRIP
1904  # Extract the first word of "strip", so it can be a program name with args.
1905set dummy strip; ac_word=$2
1906echo "$as_me:$LINENO: checking for $ac_word" >&5
1907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1909  echo $ECHO_N "(cached) $ECHO_C" >&6
1910else
1911  if test -n "$ac_ct_STRIP"; then
1912  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1913else
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919  for ac_exec_ext in '' $ac_executable_extensions; do
1920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921    ac_cv_prog_ac_ct_STRIP="strip"
1922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923    break 2
1924  fi
1925done
1926done
1927
1928  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1929fi
1930fi
1931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1932if test -n "$ac_ct_STRIP"; then
1933  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1934echo "${ECHO_T}$ac_ct_STRIP" >&6
1935else
1936  echo "$as_me:$LINENO: result: no" >&5
1937echo "${ECHO_T}no" >&6
1938fi
1939
1940  STRIP=$ac_ct_STRIP
1941else
1942  STRIP="$ac_cv_prog_STRIP"
1943fi
1944
1945fi
1946INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1947
1948# We need awk for the "check" target.  The system "awk" is bad on
1949# some platforms.
1950# Always define AMTAR for backward compatibility.
1951
1952AMTAR=${AMTAR-"${am_missing_run}tar"}
1953
1954am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970cat >>confdefs.h <<\_ACEOF
1971#define MAJOR_VERSION 4
1972_ACEOF
1973
1974
1975cat >>confdefs.h <<\_ACEOF
1976#define MINOR_VERSION 60
1977_ACEOF
1978
1979
1980cat >>confdefs.h <<\_ACEOF
1981#define PICO_VERSION 4
1982_ACEOF
1983
1984
1985
1986
1987
1988
1989
1990
1991cat >>confdefs.h <<\_ACEOF
1992#define XBAE_CURRENT 5
1993_ACEOF
1994
1995
1996cat >>confdefs.h <<\_ACEOF
1997#define XBAE_REVISION 0
1998_ACEOF
1999
2000
2001cat >>confdefs.h <<\_ACEOF
2002#define XBAE_AGE 0
2003_ACEOF
2004
2005
2006
2007XBAE_CURRENT=5
2008
2009XBAE_REVISION=0
2010
2011XBAE_AGE=0
2012
2013XBAE_MAJOR=4
2014
2015XBAE_MINOR=60
2016
2017XBAE_PICO=4
2018
2019
2020
2021echo "$as_me:$LINENO: checking for suitable man2html" >&5
2022echo $ECHO_N "checking for suitable man2html... $ECHO_C" >&6
2023# Extract the first word of "man2html", so it can be a program name with args.
2024set dummy man2html; ac_word=$2
2025echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027if test "${ac_cv_path_man2html_cmd+set}" = set; then
2028  echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030  case $man2html_cmd in
2031  [\\/]* | ?:[\\/]*)
2032  ac_cv_path_man2html_cmd="$man2html_cmd" # Let the user override the test with a path.
2033  ;;
2034  *)
2035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038  IFS=$as_save_IFS
2039  test -z "$as_dir" && as_dir=.
2040  for ac_exec_ext in '' $ac_executable_extensions; do
2041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042    ac_cv_path_man2html_cmd="$as_dir/$ac_word$ac_exec_ext"
2043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044    break 2
2045  fi
2046done
2047done
2048
2049  ;;
2050esac
2051fi
2052man2html_cmd=$ac_cv_path_man2html_cmd
2053
2054if test -n "$man2html_cmd"; then
2055  echo "$as_me:$LINENO: result: $man2html_cmd" >&5
2056echo "${ECHO_T}$man2html_cmd" >&6
2057else
2058  echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061
2062if test -x "$man2html_cmd"
2063then
2064  if test -z "`$man2html_cmd </dev/null 2>&1 | grep \"LessTif's man2html\"`"
2065  then
2066          MAN2HTML="\$(top_builddir)/scripts/man2html"
2067     echo "$as_me:$LINENO: result: Use LessTif one" >&5
2068echo "${ECHO_T}Use LessTif one" >&6
2069  else
2070          MAN2HTML="$man2html_cmd"
2071     echo "$as_me:$LINENO: result: $MAN2HTML" >&5
2072echo "${ECHO_T}$MAN2HTML" >&6
2073  fi
2074else
2075    MAN2HTML="\$(top_builddir)/scripts/man2html"
2076fi
2077
2078
2079
2080if test "$MAN2HTML" = "\$(top_builddir)/scripts/man2html"; then
2081  LT_BUILD_MAN2HTML_TRUE=
2082  LT_BUILD_MAN2HTML_FALSE='#'
2083else
2084  LT_BUILD_MAN2HTML_TRUE='#'
2085  LT_BUILD_MAN2HTML_FALSE=
2086fi
2087
2088
2089
2090          ac_config_headers="$ac_config_headers include/XbaeConfig.h"
2091
2092
2093if test x$USER = xrwscott
2094then
2095    if test "$prefix" = "NONE"
2096    then
2097	    prefix=/opt/lesstif
2098    fi
2099fi
2100
2101# Check whether --enable-static or --disable-static was given.
2102if test "${enable_static+set}" = set; then
2103  enableval="$enable_static"
2104  p=${PACKAGE-default}
2105    case $enableval in
2106    yes) enable_static=yes ;;
2107    no) enable_static=no ;;
2108    *)
2109     enable_static=no
2110      # Look at the argument we got.  We use all the common list separators.
2111      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2112      for pkg in $enableval; do
2113	IFS="$lt_save_ifs"
2114	if test "X$pkg" = "X$p"; then
2115	  enable_static=yes
2116	fi
2117      done
2118      IFS="$lt_save_ifs"
2119      ;;
2120    esac
2121else
2122  enable_static=no
2123fi;
2124
2125
2126
2127ac_ext=c
2128ac_cpp='$CPP $CPPFLAGS'
2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132if test -n "$ac_tool_prefix"; then
2133  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2134set dummy ${ac_tool_prefix}gcc; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_CC+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  if test -n "$CC"; then
2141  ac_cv_prog_CC="$CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  for ac_exec_ext in '' $ac_executable_extensions; do
2149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152    break 2
2153  fi
2154done
2155done
2156
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
2161  echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6
2163else
2164  echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168fi
2169if test -z "$ac_cv_prog_CC"; then
2170  ac_ct_CC=$CC
2171  # Extract the first word of "gcc", so it can be a program name with args.
2172set dummy gcc; ac_word=$2
2173echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176  echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178  if test -n "$ac_ct_CC"; then
2179  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180else
2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184  IFS=$as_save_IFS
2185  test -z "$as_dir" && as_dir=.
2186  for ac_exec_ext in '' $ac_executable_extensions; do
2187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188    ac_cv_prog_ac_ct_CC="gcc"
2189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190    break 2
2191  fi
2192done
2193done
2194
2195fi
2196fi
2197ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198if test -n "$ac_ct_CC"; then
2199  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200echo "${ECHO_T}$ac_ct_CC" >&6
2201else
2202  echo "$as_me:$LINENO: result: no" >&5
2203echo "${ECHO_T}no" >&6
2204fi
2205
2206  CC=$ac_ct_CC
2207else
2208  CC="$ac_cv_prog_CC"
2209fi
2210
2211if test -z "$CC"; then
2212  if test -n "$ac_tool_prefix"; then
2213  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2214set dummy ${ac_tool_prefix}cc; ac_word=$2
2215echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217if test "${ac_cv_prog_CC+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$CC"; then
2221  ac_cv_prog_CC="$CC" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228  for ac_exec_ext in '' $ac_executable_extensions; do
2229  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230    ac_cv_prog_CC="${ac_tool_prefix}cc"
2231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232    break 2
2233  fi
2234done
2235done
2236
2237fi
2238fi
2239CC=$ac_cv_prog_CC
2240if test -n "$CC"; then
2241  echo "$as_me:$LINENO: result: $CC" >&5
2242echo "${ECHO_T}$CC" >&6
2243else
2244  echo "$as_me:$LINENO: result: no" >&5
2245echo "${ECHO_T}no" >&6
2246fi
2247
2248fi
2249if test -z "$ac_cv_prog_CC"; then
2250  ac_ct_CC=$CC
2251  # Extract the first word of "cc", so it can be a program name with args.
2252set dummy cc; ac_word=$2
2253echo "$as_me:$LINENO: checking for $ac_word" >&5
2254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256  echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258  if test -n "$ac_ct_CC"; then
2259  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260else
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264  IFS=$as_save_IFS
2265  test -z "$as_dir" && as_dir=.
2266  for ac_exec_ext in '' $ac_executable_extensions; do
2267  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268    ac_cv_prog_ac_ct_CC="cc"
2269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270    break 2
2271  fi
2272done
2273done
2274
2275fi
2276fi
2277ac_ct_CC=$ac_cv_prog_ac_ct_CC
2278if test -n "$ac_ct_CC"; then
2279  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2280echo "${ECHO_T}$ac_ct_CC" >&6
2281else
2282  echo "$as_me:$LINENO: result: no" >&5
2283echo "${ECHO_T}no" >&6
2284fi
2285
2286  CC=$ac_ct_CC
2287else
2288  CC="$ac_cv_prog_CC"
2289fi
2290
2291fi
2292if test -z "$CC"; then
2293  # Extract the first word of "cc", so it can be a program name with args.
2294set dummy cc; ac_word=$2
2295echo "$as_me:$LINENO: checking for $ac_word" >&5
2296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297if test "${ac_cv_prog_CC+set}" = set; then
2298  echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300  if test -n "$CC"; then
2301  ac_cv_prog_CC="$CC" # Let the user override the test.
2302else
2303  ac_prog_rejected=no
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307  IFS=$as_save_IFS
2308  test -z "$as_dir" && as_dir=.
2309  for ac_exec_ext in '' $ac_executable_extensions; do
2310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2312       ac_prog_rejected=yes
2313       continue
2314     fi
2315    ac_cv_prog_CC="cc"
2316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317    break 2
2318  fi
2319done
2320done
2321
2322if test $ac_prog_rejected = yes; then
2323  # We found a bogon in the path, so make sure we never use it.
2324  set dummy $ac_cv_prog_CC
2325  shift
2326  if test $# != 0; then
2327    # We chose a different compiler from the bogus one.
2328    # However, it has the same basename, so the bogon will be chosen
2329    # first if we set CC to just the basename; use the full file name.
2330    shift
2331    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2332  fi
2333fi
2334fi
2335fi
2336CC=$ac_cv_prog_CC
2337if test -n "$CC"; then
2338  echo "$as_me:$LINENO: result: $CC" >&5
2339echo "${ECHO_T}$CC" >&6
2340else
2341  echo "$as_me:$LINENO: result: no" >&5
2342echo "${ECHO_T}no" >&6
2343fi
2344
2345fi
2346if test -z "$CC"; then
2347  if test -n "$ac_tool_prefix"; then
2348  for ac_prog in cl
2349  do
2350    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2352echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354if test "${ac_cv_prog_CC+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  if test -n "$CC"; then
2358  ac_cv_prog_CC="$CC" # Let the user override the test.
2359else
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363  IFS=$as_save_IFS
2364  test -z "$as_dir" && as_dir=.
2365  for ac_exec_ext in '' $ac_executable_extensions; do
2366  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369    break 2
2370  fi
2371done
2372done
2373
2374fi
2375fi
2376CC=$ac_cv_prog_CC
2377if test -n "$CC"; then
2378  echo "$as_me:$LINENO: result: $CC" >&5
2379echo "${ECHO_T}$CC" >&6
2380else
2381  echo "$as_me:$LINENO: result: no" >&5
2382echo "${ECHO_T}no" >&6
2383fi
2384
2385    test -n "$CC" && break
2386  done
2387fi
2388if test -z "$CC"; then
2389  ac_ct_CC=$CC
2390  for ac_prog in cl
2391do
2392  # Extract the first word of "$ac_prog", so it can be a program name with args.
2393set dummy $ac_prog; ac_word=$2
2394echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  if test -n "$ac_ct_CC"; then
2400  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407  for ac_exec_ext in '' $ac_executable_extensions; do
2408  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409    ac_cv_prog_ac_ct_CC="$ac_prog"
2410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411    break 2
2412  fi
2413done
2414done
2415
2416fi
2417fi
2418ac_ct_CC=$ac_cv_prog_ac_ct_CC
2419if test -n "$ac_ct_CC"; then
2420  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2421echo "${ECHO_T}$ac_ct_CC" >&6
2422else
2423  echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6
2425fi
2426
2427  test -n "$ac_ct_CC" && break
2428done
2429
2430  CC=$ac_ct_CC
2431fi
2432
2433fi
2434
2435
2436test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2437See \`config.log' for more details." >&5
2438echo "$as_me: error: no acceptable C compiler found in \$PATH
2439See \`config.log' for more details." >&2;}
2440   { (exit 1); exit 1; }; }
2441
2442# Provide some information about the compiler.
2443echo "$as_me:$LINENO:" \
2444     "checking for C compiler version" >&5
2445ac_compiler=`set X $ac_compile; echo $2`
2446{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2447  (eval $ac_compiler --version </dev/null >&5) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }
2451{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2452  (eval $ac_compiler -v </dev/null >&5) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }
2456{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2457  (eval $ac_compiler -V </dev/null >&5) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }
2461
2462cat >conftest.$ac_ext <<_ACEOF
2463/* confdefs.h.  */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
2467/* end confdefs.h.  */
2468
2469int
2470main ()
2471{
2472
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477ac_clean_files_save=$ac_clean_files
2478ac_clean_files="$ac_clean_files a.out a.exe b.out"
2479# Try to create an executable without -o first, disregard a.out.
2480# It will help us diagnose broken compilers, and finding out an intuition
2481# of exeext.
2482echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2483echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2484ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2486  (eval $ac_link_default) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; then
2490  # Find the output, starting from the most likely.  This scheme is
2491# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2492# resort.
2493
2494# Be careful to initialize this variable, since it used to be cached.
2495# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2496ac_cv_exeext=
2497# b.out is created by i960 compilers.
2498for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2499do
2500  test -f "$ac_file" || continue
2501  case $ac_file in
2502    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2503	;;
2504    conftest.$ac_ext )
2505	# This is the source file.
2506	;;
2507    [ab].out )
2508	# We found the default executable, but exeext='' is most
2509	# certainly right.
2510	break;;
2511    *.* )
2512	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513	# FIXME: I believe we export ac_cv_exeext for Libtool,
2514	# but it would be cool to find out if it's true.  Does anybody
2515	# maintain Libtool? --akim.
2516	export ac_cv_exeext
2517	break;;
2518    * )
2519	break;;
2520  esac
2521done
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C compiler cannot create executables
2529See \`config.log' for more details." >&2;}
2530   { (exit 77); exit 77; }; }
2531fi
2532
2533ac_exeext=$ac_cv_exeext
2534echo "$as_me:$LINENO: result: $ac_file" >&5
2535echo "${ECHO_T}$ac_file" >&6
2536
2537# Check the compiler produces executables we can run.  If not, either
2538# the compiler is broken, or we cross compile.
2539echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2540echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2541# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542# If not cross compiling, check that we can run a simple program.
2543if test "$cross_compiling" != yes; then
2544  if { ac_try='./$ac_file'
2545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546  (eval $ac_try) 2>&5
2547  ac_status=$?
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }; }; then
2550    cross_compiling=no
2551  else
2552    if test "$cross_compiling" = maybe; then
2553	cross_compiling=yes
2554    else
2555	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556If you meant to cross compile, use \`--host'.
2557See \`config.log' for more details." >&5
2558echo "$as_me: error: cannot run C compiled programs.
2559If you meant to cross compile, use \`--host'.
2560See \`config.log' for more details." >&2;}
2561   { (exit 1); exit 1; }; }
2562    fi
2563  fi
2564fi
2565echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567
2568rm -f a.out a.exe conftest$ac_cv_exeext b.out
2569ac_clean_files=$ac_clean_files_save
2570# Check the compiler produces executables we can run.  If not, either
2571# the compiler is broken, or we cross compile.
2572echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2574echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575echo "${ECHO_T}$cross_compiling" >&6
2576
2577echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580  (eval $ac_link) 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }; then
2584  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2585# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2586# work properly (i.e., refer to `conftest.exe'), while it won't with
2587# `rm'.
2588for ac_file in conftest.exe conftest conftest.*; do
2589  test -f "$ac_file" || continue
2590  case $ac_file in
2591    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2592    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593	  export ac_cv_exeext
2594	  break;;
2595    * ) break;;
2596  esac
2597done
2598else
2599  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2602See \`config.log' for more details." >&2;}
2603   { (exit 1); exit 1; }; }
2604fi
2605
2606rm -f conftest$ac_cv_exeext
2607echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2608echo "${ECHO_T}$ac_cv_exeext" >&6
2609
2610rm -f conftest.$ac_ext
2611EXEEXT=$ac_cv_exeext
2612ac_exeext=$EXEEXT
2613echo "$as_me:$LINENO: checking for suffix of object files" >&5
2614echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2615if test "${ac_cv_objext+set}" = set; then
2616  echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618  cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h.  */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h.  */
2624
2625int
2626main ()
2627{
2628
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633rm -f conftest.o conftest.obj
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635  (eval $ac_compile) 2>&5
2636  ac_status=$?
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); }; then
2639  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2640  case $ac_file in
2641    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2642    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2643       break;;
2644  esac
2645done
2646else
2647  echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2651See \`config.log' for more details." >&5
2652echo "$as_me: error: cannot compute suffix of object files: cannot compile
2653See \`config.log' for more details." >&2;}
2654   { (exit 1); exit 1; }; }
2655fi
2656
2657rm -f conftest.$ac_cv_objext conftest.$ac_ext
2658fi
2659echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2660echo "${ECHO_T}$ac_cv_objext" >&6
2661OBJEXT=$ac_cv_objext
2662ac_objext=$OBJEXT
2663echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2664echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2665if test "${ac_cv_c_compiler_gnu+set}" = set; then
2666  echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674
2675int
2676main ()
2677{
2678#ifndef __GNUC__
2679       choke me
2680#endif
2681
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695	 { ac_try='test -z "$ac_c_werror_flag"
2696			 || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702	 { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  ac_compiler_gnu=yes
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713ac_compiler_gnu=no
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716ac_cv_c_compiler_gnu=$ac_compiler_gnu
2717
2718fi
2719echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2720echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2721GCC=`test $ac_compiler_gnu = yes && echo yes`
2722ac_test_CFLAGS=${CFLAGS+set}
2723ac_save_CFLAGS=$CFLAGS
2724CFLAGS="-g"
2725echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2726echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2727if test "${ac_cv_prog_cc_g+set}" = set; then
2728  echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730  cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h.  */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h.  */
2736
2737int
2738main ()
2739{
2740
2741  ;
2742  return 0;
2743}
2744_ACEOF
2745rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747  (eval $ac_compile) 2>conftest.er1
2748  ac_status=$?
2749  grep -v '^ *+' conftest.er1 >conftest.err
2750  rm -f conftest.er1
2751  cat conftest.err >&5
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); } &&
2754	 { ac_try='test -z "$ac_c_werror_flag"
2755			 || test ! -s conftest.err'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; } &&
2761	 { ac_try='test -s conftest.$ac_objext'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; }; then
2767  ac_cv_prog_cc_g=yes
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772ac_cv_prog_cc_g=no
2773fi
2774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775fi
2776echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2777echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2778if test "$ac_test_CFLAGS" = set; then
2779  CFLAGS=$ac_save_CFLAGS
2780elif test $ac_cv_prog_cc_g = yes; then
2781  if test "$GCC" = yes; then
2782    CFLAGS="-g -O2"
2783  else
2784    CFLAGS="-g"
2785  fi
2786else
2787  if test "$GCC" = yes; then
2788    CFLAGS="-O2"
2789  else
2790    CFLAGS=
2791  fi
2792fi
2793echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2794echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2795if test "${ac_cv_prog_cc_stdc+set}" = set; then
2796  echo $ECHO_N "(cached) $ECHO_C" >&6
2797else
2798  ac_cv_prog_cc_stdc=no
2799ac_save_CC=$CC
2800cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806#include <stdarg.h>
2807#include <stdio.h>
2808#include <sys/types.h>
2809#include <sys/stat.h>
2810/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2811struct buf { int x; };
2812FILE * (*rcsopen) (struct buf *, struct stat *, int);
2813static char *e (p, i)
2814     char **p;
2815     int i;
2816{
2817  return p[i];
2818}
2819static char *f (char * (*g) (char **, int), char **p, ...)
2820{
2821  char *s;
2822  va_list v;
2823  va_start (v,p);
2824  s = g (p, va_arg (v,int));
2825  va_end (v);
2826  return s;
2827}
2828
2829/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2830   function prototypes and stuff, but not '\xHH' hex character constants.
2831   These don't provoke an error unfortunately, instead are silently treated
2832   as 'x'.  The following induces an error, until -std1 is added to get
2833   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2834   array size at least.  It's necessary to write '\x00'==0 to get something
2835   that's true only with -std1.  */
2836int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2837
2838int test (int i, double x);
2839struct s1 {int (*f) (int a);};
2840struct s2 {int (*f) (double a);};
2841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2842int argc;
2843char **argv;
2844int
2845main ()
2846{
2847return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2848  ;
2849  return 0;
2850}
2851_ACEOF
2852# Don't try gcc -ansi; that turns off useful extensions and
2853# breaks some systems' header files.
2854# AIX			-qlanglvl=ansi
2855# Ultrix and OSF/1	-std1
2856# HP-UX 10.20 and later	-Ae
2857# HP-UX older versions	-Aa -D_HPUX_SOURCE
2858# SVR4			-Xc -D__EXTENSIONS__
2859for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2860do
2861  CC="$ac_save_CC $ac_arg"
2862  rm -f conftest.$ac_objext
2863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864  (eval $ac_compile) 2>conftest.er1
2865  ac_status=$?
2866  grep -v '^ *+' conftest.er1 >conftest.err
2867  rm -f conftest.er1
2868  cat conftest.err >&5
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); } &&
2871	 { ac_try='test -z "$ac_c_werror_flag"
2872			 || test ! -s conftest.err'
2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874  (eval $ac_try) 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; } &&
2878	 { ac_try='test -s conftest.$ac_objext'
2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880  (eval $ac_try) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }; }; then
2884  ac_cv_prog_cc_stdc=$ac_arg
2885break
2886else
2887  echo "$as_me: failed program was:" >&5
2888sed 's/^/| /' conftest.$ac_ext >&5
2889
2890fi
2891rm -f conftest.err conftest.$ac_objext
2892done
2893rm -f conftest.$ac_ext conftest.$ac_objext
2894CC=$ac_save_CC
2895
2896fi
2897
2898case "x$ac_cv_prog_cc_stdc" in
2899  x|xno)
2900    echo "$as_me:$LINENO: result: none needed" >&5
2901echo "${ECHO_T}none needed" >&6 ;;
2902  *)
2903    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2904echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2905    CC="$CC $ac_cv_prog_cc_stdc" ;;
2906esac
2907
2908# Some people use a C++ compiler to compile C.  Since we use `exit',
2909# in C++ we need to declare it.  In case someone uses the same compiler
2910# for both compiling C and C++ we need to have the C++ compiler decide
2911# the declaration of exit, since it's the most demanding environment.
2912cat >conftest.$ac_ext <<_ACEOF
2913#ifndef __cplusplus
2914  choke me
2915#endif
2916_ACEOF
2917rm -f conftest.$ac_objext
2918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919  (eval $ac_compile) 2>conftest.er1
2920  ac_status=$?
2921  grep -v '^ *+' conftest.er1 >conftest.err
2922  rm -f conftest.er1
2923  cat conftest.err >&5
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); } &&
2926	 { ac_try='test -z "$ac_c_werror_flag"
2927			 || test ! -s conftest.err'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; } &&
2933	 { ac_try='test -s conftest.$ac_objext'
2934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935  (eval $ac_try) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; }; then
2939  for ac_declaration in \
2940   '' \
2941   'extern "C" void std::exit (int) throw (); using std::exit;' \
2942   'extern "C" void std::exit (int); using std::exit;' \
2943   'extern "C" void exit (int) throw ();' \
2944   'extern "C" void exit (int);' \
2945   'void exit (int);'
2946do
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953$ac_declaration
2954#include <stdlib.h>
2955int
2956main ()
2957{
2958exit (42);
2959  ;
2960  return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext
2964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965  (eval $ac_compile) 2>conftest.er1
2966  ac_status=$?
2967  grep -v '^ *+' conftest.er1 >conftest.err
2968  rm -f conftest.er1
2969  cat conftest.err >&5
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); } &&
2972	 { ac_try='test -z "$ac_c_werror_flag"
2973			 || test ! -s conftest.err'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; } &&
2979	 { ac_try='test -s conftest.$ac_objext'
2980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; }; then
2985  :
2986else
2987  echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990continue
2991fi
2992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2993  cat >conftest.$ac_ext <<_ACEOF
2994/* confdefs.h.  */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h.  */
2999$ac_declaration
3000int
3001main ()
3002{
3003exit (42);
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008rm -f conftest.$ac_objext
3009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010  (eval $ac_compile) 2>conftest.er1
3011  ac_status=$?
3012  grep -v '^ *+' conftest.er1 >conftest.err
3013  rm -f conftest.er1
3014  cat conftest.err >&5
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); } &&
3017	 { ac_try='test -z "$ac_c_werror_flag"
3018			 || test ! -s conftest.err'
3019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020  (eval $ac_try) 2>&5
3021  ac_status=$?
3022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023  (exit $ac_status); }; } &&
3024	 { ac_try='test -s conftest.$ac_objext'
3025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026  (eval $ac_try) 2>&5
3027  ac_status=$?
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); }; }; then
3030  break
3031else
3032  echo "$as_me: failed program was:" >&5
3033sed 's/^/| /' conftest.$ac_ext >&5
3034
3035fi
3036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3037done
3038rm -f conftest*
3039if test -n "$ac_declaration"; then
3040  echo '#ifdef __cplusplus' >>confdefs.h
3041  echo $ac_declaration      >>confdefs.h
3042  echo '#endif'             >>confdefs.h
3043fi
3044
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049fi
3050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051ac_ext=c
3052ac_cpp='$CPP $CPPFLAGS'
3053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056DEPDIR="${am__leading_dot}deps"
3057
3058          ac_config_commands="$ac_config_commands depfiles"
3059
3060
3061am_make=${MAKE-make}
3062cat > confinc << 'END'
3063am__doit:
3064	@echo done
3065.PHONY: am__doit
3066END
3067# If we don't find an include directive, just comment out the code.
3068echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3069echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3070am__include="#"
3071am__quote=
3072_am_result=none
3073# First try GNU make style include.
3074echo "include confinc" > confmf
3075# We grep out `Entering directory' and `Leaving directory'
3076# messages which can occur if `w' ends up in MAKEFLAGS.
3077# In particular we don't look at `^make:' because GNU make might
3078# be invoked under some other name (usually "gmake"), in which
3079# case it prints its new name instead of `make'.
3080if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3081   am__include=include
3082   am__quote=
3083   _am_result=GNU
3084fi
3085# Now try BSD make style include.
3086if test "$am__include" = "#"; then
3087   echo '.include "confinc"' > confmf
3088   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3089      am__include=.include
3090      am__quote="\""
3091      _am_result=BSD
3092   fi
3093fi
3094
3095
3096echo "$as_me:$LINENO: result: $_am_result" >&5
3097echo "${ECHO_T}$_am_result" >&6
3098rm -f confinc confmf
3099
3100# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3101if test "${enable_dependency_tracking+set}" = set; then
3102  enableval="$enable_dependency_tracking"
3103
3104fi;
3105if test "x$enable_dependency_tracking" != xno; then
3106  am_depcomp="$ac_aux_dir/depcomp"
3107  AMDEPBACKSLASH='\'
3108fi
3109
3110
3111if test "x$enable_dependency_tracking" != xno; then
3112  AMDEP_TRUE=
3113  AMDEP_FALSE='#'
3114else
3115  AMDEP_TRUE='#'
3116  AMDEP_FALSE=
3117fi
3118
3119
3120
3121
3122depcc="$CC"   am_compiler_list=
3123
3124echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3125echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3126if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3127  echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3130  # We make a subdir and do the tests there.  Otherwise we can end up
3131  # making bogus files that we don't know about and never remove.  For
3132  # instance it was reported that on HP-UX the gcc test will end up
3133  # making a dummy file named `D' -- because `-MD' means `put the output
3134  # in D'.
3135  mkdir conftest.dir
3136  # Copy depcomp to subdir because otherwise we won't find it if we're
3137  # using a relative directory.
3138  cp "$am_depcomp" conftest.dir
3139  cd conftest.dir
3140  # We will build objects and dependencies in a subdirectory because
3141  # it helps to detect inapplicable dependency modes.  For instance
3142  # both Tru64's cc and ICC support -MD to output dependencies as a
3143  # side effect of compilation, but ICC will put the dependencies in
3144  # the current directory while Tru64 will put them in the object
3145  # directory.
3146  mkdir sub
3147
3148  am_cv_CC_dependencies_compiler_type=none
3149  if test "$am_compiler_list" = ""; then
3150     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3151  fi
3152  for depmode in $am_compiler_list; do
3153    # Setup a source with many dependencies, because some compilers
3154    # like to wrap large dependency lists on column 80 (with \), and
3155    # we should not choose a depcomp mode which is confused by this.
3156    #
3157    # We need to recreate these files for each test, as the compiler may
3158    # overwrite some of them when testing with obscure command lines.
3159    # This happens at least with the AIX C compiler.
3160    : > sub/conftest.c
3161    for i in 1 2 3 4 5 6; do
3162      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3163      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3164      # Solaris 8's {/usr,}/bin/sh.
3165      touch sub/conftst$i.h
3166    done
3167    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3168
3169    case $depmode in
3170    nosideeffect)
3171      # after this tag, mechanisms are not by side-effect, so they'll
3172      # only be used when explicitly requested
3173      if test "x$enable_dependency_tracking" = xyes; then
3174	continue
3175      else
3176	break
3177      fi
3178      ;;
3179    none) break ;;
3180    esac
3181    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3182    # mode.  It turns out that the SunPro C++ compiler does not properly
3183    # handle `-M -o', and we need to detect this.
3184    if depmode=$depmode \
3185       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3186       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3187       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3188         >/dev/null 2>conftest.err &&
3189       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3190       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3191       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3192      # icc doesn't choke on unknown options, it will just issue warnings
3193      # or remarks (even with -Werror).  So we grep stderr for any message
3194      # that says an option was ignored or not supported.
3195      # When given -MP, icc 7.0 and 7.1 complain thusly:
3196      #   icc: Command line warning: ignoring option '-M'; no argument required
3197      # The diagnosis changed in icc 8.0:
3198      #   icc: Command line remark: option '-MP' not supported
3199      if (grep 'ignoring option' conftest.err ||
3200          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3201        am_cv_CC_dependencies_compiler_type=$depmode
3202        break
3203      fi
3204    fi
3205  done
3206
3207  cd ..
3208  rm -rf conftest.dir
3209else
3210  am_cv_CC_dependencies_compiler_type=none
3211fi
3212
3213fi
3214echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3215echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3216CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3217
3218
3219
3220if
3221  test "x$enable_dependency_tracking" != xno \
3222  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3223  am__fastdepCC_TRUE=
3224  am__fastdepCC_FALSE='#'
3225else
3226  am__fastdepCC_TRUE='#'
3227  am__fastdepCC_FALSE=
3228fi
3229
3230
3231
3232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3238echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3239# On Suns, sometimes $CPP names a directory.
3240if test -n "$CPP" && test -d "$CPP"; then
3241  CPP=
3242fi
3243if test -z "$CPP"; then
3244  if test "${ac_cv_prog_CPP+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247      # Double quotes because CPP needs to be expanded
3248    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249    do
3250      ac_preproc_ok=false
3251for ac_c_preproc_warn_flag in '' yes
3252do
3253  # Use a header file that comes with gcc, so configuring glibc
3254  # with a fresh cross-compiler works.
3255  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3256  # <limits.h> exists even on freestanding compilers.
3257  # On the NeXT, cc -E runs the code through the compiler's parser,
3258  # not just through cpp. "Syntax error" is here to catch this case.
3259  cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h.  */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h.  */
3265#ifdef __STDC__
3266# include <limits.h>
3267#else
3268# include <assert.h>
3269#endif
3270		     Syntax error
3271_ACEOF
3272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274  ac_status=$?
3275  grep -v '^ *+' conftest.er1 >conftest.err
3276  rm -f conftest.er1
3277  cat conftest.err >&5
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); } >/dev/null; then
3280  if test -s conftest.err; then
3281    ac_cpp_err=$ac_c_preproc_warn_flag
3282    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3283  else
3284    ac_cpp_err=
3285  fi
3286else
3287  ac_cpp_err=yes
3288fi
3289if test -z "$ac_cpp_err"; then
3290  :
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295  # Broken: fails on valid input.
3296continue
3297fi
3298rm -f conftest.err conftest.$ac_ext
3299
3300  # OK, works on sane cases.  Now check whether non-existent headers
3301  # can be detected and how.
3302  cat >conftest.$ac_ext <<_ACEOF
3303/* confdefs.h.  */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h.  */
3308#include <ac_nonexistent.h>
3309_ACEOF
3310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3312  ac_status=$?
3313  grep -v '^ *+' conftest.er1 >conftest.err
3314  rm -f conftest.er1
3315  cat conftest.err >&5
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); } >/dev/null; then
3318  if test -s conftest.err; then
3319    ac_cpp_err=$ac_c_preproc_warn_flag
3320    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321  else
3322    ac_cpp_err=
3323  fi
3324else
3325  ac_cpp_err=yes
3326fi
3327if test -z "$ac_cpp_err"; then
3328  # Broken: success on invalid input.
3329continue
3330else
3331  echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334  # Passes both tests.
3335ac_preproc_ok=:
3336break
3337fi
3338rm -f conftest.err conftest.$ac_ext
3339
3340done
3341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342rm -f conftest.err conftest.$ac_ext
3343if $ac_preproc_ok; then
3344  break
3345fi
3346
3347    done
3348    ac_cv_prog_CPP=$CPP
3349
3350fi
3351  CPP=$ac_cv_prog_CPP
3352else
3353  ac_cv_prog_CPP=$CPP
3354fi
3355echo "$as_me:$LINENO: result: $CPP" >&5
3356echo "${ECHO_T}$CPP" >&6
3357ac_preproc_ok=false
3358for ac_c_preproc_warn_flag in '' yes
3359do
3360  # Use a header file that comes with gcc, so configuring glibc
3361  # with a fresh cross-compiler works.
3362  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363  # <limits.h> exists even on freestanding compilers.
3364  # On the NeXT, cc -E runs the code through the compiler's parser,
3365  # not just through cpp. "Syntax error" is here to catch this case.
3366  cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h.  */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h.  */
3372#ifdef __STDC__
3373# include <limits.h>
3374#else
3375# include <assert.h>
3376#endif
3377		     Syntax error
3378_ACEOF
3379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3380  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3381  ac_status=$?
3382  grep -v '^ *+' conftest.er1 >conftest.err
3383  rm -f conftest.er1
3384  cat conftest.err >&5
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); } >/dev/null; then
3387  if test -s conftest.err; then
3388    ac_cpp_err=$ac_c_preproc_warn_flag
3389    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3390  else
3391    ac_cpp_err=
3392  fi
3393else
3394  ac_cpp_err=yes
3395fi
3396if test -z "$ac_cpp_err"; then
3397  :
3398else
3399  echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
3402  # Broken: fails on valid input.
3403continue
3404fi
3405rm -f conftest.err conftest.$ac_ext
3406
3407  # OK, works on sane cases.  Now check whether non-existent headers
3408  # can be detected and how.
3409  cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h.  */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h.  */
3415#include <ac_nonexistent.h>
3416_ACEOF
3417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419  ac_status=$?
3420  grep -v '^ *+' conftest.er1 >conftest.err
3421  rm -f conftest.er1
3422  cat conftest.err >&5
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); } >/dev/null; then
3425  if test -s conftest.err; then
3426    ac_cpp_err=$ac_c_preproc_warn_flag
3427    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428  else
3429    ac_cpp_err=
3430  fi
3431else
3432  ac_cpp_err=yes
3433fi
3434if test -z "$ac_cpp_err"; then
3435  # Broken: success on invalid input.
3436continue
3437else
3438  echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441  # Passes both tests.
3442ac_preproc_ok=:
3443break
3444fi
3445rm -f conftest.err conftest.$ac_ext
3446
3447done
3448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3449rm -f conftest.err conftest.$ac_ext
3450if $ac_preproc_ok; then
3451  :
3452else
3453  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&5
3455echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&2;}
3457   { (exit 1); exit 1; }; }
3458fi
3459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467echo "$as_me:$LINENO: checking for egrep" >&5
3468echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3469if test "${ac_cv_prog_egrep+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3473    then ac_cv_prog_egrep='grep -E'
3474    else ac_cv_prog_egrep='egrep'
3475    fi
3476fi
3477echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3478echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3479 EGREP=$ac_cv_prog_egrep
3480
3481
3482
3483echo "$as_me:$LINENO: checking for AIX" >&5
3484echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3485cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491#ifdef _AIX
3492  yes
3493#endif
3494
3495_ACEOF
3496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497  $EGREP "yes" >/dev/null 2>&1; then
3498  echo "$as_me:$LINENO: result: yes" >&5
3499echo "${ECHO_T}yes" >&6
3500cat >>confdefs.h <<\_ACEOF
3501#define _ALL_SOURCE 1
3502_ACEOF
3503
3504else
3505  echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
3507fi
3508rm -f conftest*
3509
3510
3511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516if test -n "$ac_tool_prefix"; then
3517  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3518set dummy ${ac_tool_prefix}gcc; ac_word=$2
3519echo "$as_me:$LINENO: checking for $ac_word" >&5
3520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521if test "${ac_cv_prog_CC+set}" = set; then
3522  echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524  if test -n "$CC"; then
3525  ac_cv_prog_CC="$CC" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530  IFS=$as_save_IFS
3531  test -z "$as_dir" && as_dir=.
3532  for ac_exec_ext in '' $ac_executable_extensions; do
3533  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536    break 2
3537  fi
3538done
3539done
3540
3541fi
3542fi
3543CC=$ac_cv_prog_CC
3544if test -n "$CC"; then
3545  echo "$as_me:$LINENO: result: $CC" >&5
3546echo "${ECHO_T}$CC" >&6
3547else
3548  echo "$as_me:$LINENO: result: no" >&5
3549echo "${ECHO_T}no" >&6
3550fi
3551
3552fi
3553if test -z "$ac_cv_prog_CC"; then
3554  ac_ct_CC=$CC
3555  # Extract the first word of "gcc", so it can be a program name with args.
3556set dummy gcc; ac_word=$2
3557echo "$as_me:$LINENO: checking for $ac_word" >&5
3558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3560  echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562  if test -n "$ac_ct_CC"; then
3563  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564else
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568  IFS=$as_save_IFS
3569  test -z "$as_dir" && as_dir=.
3570  for ac_exec_ext in '' $ac_executable_extensions; do
3571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572    ac_cv_prog_ac_ct_CC="gcc"
3573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574    break 2
3575  fi
3576done
3577done
3578
3579fi
3580fi
3581ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582if test -n "$ac_ct_CC"; then
3583  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3584echo "${ECHO_T}$ac_ct_CC" >&6
3585else
3586  echo "$as_me:$LINENO: result: no" >&5
3587echo "${ECHO_T}no" >&6
3588fi
3589
3590  CC=$ac_ct_CC
3591else
3592  CC="$ac_cv_prog_CC"
3593fi
3594
3595if test -z "$CC"; then
3596  if test -n "$ac_tool_prefix"; then
3597  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3598set dummy ${ac_tool_prefix}cc; ac_word=$2
3599echo "$as_me:$LINENO: checking for $ac_word" >&5
3600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601if test "${ac_cv_prog_CC+set}" = set; then
3602  echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604  if test -n "$CC"; then
3605  ac_cv_prog_CC="$CC" # Let the user override the test.
3606else
3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610  IFS=$as_save_IFS
3611  test -z "$as_dir" && as_dir=.
3612  for ac_exec_ext in '' $ac_executable_extensions; do
3613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614    ac_cv_prog_CC="${ac_tool_prefix}cc"
3615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616    break 2
3617  fi
3618done
3619done
3620
3621fi
3622fi
3623CC=$ac_cv_prog_CC
3624if test -n "$CC"; then
3625  echo "$as_me:$LINENO: result: $CC" >&5
3626echo "${ECHO_T}$CC" >&6
3627else
3628  echo "$as_me:$LINENO: result: no" >&5
3629echo "${ECHO_T}no" >&6
3630fi
3631
3632fi
3633if test -z "$ac_cv_prog_CC"; then
3634  ac_ct_CC=$CC
3635  # Extract the first word of "cc", so it can be a program name with args.
3636set dummy cc; ac_word=$2
3637echo "$as_me:$LINENO: checking for $ac_word" >&5
3638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  if test -n "$ac_ct_CC"; then
3643  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  test -z "$as_dir" && as_dir=.
3650  for ac_exec_ext in '' $ac_executable_extensions; do
3651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652    ac_cv_prog_ac_ct_CC="cc"
3653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657done
3658
3659fi
3660fi
3661ac_ct_CC=$ac_cv_prog_ac_ct_CC
3662if test -n "$ac_ct_CC"; then
3663  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3664echo "${ECHO_T}$ac_ct_CC" >&6
3665else
3666  echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
3668fi
3669
3670  CC=$ac_ct_CC
3671else
3672  CC="$ac_cv_prog_CC"
3673fi
3674
3675fi
3676if test -z "$CC"; then
3677  # Extract the first word of "cc", so it can be a program name with args.
3678set dummy cc; ac_word=$2
3679echo "$as_me:$LINENO: checking for $ac_word" >&5
3680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681if test "${ac_cv_prog_CC+set}" = set; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  if test -n "$CC"; then
3685  ac_cv_prog_CC="$CC" # Let the user override the test.
3686else
3687  ac_prog_rejected=no
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693  for ac_exec_ext in '' $ac_executable_extensions; do
3694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3696       ac_prog_rejected=yes
3697       continue
3698     fi
3699    ac_cv_prog_CC="cc"
3700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701    break 2
3702  fi
3703done
3704done
3705
3706if test $ac_prog_rejected = yes; then
3707  # We found a bogon in the path, so make sure we never use it.
3708  set dummy $ac_cv_prog_CC
3709  shift
3710  if test $# != 0; then
3711    # We chose a different compiler from the bogus one.
3712    # However, it has the same basename, so the bogon will be chosen
3713    # first if we set CC to just the basename; use the full file name.
3714    shift
3715    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3716  fi
3717fi
3718fi
3719fi
3720CC=$ac_cv_prog_CC
3721if test -n "$CC"; then
3722  echo "$as_me:$LINENO: result: $CC" >&5
3723echo "${ECHO_T}$CC" >&6
3724else
3725  echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727fi
3728
3729fi
3730if test -z "$CC"; then
3731  if test -n "$ac_tool_prefix"; then
3732  for ac_prog in cl
3733  do
3734    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736echo "$as_me:$LINENO: checking for $ac_word" >&5
3737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738if test "${ac_cv_prog_CC+set}" = set; then
3739  echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741  if test -n "$CC"; then
3742  ac_cv_prog_CC="$CC" # Let the user override the test.
3743else
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747  IFS=$as_save_IFS
3748  test -z "$as_dir" && as_dir=.
3749  for ac_exec_ext in '' $ac_executable_extensions; do
3750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753    break 2
3754  fi
3755done
3756done
3757
3758fi
3759fi
3760CC=$ac_cv_prog_CC
3761if test -n "$CC"; then
3762  echo "$as_me:$LINENO: result: $CC" >&5
3763echo "${ECHO_T}$CC" >&6
3764else
3765  echo "$as_me:$LINENO: result: no" >&5
3766echo "${ECHO_T}no" >&6
3767fi
3768
3769    test -n "$CC" && break
3770  done
3771fi
3772if test -z "$CC"; then
3773  ac_ct_CC=$CC
3774  for ac_prog in cl
3775do
3776  # Extract the first word of "$ac_prog", so it can be a program name with args.
3777set dummy $ac_prog; ac_word=$2
3778echo "$as_me:$LINENO: checking for $ac_word" >&5
3779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3781  echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783  if test -n "$ac_ct_CC"; then
3784  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789  IFS=$as_save_IFS
3790  test -z "$as_dir" && as_dir=.
3791  for ac_exec_ext in '' $ac_executable_extensions; do
3792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793    ac_cv_prog_ac_ct_CC="$ac_prog"
3794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795    break 2
3796  fi
3797done
3798done
3799
3800fi
3801fi
3802ac_ct_CC=$ac_cv_prog_ac_ct_CC
3803if test -n "$ac_ct_CC"; then
3804  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3805echo "${ECHO_T}$ac_ct_CC" >&6
3806else
3807  echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
3809fi
3810
3811  test -n "$ac_ct_CC" && break
3812done
3813
3814  CC=$ac_ct_CC
3815fi
3816
3817fi
3818
3819
3820test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3821See \`config.log' for more details." >&5
3822echo "$as_me: error: no acceptable C compiler found in \$PATH
3823See \`config.log' for more details." >&2;}
3824   { (exit 1); exit 1; }; }
3825
3826# Provide some information about the compiler.
3827echo "$as_me:$LINENO:" \
3828     "checking for C compiler version" >&5
3829ac_compiler=`set X $ac_compile; echo $2`
3830{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3831  (eval $ac_compiler --version </dev/null >&5) 2>&5
3832  ac_status=$?
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); }
3835{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3836  (eval $ac_compiler -v </dev/null >&5) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }
3840{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3841  (eval $ac_compiler -V </dev/null >&5) 2>&5
3842  ac_status=$?
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); }
3845
3846echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3847echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3848if test "${ac_cv_c_compiler_gnu+set}" = set; then
3849  echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
3851  cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h.  */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861#ifndef __GNUC__
3862       choke me
3863#endif
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869rm -f conftest.$ac_objext
3870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871  (eval $ac_compile) 2>conftest.er1
3872  ac_status=$?
3873  grep -v '^ *+' conftest.er1 >conftest.err
3874  rm -f conftest.er1
3875  cat conftest.err >&5
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); } &&
3878	 { ac_try='test -z "$ac_c_werror_flag"
3879			 || test ! -s conftest.err'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; } &&
3885	 { ac_try='test -s conftest.$ac_objext'
3886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887  (eval $ac_try) 2>&5
3888  ac_status=$?
3889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890  (exit $ac_status); }; }; then
3891  ac_compiler_gnu=yes
3892else
3893  echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896ac_compiler_gnu=no
3897fi
3898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3899ac_cv_c_compiler_gnu=$ac_compiler_gnu
3900
3901fi
3902echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3903echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3904GCC=`test $ac_compiler_gnu = yes && echo yes`
3905ac_test_CFLAGS=${CFLAGS+set}
3906ac_save_CFLAGS=$CFLAGS
3907CFLAGS="-g"
3908echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3909echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3910if test "${ac_cv_prog_cc_g+set}" = set; then
3911  echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913  cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h.  */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h.  */
3919
3920int
3921main ()
3922{
3923
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928rm -f conftest.$ac_objext
3929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930  (eval $ac_compile) 2>conftest.er1
3931  ac_status=$?
3932  grep -v '^ *+' conftest.er1 >conftest.err
3933  rm -f conftest.er1
3934  cat conftest.err >&5
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); } &&
3937	 { ac_try='test -z "$ac_c_werror_flag"
3938			 || test ! -s conftest.err'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; } &&
3944	 { ac_try='test -s conftest.$ac_objext'
3945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946  (eval $ac_try) 2>&5
3947  ac_status=$?
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); }; }; then
3950  ac_cv_prog_cc_g=yes
3951else
3952  echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955ac_cv_prog_cc_g=no
3956fi
3957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958fi
3959echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3960echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3961if test "$ac_test_CFLAGS" = set; then
3962  CFLAGS=$ac_save_CFLAGS
3963elif test $ac_cv_prog_cc_g = yes; then
3964  if test "$GCC" = yes; then
3965    CFLAGS="-g -O2"
3966  else
3967    CFLAGS="-g"
3968  fi
3969else
3970  if test "$GCC" = yes; then
3971    CFLAGS="-O2"
3972  else
3973    CFLAGS=
3974  fi
3975fi
3976echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3977echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3978if test "${ac_cv_prog_cc_stdc+set}" = set; then
3979  echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981  ac_cv_prog_cc_stdc=no
3982ac_save_CC=$CC
3983cat >conftest.$ac_ext <<_ACEOF
3984/* confdefs.h.  */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h.  */
3989#include <stdarg.h>
3990#include <stdio.h>
3991#include <sys/types.h>
3992#include <sys/stat.h>
3993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3994struct buf { int x; };
3995FILE * (*rcsopen) (struct buf *, struct stat *, int);
3996static char *e (p, i)
3997     char **p;
3998     int i;
3999{
4000  return p[i];
4001}
4002static char *f (char * (*g) (char **, int), char **p, ...)
4003{
4004  char *s;
4005  va_list v;
4006  va_start (v,p);
4007  s = g (p, va_arg (v,int));
4008  va_end (v);
4009  return s;
4010}
4011
4012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4013   function prototypes and stuff, but not '\xHH' hex character constants.
4014   These don't provoke an error unfortunately, instead are silently treated
4015   as 'x'.  The following induces an error, until -std1 is added to get
4016   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4017   array size at least.  It's necessary to write '\x00'==0 to get something
4018   that's true only with -std1.  */
4019int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4020
4021int test (int i, double x);
4022struct s1 {int (*f) (int a);};
4023struct s2 {int (*f) (double a);};
4024int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4025int argc;
4026char **argv;
4027int
4028main ()
4029{
4030return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4031  ;
4032  return 0;
4033}
4034_ACEOF
4035# Don't try gcc -ansi; that turns off useful extensions and
4036# breaks some systems' header files.
4037# AIX			-qlanglvl=ansi
4038# Ultrix and OSF/1	-std1
4039# HP-UX 10.20 and later	-Ae
4040# HP-UX older versions	-Aa -D_HPUX_SOURCE
4041# SVR4			-Xc -D__EXTENSIONS__
4042for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4043do
4044  CC="$ac_save_CC $ac_arg"
4045  rm -f conftest.$ac_objext
4046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047  (eval $ac_compile) 2>conftest.er1
4048  ac_status=$?
4049  grep -v '^ *+' conftest.er1 >conftest.err
4050  rm -f conftest.er1
4051  cat conftest.err >&5
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); } &&
4054	 { ac_try='test -z "$ac_c_werror_flag"
4055			 || test ! -s conftest.err'
4056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057  (eval $ac_try) 2>&5
4058  ac_status=$?
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; } &&
4061	 { ac_try='test -s conftest.$ac_objext'
4062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063  (eval $ac_try) 2>&5
4064  ac_status=$?
4065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066  (exit $ac_status); }; }; then
4067  ac_cv_prog_cc_stdc=$ac_arg
4068break
4069else
4070  echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073fi
4074rm -f conftest.err conftest.$ac_objext
4075done
4076rm -f conftest.$ac_ext conftest.$ac_objext
4077CC=$ac_save_CC
4078
4079fi
4080
4081case "x$ac_cv_prog_cc_stdc" in
4082  x|xno)
4083    echo "$as_me:$LINENO: result: none needed" >&5
4084echo "${ECHO_T}none needed" >&6 ;;
4085  *)
4086    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4087echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4088    CC="$CC $ac_cv_prog_cc_stdc" ;;
4089esac
4090
4091# Some people use a C++ compiler to compile C.  Since we use `exit',
4092# in C++ we need to declare it.  In case someone uses the same compiler
4093# for both compiling C and C++ we need to have the C++ compiler decide
4094# the declaration of exit, since it's the most demanding environment.
4095cat >conftest.$ac_ext <<_ACEOF
4096#ifndef __cplusplus
4097  choke me
4098#endif
4099_ACEOF
4100rm -f conftest.$ac_objext
4101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102  (eval $ac_compile) 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } &&
4109	 { ac_try='test -z "$ac_c_werror_flag"
4110			 || test ! -s conftest.err'
4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112  (eval $ac_try) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; } &&
4116	 { ac_try='test -s conftest.$ac_objext'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; }; then
4122  for ac_declaration in \
4123   '' \
4124   'extern "C" void std::exit (int) throw (); using std::exit;' \
4125   'extern "C" void std::exit (int); using std::exit;' \
4126   'extern "C" void exit (int) throw ();' \
4127   'extern "C" void exit (int);' \
4128   'void exit (int);'
4129do
4130  cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136$ac_declaration
4137#include <stdlib.h>
4138int
4139main ()
4140{
4141exit (42);
4142  ;
4143  return 0;
4144}
4145_ACEOF
4146rm -f conftest.$ac_objext
4147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148  (eval $ac_compile) 2>conftest.er1
4149  ac_status=$?
4150  grep -v '^ *+' conftest.er1 >conftest.err
4151  rm -f conftest.er1
4152  cat conftest.err >&5
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); } &&
4155	 { ac_try='test -z "$ac_c_werror_flag"
4156			 || test ! -s conftest.err'
4157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158  (eval $ac_try) 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); }; } &&
4162	 { ac_try='test -s conftest.$ac_objext'
4163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164  (eval $ac_try) 2>&5
4165  ac_status=$?
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); }; }; then
4168  :
4169else
4170  echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173continue
4174fi
4175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176  cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h.  */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h.  */
4182$ac_declaration
4183int
4184main ()
4185{
4186exit (42);
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191rm -f conftest.$ac_objext
4192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193  (eval $ac_compile) 2>conftest.er1
4194  ac_status=$?
4195  grep -v '^ *+' conftest.er1 >conftest.err
4196  rm -f conftest.er1
4197  cat conftest.err >&5
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); } &&
4200	 { ac_try='test -z "$ac_c_werror_flag"
4201			 || test ! -s conftest.err'
4202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203  (eval $ac_try) 2>&5
4204  ac_status=$?
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); }; } &&
4207	 { ac_try='test -s conftest.$ac_objext'
4208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209  (eval $ac_try) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }; }; then
4213  break
4214else
4215  echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218fi
4219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4220done
4221rm -f conftest*
4222if test -n "$ac_declaration"; then
4223  echo '#ifdef __cplusplus' >>confdefs.h
4224  echo $ac_declaration      >>confdefs.h
4225  echo '#endif'             >>confdefs.h
4226fi
4227
4228else
4229  echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232fi
4233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240depcc="$CC"   am_compiler_list=
4241
4242echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4243echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4244if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4248  # We make a subdir and do the tests there.  Otherwise we can end up
4249  # making bogus files that we don't know about and never remove.  For
4250  # instance it was reported that on HP-UX the gcc test will end up
4251  # making a dummy file named `D' -- because `-MD' means `put the output
4252  # in D'.
4253  mkdir conftest.dir
4254  # Copy depcomp to subdir because otherwise we won't find it if we're
4255  # using a relative directory.
4256  cp "$am_depcomp" conftest.dir
4257  cd conftest.dir
4258  # We will build objects and dependencies in a subdirectory because
4259  # it helps to detect inapplicable dependency modes.  For instance
4260  # both Tru64's cc and ICC support -MD to output dependencies as a
4261  # side effect of compilation, but ICC will put the dependencies in
4262  # the current directory while Tru64 will put them in the object
4263  # directory.
4264  mkdir sub
4265
4266  am_cv_CC_dependencies_compiler_type=none
4267  if test "$am_compiler_list" = ""; then
4268     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269  fi
4270  for depmode in $am_compiler_list; do
4271    # Setup a source with many dependencies, because some compilers
4272    # like to wrap large dependency lists on column 80 (with \), and
4273    # we should not choose a depcomp mode which is confused by this.
4274    #
4275    # We need to recreate these files for each test, as the compiler may
4276    # overwrite some of them when testing with obscure command lines.
4277    # This happens at least with the AIX C compiler.
4278    : > sub/conftest.c
4279    for i in 1 2 3 4 5 6; do
4280      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4281      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4282      # Solaris 8's {/usr,}/bin/sh.
4283      touch sub/conftst$i.h
4284    done
4285    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4286
4287    case $depmode in
4288    nosideeffect)
4289      # after this tag, mechanisms are not by side-effect, so they'll
4290      # only be used when explicitly requested
4291      if test "x$enable_dependency_tracking" = xyes; then
4292	continue
4293      else
4294	break
4295      fi
4296      ;;
4297    none) break ;;
4298    esac
4299    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4300    # mode.  It turns out that the SunPro C++ compiler does not properly
4301    # handle `-M -o', and we need to detect this.
4302    if depmode=$depmode \
4303       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4304       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4305       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4306         >/dev/null 2>conftest.err &&
4307       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4308       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4309       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4310      # icc doesn't choke on unknown options, it will just issue warnings
4311      # or remarks (even with -Werror).  So we grep stderr for any message
4312      # that says an option was ignored or not supported.
4313      # When given -MP, icc 7.0 and 7.1 complain thusly:
4314      #   icc: Command line warning: ignoring option '-M'; no argument required
4315      # The diagnosis changed in icc 8.0:
4316      #   icc: Command line remark: option '-MP' not supported
4317      if (grep 'ignoring option' conftest.err ||
4318          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4319        am_cv_CC_dependencies_compiler_type=$depmode
4320        break
4321      fi
4322    fi
4323  done
4324
4325  cd ..
4326  rm -rf conftest.dir
4327else
4328  am_cv_CC_dependencies_compiler_type=none
4329fi
4330
4331fi
4332echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4333echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4334CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4335
4336
4337
4338if
4339  test "x$enable_dependency_tracking" != xno \
4340  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4341  am__fastdepCC_TRUE=
4342  am__fastdepCC_FALSE='#'
4343else
4344  am__fastdepCC_TRUE='#'
4345  am__fastdepCC_FALSE=
4346fi
4347
4348
4349
4350am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4351
4352echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4354if test "${ac_cv_header_stdc+set}" = set; then
4355  echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357  cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h.  */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h.  */
4363#include <stdlib.h>
4364#include <stdarg.h>
4365#include <string.h>
4366#include <float.h>
4367
4368int
4369main ()
4370{
4371
4372  ;
4373  return 0;
4374}
4375_ACEOF
4376rm -f conftest.$ac_objext
4377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378  (eval $ac_compile) 2>conftest.er1
4379  ac_status=$?
4380  grep -v '^ *+' conftest.er1 >conftest.err
4381  rm -f conftest.er1
4382  cat conftest.err >&5
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); } &&
4385	 { ac_try='test -z "$ac_c_werror_flag"
4386			 || test ! -s conftest.err'
4387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388  (eval $ac_try) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; } &&
4392	 { ac_try='test -s conftest.$ac_objext'
4393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394  (eval $ac_try) 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; }; then
4398  ac_cv_header_stdc=yes
4399else
4400  echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403ac_cv_header_stdc=no
4404fi
4405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4406
4407if test $ac_cv_header_stdc = yes; then
4408  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4409  cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h.  */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h.  */
4415#include <string.h>
4416
4417_ACEOF
4418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419  $EGREP "memchr" >/dev/null 2>&1; then
4420  :
4421else
4422  ac_cv_header_stdc=no
4423fi
4424rm -f conftest*
4425
4426fi
4427
4428if test $ac_cv_header_stdc = yes; then
4429  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4430  cat >conftest.$ac_ext <<_ACEOF
4431/* confdefs.h.  */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h.  */
4436#include <stdlib.h>
4437
4438_ACEOF
4439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4440  $EGREP "free" >/dev/null 2>&1; then
4441  :
4442else
4443  ac_cv_header_stdc=no
4444fi
4445rm -f conftest*
4446
4447fi
4448
4449if test $ac_cv_header_stdc = yes; then
4450  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4451  if test "$cross_compiling" = yes; then
4452  :
4453else
4454  cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h.  */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h.  */
4460#include <ctype.h>
4461#if ((' ' & 0x0FF) == 0x020)
4462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4464#else
4465# define ISLOWER(c) \
4466		   (('a' <= (c) && (c) <= 'i') \
4467		     || ('j' <= (c) && (c) <= 'r') \
4468		     || ('s' <= (c) && (c) <= 'z'))
4469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4470#endif
4471
4472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473int
4474main ()
4475{
4476  int i;
4477  for (i = 0; i < 256; i++)
4478    if (XOR (islower (i), ISLOWER (i))
4479	|| toupper (i) != TOUPPER (i))
4480      exit(2);
4481  exit (0);
4482}
4483_ACEOF
4484rm -f conftest$ac_exeext
4485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4486  (eval $ac_link) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491  (eval $ac_try) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; }; then
4495  :
4496else
4497  echo "$as_me: program exited with status $ac_status" >&5
4498echo "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
4501( exit $ac_status )
4502ac_cv_header_stdc=no
4503fi
4504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4505fi
4506fi
4507fi
4508echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4509echo "${ECHO_T}$ac_cv_header_stdc" >&6
4510if test $ac_cv_header_stdc = yes; then
4511
4512cat >>confdefs.h <<\_ACEOF
4513#define STDC_HEADERS 1
4514_ACEOF
4515
4516fi
4517
4518ac_ext=c
4519ac_cpp='$CPP $CPPFLAGS'
4520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4524echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4525# On Suns, sometimes $CPP names a directory.
4526if test -n "$CPP" && test -d "$CPP"; then
4527  CPP=
4528fi
4529if test -z "$CPP"; then
4530  if test "${ac_cv_prog_CPP+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533      # Double quotes because CPP needs to be expanded
4534    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4535    do
4536      ac_preproc_ok=false
4537for ac_c_preproc_warn_flag in '' yes
4538do
4539  # Use a header file that comes with gcc, so configuring glibc
4540  # with a fresh cross-compiler works.
4541  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542  # <limits.h> exists even on freestanding compilers.
4543  # On the NeXT, cc -E runs the code through the compiler's parser,
4544  # not just through cpp. "Syntax error" is here to catch this case.
4545  cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h.  */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h.  */
4551#ifdef __STDC__
4552# include <limits.h>
4553#else
4554# include <assert.h>
4555#endif
4556		     Syntax error
4557_ACEOF
4558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4559  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4560  ac_status=$?
4561  grep -v '^ *+' conftest.er1 >conftest.err
4562  rm -f conftest.er1
4563  cat conftest.err >&5
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } >/dev/null; then
4566  if test -s conftest.err; then
4567    ac_cpp_err=$ac_c_preproc_warn_flag
4568    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4569  else
4570    ac_cpp_err=
4571  fi
4572else
4573  ac_cpp_err=yes
4574fi
4575if test -z "$ac_cpp_err"; then
4576  :
4577else
4578  echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581  # Broken: fails on valid input.
4582continue
4583fi
4584rm -f conftest.err conftest.$ac_ext
4585
4586  # OK, works on sane cases.  Now check whether non-existent headers
4587  # can be detected and how.
4588  cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h.  */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h.  */
4594#include <ac_nonexistent.h>
4595_ACEOF
4596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4597  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4598  ac_status=$?
4599  grep -v '^ *+' conftest.er1 >conftest.err
4600  rm -f conftest.er1
4601  cat conftest.err >&5
4602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); } >/dev/null; then
4604  if test -s conftest.err; then
4605    ac_cpp_err=$ac_c_preproc_warn_flag
4606    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4607  else
4608    ac_cpp_err=
4609  fi
4610else
4611  ac_cpp_err=yes
4612fi
4613if test -z "$ac_cpp_err"; then
4614  # Broken: success on invalid input.
4615continue
4616else
4617  echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620  # Passes both tests.
4621ac_preproc_ok=:
4622break
4623fi
4624rm -f conftest.err conftest.$ac_ext
4625
4626done
4627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628rm -f conftest.err conftest.$ac_ext
4629if $ac_preproc_ok; then
4630  break
4631fi
4632
4633    done
4634    ac_cv_prog_CPP=$CPP
4635
4636fi
4637  CPP=$ac_cv_prog_CPP
4638else
4639  ac_cv_prog_CPP=$CPP
4640fi
4641echo "$as_me:$LINENO: result: $CPP" >&5
4642echo "${ECHO_T}$CPP" >&6
4643ac_preproc_ok=false
4644for ac_c_preproc_warn_flag in '' yes
4645do
4646  # Use a header file that comes with gcc, so configuring glibc
4647  # with a fresh cross-compiler works.
4648  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4649  # <limits.h> exists even on freestanding compilers.
4650  # On the NeXT, cc -E runs the code through the compiler's parser,
4651  # not just through cpp. "Syntax error" is here to catch this case.
4652  cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h.  */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h.  */
4658#ifdef __STDC__
4659# include <limits.h>
4660#else
4661# include <assert.h>
4662#endif
4663		     Syntax error
4664_ACEOF
4665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4666  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4667  ac_status=$?
4668  grep -v '^ *+' conftest.er1 >conftest.err
4669  rm -f conftest.er1
4670  cat conftest.err >&5
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); } >/dev/null; then
4673  if test -s conftest.err; then
4674    ac_cpp_err=$ac_c_preproc_warn_flag
4675    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4676  else
4677    ac_cpp_err=
4678  fi
4679else
4680  ac_cpp_err=yes
4681fi
4682if test -z "$ac_cpp_err"; then
4683  :
4684else
4685  echo "$as_me: failed program was:" >&5
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
4688  # Broken: fails on valid input.
4689continue
4690fi
4691rm -f conftest.err conftest.$ac_ext
4692
4693  # OK, works on sane cases.  Now check whether non-existent headers
4694  # can be detected and how.
4695  cat >conftest.$ac_ext <<_ACEOF
4696/* confdefs.h.  */
4697_ACEOF
4698cat confdefs.h >>conftest.$ac_ext
4699cat >>conftest.$ac_ext <<_ACEOF
4700/* end confdefs.h.  */
4701#include <ac_nonexistent.h>
4702_ACEOF
4703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4704  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4705  ac_status=$?
4706  grep -v '^ *+' conftest.er1 >conftest.err
4707  rm -f conftest.er1
4708  cat conftest.err >&5
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } >/dev/null; then
4711  if test -s conftest.err; then
4712    ac_cpp_err=$ac_c_preproc_warn_flag
4713    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4714  else
4715    ac_cpp_err=
4716  fi
4717else
4718  ac_cpp_err=yes
4719fi
4720if test -z "$ac_cpp_err"; then
4721  # Broken: success on invalid input.
4722continue
4723else
4724  echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727  # Passes both tests.
4728ac_preproc_ok=:
4729break
4730fi
4731rm -f conftest.err conftest.$ac_ext
4732
4733done
4734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4735rm -f conftest.err conftest.$ac_ext
4736if $ac_preproc_ok; then
4737  :
4738else
4739  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4740See \`config.log' for more details." >&5
4741echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4742See \`config.log' for more details." >&2;}
4743   { (exit 1); exit 1; }; }
4744fi
4745
4746ac_ext=c
4747ac_cpp='$CPP $CPPFLAGS'
4748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752# Find a good install program.  We prefer a C program (faster),
4753# so one script is as good as another.  But avoid the broken or
4754# incompatible versions:
4755# SysV /etc/install, /usr/sbin/install
4756# SunOS /usr/etc/install
4757# IRIX /sbin/install
4758# AIX /bin/install
4759# AmigaOS /C/install, which installs bootblocks on floppy discs
4760# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4761# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4762# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4763# OS/2's system install, which has a completely different semantic
4764# ./install, which can be erroneously created by make from ./install.sh.
4765echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4766echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4767if test -z "$INSTALL"; then
4768if test "${ac_cv_path_install+set}" = set; then
4769  echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776  # Account for people who put trailing slashes in PATH elements.
4777case $as_dir/ in
4778  ./ | .// | /cC/* | \
4779  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4780  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4781  /usr/ucb/* ) ;;
4782  *)
4783    # OSF1 and SCO ODT 3.0 have their own names for install.
4784    # Don't use installbsd from OSF since it installs stuff as root
4785    # by default.
4786    for ac_prog in ginstall scoinst install; do
4787      for ac_exec_ext in '' $ac_executable_extensions; do
4788	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4789	  if test $ac_prog = install &&
4790	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791	    # AIX install.  It has an incompatible calling convention.
4792	    :
4793	  elif test $ac_prog = install &&
4794	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795	    # program-specific install script used by HP pwplus--don't use.
4796	    :
4797	  else
4798	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4799	    break 3
4800	  fi
4801	fi
4802      done
4803    done
4804    ;;
4805esac
4806done
4807
4808
4809fi
4810  if test "${ac_cv_path_install+set}" = set; then
4811    INSTALL=$ac_cv_path_install
4812  else
4813    # As a last resort, use the slow shell script.  We don't cache a
4814    # path for INSTALL within a source directory, because that will
4815    # break other packages using the cache if that directory is
4816    # removed, or if the path is relative.
4817    INSTALL=$ac_install_sh
4818  fi
4819fi
4820echo "$as_me:$LINENO: result: $INSTALL" >&5
4821echo "${ECHO_T}$INSTALL" >&6
4822
4823# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4824# It thinks the first close brace ends the variable substitution.
4825test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4826
4827test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4828
4829test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4830
4831echo "$as_me:$LINENO: checking whether ln -s works" >&5
4832echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4833LN_S=$as_ln_s
4834if test "$LN_S" = "ln -s"; then
4835  echo "$as_me:$LINENO: result: yes" >&5
4836echo "${ECHO_T}yes" >&6
4837else
4838  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4839echo "${ECHO_T}no, using $LN_S" >&6
4840fi
4841
4842# Check whether --enable-shared or --disable-shared was given.
4843if test "${enable_shared+set}" = set; then
4844  enableval="$enable_shared"
4845  p=${PACKAGE-default}
4846    case $enableval in
4847    yes) enable_shared=yes ;;
4848    no) enable_shared=no ;;
4849    *)
4850      enable_shared=no
4851      # Look at the argument we got.  We use all the common list separators.
4852      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4853      for pkg in $enableval; do
4854	IFS="$lt_save_ifs"
4855	if test "X$pkg" = "X$p"; then
4856	  enable_shared=yes
4857	fi
4858      done
4859      IFS="$lt_save_ifs"
4860      ;;
4861    esac
4862else
4863  enable_shared=yes
4864fi;
4865
4866# Check whether --enable-fast-install or --disable-fast-install was given.
4867if test "${enable_fast_install+set}" = set; then
4868  enableval="$enable_fast_install"
4869  p=${PACKAGE-default}
4870    case $enableval in
4871    yes) enable_fast_install=yes ;;
4872    no) enable_fast_install=no ;;
4873    *)
4874      enable_fast_install=no
4875      # Look at the argument we got.  We use all the common list separators.
4876      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4877      for pkg in $enableval; do
4878	IFS="$lt_save_ifs"
4879	if test "X$pkg" = "X$p"; then
4880	  enable_fast_install=yes
4881	fi
4882      done
4883      IFS="$lt_save_ifs"
4884      ;;
4885    esac
4886else
4887  enable_fast_install=yes
4888fi;
4889
4890# Make sure we can run config.sub.
4891$ac_config_sub sun4 >/dev/null 2>&1 ||
4892  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4893echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4894   { (exit 1); exit 1; }; }
4895
4896echo "$as_me:$LINENO: checking build system type" >&5
4897echo $ECHO_N "checking build system type... $ECHO_C" >&6
4898if test "${ac_cv_build+set}" = set; then
4899  echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901  ac_cv_build_alias=$build_alias
4902test -z "$ac_cv_build_alias" &&
4903  ac_cv_build_alias=`$ac_config_guess`
4904test -z "$ac_cv_build_alias" &&
4905  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4906echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4907   { (exit 1); exit 1; }; }
4908ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4909  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4910echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4911   { (exit 1); exit 1; }; }
4912
4913fi
4914echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4915echo "${ECHO_T}$ac_cv_build" >&6
4916build=$ac_cv_build
4917build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4918build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4919build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4920
4921
4922echo "$as_me:$LINENO: checking host system type" >&5
4923echo $ECHO_N "checking host system type... $ECHO_C" >&6
4924if test "${ac_cv_host+set}" = set; then
4925  echo $ECHO_N "(cached) $ECHO_C" >&6
4926else
4927  ac_cv_host_alias=$host_alias
4928test -z "$ac_cv_host_alias" &&
4929  ac_cv_host_alias=$ac_cv_build_alias
4930ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4931  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4932echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4933   { (exit 1); exit 1; }; }
4934
4935fi
4936echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4937echo "${ECHO_T}$ac_cv_host" >&6
4938host=$ac_cv_host
4939host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4940host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4941host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4942
4943
4944echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4945echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4946if test "${lt_cv_path_SED+set}" = set; then
4947  echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949  # Loop through the user's path and test for sed and gsed.
4950# Then use that list of sed's as ones to test for truncation.
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954  IFS=$as_save_IFS
4955  test -z "$as_dir" && as_dir=.
4956  for lt_ac_prog in sed gsed; do
4957    for ac_exec_ext in '' $ac_executable_extensions; do
4958      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4959        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4960      fi
4961    done
4962  done
4963done
4964lt_ac_max=0
4965lt_ac_count=0
4966# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4967# along with /bin/sed that truncates output.
4968for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4969  test ! -f $lt_ac_sed && continue
4970  cat /dev/null > conftest.in
4971  lt_ac_count=0
4972  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4973  # Check for GNU sed and select it if it is found.
4974  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4975    lt_cv_path_SED=$lt_ac_sed
4976    break
4977  fi
4978  while true; do
4979    cat conftest.in conftest.in >conftest.tmp
4980    mv conftest.tmp conftest.in
4981    cp conftest.in conftest.nl
4982    echo >>conftest.nl
4983    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4984    cmp -s conftest.out conftest.nl || break
4985    # 10000 chars as input seems more than enough
4986    test $lt_ac_count -gt 10 && break
4987    lt_ac_count=`expr $lt_ac_count + 1`
4988    if test $lt_ac_count -gt $lt_ac_max; then
4989      lt_ac_max=$lt_ac_count
4990      lt_cv_path_SED=$lt_ac_sed
4991    fi
4992  done
4993done
4994
4995fi
4996
4997SED=$lt_cv_path_SED
4998echo "$as_me:$LINENO: result: $SED" >&5
4999echo "${ECHO_T}$SED" >&6
5000
5001
5002# Check whether --with-gnu-ld or --without-gnu-ld was given.
5003if test "${with_gnu_ld+set}" = set; then
5004  withval="$with_gnu_ld"
5005  test "$withval" = no || with_gnu_ld=yes
5006else
5007  with_gnu_ld=no
5008fi;
5009ac_prog=ld
5010if test "$GCC" = yes; then
5011  # Check if gcc -print-prog-name=ld gives a path.
5012  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5013echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5014  case $host in
5015  *-*-mingw*)
5016    # gcc leaves a trailing carriage return which upsets mingw
5017    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5018  *)
5019    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5020  esac
5021  case $ac_prog in
5022    # Accept absolute paths.
5023    [\\/]* | ?:[\\/]*)
5024      re_direlt='/[^/][^/]*/\.\./'
5025      # Canonicalize the pathname of ld
5026      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5027      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5028	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5029      done
5030      test -z "$LD" && LD="$ac_prog"
5031      ;;
5032  "")
5033    # If it fails, then pretend we aren't using GCC.
5034    ac_prog=ld
5035    ;;
5036  *)
5037    # If it is relative, then search for the first ld in PATH.
5038    with_gnu_ld=unknown
5039    ;;
5040  esac
5041elif test "$with_gnu_ld" = yes; then
5042  echo "$as_me:$LINENO: checking for GNU ld" >&5
5043echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5044else
5045  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5046echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5047fi
5048if test "${lt_cv_path_LD+set}" = set; then
5049  echo $ECHO_N "(cached) $ECHO_C" >&6
5050else
5051  if test -z "$LD"; then
5052  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5053  for ac_dir in $PATH; do
5054    IFS="$lt_save_ifs"
5055    test -z "$ac_dir" && ac_dir=.
5056    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5057      lt_cv_path_LD="$ac_dir/$ac_prog"
5058      # Check to see if the program is GNU ld.  I'd rather use --version,
5059      # but apparently some variants of GNU ld only accept -v.
5060      # Break only if it was the GNU/non-GNU ld that we prefer.
5061      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5062      *GNU* | *'with BFD'*)
5063	test "$with_gnu_ld" != no && break
5064	;;
5065      *)
5066	test "$with_gnu_ld" != yes && break
5067	;;
5068      esac
5069    fi
5070  done
5071  IFS="$lt_save_ifs"
5072else
5073  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5074fi
5075fi
5076
5077LD="$lt_cv_path_LD"
5078if test -n "$LD"; then
5079  echo "$as_me:$LINENO: result: $LD" >&5
5080echo "${ECHO_T}$LD" >&6
5081else
5082  echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084fi
5085test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5086echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5087   { (exit 1); exit 1; }; }
5088echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5089echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5090if test "${lt_cv_prog_gnu_ld+set}" = set; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5094case `$LD -v 2>&1 </dev/null` in
5095*GNU* | *'with BFD'*)
5096  lt_cv_prog_gnu_ld=yes
5097  ;;
5098*)
5099  lt_cv_prog_gnu_ld=no
5100  ;;
5101esac
5102fi
5103echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5104echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5105with_gnu_ld=$lt_cv_prog_gnu_ld
5106
5107
5108echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5109echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5110if test "${lt_cv_ld_reload_flag+set}" = set; then
5111  echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113  lt_cv_ld_reload_flag='-r'
5114fi
5115echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5116echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5117reload_flag=$lt_cv_ld_reload_flag
5118case $reload_flag in
5119"" | " "*) ;;
5120*) reload_flag=" $reload_flag" ;;
5121esac
5122reload_cmds='$LD$reload_flag -o $output$reload_objs'
5123case $host_os in
5124  darwin*)
5125    if test "$GCC" = yes; then
5126      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5127    else
5128      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129    fi
5130    ;;
5131esac
5132
5133echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5134echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5135if test "${lt_cv_path_NM+set}" = set; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  if test -n "$NM"; then
5139  # Let the user override the test.
5140  lt_cv_path_NM="$NM"
5141else
5142  lt_nm_to_check="${ac_tool_prefix}nm"
5143  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5144    lt_nm_to_check="$lt_nm_to_check nm"
5145  fi
5146  for lt_tmp_nm in $lt_nm_to_check; do
5147    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5148    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5149      IFS="$lt_save_ifs"
5150      test -z "$ac_dir" && ac_dir=.
5151      tmp_nm="$ac_dir/$lt_tmp_nm"
5152      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5153	# Check to see if the nm accepts a BSD-compat flag.
5154	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5155	#   nm: unknown option "B" ignored
5156	# Tru64's nm complains that /dev/null is an invalid object file
5157	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5158	*/dev/null* | *'Invalid file or object type'*)
5159	  lt_cv_path_NM="$tmp_nm -B"
5160	  break
5161	  ;;
5162	*)
5163	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5164	  */dev/null*)
5165	    lt_cv_path_NM="$tmp_nm -p"
5166	    break
5167	    ;;
5168	  *)
5169	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5170	    continue # so that we can try to find one that supports BSD flags
5171	    ;;
5172	  esac
5173	  ;;
5174	esac
5175      fi
5176    done
5177    IFS="$lt_save_ifs"
5178  done
5179  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5180fi
5181fi
5182echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5183echo "${ECHO_T}$lt_cv_path_NM" >&6
5184NM="$lt_cv_path_NM"
5185
5186echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5187echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5188if test "${lt_cv_deplibs_check_method+set}" = set; then
5189  echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191  lt_cv_file_magic_cmd='$MAGIC_CMD'
5192lt_cv_file_magic_test_file=
5193lt_cv_deplibs_check_method='unknown'
5194# Need to set the preceding variable on all platforms that support
5195# interlibrary dependencies.
5196# 'none' -- dependencies not supported.
5197# `unknown' -- same as none, but documents that we really don't know.
5198# 'pass_all' -- all dependencies passed with no checks.
5199# 'test_compile' -- check by making test program.
5200# 'file_magic [[regex]]' -- check by looking for files in library path
5201# which responds to the $file_magic_cmd with a given extended regex.
5202# If you have `file' or equivalent on your system and you're not sure
5203# whether `pass_all' will *always* work, you probably want this one.
5204
5205case $host_os in
5206aix4* | aix5*)
5207  lt_cv_deplibs_check_method=pass_all
5208  ;;
5209
5210beos*)
5211  lt_cv_deplibs_check_method=pass_all
5212  ;;
5213
5214bsdi[45]*)
5215  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5216  lt_cv_file_magic_cmd='/usr/bin/file -L'
5217  lt_cv_file_magic_test_file=/shlib/libc.so
5218  ;;
5219
5220cygwin*)
5221  # func_win32_libid is a shell function defined in ltmain.sh
5222  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5223  lt_cv_file_magic_cmd='func_win32_libid'
5224  ;;
5225
5226mingw* | pw32*)
5227  # Base MSYS/MinGW do not provide the 'file' command needed by
5228  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5229  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5230  lt_cv_file_magic_cmd='$OBJDUMP -f'
5231  ;;
5232
5233darwin* | rhapsody*)
5234  lt_cv_deplibs_check_method=pass_all
5235  ;;
5236
5237freebsd* | kfreebsd*-gnu | dragonfly*)
5238  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5239    case $host_cpu in
5240    i*86 )
5241      # Not sure whether the presence of OpenBSD here was a mistake.
5242      # Let's accept both of them until this is cleared up.
5243      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5244      lt_cv_file_magic_cmd=/usr/bin/file
5245      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5246      ;;
5247    esac
5248  else
5249    lt_cv_deplibs_check_method=pass_all
5250  fi
5251  ;;
5252
5253gnu*)
5254  lt_cv_deplibs_check_method=pass_all
5255  ;;
5256
5257hpux10.20* | hpux11*)
5258  lt_cv_file_magic_cmd=/usr/bin/file
5259  case $host_cpu in
5260  ia64*)
5261    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5262    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5263    ;;
5264  hppa*64*)
5265    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]'
5266    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5267    ;;
5268  *)
5269    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5270    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5271    ;;
5272  esac
5273  ;;
5274
5275interix3*)
5276  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5277  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5278  ;;
5279
5280irix5* | irix6* | nonstopux*)
5281  case $LD in
5282  *-32|*"-32 ") libmagic=32-bit;;
5283  *-n32|*"-n32 ") libmagic=N32;;
5284  *-64|*"-64 ") libmagic=64-bit;;
5285  *) libmagic=never-match;;
5286  esac
5287  lt_cv_deplibs_check_method=pass_all
5288  ;;
5289
5290# This must be Linux ELF.
5291linux*)
5292  lt_cv_deplibs_check_method=pass_all
5293  ;;
5294
5295netbsd*)
5296  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5297    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5298  else
5299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5300  fi
5301  ;;
5302
5303newos6*)
5304  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5305  lt_cv_file_magic_cmd=/usr/bin/file
5306  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5307  ;;
5308
5309nto-qnx*)
5310  lt_cv_deplibs_check_method=unknown
5311  ;;
5312
5313openbsd*)
5314  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5316  else
5317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5318  fi
5319  ;;
5320
5321osf3* | osf4* | osf5*)
5322  lt_cv_deplibs_check_method=pass_all
5323  ;;
5324
5325solaris*)
5326  lt_cv_deplibs_check_method=pass_all
5327  ;;
5328
5329sysv4 | sysv4.3*)
5330  case $host_vendor in
5331  motorola)
5332    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]'
5333    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5334    ;;
5335  ncr)
5336    lt_cv_deplibs_check_method=pass_all
5337    ;;
5338  sequent)
5339    lt_cv_file_magic_cmd='/bin/file'
5340    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5341    ;;
5342  sni)
5343    lt_cv_file_magic_cmd='/bin/file'
5344    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5345    lt_cv_file_magic_test_file=/lib/libc.so
5346    ;;
5347  siemens)
5348    lt_cv_deplibs_check_method=pass_all
5349    ;;
5350  pc)
5351    lt_cv_deplibs_check_method=pass_all
5352    ;;
5353  esac
5354  ;;
5355
5356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5357  lt_cv_deplibs_check_method=pass_all
5358  ;;
5359esac
5360
5361fi
5362echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5363echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5364file_magic_cmd=$lt_cv_file_magic_cmd
5365deplibs_check_method=$lt_cv_deplibs_check_method
5366test -z "$deplibs_check_method" && deplibs_check_method=unknown
5367
5368
5369
5370
5371# If no C compiler was specified, use CC.
5372LTCC=${LTCC-"$CC"}
5373
5374# If no C compiler flags were specified, use CFLAGS.
5375LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5376
5377# Allow CC to be a program name with arguments.
5378compiler=$CC
5379
5380# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5381if test "${enable_libtool_lock+set}" = set; then
5382  enableval="$enable_libtool_lock"
5383
5384fi;
5385test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5386
5387# Some flags need to be propagated to the compiler or linker for good
5388# libtool support.
5389case $host in
5390ia64-*-hpux*)
5391  # Find out which ABI we are using.
5392  echo 'int i;' > conftest.$ac_ext
5393  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394  (eval $ac_compile) 2>&5
5395  ac_status=$?
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); }; then
5398    case `/usr/bin/file conftest.$ac_objext` in
5399    *ELF-32*)
5400      HPUX_IA64_MODE="32"
5401      ;;
5402    *ELF-64*)
5403      HPUX_IA64_MODE="64"
5404      ;;
5405    esac
5406  fi
5407  rm -rf conftest*
5408  ;;
5409*-*-irix6*)
5410  # Find out which ABI we are using.
5411  echo '#line 5411 "configure"' > conftest.$ac_ext
5412  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413  (eval $ac_compile) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; then
5417   if test "$lt_cv_prog_gnu_ld" = yes; then
5418    case `/usr/bin/file conftest.$ac_objext` in
5419    *32-bit*)
5420      LD="${LD-ld} -melf32bsmip"
5421      ;;
5422    *N32*)
5423      LD="${LD-ld} -melf32bmipn32"
5424      ;;
5425    *64-bit*)
5426      LD="${LD-ld} -melf64bmip"
5427      ;;
5428    esac
5429   else
5430    case `/usr/bin/file conftest.$ac_objext` in
5431    *32-bit*)
5432      LD="${LD-ld} -32"
5433      ;;
5434    *N32*)
5435      LD="${LD-ld} -n32"
5436      ;;
5437    *64-bit*)
5438      LD="${LD-ld} -64"
5439      ;;
5440    esac
5441   fi
5442  fi
5443  rm -rf conftest*
5444  ;;
5445
5446x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5447  # Find out which ABI we are using.
5448  echo 'int i;' > conftest.$ac_ext
5449  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450  (eval $ac_compile) 2>&5
5451  ac_status=$?
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); }; then
5454    case `/usr/bin/file conftest.o` in
5455    *32-bit*)
5456      case $host in
5457        x86_64-*linux*)
5458          LD="${LD-ld} -m elf_i386"
5459          ;;
5460        ppc64-*linux*|powerpc64-*linux*)
5461          LD="${LD-ld} -m elf32ppclinux"
5462          ;;
5463        s390x-*linux*)
5464          LD="${LD-ld} -m elf_s390"
5465          ;;
5466        sparc64-*linux*)
5467          LD="${LD-ld} -m elf32_sparc"
5468          ;;
5469      esac
5470      ;;
5471    *64-bit*)
5472      case $host in
5473        x86_64-*linux*)
5474          LD="${LD-ld} -m elf_x86_64"
5475          ;;
5476        ppc*-*linux*|powerpc*-*linux*)
5477          LD="${LD-ld} -m elf64ppc"
5478          ;;
5479        s390*-*linux*)
5480          LD="${LD-ld} -m elf64_s390"
5481          ;;
5482        sparc*-*linux*)
5483          LD="${LD-ld} -m elf64_sparc"
5484          ;;
5485      esac
5486      ;;
5487    esac
5488  fi
5489  rm -rf conftest*
5490  ;;
5491
5492*-*-sco3.2v5*)
5493  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5494  SAVE_CFLAGS="$CFLAGS"
5495  CFLAGS="$CFLAGS -belf"
5496  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5497echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5498if test "${lt_cv_cc_needs_belf+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501  ac_ext=c
5502ac_cpp='$CPP $CPPFLAGS'
5503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505ac_compiler_gnu=$ac_cv_c_compiler_gnu
5506
5507     cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513
5514int
5515main ()
5516{
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext conftest$ac_exeext
5523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524  (eval $ac_link) 2>conftest.er1
5525  ac_status=$?
5526  grep -v '^ *+' conftest.er1 >conftest.err
5527  rm -f conftest.er1
5528  cat conftest.err >&5
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); } &&
5531	 { ac_try='test -z "$ac_c_werror_flag"
5532			 || test ! -s conftest.err'
5533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534  (eval $ac_try) 2>&5
5535  ac_status=$?
5536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); }; } &&
5538	 { ac_try='test -s conftest$ac_exeext'
5539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540  (eval $ac_try) 2>&5
5541  ac_status=$?
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); }; }; then
5544  lt_cv_cc_needs_belf=yes
5545else
5546  echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549lt_cv_cc_needs_belf=no
5550fi
5551rm -f conftest.err conftest.$ac_objext \
5552      conftest$ac_exeext conftest.$ac_ext
5553     ac_ext=c
5554ac_cpp='$CPP $CPPFLAGS'
5555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558
5559fi
5560echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5561echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5562  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5563    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5564    CFLAGS="$SAVE_CFLAGS"
5565  fi
5566  ;;
5567sparc*-*solaris*)
5568  # Find out which ABI we are using.
5569  echo 'int i;' > conftest.$ac_ext
5570  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571  (eval $ac_compile) 2>&5
5572  ac_status=$?
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); }; then
5575    case `/usr/bin/file conftest.o` in
5576    *64-bit*)
5577      case $lt_cv_prog_gnu_ld in
5578      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5579      *)    LD="${LD-ld} -64" ;;
5580      esac
5581      ;;
5582    esac
5583  fi
5584  rm -rf conftest*
5585  ;;
5586
5587
5588esac
5589
5590need_locks="$enable_libtool_lock"
5591
5592
5593# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5604		  inttypes.h stdint.h unistd.h
5605do
5606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5607echo "$as_me:$LINENO: checking for $ac_header" >&5
5608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5609if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610  echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612  cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h.  */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h.  */
5618$ac_includes_default
5619
5620#include <$ac_header>
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624  (eval $ac_compile) 2>conftest.er1
5625  ac_status=$?
5626  grep -v '^ *+' conftest.er1 >conftest.err
5627  rm -f conftest.er1
5628  cat conftest.err >&5
5629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630  (exit $ac_status); } &&
5631	 { ac_try='test -z "$ac_c_werror_flag"
5632			 || test ! -s conftest.err'
5633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634  (eval $ac_try) 2>&5
5635  ac_status=$?
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); }; } &&
5638	 { ac_try='test -s conftest.$ac_objext'
5639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640  (eval $ac_try) 2>&5
5641  ac_status=$?
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); }; }; then
5644  eval "$as_ac_Header=yes"
5645else
5646  echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649eval "$as_ac_Header=no"
5650fi
5651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5652fi
5653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5655if test `eval echo '${'$as_ac_Header'}'` = yes; then
5656  cat >>confdefs.h <<_ACEOF
5657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658_ACEOF
5659
5660fi
5661
5662done
5663
5664
5665
5666for ac_header in dlfcn.h
5667do
5668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5669if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670  echo "$as_me:$LINENO: checking for $ac_header" >&5
5671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5672if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673  echo $ECHO_N "(cached) $ECHO_C" >&6
5674fi
5675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5677else
5678  # Is the header compilable?
5679echo "$as_me:$LINENO: checking $ac_header usability" >&5
5680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5681cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h.  */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h.  */
5687$ac_includes_default
5688#include <$ac_header>
5689_ACEOF
5690rm -f conftest.$ac_objext
5691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692  (eval $ac_compile) 2>conftest.er1
5693  ac_status=$?
5694  grep -v '^ *+' conftest.er1 >conftest.err
5695  rm -f conftest.er1
5696  cat conftest.err >&5
5697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698  (exit $ac_status); } &&
5699	 { ac_try='test -z "$ac_c_werror_flag"
5700			 || test ! -s conftest.err'
5701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702  (eval $ac_try) 2>&5
5703  ac_status=$?
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); }; } &&
5706	 { ac_try='test -s conftest.$ac_objext'
5707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708  (eval $ac_try) 2>&5
5709  ac_status=$?
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); }; }; then
5712  ac_header_compiler=yes
5713else
5714  echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717ac_header_compiler=no
5718fi
5719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5721echo "${ECHO_T}$ac_header_compiler" >&6
5722
5723# Is the header present?
5724echo "$as_me:$LINENO: checking $ac_header presence" >&5
5725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5726cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h.  */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h.  */
5732#include <$ac_header>
5733_ACEOF
5734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } >/dev/null; then
5742  if test -s conftest.err; then
5743    ac_cpp_err=$ac_c_preproc_warn_flag
5744    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5745  else
5746    ac_cpp_err=
5747  fi
5748else
5749  ac_cpp_err=yes
5750fi
5751if test -z "$ac_cpp_err"; then
5752  ac_header_preproc=yes
5753else
5754  echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757  ac_header_preproc=no
5758fi
5759rm -f conftest.err conftest.$ac_ext
5760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5761echo "${ECHO_T}$ac_header_preproc" >&6
5762
5763# So?  What about this header?
5764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5765  yes:no: )
5766    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5768    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5770    ac_header_preproc=yes
5771    ;;
5772  no:yes:* )
5773    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5776echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5777    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5779    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5780echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5781    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5783    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5785    (
5786      cat <<\_ASBOX
5787## ------------------------------- ##
5788## Report this to the Xbae lists.  ##
5789## ------------------------------- ##
5790_ASBOX
5791    ) |
5792      sed "s/^/$as_me: WARNING:     /" >&2
5793    ;;
5794esac
5795echo "$as_me:$LINENO: checking for $ac_header" >&5
5796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5797if eval "test \"\${$as_ac_Header+set}\" = set"; then
5798  echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800  eval "$as_ac_Header=\$ac_header_preproc"
5801fi
5802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5804
5805fi
5806if test `eval echo '${'$as_ac_Header'}'` = yes; then
5807  cat >>confdefs.h <<_ACEOF
5808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809_ACEOF
5810
5811fi
5812
5813done
5814
5815ac_ext=cc
5816ac_cpp='$CXXCPP $CPPFLAGS'
5817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5820if test -n "$ac_tool_prefix"; then
5821  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5822  do
5823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5825echo "$as_me:$LINENO: checking for $ac_word" >&5
5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827if test "${ac_cv_prog_CXX+set}" = set; then
5828  echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830  if test -n "$CXX"; then
5831  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836  IFS=$as_save_IFS
5837  test -z "$as_dir" && as_dir=.
5838  for ac_exec_ext in '' $ac_executable_extensions; do
5839  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842    break 2
5843  fi
5844done
5845done
5846
5847fi
5848fi
5849CXX=$ac_cv_prog_CXX
5850if test -n "$CXX"; then
5851  echo "$as_me:$LINENO: result: $CXX" >&5
5852echo "${ECHO_T}$CXX" >&6
5853else
5854  echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6
5856fi
5857
5858    test -n "$CXX" && break
5859  done
5860fi
5861if test -z "$CXX"; then
5862  ac_ct_CXX=$CXX
5863  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5864do
5865  # Extract the first word of "$ac_prog", so it can be a program name with args.
5866set dummy $ac_prog; ac_word=$2
5867echo "$as_me:$LINENO: checking for $ac_word" >&5
5868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5869if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872  if test -n "$ac_ct_CXX"; then
5873  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5874else
5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876for as_dir in $PATH
5877do
5878  IFS=$as_save_IFS
5879  test -z "$as_dir" && as_dir=.
5880  for ac_exec_ext in '' $ac_executable_extensions; do
5881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882    ac_cv_prog_ac_ct_CXX="$ac_prog"
5883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884    break 2
5885  fi
5886done
5887done
5888
5889fi
5890fi
5891ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5892if test -n "$ac_ct_CXX"; then
5893  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5894echo "${ECHO_T}$ac_ct_CXX" >&6
5895else
5896  echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
5898fi
5899
5900  test -n "$ac_ct_CXX" && break
5901done
5902test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5903
5904  CXX=$ac_ct_CXX
5905fi
5906
5907
5908# Provide some information about the compiler.
5909echo "$as_me:$LINENO:" \
5910     "checking for C++ compiler version" >&5
5911ac_compiler=`set X $ac_compile; echo $2`
5912{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5913  (eval $ac_compiler --version </dev/null >&5) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }
5917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5918  (eval $ac_compiler -v </dev/null >&5) 2>&5
5919  ac_status=$?
5920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921  (exit $ac_status); }
5922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5923  (eval $ac_compiler -V </dev/null >&5) 2>&5
5924  ac_status=$?
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); }
5927
5928echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5929echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5930if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5931  echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933  cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h.  */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h.  */
5939
5940int
5941main ()
5942{
5943#ifndef __GNUC__
5944       choke me
5945#endif
5946
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951rm -f conftest.$ac_objext
5952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953  (eval $ac_compile) 2>conftest.er1
5954  ac_status=$?
5955  grep -v '^ *+' conftest.er1 >conftest.err
5956  rm -f conftest.er1
5957  cat conftest.err >&5
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); } &&
5960	 { ac_try='test -z "$ac_cxx_werror_flag"
5961			 || test ! -s conftest.err'
5962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963  (eval $ac_try) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); }; } &&
5967	 { ac_try='test -s conftest.$ac_objext'
5968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969  (eval $ac_try) 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }; }; then
5973  ac_compiler_gnu=yes
5974else
5975  echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978ac_compiler_gnu=no
5979fi
5980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5982
5983fi
5984echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5985echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5986GXX=`test $ac_compiler_gnu = yes && echo yes`
5987ac_test_CXXFLAGS=${CXXFLAGS+set}
5988ac_save_CXXFLAGS=$CXXFLAGS
5989CXXFLAGS="-g"
5990echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5991echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5992if test "${ac_cv_prog_cxx_g+set}" = set; then
5993  echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995  cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h.  */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h.  */
6001
6002int
6003main ()
6004{
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010rm -f conftest.$ac_objext
6011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012  (eval $ac_compile) 2>conftest.er1
6013  ac_status=$?
6014  grep -v '^ *+' conftest.er1 >conftest.err
6015  rm -f conftest.er1
6016  cat conftest.err >&5
6017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018  (exit $ac_status); } &&
6019	 { ac_try='test -z "$ac_cxx_werror_flag"
6020			 || test ! -s conftest.err'
6021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022  (eval $ac_try) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }; } &&
6026	 { ac_try='test -s conftest.$ac_objext'
6027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028  (eval $ac_try) 2>&5
6029  ac_status=$?
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); }; }; then
6032  ac_cv_prog_cxx_g=yes
6033else
6034  echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037ac_cv_prog_cxx_g=no
6038fi
6039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6040fi
6041echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6042echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6043if test "$ac_test_CXXFLAGS" = set; then
6044  CXXFLAGS=$ac_save_CXXFLAGS
6045elif test $ac_cv_prog_cxx_g = yes; then
6046  if test "$GXX" = yes; then
6047    CXXFLAGS="-g -O2"
6048  else
6049    CXXFLAGS="-g"
6050  fi
6051else
6052  if test "$GXX" = yes; then
6053    CXXFLAGS="-O2"
6054  else
6055    CXXFLAGS=
6056  fi
6057fi
6058for ac_declaration in \
6059   '' \
6060   'extern "C" void std::exit (int) throw (); using std::exit;' \
6061   'extern "C" void std::exit (int); using std::exit;' \
6062   'extern "C" void exit (int) throw ();' \
6063   'extern "C" void exit (int);' \
6064   'void exit (int);'
6065do
6066  cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h.  */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h.  */
6072$ac_declaration
6073#include <stdlib.h>
6074int
6075main ()
6076{
6077exit (42);
6078  ;
6079  return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext
6083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084  (eval $ac_compile) 2>conftest.er1
6085  ac_status=$?
6086  grep -v '^ *+' conftest.er1 >conftest.err
6087  rm -f conftest.er1
6088  cat conftest.err >&5
6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090  (exit $ac_status); } &&
6091	 { ac_try='test -z "$ac_cxx_werror_flag"
6092			 || test ! -s conftest.err'
6093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094  (eval $ac_try) 2>&5
6095  ac_status=$?
6096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097  (exit $ac_status); }; } &&
6098	 { ac_try='test -s conftest.$ac_objext'
6099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100  (eval $ac_try) 2>&5
6101  ac_status=$?
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); }; }; then
6104  :
6105else
6106  echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109continue
6110fi
6111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112  cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h.  */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h.  */
6118$ac_declaration
6119int
6120main ()
6121{
6122exit (42);
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127rm -f conftest.$ac_objext
6128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129  (eval $ac_compile) 2>conftest.er1
6130  ac_status=$?
6131  grep -v '^ *+' conftest.er1 >conftest.err
6132  rm -f conftest.er1
6133  cat conftest.err >&5
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } &&
6136	 { ac_try='test -z "$ac_cxx_werror_flag"
6137			 || test ! -s conftest.err'
6138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139  (eval $ac_try) 2>&5
6140  ac_status=$?
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); }; } &&
6143	 { ac_try='test -s conftest.$ac_objext'
6144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145  (eval $ac_try) 2>&5
6146  ac_status=$?
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); }; }; then
6149  break
6150else
6151  echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154fi
6155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6156done
6157rm -f conftest*
6158if test -n "$ac_declaration"; then
6159  echo '#ifdef __cplusplus' >>confdefs.h
6160  echo $ac_declaration      >>confdefs.h
6161  echo '#endif'             >>confdefs.h
6162fi
6163
6164ac_ext=cc
6165ac_cpp='$CXXCPP $CPPFLAGS'
6166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6169
6170depcc="$CXX"  am_compiler_list=
6171
6172echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6173echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6174if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6175  echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6178  # We make a subdir and do the tests there.  Otherwise we can end up
6179  # making bogus files that we don't know about and never remove.  For
6180  # instance it was reported that on HP-UX the gcc test will end up
6181  # making a dummy file named `D' -- because `-MD' means `put the output
6182  # in D'.
6183  mkdir conftest.dir
6184  # Copy depcomp to subdir because otherwise we won't find it if we're
6185  # using a relative directory.
6186  cp "$am_depcomp" conftest.dir
6187  cd conftest.dir
6188  # We will build objects and dependencies in a subdirectory because
6189  # it helps to detect inapplicable dependency modes.  For instance
6190  # both Tru64's cc and ICC support -MD to output dependencies as a
6191  # side effect of compilation, but ICC will put the dependencies in
6192  # the current directory while Tru64 will put them in the object
6193  # directory.
6194  mkdir sub
6195
6196  am_cv_CXX_dependencies_compiler_type=none
6197  if test "$am_compiler_list" = ""; then
6198     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6199  fi
6200  for depmode in $am_compiler_list; do
6201    # Setup a source with many dependencies, because some compilers
6202    # like to wrap large dependency lists on column 80 (with \), and
6203    # we should not choose a depcomp mode which is confused by this.
6204    #
6205    # We need to recreate these files for each test, as the compiler may
6206    # overwrite some of them when testing with obscure command lines.
6207    # This happens at least with the AIX C compiler.
6208    : > sub/conftest.c
6209    for i in 1 2 3 4 5 6; do
6210      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6211      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6212      # Solaris 8's {/usr,}/bin/sh.
6213      touch sub/conftst$i.h
6214    done
6215    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6216
6217    case $depmode in
6218    nosideeffect)
6219      # after this tag, mechanisms are not by side-effect, so they'll
6220      # only be used when explicitly requested
6221      if test "x$enable_dependency_tracking" = xyes; then
6222	continue
6223      else
6224	break
6225      fi
6226      ;;
6227    none) break ;;
6228    esac
6229    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6230    # mode.  It turns out that the SunPro C++ compiler does not properly
6231    # handle `-M -o', and we need to detect this.
6232    if depmode=$depmode \
6233       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6234       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6235       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6236         >/dev/null 2>conftest.err &&
6237       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6238       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6239       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6240      # icc doesn't choke on unknown options, it will just issue warnings
6241      # or remarks (even with -Werror).  So we grep stderr for any message
6242      # that says an option was ignored or not supported.
6243      # When given -MP, icc 7.0 and 7.1 complain thusly:
6244      #   icc: Command line warning: ignoring option '-M'; no argument required
6245      # The diagnosis changed in icc 8.0:
6246      #   icc: Command line remark: option '-MP' not supported
6247      if (grep 'ignoring option' conftest.err ||
6248          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6249        am_cv_CXX_dependencies_compiler_type=$depmode
6250        break
6251      fi
6252    fi
6253  done
6254
6255  cd ..
6256  rm -rf conftest.dir
6257else
6258  am_cv_CXX_dependencies_compiler_type=none
6259fi
6260
6261fi
6262echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6263echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6264CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6265
6266
6267
6268if
6269  test "x$enable_dependency_tracking" != xno \
6270  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6271  am__fastdepCXX_TRUE=
6272  am__fastdepCXX_FALSE='#'
6273else
6274  am__fastdepCXX_TRUE='#'
6275  am__fastdepCXX_FALSE=
6276fi
6277
6278
6279
6280
6281if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6282    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6283    (test "X$CXX" != "Xg++"))) ; then
6284  ac_ext=cc
6285ac_cpp='$CXXCPP $CPPFLAGS'
6286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6289echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6290echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6291if test -z "$CXXCPP"; then
6292  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6293  echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295      # Double quotes because CXXCPP needs to be expanded
6296    for CXXCPP in "$CXX -E" "/lib/cpp"
6297    do
6298      ac_preproc_ok=false
6299for ac_cxx_preproc_warn_flag in '' yes
6300do
6301  # Use a header file that comes with gcc, so configuring glibc
6302  # with a fresh cross-compiler works.
6303  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6304  # <limits.h> exists even on freestanding compilers.
6305  # On the NeXT, cc -E runs the code through the compiler's parser,
6306  # not just through cpp. "Syntax error" is here to catch this case.
6307  cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h.  */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h.  */
6313#ifdef __STDC__
6314# include <limits.h>
6315#else
6316# include <assert.h>
6317#endif
6318		     Syntax error
6319_ACEOF
6320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322  ac_status=$?
6323  grep -v '^ *+' conftest.er1 >conftest.err
6324  rm -f conftest.er1
6325  cat conftest.err >&5
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); } >/dev/null; then
6328  if test -s conftest.err; then
6329    ac_cpp_err=$ac_cxx_preproc_warn_flag
6330    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6331  else
6332    ac_cpp_err=
6333  fi
6334else
6335  ac_cpp_err=yes
6336fi
6337if test -z "$ac_cpp_err"; then
6338  :
6339else
6340  echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343  # Broken: fails on valid input.
6344continue
6345fi
6346rm -f conftest.err conftest.$ac_ext
6347
6348  # OK, works on sane cases.  Now check whether non-existent headers
6349  # can be detected and how.
6350  cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h.  */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h.  */
6356#include <ac_nonexistent.h>
6357_ACEOF
6358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6360  ac_status=$?
6361  grep -v '^ *+' conftest.er1 >conftest.err
6362  rm -f conftest.er1
6363  cat conftest.err >&5
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); } >/dev/null; then
6366  if test -s conftest.err; then
6367    ac_cpp_err=$ac_cxx_preproc_warn_flag
6368    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6369  else
6370    ac_cpp_err=
6371  fi
6372else
6373  ac_cpp_err=yes
6374fi
6375if test -z "$ac_cpp_err"; then
6376  # Broken: success on invalid input.
6377continue
6378else
6379  echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382  # Passes both tests.
6383ac_preproc_ok=:
6384break
6385fi
6386rm -f conftest.err conftest.$ac_ext
6387
6388done
6389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6390rm -f conftest.err conftest.$ac_ext
6391if $ac_preproc_ok; then
6392  break
6393fi
6394
6395    done
6396    ac_cv_prog_CXXCPP=$CXXCPP
6397
6398fi
6399  CXXCPP=$ac_cv_prog_CXXCPP
6400else
6401  ac_cv_prog_CXXCPP=$CXXCPP
6402fi
6403echo "$as_me:$LINENO: result: $CXXCPP" >&5
6404echo "${ECHO_T}$CXXCPP" >&6
6405ac_preproc_ok=false
6406for ac_cxx_preproc_warn_flag in '' yes
6407do
6408  # Use a header file that comes with gcc, so configuring glibc
6409  # with a fresh cross-compiler works.
6410  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6411  # <limits.h> exists even on freestanding compilers.
6412  # On the NeXT, cc -E runs the code through the compiler's parser,
6413  # not just through cpp. "Syntax error" is here to catch this case.
6414  cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h.  */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h.  */
6420#ifdef __STDC__
6421# include <limits.h>
6422#else
6423# include <assert.h>
6424#endif
6425		     Syntax error
6426_ACEOF
6427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6428  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429  ac_status=$?
6430  grep -v '^ *+' conftest.er1 >conftest.err
6431  rm -f conftest.er1
6432  cat conftest.err >&5
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); } >/dev/null; then
6435  if test -s conftest.err; then
6436    ac_cpp_err=$ac_cxx_preproc_warn_flag
6437    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6438  else
6439    ac_cpp_err=
6440  fi
6441else
6442  ac_cpp_err=yes
6443fi
6444if test -z "$ac_cpp_err"; then
6445  :
6446else
6447  echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450  # Broken: fails on valid input.
6451continue
6452fi
6453rm -f conftest.err conftest.$ac_ext
6454
6455  # OK, works on sane cases.  Now check whether non-existent headers
6456  # can be detected and how.
6457  cat >conftest.$ac_ext <<_ACEOF
6458/* confdefs.h.  */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h.  */
6463#include <ac_nonexistent.h>
6464_ACEOF
6465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6466  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467  ac_status=$?
6468  grep -v '^ *+' conftest.er1 >conftest.err
6469  rm -f conftest.er1
6470  cat conftest.err >&5
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); } >/dev/null; then
6473  if test -s conftest.err; then
6474    ac_cpp_err=$ac_cxx_preproc_warn_flag
6475    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6476  else
6477    ac_cpp_err=
6478  fi
6479else
6480  ac_cpp_err=yes
6481fi
6482if test -z "$ac_cpp_err"; then
6483  # Broken: success on invalid input.
6484continue
6485else
6486  echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489  # Passes both tests.
6490ac_preproc_ok=:
6491break
6492fi
6493rm -f conftest.err conftest.$ac_ext
6494
6495done
6496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6497rm -f conftest.err conftest.$ac_ext
6498if $ac_preproc_ok; then
6499  :
6500else
6501  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6502See \`config.log' for more details." >&5
6503echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6504See \`config.log' for more details." >&2;}
6505   { (exit 1); exit 1; }; }
6506fi
6507
6508ac_ext=cc
6509ac_cpp='$CXXCPP $CPPFLAGS'
6510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6513
6514fi
6515
6516
6517ac_ext=f
6518ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6519ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6521if test -n "$ac_tool_prefix"; then
6522  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6523  do
6524    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6526echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528if test "${ac_cv_prog_F77+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  if test -n "$F77"; then
6532  ac_cv_prog_F77="$F77" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  test -z "$as_dir" && as_dir=.
6539  for ac_exec_ext in '' $ac_executable_extensions; do
6540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543    break 2
6544  fi
6545done
6546done
6547
6548fi
6549fi
6550F77=$ac_cv_prog_F77
6551if test -n "$F77"; then
6552  echo "$as_me:$LINENO: result: $F77" >&5
6553echo "${ECHO_T}$F77" >&6
6554else
6555  echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557fi
6558
6559    test -n "$F77" && break
6560  done
6561fi
6562if test -z "$F77"; then
6563  ac_ct_F77=$F77
6564  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6565do
6566  # Extract the first word of "$ac_prog", so it can be a program name with args.
6567set dummy $ac_prog; ac_word=$2
6568echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6570if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  if test -n "$ac_ct_F77"; then
6574  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6575else
6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579  IFS=$as_save_IFS
6580  test -z "$as_dir" && as_dir=.
6581  for ac_exec_ext in '' $ac_executable_extensions; do
6582  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583    ac_cv_prog_ac_ct_F77="$ac_prog"
6584    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585    break 2
6586  fi
6587done
6588done
6589
6590fi
6591fi
6592ac_ct_F77=$ac_cv_prog_ac_ct_F77
6593if test -n "$ac_ct_F77"; then
6594  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6595echo "${ECHO_T}$ac_ct_F77" >&6
6596else
6597  echo "$as_me:$LINENO: result: no" >&5
6598echo "${ECHO_T}no" >&6
6599fi
6600
6601  test -n "$ac_ct_F77" && break
6602done
6603
6604  F77=$ac_ct_F77
6605fi
6606
6607
6608# Provide some information about the compiler.
6609echo "$as_me:6609:" \
6610     "checking for Fortran 77 compiler version" >&5
6611ac_compiler=`set X $ac_compile; echo $2`
6612{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6613  (eval $ac_compiler --version </dev/null >&5) 2>&5
6614  ac_status=$?
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); }
6617{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6618  (eval $ac_compiler -v </dev/null >&5) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }
6622{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6623  (eval $ac_compiler -V </dev/null >&5) 2>&5
6624  ac_status=$?
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); }
6627rm -f a.out
6628
6629# If we don't use `.F' as extension, the preprocessor is not run on the
6630# input file.  (Note that this only needs to work for GNU compilers.)
6631ac_save_ext=$ac_ext
6632ac_ext=F
6633echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6634echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6635if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638  cat >conftest.$ac_ext <<_ACEOF
6639      program main
6640#ifndef __GNUC__
6641       choke me
6642#endif
6643
6644      end
6645_ACEOF
6646rm -f conftest.$ac_objext
6647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648  (eval $ac_compile) 2>conftest.er1
6649  ac_status=$?
6650  grep -v '^ *+' conftest.er1 >conftest.err
6651  rm -f conftest.er1
6652  cat conftest.err >&5
6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654  (exit $ac_status); } &&
6655	 { ac_try='test -z "$ac_f77_werror_flag"
6656			 || test ! -s conftest.err'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; } &&
6662	 { ac_try='test -s conftest.$ac_objext'
6663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664  (eval $ac_try) 2>&5
6665  ac_status=$?
6666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667  (exit $ac_status); }; }; then
6668  ac_compiler_gnu=yes
6669else
6670  echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
6673ac_compiler_gnu=no
6674fi
6675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6676ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6677
6678fi
6679echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6680echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6681ac_ext=$ac_save_ext
6682ac_test_FFLAGS=${FFLAGS+set}
6683ac_save_FFLAGS=$FFLAGS
6684FFLAGS=
6685echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6686echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6687if test "${ac_cv_prog_f77_g+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690  FFLAGS=-g
6691cat >conftest.$ac_ext <<_ACEOF
6692      program main
6693
6694      end
6695_ACEOF
6696rm -f conftest.$ac_objext
6697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6698  (eval $ac_compile) 2>conftest.er1
6699  ac_status=$?
6700  grep -v '^ *+' conftest.er1 >conftest.err
6701  rm -f conftest.er1
6702  cat conftest.err >&5
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); } &&
6705	 { ac_try='test -z "$ac_f77_werror_flag"
6706			 || test ! -s conftest.err'
6707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708  (eval $ac_try) 2>&5
6709  ac_status=$?
6710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); }; } &&
6712	 { ac_try='test -s conftest.$ac_objext'
6713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714  (eval $ac_try) 2>&5
6715  ac_status=$?
6716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717  (exit $ac_status); }; }; then
6718  ac_cv_prog_f77_g=yes
6719else
6720  echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723ac_cv_prog_f77_g=no
6724fi
6725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726
6727fi
6728echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6729echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6730if test "$ac_test_FFLAGS" = set; then
6731  FFLAGS=$ac_save_FFLAGS
6732elif test $ac_cv_prog_f77_g = yes; then
6733  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6734    FFLAGS="-g -O2"
6735  else
6736    FFLAGS="-g"
6737  fi
6738else
6739  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6740    FFLAGS="-O2"
6741  else
6742    FFLAGS=
6743  fi
6744fi
6745
6746G77=`test $ac_compiler_gnu = yes && echo yes`
6747ac_ext=c
6748ac_cpp='$CPP $CPPFLAGS'
6749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752
6753
6754
6755# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6756
6757# find the maximum length of command line arguments
6758echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6759echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6760if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6761  echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763    i=0
6764  teststring="ABCD"
6765
6766  case $build_os in
6767  msdosdjgpp*)
6768    # On DJGPP, this test can blow up pretty badly due to problems in libc
6769    # (any single argument exceeding 2000 bytes causes a buffer overrun
6770    # during glob expansion).  Even if it were fixed, the result of this
6771    # check would be larger than it should be.
6772    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6773    ;;
6774
6775  gnu*)
6776    # Under GNU Hurd, this test is not required because there is
6777    # no limit to the length of command line arguments.
6778    # Libtool will interpret -1 as no limit whatsoever
6779    lt_cv_sys_max_cmd_len=-1;
6780    ;;
6781
6782  cygwin* | mingw*)
6783    # On Win9x/ME, this test blows up -- it succeeds, but takes
6784    # about 5 minutes as the teststring grows exponentially.
6785    # Worse, since 9x/ME are not pre-emptively multitasking,
6786    # you end up with a "frozen" computer, even though with patience
6787    # the test eventually succeeds (with a max line length of 256k).
6788    # Instead, let's just punt: use the minimum linelength reported by
6789    # all of the supported platforms: 8192 (on NT/2K/XP).
6790    lt_cv_sys_max_cmd_len=8192;
6791    ;;
6792
6793  amigaos*)
6794    # On AmigaOS with pdksh, this test takes hours, literally.
6795    # So we just punt and use a minimum line length of 8192.
6796    lt_cv_sys_max_cmd_len=8192;
6797    ;;
6798
6799  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6800    # This has been around since 386BSD, at least.  Likely further.
6801    if test -x /sbin/sysctl; then
6802      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6803    elif test -x /usr/sbin/sysctl; then
6804      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6805    else
6806      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6807    fi
6808    # And add a safety zone
6809    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6810    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6811    ;;
6812
6813  interix*)
6814    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6815    lt_cv_sys_max_cmd_len=196608
6816    ;;
6817
6818  osf*)
6819    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6820    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6821    # nice to cause kernel panics so lets avoid the loop below.
6822    # First set a reasonable default.
6823    lt_cv_sys_max_cmd_len=16384
6824    #
6825    if test -x /sbin/sysconfig; then
6826      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6827        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6828      esac
6829    fi
6830    ;;
6831  sco3.2v5*)
6832    lt_cv_sys_max_cmd_len=102400
6833    ;;
6834  sysv5* | sco5v6* | sysv4.2uw2*)
6835    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6836    if test -n "$kargmax"; then
6837      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6838    else
6839      lt_cv_sys_max_cmd_len=32768
6840    fi
6841    ;;
6842  *)
6843    # If test is not a shell built-in, we'll probably end up computing a
6844    # maximum length that is only half of the actual maximum length, but
6845    # we can't tell.
6846    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6847    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6848	       = "XX$teststring") >/dev/null 2>&1 &&
6849	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6850	    lt_cv_sys_max_cmd_len=$new_result &&
6851	    test $i != 17 # 1/2 MB should be enough
6852    do
6853      i=`expr $i + 1`
6854      teststring=$teststring$teststring
6855    done
6856    teststring=
6857    # Add a significant safety factor because C++ compilers can tack on massive
6858    # amounts of additional arguments before passing them to the linker.
6859    # It appears as though 1/2 is a usable value.
6860    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6861    ;;
6862  esac
6863
6864fi
6865
6866if test -n $lt_cv_sys_max_cmd_len ; then
6867  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6868echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6869else
6870  echo "$as_me:$LINENO: result: none" >&5
6871echo "${ECHO_T}none" >&6
6872fi
6873
6874
6875
6876
6877# Check for command to grab the raw symbol name followed by C symbol from nm.
6878echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6879echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6880if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6881  echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883
6884# These are sane defaults that work on at least a few old systems.
6885# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6886
6887# Character class describing NM global symbol codes.
6888symcode='[BCDEGRST]'
6889
6890# Regexp to match symbols that can be accessed directly from C.
6891sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6892
6893# Transform an extracted symbol line into a proper C declaration
6894lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6895
6896# Transform an extracted symbol line into symbol name and symbol address
6897lt_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'"
6898
6899# Define system-specific variables.
6900case $host_os in
6901aix*)
6902  symcode='[BCDT]'
6903  ;;
6904cygwin* | mingw* | pw32*)
6905  symcode='[ABCDGISTW]'
6906  ;;
6907hpux*) # Its linker distinguishes data from code symbols
6908  if test "$host_cpu" = ia64; then
6909    symcode='[ABCDEGRST]'
6910  fi
6911  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6912  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'"
6913  ;;
6914linux*)
6915  if test "$host_cpu" = ia64; then
6916    symcode='[ABCDGIRSTW]'
6917    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6918    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'"
6919  fi
6920  ;;
6921irix* | nonstopux*)
6922  symcode='[BCDEGRST]'
6923  ;;
6924osf*)
6925  symcode='[BCDEGQRST]'
6926  ;;
6927solaris*)
6928  symcode='[BDRT]'
6929  ;;
6930sco3.2v5*)
6931  symcode='[DT]'
6932  ;;
6933sysv4.2uw2*)
6934  symcode='[DT]'
6935  ;;
6936sysv5* | sco5v6* | unixware* | OpenUNIX*)
6937  symcode='[ABDT]'
6938  ;;
6939sysv4)
6940  symcode='[DFNSTU]'
6941  ;;
6942esac
6943
6944# Handle CRLF in mingw tool chain
6945opt_cr=
6946case $build_os in
6947mingw*)
6948  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6949  ;;
6950esac
6951
6952# If we're using GNU nm, then use its standard symbol codes.
6953case `$NM -V 2>&1` in
6954*GNU* | *'with BFD'*)
6955  symcode='[ABCDGIRSTW]' ;;
6956esac
6957
6958# Try without a prefix undercore, then with it.
6959for ac_symprfx in "" "_"; do
6960
6961  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6962  symxfrm="\\1 $ac_symprfx\\2 \\2"
6963
6964  # Write the raw and C identifiers.
6965  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6966
6967  # Check to see that the pipe works correctly.
6968  pipe_works=no
6969
6970  rm -f conftest*
6971  cat > conftest.$ac_ext <<EOF
6972#ifdef __cplusplus
6973extern "C" {
6974#endif
6975char nm_test_var;
6976void nm_test_func(){}
6977#ifdef __cplusplus
6978}
6979#endif
6980int main(){nm_test_var='a';nm_test_func();return(0);}
6981EOF
6982
6983  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984  (eval $ac_compile) 2>&5
6985  ac_status=$?
6986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987  (exit $ac_status); }; then
6988    # Now try to grab the symbols.
6989    nlist=conftest.nm
6990    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6991  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6992  ac_status=$?
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); } && test -s "$nlist"; then
6995      # Try sorting and uniquifying the output.
6996      if sort "$nlist" | uniq > "$nlist"T; then
6997	mv -f "$nlist"T "$nlist"
6998      else
6999	rm -f "$nlist"T
7000      fi
7001
7002      # Make sure that we snagged all the symbols we need.
7003      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7004	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7005	  cat <<EOF > conftest.$ac_ext
7006#ifdef __cplusplus
7007extern "C" {
7008#endif
7009
7010EOF
7011	  # Now generate the symbol file.
7012	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7013
7014	  cat <<EOF >> conftest.$ac_ext
7015#if defined (__STDC__) && __STDC__
7016# define lt_ptr_t void *
7017#else
7018# define lt_ptr_t char *
7019# define const
7020#endif
7021
7022/* The mapping between symbol names and symbols. */
7023const struct {
7024  const char *name;
7025  lt_ptr_t address;
7026}
7027lt_preloaded_symbols[] =
7028{
7029EOF
7030	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7031	  cat <<\EOF >> conftest.$ac_ext
7032  {0, (lt_ptr_t) 0}
7033};
7034
7035#ifdef __cplusplus
7036}
7037#endif
7038EOF
7039	  # Now try linking the two files.
7040	  mv conftest.$ac_objext conftstm.$ac_objext
7041	  lt_save_LIBS="$LIBS"
7042	  lt_save_CFLAGS="$CFLAGS"
7043	  LIBS="conftstm.$ac_objext"
7044	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7045	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046  (eval $ac_link) 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7050	    pipe_works=yes
7051	  fi
7052	  LIBS="$lt_save_LIBS"
7053	  CFLAGS="$lt_save_CFLAGS"
7054	else
7055	  echo "cannot find nm_test_func in $nlist" >&5
7056	fi
7057      else
7058	echo "cannot find nm_test_var in $nlist" >&5
7059      fi
7060    else
7061      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7062    fi
7063  else
7064    echo "$progname: failed program was:" >&5
7065    cat conftest.$ac_ext >&5
7066  fi
7067  rm -f conftest* conftst*
7068
7069  # Do not use the global_symbol_pipe unless it works.
7070  if test "$pipe_works" = yes; then
7071    break
7072  else
7073    lt_cv_sys_global_symbol_pipe=
7074  fi
7075done
7076
7077fi
7078
7079if test -z "$lt_cv_sys_global_symbol_pipe"; then
7080  lt_cv_sys_global_symbol_to_cdecl=
7081fi
7082if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083  echo "$as_me:$LINENO: result: failed" >&5
7084echo "${ECHO_T}failed" >&6
7085else
7086  echo "$as_me:$LINENO: result: ok" >&5
7087echo "${ECHO_T}ok" >&6
7088fi
7089
7090echo "$as_me:$LINENO: checking for objdir" >&5
7091echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7092if test "${lt_cv_objdir+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  rm -f .libs 2>/dev/null
7096mkdir .libs 2>/dev/null
7097if test -d .libs; then
7098  lt_cv_objdir=.libs
7099else
7100  # MS-DOS does not allow filenames that begin with a dot.
7101  lt_cv_objdir=_libs
7102fi
7103rmdir .libs 2>/dev/null
7104fi
7105echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7106echo "${ECHO_T}$lt_cv_objdir" >&6
7107objdir=$lt_cv_objdir
7108
7109
7110
7111
7112
7113case $host_os in
7114aix3*)
7115  # AIX sometimes has problems with the GCC collect2 program.  For some
7116  # reason, if we set the COLLECT_NAMES environment variable, the problems
7117  # vanish in a puff of smoke.
7118  if test "X${COLLECT_NAMES+set}" != Xset; then
7119    COLLECT_NAMES=
7120    export COLLECT_NAMES
7121  fi
7122  ;;
7123esac
7124
7125# Sed substitution that helps us do robust quoting.  It backslashifies
7126# metacharacters that are still active within double-quoted strings.
7127Xsed='sed -e 1s/^X//'
7128sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7129
7130# Same as above, but do not quote variable references.
7131double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7132
7133# Sed substitution to delay expansion of an escaped shell variable in a
7134# double_quote_subst'ed string.
7135delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7136
7137# Sed substitution to avoid accidental globbing in evaled expressions
7138no_glob_subst='s/\*/\\\*/g'
7139
7140# Constants:
7141rm="rm -f"
7142
7143# Global variables:
7144default_ofile=libtool
7145can_build_shared=yes
7146
7147# All known linkers require a `.a' archive for static linking (except MSVC,
7148# which needs '.lib').
7149libext=a
7150ltmain="$ac_aux_dir/ltmain.sh"
7151ofile="$default_ofile"
7152with_gnu_ld="$lt_cv_prog_gnu_ld"
7153
7154if test -n "$ac_tool_prefix"; then
7155  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7156set dummy ${ac_tool_prefix}ar; ac_word=$2
7157echo "$as_me:$LINENO: checking for $ac_word" >&5
7158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7159if test "${ac_cv_prog_AR+set}" = set; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162  if test -n "$AR"; then
7163  ac_cv_prog_AR="$AR" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168  IFS=$as_save_IFS
7169  test -z "$as_dir" && as_dir=.
7170  for ac_exec_ext in '' $ac_executable_extensions; do
7171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172    ac_cv_prog_AR="${ac_tool_prefix}ar"
7173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174    break 2
7175  fi
7176done
7177done
7178
7179fi
7180fi
7181AR=$ac_cv_prog_AR
7182if test -n "$AR"; then
7183  echo "$as_me:$LINENO: result: $AR" >&5
7184echo "${ECHO_T}$AR" >&6
7185else
7186  echo "$as_me:$LINENO: result: no" >&5
7187echo "${ECHO_T}no" >&6
7188fi
7189
7190fi
7191if test -z "$ac_cv_prog_AR"; then
7192  ac_ct_AR=$AR
7193  # Extract the first word of "ar", so it can be a program name with args.
7194set dummy ar; ac_word=$2
7195echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7197if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7198  echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200  if test -n "$ac_ct_AR"; then
7201  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208  for ac_exec_ext in '' $ac_executable_extensions; do
7209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210    ac_cv_prog_ac_ct_AR="ar"
7211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215done
7216
7217  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7218fi
7219fi
7220ac_ct_AR=$ac_cv_prog_ac_ct_AR
7221if test -n "$ac_ct_AR"; then
7222  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7223echo "${ECHO_T}$ac_ct_AR" >&6
7224else
7225  echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
7227fi
7228
7229  AR=$ac_ct_AR
7230else
7231  AR="$ac_cv_prog_AR"
7232fi
7233
7234if test -n "$ac_tool_prefix"; then
7235  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7237echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239if test "${ac_cv_prog_RANLIB+set}" = set; then
7240  echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242  if test -n "$RANLIB"; then
7243  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248  IFS=$as_save_IFS
7249  test -z "$as_dir" && as_dir=.
7250  for ac_exec_ext in '' $ac_executable_extensions; do
7251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254    break 2
7255  fi
7256done
7257done
7258
7259fi
7260fi
7261RANLIB=$ac_cv_prog_RANLIB
7262if test -n "$RANLIB"; then
7263  echo "$as_me:$LINENO: result: $RANLIB" >&5
7264echo "${ECHO_T}$RANLIB" >&6
7265else
7266  echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
7268fi
7269
7270fi
7271if test -z "$ac_cv_prog_RANLIB"; then
7272  ac_ct_RANLIB=$RANLIB
7273  # Extract the first word of "ranlib", so it can be a program name with args.
7274set dummy ranlib; ac_word=$2
7275echo "$as_me:$LINENO: checking for $ac_word" >&5
7276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7277if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7278  echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280  if test -n "$ac_ct_RANLIB"; then
7281  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  test -z "$as_dir" && as_dir=.
7288  for ac_exec_ext in '' $ac_executable_extensions; do
7289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290    ac_cv_prog_ac_ct_RANLIB="ranlib"
7291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292    break 2
7293  fi
7294done
7295done
7296
7297  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7298fi
7299fi
7300ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7301if test -n "$ac_ct_RANLIB"; then
7302  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7303echo "${ECHO_T}$ac_ct_RANLIB" >&6
7304else
7305  echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6
7307fi
7308
7309  RANLIB=$ac_ct_RANLIB
7310else
7311  RANLIB="$ac_cv_prog_RANLIB"
7312fi
7313
7314if test -n "$ac_tool_prefix"; then
7315  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7316set dummy ${ac_tool_prefix}strip; ac_word=$2
7317echo "$as_me:$LINENO: checking for $ac_word" >&5
7318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7319if test "${ac_cv_prog_STRIP+set}" = set; then
7320  echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322  if test -n "$STRIP"; then
7323  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328  IFS=$as_save_IFS
7329  test -z "$as_dir" && as_dir=.
7330  for ac_exec_ext in '' $ac_executable_extensions; do
7331  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334    break 2
7335  fi
7336done
7337done
7338
7339fi
7340fi
7341STRIP=$ac_cv_prog_STRIP
7342if test -n "$STRIP"; then
7343  echo "$as_me:$LINENO: result: $STRIP" >&5
7344echo "${ECHO_T}$STRIP" >&6
7345else
7346  echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6
7348fi
7349
7350fi
7351if test -z "$ac_cv_prog_STRIP"; then
7352  ac_ct_STRIP=$STRIP
7353  # Extract the first word of "strip", so it can be a program name with args.
7354set dummy strip; ac_word=$2
7355echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7358  echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360  if test -n "$ac_ct_STRIP"; then
7361  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368  for ac_exec_ext in '' $ac_executable_extensions; do
7369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370    ac_cv_prog_ac_ct_STRIP="strip"
7371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375done
7376
7377  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7378fi
7379fi
7380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7381if test -n "$ac_ct_STRIP"; then
7382  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7383echo "${ECHO_T}$ac_ct_STRIP" >&6
7384else
7385  echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6
7387fi
7388
7389  STRIP=$ac_ct_STRIP
7390else
7391  STRIP="$ac_cv_prog_STRIP"
7392fi
7393
7394
7395old_CC="$CC"
7396old_CFLAGS="$CFLAGS"
7397
7398# Set sane defaults for various variables
7399test -z "$AR" && AR=ar
7400test -z "$AR_FLAGS" && AR_FLAGS=cru
7401test -z "$AS" && AS=as
7402test -z "$CC" && CC=cc
7403test -z "$LTCC" && LTCC=$CC
7404test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7405test -z "$DLLTOOL" && DLLTOOL=dlltool
7406test -z "$LD" && LD=ld
7407test -z "$LN_S" && LN_S="ln -s"
7408test -z "$MAGIC_CMD" && MAGIC_CMD=file
7409test -z "$NM" && NM=nm
7410test -z "$SED" && SED=sed
7411test -z "$OBJDUMP" && OBJDUMP=objdump
7412test -z "$RANLIB" && RANLIB=:
7413test -z "$STRIP" && STRIP=:
7414test -z "$ac_objext" && ac_objext=o
7415
7416# Determine commands to create old-style static archives.
7417old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7418old_postinstall_cmds='chmod 644 $oldlib'
7419old_postuninstall_cmds=
7420
7421if test -n "$RANLIB"; then
7422  case $host_os in
7423  openbsd*)
7424    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7425    ;;
7426  *)
7427    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7428    ;;
7429  esac
7430  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7431fi
7432
7433for cc_temp in $compiler""; do
7434  case $cc_temp in
7435    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7436    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7437    \-*) ;;
7438    *) break;;
7439  esac
7440done
7441cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7442
7443
7444# Only perform the check for file, if the check method requires it
7445case $deplibs_check_method in
7446file_magic*)
7447  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7448    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7449echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7450if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7451  echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453  case $MAGIC_CMD in
7454[\\/*] |  ?:[\\/]*)
7455  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7456  ;;
7457*)
7458  lt_save_MAGIC_CMD="$MAGIC_CMD"
7459  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7460  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7461  for ac_dir in $ac_dummy; do
7462    IFS="$lt_save_ifs"
7463    test -z "$ac_dir" && ac_dir=.
7464    if test -f $ac_dir/${ac_tool_prefix}file; then
7465      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7466      if test -n "$file_magic_test_file"; then
7467	case $deplibs_check_method in
7468	"file_magic "*)
7469	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7470	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7471	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7472	    $EGREP "$file_magic_regex" > /dev/null; then
7473	    :
7474	  else
7475	    cat <<EOF 1>&2
7476
7477*** Warning: the command libtool uses to detect shared libraries,
7478*** $file_magic_cmd, produces output that libtool cannot recognize.
7479*** The result is that libtool may fail to recognize shared libraries
7480*** as such.  This will affect the creation of libtool libraries that
7481*** depend on shared libraries, but programs linked with such libtool
7482*** libraries will work regardless of this problem.  Nevertheless, you
7483*** may want to report the problem to your system manager and/or to
7484*** bug-libtool@gnu.org
7485
7486EOF
7487	  fi ;;
7488	esac
7489      fi
7490      break
7491    fi
7492  done
7493  IFS="$lt_save_ifs"
7494  MAGIC_CMD="$lt_save_MAGIC_CMD"
7495  ;;
7496esac
7497fi
7498
7499MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7500if test -n "$MAGIC_CMD"; then
7501  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7502echo "${ECHO_T}$MAGIC_CMD" >&6
7503else
7504  echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6
7506fi
7507
7508if test -z "$lt_cv_path_MAGIC_CMD"; then
7509  if test -n "$ac_tool_prefix"; then
7510    echo "$as_me:$LINENO: checking for file" >&5
7511echo $ECHO_N "checking for file... $ECHO_C" >&6
7512if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7513  echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515  case $MAGIC_CMD in
7516[\\/*] |  ?:[\\/]*)
7517  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7518  ;;
7519*)
7520  lt_save_MAGIC_CMD="$MAGIC_CMD"
7521  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7522  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7523  for ac_dir in $ac_dummy; do
7524    IFS="$lt_save_ifs"
7525    test -z "$ac_dir" && ac_dir=.
7526    if test -f $ac_dir/file; then
7527      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7528      if test -n "$file_magic_test_file"; then
7529	case $deplibs_check_method in
7530	"file_magic "*)
7531	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7532	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7533	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7534	    $EGREP "$file_magic_regex" > /dev/null; then
7535	    :
7536	  else
7537	    cat <<EOF 1>&2
7538
7539*** Warning: the command libtool uses to detect shared libraries,
7540*** $file_magic_cmd, produces output that libtool cannot recognize.
7541*** The result is that libtool may fail to recognize shared libraries
7542*** as such.  This will affect the creation of libtool libraries that
7543*** depend on shared libraries, but programs linked with such libtool
7544*** libraries will work regardless of this problem.  Nevertheless, you
7545*** may want to report the problem to your system manager and/or to
7546*** bug-libtool@gnu.org
7547
7548EOF
7549	  fi ;;
7550	esac
7551      fi
7552      break
7553    fi
7554  done
7555  IFS="$lt_save_ifs"
7556  MAGIC_CMD="$lt_save_MAGIC_CMD"
7557  ;;
7558esac
7559fi
7560
7561MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7562if test -n "$MAGIC_CMD"; then
7563  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7564echo "${ECHO_T}$MAGIC_CMD" >&6
7565else
7566  echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6
7568fi
7569
7570  else
7571    MAGIC_CMD=:
7572  fi
7573fi
7574
7575  fi
7576  ;;
7577esac
7578
7579enable_dlopen=no
7580enable_win32_dll=no
7581
7582# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7583if test "${enable_libtool_lock+set}" = set; then
7584  enableval="$enable_libtool_lock"
7585
7586fi;
7587test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7588
7589
7590# Check whether --with-pic or --without-pic was given.
7591if test "${with_pic+set}" = set; then
7592  withval="$with_pic"
7593  pic_mode="$withval"
7594else
7595  pic_mode=default
7596fi;
7597test -z "$pic_mode" && pic_mode=default
7598
7599# Use C for the default configuration in the libtool script
7600tagname=
7601lt_save_CC="$CC"
7602ac_ext=c
7603ac_cpp='$CPP $CPPFLAGS'
7604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7606ac_compiler_gnu=$ac_cv_c_compiler_gnu
7607
7608
7609# Source file extension for C test sources.
7610ac_ext=c
7611
7612# Object file extension for compiled C test sources.
7613objext=o
7614objext=$objext
7615
7616# Code to be used in simple compile tests
7617lt_simple_compile_test_code="int some_variable = 0;\n"
7618
7619# Code to be used in simple link tests
7620lt_simple_link_test_code='int main(){return(0);}\n'
7621
7622
7623# If no C compiler was specified, use CC.
7624LTCC=${LTCC-"$CC"}
7625
7626# If no C compiler flags were specified, use CFLAGS.
7627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7628
7629# Allow CC to be a program name with arguments.
7630compiler=$CC
7631
7632
7633# save warnings/boilerplate of simple test code
7634ac_outfile=conftest.$ac_objext
7635printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7637_lt_compiler_boilerplate=`cat conftest.err`
7638$rm conftest*
7639
7640ac_outfile=conftest.$ac_objext
7641printf "$lt_simple_link_test_code" >conftest.$ac_ext
7642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7643_lt_linker_boilerplate=`cat conftest.err`
7644$rm conftest*
7645
7646
7647
7648lt_prog_compiler_no_builtin_flag=
7649
7650if test "$GCC" = yes; then
7651  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7652
7653
7654echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7655echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7656if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7657  echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659  lt_cv_prog_compiler_rtti_exceptions=no
7660  ac_outfile=conftest.$ac_objext
7661   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7662   lt_compiler_flag="-fno-rtti -fno-exceptions"
7663   # Insert the option either (1) after the last *FLAGS variable, or
7664   # (2) before a word containing "conftest.", or (3) at the end.
7665   # Note that $ac_compile itself does not contain backslashes and begins
7666   # with a dollar sign (not a hyphen), so the echo should work correctly.
7667   # The option is referenced via a variable to avoid confusing sed.
7668   lt_compile=`echo "$ac_compile" | $SED \
7669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7671   -e 's:$: $lt_compiler_flag:'`
7672   (eval echo "\"\$as_me:7672: $lt_compile\"" >&5)
7673   (eval "$lt_compile" 2>conftest.err)
7674   ac_status=$?
7675   cat conftest.err >&5
7676   echo "$as_me:7676: \$? = $ac_status" >&5
7677   if (exit $ac_status) && test -s "$ac_outfile"; then
7678     # The compiler can only warn and ignore the option if not recognized
7679     # So say no if there are warnings other than the usual output.
7680     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7681     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7682     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7683       lt_cv_prog_compiler_rtti_exceptions=yes
7684     fi
7685   fi
7686   $rm conftest*
7687
7688fi
7689echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7690echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7691
7692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7693    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7694else
7695    :
7696fi
7697
7698fi
7699
7700lt_prog_compiler_wl=
7701lt_prog_compiler_pic=
7702lt_prog_compiler_static=
7703
7704echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7705echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7706
7707  if test "$GCC" = yes; then
7708    lt_prog_compiler_wl='-Wl,'
7709    lt_prog_compiler_static='-static'
7710
7711    case $host_os in
7712      aix*)
7713      # All AIX code is PIC.
7714      if test "$host_cpu" = ia64; then
7715	# AIX 5 now supports IA64 processor
7716	lt_prog_compiler_static='-Bstatic'
7717      fi
7718      ;;
7719
7720    amigaos*)
7721      # FIXME: we need at least 68020 code to build shared libraries, but
7722      # adding the `-m68020' flag to GCC prevents building anything better,
7723      # like `-m68040'.
7724      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7725      ;;
7726
7727    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7728      # PIC is the default for these OSes.
7729      ;;
7730
7731    mingw* | pw32* | os2*)
7732      # This hack is so that the source file can tell whether it is being
7733      # built for inclusion in a dll (and should export symbols for example).
7734      lt_prog_compiler_pic='-DDLL_EXPORT'
7735      ;;
7736
7737    darwin* | rhapsody*)
7738      # PIC is the default on this platform
7739      # Common symbols not allowed in MH_DYLIB files
7740      lt_prog_compiler_pic='-fno-common'
7741      ;;
7742
7743    interix3*)
7744      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7745      # Instead, we relocate shared libraries at runtime.
7746      ;;
7747
7748    msdosdjgpp*)
7749      # Just because we use GCC doesn't mean we suddenly get shared libraries
7750      # on systems that don't support them.
7751      lt_prog_compiler_can_build_shared=no
7752      enable_shared=no
7753      ;;
7754
7755    sysv4*MP*)
7756      if test -d /usr/nec; then
7757	lt_prog_compiler_pic=-Kconform_pic
7758      fi
7759      ;;
7760
7761    hpux*)
7762      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7763      # not for PA HP-UX.
7764      case $host_cpu in
7765      hppa*64*|ia64*)
7766	# +Z the default
7767	;;
7768      *)
7769	lt_prog_compiler_pic='-fPIC'
7770	;;
7771      esac
7772      ;;
7773
7774    *)
7775      lt_prog_compiler_pic='-fPIC'
7776      ;;
7777    esac
7778  else
7779    # PORTME Check for flag to pass linker flags through the system compiler.
7780    case $host_os in
7781    aix*)
7782      lt_prog_compiler_wl='-Wl,'
7783      if test "$host_cpu" = ia64; then
7784	# AIX 5 now supports IA64 processor
7785	lt_prog_compiler_static='-Bstatic'
7786      else
7787	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7788      fi
7789      ;;
7790      darwin*)
7791        # PIC is the default on this platform
7792        # Common symbols not allowed in MH_DYLIB files
7793       case $cc_basename in
7794         xlc*)
7795         lt_prog_compiler_pic='-qnocommon'
7796         lt_prog_compiler_wl='-Wl,'
7797         ;;
7798       esac
7799       ;;
7800
7801    mingw* | pw32* | os2*)
7802      # This hack is so that the source file can tell whether it is being
7803      # built for inclusion in a dll (and should export symbols for example).
7804      lt_prog_compiler_pic='-DDLL_EXPORT'
7805      ;;
7806
7807    hpux9* | hpux10* | hpux11*)
7808      lt_prog_compiler_wl='-Wl,'
7809      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7810      # not for PA HP-UX.
7811      case $host_cpu in
7812      hppa*64*|ia64*)
7813	# +Z the default
7814	;;
7815      *)
7816	lt_prog_compiler_pic='+Z'
7817	;;
7818      esac
7819      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7820      lt_prog_compiler_static='${wl}-a ${wl}archive'
7821      ;;
7822
7823    irix5* | irix6* | nonstopux*)
7824      lt_prog_compiler_wl='-Wl,'
7825      # PIC (with -KPIC) is the default.
7826      lt_prog_compiler_static='-non_shared'
7827      ;;
7828
7829    newsos6)
7830      lt_prog_compiler_pic='-KPIC'
7831      lt_prog_compiler_static='-Bstatic'
7832      ;;
7833
7834    linux*)
7835      case $cc_basename in
7836      icc* | ecc*)
7837	lt_prog_compiler_wl='-Wl,'
7838	lt_prog_compiler_pic='-KPIC'
7839	lt_prog_compiler_static='-static'
7840        ;;
7841      pgcc* | pgf77* | pgf90* | pgf95*)
7842        # Portland Group compilers (*not* the Pentium gcc compiler,
7843	# which looks to be a dead project)
7844	lt_prog_compiler_wl='-Wl,'
7845	lt_prog_compiler_pic='-fpic'
7846	lt_prog_compiler_static='-Bstatic'
7847        ;;
7848      ccc*)
7849        lt_prog_compiler_wl='-Wl,'
7850        # All Alpha code is PIC.
7851        lt_prog_compiler_static='-non_shared'
7852        ;;
7853      esac
7854      ;;
7855
7856    osf3* | osf4* | osf5*)
7857      lt_prog_compiler_wl='-Wl,'
7858      # All OSF/1 code is PIC.
7859      lt_prog_compiler_static='-non_shared'
7860      ;;
7861
7862    solaris*)
7863      lt_prog_compiler_pic='-KPIC'
7864      lt_prog_compiler_static='-Bstatic'
7865      case $cc_basename in
7866      f77* | f90* | f95*)
7867	lt_prog_compiler_wl='-Qoption ld ';;
7868      *)
7869	lt_prog_compiler_wl='-Wl,';;
7870      esac
7871      ;;
7872
7873    sunos4*)
7874      lt_prog_compiler_wl='-Qoption ld '
7875      lt_prog_compiler_pic='-PIC'
7876      lt_prog_compiler_static='-Bstatic'
7877      ;;
7878
7879    sysv4 | sysv4.2uw2* | sysv4.3*)
7880      lt_prog_compiler_wl='-Wl,'
7881      lt_prog_compiler_pic='-KPIC'
7882      lt_prog_compiler_static='-Bstatic'
7883      ;;
7884
7885    sysv4*MP*)
7886      if test -d /usr/nec ;then
7887	lt_prog_compiler_pic='-Kconform_pic'
7888	lt_prog_compiler_static='-Bstatic'
7889      fi
7890      ;;
7891
7892    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7893      lt_prog_compiler_wl='-Wl,'
7894      lt_prog_compiler_pic='-KPIC'
7895      lt_prog_compiler_static='-Bstatic'
7896      ;;
7897
7898    unicos*)
7899      lt_prog_compiler_wl='-Wl,'
7900      lt_prog_compiler_can_build_shared=no
7901      ;;
7902
7903    uts4*)
7904      lt_prog_compiler_pic='-pic'
7905      lt_prog_compiler_static='-Bstatic'
7906      ;;
7907
7908    *)
7909      lt_prog_compiler_can_build_shared=no
7910      ;;
7911    esac
7912  fi
7913
7914echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7915echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7916
7917#
7918# Check to make sure the PIC flag actually works.
7919#
7920if test -n "$lt_prog_compiler_pic"; then
7921
7922echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7923echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7924if test "${lt_prog_compiler_pic_works+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927  lt_prog_compiler_pic_works=no
7928  ac_outfile=conftest.$ac_objext
7929   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7930   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7931   # Insert the option either (1) after the last *FLAGS variable, or
7932   # (2) before a word containing "conftest.", or (3) at the end.
7933   # Note that $ac_compile itself does not contain backslashes and begins
7934   # with a dollar sign (not a hyphen), so the echo should work correctly.
7935   # The option is referenced via a variable to avoid confusing sed.
7936   lt_compile=`echo "$ac_compile" | $SED \
7937   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7938   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7939   -e 's:$: $lt_compiler_flag:'`
7940   (eval echo "\"\$as_me:7940: $lt_compile\"" >&5)
7941   (eval "$lt_compile" 2>conftest.err)
7942   ac_status=$?
7943   cat conftest.err >&5
7944   echo "$as_me:7944: \$? = $ac_status" >&5
7945   if (exit $ac_status) && test -s "$ac_outfile"; then
7946     # The compiler can only warn and ignore the option if not recognized
7947     # So say no if there are warnings other than the usual output.
7948     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7949     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7950     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7951       lt_prog_compiler_pic_works=yes
7952     fi
7953   fi
7954   $rm conftest*
7955
7956fi
7957echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7958echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7959
7960if test x"$lt_prog_compiler_pic_works" = xyes; then
7961    case $lt_prog_compiler_pic in
7962     "" | " "*) ;;
7963     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7964     esac
7965else
7966    lt_prog_compiler_pic=
7967     lt_prog_compiler_can_build_shared=no
7968fi
7969
7970fi
7971case $host_os in
7972  # For platforms which do not support PIC, -DPIC is meaningless:
7973  *djgpp*)
7974    lt_prog_compiler_pic=
7975    ;;
7976  *)
7977    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7978    ;;
7979esac
7980
7981#
7982# Check to make sure the static flag actually works.
7983#
7984wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7985echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7986echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7987if test "${lt_prog_compiler_static_works+set}" = set; then
7988  echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990  lt_prog_compiler_static_works=no
7991   save_LDFLAGS="$LDFLAGS"
7992   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7993   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7994   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7995     # The linker can only warn and ignore the option if not recognized
7996     # So say no if there are warnings
7997     if test -s conftest.err; then
7998       # Append any errors to the config.log.
7999       cat conftest.err 1>&5
8000       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8001       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002       if diff conftest.exp conftest.er2 >/dev/null; then
8003         lt_prog_compiler_static_works=yes
8004       fi
8005     else
8006       lt_prog_compiler_static_works=yes
8007     fi
8008   fi
8009   $rm conftest*
8010   LDFLAGS="$save_LDFLAGS"
8011
8012fi
8013echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8014echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8015
8016if test x"$lt_prog_compiler_static_works" = xyes; then
8017    :
8018else
8019    lt_prog_compiler_static=
8020fi
8021
8022
8023echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8024echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8025if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028  lt_cv_prog_compiler_c_o=no
8029   $rm -r conftest 2>/dev/null
8030   mkdir conftest
8031   cd conftest
8032   mkdir out
8033   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8034
8035   lt_compiler_flag="-o out/conftest2.$ac_objext"
8036   # Insert the option either (1) after the last *FLAGS variable, or
8037   # (2) before a word containing "conftest.", or (3) at the end.
8038   # Note that $ac_compile itself does not contain backslashes and begins
8039   # with a dollar sign (not a hyphen), so the echo should work correctly.
8040   lt_compile=`echo "$ac_compile" | $SED \
8041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8043   -e 's:$: $lt_compiler_flag:'`
8044   (eval echo "\"\$as_me:8044: $lt_compile\"" >&5)
8045   (eval "$lt_compile" 2>out/conftest.err)
8046   ac_status=$?
8047   cat out/conftest.err >&5
8048   echo "$as_me:8048: \$? = $ac_status" >&5
8049   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8050   then
8051     # The compiler can only warn and ignore the option if not recognized
8052     # So say no if there are warnings
8053     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8054     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8055     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8056       lt_cv_prog_compiler_c_o=yes
8057     fi
8058   fi
8059   chmod u+w . 2>&5
8060   $rm conftest*
8061   # SGI C++ compiler will create directory out/ii_files/ for
8062   # template instantiation
8063   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8064   $rm out/* && rmdir out
8065   cd ..
8066   rmdir conftest
8067   $rm conftest*
8068
8069fi
8070echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8071echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8072
8073
8074hard_links="nottested"
8075if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8076  # do not overwrite the value of need_locks provided by the user
8077  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8078echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8079  hard_links=yes
8080  $rm conftest*
8081  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8082  touch conftest.a
8083  ln conftest.a conftest.b 2>&5 || hard_links=no
8084  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085  echo "$as_me:$LINENO: result: $hard_links" >&5
8086echo "${ECHO_T}$hard_links" >&6
8087  if test "$hard_links" = no; then
8088    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8089echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8090    need_locks=warn
8091  fi
8092else
8093  need_locks=no
8094fi
8095
8096echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8097echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8098
8099  runpath_var=
8100  allow_undefined_flag=
8101  enable_shared_with_static_runtimes=no
8102  archive_cmds=
8103  archive_expsym_cmds=
8104  old_archive_From_new_cmds=
8105  old_archive_from_expsyms_cmds=
8106  export_dynamic_flag_spec=
8107  whole_archive_flag_spec=
8108  thread_safe_flag_spec=
8109  hardcode_libdir_flag_spec=
8110  hardcode_libdir_flag_spec_ld=
8111  hardcode_libdir_separator=
8112  hardcode_direct=no
8113  hardcode_minus_L=no
8114  hardcode_shlibpath_var=unsupported
8115  link_all_deplibs=unknown
8116  hardcode_automatic=no
8117  module_cmds=
8118  module_expsym_cmds=
8119  always_export_symbols=no
8120  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8121  # include_expsyms should be a list of space-separated symbols to be *always*
8122  # included in the symbol list
8123  include_expsyms=
8124  # exclude_expsyms can be an extended regexp of symbols to exclude
8125  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8126  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8127  # as well as any symbol that contains `d'.
8128  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8129  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8130  # platforms (ab)use it in PIC code, but their linkers get confused if
8131  # the symbol is explicitly referenced.  Since portable code cannot
8132  # rely on this symbol name, it's probably fine to never include it in
8133  # preloaded symbol tables.
8134  extract_expsyms_cmds=
8135  # Just being paranoid about ensuring that cc_basename is set.
8136  for cc_temp in $compiler""; do
8137  case $cc_temp in
8138    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8139    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8140    \-*) ;;
8141    *) break;;
8142  esac
8143done
8144cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8145
8146  case $host_os in
8147  cygwin* | mingw* | pw32*)
8148    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8149    # When not using gcc, we currently assume that we are using
8150    # Microsoft Visual C++.
8151    if test "$GCC" != yes; then
8152      with_gnu_ld=no
8153    fi
8154    ;;
8155  interix*)
8156    # we just hope/assume this is gcc and not c89 (= MSVC++)
8157    with_gnu_ld=yes
8158    ;;
8159  openbsd*)
8160    with_gnu_ld=no
8161    ;;
8162  esac
8163
8164  ld_shlibs=yes
8165  if test "$with_gnu_ld" = yes; then
8166    # If archive_cmds runs LD, not CC, wlarc should be empty
8167    wlarc='${wl}'
8168
8169    # Set some defaults for GNU ld with shared library support. These
8170    # are reset later if shared libraries are not supported. Putting them
8171    # here allows them to be overridden if necessary.
8172    runpath_var=LD_RUN_PATH
8173    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8174    export_dynamic_flag_spec='${wl}--export-dynamic'
8175    # ancient GNU ld didn't support --whole-archive et. al.
8176    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8177	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8178      else
8179  	whole_archive_flag_spec=
8180    fi
8181    supports_anon_versioning=no
8182    case `$LD -v 2>/dev/null` in
8183      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8184      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8185      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8186      *\ 2.11.*) ;; # other 2.11 versions
8187      *) supports_anon_versioning=yes ;;
8188    esac
8189
8190    # See if GNU ld supports shared libraries.
8191    case $host_os in
8192    aix3* | aix4* | aix5*)
8193      # On AIX/PPC, the GNU linker is very broken
8194      if test "$host_cpu" != ia64; then
8195	ld_shlibs=no
8196	cat <<EOF 1>&2
8197
8198*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8199*** to be unable to reliably create shared libraries on AIX.
8200*** Therefore, libtool is disabling shared libraries support.  If you
8201*** really care for shared libraries, you may want to modify your PATH
8202*** so that a non-GNU linker is found, and then restart.
8203
8204EOF
8205      fi
8206      ;;
8207
8208    amigaos*)
8209      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)'
8210      hardcode_libdir_flag_spec='-L$libdir'
8211      hardcode_minus_L=yes
8212
8213      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8214      # that the semantics of dynamic libraries on AmigaOS, at least up
8215      # to version 4, is to share data among multiple programs linked
8216      # with the same dynamic library.  Since this doesn't match the
8217      # behavior of shared libraries on other platforms, we can't use
8218      # them.
8219      ld_shlibs=no
8220      ;;
8221
8222    beos*)
8223      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8224	allow_undefined_flag=unsupported
8225	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8226	# support --undefined.  This deserves some investigation.  FIXME
8227	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228      else
8229	ld_shlibs=no
8230      fi
8231      ;;
8232
8233    cygwin* | mingw* | pw32*)
8234      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8235      # as there is no search path for DLLs.
8236      hardcode_libdir_flag_spec='-L$libdir'
8237      allow_undefined_flag=unsupported
8238      always_export_symbols=no
8239      enable_shared_with_static_runtimes=yes
8240      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8241
8242      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8243        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8244	# If the export-symbols file already is a .def file (1st line
8245	# is EXPORTS), use it as is; otherwise, prepend...
8246	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8247	  cp $export_symbols $output_objdir/$soname.def;
8248	else
8249	  echo EXPORTS > $output_objdir/$soname.def;
8250	  cat $export_symbols >> $output_objdir/$soname.def;
8251	fi~
8252	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8253      else
8254	ld_shlibs=no
8255      fi
8256      ;;
8257
8258    interix3*)
8259      hardcode_direct=no
8260      hardcode_shlibpath_var=no
8261      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8262      export_dynamic_flag_spec='${wl}-E'
8263      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8264      # Instead, shared libraries are loaded at an image base (0x10000000 by
8265      # default) and relocated if they conflict, which is a slow very memory
8266      # consuming and fragmenting process.  To avoid this, we pick a random,
8267      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8268      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8269      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8270      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8271      ;;
8272
8273    linux*)
8274      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8275	tmp_addflag=
8276	case $cc_basename,$host_cpu in
8277	pgcc*)				# Portland Group C compiler
8278	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8279	  tmp_addflag=' $pic_flag'
8280	  ;;
8281	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8282	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8283	  tmp_addflag=' $pic_flag -Mnomain' ;;
8284	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8285	  tmp_addflag=' -i_dynamic' ;;
8286	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8287	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8288	ifc* | ifort*)			# Intel Fortran compiler
8289	  tmp_addflag=' -nofor_main' ;;
8290	esac
8291	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292
8293	if test $supports_anon_versioning = yes; then
8294	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8295  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8296  $echo "local: *; };" >> $output_objdir/$libname.ver~
8297	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8298	fi
8299      else
8300	ld_shlibs=no
8301      fi
8302      ;;
8303
8304    netbsd*)
8305      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8306	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8307	wlarc=
8308      else
8309	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8311      fi
8312      ;;
8313
8314    solaris*)
8315      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8316	ld_shlibs=no
8317	cat <<EOF 1>&2
8318
8319*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8320*** create shared libraries on Solaris systems.  Therefore, libtool
8321*** is disabling shared libraries support.  We urge you to upgrade GNU
8322*** binutils to release 2.9.1 or newer.  Another option is to modify
8323*** your PATH or compiler configuration so that the native linker is
8324*** used, and then restart.
8325
8326EOF
8327      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8330      else
8331	ld_shlibs=no
8332      fi
8333      ;;
8334
8335    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8336      case `$LD -v 2>&1` in
8337        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8338	ld_shlibs=no
8339	cat <<_LT_EOF 1>&2
8340
8341*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8342*** reliably create shared libraries on SCO systems.  Therefore, libtool
8343*** is disabling shared libraries support.  We urge you to upgrade GNU
8344*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8345*** your PATH or compiler configuration so that the native linker is
8346*** used, and then restart.
8347
8348_LT_EOF
8349	;;
8350	*)
8351	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8352	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8353	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8354	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8355	  else
8356	    ld_shlibs=no
8357	  fi
8358	;;
8359      esac
8360      ;;
8361
8362    sunos4*)
8363      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8364      wlarc=
8365      hardcode_direct=yes
8366      hardcode_shlibpath_var=no
8367      ;;
8368
8369    *)
8370      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8371	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373      else
8374	ld_shlibs=no
8375      fi
8376      ;;
8377    esac
8378
8379    if test "$ld_shlibs" = no; then
8380      runpath_var=
8381      hardcode_libdir_flag_spec=
8382      export_dynamic_flag_spec=
8383      whole_archive_flag_spec=
8384    fi
8385  else
8386    # PORTME fill in a description of your system's linker (not GNU ld)
8387    case $host_os in
8388    aix3*)
8389      allow_undefined_flag=unsupported
8390      always_export_symbols=yes
8391      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'
8392      # Note: this linker hardcodes the directories in LIBPATH if there
8393      # are no directories specified by -L.
8394      hardcode_minus_L=yes
8395      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8396	# Neither direct hardcoding nor static linking is supported with a
8397	# broken collect2.
8398	hardcode_direct=unsupported
8399      fi
8400      ;;
8401
8402    aix4* | aix5*)
8403      if test "$host_cpu" = ia64; then
8404	# On IA64, the linker does run time linking by default, so we don't
8405	# have to do anything special.
8406	aix_use_runtimelinking=no
8407	exp_sym_flag='-Bexport'
8408	no_entry_flag=""
8409      else
8410	# If we're using GNU nm, then we don't want the "-C" option.
8411	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8412	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8413	  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'
8414	else
8415	  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'
8416	fi
8417	aix_use_runtimelinking=no
8418
8419	# Test if we are trying to use run time linking or normal
8420	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8421	# need to do runtime linking.
8422	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8423	  for ld_flag in $LDFLAGS; do
8424  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8425  	    aix_use_runtimelinking=yes
8426  	    break
8427  	  fi
8428	  done
8429	  ;;
8430	esac
8431
8432	exp_sym_flag='-bexport'
8433	no_entry_flag='-bnoentry'
8434      fi
8435
8436      # When large executables or shared objects are built, AIX ld can
8437      # have problems creating the table of contents.  If linking a library
8438      # or program results in "error TOC overflow" add -mminimal-toc to
8439      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8440      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8441
8442      archive_cmds=''
8443      hardcode_direct=yes
8444      hardcode_libdir_separator=':'
8445      link_all_deplibs=yes
8446
8447      if test "$GCC" = yes; then
8448	case $host_os in aix4.[012]|aix4.[012].*)
8449	# We only want to do this on AIX 4.2 and lower, the check
8450	# below for broken collect2 doesn't work under 4.3+
8451	  collect2name=`${CC} -print-prog-name=collect2`
8452	  if test -f "$collect2name" && \
8453  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8454	  then
8455  	  # We have reworked collect2
8456  	  hardcode_direct=yes
8457	  else
8458  	  # We have old collect2
8459  	  hardcode_direct=unsupported
8460  	  # It fails to find uninstalled libraries when the uninstalled
8461  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8462  	  # to unsupported forces relinking
8463  	  hardcode_minus_L=yes
8464  	  hardcode_libdir_flag_spec='-L$libdir'
8465  	  hardcode_libdir_separator=
8466	  fi
8467	  ;;
8468	esac
8469	shared_flag='-shared'
8470	if test "$aix_use_runtimelinking" = yes; then
8471	  shared_flag="$shared_flag "'${wl}-G'
8472	fi
8473      else
8474	# not using gcc
8475	if test "$host_cpu" = ia64; then
8476  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8477  	# chokes on -Wl,-G. The following line is correct:
8478	  shared_flag='-G'
8479	else
8480	  if test "$aix_use_runtimelinking" = yes; then
8481	    shared_flag='${wl}-G'
8482	  else
8483	    shared_flag='${wl}-bM:SRE'
8484	  fi
8485	fi
8486      fi
8487
8488      # It seems that -bexpall does not export symbols beginning with
8489      # underscore (_), so it is better to generate a list of symbols to export.
8490      always_export_symbols=yes
8491      if test "$aix_use_runtimelinking" = yes; then
8492	# Warning - without using the other runtime loading flags (-brtl),
8493	# -berok will link without error, but may produce a broken library.
8494	allow_undefined_flag='-berok'
8495       # Determine the default libpath from the value encoded in an empty executable.
8496       cat >conftest.$ac_ext <<_ACEOF
8497/* confdefs.h.  */
8498_ACEOF
8499cat confdefs.h >>conftest.$ac_ext
8500cat >>conftest.$ac_ext <<_ACEOF
8501/* end confdefs.h.  */
8502
8503int
8504main ()
8505{
8506
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext conftest$ac_exeext
8512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8513  (eval $ac_link) 2>conftest.er1
8514  ac_status=$?
8515  grep -v '^ *+' conftest.er1 >conftest.err
8516  rm -f conftest.er1
8517  cat conftest.err >&5
8518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519  (exit $ac_status); } &&
8520	 { ac_try='test -z "$ac_c_werror_flag"
8521			 || test ! -s conftest.err'
8522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523  (eval $ac_try) 2>&5
8524  ac_status=$?
8525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526  (exit $ac_status); }; } &&
8527	 { ac_try='test -s conftest$ac_exeext'
8528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529  (eval $ac_try) 2>&5
8530  ac_status=$?
8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532  (exit $ac_status); }; }; then
8533
8534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8535}'`
8536# Check for a 64-bit object if we didn't find anything.
8537if 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; }
8538}'`; fi
8539else
8540  echo "$as_me: failed program was:" >&5
8541sed 's/^/| /' conftest.$ac_ext >&5
8542
8543fi
8544rm -f conftest.err conftest.$ac_objext \
8545      conftest$ac_exeext conftest.$ac_ext
8546if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8547
8548       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8549	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8550       else
8551	if test "$host_cpu" = ia64; then
8552	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8553	  allow_undefined_flag="-z nodefs"
8554	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8555	else
8556	 # Determine the default libpath from the value encoded in an empty executable.
8557	 cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h.  */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h.  */
8563
8564int
8565main ()
8566{
8567
8568  ;
8569  return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext conftest$ac_exeext
8573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574  (eval $ac_link) 2>conftest.er1
8575  ac_status=$?
8576  grep -v '^ *+' conftest.er1 >conftest.err
8577  rm -f conftest.er1
8578  cat conftest.err >&5
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); } &&
8581	 { ac_try='test -z "$ac_c_werror_flag"
8582			 || test ! -s conftest.err'
8583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584  (eval $ac_try) 2>&5
8585  ac_status=$?
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); }; } &&
8588	 { ac_try='test -s conftest$ac_exeext'
8589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590  (eval $ac_try) 2>&5
8591  ac_status=$?
8592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593  (exit $ac_status); }; }; then
8594
8595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8596}'`
8597# Check for a 64-bit object if we didn't find anything.
8598if 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; }
8599}'`; fi
8600else
8601  echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604fi
8605rm -f conftest.err conftest.$ac_objext \
8606      conftest$ac_exeext conftest.$ac_ext
8607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8608
8609	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8610	  # Warning - without using the other run time loading flags,
8611	  # -berok will link without error, but may produce a broken library.
8612	  no_undefined_flag=' ${wl}-bernotok'
8613	  allow_undefined_flag=' ${wl}-berok'
8614	  # Exported symbols can be pulled into shared objects from archives
8615	  whole_archive_flag_spec='$convenience'
8616	  archive_cmds_need_lc=yes
8617	  # This is similar to how AIX traditionally builds its shared libraries.
8618	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8619	fi
8620      fi
8621      ;;
8622
8623    amigaos*)
8624      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)'
8625      hardcode_libdir_flag_spec='-L$libdir'
8626      hardcode_minus_L=yes
8627      # see comment about different semantics on the GNU ld section
8628      ld_shlibs=no
8629      ;;
8630
8631    bsdi[45]*)
8632      export_dynamic_flag_spec=-rdynamic
8633      ;;
8634
8635    cygwin* | mingw* | pw32*)
8636      # When not using gcc, we currently assume that we are using
8637      # Microsoft Visual C++.
8638      # hardcode_libdir_flag_spec is actually meaningless, as there is
8639      # no search path for DLLs.
8640      hardcode_libdir_flag_spec=' '
8641      allow_undefined_flag=unsupported
8642      # Tell ltmain to make .lib files, not .a files.
8643      libext=lib
8644      # Tell ltmain to make .dll files, not .so files.
8645      shrext_cmds=".dll"
8646      # FIXME: Setting linknames here is a bad hack.
8647      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8648      # The linker will automatically build a .lib file if we build a DLL.
8649      old_archive_From_new_cmds='true'
8650      # FIXME: Should let the user specify the lib program.
8651      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8652      fix_srcfile_path='`cygpath -w "$srcfile"`'
8653      enable_shared_with_static_runtimes=yes
8654      ;;
8655
8656    darwin* | rhapsody*)
8657      case $host_os in
8658        rhapsody* | darwin1.[012])
8659         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8660         ;;
8661       *) # Darwin 1.3 on
8662         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8663           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8664         else
8665           case ${MACOSX_DEPLOYMENT_TARGET} in
8666             10.[012])
8667               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8668               ;;
8669             10.*)
8670               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8671               ;;
8672           esac
8673         fi
8674         ;;
8675      esac
8676      archive_cmds_need_lc=no
8677      hardcode_direct=no
8678      hardcode_automatic=yes
8679      hardcode_shlibpath_var=unsupported
8680      whole_archive_flag_spec=''
8681      link_all_deplibs=yes
8682    if test "$GCC" = yes ; then
8683    	output_verbose_link_cmd='echo'
8684        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8685      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8686      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8687      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}'
8688      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}'
8689    else
8690      case $cc_basename in
8691        xlc*)
8692         output_verbose_link_cmd='echo'
8693         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8694         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8695          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8696         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8697          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}'
8698          ;;
8699       *)
8700         ld_shlibs=no
8701          ;;
8702      esac
8703    fi
8704      ;;
8705
8706    dgux*)
8707      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708      hardcode_libdir_flag_spec='-L$libdir'
8709      hardcode_shlibpath_var=no
8710      ;;
8711
8712    freebsd1*)
8713      ld_shlibs=no
8714      ;;
8715
8716    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8717    # support.  Future versions do this automatically, but an explicit c++rt0.o
8718    # does not break anything, and helps significantly (at the cost of a little
8719    # extra space).
8720    freebsd2.2*)
8721      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8722      hardcode_libdir_flag_spec='-R$libdir'
8723      hardcode_direct=yes
8724      hardcode_shlibpath_var=no
8725      ;;
8726
8727    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8728    freebsd2*)
8729      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8730      hardcode_direct=yes
8731      hardcode_minus_L=yes
8732      hardcode_shlibpath_var=no
8733      ;;
8734
8735    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8736    freebsd* | kfreebsd*-gnu | dragonfly*)
8737      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8738      hardcode_libdir_flag_spec='-R$libdir'
8739      hardcode_direct=yes
8740      hardcode_shlibpath_var=no
8741      ;;
8742
8743    hpux9*)
8744      if test "$GCC" = yes; then
8745	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'
8746      else
8747	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'
8748      fi
8749      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8750      hardcode_libdir_separator=:
8751      hardcode_direct=yes
8752
8753      # hardcode_minus_L: Not really in the search PATH,
8754      # but as the default location of the library.
8755      hardcode_minus_L=yes
8756      export_dynamic_flag_spec='${wl}-E'
8757      ;;
8758
8759    hpux10*)
8760      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8761	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8762      else
8763	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8764      fi
8765      if test "$with_gnu_ld" = no; then
8766	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8767	hardcode_libdir_separator=:
8768
8769	hardcode_direct=yes
8770	export_dynamic_flag_spec='${wl}-E'
8771
8772	# hardcode_minus_L: Not really in the search PATH,
8773	# but as the default location of the library.
8774	hardcode_minus_L=yes
8775      fi
8776      ;;
8777
8778    hpux11*)
8779      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8780	case $host_cpu in
8781	hppa*64*)
8782	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783	  ;;
8784	ia64*)
8785	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8786	  ;;
8787	*)
8788	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8789	  ;;
8790	esac
8791      else
8792	case $host_cpu in
8793	hppa*64*)
8794	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795	  ;;
8796	ia64*)
8797	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8798	  ;;
8799	*)
8800	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8801	  ;;
8802	esac
8803      fi
8804      if test "$with_gnu_ld" = no; then
8805	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8806	hardcode_libdir_separator=:
8807
8808	case $host_cpu in
8809	hppa*64*|ia64*)
8810	  hardcode_libdir_flag_spec_ld='+b $libdir'
8811	  hardcode_direct=no
8812	  hardcode_shlibpath_var=no
8813	  ;;
8814	*)
8815	  hardcode_direct=yes
8816	  export_dynamic_flag_spec='${wl}-E'
8817
8818	  # hardcode_minus_L: Not really in the search PATH,
8819	  # but as the default location of the library.
8820	  hardcode_minus_L=yes
8821	  ;;
8822	esac
8823      fi
8824      ;;
8825
8826    irix5* | irix6* | nonstopux*)
8827      if test "$GCC" = yes; then
8828	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'
8829      else
8830	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'
8831	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8832      fi
8833      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834      hardcode_libdir_separator=:
8835      link_all_deplibs=yes
8836      ;;
8837
8838    netbsd*)
8839      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8840	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8841      else
8842	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8843      fi
8844      hardcode_libdir_flag_spec='-R$libdir'
8845      hardcode_direct=yes
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    newsos6)
8850      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851      hardcode_direct=yes
8852      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853      hardcode_libdir_separator=:
8854      hardcode_shlibpath_var=no
8855      ;;
8856
8857    openbsd*)
8858      hardcode_direct=yes
8859      hardcode_shlibpath_var=no
8860      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8861	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8862	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8863	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8864	export_dynamic_flag_spec='${wl}-E'
8865      else
8866       case $host_os in
8867	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8868	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8869	   hardcode_libdir_flag_spec='-R$libdir'
8870	   ;;
8871	 *)
8872	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8873	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8874	   ;;
8875       esac
8876      fi
8877      ;;
8878
8879    os2*)
8880      hardcode_libdir_flag_spec='-L$libdir'
8881      hardcode_minus_L=yes
8882      allow_undefined_flag=unsupported
8883      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'
8884      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8885      ;;
8886
8887    osf3*)
8888      if test "$GCC" = yes; then
8889	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8890	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'
8891      else
8892	allow_undefined_flag=' -expect_unresolved \*'
8893	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'
8894      fi
8895      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896      hardcode_libdir_separator=:
8897      ;;
8898
8899    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8900      if test "$GCC" = yes; then
8901	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8902	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'
8903	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904      else
8905	allow_undefined_flag=' -expect_unresolved \*'
8906	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'
8907	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8908	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8909
8910	# Both c and cxx compiler support -rpath directly
8911	hardcode_libdir_flag_spec='-rpath $libdir'
8912      fi
8913      hardcode_libdir_separator=:
8914      ;;
8915
8916    solaris*)
8917      no_undefined_flag=' -z text'
8918      if test "$GCC" = yes; then
8919	wlarc='${wl}'
8920	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8921	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8922	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8923      else
8924	wlarc=''
8925	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8927  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8928      fi
8929      hardcode_libdir_flag_spec='-R$libdir'
8930      hardcode_shlibpath_var=no
8931      case $host_os in
8932      solaris2.[0-5] | solaris2.[0-5].*) ;;
8933      *)
8934 	# The compiler driver will combine linker options so we
8935 	# cannot just pass the convience library names through
8936 	# without $wl, iff we do not link with $LD.
8937 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8938 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8939 	case $wlarc in
8940 	'')
8941 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8942 	*)
8943 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8944 	esac ;;
8945      esac
8946      link_all_deplibs=yes
8947      ;;
8948
8949    sunos4*)
8950      if test "x$host_vendor" = xsequent; then
8951	# Use $CC to link under sequent, because it throws in some extra .o
8952	# files that make .init and .fini sections work.
8953	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8954      else
8955	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8956      fi
8957      hardcode_libdir_flag_spec='-L$libdir'
8958      hardcode_direct=yes
8959      hardcode_minus_L=yes
8960      hardcode_shlibpath_var=no
8961      ;;
8962
8963    sysv4)
8964      case $host_vendor in
8965	sni)
8966	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967	  hardcode_direct=yes # is this really true???
8968	;;
8969	siemens)
8970	  ## LD is ld it makes a PLAMLIB
8971	  ## CC just makes a GrossModule.
8972	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8973	  reload_cmds='$CC -r -o $output$reload_objs'
8974	  hardcode_direct=no
8975        ;;
8976	motorola)
8977	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8979	;;
8980      esac
8981      runpath_var='LD_RUN_PATH'
8982      hardcode_shlibpath_var=no
8983      ;;
8984
8985    sysv4.3*)
8986      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987      hardcode_shlibpath_var=no
8988      export_dynamic_flag_spec='-Bexport'
8989      ;;
8990
8991    sysv4*MP*)
8992      if test -d /usr/nec; then
8993	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994	hardcode_shlibpath_var=no
8995	runpath_var=LD_RUN_PATH
8996	hardcode_runpath_var=yes
8997	ld_shlibs=yes
8998      fi
8999      ;;
9000
9001    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9002      no_undefined_flag='${wl}-z,text'
9003      archive_cmds_need_lc=no
9004      hardcode_shlibpath_var=no
9005      runpath_var='LD_RUN_PATH'
9006
9007      if test "$GCC" = yes; then
9008	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010      else
9011	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013      fi
9014      ;;
9015
9016    sysv5* | sco3.2v5* | sco5v6*)
9017      # Note: We can NOT use -z defs as we might desire, because we do not
9018      # link with -lc, and that would cause any symbols used from libc to
9019      # always be unresolved, which means just about no library would
9020      # ever link correctly.  If we're not using GNU ld we use -z text
9021      # though, which does catch some bad symbols but isn't as heavy-handed
9022      # as -z defs.
9023      no_undefined_flag='${wl}-z,text'
9024      allow_undefined_flag='${wl}-z,nodefs'
9025      archive_cmds_need_lc=no
9026      hardcode_shlibpath_var=no
9027      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9028      hardcode_libdir_separator=':'
9029      link_all_deplibs=yes
9030      export_dynamic_flag_spec='${wl}-Bexport'
9031      runpath_var='LD_RUN_PATH'
9032
9033      if test "$GCC" = yes; then
9034	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9036      else
9037	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039      fi
9040      ;;
9041
9042    uts4*)
9043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044      hardcode_libdir_flag_spec='-L$libdir'
9045      hardcode_shlibpath_var=no
9046      ;;
9047
9048    *)
9049      ld_shlibs=no
9050      ;;
9051    esac
9052  fi
9053
9054echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9055echo "${ECHO_T}$ld_shlibs" >&6
9056test "$ld_shlibs" = no && can_build_shared=no
9057
9058#
9059# Do we need to explicitly link libc?
9060#
9061case "x$archive_cmds_need_lc" in
9062x|xyes)
9063  # Assume -lc should be added
9064  archive_cmds_need_lc=yes
9065
9066  if test "$enable_shared" = yes && test "$GCC" = yes; then
9067    case $archive_cmds in
9068    *'~'*)
9069      # FIXME: we may have to deal with multi-command sequences.
9070      ;;
9071    '$CC '*)
9072      # Test whether the compiler implicitly links with -lc since on some
9073      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9074      # to ld, don't add -lc before -lgcc.
9075      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9076echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9077      $rm conftest*
9078      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9079
9080      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081  (eval $ac_compile) 2>&5
9082  ac_status=$?
9083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); } 2>conftest.err; then
9085        soname=conftest
9086        lib=conftest
9087        libobjs=conftest.$ac_objext
9088        deplibs=
9089        wl=$lt_prog_compiler_wl
9090	pic_flag=$lt_prog_compiler_pic
9091        compiler_flags=-v
9092        linker_flags=-v
9093        verstring=
9094        output_objdir=.
9095        libname=conftest
9096        lt_save_allow_undefined_flag=$allow_undefined_flag
9097        allow_undefined_flag=
9098        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9099  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9100  ac_status=$?
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); }
9103        then
9104	  archive_cmds_need_lc=no
9105        else
9106	  archive_cmds_need_lc=yes
9107        fi
9108        allow_undefined_flag=$lt_save_allow_undefined_flag
9109      else
9110        cat conftest.err 1>&5
9111      fi
9112      $rm conftest*
9113      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9114echo "${ECHO_T}$archive_cmds_need_lc" >&6
9115      ;;
9116    esac
9117  fi
9118  ;;
9119esac
9120
9121echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9122echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9123library_names_spec=
9124libname_spec='lib$name'
9125soname_spec=
9126shrext_cmds=".so"
9127postinstall_cmds=
9128postuninstall_cmds=
9129finish_cmds=
9130finish_eval=
9131shlibpath_var=
9132shlibpath_overrides_runpath=unknown
9133version_type=none
9134dynamic_linker="$host_os ld.so"
9135sys_lib_dlsearch_path_spec="/lib /usr/lib"
9136if test "$GCC" = yes; then
9137  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9138  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9139    # if the path contains ";" then we assume it to be the separator
9140    # otherwise default to the standard path separator (i.e. ":") - it is
9141    # assumed that no part of a normal pathname contains ";" but that should
9142    # okay in the real world where ";" in dirpaths is itself problematic.
9143    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9144  else
9145    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9146  fi
9147else
9148  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9149fi
9150need_lib_prefix=unknown
9151hardcode_into_libs=no
9152
9153# when you set need_version to no, make sure it does not cause -set_version
9154# flags to be left without arguments
9155need_version=unknown
9156
9157case $host_os in
9158aix3*)
9159  version_type=linux
9160  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9161  shlibpath_var=LIBPATH
9162
9163  # AIX 3 has no versioning support, so we append a major version to the name.
9164  soname_spec='${libname}${release}${shared_ext}$major'
9165  ;;
9166
9167aix4* | aix5*)
9168  version_type=linux
9169  need_lib_prefix=no
9170  need_version=no
9171  hardcode_into_libs=yes
9172  if test "$host_cpu" = ia64; then
9173    # AIX 5 supports IA64
9174    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9175    shlibpath_var=LD_LIBRARY_PATH
9176  else
9177    # With GCC up to 2.95.x, collect2 would create an import file
9178    # for dependence libraries.  The import file would start with
9179    # the line `#! .'.  This would cause the generated library to
9180    # depend on `.', always an invalid library.  This was fixed in
9181    # development snapshots of GCC prior to 3.0.
9182    case $host_os in
9183      aix4 | aix4.[01] | aix4.[01].*)
9184      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9185	   echo ' yes '
9186	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9187	:
9188      else
9189	can_build_shared=no
9190      fi
9191      ;;
9192    esac
9193    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9194    # soname into executable. Probably we can add versioning support to
9195    # collect2, so additional links can be useful in future.
9196    if test "$aix_use_runtimelinking" = yes; then
9197      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9198      # instead of lib<name>.a to let people know that these are not
9199      # typical AIX shared libraries.
9200      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201    else
9202      # We preserve .a as extension for shared libraries through AIX4.2
9203      # and later when we are not doing run time linking.
9204      library_names_spec='${libname}${release}.a $libname.a'
9205      soname_spec='${libname}${release}${shared_ext}$major'
9206    fi
9207    shlibpath_var=LIBPATH
9208  fi
9209  ;;
9210
9211amigaos*)
9212  library_names_spec='$libname.ixlibrary $libname.a'
9213  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9214  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'
9215  ;;
9216
9217beos*)
9218  library_names_spec='${libname}${shared_ext}'
9219  dynamic_linker="$host_os ld.so"
9220  shlibpath_var=LIBRARY_PATH
9221  ;;
9222
9223bsdi[45]*)
9224  version_type=linux
9225  need_version=no
9226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227  soname_spec='${libname}${release}${shared_ext}$major'
9228  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9229  shlibpath_var=LD_LIBRARY_PATH
9230  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9231  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9232  # the default ld.so.conf also contains /usr/contrib/lib and
9233  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9234  # libtool to hard-code these into programs
9235  ;;
9236
9237cygwin* | mingw* | pw32*)
9238  version_type=windows
9239  shrext_cmds=".dll"
9240  need_version=no
9241  need_lib_prefix=no
9242
9243  case $GCC,$host_os in
9244  yes,cygwin* | yes,mingw* | yes,pw32*)
9245    library_names_spec='$libname.dll.a'
9246    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9247    postinstall_cmds='base_file=`basename \${file}`~
9248      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9249      dldir=$destdir/`dirname \$dlpath`~
9250      test -d \$dldir || mkdir -p \$dldir~
9251      $install_prog $dir/$dlname \$dldir/$dlname~
9252      chmod a+x \$dldir/$dlname'
9253    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9254      dlpath=$dir/\$dldll~
9255       $rm \$dlpath'
9256    shlibpath_overrides_runpath=yes
9257
9258    case $host_os in
9259    cygwin*)
9260      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9261      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9262      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9263      ;;
9264    mingw*)
9265      # MinGW DLLs use traditional 'lib' prefix
9266      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9267      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9268      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9269        # It is most probably a Windows format PATH printed by
9270        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9271        # path with ; separators, and with drive letters. We can handle the
9272        # drive letters (cygwin fileutils understands them), so leave them,
9273        # especially as we might pass files found there to a mingw objdump,
9274        # which wouldn't understand a cygwinified path. Ahh.
9275        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9276      else
9277        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9278      fi
9279      ;;
9280    pw32*)
9281      # pw32 DLLs use 'pw' prefix rather than 'lib'
9282      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9283      ;;
9284    esac
9285    ;;
9286
9287  *)
9288    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9289    ;;
9290  esac
9291  dynamic_linker='Win32 ld.exe'
9292  # FIXME: first we should search . and the directory the executable is in
9293  shlibpath_var=PATH
9294  ;;
9295
9296darwin* | rhapsody*)
9297  dynamic_linker="$host_os dyld"
9298  version_type=darwin
9299  need_lib_prefix=no
9300  need_version=no
9301  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9302  soname_spec='${libname}${release}${major}$shared_ext'
9303  shlibpath_overrides_runpath=yes
9304  shlibpath_var=DYLD_LIBRARY_PATH
9305  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9306  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9307  if test "$GCC" = yes; then
9308    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"`
9309  else
9310    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9311  fi
9312  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9313  ;;
9314
9315dgux*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  ;;
9323
9324freebsd1*)
9325  dynamic_linker=no
9326  ;;
9327
9328kfreebsd*-gnu)
9329  version_type=linux
9330  need_lib_prefix=no
9331  need_version=no
9332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9333  soname_spec='${libname}${release}${shared_ext}$major'
9334  shlibpath_var=LD_LIBRARY_PATH
9335  shlibpath_overrides_runpath=no
9336  hardcode_into_libs=yes
9337  dynamic_linker='GNU ld.so'
9338  ;;
9339
9340freebsd* | dragonfly*)
9341  # DragonFly does not have aout.  When/if they implement a new
9342  # versioning mechanism, adjust this.
9343  if test -x /usr/bin/objformat; then
9344    objformat=`/usr/bin/objformat`
9345  else
9346    case $host_os in
9347    freebsd[123]*) objformat=aout ;;
9348    *) objformat=elf ;;
9349    esac
9350  fi
9351  version_type=freebsd-$objformat
9352  case $version_type in
9353    freebsd-elf*)
9354      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9355      need_version=no
9356      need_lib_prefix=no
9357      ;;
9358    freebsd-*)
9359      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9360      need_version=yes
9361      ;;
9362  esac
9363  shlibpath_var=LD_LIBRARY_PATH
9364  case $host_os in
9365  freebsd2*)
9366    shlibpath_overrides_runpath=yes
9367    ;;
9368  freebsd3.[01]* | freebsdelf3.[01]*)
9369    shlibpath_overrides_runpath=yes
9370    hardcode_into_libs=yes
9371    ;;
9372  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9373  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9374    shlibpath_overrides_runpath=no
9375    hardcode_into_libs=yes
9376    ;;
9377  freebsd*) # from 4.6 on
9378    shlibpath_overrides_runpath=yes
9379    hardcode_into_libs=yes
9380    ;;
9381  esac
9382  ;;
9383
9384gnu*)
9385  version_type=linux
9386  need_lib_prefix=no
9387  need_version=no
9388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9389  soname_spec='${libname}${release}${shared_ext}$major'
9390  shlibpath_var=LD_LIBRARY_PATH
9391  hardcode_into_libs=yes
9392  ;;
9393
9394hpux9* | hpux10* | hpux11*)
9395  # Give a soname corresponding to the major version so that dld.sl refuses to
9396  # link against other versions.
9397  version_type=sunos
9398  need_lib_prefix=no
9399  need_version=no
9400  case $host_cpu in
9401  ia64*)
9402    shrext_cmds='.so'
9403    hardcode_into_libs=yes
9404    dynamic_linker="$host_os dld.so"
9405    shlibpath_var=LD_LIBRARY_PATH
9406    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408    soname_spec='${libname}${release}${shared_ext}$major'
9409    if test "X$HPUX_IA64_MODE" = X32; then
9410      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9411    else
9412      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9413    fi
9414    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9415    ;;
9416   hppa*64*)
9417     shrext_cmds='.sl'
9418     hardcode_into_libs=yes
9419     dynamic_linker="$host_os dld.sl"
9420     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9421     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423     soname_spec='${libname}${release}${shared_ext}$major'
9424     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9425     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9426     ;;
9427   *)
9428    shrext_cmds='.sl'
9429    dynamic_linker="$host_os dld.sl"
9430    shlibpath_var=SHLIB_PATH
9431    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433    soname_spec='${libname}${release}${shared_ext}$major'
9434    ;;
9435  esac
9436  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9437  postinstall_cmds='chmod 555 $lib'
9438  ;;
9439
9440interix3*)
9441  version_type=linux
9442  need_lib_prefix=no
9443  need_version=no
9444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9445  soname_spec='${libname}${release}${shared_ext}$major'
9446  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9447  shlibpath_var=LD_LIBRARY_PATH
9448  shlibpath_overrides_runpath=no
9449  hardcode_into_libs=yes
9450  ;;
9451
9452irix5* | irix6* | nonstopux*)
9453  case $host_os in
9454    nonstopux*) version_type=nonstopux ;;
9455    *)
9456	if test "$lt_cv_prog_gnu_ld" = yes; then
9457		version_type=linux
9458	else
9459		version_type=irix
9460	fi ;;
9461  esac
9462  need_lib_prefix=no
9463  need_version=no
9464  soname_spec='${libname}${release}${shared_ext}$major'
9465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9466  case $host_os in
9467  irix5* | nonstopux*)
9468    libsuff= shlibsuff=
9469    ;;
9470  *)
9471    case $LD in # libtool.m4 will add one of these switches to LD
9472    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9473      libsuff= shlibsuff= libmagic=32-bit;;
9474    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9475      libsuff=32 shlibsuff=N32 libmagic=N32;;
9476    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9477      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9478    *) libsuff= shlibsuff= libmagic=never-match;;
9479    esac
9480    ;;
9481  esac
9482  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9483  shlibpath_overrides_runpath=no
9484  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9485  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9486  hardcode_into_libs=yes
9487  ;;
9488
9489# No shared lib support for Linux oldld, aout, or coff.
9490linux*oldld* | linux*aout* | linux*coff*)
9491  dynamic_linker=no
9492  ;;
9493
9494# This must be Linux ELF.
9495linux*)
9496  version_type=linux
9497  need_lib_prefix=no
9498  need_version=no
9499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500  soname_spec='${libname}${release}${shared_ext}$major'
9501  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9502  shlibpath_var=LD_LIBRARY_PATH
9503  shlibpath_overrides_runpath=no
9504  # This implies no fast_install, which is unacceptable.
9505  # Some rework will be needed to allow for fast_install
9506  # before this can be enabled.
9507  hardcode_into_libs=yes
9508
9509  # find out which ABI we are using
9510  libsuff=
9511  case "$host_cpu" in
9512  x86_64*|s390x*|powerpc64*)
9513    echo '#line 9513 "configure"' > conftest.$ac_ext
9514    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515  (eval $ac_compile) 2>&5
9516  ac_status=$?
9517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518  (exit $ac_status); }; then
9519      case `/usr/bin/file conftest.$ac_objext` in
9520      *64-bit*)
9521        libsuff=64
9522        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9523        ;;
9524      esac
9525    fi
9526    rm -rf conftest*
9527    ;;
9528  esac
9529
9530  # Append ld.so.conf contents to the search path
9531  if test -f /etc/ld.so.conf; then
9532    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9533    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9534  fi
9535
9536  # We used to test for /lib/ld.so.1 and disable shared libraries on
9537  # powerpc, because MkLinux only supported shared libraries with the
9538  # GNU dynamic linker.  Since this was broken with cross compilers,
9539  # most powerpc-linux boxes support dynamic linking these days and
9540  # people can always --disable-shared, the test was removed, and we
9541  # assume the GNU/Linux dynamic linker is in use.
9542  dynamic_linker='GNU/Linux ld.so'
9543  ;;
9544
9545knetbsd*-gnu)
9546  version_type=linux
9547  need_lib_prefix=no
9548  need_version=no
9549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9550  soname_spec='${libname}${release}${shared_ext}$major'
9551  shlibpath_var=LD_LIBRARY_PATH
9552  shlibpath_overrides_runpath=no
9553  hardcode_into_libs=yes
9554  dynamic_linker='GNU ld.so'
9555  ;;
9556
9557netbsd*)
9558  version_type=sunos
9559  need_lib_prefix=no
9560  need_version=no
9561  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9562    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9563    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9564    dynamic_linker='NetBSD (a.out) ld.so'
9565  else
9566    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9567    soname_spec='${libname}${release}${shared_ext}$major'
9568    dynamic_linker='NetBSD ld.elf_so'
9569  fi
9570  shlibpath_var=LD_LIBRARY_PATH
9571  shlibpath_overrides_runpath=yes
9572  hardcode_into_libs=yes
9573  ;;
9574
9575newsos6)
9576  version_type=linux
9577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578  shlibpath_var=LD_LIBRARY_PATH
9579  shlibpath_overrides_runpath=yes
9580  ;;
9581
9582nto-qnx*)
9583  version_type=linux
9584  need_lib_prefix=no
9585  need_version=no
9586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587  soname_spec='${libname}${release}${shared_ext}$major'
9588  shlibpath_var=LD_LIBRARY_PATH
9589  shlibpath_overrides_runpath=yes
9590  ;;
9591
9592openbsd*)
9593  version_type=sunos
9594  sys_lib_dlsearch_path_spec="/usr/lib"
9595  need_lib_prefix=no
9596  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9597  case $host_os in
9598    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9599    *)                         need_version=no  ;;
9600  esac
9601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9602  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9603  shlibpath_var=LD_LIBRARY_PATH
9604  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9605    case $host_os in
9606      openbsd2.[89] | openbsd2.[89].*)
9607	shlibpath_overrides_runpath=no
9608	;;
9609      *)
9610	shlibpath_overrides_runpath=yes
9611	;;
9612      esac
9613  else
9614    shlibpath_overrides_runpath=yes
9615  fi
9616  ;;
9617
9618os2*)
9619  libname_spec='$name'
9620  shrext_cmds=".dll"
9621  need_lib_prefix=no
9622  library_names_spec='$libname${shared_ext} $libname.a'
9623  dynamic_linker='OS/2 ld.exe'
9624  shlibpath_var=LIBPATH
9625  ;;
9626
9627osf3* | osf4* | osf5*)
9628  version_type=osf
9629  need_lib_prefix=no
9630  need_version=no
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9635  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9636  ;;
9637
9638solaris*)
9639  version_type=linux
9640  need_lib_prefix=no
9641  need_version=no
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  shlibpath_overrides_runpath=yes
9646  hardcode_into_libs=yes
9647  # ldd complains unless libraries are executable
9648  postinstall_cmds='chmod +x $lib'
9649  ;;
9650
9651sunos4*)
9652  version_type=sunos
9653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9654  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9655  shlibpath_var=LD_LIBRARY_PATH
9656  shlibpath_overrides_runpath=yes
9657  if test "$with_gnu_ld" = yes; then
9658    need_lib_prefix=no
9659  fi
9660  need_version=yes
9661  ;;
9662
9663sysv4 | sysv4.3*)
9664  version_type=linux
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  case $host_vendor in
9669    sni)
9670      shlibpath_overrides_runpath=no
9671      need_lib_prefix=no
9672      export_dynamic_flag_spec='${wl}-Blargedynsym'
9673      runpath_var=LD_RUN_PATH
9674      ;;
9675    siemens)
9676      need_lib_prefix=no
9677      ;;
9678    motorola)
9679      need_lib_prefix=no
9680      need_version=no
9681      shlibpath_overrides_runpath=no
9682      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9683      ;;
9684  esac
9685  ;;
9686
9687sysv4*MP*)
9688  if test -d /usr/nec ;then
9689    version_type=linux
9690    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9691    soname_spec='$libname${shared_ext}.$major'
9692    shlibpath_var=LD_LIBRARY_PATH
9693  fi
9694  ;;
9695
9696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9697  version_type=freebsd-elf
9698  need_lib_prefix=no
9699  need_version=no
9700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9701  soname_spec='${libname}${release}${shared_ext}$major'
9702  shlibpath_var=LD_LIBRARY_PATH
9703  hardcode_into_libs=yes
9704  if test "$with_gnu_ld" = yes; then
9705    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9706    shlibpath_overrides_runpath=no
9707  else
9708    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9709    shlibpath_overrides_runpath=yes
9710    case $host_os in
9711      sco3.2v5*)
9712        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9713	;;
9714    esac
9715  fi
9716  sys_lib_dlsearch_path_spec='/usr/lib'
9717  ;;
9718
9719uts4*)
9720  version_type=linux
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722  soname_spec='${libname}${release}${shared_ext}$major'
9723  shlibpath_var=LD_LIBRARY_PATH
9724  ;;
9725
9726*)
9727  dynamic_linker=no
9728  ;;
9729esac
9730echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9731echo "${ECHO_T}$dynamic_linker" >&6
9732test "$dynamic_linker" = no && can_build_shared=no
9733
9734variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9735if test "$GCC" = yes; then
9736  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9737fi
9738
9739echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9740echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9741hardcode_action=
9742if test -n "$hardcode_libdir_flag_spec" || \
9743   test -n "$runpath_var" || \
9744   test "X$hardcode_automatic" = "Xyes" ; then
9745
9746  # We can hardcode non-existant directories.
9747  if test "$hardcode_direct" != no &&
9748     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9749     # have to relink, otherwise we might link with an installed library
9750     # when we should be linking with a yet-to-be-installed one
9751     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9752     test "$hardcode_minus_L" != no; then
9753    # Linking always hardcodes the temporary library directory.
9754    hardcode_action=relink
9755  else
9756    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9757    hardcode_action=immediate
9758  fi
9759else
9760  # We cannot hardcode anything, or else we can only hardcode existing
9761  # directories.
9762  hardcode_action=unsupported
9763fi
9764echo "$as_me:$LINENO: result: $hardcode_action" >&5
9765echo "${ECHO_T}$hardcode_action" >&6
9766
9767if test "$hardcode_action" = relink; then
9768  # Fast installation is not supported
9769  enable_fast_install=no
9770elif test "$shlibpath_overrides_runpath" = yes ||
9771     test "$enable_shared" = no; then
9772  # Fast installation is not necessary
9773  enable_fast_install=needless
9774fi
9775
9776striplib=
9777old_striplib=
9778echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9779echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9780if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9781  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9782  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9783  echo "$as_me:$LINENO: result: yes" >&5
9784echo "${ECHO_T}yes" >&6
9785else
9786# FIXME - insert some real tests, host_os isn't really good enough
9787  case $host_os in
9788   darwin*)
9789       if test -n "$STRIP" ; then
9790         striplib="$STRIP -x"
9791         echo "$as_me:$LINENO: result: yes" >&5
9792echo "${ECHO_T}yes" >&6
9793       else
9794  echo "$as_me:$LINENO: result: no" >&5
9795echo "${ECHO_T}no" >&6
9796fi
9797       ;;
9798   *)
9799  echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801    ;;
9802  esac
9803fi
9804
9805if test "x$enable_dlopen" != xyes; then
9806  enable_dlopen=unknown
9807  enable_dlopen_self=unknown
9808  enable_dlopen_self_static=unknown
9809else
9810  lt_cv_dlopen=no
9811  lt_cv_dlopen_libs=
9812
9813  case $host_os in
9814  beos*)
9815    lt_cv_dlopen="load_add_on"
9816    lt_cv_dlopen_libs=
9817    lt_cv_dlopen_self=yes
9818    ;;
9819
9820  mingw* | pw32*)
9821    lt_cv_dlopen="LoadLibrary"
9822    lt_cv_dlopen_libs=
9823   ;;
9824
9825  cygwin*)
9826    lt_cv_dlopen="dlopen"
9827    lt_cv_dlopen_libs=
9828   ;;
9829
9830  darwin*)
9831  # if libdl is installed we need to link against it
9832    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9833echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9834if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9835  echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837  ac_check_lib_save_LIBS=$LIBS
9838LIBS="-ldl  $LIBS"
9839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h.  */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h.  */
9845
9846/* Override any gcc2 internal prototype to avoid an error.  */
9847#ifdef __cplusplus
9848extern "C"
9849#endif
9850/* We use char because int might match the return type of a gcc2
9851   builtin and then its argument prototype would still apply.  */
9852char dlopen ();
9853int
9854main ()
9855{
9856dlopen ();
9857  ;
9858  return 0;
9859}
9860_ACEOF
9861rm -f conftest.$ac_objext conftest$ac_exeext
9862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863  (eval $ac_link) 2>conftest.er1
9864  ac_status=$?
9865  grep -v '^ *+' conftest.er1 >conftest.err
9866  rm -f conftest.er1
9867  cat conftest.err >&5
9868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869  (exit $ac_status); } &&
9870	 { ac_try='test -z "$ac_c_werror_flag"
9871			 || test ! -s conftest.err'
9872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873  (eval $ac_try) 2>&5
9874  ac_status=$?
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); }; } &&
9877	 { ac_try='test -s conftest$ac_exeext'
9878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879  (eval $ac_try) 2>&5
9880  ac_status=$?
9881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882  (exit $ac_status); }; }; then
9883  ac_cv_lib_dl_dlopen=yes
9884else
9885  echo "$as_me: failed program was:" >&5
9886sed 's/^/| /' conftest.$ac_ext >&5
9887
9888ac_cv_lib_dl_dlopen=no
9889fi
9890rm -f conftest.err conftest.$ac_objext \
9891      conftest$ac_exeext conftest.$ac_ext
9892LIBS=$ac_check_lib_save_LIBS
9893fi
9894echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9895echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9896if test $ac_cv_lib_dl_dlopen = yes; then
9897  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9898else
9899
9900    lt_cv_dlopen="dyld"
9901    lt_cv_dlopen_libs=
9902    lt_cv_dlopen_self=yes
9903
9904fi
9905
9906   ;;
9907
9908  *)
9909    echo "$as_me:$LINENO: checking for shl_load" >&5
9910echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9911if test "${ac_cv_func_shl_load+set}" = set; then
9912  echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914  cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h.  */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h.  */
9920/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9922#define shl_load innocuous_shl_load
9923
9924/* System header to define __stub macros and hopefully few prototypes,
9925    which can conflict with char shl_load (); below.
9926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9927    <limits.h> exists even on freestanding compilers.  */
9928
9929#ifdef __STDC__
9930# include <limits.h>
9931#else
9932# include <assert.h>
9933#endif
9934
9935#undef shl_load
9936
9937/* Override any gcc2 internal prototype to avoid an error.  */
9938#ifdef __cplusplus
9939extern "C"
9940{
9941#endif
9942/* We use char because int might match the return type of a gcc2
9943   builtin and then its argument prototype would still apply.  */
9944char shl_load ();
9945/* The GNU C library defines this for functions which it implements
9946    to always fail with ENOSYS.  Some functions are actually named
9947    something starting with __ and the normal name is an alias.  */
9948#if defined (__stub_shl_load) || defined (__stub___shl_load)
9949choke me
9950#else
9951char (*f) () = shl_load;
9952#endif
9953#ifdef __cplusplus
9954}
9955#endif
9956
9957int
9958main ()
9959{
9960return f != shl_load;
9961  ;
9962  return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext conftest$ac_exeext
9966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967  (eval $ac_link) 2>conftest.er1
9968  ac_status=$?
9969  grep -v '^ *+' conftest.er1 >conftest.err
9970  rm -f conftest.er1
9971  cat conftest.err >&5
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); } &&
9974	 { ac_try='test -z "$ac_c_werror_flag"
9975			 || test ! -s conftest.err'
9976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977  (eval $ac_try) 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }; } &&
9981	 { ac_try='test -s conftest$ac_exeext'
9982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983  (eval $ac_try) 2>&5
9984  ac_status=$?
9985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986  (exit $ac_status); }; }; then
9987  ac_cv_func_shl_load=yes
9988else
9989  echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
9991
9992ac_cv_func_shl_load=no
9993fi
9994rm -f conftest.err conftest.$ac_objext \
9995      conftest$ac_exeext conftest.$ac_ext
9996fi
9997echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9998echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9999if test $ac_cv_func_shl_load = yes; then
10000  lt_cv_dlopen="shl_load"
10001else
10002  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10003echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10004if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10005  echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007  ac_check_lib_save_LIBS=$LIBS
10008LIBS="-ldld  $LIBS"
10009cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h.  */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h.  */
10015
10016/* Override any gcc2 internal prototype to avoid an error.  */
10017#ifdef __cplusplus
10018extern "C"
10019#endif
10020/* We use char because int might match the return type of a gcc2
10021   builtin and then its argument prototype would still apply.  */
10022char shl_load ();
10023int
10024main ()
10025{
10026shl_load ();
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031rm -f conftest.$ac_objext conftest$ac_exeext
10032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033  (eval $ac_link) 2>conftest.er1
10034  ac_status=$?
10035  grep -v '^ *+' conftest.er1 >conftest.err
10036  rm -f conftest.er1
10037  cat conftest.err >&5
10038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039  (exit $ac_status); } &&
10040	 { ac_try='test -z "$ac_c_werror_flag"
10041			 || test ! -s conftest.err'
10042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043  (eval $ac_try) 2>&5
10044  ac_status=$?
10045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046  (exit $ac_status); }; } &&
10047	 { ac_try='test -s conftest$ac_exeext'
10048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049  (eval $ac_try) 2>&5
10050  ac_status=$?
10051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052  (exit $ac_status); }; }; then
10053  ac_cv_lib_dld_shl_load=yes
10054else
10055  echo "$as_me: failed program was:" >&5
10056sed 's/^/| /' conftest.$ac_ext >&5
10057
10058ac_cv_lib_dld_shl_load=no
10059fi
10060rm -f conftest.err conftest.$ac_objext \
10061      conftest$ac_exeext conftest.$ac_ext
10062LIBS=$ac_check_lib_save_LIBS
10063fi
10064echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10065echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10066if test $ac_cv_lib_dld_shl_load = yes; then
10067  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10068else
10069  echo "$as_me:$LINENO: checking for dlopen" >&5
10070echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10071if test "${ac_cv_func_dlopen+set}" = set; then
10072  echo $ECHO_N "(cached) $ECHO_C" >&6
10073else
10074  cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h.  */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h.  */
10080/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10081   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10082#define dlopen innocuous_dlopen
10083
10084/* System header to define __stub macros and hopefully few prototypes,
10085    which can conflict with char dlopen (); below.
10086    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10087    <limits.h> exists even on freestanding compilers.  */
10088
10089#ifdef __STDC__
10090# include <limits.h>
10091#else
10092# include <assert.h>
10093#endif
10094
10095#undef dlopen
10096
10097/* Override any gcc2 internal prototype to avoid an error.  */
10098#ifdef __cplusplus
10099extern "C"
10100{
10101#endif
10102/* We use char because int might match the return type of a gcc2
10103   builtin and then its argument prototype would still apply.  */
10104char dlopen ();
10105/* The GNU C library defines this for functions which it implements
10106    to always fail with ENOSYS.  Some functions are actually named
10107    something starting with __ and the normal name is an alias.  */
10108#if defined (__stub_dlopen) || defined (__stub___dlopen)
10109choke me
10110#else
10111char (*f) () = dlopen;
10112#endif
10113#ifdef __cplusplus
10114}
10115#endif
10116
10117int
10118main ()
10119{
10120return f != dlopen;
10121  ;
10122  return 0;
10123}
10124_ACEOF
10125rm -f conftest.$ac_objext conftest$ac_exeext
10126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10127  (eval $ac_link) 2>conftest.er1
10128  ac_status=$?
10129  grep -v '^ *+' conftest.er1 >conftest.err
10130  rm -f conftest.er1
10131  cat conftest.err >&5
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); } &&
10134	 { ac_try='test -z "$ac_c_werror_flag"
10135			 || test ! -s conftest.err'
10136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137  (eval $ac_try) 2>&5
10138  ac_status=$?
10139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140  (exit $ac_status); }; } &&
10141	 { ac_try='test -s conftest$ac_exeext'
10142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143  (eval $ac_try) 2>&5
10144  ac_status=$?
10145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); }; }; then
10147  ac_cv_func_dlopen=yes
10148else
10149  echo "$as_me: failed program was:" >&5
10150sed 's/^/| /' conftest.$ac_ext >&5
10151
10152ac_cv_func_dlopen=no
10153fi
10154rm -f conftest.err conftest.$ac_objext \
10155      conftest$ac_exeext conftest.$ac_ext
10156fi
10157echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10158echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10159if test $ac_cv_func_dlopen = yes; then
10160  lt_cv_dlopen="dlopen"
10161else
10162  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10163echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10164if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10165  echo $ECHO_N "(cached) $ECHO_C" >&6
10166else
10167  ac_check_lib_save_LIBS=$LIBS
10168LIBS="-ldl  $LIBS"
10169cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h.  */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h.  */
10175
10176/* Override any gcc2 internal prototype to avoid an error.  */
10177#ifdef __cplusplus
10178extern "C"
10179#endif
10180/* We use char because int might match the return type of a gcc2
10181   builtin and then its argument prototype would still apply.  */
10182char dlopen ();
10183int
10184main ()
10185{
10186dlopen ();
10187  ;
10188  return 0;
10189}
10190_ACEOF
10191rm -f conftest.$ac_objext conftest$ac_exeext
10192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193  (eval $ac_link) 2>conftest.er1
10194  ac_status=$?
10195  grep -v '^ *+' conftest.er1 >conftest.err
10196  rm -f conftest.er1
10197  cat conftest.err >&5
10198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199  (exit $ac_status); } &&
10200	 { ac_try='test -z "$ac_c_werror_flag"
10201			 || test ! -s conftest.err'
10202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203  (eval $ac_try) 2>&5
10204  ac_status=$?
10205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206  (exit $ac_status); }; } &&
10207	 { ac_try='test -s conftest$ac_exeext'
10208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209  (eval $ac_try) 2>&5
10210  ac_status=$?
10211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212  (exit $ac_status); }; }; then
10213  ac_cv_lib_dl_dlopen=yes
10214else
10215  echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218ac_cv_lib_dl_dlopen=no
10219fi
10220rm -f conftest.err conftest.$ac_objext \
10221      conftest$ac_exeext conftest.$ac_ext
10222LIBS=$ac_check_lib_save_LIBS
10223fi
10224echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10225echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10226if test $ac_cv_lib_dl_dlopen = yes; then
10227  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10228else
10229  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10230echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10231if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10232  echo $ECHO_N "(cached) $ECHO_C" >&6
10233else
10234  ac_check_lib_save_LIBS=$LIBS
10235LIBS="-lsvld  $LIBS"
10236cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h.  */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h.  */
10242
10243/* Override any gcc2 internal prototype to avoid an error.  */
10244#ifdef __cplusplus
10245extern "C"
10246#endif
10247/* We use char because int might match the return type of a gcc2
10248   builtin and then its argument prototype would still apply.  */
10249char dlopen ();
10250int
10251main ()
10252{
10253dlopen ();
10254  ;
10255  return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext conftest$ac_exeext
10259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260  (eval $ac_link) 2>conftest.er1
10261  ac_status=$?
10262  grep -v '^ *+' conftest.er1 >conftest.err
10263  rm -f conftest.er1
10264  cat conftest.err >&5
10265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266  (exit $ac_status); } &&
10267	 { ac_try='test -z "$ac_c_werror_flag"
10268			 || test ! -s conftest.err'
10269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270  (eval $ac_try) 2>&5
10271  ac_status=$?
10272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273  (exit $ac_status); }; } &&
10274	 { ac_try='test -s conftest$ac_exeext'
10275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276  (eval $ac_try) 2>&5
10277  ac_status=$?
10278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279  (exit $ac_status); }; }; then
10280  ac_cv_lib_svld_dlopen=yes
10281else
10282  echo "$as_me: failed program was:" >&5
10283sed 's/^/| /' conftest.$ac_ext >&5
10284
10285ac_cv_lib_svld_dlopen=no
10286fi
10287rm -f conftest.err conftest.$ac_objext \
10288      conftest$ac_exeext conftest.$ac_ext
10289LIBS=$ac_check_lib_save_LIBS
10290fi
10291echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10292echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10293if test $ac_cv_lib_svld_dlopen = yes; then
10294  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10295else
10296  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10297echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10298if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10299  echo $ECHO_N "(cached) $ECHO_C" >&6
10300else
10301  ac_check_lib_save_LIBS=$LIBS
10302LIBS="-ldld  $LIBS"
10303cat >conftest.$ac_ext <<_ACEOF
10304/* confdefs.h.  */
10305_ACEOF
10306cat confdefs.h >>conftest.$ac_ext
10307cat >>conftest.$ac_ext <<_ACEOF
10308/* end confdefs.h.  */
10309
10310/* Override any gcc2 internal prototype to avoid an error.  */
10311#ifdef __cplusplus
10312extern "C"
10313#endif
10314/* We use char because int might match the return type of a gcc2
10315   builtin and then its argument prototype would still apply.  */
10316char dld_link ();
10317int
10318main ()
10319{
10320dld_link ();
10321  ;
10322  return 0;
10323}
10324_ACEOF
10325rm -f conftest.$ac_objext conftest$ac_exeext
10326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327  (eval $ac_link) 2>conftest.er1
10328  ac_status=$?
10329  grep -v '^ *+' conftest.er1 >conftest.err
10330  rm -f conftest.er1
10331  cat conftest.err >&5
10332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333  (exit $ac_status); } &&
10334	 { ac_try='test -z "$ac_c_werror_flag"
10335			 || test ! -s conftest.err'
10336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337  (eval $ac_try) 2>&5
10338  ac_status=$?
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); }; } &&
10341	 { ac_try='test -s conftest$ac_exeext'
10342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343  (eval $ac_try) 2>&5
10344  ac_status=$?
10345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346  (exit $ac_status); }; }; then
10347  ac_cv_lib_dld_dld_link=yes
10348else
10349  echo "$as_me: failed program was:" >&5
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
10352ac_cv_lib_dld_dld_link=no
10353fi
10354rm -f conftest.err conftest.$ac_objext \
10355      conftest$ac_exeext conftest.$ac_ext
10356LIBS=$ac_check_lib_save_LIBS
10357fi
10358echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10359echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10360if test $ac_cv_lib_dld_dld_link = yes; then
10361  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10362fi
10363
10364
10365fi
10366
10367
10368fi
10369
10370
10371fi
10372
10373
10374fi
10375
10376
10377fi
10378
10379    ;;
10380  esac
10381
10382  if test "x$lt_cv_dlopen" != xno; then
10383    enable_dlopen=yes
10384  else
10385    enable_dlopen=no
10386  fi
10387
10388  case $lt_cv_dlopen in
10389  dlopen)
10390    save_CPPFLAGS="$CPPFLAGS"
10391    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10392
10393    save_LDFLAGS="$LDFLAGS"
10394    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10395
10396    save_LIBS="$LIBS"
10397    LIBS="$lt_cv_dlopen_libs $LIBS"
10398
10399    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10400echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10401if test "${lt_cv_dlopen_self+set}" = set; then
10402  echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404  	  if test "$cross_compiling" = yes; then :
10405  lt_cv_dlopen_self=cross
10406else
10407  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10408  lt_status=$lt_dlunknown
10409  cat > conftest.$ac_ext <<EOF
10410#line 10410 "configure"
10411#include "confdefs.h"
10412
10413#if HAVE_DLFCN_H
10414#include <dlfcn.h>
10415#endif
10416
10417#include <stdio.h>
10418
10419#ifdef RTLD_GLOBAL
10420#  define LT_DLGLOBAL		RTLD_GLOBAL
10421#else
10422#  ifdef DL_GLOBAL
10423#    define LT_DLGLOBAL		DL_GLOBAL
10424#  else
10425#    define LT_DLGLOBAL		0
10426#  endif
10427#endif
10428
10429/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10430   find out it does not work in some platform. */
10431#ifndef LT_DLLAZY_OR_NOW
10432#  ifdef RTLD_LAZY
10433#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10434#  else
10435#    ifdef DL_LAZY
10436#      define LT_DLLAZY_OR_NOW		DL_LAZY
10437#    else
10438#      ifdef RTLD_NOW
10439#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10440#      else
10441#        ifdef DL_NOW
10442#          define LT_DLLAZY_OR_NOW	DL_NOW
10443#        else
10444#          define LT_DLLAZY_OR_NOW	0
10445#        endif
10446#      endif
10447#    endif
10448#  endif
10449#endif
10450
10451#ifdef __cplusplus
10452extern "C" void exit (int);
10453#endif
10454
10455void fnord() { int i=42;}
10456int main ()
10457{
10458  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459  int status = $lt_dlunknown;
10460
10461  if (self)
10462    {
10463      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10464      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465      /* dlclose (self); */
10466    }
10467  else
10468    puts (dlerror ());
10469
10470    exit (status);
10471}
10472EOF
10473  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474  (eval $ac_link) 2>&5
10475  ac_status=$?
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10478    (./conftest; exit; ) >&5 2>/dev/null
10479    lt_status=$?
10480    case x$lt_status in
10481      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10482      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10483      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10484    esac
10485  else :
10486    # compilation failed
10487    lt_cv_dlopen_self=no
10488  fi
10489fi
10490rm -fr conftest*
10491
10492
10493fi
10494echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10495echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10496
10497    if test "x$lt_cv_dlopen_self" = xyes; then
10498      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10499      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10500echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10501if test "${lt_cv_dlopen_self_static+set}" = set; then
10502  echo $ECHO_N "(cached) $ECHO_C" >&6
10503else
10504  	  if test "$cross_compiling" = yes; then :
10505  lt_cv_dlopen_self_static=cross
10506else
10507  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10508  lt_status=$lt_dlunknown
10509  cat > conftest.$ac_ext <<EOF
10510#line 10510 "configure"
10511#include "confdefs.h"
10512
10513#if HAVE_DLFCN_H
10514#include <dlfcn.h>
10515#endif
10516
10517#include <stdio.h>
10518
10519#ifdef RTLD_GLOBAL
10520#  define LT_DLGLOBAL		RTLD_GLOBAL
10521#else
10522#  ifdef DL_GLOBAL
10523#    define LT_DLGLOBAL		DL_GLOBAL
10524#  else
10525#    define LT_DLGLOBAL		0
10526#  endif
10527#endif
10528
10529/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10530   find out it does not work in some platform. */
10531#ifndef LT_DLLAZY_OR_NOW
10532#  ifdef RTLD_LAZY
10533#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10534#  else
10535#    ifdef DL_LAZY
10536#      define LT_DLLAZY_OR_NOW		DL_LAZY
10537#    else
10538#      ifdef RTLD_NOW
10539#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10540#      else
10541#        ifdef DL_NOW
10542#          define LT_DLLAZY_OR_NOW	DL_NOW
10543#        else
10544#          define LT_DLLAZY_OR_NOW	0
10545#        endif
10546#      endif
10547#    endif
10548#  endif
10549#endif
10550
10551#ifdef __cplusplus
10552extern "C" void exit (int);
10553#endif
10554
10555void fnord() { int i=42;}
10556int main ()
10557{
10558  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10559  int status = $lt_dlunknown;
10560
10561  if (self)
10562    {
10563      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10564      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10565      /* dlclose (self); */
10566    }
10567  else
10568    puts (dlerror ());
10569
10570    exit (status);
10571}
10572EOF
10573  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574  (eval $ac_link) 2>&5
10575  ac_status=$?
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10578    (./conftest; exit; ) >&5 2>/dev/null
10579    lt_status=$?
10580    case x$lt_status in
10581      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10582      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10583      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10584    esac
10585  else :
10586    # compilation failed
10587    lt_cv_dlopen_self_static=no
10588  fi
10589fi
10590rm -fr conftest*
10591
10592
10593fi
10594echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10595echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10596    fi
10597
10598    CPPFLAGS="$save_CPPFLAGS"
10599    LDFLAGS="$save_LDFLAGS"
10600    LIBS="$save_LIBS"
10601    ;;
10602  esac
10603
10604  case $lt_cv_dlopen_self in
10605  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10606  *) enable_dlopen_self=unknown ;;
10607  esac
10608
10609  case $lt_cv_dlopen_self_static in
10610  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10611  *) enable_dlopen_self_static=unknown ;;
10612  esac
10613fi
10614
10615
10616# Report which library types will actually be built
10617echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10618echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10619echo "$as_me:$LINENO: result: $can_build_shared" >&5
10620echo "${ECHO_T}$can_build_shared" >&6
10621
10622echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10623echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10624test "$can_build_shared" = "no" && enable_shared=no
10625
10626# On AIX, shared libraries and static libraries use the same namespace, and
10627# are all built from PIC.
10628case $host_os in
10629aix3*)
10630  test "$enable_shared" = yes && enable_static=no
10631  if test -n "$RANLIB"; then
10632    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10633    postinstall_cmds='$RANLIB $lib'
10634  fi
10635  ;;
10636
10637aix4* | aix5*)
10638  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10639    test "$enable_shared" = yes && enable_static=no
10640  fi
10641    ;;
10642esac
10643echo "$as_me:$LINENO: result: $enable_shared" >&5
10644echo "${ECHO_T}$enable_shared" >&6
10645
10646echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10647echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10648# Make sure either enable_shared or enable_static is yes.
10649test "$enable_shared" = yes || enable_static=yes
10650echo "$as_me:$LINENO: result: $enable_static" >&5
10651echo "${ECHO_T}$enable_static" >&6
10652
10653# The else clause should only fire when bootstrapping the
10654# libtool distribution, otherwise you forgot to ship ltmain.sh
10655# with your package, and you will get complaints that there are
10656# no rules to generate ltmain.sh.
10657if test -f "$ltmain"; then
10658  # See if we are running on zsh, and set the options which allow our commands through
10659  # without removal of \ escapes.
10660  if test -n "${ZSH_VERSION+set}" ; then
10661    setopt NO_GLOB_SUBST
10662  fi
10663  # Now quote all the things that may contain metacharacters while being
10664  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10665  # variables and quote the copies for generation of the libtool script.
10666  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10667    SED SHELL STRIP \
10668    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10669    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10670    deplibs_check_method reload_flag reload_cmds need_locks \
10671    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10672    lt_cv_sys_global_symbol_to_c_name_address \
10673    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10674    old_postinstall_cmds old_postuninstall_cmds \
10675    compiler \
10676    CC \
10677    LD \
10678    lt_prog_compiler_wl \
10679    lt_prog_compiler_pic \
10680    lt_prog_compiler_static \
10681    lt_prog_compiler_no_builtin_flag \
10682    export_dynamic_flag_spec \
10683    thread_safe_flag_spec \
10684    whole_archive_flag_spec \
10685    enable_shared_with_static_runtimes \
10686    old_archive_cmds \
10687    old_archive_from_new_cmds \
10688    predep_objects \
10689    postdep_objects \
10690    predeps \
10691    postdeps \
10692    compiler_lib_search_path \
10693    archive_cmds \
10694    archive_expsym_cmds \
10695    postinstall_cmds \
10696    postuninstall_cmds \
10697    old_archive_from_expsyms_cmds \
10698    allow_undefined_flag \
10699    no_undefined_flag \
10700    export_symbols_cmds \
10701    hardcode_libdir_flag_spec \
10702    hardcode_libdir_flag_spec_ld \
10703    hardcode_libdir_separator \
10704    hardcode_automatic \
10705    module_cmds \
10706    module_expsym_cmds \
10707    lt_cv_prog_compiler_c_o \
10708    exclude_expsyms \
10709    include_expsyms; do
10710
10711    case $var in
10712    old_archive_cmds | \
10713    old_archive_from_new_cmds | \
10714    archive_cmds | \
10715    archive_expsym_cmds | \
10716    module_cmds | \
10717    module_expsym_cmds | \
10718    old_archive_from_expsyms_cmds | \
10719    export_symbols_cmds | \
10720    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10721    postinstall_cmds | postuninstall_cmds | \
10722    old_postinstall_cmds | old_postuninstall_cmds | \
10723    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10724      # Double-quote double-evaled strings.
10725      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10726      ;;
10727    *)
10728      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10729      ;;
10730    esac
10731  done
10732
10733  case $lt_echo in
10734  *'\$0 --fallback-echo"')
10735    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10736    ;;
10737  esac
10738
10739cfgfile="${ofile}T"
10740  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10741  $rm -f "$cfgfile"
10742  { echo "$as_me:$LINENO: creating $ofile" >&5
10743echo "$as_me: creating $ofile" >&6;}
10744
10745  cat <<__EOF__ >> "$cfgfile"
10746#! $SHELL
10747
10748# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10749# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10750# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10751#
10752# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10753# Free Software Foundation, Inc.
10754#
10755# This file is part of GNU Libtool:
10756# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10757#
10758# This program is free software; you can redistribute it and/or modify
10759# it under the terms of the GNU General Public License as published by
10760# the Free Software Foundation; either version 2 of the License, or
10761# (at your option) any later version.
10762#
10763# This program is distributed in the hope that it will be useful, but
10764# WITHOUT ANY WARRANTY; without even the implied warranty of
10765# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10766# General Public License for more details.
10767#
10768# You should have received a copy of the GNU General Public License
10769# along with this program; if not, write to the Free Software
10770# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10771#
10772# As a special exception to the GNU General Public License, if you
10773# distribute this file as part of a program that contains a
10774# configuration script generated by Autoconf, you may include it under
10775# the same distribution terms that you use for the rest of that program.
10776
10777# A sed program that does not truncate output.
10778SED=$lt_SED
10779
10780# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10781Xsed="$SED -e 1s/^X//"
10782
10783# The HP-UX ksh and POSIX shell print the target directory to stdout
10784# if CDPATH is set.
10785(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10786
10787# The names of the tagged configurations supported by this script.
10788available_tags=
10789
10790# ### BEGIN LIBTOOL CONFIG
10791
10792# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10793
10794# Shell to use when invoking shell scripts.
10795SHELL=$lt_SHELL
10796
10797# Whether or not to build shared libraries.
10798build_libtool_libs=$enable_shared
10799
10800# Whether or not to build static libraries.
10801build_old_libs=$enable_static
10802
10803# Whether or not to add -lc for building shared libraries.
10804build_libtool_need_lc=$archive_cmds_need_lc
10805
10806# Whether or not to disallow shared libs when runtime libs are static
10807allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10808
10809# Whether or not to optimize for fast installation.
10810fast_install=$enable_fast_install
10811
10812# The host system.
10813host_alias=$host_alias
10814host=$host
10815host_os=$host_os
10816
10817# The build system.
10818build_alias=$build_alias
10819build=$build
10820build_os=$build_os
10821
10822# An echo program that does not interpret backslashes.
10823echo=$lt_echo
10824
10825# The archiver.
10826AR=$lt_AR
10827AR_FLAGS=$lt_AR_FLAGS
10828
10829# A C compiler.
10830LTCC=$lt_LTCC
10831
10832# LTCC compiler flags.
10833LTCFLAGS=$lt_LTCFLAGS
10834
10835# A language-specific compiler.
10836CC=$lt_compiler
10837
10838# Is the compiler the GNU C compiler?
10839with_gcc=$GCC
10840
10841# An ERE matcher.
10842EGREP=$lt_EGREP
10843
10844# The linker used to build libraries.
10845LD=$lt_LD
10846
10847# Whether we need hard or soft links.
10848LN_S=$lt_LN_S
10849
10850# A BSD-compatible nm program.
10851NM=$lt_NM
10852
10853# A symbol stripping program
10854STRIP=$lt_STRIP
10855
10856# Used to examine libraries when file_magic_cmd begins "file"
10857MAGIC_CMD=$MAGIC_CMD
10858
10859# Used on cygwin: DLL creation program.
10860DLLTOOL="$DLLTOOL"
10861
10862# Used on cygwin: object dumper.
10863OBJDUMP="$OBJDUMP"
10864
10865# Used on cygwin: assembler.
10866AS="$AS"
10867
10868# The name of the directory that contains temporary libtool files.
10869objdir=$objdir
10870
10871# How to create reloadable object files.
10872reload_flag=$lt_reload_flag
10873reload_cmds=$lt_reload_cmds
10874
10875# How to pass a linker flag through the compiler.
10876wl=$lt_lt_prog_compiler_wl
10877
10878# Object file suffix (normally "o").
10879objext="$ac_objext"
10880
10881# Old archive suffix (normally "a").
10882libext="$libext"
10883
10884# Shared library suffix (normally ".so").
10885shrext_cmds='$shrext_cmds'
10886
10887# Executable file suffix (normally "").
10888exeext="$exeext"
10889
10890# Additional compiler flags for building library objects.
10891pic_flag=$lt_lt_prog_compiler_pic
10892pic_mode=$pic_mode
10893
10894# What is the maximum length of a command?
10895max_cmd_len=$lt_cv_sys_max_cmd_len
10896
10897# Does compiler simultaneously support -c and -o options?
10898compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10899
10900# Must we lock files when doing compilation?
10901need_locks=$lt_need_locks
10902
10903# Do we need the lib prefix for modules?
10904need_lib_prefix=$need_lib_prefix
10905
10906# Do we need a version for libraries?
10907need_version=$need_version
10908
10909# Whether dlopen is supported.
10910dlopen_support=$enable_dlopen
10911
10912# Whether dlopen of programs is supported.
10913dlopen_self=$enable_dlopen_self
10914
10915# Whether dlopen of statically linked programs is supported.
10916dlopen_self_static=$enable_dlopen_self_static
10917
10918# Compiler flag to prevent dynamic linking.
10919link_static_flag=$lt_lt_prog_compiler_static
10920
10921# Compiler flag to turn off builtin functions.
10922no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10923
10924# Compiler flag to allow reflexive dlopens.
10925export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10926
10927# Compiler flag to generate shared objects directly from archives.
10928whole_archive_flag_spec=$lt_whole_archive_flag_spec
10929
10930# Compiler flag to generate thread-safe objects.
10931thread_safe_flag_spec=$lt_thread_safe_flag_spec
10932
10933# Library versioning type.
10934version_type=$version_type
10935
10936# Format of library name prefix.
10937libname_spec=$lt_libname_spec
10938
10939# List of archive names.  First name is the real one, the rest are links.
10940# The last name is the one that the linker finds with -lNAME.
10941library_names_spec=$lt_library_names_spec
10942
10943# The coded name of the library, if different from the real name.
10944soname_spec=$lt_soname_spec
10945
10946# Commands used to build and install an old-style archive.
10947RANLIB=$lt_RANLIB
10948old_archive_cmds=$lt_old_archive_cmds
10949old_postinstall_cmds=$lt_old_postinstall_cmds
10950old_postuninstall_cmds=$lt_old_postuninstall_cmds
10951
10952# Create an old-style archive from a shared archive.
10953old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10954
10955# Create a temporary old-style archive to link instead of a shared archive.
10956old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10957
10958# Commands used to build and install a shared archive.
10959archive_cmds=$lt_archive_cmds
10960archive_expsym_cmds=$lt_archive_expsym_cmds
10961postinstall_cmds=$lt_postinstall_cmds
10962postuninstall_cmds=$lt_postuninstall_cmds
10963
10964# Commands used to build a loadable module (assumed same as above if empty)
10965module_cmds=$lt_module_cmds
10966module_expsym_cmds=$lt_module_expsym_cmds
10967
10968# Commands to strip libraries.
10969old_striplib=$lt_old_striplib
10970striplib=$lt_striplib
10971
10972# Dependencies to place before the objects being linked to create a
10973# shared library.
10974predep_objects=$lt_predep_objects
10975
10976# Dependencies to place after the objects being linked to create a
10977# shared library.
10978postdep_objects=$lt_postdep_objects
10979
10980# Dependencies to place before the objects being linked to create a
10981# shared library.
10982predeps=$lt_predeps
10983
10984# Dependencies to place after the objects being linked to create a
10985# shared library.
10986postdeps=$lt_postdeps
10987
10988# The library search path used internally by the compiler when linking
10989# a shared library.
10990compiler_lib_search_path=$lt_compiler_lib_search_path
10991
10992# Method to check whether dependent libraries are shared objects.
10993deplibs_check_method=$lt_deplibs_check_method
10994
10995# Command to use when deplibs_check_method == file_magic.
10996file_magic_cmd=$lt_file_magic_cmd
10997
10998# Flag that allows shared libraries with undefined symbols to be built.
10999allow_undefined_flag=$lt_allow_undefined_flag
11000
11001# Flag that forces no undefined symbols.
11002no_undefined_flag=$lt_no_undefined_flag
11003
11004# Commands used to finish a libtool library installation in a directory.
11005finish_cmds=$lt_finish_cmds
11006
11007# Same as above, but a single script fragment to be evaled but not shown.
11008finish_eval=$lt_finish_eval
11009
11010# Take the output of nm and produce a listing of raw symbols and C names.
11011global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11012
11013# Transform the output of nm in a proper C declaration
11014global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11015
11016# Transform the output of nm in a C name address pair
11017global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11018
11019# This is the shared library runtime path variable.
11020runpath_var=$runpath_var
11021
11022# This is the shared library path variable.
11023shlibpath_var=$shlibpath_var
11024
11025# Is shlibpath searched before the hard-coded library search path?
11026shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11027
11028# How to hardcode a shared library path into an executable.
11029hardcode_action=$hardcode_action
11030
11031# Whether we should hardcode library paths into libraries.
11032hardcode_into_libs=$hardcode_into_libs
11033
11034# Flag to hardcode \$libdir into a binary during linking.
11035# This must work even if \$libdir does not exist.
11036hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11037
11038# If ld is used when linking, flag to hardcode \$libdir into
11039# a binary during linking. This must work even if \$libdir does
11040# not exist.
11041hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11042
11043# Whether we need a single -rpath flag with a separated argument.
11044hardcode_libdir_separator=$lt_hardcode_libdir_separator
11045
11046# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11047# resulting binary.
11048hardcode_direct=$hardcode_direct
11049
11050# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11051# resulting binary.
11052hardcode_minus_L=$hardcode_minus_L
11053
11054# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11055# the resulting binary.
11056hardcode_shlibpath_var=$hardcode_shlibpath_var
11057
11058# Set to yes if building a shared library automatically hardcodes DIR into the library
11059# and all subsequent libraries and executables linked against it.
11060hardcode_automatic=$hardcode_automatic
11061
11062# Variables whose values should be saved in libtool wrapper scripts and
11063# restored at relink time.
11064variables_saved_for_relink="$variables_saved_for_relink"
11065
11066# Whether libtool must link a program against all its dependency libraries.
11067link_all_deplibs=$link_all_deplibs
11068
11069# Compile-time system search path for libraries
11070sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11071
11072# Run-time system search path for libraries
11073sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11074
11075# Fix the shell variable \$srcfile for the compiler.
11076fix_srcfile_path="$fix_srcfile_path"
11077
11078# Set to yes if exported symbols are required.
11079always_export_symbols=$always_export_symbols
11080
11081# The commands to list exported symbols.
11082export_symbols_cmds=$lt_export_symbols_cmds
11083
11084# The commands to extract the exported symbol list from a shared archive.
11085extract_expsyms_cmds=$lt_extract_expsyms_cmds
11086
11087# Symbols that should not be listed in the preloaded symbols.
11088exclude_expsyms=$lt_exclude_expsyms
11089
11090# Symbols that must always be exported.
11091include_expsyms=$lt_include_expsyms
11092
11093# ### END LIBTOOL CONFIG
11094
11095__EOF__
11096
11097
11098  case $host_os in
11099  aix3*)
11100    cat <<\EOF >> "$cfgfile"
11101
11102# AIX sometimes has problems with the GCC collect2 program.  For some
11103# reason, if we set the COLLECT_NAMES environment variable, the problems
11104# vanish in a puff of smoke.
11105if test "X${COLLECT_NAMES+set}" != Xset; then
11106  COLLECT_NAMES=
11107  export COLLECT_NAMES
11108fi
11109EOF
11110    ;;
11111  esac
11112
11113  # We use sed instead of cat because bash on DJGPP gets confused if
11114  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11115  # text mode, it properly converts lines to CR/LF.  This bash problem
11116  # is reportedly fixed, but why not run on old versions too?
11117  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11118
11119  mv -f "$cfgfile" "$ofile" || \
11120    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11121  chmod +x "$ofile"
11122
11123else
11124  # If there is no Makefile yet, we rely on a make rule to execute
11125  # `config.status --recheck' to rerun these tests and create the
11126  # libtool script then.
11127  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11128  if test -f "$ltmain_in"; then
11129    test -f Makefile && make "$ltmain"
11130  fi
11131fi
11132
11133
11134ac_ext=c
11135ac_cpp='$CPP $CPPFLAGS'
11136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11138ac_compiler_gnu=$ac_cv_c_compiler_gnu
11139
11140CC="$lt_save_CC"
11141
11142
11143# Check whether --with-tags or --without-tags was given.
11144if test "${with_tags+set}" = set; then
11145  withval="$with_tags"
11146  tagnames="$withval"
11147fi;
11148
11149if test -f "$ltmain" && test -n "$tagnames"; then
11150  if test ! -f "${ofile}"; then
11151    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11152echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11153  fi
11154
11155  if test -z "$LTCC"; then
11156    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11157    if test -z "$LTCC"; then
11158      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11159echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11160    else
11161      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11162echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11163    fi
11164  fi
11165  if test -z "$LTCFLAGS"; then
11166    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11167  fi
11168
11169  # Extract list of available tagged configurations in $ofile.
11170  # Note that this assumes the entire list is on one line.
11171  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11172
11173  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11174  for tagname in $tagnames; do
11175    IFS="$lt_save_ifs"
11176    # Check whether tagname contains only valid characters
11177    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11178    "") ;;
11179    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11180echo "$as_me: error: invalid tag name: $tagname" >&2;}
11181   { (exit 1); exit 1; }; }
11182	;;
11183    esac
11184
11185    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11186    then
11187      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11188echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11189   { (exit 1); exit 1; }; }
11190    fi
11191
11192    # Update the list of available tags.
11193    if test -n "$tagname"; then
11194      echo appending configuration tag \"$tagname\" to $ofile
11195
11196      case $tagname in
11197      CXX)
11198	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11199	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11200	    (test "X$CXX" != "Xg++"))) ; then
11201	  ac_ext=cc
11202ac_cpp='$CXXCPP $CPPFLAGS'
11203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11206
11207
11208
11209
11210archive_cmds_need_lc_CXX=no
11211allow_undefined_flag_CXX=
11212always_export_symbols_CXX=no
11213archive_expsym_cmds_CXX=
11214export_dynamic_flag_spec_CXX=
11215hardcode_direct_CXX=no
11216hardcode_libdir_flag_spec_CXX=
11217hardcode_libdir_flag_spec_ld_CXX=
11218hardcode_libdir_separator_CXX=
11219hardcode_minus_L_CXX=no
11220hardcode_shlibpath_var_CXX=unsupported
11221hardcode_automatic_CXX=no
11222module_cmds_CXX=
11223module_expsym_cmds_CXX=
11224link_all_deplibs_CXX=unknown
11225old_archive_cmds_CXX=$old_archive_cmds
11226no_undefined_flag_CXX=
11227whole_archive_flag_spec_CXX=
11228enable_shared_with_static_runtimes_CXX=no
11229
11230# Dependencies to place before and after the object being linked:
11231predep_objects_CXX=
11232postdep_objects_CXX=
11233predeps_CXX=
11234postdeps_CXX=
11235compiler_lib_search_path_CXX=
11236
11237# Source file extension for C++ test sources.
11238ac_ext=cpp
11239
11240# Object file extension for compiled C++ test sources.
11241objext=o
11242objext_CXX=$objext
11243
11244# Code to be used in simple compile tests
11245lt_simple_compile_test_code="int some_variable = 0;\n"
11246
11247# Code to be used in simple link tests
11248lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11249
11250# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11251
11252# If no C compiler was specified, use CC.
11253LTCC=${LTCC-"$CC"}
11254
11255# If no C compiler flags were specified, use CFLAGS.
11256LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11257
11258# Allow CC to be a program name with arguments.
11259compiler=$CC
11260
11261
11262# save warnings/boilerplate of simple test code
11263ac_outfile=conftest.$ac_objext
11264printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11265eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11266_lt_compiler_boilerplate=`cat conftest.err`
11267$rm conftest*
11268
11269ac_outfile=conftest.$ac_objext
11270printf "$lt_simple_link_test_code" >conftest.$ac_ext
11271eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11272_lt_linker_boilerplate=`cat conftest.err`
11273$rm conftest*
11274
11275
11276# Allow CC to be a program name with arguments.
11277lt_save_CC=$CC
11278lt_save_LD=$LD
11279lt_save_GCC=$GCC
11280GCC=$GXX
11281lt_save_with_gnu_ld=$with_gnu_ld
11282lt_save_path_LD=$lt_cv_path_LD
11283if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11284  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11285else
11286  $as_unset lt_cv_prog_gnu_ld
11287fi
11288if test -n "${lt_cv_path_LDCXX+set}"; then
11289  lt_cv_path_LD=$lt_cv_path_LDCXX
11290else
11291  $as_unset lt_cv_path_LD
11292fi
11293test -z "${LDCXX+set}" || LD=$LDCXX
11294CC=${CXX-"c++"}
11295compiler=$CC
11296compiler_CXX=$CC
11297for cc_temp in $compiler""; do
11298  case $cc_temp in
11299    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11300    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11301    \-*) ;;
11302    *) break;;
11303  esac
11304done
11305cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11306
11307
11308# We don't want -fno-exception wen compiling C++ code, so set the
11309# no_builtin_flag separately
11310if test "$GXX" = yes; then
11311  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11312else
11313  lt_prog_compiler_no_builtin_flag_CXX=
11314fi
11315
11316if test "$GXX" = yes; then
11317  # Set up default GNU C++ configuration
11318
11319
11320# Check whether --with-gnu-ld or --without-gnu-ld was given.
11321if test "${with_gnu_ld+set}" = set; then
11322  withval="$with_gnu_ld"
11323  test "$withval" = no || with_gnu_ld=yes
11324else
11325  with_gnu_ld=no
11326fi;
11327ac_prog=ld
11328if test "$GCC" = yes; then
11329  # Check if gcc -print-prog-name=ld gives a path.
11330  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11331echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11332  case $host in
11333  *-*-mingw*)
11334    # gcc leaves a trailing carriage return which upsets mingw
11335    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11336  *)
11337    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11338  esac
11339  case $ac_prog in
11340    # Accept absolute paths.
11341    [\\/]* | ?:[\\/]*)
11342      re_direlt='/[^/][^/]*/\.\./'
11343      # Canonicalize the pathname of ld
11344      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11345      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11346	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11347      done
11348      test -z "$LD" && LD="$ac_prog"
11349      ;;
11350  "")
11351    # If it fails, then pretend we aren't using GCC.
11352    ac_prog=ld
11353    ;;
11354  *)
11355    # If it is relative, then search for the first ld in PATH.
11356    with_gnu_ld=unknown
11357    ;;
11358  esac
11359elif test "$with_gnu_ld" = yes; then
11360  echo "$as_me:$LINENO: checking for GNU ld" >&5
11361echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11362else
11363  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11364echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11365fi
11366if test "${lt_cv_path_LD+set}" = set; then
11367  echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369  if test -z "$LD"; then
11370  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11371  for ac_dir in $PATH; do
11372    IFS="$lt_save_ifs"
11373    test -z "$ac_dir" && ac_dir=.
11374    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11375      lt_cv_path_LD="$ac_dir/$ac_prog"
11376      # Check to see if the program is GNU ld.  I'd rather use --version,
11377      # but apparently some variants of GNU ld only accept -v.
11378      # Break only if it was the GNU/non-GNU ld that we prefer.
11379      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11380      *GNU* | *'with BFD'*)
11381	test "$with_gnu_ld" != no && break
11382	;;
11383      *)
11384	test "$with_gnu_ld" != yes && break
11385	;;
11386      esac
11387    fi
11388  done
11389  IFS="$lt_save_ifs"
11390else
11391  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11392fi
11393fi
11394
11395LD="$lt_cv_path_LD"
11396if test -n "$LD"; then
11397  echo "$as_me:$LINENO: result: $LD" >&5
11398echo "${ECHO_T}$LD" >&6
11399else
11400  echo "$as_me:$LINENO: result: no" >&5
11401echo "${ECHO_T}no" >&6
11402fi
11403test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11404echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11405   { (exit 1); exit 1; }; }
11406echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11407echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11408if test "${lt_cv_prog_gnu_ld+set}" = set; then
11409  echo $ECHO_N "(cached) $ECHO_C" >&6
11410else
11411  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11412case `$LD -v 2>&1 </dev/null` in
11413*GNU* | *'with BFD'*)
11414  lt_cv_prog_gnu_ld=yes
11415  ;;
11416*)
11417  lt_cv_prog_gnu_ld=no
11418  ;;
11419esac
11420fi
11421echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11422echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11423with_gnu_ld=$lt_cv_prog_gnu_ld
11424
11425
11426
11427  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11428  # archiving commands below assume that GNU ld is being used.
11429  if test "$with_gnu_ld" = yes; then
11430    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11431    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'
11432
11433    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11434    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11435
11436    # If archive_cmds runs LD, not CC, wlarc should be empty
11437    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11438    #     investigate it a little bit more. (MM)
11439    wlarc='${wl}'
11440
11441    # ancient GNU ld didn't support --whole-archive et. al.
11442    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11443	grep 'no-whole-archive' > /dev/null; then
11444      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11445    else
11446      whole_archive_flag_spec_CXX=
11447    fi
11448  else
11449    with_gnu_ld=no
11450    wlarc=
11451
11452    # A generic and very simple default shared library creation
11453    # command for GNU C++ for the case where it uses the native
11454    # linker, instead of GNU ld.  If possible, this setting should
11455    # overridden to take advantage of the native linker features on
11456    # the platform it is being used on.
11457    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11458  fi
11459
11460  # Commands to make compiler produce verbose output that lists
11461  # what "hidden" libraries, object files and flags are used when
11462  # linking a shared library.
11463  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11464
11465else
11466  GXX=no
11467  with_gnu_ld=no
11468  wlarc=
11469fi
11470
11471# PORTME: fill in a description of your system's C++ link characteristics
11472echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11473echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11474ld_shlibs_CXX=yes
11475case $host_os in
11476  aix3*)
11477    # FIXME: insert proper C++ library support
11478    ld_shlibs_CXX=no
11479    ;;
11480  aix4* | aix5*)
11481    if test "$host_cpu" = ia64; then
11482      # On IA64, the linker does run time linking by default, so we don't
11483      # have to do anything special.
11484      aix_use_runtimelinking=no
11485      exp_sym_flag='-Bexport'
11486      no_entry_flag=""
11487    else
11488      aix_use_runtimelinking=no
11489
11490      # Test if we are trying to use run time linking or normal
11491      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11492      # need to do runtime linking.
11493      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11494	for ld_flag in $LDFLAGS; do
11495	  case $ld_flag in
11496	  *-brtl*)
11497	    aix_use_runtimelinking=yes
11498	    break
11499	    ;;
11500	  esac
11501	done
11502	;;
11503      esac
11504
11505      exp_sym_flag='-bexport'
11506      no_entry_flag='-bnoentry'
11507    fi
11508
11509    # When large executables or shared objects are built, AIX ld can
11510    # have problems creating the table of contents.  If linking a library
11511    # or program results in "error TOC overflow" add -mminimal-toc to
11512    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11513    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11514
11515    archive_cmds_CXX=''
11516    hardcode_direct_CXX=yes
11517    hardcode_libdir_separator_CXX=':'
11518    link_all_deplibs_CXX=yes
11519
11520    if test "$GXX" = yes; then
11521      case $host_os in aix4.[012]|aix4.[012].*)
11522      # We only want to do this on AIX 4.2 and lower, the check
11523      # below for broken collect2 doesn't work under 4.3+
11524	collect2name=`${CC} -print-prog-name=collect2`
11525	if test -f "$collect2name" && \
11526	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11527	then
11528	  # We have reworked collect2
11529	  hardcode_direct_CXX=yes
11530	else
11531	  # We have old collect2
11532	  hardcode_direct_CXX=unsupported
11533	  # It fails to find uninstalled libraries when the uninstalled
11534	  # path is not listed in the libpath.  Setting hardcode_minus_L
11535	  # to unsupported forces relinking
11536	  hardcode_minus_L_CXX=yes
11537	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11538	  hardcode_libdir_separator_CXX=
11539	fi
11540	;;
11541      esac
11542      shared_flag='-shared'
11543      if test "$aix_use_runtimelinking" = yes; then
11544	shared_flag="$shared_flag "'${wl}-G'
11545      fi
11546    else
11547      # not using gcc
11548      if test "$host_cpu" = ia64; then
11549	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11550	# chokes on -Wl,-G. The following line is correct:
11551	shared_flag='-G'
11552      else
11553	if test "$aix_use_runtimelinking" = yes; then
11554	  shared_flag='${wl}-G'
11555	else
11556	  shared_flag='${wl}-bM:SRE'
11557	fi
11558      fi
11559    fi
11560
11561    # It seems that -bexpall does not export symbols beginning with
11562    # underscore (_), so it is better to generate a list of symbols to export.
11563    always_export_symbols_CXX=yes
11564    if test "$aix_use_runtimelinking" = yes; then
11565      # Warning - without using the other runtime loading flags (-brtl),
11566      # -berok will link without error, but may produce a broken library.
11567      allow_undefined_flag_CXX='-berok'
11568      # Determine the default libpath from the value encoded in an empty executable.
11569      cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h.  */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h.  */
11575
11576int
11577main ()
11578{
11579
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584rm -f conftest.$ac_objext conftest$ac_exeext
11585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11586  (eval $ac_link) 2>conftest.er1
11587  ac_status=$?
11588  grep -v '^ *+' conftest.er1 >conftest.err
11589  rm -f conftest.er1
11590  cat conftest.err >&5
11591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592  (exit $ac_status); } &&
11593	 { ac_try='test -z "$ac_cxx_werror_flag"
11594			 || test ! -s conftest.err'
11595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596  (eval $ac_try) 2>&5
11597  ac_status=$?
11598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599  (exit $ac_status); }; } &&
11600	 { ac_try='test -s conftest$ac_exeext'
11601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602  (eval $ac_try) 2>&5
11603  ac_status=$?
11604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605  (exit $ac_status); }; }; then
11606
11607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11608}'`
11609# Check for a 64-bit object if we didn't find anything.
11610if 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; }
11611}'`; fi
11612else
11613  echo "$as_me: failed program was:" >&5
11614sed 's/^/| /' conftest.$ac_ext >&5
11615
11616fi
11617rm -f conftest.err conftest.$ac_objext \
11618      conftest$ac_exeext conftest.$ac_ext
11619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11620
11621      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11622
11623      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11624     else
11625      if test "$host_cpu" = ia64; then
11626	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11627	allow_undefined_flag_CXX="-z nodefs"
11628	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11629      else
11630	# Determine the default libpath from the value encoded in an empty executable.
11631	cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h.  */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h.  */
11637
11638int
11639main ()
11640{
11641
11642  ;
11643  return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648  (eval $ac_link) 2>conftest.er1
11649  ac_status=$?
11650  grep -v '^ *+' conftest.er1 >conftest.err
11651  rm -f conftest.er1
11652  cat conftest.err >&5
11653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654  (exit $ac_status); } &&
11655	 { ac_try='test -z "$ac_cxx_werror_flag"
11656			 || test ! -s conftest.err'
11657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658  (eval $ac_try) 2>&5
11659  ac_status=$?
11660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661  (exit $ac_status); }; } &&
11662	 { ac_try='test -s conftest$ac_exeext'
11663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664  (eval $ac_try) 2>&5
11665  ac_status=$?
11666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667  (exit $ac_status); }; }; then
11668
11669aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11670}'`
11671# Check for a 64-bit object if we didn't find anything.
11672if 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; }
11673}'`; fi
11674else
11675  echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678fi
11679rm -f conftest.err conftest.$ac_objext \
11680      conftest$ac_exeext conftest.$ac_ext
11681if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11682
11683	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11684	# Warning - without using the other run time loading flags,
11685	# -berok will link without error, but may produce a broken library.
11686	no_undefined_flag_CXX=' ${wl}-bernotok'
11687	allow_undefined_flag_CXX=' ${wl}-berok'
11688	# Exported symbols can be pulled into shared objects from archives
11689	whole_archive_flag_spec_CXX='$convenience'
11690	archive_cmds_need_lc_CXX=yes
11691	# This is similar to how AIX traditionally builds its shared libraries.
11692	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11693      fi
11694    fi
11695    ;;
11696
11697  beos*)
11698    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11699      allow_undefined_flag_CXX=unsupported
11700      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11701      # support --undefined.  This deserves some investigation.  FIXME
11702      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11703    else
11704      ld_shlibs_CXX=no
11705    fi
11706    ;;
11707
11708  chorus*)
11709    case $cc_basename in
11710      *)
11711	# FIXME: insert proper C++ library support
11712	ld_shlibs_CXX=no
11713	;;
11714    esac
11715    ;;
11716
11717  cygwin* | mingw* | pw32*)
11718    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11719    # as there is no search path for DLLs.
11720    hardcode_libdir_flag_spec_CXX='-L$libdir'
11721    allow_undefined_flag_CXX=unsupported
11722    always_export_symbols_CXX=no
11723    enable_shared_with_static_runtimes_CXX=yes
11724
11725    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11726      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11727      # If the export-symbols file already is a .def file (1st line
11728      # is EXPORTS), use it as is; otherwise, prepend...
11729      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11730	cp $export_symbols $output_objdir/$soname.def;
11731      else
11732	echo EXPORTS > $output_objdir/$soname.def;
11733	cat $export_symbols >> $output_objdir/$soname.def;
11734      fi~
11735      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11736    else
11737      ld_shlibs_CXX=no
11738    fi
11739  ;;
11740      darwin* | rhapsody*)
11741        case $host_os in
11742        rhapsody* | darwin1.[012])
11743         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11744         ;;
11745       *) # Darwin 1.3 on
11746         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11747           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11748         else
11749           case ${MACOSX_DEPLOYMENT_TARGET} in
11750             10.[012])
11751               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11752               ;;
11753             10.*)
11754               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11755               ;;
11756           esac
11757         fi
11758         ;;
11759        esac
11760      archive_cmds_need_lc_CXX=no
11761      hardcode_direct_CXX=no
11762      hardcode_automatic_CXX=yes
11763      hardcode_shlibpath_var_CXX=unsupported
11764      whole_archive_flag_spec_CXX=''
11765      link_all_deplibs_CXX=yes
11766
11767    if test "$GXX" = yes ; then
11768      lt_int_apple_cc_single_mod=no
11769      output_verbose_link_cmd='echo'
11770      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11771       lt_int_apple_cc_single_mod=yes
11772      fi
11773      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11774       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11775      else
11776          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11777        fi
11778        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11779        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11780          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11781            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}'
11782          else
11783            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11784          fi
11785            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}'
11786      else
11787      case $cc_basename in
11788        xlc*)
11789         output_verbose_link_cmd='echo'
11790          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11791          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11792          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11793          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11794          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}'
11795          ;;
11796       *)
11797         ld_shlibs_CXX=no
11798          ;;
11799      esac
11800      fi
11801        ;;
11802
11803  dgux*)
11804    case $cc_basename in
11805      ec++*)
11806	# FIXME: insert proper C++ library support
11807	ld_shlibs_CXX=no
11808	;;
11809      ghcx*)
11810	# Green Hills C++ Compiler
11811	# FIXME: insert proper C++ library support
11812	ld_shlibs_CXX=no
11813	;;
11814      *)
11815	# FIXME: insert proper C++ library support
11816	ld_shlibs_CXX=no
11817	;;
11818    esac
11819    ;;
11820  freebsd[12]*)
11821    # C++ shared libraries reported to be fairly broken before switch to ELF
11822    ld_shlibs_CXX=no
11823    ;;
11824  freebsd-elf*)
11825    archive_cmds_need_lc_CXX=no
11826    ;;
11827  freebsd* | kfreebsd*-gnu | dragonfly*)
11828    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11829    # conventions
11830    ld_shlibs_CXX=yes
11831    ;;
11832  gnu*)
11833    ;;
11834  hpux9*)
11835    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11836    hardcode_libdir_separator_CXX=:
11837    export_dynamic_flag_spec_CXX='${wl}-E'
11838    hardcode_direct_CXX=yes
11839    hardcode_minus_L_CXX=yes # Not in the search PATH,
11840				# but as the default
11841				# location of the library.
11842
11843    case $cc_basename in
11844    CC*)
11845      # FIXME: insert proper C++ library support
11846      ld_shlibs_CXX=no
11847      ;;
11848    aCC*)
11849      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'
11850      # Commands to make compiler produce verbose output that lists
11851      # what "hidden" libraries, object files and flags are used when
11852      # linking a shared library.
11853      #
11854      # There doesn't appear to be a way to prevent this compiler from
11855      # explicitly linking system object files so we need to strip them
11856      # from the output so that they don't get included in the library
11857      # dependencies.
11858      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'
11859      ;;
11860    *)
11861      if test "$GXX" = yes; then
11862        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'
11863      else
11864        # FIXME: insert proper C++ library support
11865        ld_shlibs_CXX=no
11866      fi
11867      ;;
11868    esac
11869    ;;
11870  hpux10*|hpux11*)
11871    if test $with_gnu_ld = no; then
11872      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11873      hardcode_libdir_separator_CXX=:
11874
11875      case $host_cpu in
11876      hppa*64*|ia64*)
11877	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11878        ;;
11879      *)
11880	export_dynamic_flag_spec_CXX='${wl}-E'
11881        ;;
11882      esac
11883    fi
11884    case $host_cpu in
11885    hppa*64*|ia64*)
11886      hardcode_direct_CXX=no
11887      hardcode_shlibpath_var_CXX=no
11888      ;;
11889    *)
11890      hardcode_direct_CXX=yes
11891      hardcode_minus_L_CXX=yes # Not in the search PATH,
11892					      # but as the default
11893					      # location of the library.
11894      ;;
11895    esac
11896
11897    case $cc_basename in
11898      CC*)
11899	# FIXME: insert proper C++ library support
11900	ld_shlibs_CXX=no
11901	;;
11902      aCC*)
11903	case $host_cpu in
11904	hppa*64*)
11905	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906	  ;;
11907	ia64*)
11908	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11909	  ;;
11910	*)
11911	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11912	  ;;
11913	esac
11914	# Commands to make compiler produce verbose output that lists
11915	# what "hidden" libraries, object files and flags are used when
11916	# linking a shared library.
11917	#
11918	# There doesn't appear to be a way to prevent this compiler from
11919	# explicitly linking system object files so we need to strip them
11920	# from the output so that they don't get included in the library
11921	# dependencies.
11922	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'
11923	;;
11924      *)
11925	if test "$GXX" = yes; then
11926	  if test $with_gnu_ld = no; then
11927	    case $host_cpu in
11928	    hppa*64*)
11929	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11930	      ;;
11931	    ia64*)
11932	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11933	      ;;
11934	    *)
11935	      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'
11936	      ;;
11937	    esac
11938	  fi
11939	else
11940	  # FIXME: insert proper C++ library support
11941	  ld_shlibs_CXX=no
11942	fi
11943	;;
11944    esac
11945    ;;
11946  interix3*)
11947    hardcode_direct_CXX=no
11948    hardcode_shlibpath_var_CXX=no
11949    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11950    export_dynamic_flag_spec_CXX='${wl}-E'
11951    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11952    # Instead, shared libraries are loaded at an image base (0x10000000 by
11953    # default) and relocated if they conflict, which is a slow very memory
11954    # consuming and fragmenting process.  To avoid this, we pick a random,
11955    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11956    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11957    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11958    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11959    ;;
11960  irix5* | irix6*)
11961    case $cc_basename in
11962      CC*)
11963	# SGI C++
11964	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11965
11966	# Archives containing C++ object files must be created using
11967	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11968	# necessary to make sure instantiated templates are included
11969	# in the archive.
11970	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11971	;;
11972      *)
11973	if test "$GXX" = yes; then
11974	  if test "$with_gnu_ld" = no; then
11975	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11976	  else
11977	    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'
11978	  fi
11979	fi
11980	link_all_deplibs_CXX=yes
11981	;;
11982    esac
11983    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11984    hardcode_libdir_separator_CXX=:
11985    ;;
11986  linux*)
11987    case $cc_basename in
11988      KCC*)
11989	# Kuck and Associates, Inc. (KAI) C++ Compiler
11990
11991	# KCC will only create a shared library if the output file
11992	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11993	# to its proper name (with version) after linking.
11994	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'
11995	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'
11996	# Commands to make compiler produce verbose output that lists
11997	# what "hidden" libraries, object files and flags are used when
11998	# linking a shared library.
11999	#
12000	# There doesn't appear to be a way to prevent this compiler from
12001	# explicitly linking system object files so we need to strip them
12002	# from the output so that they don't get included in the library
12003	# dependencies.
12004	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'
12005
12006	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12007	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12008
12009	# Archives containing C++ object files must be created using
12010	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12011	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12012	;;
12013      icpc*)
12014	# Intel C++
12015	with_gnu_ld=yes
12016	# version 8.0 and above of icpc choke on multiply defined symbols
12017	# if we add $predep_objects and $postdep_objects, however 7.1 and
12018	# earlier do not add the objects themselves.
12019	case `$CC -V 2>&1` in
12020	*"Version 7."*)
12021  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12022  	  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'
12023	  ;;
12024	*)  # Version 8.0 or newer
12025	  tmp_idyn=
12026	  case $host_cpu in
12027	    ia64*) tmp_idyn=' -i_dynamic';;
12028	  esac
12029  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12030	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12031	  ;;
12032	esac
12033	archive_cmds_need_lc_CXX=no
12034	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12035	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12036	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12037	;;
12038      pgCC*)
12039        # Portland Group C++ compiler
12040	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12041  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12042
12043	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12044	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12045	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12046        ;;
12047      cxx*)
12048	# Compaq C++
12049	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050	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'
12051
12052	runpath_var=LD_RUN_PATH
12053	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12054	hardcode_libdir_separator_CXX=:
12055
12056	# Commands to make compiler produce verbose output that lists
12057	# what "hidden" libraries, object files and flags are used when
12058	# linking a shared library.
12059	#
12060	# There doesn't appear to be a way to prevent this compiler from
12061	# explicitly linking system object files so we need to strip them
12062	# from the output so that they don't get included in the library
12063	# dependencies.
12064	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'
12065	;;
12066    esac
12067    ;;
12068  lynxos*)
12069    # FIXME: insert proper C++ library support
12070    ld_shlibs_CXX=no
12071    ;;
12072  m88k*)
12073    # FIXME: insert proper C++ library support
12074    ld_shlibs_CXX=no
12075    ;;
12076  mvs*)
12077    case $cc_basename in
12078      cxx*)
12079	# FIXME: insert proper C++ library support
12080	ld_shlibs_CXX=no
12081	;;
12082      *)
12083	# FIXME: insert proper C++ library support
12084	ld_shlibs_CXX=no
12085	;;
12086    esac
12087    ;;
12088  netbsd*)
12089    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12090      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12091      wlarc=
12092      hardcode_libdir_flag_spec_CXX='-R$libdir'
12093      hardcode_direct_CXX=yes
12094      hardcode_shlibpath_var_CXX=no
12095    fi
12096    # Workaround some broken pre-1.5 toolchains
12097    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12098    ;;
12099  openbsd2*)
12100    # C++ shared libraries are fairly broken
12101    ld_shlibs_CXX=no
12102    ;;
12103  openbsd*)
12104    hardcode_direct_CXX=yes
12105    hardcode_shlibpath_var_CXX=no
12106    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12110      export_dynamic_flag_spec_CXX='${wl}-E'
12111      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12112    fi
12113    output_verbose_link_cmd='echo'
12114    ;;
12115  osf3*)
12116    case $cc_basename in
12117      KCC*)
12118	# Kuck and Associates, Inc. (KAI) C++ Compiler
12119
12120	# KCC will only create a shared library if the output file
12121	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12122	# to its proper name (with version) after linking.
12123	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'
12124
12125	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12126	hardcode_libdir_separator_CXX=:
12127
12128	# Archives containing C++ object files must be created using
12129	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12130	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12131
12132	;;
12133      RCC*)
12134	# Rational C++ 2.4.1
12135	# FIXME: insert proper C++ library support
12136	ld_shlibs_CXX=no
12137	;;
12138      cxx*)
12139	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12140	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12141
12142	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12143	hardcode_libdir_separator_CXX=:
12144
12145	# Commands to make compiler produce verbose output that lists
12146	# what "hidden" libraries, object files and flags are used when
12147	# linking a shared library.
12148	#
12149	# There doesn't appear to be a way to prevent this compiler from
12150	# explicitly linking system object files so we need to strip them
12151	# from the output so that they don't get included in the library
12152	# dependencies.
12153	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'
12154	;;
12155      *)
12156	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12157	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12158	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12159
12160	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12161	  hardcode_libdir_separator_CXX=:
12162
12163	  # Commands to make compiler produce verbose output that lists
12164	  # what "hidden" libraries, object files and flags are used when
12165	  # linking a shared library.
12166	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12167
12168	else
12169	  # FIXME: insert proper C++ library support
12170	  ld_shlibs_CXX=no
12171	fi
12172	;;
12173    esac
12174    ;;
12175  osf4* | osf5*)
12176    case $cc_basename in
12177      KCC*)
12178	# Kuck and Associates, Inc. (KAI) C++ Compiler
12179
12180	# KCC will only create a shared library if the output file
12181	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12182	# to its proper name (with version) after linking.
12183	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'
12184
12185	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12186	hardcode_libdir_separator_CXX=:
12187
12188	# Archives containing C++ object files must be created using
12189	# the KAI C++ compiler.
12190	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12191	;;
12192      RCC*)
12193	# Rational C++ 2.4.1
12194	# FIXME: insert proper C++ library support
12195	ld_shlibs_CXX=no
12196	;;
12197      cxx*)
12198	allow_undefined_flag_CXX=' -expect_unresolved \*'
12199	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12200	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12201	  echo "-hidden">> $lib.exp~
12202	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12203	  $rm $lib.exp'
12204
12205	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12206	hardcode_libdir_separator_CXX=:
12207
12208	# Commands to make compiler produce verbose output that lists
12209	# what "hidden" libraries, object files and flags are used when
12210	# linking a shared library.
12211	#
12212	# There doesn't appear to be a way to prevent this compiler from
12213	# explicitly linking system object files so we need to strip them
12214	# from the output so that they don't get included in the library
12215	# dependencies.
12216	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'
12217	;;
12218      *)
12219	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12220	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12221	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12222
12223	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12224	  hardcode_libdir_separator_CXX=:
12225
12226	  # Commands to make compiler produce verbose output that lists
12227	  # what "hidden" libraries, object files and flags are used when
12228	  # linking a shared library.
12229	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12230
12231	else
12232	  # FIXME: insert proper C++ library support
12233	  ld_shlibs_CXX=no
12234	fi
12235	;;
12236    esac
12237    ;;
12238  psos*)
12239    # FIXME: insert proper C++ library support
12240    ld_shlibs_CXX=no
12241    ;;
12242  sunos4*)
12243    case $cc_basename in
12244      CC*)
12245	# Sun C++ 4.x
12246	# FIXME: insert proper C++ library support
12247	ld_shlibs_CXX=no
12248	;;
12249      lcc*)
12250	# Lucid
12251	# FIXME: insert proper C++ library support
12252	ld_shlibs_CXX=no
12253	;;
12254      *)
12255	# FIXME: insert proper C++ library support
12256	ld_shlibs_CXX=no
12257	;;
12258    esac
12259    ;;
12260  solaris*)
12261    case $cc_basename in
12262      CC*)
12263	# Sun C++ 4.2, 5.x and Centerline C++
12264        archive_cmds_need_lc_CXX=yes
12265	no_undefined_flag_CXX=' -zdefs'
12266	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12267	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12268	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12269
12270	hardcode_libdir_flag_spec_CXX='-R$libdir'
12271	hardcode_shlibpath_var_CXX=no
12272	case $host_os in
12273	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12274	  *)
12275	    # The C++ compiler is used as linker so we must use $wl
12276	    # flag to pass the commands to the underlying system
12277	    # linker. We must also pass each convience library through
12278	    # to the system linker between allextract/defaultextract.
12279	    # The C++ compiler will combine linker options so we
12280	    # cannot just pass the convience library names through
12281	    # without $wl.
12282	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12283	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12284	    ;;
12285	esac
12286	link_all_deplibs_CXX=yes
12287
12288	output_verbose_link_cmd='echo'
12289
12290	# Archives containing C++ object files must be created using
12291	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12292	# necessary to make sure instantiated templates are included
12293	# in the archive.
12294	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12295	;;
12296      gcx*)
12297	# Green Hills C++ Compiler
12298	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12299
12300	# The C++ compiler must be used to create the archive.
12301	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12302	;;
12303      *)
12304	# GNU C++ compiler with Solaris linker
12305	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12306	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12307	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12308	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12309	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12310		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12311
12312	    # Commands to make compiler produce verbose output that lists
12313	    # what "hidden" libraries, object files and flags are used when
12314	    # linking a shared library.
12315	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12316	  else
12317	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12318	    # platform.
12319	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12320	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12321		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12322
12323	    # Commands to make compiler produce verbose output that lists
12324	    # what "hidden" libraries, object files and flags are used when
12325	    # linking a shared library.
12326	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12327	  fi
12328
12329	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12330	fi
12331	;;
12332    esac
12333    ;;
12334  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12335    no_undefined_flag_CXX='${wl}-z,text'
12336    archive_cmds_need_lc_CXX=no
12337    hardcode_shlibpath_var_CXX=no
12338    runpath_var='LD_RUN_PATH'
12339
12340    case $cc_basename in
12341      CC*)
12342	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12344	;;
12345      *)
12346	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12348	;;
12349    esac
12350    ;;
12351  sysv5* | sco3.2v5* | sco5v6*)
12352    # Note: We can NOT use -z defs as we might desire, because we do not
12353    # link with -lc, and that would cause any symbols used from libc to
12354    # always be unresolved, which means just about no library would
12355    # ever link correctly.  If we're not using GNU ld we use -z text
12356    # though, which does catch some bad symbols but isn't as heavy-handed
12357    # as -z defs.
12358    # For security reasons, it is highly recommended that you always
12359    # use absolute paths for naming shared libraries, and exclude the
12360    # DT_RUNPATH tag from executables and libraries.  But doing so
12361    # requires that you compile everything twice, which is a pain.
12362    # So that behaviour is only enabled if SCOABSPATH is set to a
12363    # non-empty value in the environment.  Most likely only useful for
12364    # creating official distributions of packages.
12365    # This is a hack until libtool officially supports absolute path
12366    # names for shared libraries.
12367    no_undefined_flag_CXX='${wl}-z,text'
12368    allow_undefined_flag_CXX='${wl}-z,nodefs'
12369    archive_cmds_need_lc_CXX=no
12370    hardcode_shlibpath_var_CXX=no
12371    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12372    hardcode_libdir_separator_CXX=':'
12373    link_all_deplibs_CXX=yes
12374    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12375    runpath_var='LD_RUN_PATH'
12376
12377    case $cc_basename in
12378      CC*)
12379	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12380	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12381	;;
12382      *)
12383	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12384	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12385	;;
12386    esac
12387    ;;
12388  tandem*)
12389    case $cc_basename in
12390      NCC*)
12391	# NonStop-UX NCC 3.20
12392	# FIXME: insert proper C++ library support
12393	ld_shlibs_CXX=no
12394	;;
12395      *)
12396	# FIXME: insert proper C++ library support
12397	ld_shlibs_CXX=no
12398	;;
12399    esac
12400    ;;
12401  vxworks*)
12402    # FIXME: insert proper C++ library support
12403    ld_shlibs_CXX=no
12404    ;;
12405  *)
12406    # FIXME: insert proper C++ library support
12407    ld_shlibs_CXX=no
12408    ;;
12409esac
12410echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12411echo "${ECHO_T}$ld_shlibs_CXX" >&6
12412test "$ld_shlibs_CXX" = no && can_build_shared=no
12413
12414GCC_CXX="$GXX"
12415LD_CXX="$LD"
12416
12417
12418cat > conftest.$ac_ext <<EOF
12419class Foo
12420{
12421public:
12422  Foo (void) { a = 0; }
12423private:
12424  int a;
12425};
12426EOF
12427
12428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429  (eval $ac_compile) 2>&5
12430  ac_status=$?
12431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432  (exit $ac_status); }; then
12433  # Parse the compiler output and extract the necessary
12434  # objects, libraries and library flags.
12435
12436  # Sentinel used to keep track of whether or not we are before
12437  # the conftest object file.
12438  pre_test_object_deps_done=no
12439
12440  # The `*' in the case matches for architectures that use `case' in
12441  # $output_verbose_cmd can trigger glob expansion during the loop
12442  # eval without this substitution.
12443  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12444
12445  for p in `eval $output_verbose_link_cmd`; do
12446    case $p in
12447
12448    -L* | -R* | -l*)
12449       # Some compilers place space between "-{L,R}" and the path.
12450       # Remove the space.
12451       if test $p = "-L" \
12452	  || test $p = "-R"; then
12453	 prev=$p
12454	 continue
12455       else
12456	 prev=
12457       fi
12458
12459       if test "$pre_test_object_deps_done" = no; then
12460	 case $p in
12461	 -L* | -R*)
12462	   # Internal compiler library paths should come after those
12463	   # provided the user.  The postdeps already come after the
12464	   # user supplied libs so there is no need to process them.
12465	   if test -z "$compiler_lib_search_path_CXX"; then
12466	     compiler_lib_search_path_CXX="${prev}${p}"
12467	   else
12468	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12469	   fi
12470	   ;;
12471	 # The "-l" case would never come before the object being
12472	 # linked, so don't bother handling this case.
12473	 esac
12474       else
12475	 if test -z "$postdeps_CXX"; then
12476	   postdeps_CXX="${prev}${p}"
12477	 else
12478	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12479	 fi
12480       fi
12481       ;;
12482
12483    *.$objext)
12484       # This assumes that the test object file only shows up
12485       # once in the compiler output.
12486       if test "$p" = "conftest.$objext"; then
12487	 pre_test_object_deps_done=yes
12488	 continue
12489       fi
12490
12491       if test "$pre_test_object_deps_done" = no; then
12492	 if test -z "$predep_objects_CXX"; then
12493	   predep_objects_CXX="$p"
12494	 else
12495	   predep_objects_CXX="$predep_objects_CXX $p"
12496	 fi
12497       else
12498	 if test -z "$postdep_objects_CXX"; then
12499	   postdep_objects_CXX="$p"
12500	 else
12501	   postdep_objects_CXX="$postdep_objects_CXX $p"
12502	 fi
12503       fi
12504       ;;
12505
12506    *) ;; # Ignore the rest.
12507
12508    esac
12509  done
12510
12511  # Clean up.
12512  rm -f a.out a.exe
12513else
12514  echo "libtool.m4: error: problem compiling CXX test program"
12515fi
12516
12517$rm -f confest.$objext
12518
12519# PORTME: override above test on systems where it is broken
12520case $host_os in
12521interix3*)
12522  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12523  # hack all around it, let's just trust "g++" to DTRT.
12524  predep_objects_CXX=
12525  postdep_objects_CXX=
12526  postdeps_CXX=
12527  ;;
12528
12529solaris*)
12530  case $cc_basename in
12531  CC*)
12532    # Adding this requires a known-good setup of shared libraries for
12533    # Sun compiler versions before 5.6, else PIC objects from an old
12534    # archive will be linked into the output, leading to subtle bugs.
12535    postdeps_CXX='-lCstd -lCrun'
12536    ;;
12537  esac
12538  ;;
12539esac
12540
12541
12542case " $postdeps_CXX " in
12543*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12544esac
12545
12546lt_prog_compiler_wl_CXX=
12547lt_prog_compiler_pic_CXX=
12548lt_prog_compiler_static_CXX=
12549
12550echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12551echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12552
12553  # C++ specific cases for pic, static, wl, etc.
12554  if test "$GXX" = yes; then
12555    lt_prog_compiler_wl_CXX='-Wl,'
12556    lt_prog_compiler_static_CXX='-static'
12557
12558    case $host_os in
12559    aix*)
12560      # All AIX code is PIC.
12561      if test "$host_cpu" = ia64; then
12562	# AIX 5 now supports IA64 processor
12563	lt_prog_compiler_static_CXX='-Bstatic'
12564      fi
12565      ;;
12566    amigaos*)
12567      # FIXME: we need at least 68020 code to build shared libraries, but
12568      # adding the `-m68020' flag to GCC prevents building anything better,
12569      # like `-m68040'.
12570      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12571      ;;
12572    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12573      # PIC is the default for these OSes.
12574      ;;
12575    mingw* | os2* | pw32*)
12576      # This hack is so that the source file can tell whether it is being
12577      # built for inclusion in a dll (and should export symbols for example).
12578      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12579      ;;
12580    darwin* | rhapsody*)
12581      # PIC is the default on this platform
12582      # Common symbols not allowed in MH_DYLIB files
12583      lt_prog_compiler_pic_CXX='-fno-common'
12584      ;;
12585    *djgpp*)
12586      # DJGPP does not support shared libraries at all
12587      lt_prog_compiler_pic_CXX=
12588      ;;
12589    interix3*)
12590      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12591      # Instead, we relocate shared libraries at runtime.
12592      ;;
12593    sysv4*MP*)
12594      if test -d /usr/nec; then
12595	lt_prog_compiler_pic_CXX=-Kconform_pic
12596      fi
12597      ;;
12598    hpux*)
12599      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12600      # not for PA HP-UX.
12601      case $host_cpu in
12602      hppa*64*|ia64*)
12603	;;
12604      *)
12605	lt_prog_compiler_pic_CXX='-fPIC'
12606	;;
12607      esac
12608      ;;
12609    *)
12610      lt_prog_compiler_pic_CXX='-fPIC'
12611      ;;
12612    esac
12613  else
12614    case $host_os in
12615      aix4* | aix5*)
12616	# All AIX code is PIC.
12617	if test "$host_cpu" = ia64; then
12618	  # AIX 5 now supports IA64 processor
12619	  lt_prog_compiler_static_CXX='-Bstatic'
12620	else
12621	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12622	fi
12623	;;
12624      chorus*)
12625	case $cc_basename in
12626	cxch68*)
12627	  # Green Hills C++ Compiler
12628	  # _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"
12629	  ;;
12630	esac
12631	;;
12632       darwin*)
12633         # PIC is the default on this platform
12634         # Common symbols not allowed in MH_DYLIB files
12635         case $cc_basename in
12636           xlc*)
12637           lt_prog_compiler_pic_CXX='-qnocommon'
12638           lt_prog_compiler_wl_CXX='-Wl,'
12639           ;;
12640         esac
12641       ;;
12642      dgux*)
12643	case $cc_basename in
12644	  ec++*)
12645	    lt_prog_compiler_pic_CXX='-KPIC'
12646	    ;;
12647	  ghcx*)
12648	    # Green Hills C++ Compiler
12649	    lt_prog_compiler_pic_CXX='-pic'
12650	    ;;
12651	  *)
12652	    ;;
12653	esac
12654	;;
12655      freebsd* | kfreebsd*-gnu | dragonfly*)
12656	# FreeBSD uses GNU C++
12657	;;
12658      hpux9* | hpux10* | hpux11*)
12659	case $cc_basename in
12660	  CC*)
12661	    lt_prog_compiler_wl_CXX='-Wl,'
12662	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12663	    if test "$host_cpu" != ia64; then
12664	      lt_prog_compiler_pic_CXX='+Z'
12665	    fi
12666	    ;;
12667	  aCC*)
12668	    lt_prog_compiler_wl_CXX='-Wl,'
12669	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12670	    case $host_cpu in
12671	    hppa*64*|ia64*)
12672	      # +Z the default
12673	      ;;
12674	    *)
12675	      lt_prog_compiler_pic_CXX='+Z'
12676	      ;;
12677	    esac
12678	    ;;
12679	  *)
12680	    ;;
12681	esac
12682	;;
12683      interix*)
12684	# This is c89, which is MS Visual C++ (no shared libs)
12685	# Anyone wants to do a port?
12686	;;
12687      irix5* | irix6* | nonstopux*)
12688	case $cc_basename in
12689	  CC*)
12690	    lt_prog_compiler_wl_CXX='-Wl,'
12691	    lt_prog_compiler_static_CXX='-non_shared'
12692	    # CC pic flag -KPIC is the default.
12693	    ;;
12694	  *)
12695	    ;;
12696	esac
12697	;;
12698      linux*)
12699	case $cc_basename in
12700	  KCC*)
12701	    # KAI C++ Compiler
12702	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12703	    lt_prog_compiler_pic_CXX='-fPIC'
12704	    ;;
12705	  icpc* | ecpc*)
12706	    # Intel C++
12707	    lt_prog_compiler_wl_CXX='-Wl,'
12708	    lt_prog_compiler_pic_CXX='-KPIC'
12709	    lt_prog_compiler_static_CXX='-static'
12710	    ;;
12711	  pgCC*)
12712	    # Portland Group C++ compiler.
12713	    lt_prog_compiler_wl_CXX='-Wl,'
12714	    lt_prog_compiler_pic_CXX='-fpic'
12715	    lt_prog_compiler_static_CXX='-Bstatic'
12716	    ;;
12717	  cxx*)
12718	    # Compaq C++
12719	    # Make sure the PIC flag is empty.  It appears that all Alpha
12720	    # Linux and Compaq Tru64 Unix objects are PIC.
12721	    lt_prog_compiler_pic_CXX=
12722	    lt_prog_compiler_static_CXX='-non_shared'
12723	    ;;
12724	  *)
12725	    ;;
12726	esac
12727	;;
12728      lynxos*)
12729	;;
12730      m88k*)
12731	;;
12732      mvs*)
12733	case $cc_basename in
12734	  cxx*)
12735	    lt_prog_compiler_pic_CXX='-W c,exportall'
12736	    ;;
12737	  *)
12738	    ;;
12739	esac
12740	;;
12741      netbsd*)
12742	;;
12743      osf3* | osf4* | osf5*)
12744	case $cc_basename in
12745	  KCC*)
12746	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12747	    ;;
12748	  RCC*)
12749	    # Rational C++ 2.4.1
12750	    lt_prog_compiler_pic_CXX='-pic'
12751	    ;;
12752	  cxx*)
12753	    # Digital/Compaq C++
12754	    lt_prog_compiler_wl_CXX='-Wl,'
12755	    # Make sure the PIC flag is empty.  It appears that all Alpha
12756	    # Linux and Compaq Tru64 Unix objects are PIC.
12757	    lt_prog_compiler_pic_CXX=
12758	    lt_prog_compiler_static_CXX='-non_shared'
12759	    ;;
12760	  *)
12761	    ;;
12762	esac
12763	;;
12764      psos*)
12765	;;
12766      solaris*)
12767	case $cc_basename in
12768	  CC*)
12769	    # Sun C++ 4.2, 5.x and Centerline C++
12770	    lt_prog_compiler_pic_CXX='-KPIC'
12771	    lt_prog_compiler_static_CXX='-Bstatic'
12772	    lt_prog_compiler_wl_CXX='-Qoption ld '
12773	    ;;
12774	  gcx*)
12775	    # Green Hills C++ Compiler
12776	    lt_prog_compiler_pic_CXX='-PIC'
12777	    ;;
12778	  *)
12779	    ;;
12780	esac
12781	;;
12782      sunos4*)
12783	case $cc_basename in
12784	  CC*)
12785	    # Sun C++ 4.x
12786	    lt_prog_compiler_pic_CXX='-pic'
12787	    lt_prog_compiler_static_CXX='-Bstatic'
12788	    ;;
12789	  lcc*)
12790	    # Lucid
12791	    lt_prog_compiler_pic_CXX='-pic'
12792	    ;;
12793	  *)
12794	    ;;
12795	esac
12796	;;
12797      tandem*)
12798	case $cc_basename in
12799	  NCC*)
12800	    # NonStop-UX NCC 3.20
12801	    lt_prog_compiler_pic_CXX='-KPIC'
12802	    ;;
12803	  *)
12804	    ;;
12805	esac
12806	;;
12807      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12808	case $cc_basename in
12809	  CC*)
12810	    lt_prog_compiler_wl_CXX='-Wl,'
12811	    lt_prog_compiler_pic_CXX='-KPIC'
12812	    lt_prog_compiler_static_CXX='-Bstatic'
12813	    ;;
12814	esac
12815	;;
12816      vxworks*)
12817	;;
12818      *)
12819	lt_prog_compiler_can_build_shared_CXX=no
12820	;;
12821    esac
12822  fi
12823
12824echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12825echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12826
12827#
12828# Check to make sure the PIC flag actually works.
12829#
12830if test -n "$lt_prog_compiler_pic_CXX"; then
12831
12832echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12833echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12834if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12835  echo $ECHO_N "(cached) $ECHO_C" >&6
12836else
12837  lt_prog_compiler_pic_works_CXX=no
12838  ac_outfile=conftest.$ac_objext
12839   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12840   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12841   # Insert the option either (1) after the last *FLAGS variable, or
12842   # (2) before a word containing "conftest.", or (3) at the end.
12843   # Note that $ac_compile itself does not contain backslashes and begins
12844   # with a dollar sign (not a hyphen), so the echo should work correctly.
12845   # The option is referenced via a variable to avoid confusing sed.
12846   lt_compile=`echo "$ac_compile" | $SED \
12847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12849   -e 's:$: $lt_compiler_flag:'`
12850   (eval echo "\"\$as_me:12850: $lt_compile\"" >&5)
12851   (eval "$lt_compile" 2>conftest.err)
12852   ac_status=$?
12853   cat conftest.err >&5
12854   echo "$as_me:12854: \$? = $ac_status" >&5
12855   if (exit $ac_status) && test -s "$ac_outfile"; then
12856     # The compiler can only warn and ignore the option if not recognized
12857     # So say no if there are warnings other than the usual output.
12858     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12859     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12860     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12861       lt_prog_compiler_pic_works_CXX=yes
12862     fi
12863   fi
12864   $rm conftest*
12865
12866fi
12867echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12868echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12869
12870if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12871    case $lt_prog_compiler_pic_CXX in
12872     "" | " "*) ;;
12873     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12874     esac
12875else
12876    lt_prog_compiler_pic_CXX=
12877     lt_prog_compiler_can_build_shared_CXX=no
12878fi
12879
12880fi
12881case $host_os in
12882  # For platforms which do not support PIC, -DPIC is meaningless:
12883  *djgpp*)
12884    lt_prog_compiler_pic_CXX=
12885    ;;
12886  *)
12887    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12888    ;;
12889esac
12890
12891#
12892# Check to make sure the static flag actually works.
12893#
12894wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12895echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12896echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12897if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12898  echo $ECHO_N "(cached) $ECHO_C" >&6
12899else
12900  lt_prog_compiler_static_works_CXX=no
12901   save_LDFLAGS="$LDFLAGS"
12902   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12903   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12904   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12905     # The linker can only warn and ignore the option if not recognized
12906     # So say no if there are warnings
12907     if test -s conftest.err; then
12908       # Append any errors to the config.log.
12909       cat conftest.err 1>&5
12910       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12911       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12912       if diff conftest.exp conftest.er2 >/dev/null; then
12913         lt_prog_compiler_static_works_CXX=yes
12914       fi
12915     else
12916       lt_prog_compiler_static_works_CXX=yes
12917     fi
12918   fi
12919   $rm conftest*
12920   LDFLAGS="$save_LDFLAGS"
12921
12922fi
12923echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12924echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12925
12926if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12927    :
12928else
12929    lt_prog_compiler_static_CXX=
12930fi
12931
12932
12933echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12934echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12935if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12936  echo $ECHO_N "(cached) $ECHO_C" >&6
12937else
12938  lt_cv_prog_compiler_c_o_CXX=no
12939   $rm -r conftest 2>/dev/null
12940   mkdir conftest
12941   cd conftest
12942   mkdir out
12943   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12944
12945   lt_compiler_flag="-o out/conftest2.$ac_objext"
12946   # Insert the option either (1) after the last *FLAGS variable, or
12947   # (2) before a word containing "conftest.", or (3) at the end.
12948   # Note that $ac_compile itself does not contain backslashes and begins
12949   # with a dollar sign (not a hyphen), so the echo should work correctly.
12950   lt_compile=`echo "$ac_compile" | $SED \
12951   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12952   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12953   -e 's:$: $lt_compiler_flag:'`
12954   (eval echo "\"\$as_me:12954: $lt_compile\"" >&5)
12955   (eval "$lt_compile" 2>out/conftest.err)
12956   ac_status=$?
12957   cat out/conftest.err >&5
12958   echo "$as_me:12958: \$? = $ac_status" >&5
12959   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12960   then
12961     # The compiler can only warn and ignore the option if not recognized
12962     # So say no if there are warnings
12963     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12964     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12965     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12966       lt_cv_prog_compiler_c_o_CXX=yes
12967     fi
12968   fi
12969   chmod u+w . 2>&5
12970   $rm conftest*
12971   # SGI C++ compiler will create directory out/ii_files/ for
12972   # template instantiation
12973   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12974   $rm out/* && rmdir out
12975   cd ..
12976   rmdir conftest
12977   $rm conftest*
12978
12979fi
12980echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12981echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12982
12983
12984hard_links="nottested"
12985if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12986  # do not overwrite the value of need_locks provided by the user
12987  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12988echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12989  hard_links=yes
12990  $rm conftest*
12991  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12992  touch conftest.a
12993  ln conftest.a conftest.b 2>&5 || hard_links=no
12994  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12995  echo "$as_me:$LINENO: result: $hard_links" >&5
12996echo "${ECHO_T}$hard_links" >&6
12997  if test "$hard_links" = no; then
12998    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12999echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13000    need_locks=warn
13001  fi
13002else
13003  need_locks=no
13004fi
13005
13006echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13007echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13008
13009  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13010  case $host_os in
13011  aix4* | aix5*)
13012    # If we're using GNU nm, then we don't want the "-C" option.
13013    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13014    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13015      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'
13016    else
13017      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'
13018    fi
13019    ;;
13020  pw32*)
13021    export_symbols_cmds_CXX="$ltdll_cmds"
13022  ;;
13023  cygwin* | mingw*)
13024    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13025  ;;
13026  *)
13027    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13028  ;;
13029  esac
13030
13031echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13032echo "${ECHO_T}$ld_shlibs_CXX" >&6
13033test "$ld_shlibs_CXX" = no && can_build_shared=no
13034
13035#
13036# Do we need to explicitly link libc?
13037#
13038case "x$archive_cmds_need_lc_CXX" in
13039x|xyes)
13040  # Assume -lc should be added
13041  archive_cmds_need_lc_CXX=yes
13042
13043  if test "$enable_shared" = yes && test "$GCC" = yes; then
13044    case $archive_cmds_CXX in
13045    *'~'*)
13046      # FIXME: we may have to deal with multi-command sequences.
13047      ;;
13048    '$CC '*)
13049      # Test whether the compiler implicitly links with -lc since on some
13050      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13051      # to ld, don't add -lc before -lgcc.
13052      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13053echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13054      $rm conftest*
13055      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13056
13057      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058  (eval $ac_compile) 2>&5
13059  ac_status=$?
13060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061  (exit $ac_status); } 2>conftest.err; then
13062        soname=conftest
13063        lib=conftest
13064        libobjs=conftest.$ac_objext
13065        deplibs=
13066        wl=$lt_prog_compiler_wl_CXX
13067	pic_flag=$lt_prog_compiler_pic_CXX
13068        compiler_flags=-v
13069        linker_flags=-v
13070        verstring=
13071        output_objdir=.
13072        libname=conftest
13073        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13074        allow_undefined_flag_CXX=
13075        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13076  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13077  ac_status=$?
13078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079  (exit $ac_status); }
13080        then
13081	  archive_cmds_need_lc_CXX=no
13082        else
13083	  archive_cmds_need_lc_CXX=yes
13084        fi
13085        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13086      else
13087        cat conftest.err 1>&5
13088      fi
13089      $rm conftest*
13090      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13091echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13092      ;;
13093    esac
13094  fi
13095  ;;
13096esac
13097
13098echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13099echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13100library_names_spec=
13101libname_spec='lib$name'
13102soname_spec=
13103shrext_cmds=".so"
13104postinstall_cmds=
13105postuninstall_cmds=
13106finish_cmds=
13107finish_eval=
13108shlibpath_var=
13109shlibpath_overrides_runpath=unknown
13110version_type=none
13111dynamic_linker="$host_os ld.so"
13112sys_lib_dlsearch_path_spec="/lib /usr/lib"
13113if test "$GCC" = yes; then
13114  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13115  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13116    # if the path contains ";" then we assume it to be the separator
13117    # otherwise default to the standard path separator (i.e. ":") - it is
13118    # assumed that no part of a normal pathname contains ";" but that should
13119    # okay in the real world where ";" in dirpaths is itself problematic.
13120    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13121  else
13122    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13123  fi
13124else
13125  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13126fi
13127need_lib_prefix=unknown
13128hardcode_into_libs=no
13129
13130# when you set need_version to no, make sure it does not cause -set_version
13131# flags to be left without arguments
13132need_version=unknown
13133
13134case $host_os in
13135aix3*)
13136  version_type=linux
13137  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13138  shlibpath_var=LIBPATH
13139
13140  # AIX 3 has no versioning support, so we append a major version to the name.
13141  soname_spec='${libname}${release}${shared_ext}$major'
13142  ;;
13143
13144aix4* | aix5*)
13145  version_type=linux
13146  need_lib_prefix=no
13147  need_version=no
13148  hardcode_into_libs=yes
13149  if test "$host_cpu" = ia64; then
13150    # AIX 5 supports IA64
13151    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13152    shlibpath_var=LD_LIBRARY_PATH
13153  else
13154    # With GCC up to 2.95.x, collect2 would create an import file
13155    # for dependence libraries.  The import file would start with
13156    # the line `#! .'.  This would cause the generated library to
13157    # depend on `.', always an invalid library.  This was fixed in
13158    # development snapshots of GCC prior to 3.0.
13159    case $host_os in
13160      aix4 | aix4.[01] | aix4.[01].*)
13161      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13162	   echo ' yes '
13163	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13164	:
13165      else
13166	can_build_shared=no
13167      fi
13168      ;;
13169    esac
13170    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13171    # soname into executable. Probably we can add versioning support to
13172    # collect2, so additional links can be useful in future.
13173    if test "$aix_use_runtimelinking" = yes; then
13174      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13175      # instead of lib<name>.a to let people know that these are not
13176      # typical AIX shared libraries.
13177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13178    else
13179      # We preserve .a as extension for shared libraries through AIX4.2
13180      # and later when we are not doing run time linking.
13181      library_names_spec='${libname}${release}.a $libname.a'
13182      soname_spec='${libname}${release}${shared_ext}$major'
13183    fi
13184    shlibpath_var=LIBPATH
13185  fi
13186  ;;
13187
13188amigaos*)
13189  library_names_spec='$libname.ixlibrary $libname.a'
13190  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13191  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'
13192  ;;
13193
13194beos*)
13195  library_names_spec='${libname}${shared_ext}'
13196  dynamic_linker="$host_os ld.so"
13197  shlibpath_var=LIBRARY_PATH
13198  ;;
13199
13200bsdi[45]*)
13201  version_type=linux
13202  need_version=no
13203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204  soname_spec='${libname}${release}${shared_ext}$major'
13205  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13206  shlibpath_var=LD_LIBRARY_PATH
13207  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13208  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13209  # the default ld.so.conf also contains /usr/contrib/lib and
13210  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13211  # libtool to hard-code these into programs
13212  ;;
13213
13214cygwin* | mingw* | pw32*)
13215  version_type=windows
13216  shrext_cmds=".dll"
13217  need_version=no
13218  need_lib_prefix=no
13219
13220  case $GCC,$host_os in
13221  yes,cygwin* | yes,mingw* | yes,pw32*)
13222    library_names_spec='$libname.dll.a'
13223    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13224    postinstall_cmds='base_file=`basename \${file}`~
13225      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13226      dldir=$destdir/`dirname \$dlpath`~
13227      test -d \$dldir || mkdir -p \$dldir~
13228      $install_prog $dir/$dlname \$dldir/$dlname~
13229      chmod a+x \$dldir/$dlname'
13230    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13231      dlpath=$dir/\$dldll~
13232       $rm \$dlpath'
13233    shlibpath_overrides_runpath=yes
13234
13235    case $host_os in
13236    cygwin*)
13237      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13238      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13239      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13240      ;;
13241    mingw*)
13242      # MinGW DLLs use traditional 'lib' prefix
13243      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13244      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13245      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13246        # It is most probably a Windows format PATH printed by
13247        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13248        # path with ; separators, and with drive letters. We can handle the
13249        # drive letters (cygwin fileutils understands them), so leave them,
13250        # especially as we might pass files found there to a mingw objdump,
13251        # which wouldn't understand a cygwinified path. Ahh.
13252        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13253      else
13254        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13255      fi
13256      ;;
13257    pw32*)
13258      # pw32 DLLs use 'pw' prefix rather than 'lib'
13259      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13260      ;;
13261    esac
13262    ;;
13263
13264  *)
13265    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13266    ;;
13267  esac
13268  dynamic_linker='Win32 ld.exe'
13269  # FIXME: first we should search . and the directory the executable is in
13270  shlibpath_var=PATH
13271  ;;
13272
13273darwin* | rhapsody*)
13274  dynamic_linker="$host_os dyld"
13275  version_type=darwin
13276  need_lib_prefix=no
13277  need_version=no
13278  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13279  soname_spec='${libname}${release}${major}$shared_ext'
13280  shlibpath_overrides_runpath=yes
13281  shlibpath_var=DYLD_LIBRARY_PATH
13282  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13283  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13284  if test "$GCC" = yes; then
13285    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"`
13286  else
13287    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13288  fi
13289  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13290  ;;
13291
13292dgux*)
13293  version_type=linux
13294  need_lib_prefix=no
13295  need_version=no
13296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13297  soname_spec='${libname}${release}${shared_ext}$major'
13298  shlibpath_var=LD_LIBRARY_PATH
13299  ;;
13300
13301freebsd1*)
13302  dynamic_linker=no
13303  ;;
13304
13305kfreebsd*-gnu)
13306  version_type=linux
13307  need_lib_prefix=no
13308  need_version=no
13309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13310  soname_spec='${libname}${release}${shared_ext}$major'
13311  shlibpath_var=LD_LIBRARY_PATH
13312  shlibpath_overrides_runpath=no
13313  hardcode_into_libs=yes
13314  dynamic_linker='GNU ld.so'
13315  ;;
13316
13317freebsd* | dragonfly*)
13318  # DragonFly does not have aout.  When/if they implement a new
13319  # versioning mechanism, adjust this.
13320  if test -x /usr/bin/objformat; then
13321    objformat=`/usr/bin/objformat`
13322  else
13323    case $host_os in
13324    freebsd[123]*) objformat=aout ;;
13325    *) objformat=elf ;;
13326    esac
13327  fi
13328  version_type=freebsd-$objformat
13329  case $version_type in
13330    freebsd-elf*)
13331      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13332      need_version=no
13333      need_lib_prefix=no
13334      ;;
13335    freebsd-*)
13336      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13337      need_version=yes
13338      ;;
13339  esac
13340  shlibpath_var=LD_LIBRARY_PATH
13341  case $host_os in
13342  freebsd2*)
13343    shlibpath_overrides_runpath=yes
13344    ;;
13345  freebsd3.[01]* | freebsdelf3.[01]*)
13346    shlibpath_overrides_runpath=yes
13347    hardcode_into_libs=yes
13348    ;;
13349  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13350  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13351    shlibpath_overrides_runpath=no
13352    hardcode_into_libs=yes
13353    ;;
13354  freebsd*) # from 4.6 on
13355    shlibpath_overrides_runpath=yes
13356    hardcode_into_libs=yes
13357    ;;
13358  esac
13359  ;;
13360
13361gnu*)
13362  version_type=linux
13363  need_lib_prefix=no
13364  need_version=no
13365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13366  soname_spec='${libname}${release}${shared_ext}$major'
13367  shlibpath_var=LD_LIBRARY_PATH
13368  hardcode_into_libs=yes
13369  ;;
13370
13371hpux9* | hpux10* | hpux11*)
13372  # Give a soname corresponding to the major version so that dld.sl refuses to
13373  # link against other versions.
13374  version_type=sunos
13375  need_lib_prefix=no
13376  need_version=no
13377  case $host_cpu in
13378  ia64*)
13379    shrext_cmds='.so'
13380    hardcode_into_libs=yes
13381    dynamic_linker="$host_os dld.so"
13382    shlibpath_var=LD_LIBRARY_PATH
13383    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13384    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385    soname_spec='${libname}${release}${shared_ext}$major'
13386    if test "X$HPUX_IA64_MODE" = X32; then
13387      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13388    else
13389      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13390    fi
13391    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13392    ;;
13393   hppa*64*)
13394     shrext_cmds='.sl'
13395     hardcode_into_libs=yes
13396     dynamic_linker="$host_os dld.sl"
13397     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13398     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13400     soname_spec='${libname}${release}${shared_ext}$major'
13401     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13402     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13403     ;;
13404   *)
13405    shrext_cmds='.sl'
13406    dynamic_linker="$host_os dld.sl"
13407    shlibpath_var=SHLIB_PATH
13408    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13410    soname_spec='${libname}${release}${shared_ext}$major'
13411    ;;
13412  esac
13413  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13414  postinstall_cmds='chmod 555 $lib'
13415  ;;
13416
13417interix3*)
13418  version_type=linux
13419  need_lib_prefix=no
13420  need_version=no
13421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13422  soname_spec='${libname}${release}${shared_ext}$major'
13423  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13424  shlibpath_var=LD_LIBRARY_PATH
13425  shlibpath_overrides_runpath=no
13426  hardcode_into_libs=yes
13427  ;;
13428
13429irix5* | irix6* | nonstopux*)
13430  case $host_os in
13431    nonstopux*) version_type=nonstopux ;;
13432    *)
13433	if test "$lt_cv_prog_gnu_ld" = yes; then
13434		version_type=linux
13435	else
13436		version_type=irix
13437	fi ;;
13438  esac
13439  need_lib_prefix=no
13440  need_version=no
13441  soname_spec='${libname}${release}${shared_ext}$major'
13442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13443  case $host_os in
13444  irix5* | nonstopux*)
13445    libsuff= shlibsuff=
13446    ;;
13447  *)
13448    case $LD in # libtool.m4 will add one of these switches to LD
13449    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13450      libsuff= shlibsuff= libmagic=32-bit;;
13451    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13452      libsuff=32 shlibsuff=N32 libmagic=N32;;
13453    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13454      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13455    *) libsuff= shlibsuff= libmagic=never-match;;
13456    esac
13457    ;;
13458  esac
13459  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13460  shlibpath_overrides_runpath=no
13461  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13462  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13463  hardcode_into_libs=yes
13464  ;;
13465
13466# No shared lib support for Linux oldld, aout, or coff.
13467linux*oldld* | linux*aout* | linux*coff*)
13468  dynamic_linker=no
13469  ;;
13470
13471# This must be Linux ELF.
13472linux*)
13473  version_type=linux
13474  need_lib_prefix=no
13475  need_version=no
13476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477  soname_spec='${libname}${release}${shared_ext}$major'
13478  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13479  shlibpath_var=LD_LIBRARY_PATH
13480  shlibpath_overrides_runpath=no
13481  # This implies no fast_install, which is unacceptable.
13482  # Some rework will be needed to allow for fast_install
13483  # before this can be enabled.
13484  hardcode_into_libs=yes
13485
13486  # find out which ABI we are using
13487  libsuff=
13488  case "$host_cpu" in
13489  x86_64*|s390x*|powerpc64*)
13490    echo '#line 13490 "configure"' > conftest.$ac_ext
13491    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13492  (eval $ac_compile) 2>&5
13493  ac_status=$?
13494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495  (exit $ac_status); }; then
13496      case `/usr/bin/file conftest.$ac_objext` in
13497      *64-bit*)
13498        libsuff=64
13499        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13500        ;;
13501      esac
13502    fi
13503    rm -rf conftest*
13504    ;;
13505  esac
13506
13507  # Append ld.so.conf contents to the search path
13508  if test -f /etc/ld.so.conf; then
13509    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13510    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13511  fi
13512
13513  # We used to test for /lib/ld.so.1 and disable shared libraries on
13514  # powerpc, because MkLinux only supported shared libraries with the
13515  # GNU dynamic linker.  Since this was broken with cross compilers,
13516  # most powerpc-linux boxes support dynamic linking these days and
13517  # people can always --disable-shared, the test was removed, and we
13518  # assume the GNU/Linux dynamic linker is in use.
13519  dynamic_linker='GNU/Linux ld.so'
13520  ;;
13521
13522knetbsd*-gnu)
13523  version_type=linux
13524  need_lib_prefix=no
13525  need_version=no
13526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13527  soname_spec='${libname}${release}${shared_ext}$major'
13528  shlibpath_var=LD_LIBRARY_PATH
13529  shlibpath_overrides_runpath=no
13530  hardcode_into_libs=yes
13531  dynamic_linker='GNU ld.so'
13532  ;;
13533
13534netbsd*)
13535  version_type=sunos
13536  need_lib_prefix=no
13537  need_version=no
13538  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13539    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13540    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13541    dynamic_linker='NetBSD (a.out) ld.so'
13542  else
13543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13544    soname_spec='${libname}${release}${shared_ext}$major'
13545    dynamic_linker='NetBSD ld.elf_so'
13546  fi
13547  shlibpath_var=LD_LIBRARY_PATH
13548  shlibpath_overrides_runpath=yes
13549  hardcode_into_libs=yes
13550  ;;
13551
13552newsos6)
13553  version_type=linux
13554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555  shlibpath_var=LD_LIBRARY_PATH
13556  shlibpath_overrides_runpath=yes
13557  ;;
13558
13559nto-qnx*)
13560  version_type=linux
13561  need_lib_prefix=no
13562  need_version=no
13563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564  soname_spec='${libname}${release}${shared_ext}$major'
13565  shlibpath_var=LD_LIBRARY_PATH
13566  shlibpath_overrides_runpath=yes
13567  ;;
13568
13569openbsd*)
13570  version_type=sunos
13571  sys_lib_dlsearch_path_spec="/usr/lib"
13572  need_lib_prefix=no
13573  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13574  case $host_os in
13575    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13576    *)                         need_version=no  ;;
13577  esac
13578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13579  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13580  shlibpath_var=LD_LIBRARY_PATH
13581  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13582    case $host_os in
13583      openbsd2.[89] | openbsd2.[89].*)
13584	shlibpath_overrides_runpath=no
13585	;;
13586      *)
13587	shlibpath_overrides_runpath=yes
13588	;;
13589      esac
13590  else
13591    shlibpath_overrides_runpath=yes
13592  fi
13593  ;;
13594
13595os2*)
13596  libname_spec='$name'
13597  shrext_cmds=".dll"
13598  need_lib_prefix=no
13599  library_names_spec='$libname${shared_ext} $libname.a'
13600  dynamic_linker='OS/2 ld.exe'
13601  shlibpath_var=LIBPATH
13602  ;;
13603
13604osf3* | osf4* | osf5*)
13605  version_type=osf
13606  need_lib_prefix=no
13607  need_version=no
13608  soname_spec='${libname}${release}${shared_ext}$major'
13609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13610  shlibpath_var=LD_LIBRARY_PATH
13611  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13612  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13613  ;;
13614
13615solaris*)
13616  version_type=linux
13617  need_lib_prefix=no
13618  need_version=no
13619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13620  soname_spec='${libname}${release}${shared_ext}$major'
13621  shlibpath_var=LD_LIBRARY_PATH
13622  shlibpath_overrides_runpath=yes
13623  hardcode_into_libs=yes
13624  # ldd complains unless libraries are executable
13625  postinstall_cmds='chmod +x $lib'
13626  ;;
13627
13628sunos4*)
13629  version_type=sunos
13630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13631  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13632  shlibpath_var=LD_LIBRARY_PATH
13633  shlibpath_overrides_runpath=yes
13634  if test "$with_gnu_ld" = yes; then
13635    need_lib_prefix=no
13636  fi
13637  need_version=yes
13638  ;;
13639
13640sysv4 | sysv4.3*)
13641  version_type=linux
13642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643  soname_spec='${libname}${release}${shared_ext}$major'
13644  shlibpath_var=LD_LIBRARY_PATH
13645  case $host_vendor in
13646    sni)
13647      shlibpath_overrides_runpath=no
13648      need_lib_prefix=no
13649      export_dynamic_flag_spec='${wl}-Blargedynsym'
13650      runpath_var=LD_RUN_PATH
13651      ;;
13652    siemens)
13653      need_lib_prefix=no
13654      ;;
13655    motorola)
13656      need_lib_prefix=no
13657      need_version=no
13658      shlibpath_overrides_runpath=no
13659      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13660      ;;
13661  esac
13662  ;;
13663
13664sysv4*MP*)
13665  if test -d /usr/nec ;then
13666    version_type=linux
13667    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13668    soname_spec='$libname${shared_ext}.$major'
13669    shlibpath_var=LD_LIBRARY_PATH
13670  fi
13671  ;;
13672
13673sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13674  version_type=freebsd-elf
13675  need_lib_prefix=no
13676  need_version=no
13677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13678  soname_spec='${libname}${release}${shared_ext}$major'
13679  shlibpath_var=LD_LIBRARY_PATH
13680  hardcode_into_libs=yes
13681  if test "$with_gnu_ld" = yes; then
13682    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13683    shlibpath_overrides_runpath=no
13684  else
13685    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13686    shlibpath_overrides_runpath=yes
13687    case $host_os in
13688      sco3.2v5*)
13689        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13690	;;
13691    esac
13692  fi
13693  sys_lib_dlsearch_path_spec='/usr/lib'
13694  ;;
13695
13696uts4*)
13697  version_type=linux
13698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13699  soname_spec='${libname}${release}${shared_ext}$major'
13700  shlibpath_var=LD_LIBRARY_PATH
13701  ;;
13702
13703*)
13704  dynamic_linker=no
13705  ;;
13706esac
13707echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13708echo "${ECHO_T}$dynamic_linker" >&6
13709test "$dynamic_linker" = no && can_build_shared=no
13710
13711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13712if test "$GCC" = yes; then
13713  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13714fi
13715
13716echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13717echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13718hardcode_action_CXX=
13719if test -n "$hardcode_libdir_flag_spec_CXX" || \
13720   test -n "$runpath_var_CXX" || \
13721   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13722
13723  # We can hardcode non-existant directories.
13724  if test "$hardcode_direct_CXX" != no &&
13725     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13726     # have to relink, otherwise we might link with an installed library
13727     # when we should be linking with a yet-to-be-installed one
13728     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13729     test "$hardcode_minus_L_CXX" != no; then
13730    # Linking always hardcodes the temporary library directory.
13731    hardcode_action_CXX=relink
13732  else
13733    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13734    hardcode_action_CXX=immediate
13735  fi
13736else
13737  # We cannot hardcode anything, or else we can only hardcode existing
13738  # directories.
13739  hardcode_action_CXX=unsupported
13740fi
13741echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13742echo "${ECHO_T}$hardcode_action_CXX" >&6
13743
13744if test "$hardcode_action_CXX" = relink; then
13745  # Fast installation is not supported
13746  enable_fast_install=no
13747elif test "$shlibpath_overrides_runpath" = yes ||
13748     test "$enable_shared" = no; then
13749  # Fast installation is not necessary
13750  enable_fast_install=needless
13751fi
13752
13753
13754# The else clause should only fire when bootstrapping the
13755# libtool distribution, otherwise you forgot to ship ltmain.sh
13756# with your package, and you will get complaints that there are
13757# no rules to generate ltmain.sh.
13758if test -f "$ltmain"; then
13759  # See if we are running on zsh, and set the options which allow our commands through
13760  # without removal of \ escapes.
13761  if test -n "${ZSH_VERSION+set}" ; then
13762    setopt NO_GLOB_SUBST
13763  fi
13764  # Now quote all the things that may contain metacharacters while being
13765  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13766  # variables and quote the copies for generation of the libtool script.
13767  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13768    SED SHELL STRIP \
13769    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13770    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13771    deplibs_check_method reload_flag reload_cmds need_locks \
13772    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13773    lt_cv_sys_global_symbol_to_c_name_address \
13774    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13775    old_postinstall_cmds old_postuninstall_cmds \
13776    compiler_CXX \
13777    CC_CXX \
13778    LD_CXX \
13779    lt_prog_compiler_wl_CXX \
13780    lt_prog_compiler_pic_CXX \
13781    lt_prog_compiler_static_CXX \
13782    lt_prog_compiler_no_builtin_flag_CXX \
13783    export_dynamic_flag_spec_CXX \
13784    thread_safe_flag_spec_CXX \
13785    whole_archive_flag_spec_CXX \
13786    enable_shared_with_static_runtimes_CXX \
13787    old_archive_cmds_CXX \
13788    old_archive_from_new_cmds_CXX \
13789    predep_objects_CXX \
13790    postdep_objects_CXX \
13791    predeps_CXX \
13792    postdeps_CXX \
13793    compiler_lib_search_path_CXX \
13794    archive_cmds_CXX \
13795    archive_expsym_cmds_CXX \
13796    postinstall_cmds_CXX \
13797    postuninstall_cmds_CXX \
13798    old_archive_from_expsyms_cmds_CXX \
13799    allow_undefined_flag_CXX \
13800    no_undefined_flag_CXX \
13801    export_symbols_cmds_CXX \
13802    hardcode_libdir_flag_spec_CXX \
13803    hardcode_libdir_flag_spec_ld_CXX \
13804    hardcode_libdir_separator_CXX \
13805    hardcode_automatic_CXX \
13806    module_cmds_CXX \
13807    module_expsym_cmds_CXX \
13808    lt_cv_prog_compiler_c_o_CXX \
13809    exclude_expsyms_CXX \
13810    include_expsyms_CXX; do
13811
13812    case $var in
13813    old_archive_cmds_CXX | \
13814    old_archive_from_new_cmds_CXX | \
13815    archive_cmds_CXX | \
13816    archive_expsym_cmds_CXX | \
13817    module_cmds_CXX | \
13818    module_expsym_cmds_CXX | \
13819    old_archive_from_expsyms_cmds_CXX | \
13820    export_symbols_cmds_CXX | \
13821    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13822    postinstall_cmds | postuninstall_cmds | \
13823    old_postinstall_cmds | old_postuninstall_cmds | \
13824    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13825      # Double-quote double-evaled strings.
13826      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13827      ;;
13828    *)
13829      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13830      ;;
13831    esac
13832  done
13833
13834  case $lt_echo in
13835  *'\$0 --fallback-echo"')
13836    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13837    ;;
13838  esac
13839
13840cfgfile="$ofile"
13841
13842  cat <<__EOF__ >> "$cfgfile"
13843# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13844
13845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13846
13847# Shell to use when invoking shell scripts.
13848SHELL=$lt_SHELL
13849
13850# Whether or not to build shared libraries.
13851build_libtool_libs=$enable_shared
13852
13853# Whether or not to build static libraries.
13854build_old_libs=$enable_static
13855
13856# Whether or not to add -lc for building shared libraries.
13857build_libtool_need_lc=$archive_cmds_need_lc_CXX
13858
13859# Whether or not to disallow shared libs when runtime libs are static
13860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13861
13862# Whether or not to optimize for fast installation.
13863fast_install=$enable_fast_install
13864
13865# The host system.
13866host_alias=$host_alias
13867host=$host
13868host_os=$host_os
13869
13870# The build system.
13871build_alias=$build_alias
13872build=$build
13873build_os=$build_os
13874
13875# An echo program that does not interpret backslashes.
13876echo=$lt_echo
13877
13878# The archiver.
13879AR=$lt_AR
13880AR_FLAGS=$lt_AR_FLAGS
13881
13882# A C compiler.
13883LTCC=$lt_LTCC
13884
13885# LTCC compiler flags.
13886LTCFLAGS=$lt_LTCFLAGS
13887
13888# A language-specific compiler.
13889CC=$lt_compiler_CXX
13890
13891# Is the compiler the GNU C compiler?
13892with_gcc=$GCC_CXX
13893
13894# An ERE matcher.
13895EGREP=$lt_EGREP
13896
13897# The linker used to build libraries.
13898LD=$lt_LD_CXX
13899
13900# Whether we need hard or soft links.
13901LN_S=$lt_LN_S
13902
13903# A BSD-compatible nm program.
13904NM=$lt_NM
13905
13906# A symbol stripping program
13907STRIP=$lt_STRIP
13908
13909# Used to examine libraries when file_magic_cmd begins "file"
13910MAGIC_CMD=$MAGIC_CMD
13911
13912# Used on cygwin: DLL creation program.
13913DLLTOOL="$DLLTOOL"
13914
13915# Used on cygwin: object dumper.
13916OBJDUMP="$OBJDUMP"
13917
13918# Used on cygwin: assembler.
13919AS="$AS"
13920
13921# The name of the directory that contains temporary libtool files.
13922objdir=$objdir
13923
13924# How to create reloadable object files.
13925reload_flag=$lt_reload_flag
13926reload_cmds=$lt_reload_cmds
13927
13928# How to pass a linker flag through the compiler.
13929wl=$lt_lt_prog_compiler_wl_CXX
13930
13931# Object file suffix (normally "o").
13932objext="$ac_objext"
13933
13934# Old archive suffix (normally "a").
13935libext="$libext"
13936
13937# Shared library suffix (normally ".so").
13938shrext_cmds='$shrext_cmds'
13939
13940# Executable file suffix (normally "").
13941exeext="$exeext"
13942
13943# Additional compiler flags for building library objects.
13944pic_flag=$lt_lt_prog_compiler_pic_CXX
13945pic_mode=$pic_mode
13946
13947# What is the maximum length of a command?
13948max_cmd_len=$lt_cv_sys_max_cmd_len
13949
13950# Does compiler simultaneously support -c and -o options?
13951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13952
13953# Must we lock files when doing compilation?
13954need_locks=$lt_need_locks
13955
13956# Do we need the lib prefix for modules?
13957need_lib_prefix=$need_lib_prefix
13958
13959# Do we need a version for libraries?
13960need_version=$need_version
13961
13962# Whether dlopen is supported.
13963dlopen_support=$enable_dlopen
13964
13965# Whether dlopen of programs is supported.
13966dlopen_self=$enable_dlopen_self
13967
13968# Whether dlopen of statically linked programs is supported.
13969dlopen_self_static=$enable_dlopen_self_static
13970
13971# Compiler flag to prevent dynamic linking.
13972link_static_flag=$lt_lt_prog_compiler_static_CXX
13973
13974# Compiler flag to turn off builtin functions.
13975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13976
13977# Compiler flag to allow reflexive dlopens.
13978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13979
13980# Compiler flag to generate shared objects directly from archives.
13981whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13982
13983# Compiler flag to generate thread-safe objects.
13984thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13985
13986# Library versioning type.
13987version_type=$version_type
13988
13989# Format of library name prefix.
13990libname_spec=$lt_libname_spec
13991
13992# List of archive names.  First name is the real one, the rest are links.
13993# The last name is the one that the linker finds with -lNAME.
13994library_names_spec=$lt_library_names_spec
13995
13996# The coded name of the library, if different from the real name.
13997soname_spec=$lt_soname_spec
13998
13999# Commands used to build and install an old-style archive.
14000RANLIB=$lt_RANLIB
14001old_archive_cmds=$lt_old_archive_cmds_CXX
14002old_postinstall_cmds=$lt_old_postinstall_cmds
14003old_postuninstall_cmds=$lt_old_postuninstall_cmds
14004
14005# Create an old-style archive from a shared archive.
14006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14007
14008# Create a temporary old-style archive to link instead of a shared archive.
14009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14010
14011# Commands used to build and install a shared archive.
14012archive_cmds=$lt_archive_cmds_CXX
14013archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14014postinstall_cmds=$lt_postinstall_cmds
14015postuninstall_cmds=$lt_postuninstall_cmds
14016
14017# Commands used to build a loadable module (assumed same as above if empty)
14018module_cmds=$lt_module_cmds_CXX
14019module_expsym_cmds=$lt_module_expsym_cmds_CXX
14020
14021# Commands to strip libraries.
14022old_striplib=$lt_old_striplib
14023striplib=$lt_striplib
14024
14025# Dependencies to place before the objects being linked to create a
14026# shared library.
14027predep_objects=$lt_predep_objects_CXX
14028
14029# Dependencies to place after the objects being linked to create a
14030# shared library.
14031postdep_objects=$lt_postdep_objects_CXX
14032
14033# Dependencies to place before the objects being linked to create a
14034# shared library.
14035predeps=$lt_predeps_CXX
14036
14037# Dependencies to place after the objects being linked to create a
14038# shared library.
14039postdeps=$lt_postdeps_CXX
14040
14041# The library search path used internally by the compiler when linking
14042# a shared library.
14043compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14044
14045# Method to check whether dependent libraries are shared objects.
14046deplibs_check_method=$lt_deplibs_check_method
14047
14048# Command to use when deplibs_check_method == file_magic.
14049file_magic_cmd=$lt_file_magic_cmd
14050
14051# Flag that allows shared libraries with undefined symbols to be built.
14052allow_undefined_flag=$lt_allow_undefined_flag_CXX
14053
14054# Flag that forces no undefined symbols.
14055no_undefined_flag=$lt_no_undefined_flag_CXX
14056
14057# Commands used to finish a libtool library installation in a directory.
14058finish_cmds=$lt_finish_cmds
14059
14060# Same as above, but a single script fragment to be evaled but not shown.
14061finish_eval=$lt_finish_eval
14062
14063# Take the output of nm and produce a listing of raw symbols and C names.
14064global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14065
14066# Transform the output of nm in a proper C declaration
14067global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14068
14069# Transform the output of nm in a C name address pair
14070global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14071
14072# This is the shared library runtime path variable.
14073runpath_var=$runpath_var
14074
14075# This is the shared library path variable.
14076shlibpath_var=$shlibpath_var
14077
14078# Is shlibpath searched before the hard-coded library search path?
14079shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14080
14081# How to hardcode a shared library path into an executable.
14082hardcode_action=$hardcode_action_CXX
14083
14084# Whether we should hardcode library paths into libraries.
14085hardcode_into_libs=$hardcode_into_libs
14086
14087# Flag to hardcode \$libdir into a binary during linking.
14088# This must work even if \$libdir does not exist.
14089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14090
14091# If ld is used when linking, flag to hardcode \$libdir into
14092# a binary during linking. This must work even if \$libdir does
14093# not exist.
14094hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14095
14096# Whether we need a single -rpath flag with a separated argument.
14097hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14098
14099# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14100# resulting binary.
14101hardcode_direct=$hardcode_direct_CXX
14102
14103# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14104# resulting binary.
14105hardcode_minus_L=$hardcode_minus_L_CXX
14106
14107# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14108# the resulting binary.
14109hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14110
14111# Set to yes if building a shared library automatically hardcodes DIR into the library
14112# and all subsequent libraries and executables linked against it.
14113hardcode_automatic=$hardcode_automatic_CXX
14114
14115# Variables whose values should be saved in libtool wrapper scripts and
14116# restored at relink time.
14117variables_saved_for_relink="$variables_saved_for_relink"
14118
14119# Whether libtool must link a program against all its dependency libraries.
14120link_all_deplibs=$link_all_deplibs_CXX
14121
14122# Compile-time system search path for libraries
14123sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14124
14125# Run-time system search path for libraries
14126sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14127
14128# Fix the shell variable \$srcfile for the compiler.
14129fix_srcfile_path="$fix_srcfile_path_CXX"
14130
14131# Set to yes if exported symbols are required.
14132always_export_symbols=$always_export_symbols_CXX
14133
14134# The commands to list exported symbols.
14135export_symbols_cmds=$lt_export_symbols_cmds_CXX
14136
14137# The commands to extract the exported symbol list from a shared archive.
14138extract_expsyms_cmds=$lt_extract_expsyms_cmds
14139
14140# Symbols that should not be listed in the preloaded symbols.
14141exclude_expsyms=$lt_exclude_expsyms_CXX
14142
14143# Symbols that must always be exported.
14144include_expsyms=$lt_include_expsyms_CXX
14145
14146# ### END LIBTOOL TAG CONFIG: $tagname
14147
14148__EOF__
14149
14150
14151else
14152  # If there is no Makefile yet, we rely on a make rule to execute
14153  # `config.status --recheck' to rerun these tests and create the
14154  # libtool script then.
14155  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14156  if test -f "$ltmain_in"; then
14157    test -f Makefile && make "$ltmain"
14158  fi
14159fi
14160
14161
14162ac_ext=c
14163ac_cpp='$CPP $CPPFLAGS'
14164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14166ac_compiler_gnu=$ac_cv_c_compiler_gnu
14167
14168CC=$lt_save_CC
14169LDCXX=$LD
14170LD=$lt_save_LD
14171GCC=$lt_save_GCC
14172with_gnu_ldcxx=$with_gnu_ld
14173with_gnu_ld=$lt_save_with_gnu_ld
14174lt_cv_path_LDCXX=$lt_cv_path_LD
14175lt_cv_path_LD=$lt_save_path_LD
14176lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14177lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14178
14179	else
14180	  tagname=""
14181	fi
14182	;;
14183
14184      F77)
14185	if test -n "$F77" && test "X$F77" != "Xno"; then
14186
14187ac_ext=f
14188ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14189ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14191
14192
14193archive_cmds_need_lc_F77=no
14194allow_undefined_flag_F77=
14195always_export_symbols_F77=no
14196archive_expsym_cmds_F77=
14197export_dynamic_flag_spec_F77=
14198hardcode_direct_F77=no
14199hardcode_libdir_flag_spec_F77=
14200hardcode_libdir_flag_spec_ld_F77=
14201hardcode_libdir_separator_F77=
14202hardcode_minus_L_F77=no
14203hardcode_automatic_F77=no
14204module_cmds_F77=
14205module_expsym_cmds_F77=
14206link_all_deplibs_F77=unknown
14207old_archive_cmds_F77=$old_archive_cmds
14208no_undefined_flag_F77=
14209whole_archive_flag_spec_F77=
14210enable_shared_with_static_runtimes_F77=no
14211
14212# Source file extension for f77 test sources.
14213ac_ext=f
14214
14215# Object file extension for compiled f77 test sources.
14216objext=o
14217objext_F77=$objext
14218
14219# Code to be used in simple compile tests
14220lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14221
14222# Code to be used in simple link tests
14223lt_simple_link_test_code="      program t\n      end\n"
14224
14225# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14226
14227# If no C compiler was specified, use CC.
14228LTCC=${LTCC-"$CC"}
14229
14230# If no C compiler flags were specified, use CFLAGS.
14231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14232
14233# Allow CC to be a program name with arguments.
14234compiler=$CC
14235
14236
14237# save warnings/boilerplate of simple test code
14238ac_outfile=conftest.$ac_objext
14239printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14240eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14241_lt_compiler_boilerplate=`cat conftest.err`
14242$rm conftest*
14243
14244ac_outfile=conftest.$ac_objext
14245printf "$lt_simple_link_test_code" >conftest.$ac_ext
14246eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14247_lt_linker_boilerplate=`cat conftest.err`
14248$rm conftest*
14249
14250
14251# Allow CC to be a program name with arguments.
14252lt_save_CC="$CC"
14253CC=${F77-"f77"}
14254compiler=$CC
14255compiler_F77=$CC
14256for cc_temp in $compiler""; do
14257  case $cc_temp in
14258    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14260    \-*) ;;
14261    *) break;;
14262  esac
14263done
14264cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14265
14266
14267echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14268echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14269echo "$as_me:$LINENO: result: $can_build_shared" >&5
14270echo "${ECHO_T}$can_build_shared" >&6
14271
14272echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14273echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14274test "$can_build_shared" = "no" && enable_shared=no
14275
14276# On AIX, shared libraries and static libraries use the same namespace, and
14277# are all built from PIC.
14278case $host_os in
14279aix3*)
14280  test "$enable_shared" = yes && enable_static=no
14281  if test -n "$RANLIB"; then
14282    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14283    postinstall_cmds='$RANLIB $lib'
14284  fi
14285  ;;
14286aix4* | aix5*)
14287  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14288    test "$enable_shared" = yes && enable_static=no
14289  fi
14290  ;;
14291esac
14292echo "$as_me:$LINENO: result: $enable_shared" >&5
14293echo "${ECHO_T}$enable_shared" >&6
14294
14295echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14296echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14297# Make sure either enable_shared or enable_static is yes.
14298test "$enable_shared" = yes || enable_static=yes
14299echo "$as_me:$LINENO: result: $enable_static" >&5
14300echo "${ECHO_T}$enable_static" >&6
14301
14302GCC_F77="$G77"
14303LD_F77="$LD"
14304
14305lt_prog_compiler_wl_F77=
14306lt_prog_compiler_pic_F77=
14307lt_prog_compiler_static_F77=
14308
14309echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14310echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14311
14312  if test "$GCC" = yes; then
14313    lt_prog_compiler_wl_F77='-Wl,'
14314    lt_prog_compiler_static_F77='-static'
14315
14316    case $host_os in
14317      aix*)
14318      # All AIX code is PIC.
14319      if test "$host_cpu" = ia64; then
14320	# AIX 5 now supports IA64 processor
14321	lt_prog_compiler_static_F77='-Bstatic'
14322      fi
14323      ;;
14324
14325    amigaos*)
14326      # FIXME: we need at least 68020 code to build shared libraries, but
14327      # adding the `-m68020' flag to GCC prevents building anything better,
14328      # like `-m68040'.
14329      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14330      ;;
14331
14332    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14333      # PIC is the default for these OSes.
14334      ;;
14335
14336    mingw* | pw32* | os2*)
14337      # This hack is so that the source file can tell whether it is being
14338      # built for inclusion in a dll (and should export symbols for example).
14339      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14340      ;;
14341
14342    darwin* | rhapsody*)
14343      # PIC is the default on this platform
14344      # Common symbols not allowed in MH_DYLIB files
14345      lt_prog_compiler_pic_F77='-fno-common'
14346      ;;
14347
14348    interix3*)
14349      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14350      # Instead, we relocate shared libraries at runtime.
14351      ;;
14352
14353    msdosdjgpp*)
14354      # Just because we use GCC doesn't mean we suddenly get shared libraries
14355      # on systems that don't support them.
14356      lt_prog_compiler_can_build_shared_F77=no
14357      enable_shared=no
14358      ;;
14359
14360    sysv4*MP*)
14361      if test -d /usr/nec; then
14362	lt_prog_compiler_pic_F77=-Kconform_pic
14363      fi
14364      ;;
14365
14366    hpux*)
14367      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14368      # not for PA HP-UX.
14369      case $host_cpu in
14370      hppa*64*|ia64*)
14371	# +Z the default
14372	;;
14373      *)
14374	lt_prog_compiler_pic_F77='-fPIC'
14375	;;
14376      esac
14377      ;;
14378
14379    *)
14380      lt_prog_compiler_pic_F77='-fPIC'
14381      ;;
14382    esac
14383  else
14384    # PORTME Check for flag to pass linker flags through the system compiler.
14385    case $host_os in
14386    aix*)
14387      lt_prog_compiler_wl_F77='-Wl,'
14388      if test "$host_cpu" = ia64; then
14389	# AIX 5 now supports IA64 processor
14390	lt_prog_compiler_static_F77='-Bstatic'
14391      else
14392	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14393      fi
14394      ;;
14395      darwin*)
14396        # PIC is the default on this platform
14397        # Common symbols not allowed in MH_DYLIB files
14398       case $cc_basename in
14399         xlc*)
14400         lt_prog_compiler_pic_F77='-qnocommon'
14401         lt_prog_compiler_wl_F77='-Wl,'
14402         ;;
14403       esac
14404       ;;
14405
14406    mingw* | pw32* | os2*)
14407      # This hack is so that the source file can tell whether it is being
14408      # built for inclusion in a dll (and should export symbols for example).
14409      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14410      ;;
14411
14412    hpux9* | hpux10* | hpux11*)
14413      lt_prog_compiler_wl_F77='-Wl,'
14414      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14415      # not for PA HP-UX.
14416      case $host_cpu in
14417      hppa*64*|ia64*)
14418	# +Z the default
14419	;;
14420      *)
14421	lt_prog_compiler_pic_F77='+Z'
14422	;;
14423      esac
14424      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14425      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14426      ;;
14427
14428    irix5* | irix6* | nonstopux*)
14429      lt_prog_compiler_wl_F77='-Wl,'
14430      # PIC (with -KPIC) is the default.
14431      lt_prog_compiler_static_F77='-non_shared'
14432      ;;
14433
14434    newsos6)
14435      lt_prog_compiler_pic_F77='-KPIC'
14436      lt_prog_compiler_static_F77='-Bstatic'
14437      ;;
14438
14439    linux*)
14440      case $cc_basename in
14441      icc* | ecc*)
14442	lt_prog_compiler_wl_F77='-Wl,'
14443	lt_prog_compiler_pic_F77='-KPIC'
14444	lt_prog_compiler_static_F77='-static'
14445        ;;
14446      pgcc* | pgf77* | pgf90* | pgf95*)
14447        # Portland Group compilers (*not* the Pentium gcc compiler,
14448	# which looks to be a dead project)
14449	lt_prog_compiler_wl_F77='-Wl,'
14450	lt_prog_compiler_pic_F77='-fpic'
14451	lt_prog_compiler_static_F77='-Bstatic'
14452        ;;
14453      ccc*)
14454        lt_prog_compiler_wl_F77='-Wl,'
14455        # All Alpha code is PIC.
14456        lt_prog_compiler_static_F77='-non_shared'
14457        ;;
14458      esac
14459      ;;
14460
14461    osf3* | osf4* | osf5*)
14462      lt_prog_compiler_wl_F77='-Wl,'
14463      # All OSF/1 code is PIC.
14464      lt_prog_compiler_static_F77='-non_shared'
14465      ;;
14466
14467    solaris*)
14468      lt_prog_compiler_pic_F77='-KPIC'
14469      lt_prog_compiler_static_F77='-Bstatic'
14470      case $cc_basename in
14471      f77* | f90* | f95*)
14472	lt_prog_compiler_wl_F77='-Qoption ld ';;
14473      *)
14474	lt_prog_compiler_wl_F77='-Wl,';;
14475      esac
14476      ;;
14477
14478    sunos4*)
14479      lt_prog_compiler_wl_F77='-Qoption ld '
14480      lt_prog_compiler_pic_F77='-PIC'
14481      lt_prog_compiler_static_F77='-Bstatic'
14482      ;;
14483
14484    sysv4 | sysv4.2uw2* | sysv4.3*)
14485      lt_prog_compiler_wl_F77='-Wl,'
14486      lt_prog_compiler_pic_F77='-KPIC'
14487      lt_prog_compiler_static_F77='-Bstatic'
14488      ;;
14489
14490    sysv4*MP*)
14491      if test -d /usr/nec ;then
14492	lt_prog_compiler_pic_F77='-Kconform_pic'
14493	lt_prog_compiler_static_F77='-Bstatic'
14494      fi
14495      ;;
14496
14497    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14498      lt_prog_compiler_wl_F77='-Wl,'
14499      lt_prog_compiler_pic_F77='-KPIC'
14500      lt_prog_compiler_static_F77='-Bstatic'
14501      ;;
14502
14503    unicos*)
14504      lt_prog_compiler_wl_F77='-Wl,'
14505      lt_prog_compiler_can_build_shared_F77=no
14506      ;;
14507
14508    uts4*)
14509      lt_prog_compiler_pic_F77='-pic'
14510      lt_prog_compiler_static_F77='-Bstatic'
14511      ;;
14512
14513    *)
14514      lt_prog_compiler_can_build_shared_F77=no
14515      ;;
14516    esac
14517  fi
14518
14519echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14520echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14521
14522#
14523# Check to make sure the PIC flag actually works.
14524#
14525if test -n "$lt_prog_compiler_pic_F77"; then
14526
14527echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14528echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14529if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14530  echo $ECHO_N "(cached) $ECHO_C" >&6
14531else
14532  lt_prog_compiler_pic_works_F77=no
14533  ac_outfile=conftest.$ac_objext
14534   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14535   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14536   # Insert the option either (1) after the last *FLAGS variable, or
14537   # (2) before a word containing "conftest.", or (3) at the end.
14538   # Note that $ac_compile itself does not contain backslashes and begins
14539   # with a dollar sign (not a hyphen), so the echo should work correctly.
14540   # The option is referenced via a variable to avoid confusing sed.
14541   lt_compile=`echo "$ac_compile" | $SED \
14542   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14543   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14544   -e 's:$: $lt_compiler_flag:'`
14545   (eval echo "\"\$as_me:14545: $lt_compile\"" >&5)
14546   (eval "$lt_compile" 2>conftest.err)
14547   ac_status=$?
14548   cat conftest.err >&5
14549   echo "$as_me:14549: \$? = $ac_status" >&5
14550   if (exit $ac_status) && test -s "$ac_outfile"; then
14551     # The compiler can only warn and ignore the option if not recognized
14552     # So say no if there are warnings other than the usual output.
14553     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14554     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14555     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14556       lt_prog_compiler_pic_works_F77=yes
14557     fi
14558   fi
14559   $rm conftest*
14560
14561fi
14562echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14563echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14564
14565if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14566    case $lt_prog_compiler_pic_F77 in
14567     "" | " "*) ;;
14568     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14569     esac
14570else
14571    lt_prog_compiler_pic_F77=
14572     lt_prog_compiler_can_build_shared_F77=no
14573fi
14574
14575fi
14576case $host_os in
14577  # For platforms which do not support PIC, -DPIC is meaningless:
14578  *djgpp*)
14579    lt_prog_compiler_pic_F77=
14580    ;;
14581  *)
14582    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14583    ;;
14584esac
14585
14586#
14587# Check to make sure the static flag actually works.
14588#
14589wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14590echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14591echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14592if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14593  echo $ECHO_N "(cached) $ECHO_C" >&6
14594else
14595  lt_prog_compiler_static_works_F77=no
14596   save_LDFLAGS="$LDFLAGS"
14597   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14598   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14599   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14600     # The linker can only warn and ignore the option if not recognized
14601     # So say no if there are warnings
14602     if test -s conftest.err; then
14603       # Append any errors to the config.log.
14604       cat conftest.err 1>&5
14605       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14606       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14607       if diff conftest.exp conftest.er2 >/dev/null; then
14608         lt_prog_compiler_static_works_F77=yes
14609       fi
14610     else
14611       lt_prog_compiler_static_works_F77=yes
14612     fi
14613   fi
14614   $rm conftest*
14615   LDFLAGS="$save_LDFLAGS"
14616
14617fi
14618echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14619echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14620
14621if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14622    :
14623else
14624    lt_prog_compiler_static_F77=
14625fi
14626
14627
14628echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14629echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14630if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14631  echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633  lt_cv_prog_compiler_c_o_F77=no
14634   $rm -r conftest 2>/dev/null
14635   mkdir conftest
14636   cd conftest
14637   mkdir out
14638   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14639
14640   lt_compiler_flag="-o out/conftest2.$ac_objext"
14641   # Insert the option either (1) after the last *FLAGS variable, or
14642   # (2) before a word containing "conftest.", or (3) at the end.
14643   # Note that $ac_compile itself does not contain backslashes and begins
14644   # with a dollar sign (not a hyphen), so the echo should work correctly.
14645   lt_compile=`echo "$ac_compile" | $SED \
14646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14648   -e 's:$: $lt_compiler_flag:'`
14649   (eval echo "\"\$as_me:14649: $lt_compile\"" >&5)
14650   (eval "$lt_compile" 2>out/conftest.err)
14651   ac_status=$?
14652   cat out/conftest.err >&5
14653   echo "$as_me:14653: \$? = $ac_status" >&5
14654   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14655   then
14656     # The compiler can only warn and ignore the option if not recognized
14657     # So say no if there are warnings
14658     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14659     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14660     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14661       lt_cv_prog_compiler_c_o_F77=yes
14662     fi
14663   fi
14664   chmod u+w . 2>&5
14665   $rm conftest*
14666   # SGI C++ compiler will create directory out/ii_files/ for
14667   # template instantiation
14668   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14669   $rm out/* && rmdir out
14670   cd ..
14671   rmdir conftest
14672   $rm conftest*
14673
14674fi
14675echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14676echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14677
14678
14679hard_links="nottested"
14680if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14681  # do not overwrite the value of need_locks provided by the user
14682  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14683echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14684  hard_links=yes
14685  $rm conftest*
14686  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14687  touch conftest.a
14688  ln conftest.a conftest.b 2>&5 || hard_links=no
14689  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14690  echo "$as_me:$LINENO: result: $hard_links" >&5
14691echo "${ECHO_T}$hard_links" >&6
14692  if test "$hard_links" = no; then
14693    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14694echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14695    need_locks=warn
14696  fi
14697else
14698  need_locks=no
14699fi
14700
14701echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14702echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14703
14704  runpath_var=
14705  allow_undefined_flag_F77=
14706  enable_shared_with_static_runtimes_F77=no
14707  archive_cmds_F77=
14708  archive_expsym_cmds_F77=
14709  old_archive_From_new_cmds_F77=
14710  old_archive_from_expsyms_cmds_F77=
14711  export_dynamic_flag_spec_F77=
14712  whole_archive_flag_spec_F77=
14713  thread_safe_flag_spec_F77=
14714  hardcode_libdir_flag_spec_F77=
14715  hardcode_libdir_flag_spec_ld_F77=
14716  hardcode_libdir_separator_F77=
14717  hardcode_direct_F77=no
14718  hardcode_minus_L_F77=no
14719  hardcode_shlibpath_var_F77=unsupported
14720  link_all_deplibs_F77=unknown
14721  hardcode_automatic_F77=no
14722  module_cmds_F77=
14723  module_expsym_cmds_F77=
14724  always_export_symbols_F77=no
14725  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14726  # include_expsyms should be a list of space-separated symbols to be *always*
14727  # included in the symbol list
14728  include_expsyms_F77=
14729  # exclude_expsyms can be an extended regexp of symbols to exclude
14730  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14731  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14732  # as well as any symbol that contains `d'.
14733  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14734  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14735  # platforms (ab)use it in PIC code, but their linkers get confused if
14736  # the symbol is explicitly referenced.  Since portable code cannot
14737  # rely on this symbol name, it's probably fine to never include it in
14738  # preloaded symbol tables.
14739  extract_expsyms_cmds=
14740  # Just being paranoid about ensuring that cc_basename is set.
14741  for cc_temp in $compiler""; do
14742  case $cc_temp in
14743    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14744    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14745    \-*) ;;
14746    *) break;;
14747  esac
14748done
14749cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14750
14751  case $host_os in
14752  cygwin* | mingw* | pw32*)
14753    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14754    # When not using gcc, we currently assume that we are using
14755    # Microsoft Visual C++.
14756    if test "$GCC" != yes; then
14757      with_gnu_ld=no
14758    fi
14759    ;;
14760  interix*)
14761    # we just hope/assume this is gcc and not c89 (= MSVC++)
14762    with_gnu_ld=yes
14763    ;;
14764  openbsd*)
14765    with_gnu_ld=no
14766    ;;
14767  esac
14768
14769  ld_shlibs_F77=yes
14770  if test "$with_gnu_ld" = yes; then
14771    # If archive_cmds runs LD, not CC, wlarc should be empty
14772    wlarc='${wl}'
14773
14774    # Set some defaults for GNU ld with shared library support. These
14775    # are reset later if shared libraries are not supported. Putting them
14776    # here allows them to be overridden if necessary.
14777    runpath_var=LD_RUN_PATH
14778    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14779    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14780    # ancient GNU ld didn't support --whole-archive et. al.
14781    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14782	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14783      else
14784  	whole_archive_flag_spec_F77=
14785    fi
14786    supports_anon_versioning=no
14787    case `$LD -v 2>/dev/null` in
14788      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14789      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14790      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14791      *\ 2.11.*) ;; # other 2.11 versions
14792      *) supports_anon_versioning=yes ;;
14793    esac
14794
14795    # See if GNU ld supports shared libraries.
14796    case $host_os in
14797    aix3* | aix4* | aix5*)
14798      # On AIX/PPC, the GNU linker is very broken
14799      if test "$host_cpu" != ia64; then
14800	ld_shlibs_F77=no
14801	cat <<EOF 1>&2
14802
14803*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14804*** to be unable to reliably create shared libraries on AIX.
14805*** Therefore, libtool is disabling shared libraries support.  If you
14806*** really care for shared libraries, you may want to modify your PATH
14807*** so that a non-GNU linker is found, and then restart.
14808
14809EOF
14810      fi
14811      ;;
14812
14813    amigaos*)
14814      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)'
14815      hardcode_libdir_flag_spec_F77='-L$libdir'
14816      hardcode_minus_L_F77=yes
14817
14818      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14819      # that the semantics of dynamic libraries on AmigaOS, at least up
14820      # to version 4, is to share data among multiple programs linked
14821      # with the same dynamic library.  Since this doesn't match the
14822      # behavior of shared libraries on other platforms, we can't use
14823      # them.
14824      ld_shlibs_F77=no
14825      ;;
14826
14827    beos*)
14828      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14829	allow_undefined_flag_F77=unsupported
14830	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14831	# support --undefined.  This deserves some investigation.  FIXME
14832	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833      else
14834	ld_shlibs_F77=no
14835      fi
14836      ;;
14837
14838    cygwin* | mingw* | pw32*)
14839      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14840      # as there is no search path for DLLs.
14841      hardcode_libdir_flag_spec_F77='-L$libdir'
14842      allow_undefined_flag_F77=unsupported
14843      always_export_symbols_F77=no
14844      enable_shared_with_static_runtimes_F77=yes
14845      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14846
14847      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14848        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14849	# If the export-symbols file already is a .def file (1st line
14850	# is EXPORTS), use it as is; otherwise, prepend...
14851	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14852	  cp $export_symbols $output_objdir/$soname.def;
14853	else
14854	  echo EXPORTS > $output_objdir/$soname.def;
14855	  cat $export_symbols >> $output_objdir/$soname.def;
14856	fi~
14857	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14858      else
14859	ld_shlibs_F77=no
14860      fi
14861      ;;
14862
14863    interix3*)
14864      hardcode_direct_F77=no
14865      hardcode_shlibpath_var_F77=no
14866      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14867      export_dynamic_flag_spec_F77='${wl}-E'
14868      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14869      # Instead, shared libraries are loaded at an image base (0x10000000 by
14870      # default) and relocated if they conflict, which is a slow very memory
14871      # consuming and fragmenting process.  To avoid this, we pick a random,
14872      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14873      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14874      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14875      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14876      ;;
14877
14878    linux*)
14879      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14880	tmp_addflag=
14881	case $cc_basename,$host_cpu in
14882	pgcc*)				# Portland Group C compiler
14883	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14884	  tmp_addflag=' $pic_flag'
14885	  ;;
14886	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14887	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14888	  tmp_addflag=' $pic_flag -Mnomain' ;;
14889	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14890	  tmp_addflag=' -i_dynamic' ;;
14891	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14892	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14893	ifc* | ifort*)			# Intel Fortran compiler
14894	  tmp_addflag=' -nofor_main' ;;
14895	esac
14896	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14897
14898	if test $supports_anon_versioning = yes; then
14899	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14900  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14901  $echo "local: *; };" >> $output_objdir/$libname.ver~
14902	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14903	fi
14904      else
14905	ld_shlibs_F77=no
14906      fi
14907      ;;
14908
14909    netbsd*)
14910      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14911	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14912	wlarc=
14913      else
14914	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14915	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14916      fi
14917      ;;
14918
14919    solaris*)
14920      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14921	ld_shlibs_F77=no
14922	cat <<EOF 1>&2
14923
14924*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14925*** create shared libraries on Solaris systems.  Therefore, libtool
14926*** is disabling shared libraries support.  We urge you to upgrade GNU
14927*** binutils to release 2.9.1 or newer.  Another option is to modify
14928*** your PATH or compiler configuration so that the native linker is
14929*** used, and then restart.
14930
14931EOF
14932      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14933	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14934	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14935      else
14936	ld_shlibs_F77=no
14937      fi
14938      ;;
14939
14940    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14941      case `$LD -v 2>&1` in
14942        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14943	ld_shlibs_F77=no
14944	cat <<_LT_EOF 1>&2
14945
14946*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14947*** reliably create shared libraries on SCO systems.  Therefore, libtool
14948*** is disabling shared libraries support.  We urge you to upgrade GNU
14949*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14950*** your PATH or compiler configuration so that the native linker is
14951*** used, and then restart.
14952
14953_LT_EOF
14954	;;
14955	*)
14956	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14957	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14958	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14959	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14960	  else
14961	    ld_shlibs_F77=no
14962	  fi
14963	;;
14964      esac
14965      ;;
14966
14967    sunos4*)
14968      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14969      wlarc=
14970      hardcode_direct_F77=yes
14971      hardcode_shlibpath_var_F77=no
14972      ;;
14973
14974    *)
14975      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14976	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14977	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14978      else
14979	ld_shlibs_F77=no
14980      fi
14981      ;;
14982    esac
14983
14984    if test "$ld_shlibs_F77" = no; then
14985      runpath_var=
14986      hardcode_libdir_flag_spec_F77=
14987      export_dynamic_flag_spec_F77=
14988      whole_archive_flag_spec_F77=
14989    fi
14990  else
14991    # PORTME fill in a description of your system's linker (not GNU ld)
14992    case $host_os in
14993    aix3*)
14994      allow_undefined_flag_F77=unsupported
14995      always_export_symbols_F77=yes
14996      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'
14997      # Note: this linker hardcodes the directories in LIBPATH if there
14998      # are no directories specified by -L.
14999      hardcode_minus_L_F77=yes
15000      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15001	# Neither direct hardcoding nor static linking is supported with a
15002	# broken collect2.
15003	hardcode_direct_F77=unsupported
15004      fi
15005      ;;
15006
15007    aix4* | aix5*)
15008      if test "$host_cpu" = ia64; then
15009	# On IA64, the linker does run time linking by default, so we don't
15010	# have to do anything special.
15011	aix_use_runtimelinking=no
15012	exp_sym_flag='-Bexport'
15013	no_entry_flag=""
15014      else
15015	# If we're using GNU nm, then we don't want the "-C" option.
15016	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15017	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15018	  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'
15019	else
15020	  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'
15021	fi
15022	aix_use_runtimelinking=no
15023
15024	# Test if we are trying to use run time linking or normal
15025	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15026	# need to do runtime linking.
15027	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15028	  for ld_flag in $LDFLAGS; do
15029  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15030  	    aix_use_runtimelinking=yes
15031  	    break
15032  	  fi
15033	  done
15034	  ;;
15035	esac
15036
15037	exp_sym_flag='-bexport'
15038	no_entry_flag='-bnoentry'
15039      fi
15040
15041      # When large executables or shared objects are built, AIX ld can
15042      # have problems creating the table of contents.  If linking a library
15043      # or program results in "error TOC overflow" add -mminimal-toc to
15044      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15045      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15046
15047      archive_cmds_F77=''
15048      hardcode_direct_F77=yes
15049      hardcode_libdir_separator_F77=':'
15050      link_all_deplibs_F77=yes
15051
15052      if test "$GCC" = yes; then
15053	case $host_os in aix4.[012]|aix4.[012].*)
15054	# We only want to do this on AIX 4.2 and lower, the check
15055	# below for broken collect2 doesn't work under 4.3+
15056	  collect2name=`${CC} -print-prog-name=collect2`
15057	  if test -f "$collect2name" && \
15058  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15059	  then
15060  	  # We have reworked collect2
15061  	  hardcode_direct_F77=yes
15062	  else
15063  	  # We have old collect2
15064  	  hardcode_direct_F77=unsupported
15065  	  # It fails to find uninstalled libraries when the uninstalled
15066  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15067  	  # to unsupported forces relinking
15068  	  hardcode_minus_L_F77=yes
15069  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15070  	  hardcode_libdir_separator_F77=
15071	  fi
15072	  ;;
15073	esac
15074	shared_flag='-shared'
15075	if test "$aix_use_runtimelinking" = yes; then
15076	  shared_flag="$shared_flag "'${wl}-G'
15077	fi
15078      else
15079	# not using gcc
15080	if test "$host_cpu" = ia64; then
15081  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15082  	# chokes on -Wl,-G. The following line is correct:
15083	  shared_flag='-G'
15084	else
15085	  if test "$aix_use_runtimelinking" = yes; then
15086	    shared_flag='${wl}-G'
15087	  else
15088	    shared_flag='${wl}-bM:SRE'
15089	  fi
15090	fi
15091      fi
15092
15093      # It seems that -bexpall does not export symbols beginning with
15094      # underscore (_), so it is better to generate a list of symbols to export.
15095      always_export_symbols_F77=yes
15096      if test "$aix_use_runtimelinking" = yes; then
15097	# Warning - without using the other runtime loading flags (-brtl),
15098	# -berok will link without error, but may produce a broken library.
15099	allow_undefined_flag_F77='-berok'
15100       # Determine the default libpath from the value encoded in an empty executable.
15101       cat >conftest.$ac_ext <<_ACEOF
15102      program main
15103
15104      end
15105_ACEOF
15106rm -f conftest.$ac_objext conftest$ac_exeext
15107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15108  (eval $ac_link) 2>conftest.er1
15109  ac_status=$?
15110  grep -v '^ *+' conftest.er1 >conftest.err
15111  rm -f conftest.er1
15112  cat conftest.err >&5
15113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114  (exit $ac_status); } &&
15115	 { ac_try='test -z "$ac_f77_werror_flag"
15116			 || test ! -s conftest.err'
15117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118  (eval $ac_try) 2>&5
15119  ac_status=$?
15120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121  (exit $ac_status); }; } &&
15122	 { ac_try='test -s conftest$ac_exeext'
15123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124  (eval $ac_try) 2>&5
15125  ac_status=$?
15126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127  (exit $ac_status); }; }; then
15128
15129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15130}'`
15131# Check for a 64-bit object if we didn't find anything.
15132if 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; }
15133}'`; fi
15134else
15135  echo "$as_me: failed program was:" >&5
15136sed 's/^/| /' conftest.$ac_ext >&5
15137
15138fi
15139rm -f conftest.err conftest.$ac_objext \
15140      conftest$ac_exeext conftest.$ac_ext
15141if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15142
15143       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15144	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15145       else
15146	if test "$host_cpu" = ia64; then
15147	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15148	  allow_undefined_flag_F77="-z nodefs"
15149	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15150	else
15151	 # Determine the default libpath from the value encoded in an empty executable.
15152	 cat >conftest.$ac_ext <<_ACEOF
15153      program main
15154
15155      end
15156_ACEOF
15157rm -f conftest.$ac_objext conftest$ac_exeext
15158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159  (eval $ac_link) 2>conftest.er1
15160  ac_status=$?
15161  grep -v '^ *+' conftest.er1 >conftest.err
15162  rm -f conftest.er1
15163  cat conftest.err >&5
15164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165  (exit $ac_status); } &&
15166	 { ac_try='test -z "$ac_f77_werror_flag"
15167			 || test ! -s conftest.err'
15168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169  (eval $ac_try) 2>&5
15170  ac_status=$?
15171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172  (exit $ac_status); }; } &&
15173	 { ac_try='test -s conftest$ac_exeext'
15174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175  (eval $ac_try) 2>&5
15176  ac_status=$?
15177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178  (exit $ac_status); }; }; then
15179
15180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15181}'`
15182# Check for a 64-bit object if we didn't find anything.
15183if 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; }
15184}'`; fi
15185else
15186  echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189fi
15190rm -f conftest.err conftest.$ac_objext \
15191      conftest$ac_exeext conftest.$ac_ext
15192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15193
15194	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15195	  # Warning - without using the other run time loading flags,
15196	  # -berok will link without error, but may produce a broken library.
15197	  no_undefined_flag_F77=' ${wl}-bernotok'
15198	  allow_undefined_flag_F77=' ${wl}-berok'
15199	  # Exported symbols can be pulled into shared objects from archives
15200	  whole_archive_flag_spec_F77='$convenience'
15201	  archive_cmds_need_lc_F77=yes
15202	  # This is similar to how AIX traditionally builds its shared libraries.
15203	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15204	fi
15205      fi
15206      ;;
15207
15208    amigaos*)
15209      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)'
15210      hardcode_libdir_flag_spec_F77='-L$libdir'
15211      hardcode_minus_L_F77=yes
15212      # see comment about different semantics on the GNU ld section
15213      ld_shlibs_F77=no
15214      ;;
15215
15216    bsdi[45]*)
15217      export_dynamic_flag_spec_F77=-rdynamic
15218      ;;
15219
15220    cygwin* | mingw* | pw32*)
15221      # When not using gcc, we currently assume that we are using
15222      # Microsoft Visual C++.
15223      # hardcode_libdir_flag_spec is actually meaningless, as there is
15224      # no search path for DLLs.
15225      hardcode_libdir_flag_spec_F77=' '
15226      allow_undefined_flag_F77=unsupported
15227      # Tell ltmain to make .lib files, not .a files.
15228      libext=lib
15229      # Tell ltmain to make .dll files, not .so files.
15230      shrext_cmds=".dll"
15231      # FIXME: Setting linknames here is a bad hack.
15232      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15233      # The linker will automatically build a .lib file if we build a DLL.
15234      old_archive_From_new_cmds_F77='true'
15235      # FIXME: Should let the user specify the lib program.
15236      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15237      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15238      enable_shared_with_static_runtimes_F77=yes
15239      ;;
15240
15241    darwin* | rhapsody*)
15242      case $host_os in
15243        rhapsody* | darwin1.[012])
15244         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15245         ;;
15246       *) # Darwin 1.3 on
15247         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15248           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15249         else
15250           case ${MACOSX_DEPLOYMENT_TARGET} in
15251             10.[012])
15252               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15253               ;;
15254             10.*)
15255               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15256               ;;
15257           esac
15258         fi
15259         ;;
15260      esac
15261      archive_cmds_need_lc_F77=no
15262      hardcode_direct_F77=no
15263      hardcode_automatic_F77=yes
15264      hardcode_shlibpath_var_F77=unsupported
15265      whole_archive_flag_spec_F77=''
15266      link_all_deplibs_F77=yes
15267    if test "$GCC" = yes ; then
15268    	output_verbose_link_cmd='echo'
15269        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15270      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15271      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15272      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15273      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}'
15274    else
15275      case $cc_basename in
15276        xlc*)
15277         output_verbose_link_cmd='echo'
15278         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15279         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15280          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15281         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15282          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}'
15283          ;;
15284       *)
15285         ld_shlibs_F77=no
15286          ;;
15287      esac
15288    fi
15289      ;;
15290
15291    dgux*)
15292      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15293      hardcode_libdir_flag_spec_F77='-L$libdir'
15294      hardcode_shlibpath_var_F77=no
15295      ;;
15296
15297    freebsd1*)
15298      ld_shlibs_F77=no
15299      ;;
15300
15301    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15302    # support.  Future versions do this automatically, but an explicit c++rt0.o
15303    # does not break anything, and helps significantly (at the cost of a little
15304    # extra space).
15305    freebsd2.2*)
15306      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15307      hardcode_libdir_flag_spec_F77='-R$libdir'
15308      hardcode_direct_F77=yes
15309      hardcode_shlibpath_var_F77=no
15310      ;;
15311
15312    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15313    freebsd2*)
15314      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15315      hardcode_direct_F77=yes
15316      hardcode_minus_L_F77=yes
15317      hardcode_shlibpath_var_F77=no
15318      ;;
15319
15320    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15321    freebsd* | kfreebsd*-gnu | dragonfly*)
15322      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15323      hardcode_libdir_flag_spec_F77='-R$libdir'
15324      hardcode_direct_F77=yes
15325      hardcode_shlibpath_var_F77=no
15326      ;;
15327
15328    hpux9*)
15329      if test "$GCC" = yes; then
15330	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'
15331      else
15332	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'
15333      fi
15334      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15335      hardcode_libdir_separator_F77=:
15336      hardcode_direct_F77=yes
15337
15338      # hardcode_minus_L: Not really in the search PATH,
15339      # but as the default location of the library.
15340      hardcode_minus_L_F77=yes
15341      export_dynamic_flag_spec_F77='${wl}-E'
15342      ;;
15343
15344    hpux10*)
15345      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15346	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15347      else
15348	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15349      fi
15350      if test "$with_gnu_ld" = no; then
15351	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15352	hardcode_libdir_separator_F77=:
15353
15354	hardcode_direct_F77=yes
15355	export_dynamic_flag_spec_F77='${wl}-E'
15356
15357	# hardcode_minus_L: Not really in the search PATH,
15358	# but as the default location of the library.
15359	hardcode_minus_L_F77=yes
15360      fi
15361      ;;
15362
15363    hpux11*)
15364      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15365	case $host_cpu in
15366	hppa*64*)
15367	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15368	  ;;
15369	ia64*)
15370	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15371	  ;;
15372	*)
15373	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15374	  ;;
15375	esac
15376      else
15377	case $host_cpu in
15378	hppa*64*)
15379	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380	  ;;
15381	ia64*)
15382	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15383	  ;;
15384	*)
15385	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15386	  ;;
15387	esac
15388      fi
15389      if test "$with_gnu_ld" = no; then
15390	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15391	hardcode_libdir_separator_F77=:
15392
15393	case $host_cpu in
15394	hppa*64*|ia64*)
15395	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15396	  hardcode_direct_F77=no
15397	  hardcode_shlibpath_var_F77=no
15398	  ;;
15399	*)
15400	  hardcode_direct_F77=yes
15401	  export_dynamic_flag_spec_F77='${wl}-E'
15402
15403	  # hardcode_minus_L: Not really in the search PATH,
15404	  # but as the default location of the library.
15405	  hardcode_minus_L_F77=yes
15406	  ;;
15407	esac
15408      fi
15409      ;;
15410
15411    irix5* | irix6* | nonstopux*)
15412      if test "$GCC" = yes; then
15413	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'
15414      else
15415	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'
15416	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15417      fi
15418      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15419      hardcode_libdir_separator_F77=:
15420      link_all_deplibs_F77=yes
15421      ;;
15422
15423    netbsd*)
15424      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15425	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15426      else
15427	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15428      fi
15429      hardcode_libdir_flag_spec_F77='-R$libdir'
15430      hardcode_direct_F77=yes
15431      hardcode_shlibpath_var_F77=no
15432      ;;
15433
15434    newsos6)
15435      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436      hardcode_direct_F77=yes
15437      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15438      hardcode_libdir_separator_F77=:
15439      hardcode_shlibpath_var_F77=no
15440      ;;
15441
15442    openbsd*)
15443      hardcode_direct_F77=yes
15444      hardcode_shlibpath_var_F77=no
15445      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15446	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15447	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15448	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15449	export_dynamic_flag_spec_F77='${wl}-E'
15450      else
15451       case $host_os in
15452	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15453	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15454	   hardcode_libdir_flag_spec_F77='-R$libdir'
15455	   ;;
15456	 *)
15457	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15458	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15459	   ;;
15460       esac
15461      fi
15462      ;;
15463
15464    os2*)
15465      hardcode_libdir_flag_spec_F77='-L$libdir'
15466      hardcode_minus_L_F77=yes
15467      allow_undefined_flag_F77=unsupported
15468      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'
15469      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15470      ;;
15471
15472    osf3*)
15473      if test "$GCC" = yes; then
15474	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15475	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'
15476      else
15477	allow_undefined_flag_F77=' -expect_unresolved \*'
15478	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'
15479      fi
15480      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15481      hardcode_libdir_separator_F77=:
15482      ;;
15483
15484    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15485      if test "$GCC" = yes; then
15486	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15487	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'
15488	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15489      else
15490	allow_undefined_flag_F77=' -expect_unresolved \*'
15491	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'
15492	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~
15493	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15494
15495	# Both c and cxx compiler support -rpath directly
15496	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15497      fi
15498      hardcode_libdir_separator_F77=:
15499      ;;
15500
15501    solaris*)
15502      no_undefined_flag_F77=' -z text'
15503      if test "$GCC" = yes; then
15504	wlarc='${wl}'
15505	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15507	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15508      else
15509	wlarc=''
15510	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15511	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15512  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15513      fi
15514      hardcode_libdir_flag_spec_F77='-R$libdir'
15515      hardcode_shlibpath_var_F77=no
15516      case $host_os in
15517      solaris2.[0-5] | solaris2.[0-5].*) ;;
15518      *)
15519 	# The compiler driver will combine linker options so we
15520 	# cannot just pass the convience library names through
15521 	# without $wl, iff we do not link with $LD.
15522 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15523 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15524 	case $wlarc in
15525 	'')
15526 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15527 	*)
15528 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15529 	esac ;;
15530      esac
15531      link_all_deplibs_F77=yes
15532      ;;
15533
15534    sunos4*)
15535      if test "x$host_vendor" = xsequent; then
15536	# Use $CC to link under sequent, because it throws in some extra .o
15537	# files that make .init and .fini sections work.
15538	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15539      else
15540	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15541      fi
15542      hardcode_libdir_flag_spec_F77='-L$libdir'
15543      hardcode_direct_F77=yes
15544      hardcode_minus_L_F77=yes
15545      hardcode_shlibpath_var_F77=no
15546      ;;
15547
15548    sysv4)
15549      case $host_vendor in
15550	sni)
15551	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552	  hardcode_direct_F77=yes # is this really true???
15553	;;
15554	siemens)
15555	  ## LD is ld it makes a PLAMLIB
15556	  ## CC just makes a GrossModule.
15557	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15558	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15559	  hardcode_direct_F77=no
15560        ;;
15561	motorola)
15562	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15564	;;
15565      esac
15566      runpath_var='LD_RUN_PATH'
15567      hardcode_shlibpath_var_F77=no
15568      ;;
15569
15570    sysv4.3*)
15571      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572      hardcode_shlibpath_var_F77=no
15573      export_dynamic_flag_spec_F77='-Bexport'
15574      ;;
15575
15576    sysv4*MP*)
15577      if test -d /usr/nec; then
15578	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579	hardcode_shlibpath_var_F77=no
15580	runpath_var=LD_RUN_PATH
15581	hardcode_runpath_var=yes
15582	ld_shlibs_F77=yes
15583      fi
15584      ;;
15585
15586    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15587      no_undefined_flag_F77='${wl}-z,text'
15588      archive_cmds_need_lc_F77=no
15589      hardcode_shlibpath_var_F77=no
15590      runpath_var='LD_RUN_PATH'
15591
15592      if test "$GCC" = yes; then
15593	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15594	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15595      else
15596	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15597	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15598      fi
15599      ;;
15600
15601    sysv5* | sco3.2v5* | sco5v6*)
15602      # Note: We can NOT use -z defs as we might desire, because we do not
15603      # link with -lc, and that would cause any symbols used from libc to
15604      # always be unresolved, which means just about no library would
15605      # ever link correctly.  If we're not using GNU ld we use -z text
15606      # though, which does catch some bad symbols but isn't as heavy-handed
15607      # as -z defs.
15608      no_undefined_flag_F77='${wl}-z,text'
15609      allow_undefined_flag_F77='${wl}-z,nodefs'
15610      archive_cmds_need_lc_F77=no
15611      hardcode_shlibpath_var_F77=no
15612      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15613      hardcode_libdir_separator_F77=':'
15614      link_all_deplibs_F77=yes
15615      export_dynamic_flag_spec_F77='${wl}-Bexport'
15616      runpath_var='LD_RUN_PATH'
15617
15618      if test "$GCC" = yes; then
15619	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15620	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621      else
15622	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624      fi
15625      ;;
15626
15627    uts4*)
15628      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629      hardcode_libdir_flag_spec_F77='-L$libdir'
15630      hardcode_shlibpath_var_F77=no
15631      ;;
15632
15633    *)
15634      ld_shlibs_F77=no
15635      ;;
15636    esac
15637  fi
15638
15639echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15640echo "${ECHO_T}$ld_shlibs_F77" >&6
15641test "$ld_shlibs_F77" = no && can_build_shared=no
15642
15643#
15644# Do we need to explicitly link libc?
15645#
15646case "x$archive_cmds_need_lc_F77" in
15647x|xyes)
15648  # Assume -lc should be added
15649  archive_cmds_need_lc_F77=yes
15650
15651  if test "$enable_shared" = yes && test "$GCC" = yes; then
15652    case $archive_cmds_F77 in
15653    *'~'*)
15654      # FIXME: we may have to deal with multi-command sequences.
15655      ;;
15656    '$CC '*)
15657      # Test whether the compiler implicitly links with -lc since on some
15658      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15659      # to ld, don't add -lc before -lgcc.
15660      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15661echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15662      $rm conftest*
15663      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15664
15665      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666  (eval $ac_compile) 2>&5
15667  ac_status=$?
15668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669  (exit $ac_status); } 2>conftest.err; then
15670        soname=conftest
15671        lib=conftest
15672        libobjs=conftest.$ac_objext
15673        deplibs=
15674        wl=$lt_prog_compiler_wl_F77
15675	pic_flag=$lt_prog_compiler_pic_F77
15676        compiler_flags=-v
15677        linker_flags=-v
15678        verstring=
15679        output_objdir=.
15680        libname=conftest
15681        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15682        allow_undefined_flag_F77=
15683        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15684  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15685  ac_status=$?
15686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687  (exit $ac_status); }
15688        then
15689	  archive_cmds_need_lc_F77=no
15690        else
15691	  archive_cmds_need_lc_F77=yes
15692        fi
15693        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15694      else
15695        cat conftest.err 1>&5
15696      fi
15697      $rm conftest*
15698      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15699echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15700      ;;
15701    esac
15702  fi
15703  ;;
15704esac
15705
15706echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15707echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15708library_names_spec=
15709libname_spec='lib$name'
15710soname_spec=
15711shrext_cmds=".so"
15712postinstall_cmds=
15713postuninstall_cmds=
15714finish_cmds=
15715finish_eval=
15716shlibpath_var=
15717shlibpath_overrides_runpath=unknown
15718version_type=none
15719dynamic_linker="$host_os ld.so"
15720sys_lib_dlsearch_path_spec="/lib /usr/lib"
15721if test "$GCC" = yes; then
15722  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15723  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15724    # if the path contains ";" then we assume it to be the separator
15725    # otherwise default to the standard path separator (i.e. ":") - it is
15726    # assumed that no part of a normal pathname contains ";" but that should
15727    # okay in the real world where ";" in dirpaths is itself problematic.
15728    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15729  else
15730    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15731  fi
15732else
15733  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15734fi
15735need_lib_prefix=unknown
15736hardcode_into_libs=no
15737
15738# when you set need_version to no, make sure it does not cause -set_version
15739# flags to be left without arguments
15740need_version=unknown
15741
15742case $host_os in
15743aix3*)
15744  version_type=linux
15745  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15746  shlibpath_var=LIBPATH
15747
15748  # AIX 3 has no versioning support, so we append a major version to the name.
15749  soname_spec='${libname}${release}${shared_ext}$major'
15750  ;;
15751
15752aix4* | aix5*)
15753  version_type=linux
15754  need_lib_prefix=no
15755  need_version=no
15756  hardcode_into_libs=yes
15757  if test "$host_cpu" = ia64; then
15758    # AIX 5 supports IA64
15759    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15760    shlibpath_var=LD_LIBRARY_PATH
15761  else
15762    # With GCC up to 2.95.x, collect2 would create an import file
15763    # for dependence libraries.  The import file would start with
15764    # the line `#! .'.  This would cause the generated library to
15765    # depend on `.', always an invalid library.  This was fixed in
15766    # development snapshots of GCC prior to 3.0.
15767    case $host_os in
15768      aix4 | aix4.[01] | aix4.[01].*)
15769      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15770	   echo ' yes '
15771	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15772	:
15773      else
15774	can_build_shared=no
15775      fi
15776      ;;
15777    esac
15778    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15779    # soname into executable. Probably we can add versioning support to
15780    # collect2, so additional links can be useful in future.
15781    if test "$aix_use_runtimelinking" = yes; then
15782      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15783      # instead of lib<name>.a to let people know that these are not
15784      # typical AIX shared libraries.
15785      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786    else
15787      # We preserve .a as extension for shared libraries through AIX4.2
15788      # and later when we are not doing run time linking.
15789      library_names_spec='${libname}${release}.a $libname.a'
15790      soname_spec='${libname}${release}${shared_ext}$major'
15791    fi
15792    shlibpath_var=LIBPATH
15793  fi
15794  ;;
15795
15796amigaos*)
15797  library_names_spec='$libname.ixlibrary $libname.a'
15798  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15799  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'
15800  ;;
15801
15802beos*)
15803  library_names_spec='${libname}${shared_ext}'
15804  dynamic_linker="$host_os ld.so"
15805  shlibpath_var=LIBRARY_PATH
15806  ;;
15807
15808bsdi[45]*)
15809  version_type=linux
15810  need_version=no
15811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812  soname_spec='${libname}${release}${shared_ext}$major'
15813  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15814  shlibpath_var=LD_LIBRARY_PATH
15815  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15816  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15817  # the default ld.so.conf also contains /usr/contrib/lib and
15818  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15819  # libtool to hard-code these into programs
15820  ;;
15821
15822cygwin* | mingw* | pw32*)
15823  version_type=windows
15824  shrext_cmds=".dll"
15825  need_version=no
15826  need_lib_prefix=no
15827
15828  case $GCC,$host_os in
15829  yes,cygwin* | yes,mingw* | yes,pw32*)
15830    library_names_spec='$libname.dll.a'
15831    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15832    postinstall_cmds='base_file=`basename \${file}`~
15833      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15834      dldir=$destdir/`dirname \$dlpath`~
15835      test -d \$dldir || mkdir -p \$dldir~
15836      $install_prog $dir/$dlname \$dldir/$dlname~
15837      chmod a+x \$dldir/$dlname'
15838    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15839      dlpath=$dir/\$dldll~
15840       $rm \$dlpath'
15841    shlibpath_overrides_runpath=yes
15842
15843    case $host_os in
15844    cygwin*)
15845      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15846      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15847      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15848      ;;
15849    mingw*)
15850      # MinGW DLLs use traditional 'lib' prefix
15851      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15852      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15853      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15854        # It is most probably a Windows format PATH printed by
15855        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15856        # path with ; separators, and with drive letters. We can handle the
15857        # drive letters (cygwin fileutils understands them), so leave them,
15858        # especially as we might pass files found there to a mingw objdump,
15859        # which wouldn't understand a cygwinified path. Ahh.
15860        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15861      else
15862        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15863      fi
15864      ;;
15865    pw32*)
15866      # pw32 DLLs use 'pw' prefix rather than 'lib'
15867      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15868      ;;
15869    esac
15870    ;;
15871
15872  *)
15873    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15874    ;;
15875  esac
15876  dynamic_linker='Win32 ld.exe'
15877  # FIXME: first we should search . and the directory the executable is in
15878  shlibpath_var=PATH
15879  ;;
15880
15881darwin* | rhapsody*)
15882  dynamic_linker="$host_os dyld"
15883  version_type=darwin
15884  need_lib_prefix=no
15885  need_version=no
15886  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15887  soname_spec='${libname}${release}${major}$shared_ext'
15888  shlibpath_overrides_runpath=yes
15889  shlibpath_var=DYLD_LIBRARY_PATH
15890  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15891  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15892  if test "$GCC" = yes; then
15893    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"`
15894  else
15895    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15896  fi
15897  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15898  ;;
15899
15900dgux*)
15901  version_type=linux
15902  need_lib_prefix=no
15903  need_version=no
15904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15905  soname_spec='${libname}${release}${shared_ext}$major'
15906  shlibpath_var=LD_LIBRARY_PATH
15907  ;;
15908
15909freebsd1*)
15910  dynamic_linker=no
15911  ;;
15912
15913kfreebsd*-gnu)
15914  version_type=linux
15915  need_lib_prefix=no
15916  need_version=no
15917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918  soname_spec='${libname}${release}${shared_ext}$major'
15919  shlibpath_var=LD_LIBRARY_PATH
15920  shlibpath_overrides_runpath=no
15921  hardcode_into_libs=yes
15922  dynamic_linker='GNU ld.so'
15923  ;;
15924
15925freebsd* | dragonfly*)
15926  # DragonFly does not have aout.  When/if they implement a new
15927  # versioning mechanism, adjust this.
15928  if test -x /usr/bin/objformat; then
15929    objformat=`/usr/bin/objformat`
15930  else
15931    case $host_os in
15932    freebsd[123]*) objformat=aout ;;
15933    *) objformat=elf ;;
15934    esac
15935  fi
15936  version_type=freebsd-$objformat
15937  case $version_type in
15938    freebsd-elf*)
15939      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15940      need_version=no
15941      need_lib_prefix=no
15942      ;;
15943    freebsd-*)
15944      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15945      need_version=yes
15946      ;;
15947  esac
15948  shlibpath_var=LD_LIBRARY_PATH
15949  case $host_os in
15950  freebsd2*)
15951    shlibpath_overrides_runpath=yes
15952    ;;
15953  freebsd3.[01]* | freebsdelf3.[01]*)
15954    shlibpath_overrides_runpath=yes
15955    hardcode_into_libs=yes
15956    ;;
15957  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15958  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15959    shlibpath_overrides_runpath=no
15960    hardcode_into_libs=yes
15961    ;;
15962  freebsd*) # from 4.6 on
15963    shlibpath_overrides_runpath=yes
15964    hardcode_into_libs=yes
15965    ;;
15966  esac
15967  ;;
15968
15969gnu*)
15970  version_type=linux
15971  need_lib_prefix=no
15972  need_version=no
15973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15974  soname_spec='${libname}${release}${shared_ext}$major'
15975  shlibpath_var=LD_LIBRARY_PATH
15976  hardcode_into_libs=yes
15977  ;;
15978
15979hpux9* | hpux10* | hpux11*)
15980  # Give a soname corresponding to the major version so that dld.sl refuses to
15981  # link against other versions.
15982  version_type=sunos
15983  need_lib_prefix=no
15984  need_version=no
15985  case $host_cpu in
15986  ia64*)
15987    shrext_cmds='.so'
15988    hardcode_into_libs=yes
15989    dynamic_linker="$host_os dld.so"
15990    shlibpath_var=LD_LIBRARY_PATH
15991    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15992    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993    soname_spec='${libname}${release}${shared_ext}$major'
15994    if test "X$HPUX_IA64_MODE" = X32; then
15995      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15996    else
15997      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15998    fi
15999    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16000    ;;
16001   hppa*64*)
16002     shrext_cmds='.sl'
16003     hardcode_into_libs=yes
16004     dynamic_linker="$host_os dld.sl"
16005     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16006     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008     soname_spec='${libname}${release}${shared_ext}$major'
16009     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16010     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16011     ;;
16012   *)
16013    shrext_cmds='.sl'
16014    dynamic_linker="$host_os dld.sl"
16015    shlibpath_var=SHLIB_PATH
16016    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16017    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018    soname_spec='${libname}${release}${shared_ext}$major'
16019    ;;
16020  esac
16021  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16022  postinstall_cmds='chmod 555 $lib'
16023  ;;
16024
16025interix3*)
16026  version_type=linux
16027  need_lib_prefix=no
16028  need_version=no
16029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16030  soname_spec='${libname}${release}${shared_ext}$major'
16031  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16032  shlibpath_var=LD_LIBRARY_PATH
16033  shlibpath_overrides_runpath=no
16034  hardcode_into_libs=yes
16035  ;;
16036
16037irix5* | irix6* | nonstopux*)
16038  case $host_os in
16039    nonstopux*) version_type=nonstopux ;;
16040    *)
16041	if test "$lt_cv_prog_gnu_ld" = yes; then
16042		version_type=linux
16043	else
16044		version_type=irix
16045	fi ;;
16046  esac
16047  need_lib_prefix=no
16048  need_version=no
16049  soname_spec='${libname}${release}${shared_ext}$major'
16050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16051  case $host_os in
16052  irix5* | nonstopux*)
16053    libsuff= shlibsuff=
16054    ;;
16055  *)
16056    case $LD in # libtool.m4 will add one of these switches to LD
16057    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16058      libsuff= shlibsuff= libmagic=32-bit;;
16059    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16060      libsuff=32 shlibsuff=N32 libmagic=N32;;
16061    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16062      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16063    *) libsuff= shlibsuff= libmagic=never-match;;
16064    esac
16065    ;;
16066  esac
16067  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16068  shlibpath_overrides_runpath=no
16069  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16070  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16071  hardcode_into_libs=yes
16072  ;;
16073
16074# No shared lib support for Linux oldld, aout, or coff.
16075linux*oldld* | linux*aout* | linux*coff*)
16076  dynamic_linker=no
16077  ;;
16078
16079# This must be Linux ELF.
16080linux*)
16081  version_type=linux
16082  need_lib_prefix=no
16083  need_version=no
16084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085  soname_spec='${libname}${release}${shared_ext}$major'
16086  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16087  shlibpath_var=LD_LIBRARY_PATH
16088  shlibpath_overrides_runpath=no
16089  # This implies no fast_install, which is unacceptable.
16090  # Some rework will be needed to allow for fast_install
16091  # before this can be enabled.
16092  hardcode_into_libs=yes
16093
16094  # find out which ABI we are using
16095  libsuff=
16096  case "$host_cpu" in
16097  x86_64*|s390x*|powerpc64*)
16098    echo '#line 16098 "configure"' > conftest.$ac_ext
16099    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16100  (eval $ac_compile) 2>&5
16101  ac_status=$?
16102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103  (exit $ac_status); }; then
16104      case `/usr/bin/file conftest.$ac_objext` in
16105      *64-bit*)
16106        libsuff=64
16107        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16108        ;;
16109      esac
16110    fi
16111    rm -rf conftest*
16112    ;;
16113  esac
16114
16115  # Append ld.so.conf contents to the search path
16116  if test -f /etc/ld.so.conf; then
16117    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16118    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16119  fi
16120
16121  # We used to test for /lib/ld.so.1 and disable shared libraries on
16122  # powerpc, because MkLinux only supported shared libraries with the
16123  # GNU dynamic linker.  Since this was broken with cross compilers,
16124  # most powerpc-linux boxes support dynamic linking these days and
16125  # people can always --disable-shared, the test was removed, and we
16126  # assume the GNU/Linux dynamic linker is in use.
16127  dynamic_linker='GNU/Linux ld.so'
16128  ;;
16129
16130knetbsd*-gnu)
16131  version_type=linux
16132  need_lib_prefix=no
16133  need_version=no
16134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16135  soname_spec='${libname}${release}${shared_ext}$major'
16136  shlibpath_var=LD_LIBRARY_PATH
16137  shlibpath_overrides_runpath=no
16138  hardcode_into_libs=yes
16139  dynamic_linker='GNU ld.so'
16140  ;;
16141
16142netbsd*)
16143  version_type=sunos
16144  need_lib_prefix=no
16145  need_version=no
16146  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16148    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16149    dynamic_linker='NetBSD (a.out) ld.so'
16150  else
16151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16152    soname_spec='${libname}${release}${shared_ext}$major'
16153    dynamic_linker='NetBSD ld.elf_so'
16154  fi
16155  shlibpath_var=LD_LIBRARY_PATH
16156  shlibpath_overrides_runpath=yes
16157  hardcode_into_libs=yes
16158  ;;
16159
16160newsos6)
16161  version_type=linux
16162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16163  shlibpath_var=LD_LIBRARY_PATH
16164  shlibpath_overrides_runpath=yes
16165  ;;
16166
16167nto-qnx*)
16168  version_type=linux
16169  need_lib_prefix=no
16170  need_version=no
16171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172  soname_spec='${libname}${release}${shared_ext}$major'
16173  shlibpath_var=LD_LIBRARY_PATH
16174  shlibpath_overrides_runpath=yes
16175  ;;
16176
16177openbsd*)
16178  version_type=sunos
16179  sys_lib_dlsearch_path_spec="/usr/lib"
16180  need_lib_prefix=no
16181  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16182  case $host_os in
16183    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16184    *)                         need_version=no  ;;
16185  esac
16186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16187  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16188  shlibpath_var=LD_LIBRARY_PATH
16189  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16190    case $host_os in
16191      openbsd2.[89] | openbsd2.[89].*)
16192	shlibpath_overrides_runpath=no
16193	;;
16194      *)
16195	shlibpath_overrides_runpath=yes
16196	;;
16197      esac
16198  else
16199    shlibpath_overrides_runpath=yes
16200  fi
16201  ;;
16202
16203os2*)
16204  libname_spec='$name'
16205  shrext_cmds=".dll"
16206  need_lib_prefix=no
16207  library_names_spec='$libname${shared_ext} $libname.a'
16208  dynamic_linker='OS/2 ld.exe'
16209  shlibpath_var=LIBPATH
16210  ;;
16211
16212osf3* | osf4* | osf5*)
16213  version_type=osf
16214  need_lib_prefix=no
16215  need_version=no
16216  soname_spec='${libname}${release}${shared_ext}$major'
16217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218  shlibpath_var=LD_LIBRARY_PATH
16219  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16220  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16221  ;;
16222
16223solaris*)
16224  version_type=linux
16225  need_lib_prefix=no
16226  need_version=no
16227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228  soname_spec='${libname}${release}${shared_ext}$major'
16229  shlibpath_var=LD_LIBRARY_PATH
16230  shlibpath_overrides_runpath=yes
16231  hardcode_into_libs=yes
16232  # ldd complains unless libraries are executable
16233  postinstall_cmds='chmod +x $lib'
16234  ;;
16235
16236sunos4*)
16237  version_type=sunos
16238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16239  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16240  shlibpath_var=LD_LIBRARY_PATH
16241  shlibpath_overrides_runpath=yes
16242  if test "$with_gnu_ld" = yes; then
16243    need_lib_prefix=no
16244  fi
16245  need_version=yes
16246  ;;
16247
16248sysv4 | sysv4.3*)
16249  version_type=linux
16250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251  soname_spec='${libname}${release}${shared_ext}$major'
16252  shlibpath_var=LD_LIBRARY_PATH
16253  case $host_vendor in
16254    sni)
16255      shlibpath_overrides_runpath=no
16256      need_lib_prefix=no
16257      export_dynamic_flag_spec='${wl}-Blargedynsym'
16258      runpath_var=LD_RUN_PATH
16259      ;;
16260    siemens)
16261      need_lib_prefix=no
16262      ;;
16263    motorola)
16264      need_lib_prefix=no
16265      need_version=no
16266      shlibpath_overrides_runpath=no
16267      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16268      ;;
16269  esac
16270  ;;
16271
16272sysv4*MP*)
16273  if test -d /usr/nec ;then
16274    version_type=linux
16275    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16276    soname_spec='$libname${shared_ext}.$major'
16277    shlibpath_var=LD_LIBRARY_PATH
16278  fi
16279  ;;
16280
16281sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16282  version_type=freebsd-elf
16283  need_lib_prefix=no
16284  need_version=no
16285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16286  soname_spec='${libname}${release}${shared_ext}$major'
16287  shlibpath_var=LD_LIBRARY_PATH
16288  hardcode_into_libs=yes
16289  if test "$with_gnu_ld" = yes; then
16290    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16291    shlibpath_overrides_runpath=no
16292  else
16293    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16294    shlibpath_overrides_runpath=yes
16295    case $host_os in
16296      sco3.2v5*)
16297        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16298	;;
16299    esac
16300  fi
16301  sys_lib_dlsearch_path_spec='/usr/lib'
16302  ;;
16303
16304uts4*)
16305  version_type=linux
16306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16307  soname_spec='${libname}${release}${shared_ext}$major'
16308  shlibpath_var=LD_LIBRARY_PATH
16309  ;;
16310
16311*)
16312  dynamic_linker=no
16313  ;;
16314esac
16315echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16316echo "${ECHO_T}$dynamic_linker" >&6
16317test "$dynamic_linker" = no && can_build_shared=no
16318
16319variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16320if test "$GCC" = yes; then
16321  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16322fi
16323
16324echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16325echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16326hardcode_action_F77=
16327if test -n "$hardcode_libdir_flag_spec_F77" || \
16328   test -n "$runpath_var_F77" || \
16329   test "X$hardcode_automatic_F77" = "Xyes" ; then
16330
16331  # We can hardcode non-existant directories.
16332  if test "$hardcode_direct_F77" != no &&
16333     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16334     # have to relink, otherwise we might link with an installed library
16335     # when we should be linking with a yet-to-be-installed one
16336     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16337     test "$hardcode_minus_L_F77" != no; then
16338    # Linking always hardcodes the temporary library directory.
16339    hardcode_action_F77=relink
16340  else
16341    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16342    hardcode_action_F77=immediate
16343  fi
16344else
16345  # We cannot hardcode anything, or else we can only hardcode existing
16346  # directories.
16347  hardcode_action_F77=unsupported
16348fi
16349echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16350echo "${ECHO_T}$hardcode_action_F77" >&6
16351
16352if test "$hardcode_action_F77" = relink; then
16353  # Fast installation is not supported
16354  enable_fast_install=no
16355elif test "$shlibpath_overrides_runpath" = yes ||
16356     test "$enable_shared" = no; then
16357  # Fast installation is not necessary
16358  enable_fast_install=needless
16359fi
16360
16361
16362# The else clause should only fire when bootstrapping the
16363# libtool distribution, otherwise you forgot to ship ltmain.sh
16364# with your package, and you will get complaints that there are
16365# no rules to generate ltmain.sh.
16366if test -f "$ltmain"; then
16367  # See if we are running on zsh, and set the options which allow our commands through
16368  # without removal of \ escapes.
16369  if test -n "${ZSH_VERSION+set}" ; then
16370    setopt NO_GLOB_SUBST
16371  fi
16372  # Now quote all the things that may contain metacharacters while being
16373  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16374  # variables and quote the copies for generation of the libtool script.
16375  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16376    SED SHELL STRIP \
16377    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16378    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16379    deplibs_check_method reload_flag reload_cmds need_locks \
16380    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16381    lt_cv_sys_global_symbol_to_c_name_address \
16382    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16383    old_postinstall_cmds old_postuninstall_cmds \
16384    compiler_F77 \
16385    CC_F77 \
16386    LD_F77 \
16387    lt_prog_compiler_wl_F77 \
16388    lt_prog_compiler_pic_F77 \
16389    lt_prog_compiler_static_F77 \
16390    lt_prog_compiler_no_builtin_flag_F77 \
16391    export_dynamic_flag_spec_F77 \
16392    thread_safe_flag_spec_F77 \
16393    whole_archive_flag_spec_F77 \
16394    enable_shared_with_static_runtimes_F77 \
16395    old_archive_cmds_F77 \
16396    old_archive_from_new_cmds_F77 \
16397    predep_objects_F77 \
16398    postdep_objects_F77 \
16399    predeps_F77 \
16400    postdeps_F77 \
16401    compiler_lib_search_path_F77 \
16402    archive_cmds_F77 \
16403    archive_expsym_cmds_F77 \
16404    postinstall_cmds_F77 \
16405    postuninstall_cmds_F77 \
16406    old_archive_from_expsyms_cmds_F77 \
16407    allow_undefined_flag_F77 \
16408    no_undefined_flag_F77 \
16409    export_symbols_cmds_F77 \
16410    hardcode_libdir_flag_spec_F77 \
16411    hardcode_libdir_flag_spec_ld_F77 \
16412    hardcode_libdir_separator_F77 \
16413    hardcode_automatic_F77 \
16414    module_cmds_F77 \
16415    module_expsym_cmds_F77 \
16416    lt_cv_prog_compiler_c_o_F77 \
16417    exclude_expsyms_F77 \
16418    include_expsyms_F77; do
16419
16420    case $var in
16421    old_archive_cmds_F77 | \
16422    old_archive_from_new_cmds_F77 | \
16423    archive_cmds_F77 | \
16424    archive_expsym_cmds_F77 | \
16425    module_cmds_F77 | \
16426    module_expsym_cmds_F77 | \
16427    old_archive_from_expsyms_cmds_F77 | \
16428    export_symbols_cmds_F77 | \
16429    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16430    postinstall_cmds | postuninstall_cmds | \
16431    old_postinstall_cmds | old_postuninstall_cmds | \
16432    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16433      # Double-quote double-evaled strings.
16434      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16435      ;;
16436    *)
16437      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16438      ;;
16439    esac
16440  done
16441
16442  case $lt_echo in
16443  *'\$0 --fallback-echo"')
16444    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16445    ;;
16446  esac
16447
16448cfgfile="$ofile"
16449
16450  cat <<__EOF__ >> "$cfgfile"
16451# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16452
16453# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16454
16455# Shell to use when invoking shell scripts.
16456SHELL=$lt_SHELL
16457
16458# Whether or not to build shared libraries.
16459build_libtool_libs=$enable_shared
16460
16461# Whether or not to build static libraries.
16462build_old_libs=$enable_static
16463
16464# Whether or not to add -lc for building shared libraries.
16465build_libtool_need_lc=$archive_cmds_need_lc_F77
16466
16467# Whether or not to disallow shared libs when runtime libs are static
16468allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16469
16470# Whether or not to optimize for fast installation.
16471fast_install=$enable_fast_install
16472
16473# The host system.
16474host_alias=$host_alias
16475host=$host
16476host_os=$host_os
16477
16478# The build system.
16479build_alias=$build_alias
16480build=$build
16481build_os=$build_os
16482
16483# An echo program that does not interpret backslashes.
16484echo=$lt_echo
16485
16486# The archiver.
16487AR=$lt_AR
16488AR_FLAGS=$lt_AR_FLAGS
16489
16490# A C compiler.
16491LTCC=$lt_LTCC
16492
16493# LTCC compiler flags.
16494LTCFLAGS=$lt_LTCFLAGS
16495
16496# A language-specific compiler.
16497CC=$lt_compiler_F77
16498
16499# Is the compiler the GNU C compiler?
16500with_gcc=$GCC_F77
16501
16502# An ERE matcher.
16503EGREP=$lt_EGREP
16504
16505# The linker used to build libraries.
16506LD=$lt_LD_F77
16507
16508# Whether we need hard or soft links.
16509LN_S=$lt_LN_S
16510
16511# A BSD-compatible nm program.
16512NM=$lt_NM
16513
16514# A symbol stripping program
16515STRIP=$lt_STRIP
16516
16517# Used to examine libraries when file_magic_cmd begins "file"
16518MAGIC_CMD=$MAGIC_CMD
16519
16520# Used on cygwin: DLL creation program.
16521DLLTOOL="$DLLTOOL"
16522
16523# Used on cygwin: object dumper.
16524OBJDUMP="$OBJDUMP"
16525
16526# Used on cygwin: assembler.
16527AS="$AS"
16528
16529# The name of the directory that contains temporary libtool files.
16530objdir=$objdir
16531
16532# How to create reloadable object files.
16533reload_flag=$lt_reload_flag
16534reload_cmds=$lt_reload_cmds
16535
16536# How to pass a linker flag through the compiler.
16537wl=$lt_lt_prog_compiler_wl_F77
16538
16539# Object file suffix (normally "o").
16540objext="$ac_objext"
16541
16542# Old archive suffix (normally "a").
16543libext="$libext"
16544
16545# Shared library suffix (normally ".so").
16546shrext_cmds='$shrext_cmds'
16547
16548# Executable file suffix (normally "").
16549exeext="$exeext"
16550
16551# Additional compiler flags for building library objects.
16552pic_flag=$lt_lt_prog_compiler_pic_F77
16553pic_mode=$pic_mode
16554
16555# What is the maximum length of a command?
16556max_cmd_len=$lt_cv_sys_max_cmd_len
16557
16558# Does compiler simultaneously support -c and -o options?
16559compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16560
16561# Must we lock files when doing compilation?
16562need_locks=$lt_need_locks
16563
16564# Do we need the lib prefix for modules?
16565need_lib_prefix=$need_lib_prefix
16566
16567# Do we need a version for libraries?
16568need_version=$need_version
16569
16570# Whether dlopen is supported.
16571dlopen_support=$enable_dlopen
16572
16573# Whether dlopen of programs is supported.
16574dlopen_self=$enable_dlopen_self
16575
16576# Whether dlopen of statically linked programs is supported.
16577dlopen_self_static=$enable_dlopen_self_static
16578
16579# Compiler flag to prevent dynamic linking.
16580link_static_flag=$lt_lt_prog_compiler_static_F77
16581
16582# Compiler flag to turn off builtin functions.
16583no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16584
16585# Compiler flag to allow reflexive dlopens.
16586export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16587
16588# Compiler flag to generate shared objects directly from archives.
16589whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16590
16591# Compiler flag to generate thread-safe objects.
16592thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16593
16594# Library versioning type.
16595version_type=$version_type
16596
16597# Format of library name prefix.
16598libname_spec=$lt_libname_spec
16599
16600# List of archive names.  First name is the real one, the rest are links.
16601# The last name is the one that the linker finds with -lNAME.
16602library_names_spec=$lt_library_names_spec
16603
16604# The coded name of the library, if different from the real name.
16605soname_spec=$lt_soname_spec
16606
16607# Commands used to build and install an old-style archive.
16608RANLIB=$lt_RANLIB
16609old_archive_cmds=$lt_old_archive_cmds_F77
16610old_postinstall_cmds=$lt_old_postinstall_cmds
16611old_postuninstall_cmds=$lt_old_postuninstall_cmds
16612
16613# Create an old-style archive from a shared archive.
16614old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16615
16616# Create a temporary old-style archive to link instead of a shared archive.
16617old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16618
16619# Commands used to build and install a shared archive.
16620archive_cmds=$lt_archive_cmds_F77
16621archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16622postinstall_cmds=$lt_postinstall_cmds
16623postuninstall_cmds=$lt_postuninstall_cmds
16624
16625# Commands used to build a loadable module (assumed same as above if empty)
16626module_cmds=$lt_module_cmds_F77
16627module_expsym_cmds=$lt_module_expsym_cmds_F77
16628
16629# Commands to strip libraries.
16630old_striplib=$lt_old_striplib
16631striplib=$lt_striplib
16632
16633# Dependencies to place before the objects being linked to create a
16634# shared library.
16635predep_objects=$lt_predep_objects_F77
16636
16637# Dependencies to place after the objects being linked to create a
16638# shared library.
16639postdep_objects=$lt_postdep_objects_F77
16640
16641# Dependencies to place before the objects being linked to create a
16642# shared library.
16643predeps=$lt_predeps_F77
16644
16645# Dependencies to place after the objects being linked to create a
16646# shared library.
16647postdeps=$lt_postdeps_F77
16648
16649# The library search path used internally by the compiler when linking
16650# a shared library.
16651compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16652
16653# Method to check whether dependent libraries are shared objects.
16654deplibs_check_method=$lt_deplibs_check_method
16655
16656# Command to use when deplibs_check_method == file_magic.
16657file_magic_cmd=$lt_file_magic_cmd
16658
16659# Flag that allows shared libraries with undefined symbols to be built.
16660allow_undefined_flag=$lt_allow_undefined_flag_F77
16661
16662# Flag that forces no undefined symbols.
16663no_undefined_flag=$lt_no_undefined_flag_F77
16664
16665# Commands used to finish a libtool library installation in a directory.
16666finish_cmds=$lt_finish_cmds
16667
16668# Same as above, but a single script fragment to be evaled but not shown.
16669finish_eval=$lt_finish_eval
16670
16671# Take the output of nm and produce a listing of raw symbols and C names.
16672global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16673
16674# Transform the output of nm in a proper C declaration
16675global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16676
16677# Transform the output of nm in a C name address pair
16678global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16679
16680# This is the shared library runtime path variable.
16681runpath_var=$runpath_var
16682
16683# This is the shared library path variable.
16684shlibpath_var=$shlibpath_var
16685
16686# Is shlibpath searched before the hard-coded library search path?
16687shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16688
16689# How to hardcode a shared library path into an executable.
16690hardcode_action=$hardcode_action_F77
16691
16692# Whether we should hardcode library paths into libraries.
16693hardcode_into_libs=$hardcode_into_libs
16694
16695# Flag to hardcode \$libdir into a binary during linking.
16696# This must work even if \$libdir does not exist.
16697hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16698
16699# If ld is used when linking, flag to hardcode \$libdir into
16700# a binary during linking. This must work even if \$libdir does
16701# not exist.
16702hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16703
16704# Whether we need a single -rpath flag with a separated argument.
16705hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16706
16707# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16708# resulting binary.
16709hardcode_direct=$hardcode_direct_F77
16710
16711# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16712# resulting binary.
16713hardcode_minus_L=$hardcode_minus_L_F77
16714
16715# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16716# the resulting binary.
16717hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16718
16719# Set to yes if building a shared library automatically hardcodes DIR into the library
16720# and all subsequent libraries and executables linked against it.
16721hardcode_automatic=$hardcode_automatic_F77
16722
16723# Variables whose values should be saved in libtool wrapper scripts and
16724# restored at relink time.
16725variables_saved_for_relink="$variables_saved_for_relink"
16726
16727# Whether libtool must link a program against all its dependency libraries.
16728link_all_deplibs=$link_all_deplibs_F77
16729
16730# Compile-time system search path for libraries
16731sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16732
16733# Run-time system search path for libraries
16734sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16735
16736# Fix the shell variable \$srcfile for the compiler.
16737fix_srcfile_path="$fix_srcfile_path_F77"
16738
16739# Set to yes if exported symbols are required.
16740always_export_symbols=$always_export_symbols_F77
16741
16742# The commands to list exported symbols.
16743export_symbols_cmds=$lt_export_symbols_cmds_F77
16744
16745# The commands to extract the exported symbol list from a shared archive.
16746extract_expsyms_cmds=$lt_extract_expsyms_cmds
16747
16748# Symbols that should not be listed in the preloaded symbols.
16749exclude_expsyms=$lt_exclude_expsyms_F77
16750
16751# Symbols that must always be exported.
16752include_expsyms=$lt_include_expsyms_F77
16753
16754# ### END LIBTOOL TAG CONFIG: $tagname
16755
16756__EOF__
16757
16758
16759else
16760  # If there is no Makefile yet, we rely on a make rule to execute
16761  # `config.status --recheck' to rerun these tests and create the
16762  # libtool script then.
16763  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16764  if test -f "$ltmain_in"; then
16765    test -f Makefile && make "$ltmain"
16766  fi
16767fi
16768
16769
16770ac_ext=c
16771ac_cpp='$CPP $CPPFLAGS'
16772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16774ac_compiler_gnu=$ac_cv_c_compiler_gnu
16775
16776CC="$lt_save_CC"
16777
16778	else
16779	  tagname=""
16780	fi
16781	;;
16782
16783      GCJ)
16784	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16785
16786
16787
16788# Source file extension for Java test sources.
16789ac_ext=java
16790
16791# Object file extension for compiled Java test sources.
16792objext=o
16793objext_GCJ=$objext
16794
16795# Code to be used in simple compile tests
16796lt_simple_compile_test_code="class foo {}\n"
16797
16798# Code to be used in simple link tests
16799lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16800
16801# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16802
16803# If no C compiler was specified, use CC.
16804LTCC=${LTCC-"$CC"}
16805
16806# If no C compiler flags were specified, use CFLAGS.
16807LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16808
16809# Allow CC to be a program name with arguments.
16810compiler=$CC
16811
16812
16813# save warnings/boilerplate of simple test code
16814ac_outfile=conftest.$ac_objext
16815printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16816eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16817_lt_compiler_boilerplate=`cat conftest.err`
16818$rm conftest*
16819
16820ac_outfile=conftest.$ac_objext
16821printf "$lt_simple_link_test_code" >conftest.$ac_ext
16822eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16823_lt_linker_boilerplate=`cat conftest.err`
16824$rm conftest*
16825
16826
16827# Allow CC to be a program name with arguments.
16828lt_save_CC="$CC"
16829CC=${GCJ-"gcj"}
16830compiler=$CC
16831compiler_GCJ=$CC
16832for cc_temp in $compiler""; do
16833  case $cc_temp in
16834    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16835    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16836    \-*) ;;
16837    *) break;;
16838  esac
16839done
16840cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16841
16842
16843# GCJ did not exist at the time GCC didn't implicitly link libc in.
16844archive_cmds_need_lc_GCJ=no
16845
16846old_archive_cmds_GCJ=$old_archive_cmds
16847
16848
16849lt_prog_compiler_no_builtin_flag_GCJ=
16850
16851if test "$GCC" = yes; then
16852  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16853
16854
16855echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16856echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16857if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16858  echo $ECHO_N "(cached) $ECHO_C" >&6
16859else
16860  lt_cv_prog_compiler_rtti_exceptions=no
16861  ac_outfile=conftest.$ac_objext
16862   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16863   lt_compiler_flag="-fno-rtti -fno-exceptions"
16864   # Insert the option either (1) after the last *FLAGS variable, or
16865   # (2) before a word containing "conftest.", or (3) at the end.
16866   # Note that $ac_compile itself does not contain backslashes and begins
16867   # with a dollar sign (not a hyphen), so the echo should work correctly.
16868   # The option is referenced via a variable to avoid confusing sed.
16869   lt_compile=`echo "$ac_compile" | $SED \
16870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16872   -e 's:$: $lt_compiler_flag:'`
16873   (eval echo "\"\$as_me:16873: $lt_compile\"" >&5)
16874   (eval "$lt_compile" 2>conftest.err)
16875   ac_status=$?
16876   cat conftest.err >&5
16877   echo "$as_me:16877: \$? = $ac_status" >&5
16878   if (exit $ac_status) && test -s "$ac_outfile"; then
16879     # The compiler can only warn and ignore the option if not recognized
16880     # So say no if there are warnings other than the usual output.
16881     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16882     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16883     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16884       lt_cv_prog_compiler_rtti_exceptions=yes
16885     fi
16886   fi
16887   $rm conftest*
16888
16889fi
16890echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16891echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16892
16893if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16894    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16895else
16896    :
16897fi
16898
16899fi
16900
16901lt_prog_compiler_wl_GCJ=
16902lt_prog_compiler_pic_GCJ=
16903lt_prog_compiler_static_GCJ=
16904
16905echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16906echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16907
16908  if test "$GCC" = yes; then
16909    lt_prog_compiler_wl_GCJ='-Wl,'
16910    lt_prog_compiler_static_GCJ='-static'
16911
16912    case $host_os in
16913      aix*)
16914      # All AIX code is PIC.
16915      if test "$host_cpu" = ia64; then
16916	# AIX 5 now supports IA64 processor
16917	lt_prog_compiler_static_GCJ='-Bstatic'
16918      fi
16919      ;;
16920
16921    amigaos*)
16922      # FIXME: we need at least 68020 code to build shared libraries, but
16923      # adding the `-m68020' flag to GCC prevents building anything better,
16924      # like `-m68040'.
16925      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16926      ;;
16927
16928    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16929      # PIC is the default for these OSes.
16930      ;;
16931
16932    mingw* | pw32* | os2*)
16933      # This hack is so that the source file can tell whether it is being
16934      # built for inclusion in a dll (and should export symbols for example).
16935      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16936      ;;
16937
16938    darwin* | rhapsody*)
16939      # PIC is the default on this platform
16940      # Common symbols not allowed in MH_DYLIB files
16941      lt_prog_compiler_pic_GCJ='-fno-common'
16942      ;;
16943
16944    interix3*)
16945      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16946      # Instead, we relocate shared libraries at runtime.
16947      ;;
16948
16949    msdosdjgpp*)
16950      # Just because we use GCC doesn't mean we suddenly get shared libraries
16951      # on systems that don't support them.
16952      lt_prog_compiler_can_build_shared_GCJ=no
16953      enable_shared=no
16954      ;;
16955
16956    sysv4*MP*)
16957      if test -d /usr/nec; then
16958	lt_prog_compiler_pic_GCJ=-Kconform_pic
16959      fi
16960      ;;
16961
16962    hpux*)
16963      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16964      # not for PA HP-UX.
16965      case $host_cpu in
16966      hppa*64*|ia64*)
16967	# +Z the default
16968	;;
16969      *)
16970	lt_prog_compiler_pic_GCJ='-fPIC'
16971	;;
16972      esac
16973      ;;
16974
16975    *)
16976      lt_prog_compiler_pic_GCJ='-fPIC'
16977      ;;
16978    esac
16979  else
16980    # PORTME Check for flag to pass linker flags through the system compiler.
16981    case $host_os in
16982    aix*)
16983      lt_prog_compiler_wl_GCJ='-Wl,'
16984      if test "$host_cpu" = ia64; then
16985	# AIX 5 now supports IA64 processor
16986	lt_prog_compiler_static_GCJ='-Bstatic'
16987      else
16988	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16989      fi
16990      ;;
16991      darwin*)
16992        # PIC is the default on this platform
16993        # Common symbols not allowed in MH_DYLIB files
16994       case $cc_basename in
16995         xlc*)
16996         lt_prog_compiler_pic_GCJ='-qnocommon'
16997         lt_prog_compiler_wl_GCJ='-Wl,'
16998         ;;
16999       esac
17000       ;;
17001
17002    mingw* | pw32* | os2*)
17003      # This hack is so that the source file can tell whether it is being
17004      # built for inclusion in a dll (and should export symbols for example).
17005      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17006      ;;
17007
17008    hpux9* | hpux10* | hpux11*)
17009      lt_prog_compiler_wl_GCJ='-Wl,'
17010      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17011      # not for PA HP-UX.
17012      case $host_cpu in
17013      hppa*64*|ia64*)
17014	# +Z the default
17015	;;
17016      *)
17017	lt_prog_compiler_pic_GCJ='+Z'
17018	;;
17019      esac
17020      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17021      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17022      ;;
17023
17024    irix5* | irix6* | nonstopux*)
17025      lt_prog_compiler_wl_GCJ='-Wl,'
17026      # PIC (with -KPIC) is the default.
17027      lt_prog_compiler_static_GCJ='-non_shared'
17028      ;;
17029
17030    newsos6)
17031      lt_prog_compiler_pic_GCJ='-KPIC'
17032      lt_prog_compiler_static_GCJ='-Bstatic'
17033      ;;
17034
17035    linux*)
17036      case $cc_basename in
17037      icc* | ecc*)
17038	lt_prog_compiler_wl_GCJ='-Wl,'
17039	lt_prog_compiler_pic_GCJ='-KPIC'
17040	lt_prog_compiler_static_GCJ='-static'
17041        ;;
17042      pgcc* | pgf77* | pgf90* | pgf95*)
17043        # Portland Group compilers (*not* the Pentium gcc compiler,
17044	# which looks to be a dead project)
17045	lt_prog_compiler_wl_GCJ='-Wl,'
17046	lt_prog_compiler_pic_GCJ='-fpic'
17047	lt_prog_compiler_static_GCJ='-Bstatic'
17048        ;;
17049      ccc*)
17050        lt_prog_compiler_wl_GCJ='-Wl,'
17051        # All Alpha code is PIC.
17052        lt_prog_compiler_static_GCJ='-non_shared'
17053        ;;
17054      esac
17055      ;;
17056
17057    osf3* | osf4* | osf5*)
17058      lt_prog_compiler_wl_GCJ='-Wl,'
17059      # All OSF/1 code is PIC.
17060      lt_prog_compiler_static_GCJ='-non_shared'
17061      ;;
17062
17063    solaris*)
17064      lt_prog_compiler_pic_GCJ='-KPIC'
17065      lt_prog_compiler_static_GCJ='-Bstatic'
17066      case $cc_basename in
17067      f77* | f90* | f95*)
17068	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17069      *)
17070	lt_prog_compiler_wl_GCJ='-Wl,';;
17071      esac
17072      ;;
17073
17074    sunos4*)
17075      lt_prog_compiler_wl_GCJ='-Qoption ld '
17076      lt_prog_compiler_pic_GCJ='-PIC'
17077      lt_prog_compiler_static_GCJ='-Bstatic'
17078      ;;
17079
17080    sysv4 | sysv4.2uw2* | sysv4.3*)
17081      lt_prog_compiler_wl_GCJ='-Wl,'
17082      lt_prog_compiler_pic_GCJ='-KPIC'
17083      lt_prog_compiler_static_GCJ='-Bstatic'
17084      ;;
17085
17086    sysv4*MP*)
17087      if test -d /usr/nec ;then
17088	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17089	lt_prog_compiler_static_GCJ='-Bstatic'
17090      fi
17091      ;;
17092
17093    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17094      lt_prog_compiler_wl_GCJ='-Wl,'
17095      lt_prog_compiler_pic_GCJ='-KPIC'
17096      lt_prog_compiler_static_GCJ='-Bstatic'
17097      ;;
17098
17099    unicos*)
17100      lt_prog_compiler_wl_GCJ='-Wl,'
17101      lt_prog_compiler_can_build_shared_GCJ=no
17102      ;;
17103
17104    uts4*)
17105      lt_prog_compiler_pic_GCJ='-pic'
17106      lt_prog_compiler_static_GCJ='-Bstatic'
17107      ;;
17108
17109    *)
17110      lt_prog_compiler_can_build_shared_GCJ=no
17111      ;;
17112    esac
17113  fi
17114
17115echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17116echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17117
17118#
17119# Check to make sure the PIC flag actually works.
17120#
17121if test -n "$lt_prog_compiler_pic_GCJ"; then
17122
17123echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17124echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17125if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17126  echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128  lt_prog_compiler_pic_works_GCJ=no
17129  ac_outfile=conftest.$ac_objext
17130   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17131   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17132   # Insert the option either (1) after the last *FLAGS variable, or
17133   # (2) before a word containing "conftest.", or (3) at the end.
17134   # Note that $ac_compile itself does not contain backslashes and begins
17135   # with a dollar sign (not a hyphen), so the echo should work correctly.
17136   # The option is referenced via a variable to avoid confusing sed.
17137   lt_compile=`echo "$ac_compile" | $SED \
17138   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17139   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17140   -e 's:$: $lt_compiler_flag:'`
17141   (eval echo "\"\$as_me:17141: $lt_compile\"" >&5)
17142   (eval "$lt_compile" 2>conftest.err)
17143   ac_status=$?
17144   cat conftest.err >&5
17145   echo "$as_me:17145: \$? = $ac_status" >&5
17146   if (exit $ac_status) && test -s "$ac_outfile"; then
17147     # The compiler can only warn and ignore the option if not recognized
17148     # So say no if there are warnings other than the usual output.
17149     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17150     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17151     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17152       lt_prog_compiler_pic_works_GCJ=yes
17153     fi
17154   fi
17155   $rm conftest*
17156
17157fi
17158echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17159echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17160
17161if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17162    case $lt_prog_compiler_pic_GCJ in
17163     "" | " "*) ;;
17164     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17165     esac
17166else
17167    lt_prog_compiler_pic_GCJ=
17168     lt_prog_compiler_can_build_shared_GCJ=no
17169fi
17170
17171fi
17172case $host_os in
17173  # For platforms which do not support PIC, -DPIC is meaningless:
17174  *djgpp*)
17175    lt_prog_compiler_pic_GCJ=
17176    ;;
17177  *)
17178    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17179    ;;
17180esac
17181
17182#
17183# Check to make sure the static flag actually works.
17184#
17185wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17186echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17187echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17188if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17189  echo $ECHO_N "(cached) $ECHO_C" >&6
17190else
17191  lt_prog_compiler_static_works_GCJ=no
17192   save_LDFLAGS="$LDFLAGS"
17193   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17194   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17195   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17196     # The linker can only warn and ignore the option if not recognized
17197     # So say no if there are warnings
17198     if test -s conftest.err; then
17199       # Append any errors to the config.log.
17200       cat conftest.err 1>&5
17201       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17202       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17203       if diff conftest.exp conftest.er2 >/dev/null; then
17204         lt_prog_compiler_static_works_GCJ=yes
17205       fi
17206     else
17207       lt_prog_compiler_static_works_GCJ=yes
17208     fi
17209   fi
17210   $rm conftest*
17211   LDFLAGS="$save_LDFLAGS"
17212
17213fi
17214echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17215echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17216
17217if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17218    :
17219else
17220    lt_prog_compiler_static_GCJ=
17221fi
17222
17223
17224echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17225echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17226if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17227  echo $ECHO_N "(cached) $ECHO_C" >&6
17228else
17229  lt_cv_prog_compiler_c_o_GCJ=no
17230   $rm -r conftest 2>/dev/null
17231   mkdir conftest
17232   cd conftest
17233   mkdir out
17234   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17235
17236   lt_compiler_flag="-o out/conftest2.$ac_objext"
17237   # Insert the option either (1) after the last *FLAGS variable, or
17238   # (2) before a word containing "conftest.", or (3) at the end.
17239   # Note that $ac_compile itself does not contain backslashes and begins
17240   # with a dollar sign (not a hyphen), so the echo should work correctly.
17241   lt_compile=`echo "$ac_compile" | $SED \
17242   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17243   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17244   -e 's:$: $lt_compiler_flag:'`
17245   (eval echo "\"\$as_me:17245: $lt_compile\"" >&5)
17246   (eval "$lt_compile" 2>out/conftest.err)
17247   ac_status=$?
17248   cat out/conftest.err >&5
17249   echo "$as_me:17249: \$? = $ac_status" >&5
17250   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17251   then
17252     # The compiler can only warn and ignore the option if not recognized
17253     # So say no if there are warnings
17254     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17255     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17256     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17257       lt_cv_prog_compiler_c_o_GCJ=yes
17258     fi
17259   fi
17260   chmod u+w . 2>&5
17261   $rm conftest*
17262   # SGI C++ compiler will create directory out/ii_files/ for
17263   # template instantiation
17264   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17265   $rm out/* && rmdir out
17266   cd ..
17267   rmdir conftest
17268   $rm conftest*
17269
17270fi
17271echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17272echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17273
17274
17275hard_links="nottested"
17276if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17277  # do not overwrite the value of need_locks provided by the user
17278  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17279echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17280  hard_links=yes
17281  $rm conftest*
17282  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17283  touch conftest.a
17284  ln conftest.a conftest.b 2>&5 || hard_links=no
17285  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17286  echo "$as_me:$LINENO: result: $hard_links" >&5
17287echo "${ECHO_T}$hard_links" >&6
17288  if test "$hard_links" = no; then
17289    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17290echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17291    need_locks=warn
17292  fi
17293else
17294  need_locks=no
17295fi
17296
17297echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17298echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17299
17300  runpath_var=
17301  allow_undefined_flag_GCJ=
17302  enable_shared_with_static_runtimes_GCJ=no
17303  archive_cmds_GCJ=
17304  archive_expsym_cmds_GCJ=
17305  old_archive_From_new_cmds_GCJ=
17306  old_archive_from_expsyms_cmds_GCJ=
17307  export_dynamic_flag_spec_GCJ=
17308  whole_archive_flag_spec_GCJ=
17309  thread_safe_flag_spec_GCJ=
17310  hardcode_libdir_flag_spec_GCJ=
17311  hardcode_libdir_flag_spec_ld_GCJ=
17312  hardcode_libdir_separator_GCJ=
17313  hardcode_direct_GCJ=no
17314  hardcode_minus_L_GCJ=no
17315  hardcode_shlibpath_var_GCJ=unsupported
17316  link_all_deplibs_GCJ=unknown
17317  hardcode_automatic_GCJ=no
17318  module_cmds_GCJ=
17319  module_expsym_cmds_GCJ=
17320  always_export_symbols_GCJ=no
17321  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17322  # include_expsyms should be a list of space-separated symbols to be *always*
17323  # included in the symbol list
17324  include_expsyms_GCJ=
17325  # exclude_expsyms can be an extended regexp of symbols to exclude
17326  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17327  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17328  # as well as any symbol that contains `d'.
17329  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17330  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17331  # platforms (ab)use it in PIC code, but their linkers get confused if
17332  # the symbol is explicitly referenced.  Since portable code cannot
17333  # rely on this symbol name, it's probably fine to never include it in
17334  # preloaded symbol tables.
17335  extract_expsyms_cmds=
17336  # Just being paranoid about ensuring that cc_basename is set.
17337  for cc_temp in $compiler""; do
17338  case $cc_temp in
17339    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17340    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17341    \-*) ;;
17342    *) break;;
17343  esac
17344done
17345cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17346
17347  case $host_os in
17348  cygwin* | mingw* | pw32*)
17349    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17350    # When not using gcc, we currently assume that we are using
17351    # Microsoft Visual C++.
17352    if test "$GCC" != yes; then
17353      with_gnu_ld=no
17354    fi
17355    ;;
17356  interix*)
17357    # we just hope/assume this is gcc and not c89 (= MSVC++)
17358    with_gnu_ld=yes
17359    ;;
17360  openbsd*)
17361    with_gnu_ld=no
17362    ;;
17363  esac
17364
17365  ld_shlibs_GCJ=yes
17366  if test "$with_gnu_ld" = yes; then
17367    # If archive_cmds runs LD, not CC, wlarc should be empty
17368    wlarc='${wl}'
17369
17370    # Set some defaults for GNU ld with shared library support. These
17371    # are reset later if shared libraries are not supported. Putting them
17372    # here allows them to be overridden if necessary.
17373    runpath_var=LD_RUN_PATH
17374    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17375    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17376    # ancient GNU ld didn't support --whole-archive et. al.
17377    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17378	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17379      else
17380  	whole_archive_flag_spec_GCJ=
17381    fi
17382    supports_anon_versioning=no
17383    case `$LD -v 2>/dev/null` in
17384      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17385      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17386      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17387      *\ 2.11.*) ;; # other 2.11 versions
17388      *) supports_anon_versioning=yes ;;
17389    esac
17390
17391    # See if GNU ld supports shared libraries.
17392    case $host_os in
17393    aix3* | aix4* | aix5*)
17394      # On AIX/PPC, the GNU linker is very broken
17395      if test "$host_cpu" != ia64; then
17396	ld_shlibs_GCJ=no
17397	cat <<EOF 1>&2
17398
17399*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17400*** to be unable to reliably create shared libraries on AIX.
17401*** Therefore, libtool is disabling shared libraries support.  If you
17402*** really care for shared libraries, you may want to modify your PATH
17403*** so that a non-GNU linker is found, and then restart.
17404
17405EOF
17406      fi
17407      ;;
17408
17409    amigaos*)
17410      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)'
17411      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17412      hardcode_minus_L_GCJ=yes
17413
17414      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17415      # that the semantics of dynamic libraries on AmigaOS, at least up
17416      # to version 4, is to share data among multiple programs linked
17417      # with the same dynamic library.  Since this doesn't match the
17418      # behavior of shared libraries on other platforms, we can't use
17419      # them.
17420      ld_shlibs_GCJ=no
17421      ;;
17422
17423    beos*)
17424      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17425	allow_undefined_flag_GCJ=unsupported
17426	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17427	# support --undefined.  This deserves some investigation.  FIXME
17428	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17429      else
17430	ld_shlibs_GCJ=no
17431      fi
17432      ;;
17433
17434    cygwin* | mingw* | pw32*)
17435      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17436      # as there is no search path for DLLs.
17437      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17438      allow_undefined_flag_GCJ=unsupported
17439      always_export_symbols_GCJ=no
17440      enable_shared_with_static_runtimes_GCJ=yes
17441      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17442
17443      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17444        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17445	# If the export-symbols file already is a .def file (1st line
17446	# is EXPORTS), use it as is; otherwise, prepend...
17447	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17448	  cp $export_symbols $output_objdir/$soname.def;
17449	else
17450	  echo EXPORTS > $output_objdir/$soname.def;
17451	  cat $export_symbols >> $output_objdir/$soname.def;
17452	fi~
17453	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17454      else
17455	ld_shlibs_GCJ=no
17456      fi
17457      ;;
17458
17459    interix3*)
17460      hardcode_direct_GCJ=no
17461      hardcode_shlibpath_var_GCJ=no
17462      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17463      export_dynamic_flag_spec_GCJ='${wl}-E'
17464      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17465      # Instead, shared libraries are loaded at an image base (0x10000000 by
17466      # default) and relocated if they conflict, which is a slow very memory
17467      # consuming and fragmenting process.  To avoid this, we pick a random,
17468      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17469      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17470      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17471      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17472      ;;
17473
17474    linux*)
17475      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17476	tmp_addflag=
17477	case $cc_basename,$host_cpu in
17478	pgcc*)				# Portland Group C compiler
17479	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17480	  tmp_addflag=' $pic_flag'
17481	  ;;
17482	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17483	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17484	  tmp_addflag=' $pic_flag -Mnomain' ;;
17485	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17486	  tmp_addflag=' -i_dynamic' ;;
17487	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17488	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17489	ifc* | ifort*)			# Intel Fortran compiler
17490	  tmp_addflag=' -nofor_main' ;;
17491	esac
17492	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17493
17494	if test $supports_anon_versioning = yes; then
17495	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17496  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17497  $echo "local: *; };" >> $output_objdir/$libname.ver~
17498	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17499	fi
17500      else
17501	ld_shlibs_GCJ=no
17502      fi
17503      ;;
17504
17505    netbsd*)
17506      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17507	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17508	wlarc=
17509      else
17510	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17511	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17512      fi
17513      ;;
17514
17515    solaris*)
17516      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17517	ld_shlibs_GCJ=no
17518	cat <<EOF 1>&2
17519
17520*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17521*** create shared libraries on Solaris systems.  Therefore, libtool
17522*** is disabling shared libraries support.  We urge you to upgrade GNU
17523*** binutils to release 2.9.1 or newer.  Another option is to modify
17524*** your PATH or compiler configuration so that the native linker is
17525*** used, and then restart.
17526
17527EOF
17528      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17529	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17530	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17531      else
17532	ld_shlibs_GCJ=no
17533      fi
17534      ;;
17535
17536    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17537      case `$LD -v 2>&1` in
17538        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17539	ld_shlibs_GCJ=no
17540	cat <<_LT_EOF 1>&2
17541
17542*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17543*** reliably create shared libraries on SCO systems.  Therefore, libtool
17544*** is disabling shared libraries support.  We urge you to upgrade GNU
17545*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17546*** your PATH or compiler configuration so that the native linker is
17547*** used, and then restart.
17548
17549_LT_EOF
17550	;;
17551	*)
17552	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17553	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17554	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17555	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17556	  else
17557	    ld_shlibs_GCJ=no
17558	  fi
17559	;;
17560      esac
17561      ;;
17562
17563    sunos4*)
17564      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17565      wlarc=
17566      hardcode_direct_GCJ=yes
17567      hardcode_shlibpath_var_GCJ=no
17568      ;;
17569
17570    *)
17571      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17572	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17573	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17574      else
17575	ld_shlibs_GCJ=no
17576      fi
17577      ;;
17578    esac
17579
17580    if test "$ld_shlibs_GCJ" = no; then
17581      runpath_var=
17582      hardcode_libdir_flag_spec_GCJ=
17583      export_dynamic_flag_spec_GCJ=
17584      whole_archive_flag_spec_GCJ=
17585    fi
17586  else
17587    # PORTME fill in a description of your system's linker (not GNU ld)
17588    case $host_os in
17589    aix3*)
17590      allow_undefined_flag_GCJ=unsupported
17591      always_export_symbols_GCJ=yes
17592      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'
17593      # Note: this linker hardcodes the directories in LIBPATH if there
17594      # are no directories specified by -L.
17595      hardcode_minus_L_GCJ=yes
17596      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17597	# Neither direct hardcoding nor static linking is supported with a
17598	# broken collect2.
17599	hardcode_direct_GCJ=unsupported
17600      fi
17601      ;;
17602
17603    aix4* | aix5*)
17604      if test "$host_cpu" = ia64; then
17605	# On IA64, the linker does run time linking by default, so we don't
17606	# have to do anything special.
17607	aix_use_runtimelinking=no
17608	exp_sym_flag='-Bexport'
17609	no_entry_flag=""
17610      else
17611	# If we're using GNU nm, then we don't want the "-C" option.
17612	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17613	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17614	  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'
17615	else
17616	  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'
17617	fi
17618	aix_use_runtimelinking=no
17619
17620	# Test if we are trying to use run time linking or normal
17621	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17622	# need to do runtime linking.
17623	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17624	  for ld_flag in $LDFLAGS; do
17625  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17626  	    aix_use_runtimelinking=yes
17627  	    break
17628  	  fi
17629	  done
17630	  ;;
17631	esac
17632
17633	exp_sym_flag='-bexport'
17634	no_entry_flag='-bnoentry'
17635      fi
17636
17637      # When large executables or shared objects are built, AIX ld can
17638      # have problems creating the table of contents.  If linking a library
17639      # or program results in "error TOC overflow" add -mminimal-toc to
17640      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17641      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17642
17643      archive_cmds_GCJ=''
17644      hardcode_direct_GCJ=yes
17645      hardcode_libdir_separator_GCJ=':'
17646      link_all_deplibs_GCJ=yes
17647
17648      if test "$GCC" = yes; then
17649	case $host_os in aix4.[012]|aix4.[012].*)
17650	# We only want to do this on AIX 4.2 and lower, the check
17651	# below for broken collect2 doesn't work under 4.3+
17652	  collect2name=`${CC} -print-prog-name=collect2`
17653	  if test -f "$collect2name" && \
17654  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17655	  then
17656  	  # We have reworked collect2
17657  	  hardcode_direct_GCJ=yes
17658	  else
17659  	  # We have old collect2
17660  	  hardcode_direct_GCJ=unsupported
17661  	  # It fails to find uninstalled libraries when the uninstalled
17662  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17663  	  # to unsupported forces relinking
17664  	  hardcode_minus_L_GCJ=yes
17665  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17666  	  hardcode_libdir_separator_GCJ=
17667	  fi
17668	  ;;
17669	esac
17670	shared_flag='-shared'
17671	if test "$aix_use_runtimelinking" = yes; then
17672	  shared_flag="$shared_flag "'${wl}-G'
17673	fi
17674      else
17675	# not using gcc
17676	if test "$host_cpu" = ia64; then
17677  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17678  	# chokes on -Wl,-G. The following line is correct:
17679	  shared_flag='-G'
17680	else
17681	  if test "$aix_use_runtimelinking" = yes; then
17682	    shared_flag='${wl}-G'
17683	  else
17684	    shared_flag='${wl}-bM:SRE'
17685	  fi
17686	fi
17687      fi
17688
17689      # It seems that -bexpall does not export symbols beginning with
17690      # underscore (_), so it is better to generate a list of symbols to export.
17691      always_export_symbols_GCJ=yes
17692      if test "$aix_use_runtimelinking" = yes; then
17693	# Warning - without using the other runtime loading flags (-brtl),
17694	# -berok will link without error, but may produce a broken library.
17695	allow_undefined_flag_GCJ='-berok'
17696       # Determine the default libpath from the value encoded in an empty executable.
17697       cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h.  */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h.  */
17703
17704int
17705main ()
17706{
17707
17708  ;
17709  return 0;
17710}
17711_ACEOF
17712rm -f conftest.$ac_objext conftest$ac_exeext
17713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714  (eval $ac_link) 2>conftest.er1
17715  ac_status=$?
17716  grep -v '^ *+' conftest.er1 >conftest.err
17717  rm -f conftest.er1
17718  cat conftest.err >&5
17719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720  (exit $ac_status); } &&
17721	 { ac_try='test -z "$ac_c_werror_flag"
17722			 || test ! -s conftest.err'
17723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724  (eval $ac_try) 2>&5
17725  ac_status=$?
17726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727  (exit $ac_status); }; } &&
17728	 { ac_try='test -s conftest$ac_exeext'
17729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730  (eval $ac_try) 2>&5
17731  ac_status=$?
17732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733  (exit $ac_status); }; }; then
17734
17735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17736}'`
17737# Check for a 64-bit object if we didn't find anything.
17738if 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; }
17739}'`; fi
17740else
17741  echo "$as_me: failed program was:" >&5
17742sed 's/^/| /' conftest.$ac_ext >&5
17743
17744fi
17745rm -f conftest.err conftest.$ac_objext \
17746      conftest$ac_exeext conftest.$ac_ext
17747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17748
17749       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17750	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17751       else
17752	if test "$host_cpu" = ia64; then
17753	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17754	  allow_undefined_flag_GCJ="-z nodefs"
17755	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17756	else
17757	 # Determine the default libpath from the value encoded in an empty executable.
17758	 cat >conftest.$ac_ext <<_ACEOF
17759/* confdefs.h.  */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h.  */
17764
17765int
17766main ()
17767{
17768
17769  ;
17770  return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext conftest$ac_exeext
17774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775  (eval $ac_link) 2>conftest.er1
17776  ac_status=$?
17777  grep -v '^ *+' conftest.er1 >conftest.err
17778  rm -f conftest.er1
17779  cat conftest.err >&5
17780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781  (exit $ac_status); } &&
17782	 { ac_try='test -z "$ac_c_werror_flag"
17783			 || test ! -s conftest.err'
17784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785  (eval $ac_try) 2>&5
17786  ac_status=$?
17787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788  (exit $ac_status); }; } &&
17789	 { ac_try='test -s conftest$ac_exeext'
17790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791  (eval $ac_try) 2>&5
17792  ac_status=$?
17793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794  (exit $ac_status); }; }; then
17795
17796aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17797}'`
17798# Check for a 64-bit object if we didn't find anything.
17799if 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; }
17800}'`; fi
17801else
17802  echo "$as_me: failed program was:" >&5
17803sed 's/^/| /' conftest.$ac_ext >&5
17804
17805fi
17806rm -f conftest.err conftest.$ac_objext \
17807      conftest$ac_exeext conftest.$ac_ext
17808if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17809
17810	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17811	  # Warning - without using the other run time loading flags,
17812	  # -berok will link without error, but may produce a broken library.
17813	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17814	  allow_undefined_flag_GCJ=' ${wl}-berok'
17815	  # Exported symbols can be pulled into shared objects from archives
17816	  whole_archive_flag_spec_GCJ='$convenience'
17817	  archive_cmds_need_lc_GCJ=yes
17818	  # This is similar to how AIX traditionally builds its shared libraries.
17819	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17820	fi
17821      fi
17822      ;;
17823
17824    amigaos*)
17825      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)'
17826      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17827      hardcode_minus_L_GCJ=yes
17828      # see comment about different semantics on the GNU ld section
17829      ld_shlibs_GCJ=no
17830      ;;
17831
17832    bsdi[45]*)
17833      export_dynamic_flag_spec_GCJ=-rdynamic
17834      ;;
17835
17836    cygwin* | mingw* | pw32*)
17837      # When not using gcc, we currently assume that we are using
17838      # Microsoft Visual C++.
17839      # hardcode_libdir_flag_spec is actually meaningless, as there is
17840      # no search path for DLLs.
17841      hardcode_libdir_flag_spec_GCJ=' '
17842      allow_undefined_flag_GCJ=unsupported
17843      # Tell ltmain to make .lib files, not .a files.
17844      libext=lib
17845      # Tell ltmain to make .dll files, not .so files.
17846      shrext_cmds=".dll"
17847      # FIXME: Setting linknames here is a bad hack.
17848      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17849      # The linker will automatically build a .lib file if we build a DLL.
17850      old_archive_From_new_cmds_GCJ='true'
17851      # FIXME: Should let the user specify the lib program.
17852      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17853      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17854      enable_shared_with_static_runtimes_GCJ=yes
17855      ;;
17856
17857    darwin* | rhapsody*)
17858      case $host_os in
17859        rhapsody* | darwin1.[012])
17860         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17861         ;;
17862       *) # Darwin 1.3 on
17863         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17864           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17865         else
17866           case ${MACOSX_DEPLOYMENT_TARGET} in
17867             10.[012])
17868               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17869               ;;
17870             10.*)
17871               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17872               ;;
17873           esac
17874         fi
17875         ;;
17876      esac
17877      archive_cmds_need_lc_GCJ=no
17878      hardcode_direct_GCJ=no
17879      hardcode_automatic_GCJ=yes
17880      hardcode_shlibpath_var_GCJ=unsupported
17881      whole_archive_flag_spec_GCJ=''
17882      link_all_deplibs_GCJ=yes
17883    if test "$GCC" = yes ; then
17884    	output_verbose_link_cmd='echo'
17885        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17886      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17887      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17888      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17889      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}'
17890    else
17891      case $cc_basename in
17892        xlc*)
17893         output_verbose_link_cmd='echo'
17894         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17895         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17896          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17897         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17898          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}'
17899          ;;
17900       *)
17901         ld_shlibs_GCJ=no
17902          ;;
17903      esac
17904    fi
17905      ;;
17906
17907    dgux*)
17908      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17910      hardcode_shlibpath_var_GCJ=no
17911      ;;
17912
17913    freebsd1*)
17914      ld_shlibs_GCJ=no
17915      ;;
17916
17917    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17918    # support.  Future versions do this automatically, but an explicit c++rt0.o
17919    # does not break anything, and helps significantly (at the cost of a little
17920    # extra space).
17921    freebsd2.2*)
17922      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17923      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924      hardcode_direct_GCJ=yes
17925      hardcode_shlibpath_var_GCJ=no
17926      ;;
17927
17928    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17929    freebsd2*)
17930      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17931      hardcode_direct_GCJ=yes
17932      hardcode_minus_L_GCJ=yes
17933      hardcode_shlibpath_var_GCJ=no
17934      ;;
17935
17936    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17937    freebsd* | kfreebsd*-gnu | dragonfly*)
17938      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17939      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17940      hardcode_direct_GCJ=yes
17941      hardcode_shlibpath_var_GCJ=no
17942      ;;
17943
17944    hpux9*)
17945      if test "$GCC" = yes; then
17946	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'
17947      else
17948	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'
17949      fi
17950      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17951      hardcode_libdir_separator_GCJ=:
17952      hardcode_direct_GCJ=yes
17953
17954      # hardcode_minus_L: Not really in the search PATH,
17955      # but as the default location of the library.
17956      hardcode_minus_L_GCJ=yes
17957      export_dynamic_flag_spec_GCJ='${wl}-E'
17958      ;;
17959
17960    hpux10*)
17961      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17962	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17963      else
17964	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17965      fi
17966      if test "$with_gnu_ld" = no; then
17967	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17968	hardcode_libdir_separator_GCJ=:
17969
17970	hardcode_direct_GCJ=yes
17971	export_dynamic_flag_spec_GCJ='${wl}-E'
17972
17973	# hardcode_minus_L: Not really in the search PATH,
17974	# but as the default location of the library.
17975	hardcode_minus_L_GCJ=yes
17976      fi
17977      ;;
17978
17979    hpux11*)
17980      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17981	case $host_cpu in
17982	hppa*64*)
17983	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17984	  ;;
17985	ia64*)
17986	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17987	  ;;
17988	*)
17989	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17990	  ;;
17991	esac
17992      else
17993	case $host_cpu in
17994	hppa*64*)
17995	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17996	  ;;
17997	ia64*)
17998	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17999	  ;;
18000	*)
18001	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18002	  ;;
18003	esac
18004      fi
18005      if test "$with_gnu_ld" = no; then
18006	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18007	hardcode_libdir_separator_GCJ=:
18008
18009	case $host_cpu in
18010	hppa*64*|ia64*)
18011	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18012	  hardcode_direct_GCJ=no
18013	  hardcode_shlibpath_var_GCJ=no
18014	  ;;
18015	*)
18016	  hardcode_direct_GCJ=yes
18017	  export_dynamic_flag_spec_GCJ='${wl}-E'
18018
18019	  # hardcode_minus_L: Not really in the search PATH,
18020	  # but as the default location of the library.
18021	  hardcode_minus_L_GCJ=yes
18022	  ;;
18023	esac
18024      fi
18025      ;;
18026
18027    irix5* | irix6* | nonstopux*)
18028      if test "$GCC" = yes; then
18029	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'
18030      else
18031	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'
18032	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18033      fi
18034      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18035      hardcode_libdir_separator_GCJ=:
18036      link_all_deplibs_GCJ=yes
18037      ;;
18038
18039    netbsd*)
18040      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18041	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18042      else
18043	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18044      fi
18045      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18046      hardcode_direct_GCJ=yes
18047      hardcode_shlibpath_var_GCJ=no
18048      ;;
18049
18050    newsos6)
18051      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052      hardcode_direct_GCJ=yes
18053      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18054      hardcode_libdir_separator_GCJ=:
18055      hardcode_shlibpath_var_GCJ=no
18056      ;;
18057
18058    openbsd*)
18059      hardcode_direct_GCJ=yes
18060      hardcode_shlibpath_var_GCJ=no
18061      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18062	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18063	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18064	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18065	export_dynamic_flag_spec_GCJ='${wl}-E'
18066      else
18067       case $host_os in
18068	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18069	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18070	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18071	   ;;
18072	 *)
18073	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18074	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18075	   ;;
18076       esac
18077      fi
18078      ;;
18079
18080    os2*)
18081      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18082      hardcode_minus_L_GCJ=yes
18083      allow_undefined_flag_GCJ=unsupported
18084      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'
18085      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18086      ;;
18087
18088    osf3*)
18089      if test "$GCC" = yes; then
18090	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18091	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'
18092      else
18093	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18094	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'
18095      fi
18096      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18097      hardcode_libdir_separator_GCJ=:
18098      ;;
18099
18100    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18101      if test "$GCC" = yes; then
18102	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18103	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'
18104	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18105      else
18106	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18107	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'
18108	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~
18109	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18110
18111	# Both c and cxx compiler support -rpath directly
18112	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18113      fi
18114      hardcode_libdir_separator_GCJ=:
18115      ;;
18116
18117    solaris*)
18118      no_undefined_flag_GCJ=' -z text'
18119      if test "$GCC" = yes; then
18120	wlarc='${wl}'
18121	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18122	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18123	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18124      else
18125	wlarc=''
18126	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18127	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18128  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18129      fi
18130      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18131      hardcode_shlibpath_var_GCJ=no
18132      case $host_os in
18133      solaris2.[0-5] | solaris2.[0-5].*) ;;
18134      *)
18135 	# The compiler driver will combine linker options so we
18136 	# cannot just pass the convience library names through
18137 	# without $wl, iff we do not link with $LD.
18138 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18139 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18140 	case $wlarc in
18141 	'')
18142 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18143 	*)
18144 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18145 	esac ;;
18146      esac
18147      link_all_deplibs_GCJ=yes
18148      ;;
18149
18150    sunos4*)
18151      if test "x$host_vendor" = xsequent; then
18152	# Use $CC to link under sequent, because it throws in some extra .o
18153	# files that make .init and .fini sections work.
18154	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18155      else
18156	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18157      fi
18158      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18159      hardcode_direct_GCJ=yes
18160      hardcode_minus_L_GCJ=yes
18161      hardcode_shlibpath_var_GCJ=no
18162      ;;
18163
18164    sysv4)
18165      case $host_vendor in
18166	sni)
18167	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18168	  hardcode_direct_GCJ=yes # is this really true???
18169	;;
18170	siemens)
18171	  ## LD is ld it makes a PLAMLIB
18172	  ## CC just makes a GrossModule.
18173	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18174	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18175	  hardcode_direct_GCJ=no
18176        ;;
18177	motorola)
18178	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18179	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18180	;;
18181      esac
18182      runpath_var='LD_RUN_PATH'
18183      hardcode_shlibpath_var_GCJ=no
18184      ;;
18185
18186    sysv4.3*)
18187      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18188      hardcode_shlibpath_var_GCJ=no
18189      export_dynamic_flag_spec_GCJ='-Bexport'
18190      ;;
18191
18192    sysv4*MP*)
18193      if test -d /usr/nec; then
18194	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18195	hardcode_shlibpath_var_GCJ=no
18196	runpath_var=LD_RUN_PATH
18197	hardcode_runpath_var=yes
18198	ld_shlibs_GCJ=yes
18199      fi
18200      ;;
18201
18202    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18203      no_undefined_flag_GCJ='${wl}-z,text'
18204      archive_cmds_need_lc_GCJ=no
18205      hardcode_shlibpath_var_GCJ=no
18206      runpath_var='LD_RUN_PATH'
18207
18208      if test "$GCC" = yes; then
18209	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18210	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18211      else
18212	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18213	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18214      fi
18215      ;;
18216
18217    sysv5* | sco3.2v5* | sco5v6*)
18218      # Note: We can NOT use -z defs as we might desire, because we do not
18219      # link with -lc, and that would cause any symbols used from libc to
18220      # always be unresolved, which means just about no library would
18221      # ever link correctly.  If we're not using GNU ld we use -z text
18222      # though, which does catch some bad symbols but isn't as heavy-handed
18223      # as -z defs.
18224      no_undefined_flag_GCJ='${wl}-z,text'
18225      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18226      archive_cmds_need_lc_GCJ=no
18227      hardcode_shlibpath_var_GCJ=no
18228      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18229      hardcode_libdir_separator_GCJ=':'
18230      link_all_deplibs_GCJ=yes
18231      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18232      runpath_var='LD_RUN_PATH'
18233
18234      if test "$GCC" = yes; then
18235	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18236	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18237      else
18238	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18239	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18240      fi
18241      ;;
18242
18243    uts4*)
18244      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18246      hardcode_shlibpath_var_GCJ=no
18247      ;;
18248
18249    *)
18250      ld_shlibs_GCJ=no
18251      ;;
18252    esac
18253  fi
18254
18255echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18256echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18257test "$ld_shlibs_GCJ" = no && can_build_shared=no
18258
18259#
18260# Do we need to explicitly link libc?
18261#
18262case "x$archive_cmds_need_lc_GCJ" in
18263x|xyes)
18264  # Assume -lc should be added
18265  archive_cmds_need_lc_GCJ=yes
18266
18267  if test "$enable_shared" = yes && test "$GCC" = yes; then
18268    case $archive_cmds_GCJ in
18269    *'~'*)
18270      # FIXME: we may have to deal with multi-command sequences.
18271      ;;
18272    '$CC '*)
18273      # Test whether the compiler implicitly links with -lc since on some
18274      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18275      # to ld, don't add -lc before -lgcc.
18276      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18277echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18278      $rm conftest*
18279      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18280
18281      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18282  (eval $ac_compile) 2>&5
18283  ac_status=$?
18284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285  (exit $ac_status); } 2>conftest.err; then
18286        soname=conftest
18287        lib=conftest
18288        libobjs=conftest.$ac_objext
18289        deplibs=
18290        wl=$lt_prog_compiler_wl_GCJ
18291	pic_flag=$lt_prog_compiler_pic_GCJ
18292        compiler_flags=-v
18293        linker_flags=-v
18294        verstring=
18295        output_objdir=.
18296        libname=conftest
18297        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18298        allow_undefined_flag_GCJ=
18299        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18300  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18301  ac_status=$?
18302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303  (exit $ac_status); }
18304        then
18305	  archive_cmds_need_lc_GCJ=no
18306        else
18307	  archive_cmds_need_lc_GCJ=yes
18308        fi
18309        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18310      else
18311        cat conftest.err 1>&5
18312      fi
18313      $rm conftest*
18314      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18315echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18316      ;;
18317    esac
18318  fi
18319  ;;
18320esac
18321
18322echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18323echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18324library_names_spec=
18325libname_spec='lib$name'
18326soname_spec=
18327shrext_cmds=".so"
18328postinstall_cmds=
18329postuninstall_cmds=
18330finish_cmds=
18331finish_eval=
18332shlibpath_var=
18333shlibpath_overrides_runpath=unknown
18334version_type=none
18335dynamic_linker="$host_os ld.so"
18336sys_lib_dlsearch_path_spec="/lib /usr/lib"
18337if test "$GCC" = yes; then
18338  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18339  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18340    # if the path contains ";" then we assume it to be the separator
18341    # otherwise default to the standard path separator (i.e. ":") - it is
18342    # assumed that no part of a normal pathname contains ";" but that should
18343    # okay in the real world where ";" in dirpaths is itself problematic.
18344    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18345  else
18346    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18347  fi
18348else
18349  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18350fi
18351need_lib_prefix=unknown
18352hardcode_into_libs=no
18353
18354# when you set need_version to no, make sure it does not cause -set_version
18355# flags to be left without arguments
18356need_version=unknown
18357
18358case $host_os in
18359aix3*)
18360  version_type=linux
18361  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18362  shlibpath_var=LIBPATH
18363
18364  # AIX 3 has no versioning support, so we append a major version to the name.
18365  soname_spec='${libname}${release}${shared_ext}$major'
18366  ;;
18367
18368aix4* | aix5*)
18369  version_type=linux
18370  need_lib_prefix=no
18371  need_version=no
18372  hardcode_into_libs=yes
18373  if test "$host_cpu" = ia64; then
18374    # AIX 5 supports IA64
18375    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18376    shlibpath_var=LD_LIBRARY_PATH
18377  else
18378    # With GCC up to 2.95.x, collect2 would create an import file
18379    # for dependence libraries.  The import file would start with
18380    # the line `#! .'.  This would cause the generated library to
18381    # depend on `.', always an invalid library.  This was fixed in
18382    # development snapshots of GCC prior to 3.0.
18383    case $host_os in
18384      aix4 | aix4.[01] | aix4.[01].*)
18385      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18386	   echo ' yes '
18387	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18388	:
18389      else
18390	can_build_shared=no
18391      fi
18392      ;;
18393    esac
18394    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18395    # soname into executable. Probably we can add versioning support to
18396    # collect2, so additional links can be useful in future.
18397    if test "$aix_use_runtimelinking" = yes; then
18398      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18399      # instead of lib<name>.a to let people know that these are not
18400      # typical AIX shared libraries.
18401      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18402    else
18403      # We preserve .a as extension for shared libraries through AIX4.2
18404      # and later when we are not doing run time linking.
18405      library_names_spec='${libname}${release}.a $libname.a'
18406      soname_spec='${libname}${release}${shared_ext}$major'
18407    fi
18408    shlibpath_var=LIBPATH
18409  fi
18410  ;;
18411
18412amigaos*)
18413  library_names_spec='$libname.ixlibrary $libname.a'
18414  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18415  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'
18416  ;;
18417
18418beos*)
18419  library_names_spec='${libname}${shared_ext}'
18420  dynamic_linker="$host_os ld.so"
18421  shlibpath_var=LIBRARY_PATH
18422  ;;
18423
18424bsdi[45]*)
18425  version_type=linux
18426  need_version=no
18427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428  soname_spec='${libname}${release}${shared_ext}$major'
18429  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18430  shlibpath_var=LD_LIBRARY_PATH
18431  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18432  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18433  # the default ld.so.conf also contains /usr/contrib/lib and
18434  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18435  # libtool to hard-code these into programs
18436  ;;
18437
18438cygwin* | mingw* | pw32*)
18439  version_type=windows
18440  shrext_cmds=".dll"
18441  need_version=no
18442  need_lib_prefix=no
18443
18444  case $GCC,$host_os in
18445  yes,cygwin* | yes,mingw* | yes,pw32*)
18446    library_names_spec='$libname.dll.a'
18447    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18448    postinstall_cmds='base_file=`basename \${file}`~
18449      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18450      dldir=$destdir/`dirname \$dlpath`~
18451      test -d \$dldir || mkdir -p \$dldir~
18452      $install_prog $dir/$dlname \$dldir/$dlname~
18453      chmod a+x \$dldir/$dlname'
18454    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18455      dlpath=$dir/\$dldll~
18456       $rm \$dlpath'
18457    shlibpath_overrides_runpath=yes
18458
18459    case $host_os in
18460    cygwin*)
18461      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18462      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18463      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18464      ;;
18465    mingw*)
18466      # MinGW DLLs use traditional 'lib' prefix
18467      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18468      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18469      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18470        # It is most probably a Windows format PATH printed by
18471        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18472        # path with ; separators, and with drive letters. We can handle the
18473        # drive letters (cygwin fileutils understands them), so leave them,
18474        # especially as we might pass files found there to a mingw objdump,
18475        # which wouldn't understand a cygwinified path. Ahh.
18476        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18477      else
18478        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18479      fi
18480      ;;
18481    pw32*)
18482      # pw32 DLLs use 'pw' prefix rather than 'lib'
18483      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18484      ;;
18485    esac
18486    ;;
18487
18488  *)
18489    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18490    ;;
18491  esac
18492  dynamic_linker='Win32 ld.exe'
18493  # FIXME: first we should search . and the directory the executable is in
18494  shlibpath_var=PATH
18495  ;;
18496
18497darwin* | rhapsody*)
18498  dynamic_linker="$host_os dyld"
18499  version_type=darwin
18500  need_lib_prefix=no
18501  need_version=no
18502  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18503  soname_spec='${libname}${release}${major}$shared_ext'
18504  shlibpath_overrides_runpath=yes
18505  shlibpath_var=DYLD_LIBRARY_PATH
18506  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18507  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18508  if test "$GCC" = yes; then
18509    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"`
18510  else
18511    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18512  fi
18513  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18514  ;;
18515
18516dgux*)
18517  version_type=linux
18518  need_lib_prefix=no
18519  need_version=no
18520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18521  soname_spec='${libname}${release}${shared_ext}$major'
18522  shlibpath_var=LD_LIBRARY_PATH
18523  ;;
18524
18525freebsd1*)
18526  dynamic_linker=no
18527  ;;
18528
18529kfreebsd*-gnu)
18530  version_type=linux
18531  need_lib_prefix=no
18532  need_version=no
18533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18534  soname_spec='${libname}${release}${shared_ext}$major'
18535  shlibpath_var=LD_LIBRARY_PATH
18536  shlibpath_overrides_runpath=no
18537  hardcode_into_libs=yes
18538  dynamic_linker='GNU ld.so'
18539  ;;
18540
18541freebsd* | dragonfly*)
18542  # DragonFly does not have aout.  When/if they implement a new
18543  # versioning mechanism, adjust this.
18544  if test -x /usr/bin/objformat; then
18545    objformat=`/usr/bin/objformat`
18546  else
18547    case $host_os in
18548    freebsd[123]*) objformat=aout ;;
18549    *) objformat=elf ;;
18550    esac
18551  fi
18552  version_type=freebsd-$objformat
18553  case $version_type in
18554    freebsd-elf*)
18555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18556      need_version=no
18557      need_lib_prefix=no
18558      ;;
18559    freebsd-*)
18560      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18561      need_version=yes
18562      ;;
18563  esac
18564  shlibpath_var=LD_LIBRARY_PATH
18565  case $host_os in
18566  freebsd2*)
18567    shlibpath_overrides_runpath=yes
18568    ;;
18569  freebsd3.[01]* | freebsdelf3.[01]*)
18570    shlibpath_overrides_runpath=yes
18571    hardcode_into_libs=yes
18572    ;;
18573  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18574  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18575    shlibpath_overrides_runpath=no
18576    hardcode_into_libs=yes
18577    ;;
18578  freebsd*) # from 4.6 on
18579    shlibpath_overrides_runpath=yes
18580    hardcode_into_libs=yes
18581    ;;
18582  esac
18583  ;;
18584
18585gnu*)
18586  version_type=linux
18587  need_lib_prefix=no
18588  need_version=no
18589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18590  soname_spec='${libname}${release}${shared_ext}$major'
18591  shlibpath_var=LD_LIBRARY_PATH
18592  hardcode_into_libs=yes
18593  ;;
18594
18595hpux9* | hpux10* | hpux11*)
18596  # Give a soname corresponding to the major version so that dld.sl refuses to
18597  # link against other versions.
18598  version_type=sunos
18599  need_lib_prefix=no
18600  need_version=no
18601  case $host_cpu in
18602  ia64*)
18603    shrext_cmds='.so'
18604    hardcode_into_libs=yes
18605    dynamic_linker="$host_os dld.so"
18606    shlibpath_var=LD_LIBRARY_PATH
18607    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609    soname_spec='${libname}${release}${shared_ext}$major'
18610    if test "X$HPUX_IA64_MODE" = X32; then
18611      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18612    else
18613      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18614    fi
18615    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18616    ;;
18617   hppa*64*)
18618     shrext_cmds='.sl'
18619     hardcode_into_libs=yes
18620     dynamic_linker="$host_os dld.sl"
18621     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18622     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624     soname_spec='${libname}${release}${shared_ext}$major'
18625     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18626     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18627     ;;
18628   *)
18629    shrext_cmds='.sl'
18630    dynamic_linker="$host_os dld.sl"
18631    shlibpath_var=SHLIB_PATH
18632    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18633    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18634    soname_spec='${libname}${release}${shared_ext}$major'
18635    ;;
18636  esac
18637  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18638  postinstall_cmds='chmod 555 $lib'
18639  ;;
18640
18641interix3*)
18642  version_type=linux
18643  need_lib_prefix=no
18644  need_version=no
18645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18646  soname_spec='${libname}${release}${shared_ext}$major'
18647  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18648  shlibpath_var=LD_LIBRARY_PATH
18649  shlibpath_overrides_runpath=no
18650  hardcode_into_libs=yes
18651  ;;
18652
18653irix5* | irix6* | nonstopux*)
18654  case $host_os in
18655    nonstopux*) version_type=nonstopux ;;
18656    *)
18657	if test "$lt_cv_prog_gnu_ld" = yes; then
18658		version_type=linux
18659	else
18660		version_type=irix
18661	fi ;;
18662  esac
18663  need_lib_prefix=no
18664  need_version=no
18665  soname_spec='${libname}${release}${shared_ext}$major'
18666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18667  case $host_os in
18668  irix5* | nonstopux*)
18669    libsuff= shlibsuff=
18670    ;;
18671  *)
18672    case $LD in # libtool.m4 will add one of these switches to LD
18673    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18674      libsuff= shlibsuff= libmagic=32-bit;;
18675    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18676      libsuff=32 shlibsuff=N32 libmagic=N32;;
18677    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18678      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18679    *) libsuff= shlibsuff= libmagic=never-match;;
18680    esac
18681    ;;
18682  esac
18683  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18684  shlibpath_overrides_runpath=no
18685  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18686  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18687  hardcode_into_libs=yes
18688  ;;
18689
18690# No shared lib support for Linux oldld, aout, or coff.
18691linux*oldld* | linux*aout* | linux*coff*)
18692  dynamic_linker=no
18693  ;;
18694
18695# This must be Linux ELF.
18696linux*)
18697  version_type=linux
18698  need_lib_prefix=no
18699  need_version=no
18700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18701  soname_spec='${libname}${release}${shared_ext}$major'
18702  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18703  shlibpath_var=LD_LIBRARY_PATH
18704  shlibpath_overrides_runpath=no
18705  # This implies no fast_install, which is unacceptable.
18706  # Some rework will be needed to allow for fast_install
18707  # before this can be enabled.
18708  hardcode_into_libs=yes
18709
18710  # find out which ABI we are using
18711  libsuff=
18712  case "$host_cpu" in
18713  x86_64*|s390x*|powerpc64*)
18714    echo '#line 18714 "configure"' > conftest.$ac_ext
18715    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716  (eval $ac_compile) 2>&5
18717  ac_status=$?
18718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719  (exit $ac_status); }; then
18720      case `/usr/bin/file conftest.$ac_objext` in
18721      *64-bit*)
18722        libsuff=64
18723        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18724        ;;
18725      esac
18726    fi
18727    rm -rf conftest*
18728    ;;
18729  esac
18730
18731  # Append ld.so.conf contents to the search path
18732  if test -f /etc/ld.so.conf; then
18733    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18734    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18735  fi
18736
18737  # We used to test for /lib/ld.so.1 and disable shared libraries on
18738  # powerpc, because MkLinux only supported shared libraries with the
18739  # GNU dynamic linker.  Since this was broken with cross compilers,
18740  # most powerpc-linux boxes support dynamic linking these days and
18741  # people can always --disable-shared, the test was removed, and we
18742  # assume the GNU/Linux dynamic linker is in use.
18743  dynamic_linker='GNU/Linux ld.so'
18744  ;;
18745
18746knetbsd*-gnu)
18747  version_type=linux
18748  need_lib_prefix=no
18749  need_version=no
18750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751  soname_spec='${libname}${release}${shared_ext}$major'
18752  shlibpath_var=LD_LIBRARY_PATH
18753  shlibpath_overrides_runpath=no
18754  hardcode_into_libs=yes
18755  dynamic_linker='GNU ld.so'
18756  ;;
18757
18758netbsd*)
18759  version_type=sunos
18760  need_lib_prefix=no
18761  need_version=no
18762  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18763    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18765    dynamic_linker='NetBSD (a.out) ld.so'
18766  else
18767    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18768    soname_spec='${libname}${release}${shared_ext}$major'
18769    dynamic_linker='NetBSD ld.elf_so'
18770  fi
18771  shlibpath_var=LD_LIBRARY_PATH
18772  shlibpath_overrides_runpath=yes
18773  hardcode_into_libs=yes
18774  ;;
18775
18776newsos6)
18777  version_type=linux
18778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779  shlibpath_var=LD_LIBRARY_PATH
18780  shlibpath_overrides_runpath=yes
18781  ;;
18782
18783nto-qnx*)
18784  version_type=linux
18785  need_lib_prefix=no
18786  need_version=no
18787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788  soname_spec='${libname}${release}${shared_ext}$major'
18789  shlibpath_var=LD_LIBRARY_PATH
18790  shlibpath_overrides_runpath=yes
18791  ;;
18792
18793openbsd*)
18794  version_type=sunos
18795  sys_lib_dlsearch_path_spec="/usr/lib"
18796  need_lib_prefix=no
18797  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18798  case $host_os in
18799    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18800    *)                         need_version=no  ;;
18801  esac
18802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18803  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18804  shlibpath_var=LD_LIBRARY_PATH
18805  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18806    case $host_os in
18807      openbsd2.[89] | openbsd2.[89].*)
18808	shlibpath_overrides_runpath=no
18809	;;
18810      *)
18811	shlibpath_overrides_runpath=yes
18812	;;
18813      esac
18814  else
18815    shlibpath_overrides_runpath=yes
18816  fi
18817  ;;
18818
18819os2*)
18820  libname_spec='$name'
18821  shrext_cmds=".dll"
18822  need_lib_prefix=no
18823  library_names_spec='$libname${shared_ext} $libname.a'
18824  dynamic_linker='OS/2 ld.exe'
18825  shlibpath_var=LIBPATH
18826  ;;
18827
18828osf3* | osf4* | osf5*)
18829  version_type=osf
18830  need_lib_prefix=no
18831  need_version=no
18832  soname_spec='${libname}${release}${shared_ext}$major'
18833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18834  shlibpath_var=LD_LIBRARY_PATH
18835  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18836  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18837  ;;
18838
18839solaris*)
18840  version_type=linux
18841  need_lib_prefix=no
18842  need_version=no
18843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18844  soname_spec='${libname}${release}${shared_ext}$major'
18845  shlibpath_var=LD_LIBRARY_PATH
18846  shlibpath_overrides_runpath=yes
18847  hardcode_into_libs=yes
18848  # ldd complains unless libraries are executable
18849  postinstall_cmds='chmod +x $lib'
18850  ;;
18851
18852sunos4*)
18853  version_type=sunos
18854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18855  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18856  shlibpath_var=LD_LIBRARY_PATH
18857  shlibpath_overrides_runpath=yes
18858  if test "$with_gnu_ld" = yes; then
18859    need_lib_prefix=no
18860  fi
18861  need_version=yes
18862  ;;
18863
18864sysv4 | sysv4.3*)
18865  version_type=linux
18866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867  soname_spec='${libname}${release}${shared_ext}$major'
18868  shlibpath_var=LD_LIBRARY_PATH
18869  case $host_vendor in
18870    sni)
18871      shlibpath_overrides_runpath=no
18872      need_lib_prefix=no
18873      export_dynamic_flag_spec='${wl}-Blargedynsym'
18874      runpath_var=LD_RUN_PATH
18875      ;;
18876    siemens)
18877      need_lib_prefix=no
18878      ;;
18879    motorola)
18880      need_lib_prefix=no
18881      need_version=no
18882      shlibpath_overrides_runpath=no
18883      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18884      ;;
18885  esac
18886  ;;
18887
18888sysv4*MP*)
18889  if test -d /usr/nec ;then
18890    version_type=linux
18891    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18892    soname_spec='$libname${shared_ext}.$major'
18893    shlibpath_var=LD_LIBRARY_PATH
18894  fi
18895  ;;
18896
18897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18898  version_type=freebsd-elf
18899  need_lib_prefix=no
18900  need_version=no
18901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18902  soname_spec='${libname}${release}${shared_ext}$major'
18903  shlibpath_var=LD_LIBRARY_PATH
18904  hardcode_into_libs=yes
18905  if test "$with_gnu_ld" = yes; then
18906    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18907    shlibpath_overrides_runpath=no
18908  else
18909    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18910    shlibpath_overrides_runpath=yes
18911    case $host_os in
18912      sco3.2v5*)
18913        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18914	;;
18915    esac
18916  fi
18917  sys_lib_dlsearch_path_spec='/usr/lib'
18918  ;;
18919
18920uts4*)
18921  version_type=linux
18922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18923  soname_spec='${libname}${release}${shared_ext}$major'
18924  shlibpath_var=LD_LIBRARY_PATH
18925  ;;
18926
18927*)
18928  dynamic_linker=no
18929  ;;
18930esac
18931echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18932echo "${ECHO_T}$dynamic_linker" >&6
18933test "$dynamic_linker" = no && can_build_shared=no
18934
18935variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18936if test "$GCC" = yes; then
18937  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18938fi
18939
18940echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18941echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18942hardcode_action_GCJ=
18943if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18944   test -n "$runpath_var_GCJ" || \
18945   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18946
18947  # We can hardcode non-existant directories.
18948  if test "$hardcode_direct_GCJ" != no &&
18949     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18950     # have to relink, otherwise we might link with an installed library
18951     # when we should be linking with a yet-to-be-installed one
18952     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18953     test "$hardcode_minus_L_GCJ" != no; then
18954    # Linking always hardcodes the temporary library directory.
18955    hardcode_action_GCJ=relink
18956  else
18957    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18958    hardcode_action_GCJ=immediate
18959  fi
18960else
18961  # We cannot hardcode anything, or else we can only hardcode existing
18962  # directories.
18963  hardcode_action_GCJ=unsupported
18964fi
18965echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18966echo "${ECHO_T}$hardcode_action_GCJ" >&6
18967
18968if test "$hardcode_action_GCJ" = relink; then
18969  # Fast installation is not supported
18970  enable_fast_install=no
18971elif test "$shlibpath_overrides_runpath" = yes ||
18972     test "$enable_shared" = no; then
18973  # Fast installation is not necessary
18974  enable_fast_install=needless
18975fi
18976
18977
18978# The else clause should only fire when bootstrapping the
18979# libtool distribution, otherwise you forgot to ship ltmain.sh
18980# with your package, and you will get complaints that there are
18981# no rules to generate ltmain.sh.
18982if test -f "$ltmain"; then
18983  # See if we are running on zsh, and set the options which allow our commands through
18984  # without removal of \ escapes.
18985  if test -n "${ZSH_VERSION+set}" ; then
18986    setopt NO_GLOB_SUBST
18987  fi
18988  # Now quote all the things that may contain metacharacters while being
18989  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18990  # variables and quote the copies for generation of the libtool script.
18991  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18992    SED SHELL STRIP \
18993    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18994    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18995    deplibs_check_method reload_flag reload_cmds need_locks \
18996    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18997    lt_cv_sys_global_symbol_to_c_name_address \
18998    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18999    old_postinstall_cmds old_postuninstall_cmds \
19000    compiler_GCJ \
19001    CC_GCJ \
19002    LD_GCJ \
19003    lt_prog_compiler_wl_GCJ \
19004    lt_prog_compiler_pic_GCJ \
19005    lt_prog_compiler_static_GCJ \
19006    lt_prog_compiler_no_builtin_flag_GCJ \
19007    export_dynamic_flag_spec_GCJ \
19008    thread_safe_flag_spec_GCJ \
19009    whole_archive_flag_spec_GCJ \
19010    enable_shared_with_static_runtimes_GCJ \
19011    old_archive_cmds_GCJ \
19012    old_archive_from_new_cmds_GCJ \
19013    predep_objects_GCJ \
19014    postdep_objects_GCJ \
19015    predeps_GCJ \
19016    postdeps_GCJ \
19017    compiler_lib_search_path_GCJ \
19018    archive_cmds_GCJ \
19019    archive_expsym_cmds_GCJ \
19020    postinstall_cmds_GCJ \
19021    postuninstall_cmds_GCJ \
19022    old_archive_from_expsyms_cmds_GCJ \
19023    allow_undefined_flag_GCJ \
19024    no_undefined_flag_GCJ \
19025    export_symbols_cmds_GCJ \
19026    hardcode_libdir_flag_spec_GCJ \
19027    hardcode_libdir_flag_spec_ld_GCJ \
19028    hardcode_libdir_separator_GCJ \
19029    hardcode_automatic_GCJ \
19030    module_cmds_GCJ \
19031    module_expsym_cmds_GCJ \
19032    lt_cv_prog_compiler_c_o_GCJ \
19033    exclude_expsyms_GCJ \
19034    include_expsyms_GCJ; do
19035
19036    case $var in
19037    old_archive_cmds_GCJ | \
19038    old_archive_from_new_cmds_GCJ | \
19039    archive_cmds_GCJ | \
19040    archive_expsym_cmds_GCJ | \
19041    module_cmds_GCJ | \
19042    module_expsym_cmds_GCJ | \
19043    old_archive_from_expsyms_cmds_GCJ | \
19044    export_symbols_cmds_GCJ | \
19045    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19046    postinstall_cmds | postuninstall_cmds | \
19047    old_postinstall_cmds | old_postuninstall_cmds | \
19048    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19049      # Double-quote double-evaled strings.
19050      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19051      ;;
19052    *)
19053      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19054      ;;
19055    esac
19056  done
19057
19058  case $lt_echo in
19059  *'\$0 --fallback-echo"')
19060    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19061    ;;
19062  esac
19063
19064cfgfile="$ofile"
19065
19066  cat <<__EOF__ >> "$cfgfile"
19067# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19068
19069# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19070
19071# Shell to use when invoking shell scripts.
19072SHELL=$lt_SHELL
19073
19074# Whether or not to build shared libraries.
19075build_libtool_libs=$enable_shared
19076
19077# Whether or not to build static libraries.
19078build_old_libs=$enable_static
19079
19080# Whether or not to add -lc for building shared libraries.
19081build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19082
19083# Whether or not to disallow shared libs when runtime libs are static
19084allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19085
19086# Whether or not to optimize for fast installation.
19087fast_install=$enable_fast_install
19088
19089# The host system.
19090host_alias=$host_alias
19091host=$host
19092host_os=$host_os
19093
19094# The build system.
19095build_alias=$build_alias
19096build=$build
19097build_os=$build_os
19098
19099# An echo program that does not interpret backslashes.
19100echo=$lt_echo
19101
19102# The archiver.
19103AR=$lt_AR
19104AR_FLAGS=$lt_AR_FLAGS
19105
19106# A C compiler.
19107LTCC=$lt_LTCC
19108
19109# LTCC compiler flags.
19110LTCFLAGS=$lt_LTCFLAGS
19111
19112# A language-specific compiler.
19113CC=$lt_compiler_GCJ
19114
19115# Is the compiler the GNU C compiler?
19116with_gcc=$GCC_GCJ
19117
19118# An ERE matcher.
19119EGREP=$lt_EGREP
19120
19121# The linker used to build libraries.
19122LD=$lt_LD_GCJ
19123
19124# Whether we need hard or soft links.
19125LN_S=$lt_LN_S
19126
19127# A BSD-compatible nm program.
19128NM=$lt_NM
19129
19130# A symbol stripping program
19131STRIP=$lt_STRIP
19132
19133# Used to examine libraries when file_magic_cmd begins "file"
19134MAGIC_CMD=$MAGIC_CMD
19135
19136# Used on cygwin: DLL creation program.
19137DLLTOOL="$DLLTOOL"
19138
19139# Used on cygwin: object dumper.
19140OBJDUMP="$OBJDUMP"
19141
19142# Used on cygwin: assembler.
19143AS="$AS"
19144
19145# The name of the directory that contains temporary libtool files.
19146objdir=$objdir
19147
19148# How to create reloadable object files.
19149reload_flag=$lt_reload_flag
19150reload_cmds=$lt_reload_cmds
19151
19152# How to pass a linker flag through the compiler.
19153wl=$lt_lt_prog_compiler_wl_GCJ
19154
19155# Object file suffix (normally "o").
19156objext="$ac_objext"
19157
19158# Old archive suffix (normally "a").
19159libext="$libext"
19160
19161# Shared library suffix (normally ".so").
19162shrext_cmds='$shrext_cmds'
19163
19164# Executable file suffix (normally "").
19165exeext="$exeext"
19166
19167# Additional compiler flags for building library objects.
19168pic_flag=$lt_lt_prog_compiler_pic_GCJ
19169pic_mode=$pic_mode
19170
19171# What is the maximum length of a command?
19172max_cmd_len=$lt_cv_sys_max_cmd_len
19173
19174# Does compiler simultaneously support -c and -o options?
19175compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19176
19177# Must we lock files when doing compilation?
19178need_locks=$lt_need_locks
19179
19180# Do we need the lib prefix for modules?
19181need_lib_prefix=$need_lib_prefix
19182
19183# Do we need a version for libraries?
19184need_version=$need_version
19185
19186# Whether dlopen is supported.
19187dlopen_support=$enable_dlopen
19188
19189# Whether dlopen of programs is supported.
19190dlopen_self=$enable_dlopen_self
19191
19192# Whether dlopen of statically linked programs is supported.
19193dlopen_self_static=$enable_dlopen_self_static
19194
19195# Compiler flag to prevent dynamic linking.
19196link_static_flag=$lt_lt_prog_compiler_static_GCJ
19197
19198# Compiler flag to turn off builtin functions.
19199no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19200
19201# Compiler flag to allow reflexive dlopens.
19202export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19203
19204# Compiler flag to generate shared objects directly from archives.
19205whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19206
19207# Compiler flag to generate thread-safe objects.
19208thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19209
19210# Library versioning type.
19211version_type=$version_type
19212
19213# Format of library name prefix.
19214libname_spec=$lt_libname_spec
19215
19216# List of archive names.  First name is the real one, the rest are links.
19217# The last name is the one that the linker finds with -lNAME.
19218library_names_spec=$lt_library_names_spec
19219
19220# The coded name of the library, if different from the real name.
19221soname_spec=$lt_soname_spec
19222
19223# Commands used to build and install an old-style archive.
19224RANLIB=$lt_RANLIB
19225old_archive_cmds=$lt_old_archive_cmds_GCJ
19226old_postinstall_cmds=$lt_old_postinstall_cmds
19227old_postuninstall_cmds=$lt_old_postuninstall_cmds
19228
19229# Create an old-style archive from a shared archive.
19230old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19231
19232# Create a temporary old-style archive to link instead of a shared archive.
19233old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19234
19235# Commands used to build and install a shared archive.
19236archive_cmds=$lt_archive_cmds_GCJ
19237archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19238postinstall_cmds=$lt_postinstall_cmds
19239postuninstall_cmds=$lt_postuninstall_cmds
19240
19241# Commands used to build a loadable module (assumed same as above if empty)
19242module_cmds=$lt_module_cmds_GCJ
19243module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19244
19245# Commands to strip libraries.
19246old_striplib=$lt_old_striplib
19247striplib=$lt_striplib
19248
19249# Dependencies to place before the objects being linked to create a
19250# shared library.
19251predep_objects=$lt_predep_objects_GCJ
19252
19253# Dependencies to place after the objects being linked to create a
19254# shared library.
19255postdep_objects=$lt_postdep_objects_GCJ
19256
19257# Dependencies to place before the objects being linked to create a
19258# shared library.
19259predeps=$lt_predeps_GCJ
19260
19261# Dependencies to place after the objects being linked to create a
19262# shared library.
19263postdeps=$lt_postdeps_GCJ
19264
19265# The library search path used internally by the compiler when linking
19266# a shared library.
19267compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19268
19269# Method to check whether dependent libraries are shared objects.
19270deplibs_check_method=$lt_deplibs_check_method
19271
19272# Command to use when deplibs_check_method == file_magic.
19273file_magic_cmd=$lt_file_magic_cmd
19274
19275# Flag that allows shared libraries with undefined symbols to be built.
19276allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19277
19278# Flag that forces no undefined symbols.
19279no_undefined_flag=$lt_no_undefined_flag_GCJ
19280
19281# Commands used to finish a libtool library installation in a directory.
19282finish_cmds=$lt_finish_cmds
19283
19284# Same as above, but a single script fragment to be evaled but not shown.
19285finish_eval=$lt_finish_eval
19286
19287# Take the output of nm and produce a listing of raw symbols and C names.
19288global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19289
19290# Transform the output of nm in a proper C declaration
19291global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19292
19293# Transform the output of nm in a C name address pair
19294global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19295
19296# This is the shared library runtime path variable.
19297runpath_var=$runpath_var
19298
19299# This is the shared library path variable.
19300shlibpath_var=$shlibpath_var
19301
19302# Is shlibpath searched before the hard-coded library search path?
19303shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19304
19305# How to hardcode a shared library path into an executable.
19306hardcode_action=$hardcode_action_GCJ
19307
19308# Whether we should hardcode library paths into libraries.
19309hardcode_into_libs=$hardcode_into_libs
19310
19311# Flag to hardcode \$libdir into a binary during linking.
19312# This must work even if \$libdir does not exist.
19313hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19314
19315# If ld is used when linking, flag to hardcode \$libdir into
19316# a binary during linking. This must work even if \$libdir does
19317# not exist.
19318hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19319
19320# Whether we need a single -rpath flag with a separated argument.
19321hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19322
19323# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19324# resulting binary.
19325hardcode_direct=$hardcode_direct_GCJ
19326
19327# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19328# resulting binary.
19329hardcode_minus_L=$hardcode_minus_L_GCJ
19330
19331# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19332# the resulting binary.
19333hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19334
19335# Set to yes if building a shared library automatically hardcodes DIR into the library
19336# and all subsequent libraries and executables linked against it.
19337hardcode_automatic=$hardcode_automatic_GCJ
19338
19339# Variables whose values should be saved in libtool wrapper scripts and
19340# restored at relink time.
19341variables_saved_for_relink="$variables_saved_for_relink"
19342
19343# Whether libtool must link a program against all its dependency libraries.
19344link_all_deplibs=$link_all_deplibs_GCJ
19345
19346# Compile-time system search path for libraries
19347sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19348
19349# Run-time system search path for libraries
19350sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19351
19352# Fix the shell variable \$srcfile for the compiler.
19353fix_srcfile_path="$fix_srcfile_path_GCJ"
19354
19355# Set to yes if exported symbols are required.
19356always_export_symbols=$always_export_symbols_GCJ
19357
19358# The commands to list exported symbols.
19359export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19360
19361# The commands to extract the exported symbol list from a shared archive.
19362extract_expsyms_cmds=$lt_extract_expsyms_cmds
19363
19364# Symbols that should not be listed in the preloaded symbols.
19365exclude_expsyms=$lt_exclude_expsyms_GCJ
19366
19367# Symbols that must always be exported.
19368include_expsyms=$lt_include_expsyms_GCJ
19369
19370# ### END LIBTOOL TAG CONFIG: $tagname
19371
19372__EOF__
19373
19374
19375else
19376  # If there is no Makefile yet, we rely on a make rule to execute
19377  # `config.status --recheck' to rerun these tests and create the
19378  # libtool script then.
19379  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19380  if test -f "$ltmain_in"; then
19381    test -f Makefile && make "$ltmain"
19382  fi
19383fi
19384
19385
19386ac_ext=c
19387ac_cpp='$CPP $CPPFLAGS'
19388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391
19392CC="$lt_save_CC"
19393
19394	else
19395	  tagname=""
19396	fi
19397	;;
19398
19399      RC)
19400
19401
19402
19403# Source file extension for RC test sources.
19404ac_ext=rc
19405
19406# Object file extension for compiled RC test sources.
19407objext=o
19408objext_RC=$objext
19409
19410# Code to be used in simple compile tests
19411lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19412
19413# Code to be used in simple link tests
19414lt_simple_link_test_code="$lt_simple_compile_test_code"
19415
19416# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19417
19418# If no C compiler was specified, use CC.
19419LTCC=${LTCC-"$CC"}
19420
19421# If no C compiler flags were specified, use CFLAGS.
19422LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19423
19424# Allow CC to be a program name with arguments.
19425compiler=$CC
19426
19427
19428# save warnings/boilerplate of simple test code
19429ac_outfile=conftest.$ac_objext
19430printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19431eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19432_lt_compiler_boilerplate=`cat conftest.err`
19433$rm conftest*
19434
19435ac_outfile=conftest.$ac_objext
19436printf "$lt_simple_link_test_code" >conftest.$ac_ext
19437eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19438_lt_linker_boilerplate=`cat conftest.err`
19439$rm conftest*
19440
19441
19442# Allow CC to be a program name with arguments.
19443lt_save_CC="$CC"
19444CC=${RC-"windres"}
19445compiler=$CC
19446compiler_RC=$CC
19447for cc_temp in $compiler""; do
19448  case $cc_temp in
19449    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19450    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19451    \-*) ;;
19452    *) break;;
19453  esac
19454done
19455cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19456
19457lt_cv_prog_compiler_c_o_RC=yes
19458
19459# The else clause should only fire when bootstrapping the
19460# libtool distribution, otherwise you forgot to ship ltmain.sh
19461# with your package, and you will get complaints that there are
19462# no rules to generate ltmain.sh.
19463if test -f "$ltmain"; then
19464  # See if we are running on zsh, and set the options which allow our commands through
19465  # without removal of \ escapes.
19466  if test -n "${ZSH_VERSION+set}" ; then
19467    setopt NO_GLOB_SUBST
19468  fi
19469  # Now quote all the things that may contain metacharacters while being
19470  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19471  # variables and quote the copies for generation of the libtool script.
19472  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19473    SED SHELL STRIP \
19474    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19475    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19476    deplibs_check_method reload_flag reload_cmds need_locks \
19477    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19478    lt_cv_sys_global_symbol_to_c_name_address \
19479    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19480    old_postinstall_cmds old_postuninstall_cmds \
19481    compiler_RC \
19482    CC_RC \
19483    LD_RC \
19484    lt_prog_compiler_wl_RC \
19485    lt_prog_compiler_pic_RC \
19486    lt_prog_compiler_static_RC \
19487    lt_prog_compiler_no_builtin_flag_RC \
19488    export_dynamic_flag_spec_RC \
19489    thread_safe_flag_spec_RC \
19490    whole_archive_flag_spec_RC \
19491    enable_shared_with_static_runtimes_RC \
19492    old_archive_cmds_RC \
19493    old_archive_from_new_cmds_RC \
19494    predep_objects_RC \
19495    postdep_objects_RC \
19496    predeps_RC \
19497    postdeps_RC \
19498    compiler_lib_search_path_RC \
19499    archive_cmds_RC \
19500    archive_expsym_cmds_RC \
19501    postinstall_cmds_RC \
19502    postuninstall_cmds_RC \
19503    old_archive_from_expsyms_cmds_RC \
19504    allow_undefined_flag_RC \
19505    no_undefined_flag_RC \
19506    export_symbols_cmds_RC \
19507    hardcode_libdir_flag_spec_RC \
19508    hardcode_libdir_flag_spec_ld_RC \
19509    hardcode_libdir_separator_RC \
19510    hardcode_automatic_RC \
19511    module_cmds_RC \
19512    module_expsym_cmds_RC \
19513    lt_cv_prog_compiler_c_o_RC \
19514    exclude_expsyms_RC \
19515    include_expsyms_RC; do
19516
19517    case $var in
19518    old_archive_cmds_RC | \
19519    old_archive_from_new_cmds_RC | \
19520    archive_cmds_RC | \
19521    archive_expsym_cmds_RC | \
19522    module_cmds_RC | \
19523    module_expsym_cmds_RC | \
19524    old_archive_from_expsyms_cmds_RC | \
19525    export_symbols_cmds_RC | \
19526    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19527    postinstall_cmds | postuninstall_cmds | \
19528    old_postinstall_cmds | old_postuninstall_cmds | \
19529    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19530      # Double-quote double-evaled strings.
19531      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19532      ;;
19533    *)
19534      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19535      ;;
19536    esac
19537  done
19538
19539  case $lt_echo in
19540  *'\$0 --fallback-echo"')
19541    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19542    ;;
19543  esac
19544
19545cfgfile="$ofile"
19546
19547  cat <<__EOF__ >> "$cfgfile"
19548# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19549
19550# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19551
19552# Shell to use when invoking shell scripts.
19553SHELL=$lt_SHELL
19554
19555# Whether or not to build shared libraries.
19556build_libtool_libs=$enable_shared
19557
19558# Whether or not to build static libraries.
19559build_old_libs=$enable_static
19560
19561# Whether or not to add -lc for building shared libraries.
19562build_libtool_need_lc=$archive_cmds_need_lc_RC
19563
19564# Whether or not to disallow shared libs when runtime libs are static
19565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19566
19567# Whether or not to optimize for fast installation.
19568fast_install=$enable_fast_install
19569
19570# The host system.
19571host_alias=$host_alias
19572host=$host
19573host_os=$host_os
19574
19575# The build system.
19576build_alias=$build_alias
19577build=$build
19578build_os=$build_os
19579
19580# An echo program that does not interpret backslashes.
19581echo=$lt_echo
19582
19583# The archiver.
19584AR=$lt_AR
19585AR_FLAGS=$lt_AR_FLAGS
19586
19587# A C compiler.
19588LTCC=$lt_LTCC
19589
19590# LTCC compiler flags.
19591LTCFLAGS=$lt_LTCFLAGS
19592
19593# A language-specific compiler.
19594CC=$lt_compiler_RC
19595
19596# Is the compiler the GNU C compiler?
19597with_gcc=$GCC_RC
19598
19599# An ERE matcher.
19600EGREP=$lt_EGREP
19601
19602# The linker used to build libraries.
19603LD=$lt_LD_RC
19604
19605# Whether we need hard or soft links.
19606LN_S=$lt_LN_S
19607
19608# A BSD-compatible nm program.
19609NM=$lt_NM
19610
19611# A symbol stripping program
19612STRIP=$lt_STRIP
19613
19614# Used to examine libraries when file_magic_cmd begins "file"
19615MAGIC_CMD=$MAGIC_CMD
19616
19617# Used on cygwin: DLL creation program.
19618DLLTOOL="$DLLTOOL"
19619
19620# Used on cygwin: object dumper.
19621OBJDUMP="$OBJDUMP"
19622
19623# Used on cygwin: assembler.
19624AS="$AS"
19625
19626# The name of the directory that contains temporary libtool files.
19627objdir=$objdir
19628
19629# How to create reloadable object files.
19630reload_flag=$lt_reload_flag
19631reload_cmds=$lt_reload_cmds
19632
19633# How to pass a linker flag through the compiler.
19634wl=$lt_lt_prog_compiler_wl_RC
19635
19636# Object file suffix (normally "o").
19637objext="$ac_objext"
19638
19639# Old archive suffix (normally "a").
19640libext="$libext"
19641
19642# Shared library suffix (normally ".so").
19643shrext_cmds='$shrext_cmds'
19644
19645# Executable file suffix (normally "").
19646exeext="$exeext"
19647
19648# Additional compiler flags for building library objects.
19649pic_flag=$lt_lt_prog_compiler_pic_RC
19650pic_mode=$pic_mode
19651
19652# What is the maximum length of a command?
19653max_cmd_len=$lt_cv_sys_max_cmd_len
19654
19655# Does compiler simultaneously support -c and -o options?
19656compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19657
19658# Must we lock files when doing compilation?
19659need_locks=$lt_need_locks
19660
19661# Do we need the lib prefix for modules?
19662need_lib_prefix=$need_lib_prefix
19663
19664# Do we need a version for libraries?
19665need_version=$need_version
19666
19667# Whether dlopen is supported.
19668dlopen_support=$enable_dlopen
19669
19670# Whether dlopen of programs is supported.
19671dlopen_self=$enable_dlopen_self
19672
19673# Whether dlopen of statically linked programs is supported.
19674dlopen_self_static=$enable_dlopen_self_static
19675
19676# Compiler flag to prevent dynamic linking.
19677link_static_flag=$lt_lt_prog_compiler_static_RC
19678
19679# Compiler flag to turn off builtin functions.
19680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19681
19682# Compiler flag to allow reflexive dlopens.
19683export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19684
19685# Compiler flag to generate shared objects directly from archives.
19686whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19687
19688# Compiler flag to generate thread-safe objects.
19689thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19690
19691# Library versioning type.
19692version_type=$version_type
19693
19694# Format of library name prefix.
19695libname_spec=$lt_libname_spec
19696
19697# List of archive names.  First name is the real one, the rest are links.
19698# The last name is the one that the linker finds with -lNAME.
19699library_names_spec=$lt_library_names_spec
19700
19701# The coded name of the library, if different from the real name.
19702soname_spec=$lt_soname_spec
19703
19704# Commands used to build and install an old-style archive.
19705RANLIB=$lt_RANLIB
19706old_archive_cmds=$lt_old_archive_cmds_RC
19707old_postinstall_cmds=$lt_old_postinstall_cmds
19708old_postuninstall_cmds=$lt_old_postuninstall_cmds
19709
19710# Create an old-style archive from a shared archive.
19711old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19712
19713# Create a temporary old-style archive to link instead of a shared archive.
19714old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19715
19716# Commands used to build and install a shared archive.
19717archive_cmds=$lt_archive_cmds_RC
19718archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19719postinstall_cmds=$lt_postinstall_cmds
19720postuninstall_cmds=$lt_postuninstall_cmds
19721
19722# Commands used to build a loadable module (assumed same as above if empty)
19723module_cmds=$lt_module_cmds_RC
19724module_expsym_cmds=$lt_module_expsym_cmds_RC
19725
19726# Commands to strip libraries.
19727old_striplib=$lt_old_striplib
19728striplib=$lt_striplib
19729
19730# Dependencies to place before the objects being linked to create a
19731# shared library.
19732predep_objects=$lt_predep_objects_RC
19733
19734# Dependencies to place after the objects being linked to create a
19735# shared library.
19736postdep_objects=$lt_postdep_objects_RC
19737
19738# Dependencies to place before the objects being linked to create a
19739# shared library.
19740predeps=$lt_predeps_RC
19741
19742# Dependencies to place after the objects being linked to create a
19743# shared library.
19744postdeps=$lt_postdeps_RC
19745
19746# The library search path used internally by the compiler when linking
19747# a shared library.
19748compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19749
19750# Method to check whether dependent libraries are shared objects.
19751deplibs_check_method=$lt_deplibs_check_method
19752
19753# Command to use when deplibs_check_method == file_magic.
19754file_magic_cmd=$lt_file_magic_cmd
19755
19756# Flag that allows shared libraries with undefined symbols to be built.
19757allow_undefined_flag=$lt_allow_undefined_flag_RC
19758
19759# Flag that forces no undefined symbols.
19760no_undefined_flag=$lt_no_undefined_flag_RC
19761
19762# Commands used to finish a libtool library installation in a directory.
19763finish_cmds=$lt_finish_cmds
19764
19765# Same as above, but a single script fragment to be evaled but not shown.
19766finish_eval=$lt_finish_eval
19767
19768# Take the output of nm and produce a listing of raw symbols and C names.
19769global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19770
19771# Transform the output of nm in a proper C declaration
19772global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19773
19774# Transform the output of nm in a C name address pair
19775global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19776
19777# This is the shared library runtime path variable.
19778runpath_var=$runpath_var
19779
19780# This is the shared library path variable.
19781shlibpath_var=$shlibpath_var
19782
19783# Is shlibpath searched before the hard-coded library search path?
19784shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19785
19786# How to hardcode a shared library path into an executable.
19787hardcode_action=$hardcode_action_RC
19788
19789# Whether we should hardcode library paths into libraries.
19790hardcode_into_libs=$hardcode_into_libs
19791
19792# Flag to hardcode \$libdir into a binary during linking.
19793# This must work even if \$libdir does not exist.
19794hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19795
19796# If ld is used when linking, flag to hardcode \$libdir into
19797# a binary during linking. This must work even if \$libdir does
19798# not exist.
19799hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19800
19801# Whether we need a single -rpath flag with a separated argument.
19802hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19803
19804# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19805# resulting binary.
19806hardcode_direct=$hardcode_direct_RC
19807
19808# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19809# resulting binary.
19810hardcode_minus_L=$hardcode_minus_L_RC
19811
19812# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19813# the resulting binary.
19814hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19815
19816# Set to yes if building a shared library automatically hardcodes DIR into the library
19817# and all subsequent libraries and executables linked against it.
19818hardcode_automatic=$hardcode_automatic_RC
19819
19820# Variables whose values should be saved in libtool wrapper scripts and
19821# restored at relink time.
19822variables_saved_for_relink="$variables_saved_for_relink"
19823
19824# Whether libtool must link a program against all its dependency libraries.
19825link_all_deplibs=$link_all_deplibs_RC
19826
19827# Compile-time system search path for libraries
19828sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19829
19830# Run-time system search path for libraries
19831sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19832
19833# Fix the shell variable \$srcfile for the compiler.
19834fix_srcfile_path="$fix_srcfile_path_RC"
19835
19836# Set to yes if exported symbols are required.
19837always_export_symbols=$always_export_symbols_RC
19838
19839# The commands to list exported symbols.
19840export_symbols_cmds=$lt_export_symbols_cmds_RC
19841
19842# The commands to extract the exported symbol list from a shared archive.
19843extract_expsyms_cmds=$lt_extract_expsyms_cmds
19844
19845# Symbols that should not be listed in the preloaded symbols.
19846exclude_expsyms=$lt_exclude_expsyms_RC
19847
19848# Symbols that must always be exported.
19849include_expsyms=$lt_include_expsyms_RC
19850
19851# ### END LIBTOOL TAG CONFIG: $tagname
19852
19853__EOF__
19854
19855
19856else
19857  # If there is no Makefile yet, we rely on a make rule to execute
19858  # `config.status --recheck' to rerun these tests and create the
19859  # libtool script then.
19860  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19861  if test -f "$ltmain_in"; then
19862    test -f Makefile && make "$ltmain"
19863  fi
19864fi
19865
19866
19867ac_ext=c
19868ac_cpp='$CPP $CPPFLAGS'
19869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871ac_compiler_gnu=$ac_cv_c_compiler_gnu
19872
19873CC="$lt_save_CC"
19874
19875	;;
19876
19877      *)
19878	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19879echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19880   { (exit 1); exit 1; }; }
19881	;;
19882      esac
19883
19884      # Append the new tag name to the list of available tags.
19885      if test -n "$tagname" ; then
19886      available_tags="$available_tags $tagname"
19887    fi
19888    fi
19889  done
19890  IFS="$lt_save_ifs"
19891
19892  # Now substitute the updated list of available tags.
19893  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19894    mv "${ofile}T" "$ofile"
19895    chmod +x "$ofile"
19896  else
19897    rm -f "${ofile}T"
19898    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19899echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19900   { (exit 1); exit 1; }; }
19901  fi
19902fi
19903
19904
19905
19906# This can be used to rebuild libtool when needed
19907LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19908
19909# Always use our own libtool.
19910LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19911
19912# Prevent multiple expansion
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
19934echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
19935    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
19936if test "${enable_maintainer_mode+set}" = set; then
19937  enableval="$enable_maintainer_mode"
19938  USE_MAINTAINER_MODE=$enableval
19939else
19940  USE_MAINTAINER_MODE=no
19941fi;
19942  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
19943echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
19944
19945
19946if test $USE_MAINTAINER_MODE = yes; then
19947  MAINTAINER_MODE_TRUE=
19948  MAINTAINER_MODE_FALSE='#'
19949else
19950  MAINTAINER_MODE_TRUE='#'
19951  MAINTAINER_MODE_FALSE=
19952fi
19953
19954  MAINT=$MAINTAINER_MODE_TRUE
19955
19956
19957echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19958echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19959set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19960if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19961  echo $ECHO_N "(cached) $ECHO_C" >&6
19962else
19963  cat >conftest.make <<\_ACEOF
19964all:
19965	@echo 'ac_maketemp="$(MAKE)"'
19966_ACEOF
19967# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19968eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19969if test -n "$ac_maketemp"; then
19970  eval ac_cv_prog_make_${ac_make}_set=yes
19971else
19972  eval ac_cv_prog_make_${ac_make}_set=no
19973fi
19974rm -f conftest.make
19975fi
19976if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19977  echo "$as_me:$LINENO: result: yes" >&5
19978echo "${ECHO_T}yes" >&6
19979  SET_MAKE=
19980else
19981  echo "$as_me:$LINENO: result: no" >&5
19982echo "${ECHO_T}no" >&6
19983  SET_MAKE="MAKE=${MAKE-make}"
19984fi
19985
19986echo "$as_me:$LINENO: checking for X" >&5
19987echo $ECHO_N "checking for X... $ECHO_C" >&6
19988
19989
19990# Check whether --with-x or --without-x was given.
19991if test "${with_x+set}" = set; then
19992  withval="$with_x"
19993
19994fi;
19995# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19996if test "x$with_x" = xno; then
19997  # The user explicitly disabled X.
19998  have_x=disabled
19999else
20000  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20001    # Both variables are already set.
20002    have_x=yes
20003  else
20004    if test "${ac_cv_have_x+set}" = set; then
20005  echo $ECHO_N "(cached) $ECHO_C" >&6
20006else
20007  # One or both of the vars are not set, and there is no cached value.
20008ac_x_includes=no ac_x_libraries=no
20009rm -fr conftest.dir
20010if mkdir conftest.dir; then
20011  cd conftest.dir
20012  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20013  cat >Imakefile <<'_ACEOF'
20014acfindx:
20015	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20016_ACEOF
20017  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20018    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20019    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20020    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20021    for ac_extension in a so sl; do
20022      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20023	 test -f $ac_im_libdir/libX11.$ac_extension; then
20024	ac_im_usrlibdir=$ac_im_libdir; break
20025      fi
20026    done
20027    # Screen out bogus values from the imake configuration.  They are
20028    # bogus both because they are the default anyway, and because
20029    # using them would break gcc on systems where it needs fixed includes.
20030    case $ac_im_incroot in
20031	/usr/include) ;;
20032	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20033    esac
20034    case $ac_im_usrlibdir in
20035	/usr/lib | /lib) ;;
20036	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20037    esac
20038  fi
20039  cd ..
20040  rm -fr conftest.dir
20041fi
20042
20043# Standard set of common directories for X headers.
20044# Check X11 before X11Rn because it is often a symlink to the current release.
20045ac_x_header_dirs='
20046/usr/X11/include
20047/usr/X11R6/include
20048/usr/X11R5/include
20049/usr/X11R4/include
20050
20051/usr/include/X11
20052/usr/include/X11R6
20053/usr/include/X11R5
20054/usr/include/X11R4
20055
20056/usr/local/X11/include
20057/usr/local/X11R6/include
20058/usr/local/X11R5/include
20059/usr/local/X11R4/include
20060
20061/usr/local/include/X11
20062/usr/local/include/X11R6
20063/usr/local/include/X11R5
20064/usr/local/include/X11R4
20065
20066/usr/X386/include
20067/usr/x386/include
20068/usr/XFree86/include/X11
20069
20070/usr/include
20071/usr/local/include
20072/usr/unsupported/include
20073/usr/athena/include
20074/usr/local/x11r5/include
20075/usr/lpp/Xamples/include
20076
20077/usr/openwin/include
20078/usr/openwin/share/include'
20079
20080if test "$ac_x_includes" = no; then
20081  # Guess where to find include files, by looking for Xlib.h.
20082  # First, try using that file with no special directory specified.
20083  cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h.  */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h.  */
20089#include <X11/Xlib.h>
20090_ACEOF
20091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20092  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20093  ac_status=$?
20094  grep -v '^ *+' conftest.er1 >conftest.err
20095  rm -f conftest.er1
20096  cat conftest.err >&5
20097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098  (exit $ac_status); } >/dev/null; then
20099  if test -s conftest.err; then
20100    ac_cpp_err=$ac_c_preproc_warn_flag
20101    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20102  else
20103    ac_cpp_err=
20104  fi
20105else
20106  ac_cpp_err=yes
20107fi
20108if test -z "$ac_cpp_err"; then
20109  # We can compile using X headers with no special include directory.
20110ac_x_includes=
20111else
20112  echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115  for ac_dir in $ac_x_header_dirs; do
20116  if test -r "$ac_dir/X11/Xlib.h"; then
20117    ac_x_includes=$ac_dir
20118    break
20119  fi
20120done
20121fi
20122rm -f conftest.err conftest.$ac_ext
20123fi # $ac_x_includes = no
20124
20125if test "$ac_x_libraries" = no; then
20126  # Check for the libraries.
20127  # See if we find them without any special options.
20128  # Don't add to $LIBS permanently.
20129  ac_save_LIBS=$LIBS
20130  LIBS="-lXt $LIBS"
20131  cat >conftest.$ac_ext <<_ACEOF
20132/* confdefs.h.  */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h.  */
20137#include <X11/Xlib.h>
20138int
20139main ()
20140{
20141XrmInitialize ()
20142  ;
20143  return 0;
20144}
20145_ACEOF
20146rm -f conftest.$ac_objext conftest$ac_exeext
20147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20148  (eval $ac_link) 2>conftest.er1
20149  ac_status=$?
20150  grep -v '^ *+' conftest.er1 >conftest.err
20151  rm -f conftest.er1
20152  cat conftest.err >&5
20153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154  (exit $ac_status); } &&
20155	 { ac_try='test -z "$ac_c_werror_flag"
20156			 || test ! -s conftest.err'
20157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158  (eval $ac_try) 2>&5
20159  ac_status=$?
20160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161  (exit $ac_status); }; } &&
20162	 { ac_try='test -s conftest$ac_exeext'
20163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164  (eval $ac_try) 2>&5
20165  ac_status=$?
20166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167  (exit $ac_status); }; }; then
20168  LIBS=$ac_save_LIBS
20169# We can link X programs with no special library path.
20170ac_x_libraries=
20171else
20172  echo "$as_me: failed program was:" >&5
20173sed 's/^/| /' conftest.$ac_ext >&5
20174
20175LIBS=$ac_save_LIBS
20176for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20177do
20178  # Don't even attempt the hair of trying to link an X program!
20179  for ac_extension in a so sl; do
20180    if test -r $ac_dir/libXt.$ac_extension; then
20181      ac_x_libraries=$ac_dir
20182      break 2
20183    fi
20184  done
20185done
20186fi
20187rm -f conftest.err conftest.$ac_objext \
20188      conftest$ac_exeext conftest.$ac_ext
20189fi # $ac_x_libraries = no
20190
20191if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20192  # Didn't find X anywhere.  Cache the known absence of X.
20193  ac_cv_have_x="have_x=no"
20194else
20195  # Record where we found X for the cache.
20196  ac_cv_have_x="have_x=yes \
20197		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20198fi
20199fi
20200
20201  fi
20202  eval "$ac_cv_have_x"
20203fi # $with_x != no
20204
20205if test "$have_x" != yes; then
20206  echo "$as_me:$LINENO: result: $have_x" >&5
20207echo "${ECHO_T}$have_x" >&6
20208  no_x=yes
20209else
20210  # If each of the values was on the command line, it overrides each guess.
20211  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20212  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20213  # Update the cache value to reflect the command line values.
20214  ac_cv_have_x="have_x=yes \
20215		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20216  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20217echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20218fi
20219
20220if test "$no_x" = yes; then
20221  # Not all programs may use this symbol, but it does not hurt to define it.
20222
20223cat >>confdefs.h <<\_ACEOF
20224#define X_DISPLAY_MISSING 1
20225_ACEOF
20226
20227  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20228else
20229  if test -n "$x_includes"; then
20230    X_CFLAGS="$X_CFLAGS -I$x_includes"
20231  fi
20232
20233  # It would also be nice to do this for all -L options, not just this one.
20234  if test -n "$x_libraries"; then
20235    X_LIBS="$X_LIBS -L$x_libraries"
20236    # For Solaris; some versions of Sun CC require a space after -R and
20237    # others require no space.  Words are not sufficient . . . .
20238    case `(uname -sr) 2>/dev/null` in
20239    "SunOS 5"*)
20240      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20241echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20242      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20243      cat >conftest.$ac_ext <<_ACEOF
20244/* confdefs.h.  */
20245_ACEOF
20246cat confdefs.h >>conftest.$ac_ext
20247cat >>conftest.$ac_ext <<_ACEOF
20248/* end confdefs.h.  */
20249
20250int
20251main ()
20252{
20253
20254  ;
20255  return 0;
20256}
20257_ACEOF
20258rm -f conftest.$ac_objext conftest$ac_exeext
20259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20260  (eval $ac_link) 2>conftest.er1
20261  ac_status=$?
20262  grep -v '^ *+' conftest.er1 >conftest.err
20263  rm -f conftest.er1
20264  cat conftest.err >&5
20265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266  (exit $ac_status); } &&
20267	 { ac_try='test -z "$ac_c_werror_flag"
20268			 || test ! -s conftest.err'
20269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270  (eval $ac_try) 2>&5
20271  ac_status=$?
20272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273  (exit $ac_status); }; } &&
20274	 { ac_try='test -s conftest$ac_exeext'
20275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276  (eval $ac_try) 2>&5
20277  ac_status=$?
20278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279  (exit $ac_status); }; }; then
20280  ac_R_nospace=yes
20281else
20282  echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285ac_R_nospace=no
20286fi
20287rm -f conftest.err conftest.$ac_objext \
20288      conftest$ac_exeext conftest.$ac_ext
20289      if test $ac_R_nospace = yes; then
20290	echo "$as_me:$LINENO: result: no" >&5
20291echo "${ECHO_T}no" >&6
20292	X_LIBS="$X_LIBS -R$x_libraries"
20293      else
20294	LIBS="$ac_xsave_LIBS -R $x_libraries"
20295	cat >conftest.$ac_ext <<_ACEOF
20296/* confdefs.h.  */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h.  */
20301
20302int
20303main ()
20304{
20305
20306  ;
20307  return 0;
20308}
20309_ACEOF
20310rm -f conftest.$ac_objext conftest$ac_exeext
20311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20312  (eval $ac_link) 2>conftest.er1
20313  ac_status=$?
20314  grep -v '^ *+' conftest.er1 >conftest.err
20315  rm -f conftest.er1
20316  cat conftest.err >&5
20317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318  (exit $ac_status); } &&
20319	 { ac_try='test -z "$ac_c_werror_flag"
20320			 || test ! -s conftest.err'
20321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322  (eval $ac_try) 2>&5
20323  ac_status=$?
20324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325  (exit $ac_status); }; } &&
20326	 { ac_try='test -s conftest$ac_exeext'
20327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328  (eval $ac_try) 2>&5
20329  ac_status=$?
20330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331  (exit $ac_status); }; }; then
20332  ac_R_space=yes
20333else
20334  echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337ac_R_space=no
20338fi
20339rm -f conftest.err conftest.$ac_objext \
20340      conftest$ac_exeext conftest.$ac_ext
20341	if test $ac_R_space = yes; then
20342	  echo "$as_me:$LINENO: result: yes" >&5
20343echo "${ECHO_T}yes" >&6
20344	  X_LIBS="$X_LIBS -R $x_libraries"
20345	else
20346	  echo "$as_me:$LINENO: result: neither works" >&5
20347echo "${ECHO_T}neither works" >&6
20348	fi
20349      fi
20350      LIBS=$ac_xsave_LIBS
20351    esac
20352  fi
20353
20354  # Check for system-dependent libraries X programs must link with.
20355  # Do this before checking for the system-independent R6 libraries
20356  # (-lICE), since we may need -lsocket or whatever for X linking.
20357
20358  if test "$ISC" = yes; then
20359    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20360  else
20361    # Martyn Johnson says this is needed for Ultrix, if the X
20362    # libraries were built with DECnet support.  And Karl Berry says
20363    # the Alpha needs dnet_stub (dnet does not exist).
20364    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20365    cat >conftest.$ac_ext <<_ACEOF
20366/* confdefs.h.  */
20367_ACEOF
20368cat confdefs.h >>conftest.$ac_ext
20369cat >>conftest.$ac_ext <<_ACEOF
20370/* end confdefs.h.  */
20371
20372/* Override any gcc2 internal prototype to avoid an error.  */
20373#ifdef __cplusplus
20374extern "C"
20375#endif
20376/* We use char because int might match the return type of a gcc2
20377   builtin and then its argument prototype would still apply.  */
20378char XOpenDisplay ();
20379int
20380main ()
20381{
20382XOpenDisplay ();
20383  ;
20384  return 0;
20385}
20386_ACEOF
20387rm -f conftest.$ac_objext conftest$ac_exeext
20388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20389  (eval $ac_link) 2>conftest.er1
20390  ac_status=$?
20391  grep -v '^ *+' conftest.er1 >conftest.err
20392  rm -f conftest.er1
20393  cat conftest.err >&5
20394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395  (exit $ac_status); } &&
20396	 { ac_try='test -z "$ac_c_werror_flag"
20397			 || test ! -s conftest.err'
20398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399  (eval $ac_try) 2>&5
20400  ac_status=$?
20401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402  (exit $ac_status); }; } &&
20403	 { ac_try='test -s conftest$ac_exeext'
20404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405  (eval $ac_try) 2>&5
20406  ac_status=$?
20407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408  (exit $ac_status); }; }; then
20409  :
20410else
20411  echo "$as_me: failed program was:" >&5
20412sed 's/^/| /' conftest.$ac_ext >&5
20413
20414echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20415echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20416if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20417  echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419  ac_check_lib_save_LIBS=$LIBS
20420LIBS="-ldnet  $LIBS"
20421cat >conftest.$ac_ext <<_ACEOF
20422/* confdefs.h.  */
20423_ACEOF
20424cat confdefs.h >>conftest.$ac_ext
20425cat >>conftest.$ac_ext <<_ACEOF
20426/* end confdefs.h.  */
20427
20428/* Override any gcc2 internal prototype to avoid an error.  */
20429#ifdef __cplusplus
20430extern "C"
20431#endif
20432/* We use char because int might match the return type of a gcc2
20433   builtin and then its argument prototype would still apply.  */
20434char dnet_ntoa ();
20435int
20436main ()
20437{
20438dnet_ntoa ();
20439  ;
20440  return 0;
20441}
20442_ACEOF
20443rm -f conftest.$ac_objext conftest$ac_exeext
20444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445  (eval $ac_link) 2>conftest.er1
20446  ac_status=$?
20447  grep -v '^ *+' conftest.er1 >conftest.err
20448  rm -f conftest.er1
20449  cat conftest.err >&5
20450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451  (exit $ac_status); } &&
20452	 { ac_try='test -z "$ac_c_werror_flag"
20453			 || test ! -s conftest.err'
20454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455  (eval $ac_try) 2>&5
20456  ac_status=$?
20457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458  (exit $ac_status); }; } &&
20459	 { ac_try='test -s conftest$ac_exeext'
20460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461  (eval $ac_try) 2>&5
20462  ac_status=$?
20463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464  (exit $ac_status); }; }; then
20465  ac_cv_lib_dnet_dnet_ntoa=yes
20466else
20467  echo "$as_me: failed program was:" >&5
20468sed 's/^/| /' conftest.$ac_ext >&5
20469
20470ac_cv_lib_dnet_dnet_ntoa=no
20471fi
20472rm -f conftest.err conftest.$ac_objext \
20473      conftest$ac_exeext conftest.$ac_ext
20474LIBS=$ac_check_lib_save_LIBS
20475fi
20476echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20477echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20478if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20479  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20480fi
20481
20482    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20483      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20484echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20485if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20486  echo $ECHO_N "(cached) $ECHO_C" >&6
20487else
20488  ac_check_lib_save_LIBS=$LIBS
20489LIBS="-ldnet_stub  $LIBS"
20490cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h.  */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h.  */
20496
20497/* Override any gcc2 internal prototype to avoid an error.  */
20498#ifdef __cplusplus
20499extern "C"
20500#endif
20501/* We use char because int might match the return type of a gcc2
20502   builtin and then its argument prototype would still apply.  */
20503char dnet_ntoa ();
20504int
20505main ()
20506{
20507dnet_ntoa ();
20508  ;
20509  return 0;
20510}
20511_ACEOF
20512rm -f conftest.$ac_objext conftest$ac_exeext
20513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514  (eval $ac_link) 2>conftest.er1
20515  ac_status=$?
20516  grep -v '^ *+' conftest.er1 >conftest.err
20517  rm -f conftest.er1
20518  cat conftest.err >&5
20519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520  (exit $ac_status); } &&
20521	 { ac_try='test -z "$ac_c_werror_flag"
20522			 || test ! -s conftest.err'
20523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524  (eval $ac_try) 2>&5
20525  ac_status=$?
20526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527  (exit $ac_status); }; } &&
20528	 { ac_try='test -s conftest$ac_exeext'
20529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530  (eval $ac_try) 2>&5
20531  ac_status=$?
20532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533  (exit $ac_status); }; }; then
20534  ac_cv_lib_dnet_stub_dnet_ntoa=yes
20535else
20536  echo "$as_me: failed program was:" >&5
20537sed 's/^/| /' conftest.$ac_ext >&5
20538
20539ac_cv_lib_dnet_stub_dnet_ntoa=no
20540fi
20541rm -f conftest.err conftest.$ac_objext \
20542      conftest$ac_exeext conftest.$ac_ext
20543LIBS=$ac_check_lib_save_LIBS
20544fi
20545echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20546echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20547if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20548  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20549fi
20550
20551    fi
20552fi
20553rm -f conftest.err conftest.$ac_objext \
20554      conftest$ac_exeext conftest.$ac_ext
20555    LIBS="$ac_xsave_LIBS"
20556
20557    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20558    # to get the SysV transport functions.
20559    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20560    # needs -lnsl.
20561    # The nsl library prevents programs from opening the X display
20562    # on Irix 5.2, according to T.E. Dickey.
20563    # The functions gethostbyname, getservbyname, and inet_addr are
20564    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20565    echo "$as_me:$LINENO: checking for gethostbyname" >&5
20566echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20567if test "${ac_cv_func_gethostbyname+set}" = set; then
20568  echo $ECHO_N "(cached) $ECHO_C" >&6
20569else
20570  cat >conftest.$ac_ext <<_ACEOF
20571/* confdefs.h.  */
20572_ACEOF
20573cat confdefs.h >>conftest.$ac_ext
20574cat >>conftest.$ac_ext <<_ACEOF
20575/* end confdefs.h.  */
20576/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20577   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20578#define gethostbyname innocuous_gethostbyname
20579
20580/* System header to define __stub macros and hopefully few prototypes,
20581    which can conflict with char gethostbyname (); below.
20582    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20583    <limits.h> exists even on freestanding compilers.  */
20584
20585#ifdef __STDC__
20586# include <limits.h>
20587#else
20588# include <assert.h>
20589#endif
20590
20591#undef gethostbyname
20592
20593/* Override any gcc2 internal prototype to avoid an error.  */
20594#ifdef __cplusplus
20595extern "C"
20596{
20597#endif
20598/* We use char because int might match the return type of a gcc2
20599   builtin and then its argument prototype would still apply.  */
20600char gethostbyname ();
20601/* The GNU C library defines this for functions which it implements
20602    to always fail with ENOSYS.  Some functions are actually named
20603    something starting with __ and the normal name is an alias.  */
20604#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20605choke me
20606#else
20607char (*f) () = gethostbyname;
20608#endif
20609#ifdef __cplusplus
20610}
20611#endif
20612
20613int
20614main ()
20615{
20616return f != gethostbyname;
20617  ;
20618  return 0;
20619}
20620_ACEOF
20621rm -f conftest.$ac_objext conftest$ac_exeext
20622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623  (eval $ac_link) 2>conftest.er1
20624  ac_status=$?
20625  grep -v '^ *+' conftest.er1 >conftest.err
20626  rm -f conftest.er1
20627  cat conftest.err >&5
20628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629  (exit $ac_status); } &&
20630	 { ac_try='test -z "$ac_c_werror_flag"
20631			 || test ! -s conftest.err'
20632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633  (eval $ac_try) 2>&5
20634  ac_status=$?
20635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636  (exit $ac_status); }; } &&
20637	 { ac_try='test -s conftest$ac_exeext'
20638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639  (eval $ac_try) 2>&5
20640  ac_status=$?
20641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642  (exit $ac_status); }; }; then
20643  ac_cv_func_gethostbyname=yes
20644else
20645  echo "$as_me: failed program was:" >&5
20646sed 's/^/| /' conftest.$ac_ext >&5
20647
20648ac_cv_func_gethostbyname=no
20649fi
20650rm -f conftest.err conftest.$ac_objext \
20651      conftest$ac_exeext conftest.$ac_ext
20652fi
20653echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20654echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
20655
20656    if test $ac_cv_func_gethostbyname = no; then
20657      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20658echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20659if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20660  echo $ECHO_N "(cached) $ECHO_C" >&6
20661else
20662  ac_check_lib_save_LIBS=$LIBS
20663LIBS="-lnsl  $LIBS"
20664cat >conftest.$ac_ext <<_ACEOF
20665/* confdefs.h.  */
20666_ACEOF
20667cat confdefs.h >>conftest.$ac_ext
20668cat >>conftest.$ac_ext <<_ACEOF
20669/* end confdefs.h.  */
20670
20671/* Override any gcc2 internal prototype to avoid an error.  */
20672#ifdef __cplusplus
20673extern "C"
20674#endif
20675/* We use char because int might match the return type of a gcc2
20676   builtin and then its argument prototype would still apply.  */
20677char gethostbyname ();
20678int
20679main ()
20680{
20681gethostbyname ();
20682  ;
20683  return 0;
20684}
20685_ACEOF
20686rm -f conftest.$ac_objext conftest$ac_exeext
20687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20688  (eval $ac_link) 2>conftest.er1
20689  ac_status=$?
20690  grep -v '^ *+' conftest.er1 >conftest.err
20691  rm -f conftest.er1
20692  cat conftest.err >&5
20693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); } &&
20695	 { ac_try='test -z "$ac_c_werror_flag"
20696			 || test ! -s conftest.err'
20697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698  (eval $ac_try) 2>&5
20699  ac_status=$?
20700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701  (exit $ac_status); }; } &&
20702	 { ac_try='test -s conftest$ac_exeext'
20703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704  (eval $ac_try) 2>&5
20705  ac_status=$?
20706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707  (exit $ac_status); }; }; then
20708  ac_cv_lib_nsl_gethostbyname=yes
20709else
20710  echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
20713ac_cv_lib_nsl_gethostbyname=no
20714fi
20715rm -f conftest.err conftest.$ac_objext \
20716      conftest$ac_exeext conftest.$ac_ext
20717LIBS=$ac_check_lib_save_LIBS
20718fi
20719echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20720echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20721if test $ac_cv_lib_nsl_gethostbyname = yes; then
20722  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20723fi
20724
20725      if test $ac_cv_lib_nsl_gethostbyname = no; then
20726	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20727echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20728if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20729  echo $ECHO_N "(cached) $ECHO_C" >&6
20730else
20731  ac_check_lib_save_LIBS=$LIBS
20732LIBS="-lbsd  $LIBS"
20733cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h.  */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h.  */
20739
20740/* Override any gcc2 internal prototype to avoid an error.  */
20741#ifdef __cplusplus
20742extern "C"
20743#endif
20744/* We use char because int might match the return type of a gcc2
20745   builtin and then its argument prototype would still apply.  */
20746char gethostbyname ();
20747int
20748main ()
20749{
20750gethostbyname ();
20751  ;
20752  return 0;
20753}
20754_ACEOF
20755rm -f conftest.$ac_objext conftest$ac_exeext
20756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20757  (eval $ac_link) 2>conftest.er1
20758  ac_status=$?
20759  grep -v '^ *+' conftest.er1 >conftest.err
20760  rm -f conftest.er1
20761  cat conftest.err >&5
20762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763  (exit $ac_status); } &&
20764	 { ac_try='test -z "$ac_c_werror_flag"
20765			 || test ! -s conftest.err'
20766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767  (eval $ac_try) 2>&5
20768  ac_status=$?
20769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770  (exit $ac_status); }; } &&
20771	 { ac_try='test -s conftest$ac_exeext'
20772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773  (eval $ac_try) 2>&5
20774  ac_status=$?
20775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776  (exit $ac_status); }; }; then
20777  ac_cv_lib_bsd_gethostbyname=yes
20778else
20779  echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782ac_cv_lib_bsd_gethostbyname=no
20783fi
20784rm -f conftest.err conftest.$ac_objext \
20785      conftest$ac_exeext conftest.$ac_ext
20786LIBS=$ac_check_lib_save_LIBS
20787fi
20788echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20789echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20790if test $ac_cv_lib_bsd_gethostbyname = yes; then
20791  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20792fi
20793
20794      fi
20795    fi
20796
20797    # lieder@skyler.mavd.honeywell.com says without -lsocket,
20798    # socket/setsockopt and other routines are undefined under SCO ODT
20799    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20800    # on later versions), says Simon Leinen: it contains gethostby*
20801    # variants that don't use the name server (or something).  -lsocket
20802    # must be given before -lnsl if both are needed.  We assume that
20803    # if connect needs -lnsl, so does gethostbyname.
20804    echo "$as_me:$LINENO: checking for connect" >&5
20805echo $ECHO_N "checking for connect... $ECHO_C" >&6
20806if test "${ac_cv_func_connect+set}" = set; then
20807  echo $ECHO_N "(cached) $ECHO_C" >&6
20808else
20809  cat >conftest.$ac_ext <<_ACEOF
20810/* confdefs.h.  */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h.  */
20815/* Define connect to an innocuous variant, in case <limits.h> declares connect.
20816   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20817#define connect innocuous_connect
20818
20819/* System header to define __stub macros and hopefully few prototypes,
20820    which can conflict with char connect (); below.
20821    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20822    <limits.h> exists even on freestanding compilers.  */
20823
20824#ifdef __STDC__
20825# include <limits.h>
20826#else
20827# include <assert.h>
20828#endif
20829
20830#undef connect
20831
20832/* Override any gcc2 internal prototype to avoid an error.  */
20833#ifdef __cplusplus
20834extern "C"
20835{
20836#endif
20837/* We use char because int might match the return type of a gcc2
20838   builtin and then its argument prototype would still apply.  */
20839char connect ();
20840/* The GNU C library defines this for functions which it implements
20841    to always fail with ENOSYS.  Some functions are actually named
20842    something starting with __ and the normal name is an alias.  */
20843#if defined (__stub_connect) || defined (__stub___connect)
20844choke me
20845#else
20846char (*f) () = connect;
20847#endif
20848#ifdef __cplusplus
20849}
20850#endif
20851
20852int
20853main ()
20854{
20855return f != connect;
20856  ;
20857  return 0;
20858}
20859_ACEOF
20860rm -f conftest.$ac_objext conftest$ac_exeext
20861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20862  (eval $ac_link) 2>conftest.er1
20863  ac_status=$?
20864  grep -v '^ *+' conftest.er1 >conftest.err
20865  rm -f conftest.er1
20866  cat conftest.err >&5
20867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868  (exit $ac_status); } &&
20869	 { ac_try='test -z "$ac_c_werror_flag"
20870			 || test ! -s conftest.err'
20871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872  (eval $ac_try) 2>&5
20873  ac_status=$?
20874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875  (exit $ac_status); }; } &&
20876	 { ac_try='test -s conftest$ac_exeext'
20877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878  (eval $ac_try) 2>&5
20879  ac_status=$?
20880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881  (exit $ac_status); }; }; then
20882  ac_cv_func_connect=yes
20883else
20884  echo "$as_me: failed program was:" >&5
20885sed 's/^/| /' conftest.$ac_ext >&5
20886
20887ac_cv_func_connect=no
20888fi
20889rm -f conftest.err conftest.$ac_objext \
20890      conftest$ac_exeext conftest.$ac_ext
20891fi
20892echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20893echo "${ECHO_T}$ac_cv_func_connect" >&6
20894
20895    if test $ac_cv_func_connect = no; then
20896      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20897echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20898if test "${ac_cv_lib_socket_connect+set}" = set; then
20899  echo $ECHO_N "(cached) $ECHO_C" >&6
20900else
20901  ac_check_lib_save_LIBS=$LIBS
20902LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20903cat >conftest.$ac_ext <<_ACEOF
20904/* confdefs.h.  */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h.  */
20909
20910/* Override any gcc2 internal prototype to avoid an error.  */
20911#ifdef __cplusplus
20912extern "C"
20913#endif
20914/* We use char because int might match the return type of a gcc2
20915   builtin and then its argument prototype would still apply.  */
20916char connect ();
20917int
20918main ()
20919{
20920connect ();
20921  ;
20922  return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext conftest$ac_exeext
20926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20927  (eval $ac_link) 2>conftest.er1
20928  ac_status=$?
20929  grep -v '^ *+' conftest.er1 >conftest.err
20930  rm -f conftest.er1
20931  cat conftest.err >&5
20932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933  (exit $ac_status); } &&
20934	 { ac_try='test -z "$ac_c_werror_flag"
20935			 || test ! -s conftest.err'
20936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937  (eval $ac_try) 2>&5
20938  ac_status=$?
20939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940  (exit $ac_status); }; } &&
20941	 { ac_try='test -s conftest$ac_exeext'
20942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943  (eval $ac_try) 2>&5
20944  ac_status=$?
20945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946  (exit $ac_status); }; }; then
20947  ac_cv_lib_socket_connect=yes
20948else
20949  echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952ac_cv_lib_socket_connect=no
20953fi
20954rm -f conftest.err conftest.$ac_objext \
20955      conftest$ac_exeext conftest.$ac_ext
20956LIBS=$ac_check_lib_save_LIBS
20957fi
20958echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20959echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20960if test $ac_cv_lib_socket_connect = yes; then
20961  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20962fi
20963
20964    fi
20965
20966    # Guillermo Gomez says -lposix is necessary on A/UX.
20967    echo "$as_me:$LINENO: checking for remove" >&5
20968echo $ECHO_N "checking for remove... $ECHO_C" >&6
20969if test "${ac_cv_func_remove+set}" = set; then
20970  echo $ECHO_N "(cached) $ECHO_C" >&6
20971else
20972  cat >conftest.$ac_ext <<_ACEOF
20973/* confdefs.h.  */
20974_ACEOF
20975cat confdefs.h >>conftest.$ac_ext
20976cat >>conftest.$ac_ext <<_ACEOF
20977/* end confdefs.h.  */
20978/* Define remove to an innocuous variant, in case <limits.h> declares remove.
20979   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20980#define remove innocuous_remove
20981
20982/* System header to define __stub macros and hopefully few prototypes,
20983    which can conflict with char remove (); below.
20984    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985    <limits.h> exists even on freestanding compilers.  */
20986
20987#ifdef __STDC__
20988# include <limits.h>
20989#else
20990# include <assert.h>
20991#endif
20992
20993#undef remove
20994
20995/* Override any gcc2 internal prototype to avoid an error.  */
20996#ifdef __cplusplus
20997extern "C"
20998{
20999#endif
21000/* We use char because int might match the return type of a gcc2
21001   builtin and then its argument prototype would still apply.  */
21002char remove ();
21003/* The GNU C library defines this for functions which it implements
21004    to always fail with ENOSYS.  Some functions are actually named
21005    something starting with __ and the normal name is an alias.  */
21006#if defined (__stub_remove) || defined (__stub___remove)
21007choke me
21008#else
21009char (*f) () = remove;
21010#endif
21011#ifdef __cplusplus
21012}
21013#endif
21014
21015int
21016main ()
21017{
21018return f != remove;
21019  ;
21020  return 0;
21021}
21022_ACEOF
21023rm -f conftest.$ac_objext conftest$ac_exeext
21024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025  (eval $ac_link) 2>conftest.er1
21026  ac_status=$?
21027  grep -v '^ *+' conftest.er1 >conftest.err
21028  rm -f conftest.er1
21029  cat conftest.err >&5
21030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031  (exit $ac_status); } &&
21032	 { ac_try='test -z "$ac_c_werror_flag"
21033			 || test ! -s conftest.err'
21034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035  (eval $ac_try) 2>&5
21036  ac_status=$?
21037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038  (exit $ac_status); }; } &&
21039	 { ac_try='test -s conftest$ac_exeext'
21040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041  (eval $ac_try) 2>&5
21042  ac_status=$?
21043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044  (exit $ac_status); }; }; then
21045  ac_cv_func_remove=yes
21046else
21047  echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050ac_cv_func_remove=no
21051fi
21052rm -f conftest.err conftest.$ac_objext \
21053      conftest$ac_exeext conftest.$ac_ext
21054fi
21055echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21056echo "${ECHO_T}$ac_cv_func_remove" >&6
21057
21058    if test $ac_cv_func_remove = no; then
21059      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21060echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21061if test "${ac_cv_lib_posix_remove+set}" = set; then
21062  echo $ECHO_N "(cached) $ECHO_C" >&6
21063else
21064  ac_check_lib_save_LIBS=$LIBS
21065LIBS="-lposix  $LIBS"
21066cat >conftest.$ac_ext <<_ACEOF
21067/* confdefs.h.  */
21068_ACEOF
21069cat confdefs.h >>conftest.$ac_ext
21070cat >>conftest.$ac_ext <<_ACEOF
21071/* end confdefs.h.  */
21072
21073/* Override any gcc2 internal prototype to avoid an error.  */
21074#ifdef __cplusplus
21075extern "C"
21076#endif
21077/* We use char because int might match the return type of a gcc2
21078   builtin and then its argument prototype would still apply.  */
21079char remove ();
21080int
21081main ()
21082{
21083remove ();
21084  ;
21085  return 0;
21086}
21087_ACEOF
21088rm -f conftest.$ac_objext conftest$ac_exeext
21089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21090  (eval $ac_link) 2>conftest.er1
21091  ac_status=$?
21092  grep -v '^ *+' conftest.er1 >conftest.err
21093  rm -f conftest.er1
21094  cat conftest.err >&5
21095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096  (exit $ac_status); } &&
21097	 { ac_try='test -z "$ac_c_werror_flag"
21098			 || test ! -s conftest.err'
21099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100  (eval $ac_try) 2>&5
21101  ac_status=$?
21102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103  (exit $ac_status); }; } &&
21104	 { ac_try='test -s conftest$ac_exeext'
21105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106  (eval $ac_try) 2>&5
21107  ac_status=$?
21108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109  (exit $ac_status); }; }; then
21110  ac_cv_lib_posix_remove=yes
21111else
21112  echo "$as_me: failed program was:" >&5
21113sed 's/^/| /' conftest.$ac_ext >&5
21114
21115ac_cv_lib_posix_remove=no
21116fi
21117rm -f conftest.err conftest.$ac_objext \
21118      conftest$ac_exeext conftest.$ac_ext
21119LIBS=$ac_check_lib_save_LIBS
21120fi
21121echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21122echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21123if test $ac_cv_lib_posix_remove = yes; then
21124  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21125fi
21126
21127    fi
21128
21129    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21130    echo "$as_me:$LINENO: checking for shmat" >&5
21131echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21132if test "${ac_cv_func_shmat+set}" = set; then
21133  echo $ECHO_N "(cached) $ECHO_C" >&6
21134else
21135  cat >conftest.$ac_ext <<_ACEOF
21136/* confdefs.h.  */
21137_ACEOF
21138cat confdefs.h >>conftest.$ac_ext
21139cat >>conftest.$ac_ext <<_ACEOF
21140/* end confdefs.h.  */
21141/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21142   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21143#define shmat innocuous_shmat
21144
21145/* System header to define __stub macros and hopefully few prototypes,
21146    which can conflict with char shmat (); below.
21147    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21148    <limits.h> exists even on freestanding compilers.  */
21149
21150#ifdef __STDC__
21151# include <limits.h>
21152#else
21153# include <assert.h>
21154#endif
21155
21156#undef shmat
21157
21158/* Override any gcc2 internal prototype to avoid an error.  */
21159#ifdef __cplusplus
21160extern "C"
21161{
21162#endif
21163/* We use char because int might match the return type of a gcc2
21164   builtin and then its argument prototype would still apply.  */
21165char shmat ();
21166/* The GNU C library defines this for functions which it implements
21167    to always fail with ENOSYS.  Some functions are actually named
21168    something starting with __ and the normal name is an alias.  */
21169#if defined (__stub_shmat) || defined (__stub___shmat)
21170choke me
21171#else
21172char (*f) () = shmat;
21173#endif
21174#ifdef __cplusplus
21175}
21176#endif
21177
21178int
21179main ()
21180{
21181return f != shmat;
21182  ;
21183  return 0;
21184}
21185_ACEOF
21186rm -f conftest.$ac_objext conftest$ac_exeext
21187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21188  (eval $ac_link) 2>conftest.er1
21189  ac_status=$?
21190  grep -v '^ *+' conftest.er1 >conftest.err
21191  rm -f conftest.er1
21192  cat conftest.err >&5
21193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194  (exit $ac_status); } &&
21195	 { ac_try='test -z "$ac_c_werror_flag"
21196			 || test ! -s conftest.err'
21197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198  (eval $ac_try) 2>&5
21199  ac_status=$?
21200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201  (exit $ac_status); }; } &&
21202	 { ac_try='test -s conftest$ac_exeext'
21203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204  (eval $ac_try) 2>&5
21205  ac_status=$?
21206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207  (exit $ac_status); }; }; then
21208  ac_cv_func_shmat=yes
21209else
21210  echo "$as_me: failed program was:" >&5
21211sed 's/^/| /' conftest.$ac_ext >&5
21212
21213ac_cv_func_shmat=no
21214fi
21215rm -f conftest.err conftest.$ac_objext \
21216      conftest$ac_exeext conftest.$ac_ext
21217fi
21218echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21219echo "${ECHO_T}$ac_cv_func_shmat" >&6
21220
21221    if test $ac_cv_func_shmat = no; then
21222      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21223echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21224if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21225  echo $ECHO_N "(cached) $ECHO_C" >&6
21226else
21227  ac_check_lib_save_LIBS=$LIBS
21228LIBS="-lipc  $LIBS"
21229cat >conftest.$ac_ext <<_ACEOF
21230/* confdefs.h.  */
21231_ACEOF
21232cat confdefs.h >>conftest.$ac_ext
21233cat >>conftest.$ac_ext <<_ACEOF
21234/* end confdefs.h.  */
21235
21236/* Override any gcc2 internal prototype to avoid an error.  */
21237#ifdef __cplusplus
21238extern "C"
21239#endif
21240/* We use char because int might match the return type of a gcc2
21241   builtin and then its argument prototype would still apply.  */
21242char shmat ();
21243int
21244main ()
21245{
21246shmat ();
21247  ;
21248  return 0;
21249}
21250_ACEOF
21251rm -f conftest.$ac_objext conftest$ac_exeext
21252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21253  (eval $ac_link) 2>conftest.er1
21254  ac_status=$?
21255  grep -v '^ *+' conftest.er1 >conftest.err
21256  rm -f conftest.er1
21257  cat conftest.err >&5
21258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259  (exit $ac_status); } &&
21260	 { ac_try='test -z "$ac_c_werror_flag"
21261			 || test ! -s conftest.err'
21262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263  (eval $ac_try) 2>&5
21264  ac_status=$?
21265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266  (exit $ac_status); }; } &&
21267	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21273  ac_cv_lib_ipc_shmat=yes
21274else
21275  echo "$as_me: failed program was:" >&5
21276sed 's/^/| /' conftest.$ac_ext >&5
21277
21278ac_cv_lib_ipc_shmat=no
21279fi
21280rm -f conftest.err conftest.$ac_objext \
21281      conftest$ac_exeext conftest.$ac_ext
21282LIBS=$ac_check_lib_save_LIBS
21283fi
21284echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21285echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21286if test $ac_cv_lib_ipc_shmat = yes; then
21287  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21288fi
21289
21290    fi
21291  fi
21292
21293  # Check for libraries that X11R6 Xt/Xaw programs need.
21294  ac_save_LDFLAGS=$LDFLAGS
21295  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21296  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21297  # check for ICE first), but we must link in the order -lSM -lICE or
21298  # we get undefined symbols.  So assume we have SM if we have ICE.
21299  # These have to be linked with before -lX11, unlike the other
21300  # libraries we check for below, so use a different variable.
21301  # John Interrante, Karl Berry
21302  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21303echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21304if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21305  echo $ECHO_N "(cached) $ECHO_C" >&6
21306else
21307  ac_check_lib_save_LIBS=$LIBS
21308LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21309cat >conftest.$ac_ext <<_ACEOF
21310/* confdefs.h.  */
21311_ACEOF
21312cat confdefs.h >>conftest.$ac_ext
21313cat >>conftest.$ac_ext <<_ACEOF
21314/* end confdefs.h.  */
21315
21316/* Override any gcc2 internal prototype to avoid an error.  */
21317#ifdef __cplusplus
21318extern "C"
21319#endif
21320/* We use char because int might match the return type of a gcc2
21321   builtin and then its argument prototype would still apply.  */
21322char IceConnectionNumber ();
21323int
21324main ()
21325{
21326IceConnectionNumber ();
21327  ;
21328  return 0;
21329}
21330_ACEOF
21331rm -f conftest.$ac_objext conftest$ac_exeext
21332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333  (eval $ac_link) 2>conftest.er1
21334  ac_status=$?
21335  grep -v '^ *+' conftest.er1 >conftest.err
21336  rm -f conftest.er1
21337  cat conftest.err >&5
21338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339  (exit $ac_status); } &&
21340	 { ac_try='test -z "$ac_c_werror_flag"
21341			 || test ! -s conftest.err'
21342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343  (eval $ac_try) 2>&5
21344  ac_status=$?
21345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346  (exit $ac_status); }; } &&
21347	 { ac_try='test -s conftest$ac_exeext'
21348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349  (eval $ac_try) 2>&5
21350  ac_status=$?
21351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352  (exit $ac_status); }; }; then
21353  ac_cv_lib_ICE_IceConnectionNumber=yes
21354else
21355  echo "$as_me: failed program was:" >&5
21356sed 's/^/| /' conftest.$ac_ext >&5
21357
21358ac_cv_lib_ICE_IceConnectionNumber=no
21359fi
21360rm -f conftest.err conftest.$ac_objext \
21361      conftest$ac_exeext conftest.$ac_ext
21362LIBS=$ac_check_lib_save_LIBS
21363fi
21364echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21365echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21366if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21367  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21368fi
21369
21370  LDFLAGS=$ac_save_LDFLAGS
21371
21372fi
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391echo "$as_me:$LINENO: checking whether libXp is available" >&5
21392echo $ECHO_N "checking whether libXp is available... $ECHO_C" >&6
21393if test "${lt_cv_libxp+set}" = set; then
21394  echo $ECHO_N "(cached) $ECHO_C" >&6
21395else
21396  lt_save_CFLAGS="$CFLAGS"
21397lt_save_CPPFLAGS="$CPPFLAGS"
21398lt_save_LIBS="$LIBS"
21399LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
21400CFLAGS="$X_CFLAGS $CFLAGS"
21401CPPFLAGS="$X_CFLAGS $CPPFLAGS"
21402cat >conftest.$ac_ext <<_ACEOF
21403/* confdefs.h.  */
21404_ACEOF
21405cat confdefs.h >>conftest.$ac_ext
21406cat >>conftest.$ac_ext <<_ACEOF
21407/* end confdefs.h.  */
21408
21409#include <X11/Intrinsic.h>
21410#include <X11/extensions/Print.h>
21411
21412int
21413main ()
21414{
21415
21416int main() {
21417Display *display=NULL;
21418short   major_version, minor_version;
21419Status rc;
21420rc=XpQueryVersion(display, &major_version, &minor_version);
21421exit(0);
21422}
21423
21424  ;
21425  return 0;
21426}
21427_ACEOF
21428rm -f conftest.$ac_objext conftest$ac_exeext
21429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430  (eval $ac_link) 2>conftest.er1
21431  ac_status=$?
21432  grep -v '^ *+' conftest.er1 >conftest.err
21433  rm -f conftest.er1
21434  cat conftest.err >&5
21435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436  (exit $ac_status); } &&
21437	 { ac_try='test -z "$ac_c_werror_flag"
21438			 || test ! -s conftest.err'
21439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440  (eval $ac_try) 2>&5
21441  ac_status=$?
21442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443  (exit $ac_status); }; } &&
21444	 { ac_try='test -s conftest$ac_exeext'
21445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446  (eval $ac_try) 2>&5
21447  ac_status=$?
21448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449  (exit $ac_status); }; }; then
21450  lt_cv_libxp=yes
21451else
21452  echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455lt_cv_libxp=no
21456fi
21457rm -f conftest.err conftest.$ac_objext \
21458      conftest$ac_exeext conftest.$ac_ext
21459
21460fi
21461echo "$as_me:$LINENO: result: $lt_cv_libxp" >&5
21462echo "${ECHO_T}$lt_cv_libxp" >&6
21463if test "$lt_cv_libxp" = "yes"; then
21464  cat >>confdefs.h <<\_ACEOF
21465#define HAVE_LIB_XP 1
21466_ACEOF
21467
21468  LT_HAVELIBXP=1
21469else
21470  LT_HAVELIBXP=0
21471fi
21472
21473
21474if test "$lt_cv_libxp" = "yes"; then
21475  Have_Libxp_TRUE=
21476  Have_Libxp_FALSE='#'
21477else
21478  Have_Libxp_TRUE='#'
21479  Have_Libxp_FALSE=
21480fi
21481
21482
21483CFLAGS="$lt_save_CFLAGS"
21484CPPFLAGS="$lt_save_CPPFLAGS"
21485LIBS="$lt_save_LIBS"
21486
21487
21488echo "$as_me:$LINENO: checking whether to link -lXp" >&5
21489echo $ECHO_N "checking whether to link -lXp... $ECHO_C" >&6
21490if test "$lt_cv_libxp" = "yes";
21491then
21492  XPLIB="-lXp -lXext"
21493else
21494  XPLIB=""
21495fi
21496
21497echo "$as_me:$LINENO: result: $XPLIB" >&5
21498echo "${ECHO_T}$XPLIB" >&6
21499
21500
21501echo "$as_me:$LINENO: checking whether libXp is available" >&5
21502echo $ECHO_N "checking whether libXp is available... $ECHO_C" >&6
21503if test "${lt_cv_libxp+set}" = set; then
21504  echo $ECHO_N "(cached) $ECHO_C" >&6
21505else
21506  lt_save_CFLAGS="$CFLAGS"
21507lt_save_CPPFLAGS="$CPPFLAGS"
21508lt_save_LIBS="$LIBS"
21509LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
21510CFLAGS="$X_CFLAGS $CFLAGS"
21511CPPFLAGS="$X_CFLAGS $CPPFLAGS"
21512cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h.  */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h.  */
21518
21519#include <X11/Intrinsic.h>
21520#include <X11/extensions/Print.h>
21521
21522int
21523main ()
21524{
21525
21526int main() {
21527Display *display=NULL;
21528short   major_version, minor_version;
21529Status rc;
21530rc=XpQueryVersion(display, &major_version, &minor_version);
21531exit(0);
21532}
21533
21534  ;
21535  return 0;
21536}
21537_ACEOF
21538rm -f conftest.$ac_objext conftest$ac_exeext
21539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21540  (eval $ac_link) 2>conftest.er1
21541  ac_status=$?
21542  grep -v '^ *+' conftest.er1 >conftest.err
21543  rm -f conftest.er1
21544  cat conftest.err >&5
21545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546  (exit $ac_status); } &&
21547	 { ac_try='test -z "$ac_c_werror_flag"
21548			 || test ! -s conftest.err'
21549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550  (eval $ac_try) 2>&5
21551  ac_status=$?
21552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553  (exit $ac_status); }; } &&
21554	 { ac_try='test -s conftest$ac_exeext'
21555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556  (eval $ac_try) 2>&5
21557  ac_status=$?
21558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559  (exit $ac_status); }; }; then
21560  lt_cv_libxp=yes
21561else
21562  echo "$as_me: failed program was:" >&5
21563sed 's/^/| /' conftest.$ac_ext >&5
21564
21565lt_cv_libxp=no
21566fi
21567rm -f conftest.err conftest.$ac_objext \
21568      conftest$ac_exeext conftest.$ac_ext
21569
21570fi
21571echo "$as_me:$LINENO: result: $lt_cv_libxp" >&5
21572echo "${ECHO_T}$lt_cv_libxp" >&6
21573if test "$lt_cv_libxp" = "yes"; then
21574  cat >>confdefs.h <<\_ACEOF
21575#define HAVE_LIB_XP 1
21576_ACEOF
21577
21578  LT_HAVE_XP="yes"
21579else
21580  LT_HAVE_XP="no"
21581fi
21582
21583
21584if test "$lt_cv_libxp" = "yes"; then
21585  Have_Libxp_TRUE=
21586  Have_Libxp_FALSE='#'
21587else
21588  Have_Libxp_TRUE='#'
21589  Have_Libxp_FALSE=
21590fi
21591
21592
21593CFLAGS="$lt_save_CFLAGS"
21594CPPFLAGS="$lt_save_CPPFLAGS"
21595LIBS="$lt_save_LIBS"
21596
21597
21598
21599
21600
21601
21602motif_includes=
21603motif_libraries=
21604
21605
21606
21607# Check whether --with-motif-includes or --without-motif-includes was given.
21608if test "${with_motif_includes+set}" = set; then
21609  withval="$with_motif_includes"
21610  motif_includes="$withval"
21611fi;
21612
21613
21614# Check whether --with-motif-libraries or --without-motif-libraries was given.
21615if test "${with_motif_libraries+set}" = set; then
21616  withval="$with_motif_libraries"
21617  motif_libraries="$withval"
21618fi;
21619
21620echo "$as_me:$LINENO: checking for Motif" >&5
21621echo $ECHO_N "checking for Motif... $ECHO_C" >&6
21622
21623#
21624#
21625# Search the include files.
21626#
21627if test "$motif_includes" = ""; then
21628if test "${ac_cv_motif_includes+set}" = set; then
21629  echo $ECHO_N "(cached) $ECHO_C" >&6
21630else
21631
21632ac_motif_save_LIBS="$LIBS"
21633ac_motif_save_INCLUDES="$INCLUDES"
21634ac_motif_save_CPPFLAGS="$CPPFLAGS"
21635ac_motif_save_LDFLAGS="$LDFLAGS"
21636#
21637LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
21638INCLUDES="$X_CFLAGS $INCLUDES"
21639CPPFLAGS="$X_CFLAGS $CPPFLAGS"
21640LDFLAGS="$X_LIBS $LDFLAGS"
21641#
21642ac_cv_motif_includes="none"
21643cat >conftest.$ac_ext <<_ACEOF
21644/* confdefs.h.  */
21645_ACEOF
21646cat confdefs.h >>conftest.$ac_ext
21647cat >>conftest.$ac_ext <<_ACEOF
21648/* end confdefs.h.  */
21649#include <Xm/Xm.h>
21650int
21651main ()
21652{
21653int a;
21654  ;
21655  return 0;
21656}
21657_ACEOF
21658rm -f conftest.$ac_objext
21659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660  (eval $ac_compile) 2>conftest.er1
21661  ac_status=$?
21662  grep -v '^ *+' conftest.er1 >conftest.err
21663  rm -f conftest.er1
21664  cat conftest.err >&5
21665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666  (exit $ac_status); } &&
21667	 { ac_try='test -z "$ac_c_werror_flag"
21668			 || test ! -s conftest.err'
21669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670  (eval $ac_try) 2>&5
21671  ac_status=$?
21672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673  (exit $ac_status); }; } &&
21674	 { ac_try='test -s conftest.$ac_objext'
21675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676  (eval $ac_try) 2>&5
21677  ac_status=$?
21678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679  (exit $ac_status); }; }; then
21680
21681# Xm/Xm.h is in the standard search path.
21682ac_cv_motif_includes=
21683
21684else
21685  echo "$as_me: failed program was:" >&5
21686sed 's/^/| /' conftest.$ac_ext >&5
21687
21688
21689# Xm/Xm.h is not in the standard search path.
21690# Locate it and put its directory in `motif_includes'
21691#
21692# /usr/include/Motif* are used on HP-UX (Motif).
21693# /usr/include/X11* are used on HP-UX (X and Athena).
21694# /usr/dt is used on Solaris (Motif).
21695# /usr/openwin is used on Solaris (X and Athena).
21696# Other directories are just guesses.
21697for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
21698           /usr/include/Motif2.1 /usr/include/Motif2.0 /usr/include/Motif1.2  \
21699           /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 \
21700           /usr/X11/include /usr/X11R6/include /usr/X11R5/include \
21701           /usr/dt/include /usr/openwin/include \
21702           /usr/dt/*/include /opt/*/include /usr/include/Motif* \
21703           "${prefix}"/*/include /usr/*/include /usr/local/*/include \
21704           "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
21705if test -f "$dir/Xm/Xm.h"; then
21706ac_cv_motif_includes="$dir"
21707break
21708fi
21709done
21710
21711fi
21712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21713#
21714LIBS="$ac_motif_save_LIBS"
21715INCLUDES="$ac_motif_save_INCLUDES"
21716CPPFLAGS="$ac_motif_save_CPPFLAGS"
21717LDFLAGS="$ac_motif_save_LDFLAGS"
21718
21719fi
21720
21721motif_includes="$ac_cv_motif_includes"
21722fi
21723#
21724#
21725# Now for the libraries.
21726#
21727if test "$motif_libraries" = ""; then
21728if test "${ac_cv_motif_libraries+set}" = set; then
21729  echo $ECHO_N "(cached) $ECHO_C" >&6
21730else
21731
21732ac_motif_save_LIBS="$LIBS"
21733ac_motif_save_INCLUDES="$INCLUDES"
21734ac_motif_save_CPPFLAGS="$CPPFLAGS"
21735ac_motif_save_LDFLAGS="$LDFLAGS"
21736#
21737LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
21738INCLUDES="$X_CFLAGS $INCLUDES"
21739CPPFLAGS="$X_CFLAGS $CPPFLAGS"
21740LDFLAGS="$X_LIBS $LDFLAGS"
21741#
21742ac_cv_motif_libraries="none"
21743cat >conftest.$ac_ext <<_ACEOF
21744/* confdefs.h.  */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h.  */
21749#include <Xm/Xm.h>
21750int
21751main ()
21752{
21753XtToolkitInitialize();
21754  ;
21755  return 0;
21756}
21757_ACEOF
21758rm -f conftest.$ac_objext conftest$ac_exeext
21759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21760  (eval $ac_link) 2>conftest.er1
21761  ac_status=$?
21762  grep -v '^ *+' conftest.er1 >conftest.err
21763  rm -f conftest.er1
21764  cat conftest.err >&5
21765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766  (exit $ac_status); } &&
21767	 { ac_try='test -z "$ac_c_werror_flag"
21768			 || test ! -s conftest.err'
21769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770  (eval $ac_try) 2>&5
21771  ac_status=$?
21772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773  (exit $ac_status); }; } &&
21774	 { ac_try='test -s conftest$ac_exeext'
21775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776  (eval $ac_try) 2>&5
21777  ac_status=$?
21778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779  (exit $ac_status); }; }; then
21780
21781# libXm.a is in the standard search path.
21782ac_cv_motif_libraries=
21783
21784else
21785  echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788
21789# libXm.a is not in the standard search path.
21790# Locate it and put its directory in `motif_libraries'
21791#
21792# /usr/lib/Motif* are used on HP-UX (Motif).
21793# /usr/lib/X11* are used on HP-UX (X and Athena).
21794# /usr/dt is used on Solaris (Motif).
21795# /usr/lesstif is used on Linux (Lesstif).
21796# /usr/openwin is used on Solaris (X and Athena).
21797# Other directories are just guesses.
21798for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
21799           /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \
21800           /usr/lib/X11 /usr/lib/X11R6 /usr/lib/X11R5 \
21801           /usr/X11/lib /usr/X11R6/lib /usr/X11R5/lib \
21802           /usr/dt/lib /usr/openwin/lib \
21803           /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
21804           /usr/lesstif*/lib /usr/lib/Lesstif* \
21805           "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
21806           "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
21807if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then
21808ac_cv_motif_libraries="$dir"
21809break
21810fi
21811done
21812
21813fi
21814rm -f conftest.err conftest.$ac_objext \
21815      conftest$ac_exeext conftest.$ac_ext
21816#
21817LIBS="$ac_motif_save_LIBS"
21818INCLUDES="$ac_motif_save_INCLUDES"
21819CPPFLAGS="$ac_motif_save_CPPFLAGS"
21820LDFLAGS="$ac_motif_save_LDFLAGS"
21821
21822fi
21823
21824#
21825motif_libraries="$ac_cv_motif_libraries"
21826fi
21827#
21828# Provide an easier way to link
21829#
21830if test "$motif_includes" = "none" -o "$motif_libraries" = "none"; then
21831        with_motif="no"
21832else
21833        with_motif="yes"
21834fi
21835
21836
21837echo "$as_me:$LINENO: checking whether libXp is available" >&5
21838echo $ECHO_N "checking whether libXp is available... $ECHO_C" >&6
21839if test "${lt_cv_libxp+set}" = set; then
21840  echo $ECHO_N "(cached) $ECHO_C" >&6
21841else
21842  lt_save_CFLAGS="$CFLAGS"
21843lt_save_CPPFLAGS="$CPPFLAGS"
21844lt_save_LIBS="$LIBS"
21845LIBS="$X_LIBS -lXp -lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
21846CFLAGS="$X_CFLAGS $CFLAGS"
21847CPPFLAGS="$X_CFLAGS $CPPFLAGS"
21848cat >conftest.$ac_ext <<_ACEOF
21849/* confdefs.h.  */
21850_ACEOF
21851cat confdefs.h >>conftest.$ac_ext
21852cat >>conftest.$ac_ext <<_ACEOF
21853/* end confdefs.h.  */
21854
21855#include <X11/Intrinsic.h>
21856#include <X11/extensions/Print.h>
21857
21858int
21859main ()
21860{
21861
21862int main() {
21863Display *display=NULL;
21864short   major_version, minor_version;
21865Status rc;
21866rc=XpQueryVersion(display, &major_version, &minor_version);
21867exit(0);
21868}
21869
21870  ;
21871  return 0;
21872}
21873_ACEOF
21874rm -f conftest.$ac_objext conftest$ac_exeext
21875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21876  (eval $ac_link) 2>conftest.er1
21877  ac_status=$?
21878  grep -v '^ *+' conftest.er1 >conftest.err
21879  rm -f conftest.er1
21880  cat conftest.err >&5
21881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882  (exit $ac_status); } &&
21883	 { ac_try='test -z "$ac_c_werror_flag"
21884			 || test ! -s conftest.err'
21885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886  (eval $ac_try) 2>&5
21887  ac_status=$?
21888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889  (exit $ac_status); }; } &&
21890	 { ac_try='test -s conftest$ac_exeext'
21891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892  (eval $ac_try) 2>&5
21893  ac_status=$?
21894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895  (exit $ac_status); }; }; then
21896  lt_cv_libxp=yes
21897else
21898  echo "$as_me: failed program was:" >&5
21899sed 's/^/| /' conftest.$ac_ext >&5
21900
21901lt_cv_libxp=no
21902fi
21903rm -f conftest.err conftest.$ac_objext \
21904      conftest$ac_exeext conftest.$ac_ext
21905
21906fi
21907echo "$as_me:$LINENO: result: $lt_cv_libxp" >&5
21908echo "${ECHO_T}$lt_cv_libxp" >&6
21909if test "$lt_cv_libxp" = "yes"; then
21910  cat >>confdefs.h <<\_ACEOF
21911#define HAVE_LIB_XP 1
21912_ACEOF
21913
21914  LT_HAVE_XP="yes"
21915else
21916  LT_HAVE_XP="no"
21917fi
21918
21919
21920if test "$lt_cv_libxp" = "yes"; then
21921  Have_Libxp_TRUE=
21922  Have_Libxp_FALSE='#'
21923else
21924  Have_Libxp_TRUE='#'
21925  Have_Libxp_FALSE=
21926fi
21927
21928
21929CFLAGS="$lt_save_CFLAGS"
21930CPPFLAGS="$lt_save_CPPFLAGS"
21931LIBS="$lt_save_LIBS"
21932
21933if test "$LT_HAVE_XP" = "yes"; then
21934	XPLIB="-lXp -lXext"
21935else
21936	XPLIB=""
21937fi
21938
21939if test "$with_motif" != "no"; then
21940        if test "$motif_libraries" = ""; then
21941                link_motif="-lXm $XPLIB"
21942                MOTIF_LIBS="-lXm $XPLIB"
21943        else
21944                link_motif="-L$motif_libraries -lXm $XPLIB"
21945                MOTIF_LIBS="-L$motif_libraries -lXm $XPLIB"
21946        fi
21947        if test "$motif_includes" != ""; then
21948                include_motif="-I$motif_includes"
21949                MOTIF_CFLAGS="-I$motif_includes"
21950        fi
21951	cat >>confdefs.h <<\_ACEOF
21952#define HAVE_MOTIF 1
21953_ACEOF
21954
21955else
21956        with_motif="no"
21957fi
21958#
21959
21960
21961
21962
21963#
21964#
21965#
21966motif_libraries_result="$motif_libraries"
21967motif_includes_result="$motif_includes"
21968test "$motif_libraries_result" = "" && motif_libraries_result="in default path"
21969test "$motif_includes_result" = "" && motif_includes_result="in default path"
21970test "$motif_libraries_result" = "none" && motif_libraries_result="(none)"
21971test "$motif_includes_result" = "none" && motif_includes_result="(none)"
21972echo "$as_me:$LINENO: result: libraries $motif_libraries_result, headers $motif_includes_result" >&5
21973echo "${ECHO_T}libraries $motif_libraries_result, headers $motif_includes_result" >&6
21974
21975
21976# Check whether --enable-production or --disable-production was given.
21977if test "${enable_production+set}" = set; then
21978  enableval="$enable_production"
21979
21980fi;
21981
21982if test "x$enable_production" = "xyes" ; then
21983	cat >>confdefs.h <<\_ACEOF
21984#define XBAE_PRODUCTION 1
21985_ACEOF
21986
21987fi
21988
21989if (aclocal --print-ac-dir) </dev/null >/dev/null 2>&1 && test -w `aclocal --print-ac-dir`; then
21990    ACLOCALDIR=`aclocal --print-ac-dir`
21991
21992fi
21993
21994
21995if test x$ACLOCALDIR != x ; then
21996  Aclocal_TRUE=
21997  Aclocal_FALSE='#'
21998else
21999  Aclocal_TRUE='#'
22000  Aclocal_FALSE=
22001fi
22002
22003
22004
22005echo "$as_me:$LINENO: checking whether to support EditRes" >&5
22006echo $ECHO_N "checking whether to support EditRes... $ECHO_C" >&6
22007
22008# Check whether --with-editres or --without-editres was given.
22009if test "${with_editres+set}" = set; then
22010  withval="$with_editres"
22011
22012fi;
22013if test -z "$with_editres"; then
22014  use_editres=yes
22015else
22016  use_editres=$with_editres
22017fi
22018echo "$as_me:$LINENO: result: $use_editres" >&5
22019echo "${ECHO_T}$use_editres" >&6
22020
22021if test x$use_editres = xyes
22022then
22023	cat >>confdefs.h <<\_ACEOF
22024#define USE_EDITRES 1
22025_ACEOF
22026
22027elif test x$use_editres = xset
22028then
22029	cat >>confdefs.h <<\_ACEOF
22030#define USE_EDITRES 1
22031_ACEOF
22032
22033fi
22034
22035
22036if test x$use_editres = xyes; then
22037  UseEditres_TRUE=
22038  UseEditres_FALSE='#'
22039else
22040  UseEditres_TRUE='#'
22041  UseEditres_FALSE=
22042fi
22043
22044
22045
22046# Check whether --enable-exceed or --disable-exceed was given.
22047if test "${enable_exceed+set}" = set; then
22048  enableval="$enable_exceed"
22049
22050fi;
22051
22052if test "x$enable_exceed" = "xyes" ; then
22053	cat >>confdefs.h <<\_ACEOF
22054#define USING_EXCEED 1
22055_ACEOF
22056
22057fi
22058
22059ac_save_CPPFLAGS="$CPPFLAGS"
22060CPPFLAGS="$CPPFLAGS $X_CFLAGS"
22061
22062
22063for ac_header in xpm.h X11/xpm.h
22064do
22065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22066if eval "test \"\${$as_ac_Header+set}\" = set"; then
22067  echo "$as_me:$LINENO: checking for $ac_header" >&5
22068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22069if eval "test \"\${$as_ac_Header+set}\" = set"; then
22070  echo $ECHO_N "(cached) $ECHO_C" >&6
22071fi
22072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22074else
22075  # Is the header compilable?
22076echo "$as_me:$LINENO: checking $ac_header usability" >&5
22077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22078cat >conftest.$ac_ext <<_ACEOF
22079/* confdefs.h.  */
22080_ACEOF
22081cat confdefs.h >>conftest.$ac_ext
22082cat >>conftest.$ac_ext <<_ACEOF
22083/* end confdefs.h.  */
22084$ac_includes_default
22085#include <$ac_header>
22086_ACEOF
22087rm -f conftest.$ac_objext
22088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22089  (eval $ac_compile) 2>conftest.er1
22090  ac_status=$?
22091  grep -v '^ *+' conftest.er1 >conftest.err
22092  rm -f conftest.er1
22093  cat conftest.err >&5
22094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095  (exit $ac_status); } &&
22096	 { ac_try='test -z "$ac_c_werror_flag"
22097			 || test ! -s conftest.err'
22098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099  (eval $ac_try) 2>&5
22100  ac_status=$?
22101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102  (exit $ac_status); }; } &&
22103	 { ac_try='test -s conftest.$ac_objext'
22104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105  (eval $ac_try) 2>&5
22106  ac_status=$?
22107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108  (exit $ac_status); }; }; then
22109  ac_header_compiler=yes
22110else
22111  echo "$as_me: failed program was:" >&5
22112sed 's/^/| /' conftest.$ac_ext >&5
22113
22114ac_header_compiler=no
22115fi
22116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22118echo "${ECHO_T}$ac_header_compiler" >&6
22119
22120# Is the header present?
22121echo "$as_me:$LINENO: checking $ac_header presence" >&5
22122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22123cat >conftest.$ac_ext <<_ACEOF
22124/* confdefs.h.  */
22125_ACEOF
22126cat confdefs.h >>conftest.$ac_ext
22127cat >>conftest.$ac_ext <<_ACEOF
22128/* end confdefs.h.  */
22129#include <$ac_header>
22130_ACEOF
22131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22132  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22133  ac_status=$?
22134  grep -v '^ *+' conftest.er1 >conftest.err
22135  rm -f conftest.er1
22136  cat conftest.err >&5
22137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138  (exit $ac_status); } >/dev/null; then
22139  if test -s conftest.err; then
22140    ac_cpp_err=$ac_c_preproc_warn_flag
22141    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22142  else
22143    ac_cpp_err=
22144  fi
22145else
22146  ac_cpp_err=yes
22147fi
22148if test -z "$ac_cpp_err"; then
22149  ac_header_preproc=yes
22150else
22151  echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
22154  ac_header_preproc=no
22155fi
22156rm -f conftest.err conftest.$ac_ext
22157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22158echo "${ECHO_T}$ac_header_preproc" >&6
22159
22160# So?  What about this header?
22161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22162  yes:no: )
22163    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22165    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22167    ac_header_preproc=yes
22168    ;;
22169  no:yes:* )
22170    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22172    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22173echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22174    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22176    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22177echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22178    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22180    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22182    (
22183      cat <<\_ASBOX
22184## ------------------------------- ##
22185## Report this to the Xbae lists.  ##
22186## ------------------------------- ##
22187_ASBOX
22188    ) |
22189      sed "s/^/$as_me: WARNING:     /" >&2
22190    ;;
22191esac
22192echo "$as_me:$LINENO: checking for $ac_header" >&5
22193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22194if eval "test \"\${$as_ac_Header+set}\" = set"; then
22195  echo $ECHO_N "(cached) $ECHO_C" >&6
22196else
22197  eval "$as_ac_Header=\$ac_header_preproc"
22198fi
22199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22201
22202fi
22203if test `eval echo '${'$as_ac_Header'}'` = yes; then
22204  cat >>confdefs.h <<_ACEOF
22205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22206_ACEOF
22207
22208fi
22209
22210done
22211
22212CPPFLAGS="$ac_save_CPPFLAGS"
22213
22214echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
22215echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
22216
22217# Check whether --with-dmalloc or --without-dmalloc was given.
22218if test "${with_dmalloc+set}" = set; then
22219  withval="$with_dmalloc"
22220  if test "$withval" = no; then
22221  echo "$as_me:$LINENO: result: no" >&5
22222echo "${ECHO_T}no" >&6
22223else
22224  if test "$withval" != yes; then
22225     CFLAGS="$CFLAGS -I$withval/include -DDMALLOC_FUNC_CHECK"
22226     LDFLAGS="$LDFLAGS -L$withval/lib -ldmalloc"
22227     LIBS="$LIBS -L$withval/lib -ldmalloc"
22228  else
22229     CFLAGS="$CFLAGS -DDMALLOC_FUNC_CHECK"
22230     LDFLAGS="$LDFLAGS -ldmalloc"
22231     LIBS="$LIBS -ldmalloc"
22232  fi
22233  cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h.  */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h.  */
22239#include <dmalloc.h>
22240int
22241main ()
22242{
22243char *ptr;
22244  ptr=malloc(1);
22245  dmalloc_shutdown();
22246
22247  ;
22248  return 0;
22249}
22250_ACEOF
22251rm -f conftest.$ac_objext conftest$ac_exeext
22252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22253  (eval $ac_link) 2>conftest.er1
22254  ac_status=$?
22255  grep -v '^ *+' conftest.er1 >conftest.err
22256  rm -f conftest.er1
22257  cat conftest.err >&5
22258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259  (exit $ac_status); } &&
22260	 { ac_try='test -z "$ac_c_werror_flag"
22261			 || test ! -s conftest.err'
22262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263  (eval $ac_try) 2>&5
22264  ac_status=$?
22265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266  (exit $ac_status); }; } &&
22267	 { ac_try='test -s conftest$ac_exeext'
22268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269  (eval $ac_try) 2>&5
22270  ac_status=$?
22271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272  (exit $ac_status); }; }; then
22273
22274cat >>confdefs.h <<\_ACEOF
22275#define WITH_DMALLOC 1
22276_ACEOF
22277
22278  echo "$as_me:$LINENO: result: Using dmalloc" >&5
22279echo "${ECHO_T}Using dmalloc" >&6
22280else
22281  echo "$as_me: failed program was:" >&5
22282sed 's/^/| /' conftest.$ac_ext >&5
22283
22284{ { echo "$as_me:$LINENO: error: dmalloc not found" >&5
22285echo "$as_me: error: dmalloc not found" >&2;}
22286   { (exit 1); exit 1; }; }
22287
22288
22289fi
22290rm -f conftest.err conftest.$ac_objext \
22291      conftest$ac_exeext conftest.$ac_ext
22292fi
22293else
22294  echo "$as_me:$LINENO: result: no" >&5
22295echo "${ECHO_T}no" >&6
22296fi;
22297
22298
22299
22300
22301
22302
22303for ac_func in strcasecmp stricmp strncasecmp strnicmp
22304do
22305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22306echo "$as_me:$LINENO: checking for $ac_func" >&5
22307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22308if eval "test \"\${$as_ac_var+set}\" = set"; then
22309  echo $ECHO_N "(cached) $ECHO_C" >&6
22310else
22311  cat >conftest.$ac_ext <<_ACEOF
22312/* confdefs.h.  */
22313_ACEOF
22314cat confdefs.h >>conftest.$ac_ext
22315cat >>conftest.$ac_ext <<_ACEOF
22316/* end confdefs.h.  */
22317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22318   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22319#define $ac_func innocuous_$ac_func
22320
22321/* System header to define __stub macros and hopefully few prototypes,
22322    which can conflict with char $ac_func (); below.
22323    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22324    <limits.h> exists even on freestanding compilers.  */
22325
22326#ifdef __STDC__
22327# include <limits.h>
22328#else
22329# include <assert.h>
22330#endif
22331
22332#undef $ac_func
22333
22334/* Override any gcc2 internal prototype to avoid an error.  */
22335#ifdef __cplusplus
22336extern "C"
22337{
22338#endif
22339/* We use char because int might match the return type of a gcc2
22340   builtin and then its argument prototype would still apply.  */
22341char $ac_func ();
22342/* The GNU C library defines this for functions which it implements
22343    to always fail with ENOSYS.  Some functions are actually named
22344    something starting with __ and the normal name is an alias.  */
22345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22346choke me
22347#else
22348char (*f) () = $ac_func;
22349#endif
22350#ifdef __cplusplus
22351}
22352#endif
22353
22354int
22355main ()
22356{
22357return f != $ac_func;
22358  ;
22359  return 0;
22360}
22361_ACEOF
22362rm -f conftest.$ac_objext conftest$ac_exeext
22363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22364  (eval $ac_link) 2>conftest.er1
22365  ac_status=$?
22366  grep -v '^ *+' conftest.er1 >conftest.err
22367  rm -f conftest.er1
22368  cat conftest.err >&5
22369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370  (exit $ac_status); } &&
22371	 { ac_try='test -z "$ac_c_werror_flag"
22372			 || test ! -s conftest.err'
22373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374  (eval $ac_try) 2>&5
22375  ac_status=$?
22376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377  (exit $ac_status); }; } &&
22378	 { ac_try='test -s conftest$ac_exeext'
22379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380  (eval $ac_try) 2>&5
22381  ac_status=$?
22382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383  (exit $ac_status); }; }; then
22384  eval "$as_ac_var=yes"
22385else
22386  echo "$as_me: failed program was:" >&5
22387sed 's/^/| /' conftest.$ac_ext >&5
22388
22389eval "$as_ac_var=no"
22390fi
22391rm -f conftest.err conftest.$ac_objext \
22392      conftest$ac_exeext conftest.$ac_ext
22393fi
22394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22396if test `eval echo '${'$as_ac_var'}'` = yes; then
22397  cat >>confdefs.h <<_ACEOF
22398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22399_ACEOF
22400
22401fi
22402done
22403
22404
22405
22406if test "x$ac_cv_header_X11_xpm_h" = "xyes" -o "x$ac_cv_header_xpm_h" = "xyes"
22407then
22408
22409echo "$as_me:$LINENO: checking for XpmLibraryVersion in -lXpm" >&5
22410echo $ECHO_N "checking for XpmLibraryVersion in -lXpm... $ECHO_C" >&6
22411if test "${ac_cv_lib_Xpm_XpmLibraryVersion+set}" = set; then
22412  echo $ECHO_N "(cached) $ECHO_C" >&6
22413else
22414  ac_check_lib_save_LIBS=$LIBS
22415LIBS="-lXpm $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
22416cat >conftest.$ac_ext <<_ACEOF
22417/* confdefs.h.  */
22418_ACEOF
22419cat confdefs.h >>conftest.$ac_ext
22420cat >>conftest.$ac_ext <<_ACEOF
22421/* end confdefs.h.  */
22422
22423/* Override any gcc2 internal prototype to avoid an error.  */
22424#ifdef __cplusplus
22425extern "C"
22426#endif
22427/* We use char because int might match the return type of a gcc2
22428   builtin and then its argument prototype would still apply.  */
22429char XpmLibraryVersion ();
22430int
22431main ()
22432{
22433XpmLibraryVersion ();
22434  ;
22435  return 0;
22436}
22437_ACEOF
22438rm -f conftest.$ac_objext conftest$ac_exeext
22439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22440  (eval $ac_link) 2>conftest.er1
22441  ac_status=$?
22442  grep -v '^ *+' conftest.er1 >conftest.err
22443  rm -f conftest.er1
22444  cat conftest.err >&5
22445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446  (exit $ac_status); } &&
22447	 { ac_try='test -z "$ac_c_werror_flag"
22448			 || test ! -s conftest.err'
22449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450  (eval $ac_try) 2>&5
22451  ac_status=$?
22452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453  (exit $ac_status); }; } &&
22454	 { ac_try='test -s conftest$ac_exeext'
22455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456  (eval $ac_try) 2>&5
22457  ac_status=$?
22458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459  (exit $ac_status); }; }; then
22460  ac_cv_lib_Xpm_XpmLibraryVersion=yes
22461else
22462  echo "$as_me: failed program was:" >&5
22463sed 's/^/| /' conftest.$ac_ext >&5
22464
22465ac_cv_lib_Xpm_XpmLibraryVersion=no
22466fi
22467rm -f conftest.err conftest.$ac_objext \
22468      conftest$ac_exeext conftest.$ac_ext
22469LIBS=$ac_check_lib_save_LIBS
22470fi
22471echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmLibraryVersion" >&5
22472echo "${ECHO_T}$ac_cv_lib_Xpm_XpmLibraryVersion" >&6
22473if test $ac_cv_lib_Xpm_XpmLibraryVersion = yes; then
22474  cat >>confdefs.h <<_ACEOF
22475#define HAVE_LIBXPM 1
22476_ACEOF
22477
22478  LIBS="-lXpm $LIBS"
22479
22480fi
22481
22482
22483
22484if test x$ac_cv_lib_Xpm_XpmLibraryVersion = xyes; then
22485  HaveXpm_TRUE=
22486  HaveXpm_FALSE='#'
22487else
22488  HaveXpm_TRUE='#'
22489  HaveXpm_FALSE=
22490fi
22491
22492else
22493
22494
22495if false; then
22496  HaveXpm_TRUE=
22497  HaveXpm_FALSE='#'
22498else
22499  HaveXpm_TRUE='#'
22500  HaveXpm_FALSE=
22501fi
22502
22503fi
22504
22505
22506if test "${ac_cv_header_Wcl_WcCreate_h+set}" = set; then
22507  echo "$as_me:$LINENO: checking for Wcl/WcCreate.h" >&5
22508echo $ECHO_N "checking for Wcl/WcCreate.h... $ECHO_C" >&6
22509if test "${ac_cv_header_Wcl_WcCreate_h+set}" = set; then
22510  echo $ECHO_N "(cached) $ECHO_C" >&6
22511fi
22512echo "$as_me:$LINENO: result: $ac_cv_header_Wcl_WcCreate_h" >&5
22513echo "${ECHO_T}$ac_cv_header_Wcl_WcCreate_h" >&6
22514else
22515  # Is the header compilable?
22516echo "$as_me:$LINENO: checking Wcl/WcCreate.h usability" >&5
22517echo $ECHO_N "checking Wcl/WcCreate.h usability... $ECHO_C" >&6
22518cat >conftest.$ac_ext <<_ACEOF
22519/* confdefs.h.  */
22520_ACEOF
22521cat confdefs.h >>conftest.$ac_ext
22522cat >>conftest.$ac_ext <<_ACEOF
22523/* end confdefs.h.  */
22524$ac_includes_default
22525#include <Wcl/WcCreate.h>
22526_ACEOF
22527rm -f conftest.$ac_objext
22528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22529  (eval $ac_compile) 2>conftest.er1
22530  ac_status=$?
22531  grep -v '^ *+' conftest.er1 >conftest.err
22532  rm -f conftest.er1
22533  cat conftest.err >&5
22534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535  (exit $ac_status); } &&
22536	 { ac_try='test -z "$ac_c_werror_flag"
22537			 || test ! -s conftest.err'
22538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539  (eval $ac_try) 2>&5
22540  ac_status=$?
22541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542  (exit $ac_status); }; } &&
22543	 { ac_try='test -s conftest.$ac_objext'
22544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545  (eval $ac_try) 2>&5
22546  ac_status=$?
22547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548  (exit $ac_status); }; }; then
22549  ac_header_compiler=yes
22550else
22551  echo "$as_me: failed program was:" >&5
22552sed 's/^/| /' conftest.$ac_ext >&5
22553
22554ac_header_compiler=no
22555fi
22556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22557echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22558echo "${ECHO_T}$ac_header_compiler" >&6
22559
22560# Is the header present?
22561echo "$as_me:$LINENO: checking Wcl/WcCreate.h presence" >&5
22562echo $ECHO_N "checking Wcl/WcCreate.h presence... $ECHO_C" >&6
22563cat >conftest.$ac_ext <<_ACEOF
22564/* confdefs.h.  */
22565_ACEOF
22566cat confdefs.h >>conftest.$ac_ext
22567cat >>conftest.$ac_ext <<_ACEOF
22568/* end confdefs.h.  */
22569#include <Wcl/WcCreate.h>
22570_ACEOF
22571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22572  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22573  ac_status=$?
22574  grep -v '^ *+' conftest.er1 >conftest.err
22575  rm -f conftest.er1
22576  cat conftest.err >&5
22577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578  (exit $ac_status); } >/dev/null; then
22579  if test -s conftest.err; then
22580    ac_cpp_err=$ac_c_preproc_warn_flag
22581    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22582  else
22583    ac_cpp_err=
22584  fi
22585else
22586  ac_cpp_err=yes
22587fi
22588if test -z "$ac_cpp_err"; then
22589  ac_header_preproc=yes
22590else
22591  echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
22594  ac_header_preproc=no
22595fi
22596rm -f conftest.err conftest.$ac_ext
22597echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22598echo "${ECHO_T}$ac_header_preproc" >&6
22599
22600# So?  What about this header?
22601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22602  yes:no: )
22603    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h: accepted by the compiler, rejected by the preprocessor!" >&5
22604echo "$as_me: WARNING: Wcl/WcCreate.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22605    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h: proceeding with the compiler's result" >&5
22606echo "$as_me: WARNING: Wcl/WcCreate.h: proceeding with the compiler's result" >&2;}
22607    ac_header_preproc=yes
22608    ;;
22609  no:yes:* )
22610    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h: present but cannot be compiled" >&5
22611echo "$as_me: WARNING: Wcl/WcCreate.h: present but cannot be compiled" >&2;}
22612    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h:     check for missing prerequisite headers?" >&5
22613echo "$as_me: WARNING: Wcl/WcCreate.h:     check for missing prerequisite headers?" >&2;}
22614    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h: see the Autoconf documentation" >&5
22615echo "$as_me: WARNING: Wcl/WcCreate.h: see the Autoconf documentation" >&2;}
22616    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h:     section \"Present But Cannot Be Compiled\"" >&5
22617echo "$as_me: WARNING: Wcl/WcCreate.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22618    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h: proceeding with the preprocessor's result" >&5
22619echo "$as_me: WARNING: Wcl/WcCreate.h: proceeding with the preprocessor's result" >&2;}
22620    { echo "$as_me:$LINENO: WARNING: Wcl/WcCreate.h: in the future, the compiler will take precedence" >&5
22621echo "$as_me: WARNING: Wcl/WcCreate.h: in the future, the compiler will take precedence" >&2;}
22622    (
22623      cat <<\_ASBOX
22624## ------------------------------- ##
22625## Report this to the Xbae lists.  ##
22626## ------------------------------- ##
22627_ASBOX
22628    ) |
22629      sed "s/^/$as_me: WARNING:     /" >&2
22630    ;;
22631esac
22632echo "$as_me:$LINENO: checking for Wcl/WcCreate.h" >&5
22633echo $ECHO_N "checking for Wcl/WcCreate.h... $ECHO_C" >&6
22634if test "${ac_cv_header_Wcl_WcCreate_h+set}" = set; then
22635  echo $ECHO_N "(cached) $ECHO_C" >&6
22636else
22637  ac_cv_header_Wcl_WcCreate_h=$ac_header_preproc
22638fi
22639echo "$as_me:$LINENO: result: $ac_cv_header_Wcl_WcCreate_h" >&5
22640echo "${ECHO_T}$ac_cv_header_Wcl_WcCreate_h" >&6
22641
22642fi
22643if test $ac_cv_header_Wcl_WcCreate_h = yes; then
22644  VarHaveWcl=yes
22645else
22646  VarHaveWcl=no
22647fi
22648
22649
22650
22651
22652if test x$VarHaveWcl = xyes; then
22653  HaveWcl_TRUE=
22654  HaveWcl_FALSE='#'
22655else
22656  HaveWcl_TRUE='#'
22657  HaveWcl_FALSE=
22658fi
22659
22660
22661if test x$GCC = xyes
22662then
22663    CFLAGS="$CFLAGS -Wall"
22664fi
22665
22666
22667ac_have_exctags=no
22668# Extract the first word of "ctags", so it can be a program name with args.
22669set dummy ctags; ac_word=$2
22670echo "$as_me:$LINENO: checking for $ac_word" >&5
22671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22672if test "${ac_cv_prog_ac_have_ctags+set}" = set; then
22673  echo $ECHO_N "(cached) $ECHO_C" >&6
22674else
22675  if test -n "$ac_have_ctags"; then
22676  ac_cv_prog_ac_have_ctags="$ac_have_ctags" # Let the user override the test.
22677else
22678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22679for as_dir in $PATH
22680do
22681  IFS=$as_save_IFS
22682  test -z "$as_dir" && as_dir=.
22683  for ac_exec_ext in '' $ac_executable_extensions; do
22684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22685    ac_cv_prog_ac_have_ctags="yes"
22686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22687    break 2
22688  fi
22689done
22690done
22691
22692  test -z "$ac_cv_prog_ac_have_ctags" && ac_cv_prog_ac_have_ctags="no"
22693fi
22694fi
22695ac_have_ctags=$ac_cv_prog_ac_have_ctags
22696if test -n "$ac_have_ctags"; then
22697  echo "$as_me:$LINENO: result: $ac_have_ctags" >&5
22698echo "${ECHO_T}$ac_have_ctags" >&6
22699else
22700  echo "$as_me:$LINENO: result: no" >&5
22701echo "${ECHO_T}no" >&6
22702fi
22703
22704if test "$ac_have_ctags" = "yes"; then
22705  echo "$as_me:$LINENO: checking if ctags is actually Exuberant ctags" >&5
22706echo $ECHO_N "checking if ctags is actually Exuberant ctags... $ECHO_C" >&6
22707  if test -z "`ctags --version 2>/dev/null | grep Exuberant`" ; then
22708    ac_have_exctags=no
22709  else
22710    ac_have_exctags=yes
22711  fi
22712  echo "$as_me:$LINENO: result: $ac_have_exctags" >&5
22713echo "${ECHO_T}$ac_have_exctags" >&6
22714fi
22715
22716
22717if test "$ac_have_exctags" = "yes"; then
22718  Have_Exctags_TRUE=
22719  Have_Exctags_FALSE='#'
22720else
22721  Have_Exctags_TRUE='#'
22722  Have_Exctags_FALSE=
22723fi
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735THE_DATE=`date +%F`
22736
22737
22738                                                                                                                                                                                                                                                                                                                                ac_config_files="$ac_config_files Makefile include/Makefile include/Xbae/Makefile include/Xbae/patchlevel.h src/Makefile src/XbaeCaption.3 src/XbaeInput.3 src/XbaeMatrix.3 examples/Makefile examples/add/Makefile examples/caption/Makefile examples/choice/Makefile examples/colors/Makefile examples/draw/Makefile examples/dynamic/Makefile examples/fifteen/Makefile examples/input/Makefile examples/list/Makefile examples/matrix/Makefile examples/multibyte/Makefile examples/multifixed/Makefile examples/select-drag/Makefile examples/select-push/Makefile examples/tests/Makefile examples/traversal/Makefile examples/Mri/Makefile examples/builderXcessory/Makefile examples/builderXcessory/xbae.wml doc/Makefile doc/images/Makefile scripts/Makefile scripts/Xbae.spec"
22739cat >confcache <<\_ACEOF
22740# This file is a shell script that caches the results of configure
22741# tests run on this system so they can be shared between configure
22742# scripts and configure runs, see configure's option --config-cache.
22743# It is not useful on other systems.  If it contains results you don't
22744# want to keep, you may remove or edit it.
22745#
22746# config.status only pays attention to the cache file if you give it
22747# the --recheck option to rerun configure.
22748#
22749# `ac_cv_env_foo' variables (set or unset) will be overridden when
22750# loading this file, other *unset* `ac_cv_foo' will be assigned the
22751# following values.
22752
22753_ACEOF
22754
22755# The following way of writing the cache mishandles newlines in values,
22756# but we know of no workaround that is simple, portable, and efficient.
22757# So, don't put newlines in cache variables' values.
22758# Ultrix sh set writes to stderr and can't be redirected directly,
22759# and sets the high bit in the cache file unless we assign to the vars.
22760{
22761  (set) 2>&1 |
22762    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22763    *ac_space=\ *)
22764      # `set' does not quote correctly, so add quotes (double-quote
22765      # substitution turns \\\\ into \\, and sed turns \\ into \).
22766      sed -n \
22767	"s/'/'\\\\''/g;
22768	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22769      ;;
22770    *)
22771      # `set' quotes correctly as required by POSIX, so do not add quotes.
22772      sed -n \
22773	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22774      ;;
22775    esac;
22776} |
22777  sed '
22778     t clear
22779     : clear
22780     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22781     t end
22782     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22783     : end' >>confcache
22784if diff $cache_file confcache >/dev/null 2>&1; then :; else
22785  if test -w $cache_file; then
22786    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22787    cat confcache >$cache_file
22788  else
22789    echo "not updating unwritable cache $cache_file"
22790  fi
22791fi
22792rm -f confcache
22793
22794test "x$prefix" = xNONE && prefix=$ac_default_prefix
22795# Let make expand exec_prefix.
22796test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22797
22798# VPATH may cause trouble with some makes, so we remove $(srcdir),
22799# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22800# trailing colons and then remove the whole line if VPATH becomes empty
22801# (actually we leave an empty line to preserve line numbers).
22802if test "x$srcdir" = x.; then
22803  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22804s/:*\$(srcdir):*/:/;
22805s/:*\${srcdir}:*/:/;
22806s/:*@srcdir@:*/:/;
22807s/^\([^=]*=[	 ]*\):*/\1/;
22808s/:*$//;
22809s/^[^=]*=[	 ]*$//;
22810}'
22811fi
22812
22813DEFS=-DHAVE_CONFIG_H
22814
22815ac_libobjs=
22816ac_ltlibobjs=
22817for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22818  # 1. Remove the extension, and $U if already installed.
22819  ac_i=`echo "$ac_i" |
22820	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22821  # 2. Add them.
22822  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22823  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22824done
22825LIBOBJS=$ac_libobjs
22826
22827LTLIBOBJS=$ac_ltlibobjs
22828
22829
22830if test -z "${LT_BUILD_MAN2HTML_TRUE}" && test -z "${LT_BUILD_MAN2HTML_FALSE}"; then
22831  { { echo "$as_me:$LINENO: error: conditional \"LT_BUILD_MAN2HTML\" was never defined.
22832Usually this means the macro was only invoked conditionally." >&5
22833echo "$as_me: error: conditional \"LT_BUILD_MAN2HTML\" was never defined.
22834Usually this means the macro was only invoked conditionally." >&2;}
22835   { (exit 1); exit 1; }; }
22836fi
22837if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22838  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22839Usually this means the macro was only invoked conditionally." >&5
22840echo "$as_me: error: conditional \"AMDEP\" was never defined.
22841Usually this means the macro was only invoked conditionally." >&2;}
22842   { (exit 1); exit 1; }; }
22843fi
22844if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22845  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22846Usually this means the macro was only invoked conditionally." >&5
22847echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22848Usually this means the macro was only invoked conditionally." >&2;}
22849   { (exit 1); exit 1; }; }
22850fi
22851if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22852  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22853Usually this means the macro was only invoked conditionally." >&5
22854echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22855Usually this means the macro was only invoked conditionally." >&2;}
22856   { (exit 1); exit 1; }; }
22857fi
22858if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22859  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22860Usually this means the macro was only invoked conditionally." >&5
22861echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22862Usually this means the macro was only invoked conditionally." >&2;}
22863   { (exit 1); exit 1; }; }
22864fi
22865if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22866  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22867Usually this means the macro was only invoked conditionally." >&5
22868echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22869Usually this means the macro was only invoked conditionally." >&2;}
22870   { (exit 1); exit 1; }; }
22871fi
22872if test -z "${Have_Libxp_TRUE}" && test -z "${Have_Libxp_FALSE}"; then
22873  { { echo "$as_me:$LINENO: error: conditional \"Have_Libxp\" was never defined.
22874Usually this means the macro was only invoked conditionally." >&5
22875echo "$as_me: error: conditional \"Have_Libxp\" was never defined.
22876Usually this means the macro was only invoked conditionally." >&2;}
22877   { (exit 1); exit 1; }; }
22878fi
22879if test -z "${Have_Libxp_TRUE}" && test -z "${Have_Libxp_FALSE}"; then
22880  { { echo "$as_me:$LINENO: error: conditional \"Have_Libxp\" was never defined.
22881Usually this means the macro was only invoked conditionally." >&5
22882echo "$as_me: error: conditional \"Have_Libxp\" was never defined.
22883Usually this means the macro was only invoked conditionally." >&2;}
22884   { (exit 1); exit 1; }; }
22885fi
22886if test -z "${Have_Libxp_TRUE}" && test -z "${Have_Libxp_FALSE}"; then
22887  { { echo "$as_me:$LINENO: error: conditional \"Have_Libxp\" was never defined.
22888Usually this means the macro was only invoked conditionally." >&5
22889echo "$as_me: error: conditional \"Have_Libxp\" was never defined.
22890Usually this means the macro was only invoked conditionally." >&2;}
22891   { (exit 1); exit 1; }; }
22892fi
22893if test -z "${Aclocal_TRUE}" && test -z "${Aclocal_FALSE}"; then
22894  { { echo "$as_me:$LINENO: error: conditional \"Aclocal\" was never defined.
22895Usually this means the macro was only invoked conditionally." >&5
22896echo "$as_me: error: conditional \"Aclocal\" was never defined.
22897Usually this means the macro was only invoked conditionally." >&2;}
22898   { (exit 1); exit 1; }; }
22899fi
22900if test -z "${UseEditres_TRUE}" && test -z "${UseEditres_FALSE}"; then
22901  { { echo "$as_me:$LINENO: error: conditional \"UseEditres\" was never defined.
22902Usually this means the macro was only invoked conditionally." >&5
22903echo "$as_me: error: conditional \"UseEditres\" was never defined.
22904Usually this means the macro was only invoked conditionally." >&2;}
22905   { (exit 1); exit 1; }; }
22906fi
22907if test -z "${HaveXpm_TRUE}" && test -z "${HaveXpm_FALSE}"; then
22908  { { echo "$as_me:$LINENO: error: conditional \"HaveXpm\" was never defined.
22909Usually this means the macro was only invoked conditionally." >&5
22910echo "$as_me: error: conditional \"HaveXpm\" was never defined.
22911Usually this means the macro was only invoked conditionally." >&2;}
22912   { (exit 1); exit 1; }; }
22913fi
22914if test -z "${HaveXpm_TRUE}" && test -z "${HaveXpm_FALSE}"; then
22915  { { echo "$as_me:$LINENO: error: conditional \"HaveXpm\" was never defined.
22916Usually this means the macro was only invoked conditionally." >&5
22917echo "$as_me: error: conditional \"HaveXpm\" was never defined.
22918Usually this means the macro was only invoked conditionally." >&2;}
22919   { (exit 1); exit 1; }; }
22920fi
22921if test -z "${HaveWcl_TRUE}" && test -z "${HaveWcl_FALSE}"; then
22922  { { echo "$as_me:$LINENO: error: conditional \"HaveWcl\" was never defined.
22923Usually this means the macro was only invoked conditionally." >&5
22924echo "$as_me: error: conditional \"HaveWcl\" was never defined.
22925Usually this means the macro was only invoked conditionally." >&2;}
22926   { (exit 1); exit 1; }; }
22927fi
22928if test -z "${Have_Exctags_TRUE}" && test -z "${Have_Exctags_FALSE}"; then
22929  { { echo "$as_me:$LINENO: error: conditional \"Have_Exctags\" was never defined.
22930Usually this means the macro was only invoked conditionally." >&5
22931echo "$as_me: error: conditional \"Have_Exctags\" was never defined.
22932Usually this means the macro was only invoked conditionally." >&2;}
22933   { (exit 1); exit 1; }; }
22934fi
22935
22936: ${CONFIG_STATUS=./config.status}
22937ac_clean_files_save=$ac_clean_files
22938ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22939{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22940echo "$as_me: creating $CONFIG_STATUS" >&6;}
22941cat >$CONFIG_STATUS <<_ACEOF
22942#! $SHELL
22943# Generated by $as_me.
22944# Run this file to recreate the current configuration.
22945# Compiler output produced by configure, useful for debugging
22946# configure, is in config.log if it exists.
22947
22948debug=false
22949ac_cs_recheck=false
22950ac_cs_silent=false
22951SHELL=\${CONFIG_SHELL-$SHELL}
22952_ACEOF
22953
22954cat >>$CONFIG_STATUS <<\_ACEOF
22955## --------------------- ##
22956## M4sh Initialization.  ##
22957## --------------------- ##
22958
22959# Be Bourne compatible
22960if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22961  emulate sh
22962  NULLCMD=:
22963  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22964  # is contrary to our usage.  Disable this feature.
22965  alias -g '${1+"$@"}'='"$@"'
22966elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22967  set -o posix
22968fi
22969DUALCASE=1; export DUALCASE # for MKS sh
22970
22971# Support unset when possible.
22972if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22973  as_unset=unset
22974else
22975  as_unset=false
22976fi
22977
22978
22979# Work around bugs in pre-3.0 UWIN ksh.
22980$as_unset ENV MAIL MAILPATH
22981PS1='$ '
22982PS2='> '
22983PS4='+ '
22984
22985# NLS nuisances.
22986for as_var in \
22987  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22988  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22989  LC_TELEPHONE LC_TIME
22990do
22991  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22992    eval $as_var=C; export $as_var
22993  else
22994    $as_unset $as_var
22995  fi
22996done
22997
22998# Required to use basename.
22999if expr a : '\(a\)' >/dev/null 2>&1; then
23000  as_expr=expr
23001else
23002  as_expr=false
23003fi
23004
23005if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23006  as_basename=basename
23007else
23008  as_basename=false
23009fi
23010
23011
23012# Name of the executable.
23013as_me=`$as_basename "$0" ||
23014$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23015	 X"$0" : 'X\(//\)$' \| \
23016	 X"$0" : 'X\(/\)$' \| \
23017	 .     : '\(.\)' 2>/dev/null ||
23018echo X/"$0" |
23019    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23020  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23021  	  /^X\/\(\/\).*/{ s//\1/; q; }
23022  	  s/.*/./; q'`
23023
23024
23025# PATH needs CR, and LINENO needs CR and PATH.
23026# Avoid depending upon Character Ranges.
23027as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23028as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23029as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23030as_cr_digits='0123456789'
23031as_cr_alnum=$as_cr_Letters$as_cr_digits
23032
23033# The user is always right.
23034if test "${PATH_SEPARATOR+set}" != set; then
23035  echo "#! /bin/sh" >conf$$.sh
23036  echo  "exit 0"   >>conf$$.sh
23037  chmod +x conf$$.sh
23038  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23039    PATH_SEPARATOR=';'
23040  else
23041    PATH_SEPARATOR=:
23042  fi
23043  rm -f conf$$.sh
23044fi
23045
23046
23047  as_lineno_1=$LINENO
23048  as_lineno_2=$LINENO
23049  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23050  test "x$as_lineno_1" != "x$as_lineno_2" &&
23051  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23052  # Find who we are.  Look in the path if we contain no path at all
23053  # relative or not.
23054  case $0 in
23055    *[\\/]* ) as_myself=$0 ;;
23056    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23057for as_dir in $PATH
23058do
23059  IFS=$as_save_IFS
23060  test -z "$as_dir" && as_dir=.
23061  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23062done
23063
23064       ;;
23065  esac
23066  # We did not find ourselves, most probably we were run as `sh COMMAND'
23067  # in which case we are not to be found in the path.
23068  if test "x$as_myself" = x; then
23069    as_myself=$0
23070  fi
23071  if test ! -f "$as_myself"; then
23072    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23073echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23074   { (exit 1); exit 1; }; }
23075  fi
23076  case $CONFIG_SHELL in
23077  '')
23078    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23079for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23080do
23081  IFS=$as_save_IFS
23082  test -z "$as_dir" && as_dir=.
23083  for as_base in sh bash ksh sh5; do
23084	 case $as_dir in
23085	 /*)
23086	   if ("$as_dir/$as_base" -c '
23087  as_lineno_1=$LINENO
23088  as_lineno_2=$LINENO
23089  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23090  test "x$as_lineno_1" != "x$as_lineno_2" &&
23091  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23092	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23093	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23094	     CONFIG_SHELL=$as_dir/$as_base
23095	     export CONFIG_SHELL
23096	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23097	   fi;;
23098	 esac
23099       done
23100done
23101;;
23102  esac
23103
23104  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23105  # uniformly replaced by the line number.  The first 'sed' inserts a
23106  # line-number line before each line; the second 'sed' does the real
23107  # work.  The second script uses 'N' to pair each line-number line
23108  # with the numbered line, and appends trailing '-' during
23109  # substitution so that $LINENO is not a special case at line end.
23110  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23111  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23112  sed '=' <$as_myself |
23113    sed '
23114      N
23115      s,$,-,
23116      : loop
23117      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23118      t loop
23119      s,-$,,
23120      s,^['$as_cr_digits']*\n,,
23121    ' >$as_me.lineno &&
23122  chmod +x $as_me.lineno ||
23123    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23124echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23125   { (exit 1); exit 1; }; }
23126
23127  # Don't try to exec as it changes $[0], causing all sort of problems
23128  # (the dirname of $[0] is not the place where we might find the
23129  # original and so on.  Autoconf is especially sensible to this).
23130  . ./$as_me.lineno
23131  # Exit status is that of the last command.
23132  exit
23133}
23134
23135
23136case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23137  *c*,-n*) ECHO_N= ECHO_C='
23138' ECHO_T='	' ;;
23139  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23140  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23141esac
23142
23143if expr a : '\(a\)' >/dev/null 2>&1; then
23144  as_expr=expr
23145else
23146  as_expr=false
23147fi
23148
23149rm -f conf$$ conf$$.exe conf$$.file
23150echo >conf$$.file
23151if ln -s conf$$.file conf$$ 2>/dev/null; then
23152  # We could just check for DJGPP; but this test a) works b) is more generic
23153  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23154  if test -f conf$$.exe; then
23155    # Don't use ln at all; we don't have any links
23156    as_ln_s='cp -p'
23157  else
23158    as_ln_s='ln -s'
23159  fi
23160elif ln conf$$.file conf$$ 2>/dev/null; then
23161  as_ln_s=ln
23162else
23163  as_ln_s='cp -p'
23164fi
23165rm -f conf$$ conf$$.exe conf$$.file
23166
23167if mkdir -p . 2>/dev/null; then
23168  as_mkdir_p=:
23169else
23170  test -d ./-p && rmdir ./-p
23171  as_mkdir_p=false
23172fi
23173
23174as_executable_p="test -f"
23175
23176# Sed expression to map a string onto a valid CPP name.
23177as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23178
23179# Sed expression to map a string onto a valid variable name.
23180as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23181
23182
23183# IFS
23184# We need space, tab and new line, in precisely that order.
23185as_nl='
23186'
23187IFS=" 	$as_nl"
23188
23189# CDPATH.
23190$as_unset CDPATH
23191
23192exec 6>&1
23193
23194# Open the log real soon, to keep \$[0] and so on meaningful, and to
23195# report actual input values of CONFIG_FILES etc. instead of their
23196# values after options handling.  Logging --version etc. is OK.
23197exec 5>>config.log
23198{
23199  echo
23200  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23201## Running $as_me. ##
23202_ASBOX
23203} >&5
23204cat >&5 <<_CSEOF
23205
23206This file was extended by Xbae $as_me 4.60.4, which was
23207generated by GNU Autoconf 2.59.  Invocation command line was
23208
23209  CONFIG_FILES    = $CONFIG_FILES
23210  CONFIG_HEADERS  = $CONFIG_HEADERS
23211  CONFIG_LINKS    = $CONFIG_LINKS
23212  CONFIG_COMMANDS = $CONFIG_COMMANDS
23213  $ $0 $@
23214
23215_CSEOF
23216echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23217echo >&5
23218_ACEOF
23219
23220# Files that config.status was made for.
23221if test -n "$ac_config_files"; then
23222  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23223fi
23224
23225if test -n "$ac_config_headers"; then
23226  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23227fi
23228
23229if test -n "$ac_config_links"; then
23230  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23231fi
23232
23233if test -n "$ac_config_commands"; then
23234  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23235fi
23236
23237cat >>$CONFIG_STATUS <<\_ACEOF
23238
23239ac_cs_usage="\
23240\`$as_me' instantiates files from templates according to the
23241current configuration.
23242
23243Usage: $0 [OPTIONS] [FILE]...
23244
23245  -h, --help       print this help, then exit
23246  -V, --version    print version number, then exit
23247  -q, --quiet      do not print progress messages
23248  -d, --debug      don't remove temporary files
23249      --recheck    update $as_me by reconfiguring in the same conditions
23250  --file=FILE[:TEMPLATE]
23251		   instantiate the configuration file FILE
23252  --header=FILE[:TEMPLATE]
23253		   instantiate the configuration header FILE
23254
23255Configuration files:
23256$config_files
23257
23258Configuration headers:
23259$config_headers
23260
23261Configuration commands:
23262$config_commands
23263
23264Report bugs to <bug-autoconf@gnu.org>."
23265_ACEOF
23266
23267cat >>$CONFIG_STATUS <<_ACEOF
23268ac_cs_version="\\
23269Xbae config.status 4.60.4
23270configured by $0, generated by GNU Autoconf 2.59,
23271  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23272
23273Copyright (C) 2003 Free Software Foundation, Inc.
23274This config.status script is free software; the Free Software Foundation
23275gives unlimited permission to copy, distribute and modify it."
23276srcdir=$srcdir
23277INSTALL="$INSTALL"
23278_ACEOF
23279
23280cat >>$CONFIG_STATUS <<\_ACEOF
23281# If no file are specified by the user, then we need to provide default
23282# value.  By we need to know if files were specified by the user.
23283ac_need_defaults=:
23284while test $# != 0
23285do
23286  case $1 in
23287  --*=*)
23288    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23289    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23290    ac_shift=:
23291    ;;
23292  -*)
23293    ac_option=$1
23294    ac_optarg=$2
23295    ac_shift=shift
23296    ;;
23297  *) # This is not an option, so the user has probably given explicit
23298     # arguments.
23299     ac_option=$1
23300     ac_need_defaults=false;;
23301  esac
23302
23303  case $ac_option in
23304  # Handling of the options.
23305_ACEOF
23306cat >>$CONFIG_STATUS <<\_ACEOF
23307  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23308    ac_cs_recheck=: ;;
23309  --version | --vers* | -V )
23310    echo "$ac_cs_version"; exit 0 ;;
23311  --he | --h)
23312    # Conflict between --help and --header
23313    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23314Try \`$0 --help' for more information." >&5
23315echo "$as_me: error: ambiguous option: $1
23316Try \`$0 --help' for more information." >&2;}
23317   { (exit 1); exit 1; }; };;
23318  --help | --hel | -h )
23319    echo "$ac_cs_usage"; exit 0 ;;
23320  --debug | --d* | -d )
23321    debug=: ;;
23322  --file | --fil | --fi | --f )
23323    $ac_shift
23324    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23325    ac_need_defaults=false;;
23326  --header | --heade | --head | --hea )
23327    $ac_shift
23328    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23329    ac_need_defaults=false;;
23330  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23331  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23332    ac_cs_silent=: ;;
23333
23334  # This is an error.
23335  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23336Try \`$0 --help' for more information." >&5
23337echo "$as_me: error: unrecognized option: $1
23338Try \`$0 --help' for more information." >&2;}
23339   { (exit 1); exit 1; }; } ;;
23340
23341  *) ac_config_targets="$ac_config_targets $1" ;;
23342
23343  esac
23344  shift
23345done
23346
23347ac_configure_extra_args=
23348
23349if $ac_cs_silent; then
23350  exec 6>/dev/null
23351  ac_configure_extra_args="$ac_configure_extra_args --silent"
23352fi
23353
23354_ACEOF
23355cat >>$CONFIG_STATUS <<_ACEOF
23356if \$ac_cs_recheck; then
23357  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23358  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23359fi
23360
23361_ACEOF
23362
23363cat >>$CONFIG_STATUS <<_ACEOF
23364#
23365# INIT-COMMANDS section.
23366#
23367
23368AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23369
23370_ACEOF
23371
23372
23373
23374cat >>$CONFIG_STATUS <<\_ACEOF
23375for ac_config_target in $ac_config_targets
23376do
23377  case "$ac_config_target" in
23378  # Handling of arguments.
23379  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23380  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23381  "include/Xbae/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Xbae/Makefile" ;;
23382  "include/Xbae/patchlevel.h" ) CONFIG_FILES="$CONFIG_FILES include/Xbae/patchlevel.h" ;;
23383  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23384  "src/XbaeCaption.3" ) CONFIG_FILES="$CONFIG_FILES src/XbaeCaption.3" ;;
23385  "src/XbaeInput.3" ) CONFIG_FILES="$CONFIG_FILES src/XbaeInput.3" ;;
23386  "src/XbaeMatrix.3" ) CONFIG_FILES="$CONFIG_FILES src/XbaeMatrix.3" ;;
23387  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23388  "examples/add/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/add/Makefile" ;;
23389  "examples/caption/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/caption/Makefile" ;;
23390  "examples/choice/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/choice/Makefile" ;;
23391  "examples/colors/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/colors/Makefile" ;;
23392  "examples/draw/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/draw/Makefile" ;;
23393  "examples/dynamic/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/dynamic/Makefile" ;;
23394  "examples/fifteen/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/fifteen/Makefile" ;;
23395  "examples/input/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/input/Makefile" ;;
23396  "examples/list/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/list/Makefile" ;;
23397  "examples/matrix/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/matrix/Makefile" ;;
23398  "examples/multibyte/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/multibyte/Makefile" ;;
23399  "examples/multifixed/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/multifixed/Makefile" ;;
23400  "examples/select-drag/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/select-drag/Makefile" ;;
23401  "examples/select-push/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/select-push/Makefile" ;;
23402  "examples/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/tests/Makefile" ;;
23403  "examples/traversal/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/traversal/Makefile" ;;
23404  "examples/Mri/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Mri/Makefile" ;;
23405  "examples/builderXcessory/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/builderXcessory/Makefile" ;;
23406  "examples/builderXcessory/xbae.wml" ) CONFIG_FILES="$CONFIG_FILES examples/builderXcessory/xbae.wml" ;;
23407  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23408  "doc/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/images/Makefile" ;;
23409  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
23410  "scripts/Xbae.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/Xbae.spec" ;;
23411  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23412  "include/XbaeConfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/XbaeConfig.h" ;;
23413  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23414echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23415   { (exit 1); exit 1; }; };;
23416  esac
23417done
23418
23419# If the user did not use the arguments to specify the items to instantiate,
23420# then the envvar interface is used.  Set only those that are not.
23421# We use the long form for the default assignment because of an extremely
23422# bizarre bug on SunOS 4.1.3.
23423if $ac_need_defaults; then
23424  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23425  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23426  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23427fi
23428
23429# Have a temporary directory for convenience.  Make it in the build tree
23430# simply because there is no reason to put it here, and in addition,
23431# creating and moving files from /tmp can sometimes cause problems.
23432# Create a temporary directory, and hook for its removal unless debugging.
23433$debug ||
23434{
23435  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23436  trap '{ (exit 1); exit 1; }' 1 2 13 15
23437}
23438
23439# Create a (secure) tmp directory for tmp files.
23440
23441{
23442  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23443  test -n "$tmp" && test -d "$tmp"
23444}  ||
23445{
23446  tmp=./confstat$$-$RANDOM
23447  (umask 077 && mkdir $tmp)
23448} ||
23449{
23450   echo "$me: cannot create a temporary directory in ." >&2
23451   { (exit 1); exit 1; }
23452}
23453
23454_ACEOF
23455
23456cat >>$CONFIG_STATUS <<_ACEOF
23457
23458#
23459# CONFIG_FILES section.
23460#
23461
23462# No need to generate the scripts if there are no CONFIG_FILES.
23463# This happens for instance when ./config.status config.h
23464if test -n "\$CONFIG_FILES"; then
23465  # Protect against being on the right side of a sed subst in config.status.
23466  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23467   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23468s,@SHELL@,$SHELL,;t t
23469s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23470s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23471s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23472s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23473s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23474s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23475s,@exec_prefix@,$exec_prefix,;t t
23476s,@prefix@,$prefix,;t t
23477s,@program_transform_name@,$program_transform_name,;t t
23478s,@bindir@,$bindir,;t t
23479s,@sbindir@,$sbindir,;t t
23480s,@libexecdir@,$libexecdir,;t t
23481s,@datadir@,$datadir,;t t
23482s,@sysconfdir@,$sysconfdir,;t t
23483s,@sharedstatedir@,$sharedstatedir,;t t
23484s,@localstatedir@,$localstatedir,;t t
23485s,@libdir@,$libdir,;t t
23486s,@includedir@,$includedir,;t t
23487s,@oldincludedir@,$oldincludedir,;t t
23488s,@infodir@,$infodir,;t t
23489s,@mandir@,$mandir,;t t
23490s,@build_alias@,$build_alias,;t t
23491s,@host_alias@,$host_alias,;t t
23492s,@target_alias@,$target_alias,;t t
23493s,@DEFS@,$DEFS,;t t
23494s,@ECHO_C@,$ECHO_C,;t t
23495s,@ECHO_N@,$ECHO_N,;t t
23496s,@ECHO_T@,$ECHO_T,;t t
23497s,@LIBS@,$LIBS,;t t
23498s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23499s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23500s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23501s,@CYGPATH_W@,$CYGPATH_W,;t t
23502s,@PACKAGE@,$PACKAGE,;t t
23503s,@VERSION@,$VERSION,;t t
23504s,@ACLOCAL@,$ACLOCAL,;t t
23505s,@AUTOCONF@,$AUTOCONF,;t t
23506s,@AUTOMAKE@,$AUTOMAKE,;t t
23507s,@AUTOHEADER@,$AUTOHEADER,;t t
23508s,@MAKEINFO@,$MAKEINFO,;t t
23509s,@install_sh@,$install_sh,;t t
23510s,@STRIP@,$STRIP,;t t
23511s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23512s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23513s,@mkdir_p@,$mkdir_p,;t t
23514s,@AWK@,$AWK,;t t
23515s,@SET_MAKE@,$SET_MAKE,;t t
23516s,@am__leading_dot@,$am__leading_dot,;t t
23517s,@AMTAR@,$AMTAR,;t t
23518s,@am__tar@,$am__tar,;t t
23519s,@am__untar@,$am__untar,;t t
23520s,@XBAE_CURRENT@,$XBAE_CURRENT,;t t
23521s,@XBAE_REVISION@,$XBAE_REVISION,;t t
23522s,@XBAE_AGE@,$XBAE_AGE,;t t
23523s,@XBAE_MAJOR@,$XBAE_MAJOR,;t t
23524s,@XBAE_MINOR@,$XBAE_MINOR,;t t
23525s,@XBAE_PICO@,$XBAE_PICO,;t t
23526s,@man2html_cmd@,$man2html_cmd,;t t
23527s,@MAN2HTML@,$MAN2HTML,;t t
23528s,@LT_BUILD_MAN2HTML_TRUE@,$LT_BUILD_MAN2HTML_TRUE,;t t
23529s,@LT_BUILD_MAN2HTML_FALSE@,$LT_BUILD_MAN2HTML_FALSE,;t t
23530s,@CC@,$CC,;t t
23531s,@CFLAGS@,$CFLAGS,;t t
23532s,@LDFLAGS@,$LDFLAGS,;t t
23533s,@CPPFLAGS@,$CPPFLAGS,;t t
23534s,@ac_ct_CC@,$ac_ct_CC,;t t
23535s,@EXEEXT@,$EXEEXT,;t t
23536s,@OBJEXT@,$OBJEXT,;t t
23537s,@DEPDIR@,$DEPDIR,;t t
23538s,@am__include@,$am__include,;t t
23539s,@am__quote@,$am__quote,;t t
23540s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23541s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23542s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23543s,@CCDEPMODE@,$CCDEPMODE,;t t
23544s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23545s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23546s,@CPP@,$CPP,;t t
23547s,@EGREP@,$EGREP,;t t
23548s,@LN_S@,$LN_S,;t t
23549s,@build@,$build,;t t
23550s,@build_cpu@,$build_cpu,;t t
23551s,@build_vendor@,$build_vendor,;t t
23552s,@build_os@,$build_os,;t t
23553s,@host@,$host,;t t
23554s,@host_cpu@,$host_cpu,;t t
23555s,@host_vendor@,$host_vendor,;t t
23556s,@host_os@,$host_os,;t t
23557s,@ECHO@,$ECHO,;t t
23558s,@AR@,$AR,;t t
23559s,@ac_ct_AR@,$ac_ct_AR,;t t
23560s,@RANLIB@,$RANLIB,;t t
23561s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23562s,@CXX@,$CXX,;t t
23563s,@CXXFLAGS@,$CXXFLAGS,;t t
23564s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23565s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23566s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23567s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23568s,@CXXCPP@,$CXXCPP,;t t
23569s,@F77@,$F77,;t t
23570s,@FFLAGS@,$FFLAGS,;t t
23571s,@ac_ct_F77@,$ac_ct_F77,;t t
23572s,@LIBTOOL@,$LIBTOOL,;t t
23573s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23574s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23575s,@MAINT@,$MAINT,;t t
23576s,@X_CFLAGS@,$X_CFLAGS,;t t
23577s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
23578s,@X_LIBS@,$X_LIBS,;t t
23579s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
23580s,@Have_Libxp_TRUE@,$Have_Libxp_TRUE,;t t
23581s,@Have_Libxp_FALSE@,$Have_Libxp_FALSE,;t t
23582s,@LT_HAVELIBXP@,$LT_HAVELIBXP,;t t
23583s,@XPLIB@,$XPLIB,;t t
23584s,@LT_HAVE_XP@,$LT_HAVE_XP,;t t
23585s,@link_motif@,$link_motif,;t t
23586s,@include_motif@,$include_motif,;t t
23587s,@MOTIF_CFLAGS@,$MOTIF_CFLAGS,;t t
23588s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
23589s,@ACLOCALDIR@,$ACLOCALDIR,;t t
23590s,@Aclocal_TRUE@,$Aclocal_TRUE,;t t
23591s,@Aclocal_FALSE@,$Aclocal_FALSE,;t t
23592s,@UseEditres_TRUE@,$UseEditres_TRUE,;t t
23593s,@UseEditres_FALSE@,$UseEditres_FALSE,;t t
23594s,@HaveXpm_TRUE@,$HaveXpm_TRUE,;t t
23595s,@HaveXpm_FALSE@,$HaveXpm_FALSE,;t t
23596s,@HaveWcl_TRUE@,$HaveWcl_TRUE,;t t
23597s,@HaveWcl_FALSE@,$HaveWcl_FALSE,;t t
23598s,@ac_have_ctags@,$ac_have_ctags,;t t
23599s,@Have_Exctags_TRUE@,$Have_Exctags_TRUE,;t t
23600s,@Have_Exctags_FALSE@,$Have_Exctags_FALSE,;t t
23601s,@x_includes@,$x_includes,;t t
23602s,@x_libraries@,$x_libraries,;t t
23603s,@AS@,$AS,;t t
23604s,@DLLTOOL@,$DLLTOOL,;t t
23605s,@OBJDUMP@,$OBJDUMP,;t t
23606s,@THE_DATE@,$THE_DATE,;t t
23607s,@LIBOBJS@,$LIBOBJS,;t t
23608s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23609CEOF
23610
23611_ACEOF
23612
23613  cat >>$CONFIG_STATUS <<\_ACEOF
23614  # Split the substitutions into bite-sized pieces for seds with
23615  # small command number limits, like on Digital OSF/1 and HP-UX.
23616  ac_max_sed_lines=48
23617  ac_sed_frag=1 # Number of current file.
23618  ac_beg=1 # First line for current file.
23619  ac_end=$ac_max_sed_lines # Line after last line for current file.
23620  ac_more_lines=:
23621  ac_sed_cmds=
23622  while $ac_more_lines; do
23623    if test $ac_beg -gt 1; then
23624      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23625    else
23626      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23627    fi
23628    if test ! -s $tmp/subs.frag; then
23629      ac_more_lines=false
23630    else
23631      # The purpose of the label and of the branching condition is to
23632      # speed up the sed processing (if there are no `@' at all, there
23633      # is no need to browse any of the substitutions).
23634      # These are the two extra sed commands mentioned above.
23635      (echo ':t
23636  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23637      if test -z "$ac_sed_cmds"; then
23638	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23639      else
23640	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23641      fi
23642      ac_sed_frag=`expr $ac_sed_frag + 1`
23643      ac_beg=$ac_end
23644      ac_end=`expr $ac_end + $ac_max_sed_lines`
23645    fi
23646  done
23647  if test -z "$ac_sed_cmds"; then
23648    ac_sed_cmds=cat
23649  fi
23650fi # test -n "$CONFIG_FILES"
23651
23652_ACEOF
23653cat >>$CONFIG_STATUS <<\_ACEOF
23654for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23655  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23656  case $ac_file in
23657  - | *:- | *:-:* ) # input from stdin
23658	cat >$tmp/stdin
23659	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23660	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23661  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23662	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23663  * )   ac_file_in=$ac_file.in ;;
23664  esac
23665
23666  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23667  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23668$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669	 X"$ac_file" : 'X\(//\)[^/]' \| \
23670	 X"$ac_file" : 'X\(//\)$' \| \
23671	 X"$ac_file" : 'X\(/\)' \| \
23672	 .     : '\(.\)' 2>/dev/null ||
23673echo X"$ac_file" |
23674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23675  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23676  	  /^X\(\/\/\)$/{ s//\1/; q; }
23677  	  /^X\(\/\).*/{ s//\1/; q; }
23678  	  s/.*/./; q'`
23679  { if $as_mkdir_p; then
23680    mkdir -p "$ac_dir"
23681  else
23682    as_dir="$ac_dir"
23683    as_dirs=
23684    while test ! -d "$as_dir"; do
23685      as_dirs="$as_dir $as_dirs"
23686      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23687$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23688	 X"$as_dir" : 'X\(//\)[^/]' \| \
23689	 X"$as_dir" : 'X\(//\)$' \| \
23690	 X"$as_dir" : 'X\(/\)' \| \
23691	 .     : '\(.\)' 2>/dev/null ||
23692echo X"$as_dir" |
23693    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23694  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23695  	  /^X\(\/\/\)$/{ s//\1/; q; }
23696  	  /^X\(\/\).*/{ s//\1/; q; }
23697  	  s/.*/./; q'`
23698    done
23699    test ! -n "$as_dirs" || mkdir $as_dirs
23700  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23701echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23702   { (exit 1); exit 1; }; }; }
23703
23704  ac_builddir=.
23705
23706if test "$ac_dir" != .; then
23707  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23708  # A "../" for each directory in $ac_dir_suffix.
23709  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23710else
23711  ac_dir_suffix= ac_top_builddir=
23712fi
23713
23714case $srcdir in
23715  .)  # No --srcdir option.  We are building in place.
23716    ac_srcdir=.
23717    if test -z "$ac_top_builddir"; then
23718       ac_top_srcdir=.
23719    else
23720       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23721    fi ;;
23722  [\\/]* | ?:[\\/]* )  # Absolute path.
23723    ac_srcdir=$srcdir$ac_dir_suffix;
23724    ac_top_srcdir=$srcdir ;;
23725  *) # Relative path.
23726    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23727    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23728esac
23729
23730# Do not use `cd foo && pwd` to compute absolute paths, because
23731# the directories may not exist.
23732case `pwd` in
23733.) ac_abs_builddir="$ac_dir";;
23734*)
23735  case "$ac_dir" in
23736  .) ac_abs_builddir=`pwd`;;
23737  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23738  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23739  esac;;
23740esac
23741case $ac_abs_builddir in
23742.) ac_abs_top_builddir=${ac_top_builddir}.;;
23743*)
23744  case ${ac_top_builddir}. in
23745  .) ac_abs_top_builddir=$ac_abs_builddir;;
23746  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23747  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23748  esac;;
23749esac
23750case $ac_abs_builddir in
23751.) ac_abs_srcdir=$ac_srcdir;;
23752*)
23753  case $ac_srcdir in
23754  .) ac_abs_srcdir=$ac_abs_builddir;;
23755  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23756  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23757  esac;;
23758esac
23759case $ac_abs_builddir in
23760.) ac_abs_top_srcdir=$ac_top_srcdir;;
23761*)
23762  case $ac_top_srcdir in
23763  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23764  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23765  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23766  esac;;
23767esac
23768
23769
23770  case $INSTALL in
23771  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23772  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23773  esac
23774
23775  if test x"$ac_file" != x-; then
23776    { echo "$as_me:$LINENO: creating $ac_file" >&5
23777echo "$as_me: creating $ac_file" >&6;}
23778    rm -f "$ac_file"
23779  fi
23780  # Let's still pretend it is `configure' which instantiates (i.e., don't
23781  # use $as_me), people would be surprised to read:
23782  #    /* config.h.  Generated by config.status.  */
23783  if test x"$ac_file" = x-; then
23784    configure_input=
23785  else
23786    configure_input="$ac_file.  "
23787  fi
23788  configure_input=$configure_input"Generated from `echo $ac_file_in |
23789				     sed 's,.*/,,'` by configure."
23790
23791  # First look for the input files in the build tree, otherwise in the
23792  # src tree.
23793  ac_file_inputs=`IFS=:
23794    for f in $ac_file_in; do
23795      case $f in
23796      -) echo $tmp/stdin ;;
23797      [\\/$]*)
23798	 # Absolute (can't be DOS-style, as IFS=:)
23799	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23800echo "$as_me: error: cannot find input file: $f" >&2;}
23801   { (exit 1); exit 1; }; }
23802	 echo "$f";;
23803      *) # Relative
23804	 if test -f "$f"; then
23805	   # Build tree
23806	   echo "$f"
23807	 elif test -f "$srcdir/$f"; then
23808	   # Source tree
23809	   echo "$srcdir/$f"
23810	 else
23811	   # /dev/null tree
23812	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23813echo "$as_me: error: cannot find input file: $f" >&2;}
23814   { (exit 1); exit 1; }; }
23815	 fi;;
23816      esac
23817    done` || { (exit 1); exit 1; }
23818_ACEOF
23819cat >>$CONFIG_STATUS <<_ACEOF
23820  sed "$ac_vpsub
23821$extrasub
23822_ACEOF
23823cat >>$CONFIG_STATUS <<\_ACEOF
23824:t
23825/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23826s,@configure_input@,$configure_input,;t t
23827s,@srcdir@,$ac_srcdir,;t t
23828s,@abs_srcdir@,$ac_abs_srcdir,;t t
23829s,@top_srcdir@,$ac_top_srcdir,;t t
23830s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23831s,@builddir@,$ac_builddir,;t t
23832s,@abs_builddir@,$ac_abs_builddir,;t t
23833s,@top_builddir@,$ac_top_builddir,;t t
23834s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23835s,@INSTALL@,$ac_INSTALL,;t t
23836" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23837  rm -f $tmp/stdin
23838  if test x"$ac_file" != x-; then
23839    mv $tmp/out $ac_file
23840  else
23841    cat $tmp/out
23842    rm -f $tmp/out
23843  fi
23844
23845done
23846_ACEOF
23847cat >>$CONFIG_STATUS <<\_ACEOF
23848
23849#
23850# CONFIG_HEADER section.
23851#
23852
23853# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23854# NAME is the cpp macro being defined and VALUE is the value it is being given.
23855#
23856# ac_d sets the value in "#define NAME VALUE" lines.
23857ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23858ac_dB='[	 ].*$,\1#\2'
23859ac_dC=' '
23860ac_dD=',;t'
23861# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23862ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23863ac_uB='$,\1#\2define\3'
23864ac_uC=' '
23865ac_uD=',;t'
23866
23867for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23868  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23869  case $ac_file in
23870  - | *:- | *:-:* ) # input from stdin
23871	cat >$tmp/stdin
23872	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23873	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23874  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23875	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23876  * )   ac_file_in=$ac_file.in ;;
23877  esac
23878
23879  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23880echo "$as_me: creating $ac_file" >&6;}
23881
23882  # First look for the input files in the build tree, otherwise in the
23883  # src tree.
23884  ac_file_inputs=`IFS=:
23885    for f in $ac_file_in; do
23886      case $f in
23887      -) echo $tmp/stdin ;;
23888      [\\/$]*)
23889	 # Absolute (can't be DOS-style, as IFS=:)
23890	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23891echo "$as_me: error: cannot find input file: $f" >&2;}
23892   { (exit 1); exit 1; }; }
23893	 # Do quote $f, to prevent DOS paths from being IFS'd.
23894	 echo "$f";;
23895      *) # Relative
23896	 if test -f "$f"; then
23897	   # Build tree
23898	   echo "$f"
23899	 elif test -f "$srcdir/$f"; then
23900	   # Source tree
23901	   echo "$srcdir/$f"
23902	 else
23903	   # /dev/null tree
23904	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23905echo "$as_me: error: cannot find input file: $f" >&2;}
23906   { (exit 1); exit 1; }; }
23907	 fi;;
23908      esac
23909    done` || { (exit 1); exit 1; }
23910  # Remove the trailing spaces.
23911  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23912
23913_ACEOF
23914
23915# Transform confdefs.h into two sed scripts, `conftest.defines' and
23916# `conftest.undefs', that substitutes the proper values into
23917# config.h.in to produce config.h.  The first handles `#define'
23918# templates, and the second `#undef' templates.
23919# And first: Protect against being on the right side of a sed subst in
23920# config.status.  Protect against being in an unquoted here document
23921# in config.status.
23922rm -f conftest.defines conftest.undefs
23923# Using a here document instead of a string reduces the quoting nightmare.
23924# Putting comments in sed scripts is not portable.
23925#
23926# `end' is used to avoid that the second main sed command (meant for
23927# 0-ary CPP macros) applies to n-ary macro definitions.
23928# See the Autoconf documentation for `clear'.
23929cat >confdef2sed.sed <<\_ACEOF
23930s/[\\&,]/\\&/g
23931s,[\\$`],\\&,g
23932t clear
23933: clear
23934s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23935t end
23936s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23937: end
23938_ACEOF
23939# If some macros were called several times there might be several times
23940# the same #defines, which is useless.  Nevertheless, we may not want to
23941# sort them, since we want the *last* AC-DEFINE to be honored.
23942uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23943sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23944rm -f confdef2sed.sed
23945
23946# This sed command replaces #undef with comments.  This is necessary, for
23947# example, in the case of _POSIX_SOURCE, which is predefined and required
23948# on some systems where configure will not decide to define it.
23949cat >>conftest.undefs <<\_ACEOF
23950s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23951_ACEOF
23952
23953# Break up conftest.defines because some shells have a limit on the size
23954# of here documents, and old seds have small limits too (100 cmds).
23955echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23956echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23957echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23958echo '  :' >>$CONFIG_STATUS
23959rm -f conftest.tail
23960while grep . conftest.defines >/dev/null
23961do
23962  # Write a limited-size here document to $tmp/defines.sed.
23963  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23964  # Speed up: don't consider the non `#define' lines.
23965  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
23966  # Work around the forget-to-reset-the-flag bug.
23967  echo 't clr' >>$CONFIG_STATUS
23968  echo ': clr' >>$CONFIG_STATUS
23969  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23970  echo 'CEOF
23971  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23972  rm -f $tmp/in
23973  mv $tmp/out $tmp/in
23974' >>$CONFIG_STATUS
23975  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23976  rm -f conftest.defines
23977  mv conftest.tail conftest.defines
23978done
23979rm -f conftest.defines
23980echo '  fi # grep' >>$CONFIG_STATUS
23981echo >>$CONFIG_STATUS
23982
23983# Break up conftest.undefs because some shells have a limit on the size
23984# of here documents, and old seds have small limits too (100 cmds).
23985echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23986rm -f conftest.tail
23987while grep . conftest.undefs >/dev/null
23988do
23989  # Write a limited-size here document to $tmp/undefs.sed.
23990  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23991  # Speed up: don't consider the non `#undef'
23992  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
23993  # Work around the forget-to-reset-the-flag bug.
23994  echo 't clr' >>$CONFIG_STATUS
23995  echo ': clr' >>$CONFIG_STATUS
23996  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23997  echo 'CEOF
23998  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23999  rm -f $tmp/in
24000  mv $tmp/out $tmp/in
24001' >>$CONFIG_STATUS
24002  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24003  rm -f conftest.undefs
24004  mv conftest.tail conftest.undefs
24005done
24006rm -f conftest.undefs
24007
24008cat >>$CONFIG_STATUS <<\_ACEOF
24009  # Let's still pretend it is `configure' which instantiates (i.e., don't
24010  # use $as_me), people would be surprised to read:
24011  #    /* config.h.  Generated by config.status.  */
24012  if test x"$ac_file" = x-; then
24013    echo "/* Generated by configure.  */" >$tmp/config.h
24014  else
24015    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24016  fi
24017  cat $tmp/in >>$tmp/config.h
24018  rm -f $tmp/in
24019  if test x"$ac_file" != x-; then
24020    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24021      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24022echo "$as_me: $ac_file is unchanged" >&6;}
24023    else
24024      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24025$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24026	 X"$ac_file" : 'X\(//\)[^/]' \| \
24027	 X"$ac_file" : 'X\(//\)$' \| \
24028	 X"$ac_file" : 'X\(/\)' \| \
24029	 .     : '\(.\)' 2>/dev/null ||
24030echo X"$ac_file" |
24031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24032  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24033  	  /^X\(\/\/\)$/{ s//\1/; q; }
24034  	  /^X\(\/\).*/{ s//\1/; q; }
24035  	  s/.*/./; q'`
24036      { if $as_mkdir_p; then
24037    mkdir -p "$ac_dir"
24038  else
24039    as_dir="$ac_dir"
24040    as_dirs=
24041    while test ! -d "$as_dir"; do
24042      as_dirs="$as_dir $as_dirs"
24043      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045	 X"$as_dir" : 'X\(//\)[^/]' \| \
24046	 X"$as_dir" : 'X\(//\)$' \| \
24047	 X"$as_dir" : 'X\(/\)' \| \
24048	 .     : '\(.\)' 2>/dev/null ||
24049echo X"$as_dir" |
24050    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052  	  /^X\(\/\/\)$/{ s//\1/; q; }
24053  	  /^X\(\/\).*/{ s//\1/; q; }
24054  	  s/.*/./; q'`
24055    done
24056    test ! -n "$as_dirs" || mkdir $as_dirs
24057  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24058echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24059   { (exit 1); exit 1; }; }; }
24060
24061      rm -f $ac_file
24062      mv $tmp/config.h $ac_file
24063    fi
24064  else
24065    cat $tmp/config.h
24066    rm -f $tmp/config.h
24067  fi
24068# Compute $ac_file's index in $config_headers.
24069_am_stamp_count=1
24070for _am_header in $config_headers :; do
24071  case $_am_header in
24072    $ac_file | $ac_file:* )
24073      break ;;
24074    * )
24075      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24076  esac
24077done
24078echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24079$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080	 X$ac_file : 'X\(//\)[^/]' \| \
24081	 X$ac_file : 'X\(//\)$' \| \
24082	 X$ac_file : 'X\(/\)' \| \
24083	 .     : '\(.\)' 2>/dev/null ||
24084echo X$ac_file |
24085    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087  	  /^X\(\/\/\)$/{ s//\1/; q; }
24088  	  /^X\(\/\).*/{ s//\1/; q; }
24089  	  s/.*/./; q'`/stamp-h$_am_stamp_count
24090done
24091_ACEOF
24092cat >>$CONFIG_STATUS <<\_ACEOF
24093
24094#
24095# CONFIG_COMMANDS section.
24096#
24097for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24098  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24099  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24100  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24101$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24102	 X"$ac_dest" : 'X\(//\)[^/]' \| \
24103	 X"$ac_dest" : 'X\(//\)$' \| \
24104	 X"$ac_dest" : 'X\(/\)' \| \
24105	 .     : '\(.\)' 2>/dev/null ||
24106echo X"$ac_dest" |
24107    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24108  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24109  	  /^X\(\/\/\)$/{ s//\1/; q; }
24110  	  /^X\(\/\).*/{ s//\1/; q; }
24111  	  s/.*/./; q'`
24112  { if $as_mkdir_p; then
24113    mkdir -p "$ac_dir"
24114  else
24115    as_dir="$ac_dir"
24116    as_dirs=
24117    while test ! -d "$as_dir"; do
24118      as_dirs="$as_dir $as_dirs"
24119      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24120$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24121	 X"$as_dir" : 'X\(//\)[^/]' \| \
24122	 X"$as_dir" : 'X\(//\)$' \| \
24123	 X"$as_dir" : 'X\(/\)' \| \
24124	 .     : '\(.\)' 2>/dev/null ||
24125echo X"$as_dir" |
24126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24127  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24128  	  /^X\(\/\/\)$/{ s//\1/; q; }
24129  	  /^X\(\/\).*/{ s//\1/; q; }
24130  	  s/.*/./; q'`
24131    done
24132    test ! -n "$as_dirs" || mkdir $as_dirs
24133  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24134echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24135   { (exit 1); exit 1; }; }; }
24136
24137  ac_builddir=.
24138
24139if test "$ac_dir" != .; then
24140  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24141  # A "../" for each directory in $ac_dir_suffix.
24142  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24143else
24144  ac_dir_suffix= ac_top_builddir=
24145fi
24146
24147case $srcdir in
24148  .)  # No --srcdir option.  We are building in place.
24149    ac_srcdir=.
24150    if test -z "$ac_top_builddir"; then
24151       ac_top_srcdir=.
24152    else
24153       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24154    fi ;;
24155  [\\/]* | ?:[\\/]* )  # Absolute path.
24156    ac_srcdir=$srcdir$ac_dir_suffix;
24157    ac_top_srcdir=$srcdir ;;
24158  *) # Relative path.
24159    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24160    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24161esac
24162
24163# Do not use `cd foo && pwd` to compute absolute paths, because
24164# the directories may not exist.
24165case `pwd` in
24166.) ac_abs_builddir="$ac_dir";;
24167*)
24168  case "$ac_dir" in
24169  .) ac_abs_builddir=`pwd`;;
24170  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24171  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24172  esac;;
24173esac
24174case $ac_abs_builddir in
24175.) ac_abs_top_builddir=${ac_top_builddir}.;;
24176*)
24177  case ${ac_top_builddir}. in
24178  .) ac_abs_top_builddir=$ac_abs_builddir;;
24179  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24180  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24181  esac;;
24182esac
24183case $ac_abs_builddir in
24184.) ac_abs_srcdir=$ac_srcdir;;
24185*)
24186  case $ac_srcdir in
24187  .) ac_abs_srcdir=$ac_abs_builddir;;
24188  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24189  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24190  esac;;
24191esac
24192case $ac_abs_builddir in
24193.) ac_abs_top_srcdir=$ac_top_srcdir;;
24194*)
24195  case $ac_top_srcdir in
24196  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24197  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24198  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24199  esac;;
24200esac
24201
24202
24203  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24204echo "$as_me: executing $ac_dest commands" >&6;}
24205  case $ac_dest in
24206    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24207  # Strip MF so we end up with the name of the file.
24208  mf=`echo "$mf" | sed -e 's/:.*$//'`
24209  # Check whether this is an Automake generated Makefile or not.
24210  # We used to match only the files named `Makefile.in', but
24211  # some people rename them; so instead we look at the file content.
24212  # Grep'ing the first line is not enough: some people post-process
24213  # each Makefile.in and add a new line on top of each file to say so.
24214  # So let's grep whole file.
24215  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24216    dirpart=`(dirname "$mf") 2>/dev/null ||
24217$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24218	 X"$mf" : 'X\(//\)[^/]' \| \
24219	 X"$mf" : 'X\(//\)$' \| \
24220	 X"$mf" : 'X\(/\)' \| \
24221	 .     : '\(.\)' 2>/dev/null ||
24222echo X"$mf" |
24223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24224  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24225  	  /^X\(\/\/\)$/{ s//\1/; q; }
24226  	  /^X\(\/\).*/{ s//\1/; q; }
24227  	  s/.*/./; q'`
24228  else
24229    continue
24230  fi
24231  # Extract the definition of DEPDIR, am__include, and am__quote
24232  # from the Makefile without running `make'.
24233  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24234  test -z "$DEPDIR" && continue
24235  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24236  test -z "am__include" && continue
24237  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24238  # When using ansi2knr, U may be empty or an underscore; expand it
24239  U=`sed -n 's/^U = //p' < "$mf"`
24240  # Find all dependency output files, they are included files with
24241  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24242  # simplest approach to changing $(DEPDIR) to its actual value in the
24243  # expansion.
24244  for file in `sed -n "
24245    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24246       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24247    # Make sure the directory exists.
24248    test -f "$dirpart/$file" && continue
24249    fdir=`(dirname "$file") 2>/dev/null ||
24250$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24251	 X"$file" : 'X\(//\)[^/]' \| \
24252	 X"$file" : 'X\(//\)$' \| \
24253	 X"$file" : 'X\(/\)' \| \
24254	 .     : '\(.\)' 2>/dev/null ||
24255echo X"$file" |
24256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24257  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24258  	  /^X\(\/\/\)$/{ s//\1/; q; }
24259  	  /^X\(\/\).*/{ s//\1/; q; }
24260  	  s/.*/./; q'`
24261    { if $as_mkdir_p; then
24262    mkdir -p $dirpart/$fdir
24263  else
24264    as_dir=$dirpart/$fdir
24265    as_dirs=
24266    while test ! -d "$as_dir"; do
24267      as_dirs="$as_dir $as_dirs"
24268      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24270	 X"$as_dir" : 'X\(//\)[^/]' \| \
24271	 X"$as_dir" : 'X\(//\)$' \| \
24272	 X"$as_dir" : 'X\(/\)' \| \
24273	 .     : '\(.\)' 2>/dev/null ||
24274echo X"$as_dir" |
24275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24276  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24277  	  /^X\(\/\/\)$/{ s//\1/; q; }
24278  	  /^X\(\/\).*/{ s//\1/; q; }
24279  	  s/.*/./; q'`
24280    done
24281    test ! -n "$as_dirs" || mkdir $as_dirs
24282  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24283echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24284   { (exit 1); exit 1; }; }; }
24285
24286    # echo "creating $dirpart/$file"
24287    echo '# dummy' > "$dirpart/$file"
24288  done
24289done
24290 ;;
24291  esac
24292done
24293_ACEOF
24294
24295cat >>$CONFIG_STATUS <<\_ACEOF
24296
24297{ (exit 0); exit 0; }
24298_ACEOF
24299chmod +x $CONFIG_STATUS
24300ac_clean_files=$ac_clean_files_save
24301
24302
24303# configure is writing to config.log, and then calls config.status.
24304# config.status does its own redirection, appending to config.log.
24305# Unfortunately, on DOS this fails, as config.log is still kept open
24306# by configure, so config.status won't be able to write to it; its
24307# output is simply discarded.  So we exec the FD to /dev/null,
24308# effectively closing config.log, so it can be properly (re)opened and
24309# appended to by config.status.  When coming back to configure, we
24310# need to make the FD available again.
24311if test "$no_create" != yes; then
24312  ac_cs_success=:
24313  ac_config_status_args=
24314  test "$silent" = yes &&
24315    ac_config_status_args="$ac_config_status_args --quiet"
24316  exec 5>/dev/null
24317  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24318  exec 5>>config.log
24319  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24320  # would make configure fail if this is the last instruction.
24321  $ac_cs_success || { (exit 1); exit 1; }
24322fi
24323
24324