1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for dx 4.4.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='dx'
423PACKAGE_TARNAME='dx'
424PACKAGE_VERSION='4.4.4'
425PACKAGE_STRING='dx 4.4.4'
426PACKAGE_BUGREPORT=''
427
428ac_unique_file="include/dx/arch.h"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAJOR_VERSION MINOR_VERSION MICRO_VERSION YACC ARCH DOT_EXE_EXT INSTALL_BIN_PROGRAM INSTALL_BIN_SCRIPT FMT_LIBS JAVABRANCH JAVAC JAR JAVAH JINC DX_JAVA_CLASSPATH JNI_CFLAGS BUILDBASE DXEXEC_EXP DXEXEC_IMP DXUI_ALDFLAGS VERSION_STRING ANYDX DXABI DX_RTL_CFLAGS DX_RTL_ALDFLAGS DX_RTL_SYSLIBS DX_RTL_IMPORTS DX_RTL_DXENTRY DX_OUTBOARD_LIBS DX_X_LINK_LIBS DX_GL_LINK_LIBS SHARED_LINK MKDEP LOCALMAKE rsh_path bsh_path LIB_LF JAVA WITH_BUILDLIBDX_TRUE WITH_BUILDLIBDX_FALSE WITH_INSTALLHTML_TRUE WITH_INSTALLHTML_FALSE HAVE_MC LEX LEXLIB LEX_OUTPUT_ROOT yakker 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 dx 4.4.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 dx 4.4.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-shared[=PKGS]
1033                          build shared libraries [default=no]
1034  --enable-static[=PKGS]
1035                          build static libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
1038  --disable-dependency-tracking  speeds up one-time build
1039  --enable-dependency-tracking   do not reject slow dependency extractors
1040  --disable-libtool-lock  avoid locking (might break parallel builds)
1041  --enable-smp-linux     build exec, libs with SMP-parallel capability for Linux platforms (default is disabled)
1042  --enable-ddx            build exec, libs for ddx compatibility (default is disabled)
1043  --enable-new-keylayout  build user interface with different accelerators (default is disabled)
1044  --enable-buildlibdx     enable building libDX.a (default is yes)
1045  --enable-installhtml    enable install of html docs (default is yes)
1046
1047Optional Packages:
1048  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1049  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1050  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1051  --with-pic              try to use only PIC/non-PIC objects [default=use
1052                          both]
1053  --with-tags[=TAGS]
1054                          include additional configurations [automatic]
1055  --without-largefiles    disable support for large (64 bit) file offsets
1056  --with-hdf              enable HDF (default is yes)
1057  --with-tiff             enable TIFF (default is yes)
1058  --with-magick           enable ImageMagick (default is yes)
1059  --with-statmagick       enable Link to Static ImageMagick (default is no)
1060  --with-cdf              enable CDF (default is yes)
1061  --with-netcdf           enable NetCDF (default is yes)
1062  --with-large-arenas     enable 64-bit arenas, when available (default is no)
1063  --with-javadx           enable JAVADX (default is yes)
1064  --with-jni-path         java jni include search path (default none)
1065  --with-java40jar-path   set path to Netscape's java40.jar (default none)
1066  --with-cosmojar-path    set path to Cosmo's npcosmop211.jar (default none)
1067  --with-rsh=PATH         Specify path to remote shell program
1068  --with-bsh=PATH         Specify path to system bourne shell program
1069  --with-x                use the X Window System
1070  --with-motif-includes   set path for motif includes (default none)
1071  --with-motif-libs       set path for motif libraries (default none)
1072
1073Some influential environment variables:
1074  CC          C compiler command
1075  CFLAGS      C compiler flags
1076  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1077              nonstandard directory <lib dir>
1078  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079              headers in a nonstandard directory <include dir>
1080  CPP         C preprocessor
1081  CXX         C++ compiler command
1082  CXXFLAGS    C++ compiler flags
1083  CXXCPP      C++ preprocessor
1084  F77         Fortran 77 compiler command
1085  FFLAGS      Fortran 77 compiler flags
1086
1087Use these variables to override the choices made by `configure' or to help
1088it to find libraries and programs with nonstandard names/locations.
1089
1090_ACEOF
1091fi
1092
1093if test "$ac_init_help" = "recursive"; then
1094  # If there are subdirs, report their specific --help.
1095  ac_popdir=`pwd`
1096  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097    test -d $ac_dir || continue
1098    ac_builddir=.
1099
1100if test "$ac_dir" != .; then
1101  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102  # A "../" for each directory in $ac_dir_suffix.
1103  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104else
1105  ac_dir_suffix= ac_top_builddir=
1106fi
1107
1108case $srcdir in
1109  .)  # No --srcdir option.  We are building in place.
1110    ac_srcdir=.
1111    if test -z "$ac_top_builddir"; then
1112       ac_top_srcdir=.
1113    else
1114       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115    fi ;;
1116  [\\/]* | ?:[\\/]* )  # Absolute path.
1117    ac_srcdir=$srcdir$ac_dir_suffix;
1118    ac_top_srcdir=$srcdir ;;
1119  *) # Relative path.
1120    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122esac
1123
1124# Do not use `cd foo && pwd` to compute absolute paths, because
1125# the directories may not exist.
1126case `pwd` in
1127.) ac_abs_builddir="$ac_dir";;
1128*)
1129  case "$ac_dir" in
1130  .) ac_abs_builddir=`pwd`;;
1131  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133  esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_top_builddir=${ac_top_builddir}.;;
1137*)
1138  case ${ac_top_builddir}. in
1139  .) ac_abs_top_builddir=$ac_abs_builddir;;
1140  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142  esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_srcdir=$ac_srcdir;;
1146*)
1147  case $ac_srcdir in
1148  .) ac_abs_srcdir=$ac_abs_builddir;;
1149  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151  esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_top_srcdir=$ac_top_srcdir;;
1155*)
1156  case $ac_top_srcdir in
1157  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160  esac;;
1161esac
1162
1163    cd $ac_dir
1164    # Check for guested configure; otherwise get Cygnus style configure.
1165    if test -f $ac_srcdir/configure.gnu; then
1166      echo
1167      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1168    elif test -f $ac_srcdir/configure; then
1169      echo
1170      $SHELL $ac_srcdir/configure  --help=recursive
1171    elif test -f $ac_srcdir/configure.ac ||
1172	   test -f $ac_srcdir/configure.in; then
1173      echo
1174      $ac_configure --help
1175    else
1176      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1177    fi
1178    cd $ac_popdir
1179  done
1180fi
1181
1182test -n "$ac_init_help" && exit 0
1183if $ac_init_version; then
1184  cat <<\_ACEOF
1185dx configure 4.4.4
1186generated by GNU Autoconf 2.59
1187
1188Copyright (C) 2003 Free Software Foundation, Inc.
1189This configure script is free software; the Free Software Foundation
1190gives unlimited permission to copy, distribute and modify it.
1191_ACEOF
1192  exit 0
1193fi
1194exec 5>config.log
1195cat >&5 <<_ACEOF
1196This file contains any messages produced by compilers while
1197running configure, to aid debugging if configure makes a mistake.
1198
1199It was created by dx $as_me 4.4.4, which was
1200generated by GNU Autoconf 2.59.  Invocation command line was
1201
1202  $ $0 $@
1203
1204_ACEOF
1205{
1206cat <<_ASUNAME
1207## --------- ##
1208## Platform. ##
1209## --------- ##
1210
1211hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1212uname -m = `(uname -m) 2>/dev/null || echo unknown`
1213uname -r = `(uname -r) 2>/dev/null || echo unknown`
1214uname -s = `(uname -s) 2>/dev/null || echo unknown`
1215uname -v = `(uname -v) 2>/dev/null || echo unknown`
1216
1217/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1218/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1219
1220/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1221/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1222/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1223hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1224/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1225/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1226/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1227
1228_ASUNAME
1229
1230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231for as_dir in $PATH
1232do
1233  IFS=$as_save_IFS
1234  test -z "$as_dir" && as_dir=.
1235  echo "PATH: $as_dir"
1236done
1237
1238} >&5
1239
1240cat >&5 <<_ACEOF
1241
1242
1243## ----------- ##
1244## Core tests. ##
1245## ----------- ##
1246
1247_ACEOF
1248
1249
1250# Keep a trace of the command line.
1251# Strip out --no-create and --no-recursion so they do not pile up.
1252# Strip out --silent because we don't want to record it for future runs.
1253# Also quote any args containing shell meta-characters.
1254# Make two passes to allow for proper duplicate-argument suppression.
1255ac_configure_args=
1256ac_configure_args0=
1257ac_configure_args1=
1258ac_sep=
1259ac_must_keep_next=false
1260for ac_pass in 1 2
1261do
1262  for ac_arg
1263  do
1264    case $ac_arg in
1265    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1266    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267    | -silent | --silent | --silen | --sile | --sil)
1268      continue ;;
1269    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271    esac
1272    case $ac_pass in
1273    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1274    2)
1275      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1276      if test $ac_must_keep_next = true; then
1277	ac_must_keep_next=false # Got value, back to normal.
1278      else
1279	case $ac_arg in
1280	  *=* | --config-cache | -C | -disable-* | --disable-* \
1281	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1282	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1283	  | -with-* | --with-* | -without-* | --without-* | --x)
1284	    case "$ac_configure_args0 " in
1285	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286	    esac
1287	    ;;
1288	  -* ) ac_must_keep_next=true ;;
1289	esac
1290      fi
1291      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292      # Get rid of the leading space.
1293      ac_sep=" "
1294      ;;
1295    esac
1296  done
1297done
1298$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1299$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1300
1301# When interrupted or exit'd, cleanup temporary files, and complete
1302# config.log.  We remove comments because anyway the quotes in there
1303# would cause problems or look ugly.
1304# WARNING: Be sure not to use single quotes in there, as some shells,
1305# such as our DU 5.0 friend, will then `close' the trap.
1306trap 'exit_status=$?
1307  # Save into config.log some information that might help in debugging.
1308  {
1309    echo
1310
1311    cat <<\_ASBOX
1312## ---------------- ##
1313## Cache variables. ##
1314## ---------------- ##
1315_ASBOX
1316    echo
1317    # The following way of writing the cache mishandles newlines in values,
1318{
1319  (set) 2>&1 |
1320    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321    *ac_space=\ *)
1322      sed -n \
1323	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1324	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1325      ;;
1326    *)
1327      sed -n \
1328	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329      ;;
1330    esac;
1331}
1332    echo
1333
1334    cat <<\_ASBOX
1335## ----------------- ##
1336## Output variables. ##
1337## ----------------- ##
1338_ASBOX
1339    echo
1340    for ac_var in $ac_subst_vars
1341    do
1342      eval ac_val=$`echo $ac_var`
1343      echo "$ac_var='"'"'$ac_val'"'"'"
1344    done | sort
1345    echo
1346
1347    if test -n "$ac_subst_files"; then
1348      cat <<\_ASBOX
1349## ------------- ##
1350## Output files. ##
1351## ------------- ##
1352_ASBOX
1353      echo
1354      for ac_var in $ac_subst_files
1355      do
1356	eval ac_val=$`echo $ac_var`
1357	echo "$ac_var='"'"'$ac_val'"'"'"
1358      done | sort
1359      echo
1360    fi
1361
1362    if test -s confdefs.h; then
1363      cat <<\_ASBOX
1364## ----------- ##
1365## confdefs.h. ##
1366## ----------- ##
1367_ASBOX
1368      echo
1369      sed "/^$/d" confdefs.h | sort
1370      echo
1371    fi
1372    test "$ac_signal" != 0 &&
1373      echo "$as_me: caught signal $ac_signal"
1374    echo "$as_me: exit $exit_status"
1375  } >&5
1376  rm -f core *.core &&
1377  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378    exit $exit_status
1379     ' 0
1380for ac_signal in 1 2 13 15; do
1381  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382done
1383ac_signal=0
1384
1385# confdefs.h avoids OS command line length limits that DEFS can exceed.
1386rm -rf conftest* confdefs.h
1387# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388echo >confdefs.h
1389
1390# Predefined preprocessor variables.
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_NAME "$PACKAGE_NAME"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_VERSION "$PACKAGE_VERSION"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_STRING "$PACKAGE_STRING"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414_ACEOF
1415
1416
1417# Let the site file select an alternate cache file if it wants to.
1418# Prefer explicitly selected file to automatically selected ones.
1419if test -z "$CONFIG_SITE"; then
1420  if test "x$prefix" != xNONE; then
1421    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1422  else
1423    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424  fi
1425fi
1426for ac_site_file in $CONFIG_SITE; do
1427  if test -r "$ac_site_file"; then
1428    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1429echo "$as_me: loading site script $ac_site_file" >&6;}
1430    sed 's/^/| /' "$ac_site_file" >&5
1431    . "$ac_site_file"
1432  fi
1433done
1434
1435if test -r "$cache_file"; then
1436  # Some versions of bash will fail to source /dev/null (special
1437  # files actually), so we avoid doing that.
1438  if test -f "$cache_file"; then
1439    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1440echo "$as_me: loading cache $cache_file" >&6;}
1441    case $cache_file in
1442      [\\/]* | ?:[\\/]* ) . $cache_file;;
1443      *)                      . ./$cache_file;;
1444    esac
1445  fi
1446else
1447  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448echo "$as_me: creating cache $cache_file" >&6;}
1449  >$cache_file
1450fi
1451
1452# Check that the precious variables saved in the cache have kept the same
1453# value.
1454ac_cache_corrupted=false
1455for ac_var in `(set) 2>&1 |
1456	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1457  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1458  eval ac_new_set=\$ac_env_${ac_var}_set
1459  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1460  eval ac_new_val="\$ac_env_${ac_var}_value"
1461  case $ac_old_set,$ac_new_set in
1462    set,)
1463      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1464echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1465      ac_cache_corrupted=: ;;
1466    ,set)
1467      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1468echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1469      ac_cache_corrupted=: ;;
1470    ,);;
1471    *)
1472      if test "x$ac_old_val" != "x$ac_new_val"; then
1473	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1474echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1475	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1476echo "$as_me:   former value:  $ac_old_val" >&2;}
1477	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1478echo "$as_me:   current value: $ac_new_val" >&2;}
1479	ac_cache_corrupted=:
1480      fi;;
1481  esac
1482  # Pass precious variables to config.status.
1483  if test "$ac_new_set" = set; then
1484    case $ac_new_val in
1485    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1486      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1487    *) ac_arg=$ac_var=$ac_new_val ;;
1488    esac
1489    case " $ac_configure_args " in
1490      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1491      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492    esac
1493  fi
1494done
1495if $ac_cache_corrupted; then
1496  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1497echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1498  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1499echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1500   { (exit 1); exit 1; }; }
1501fi
1502
1503ac_ext=c
1504ac_cpp='$CPP $CPPFLAGS'
1505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507ac_compiler_gnu=$ac_cv_c_compiler_gnu
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537          ac_config_headers="$ac_config_headers include/dxconfig.h"
1538
1539am__api_version="1.9"
1540ac_aux_dir=
1541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542  if test -f $ac_dir/install-sh; then
1543    ac_aux_dir=$ac_dir
1544    ac_install_sh="$ac_aux_dir/install-sh -c"
1545    break
1546  elif test -f $ac_dir/install.sh; then
1547    ac_aux_dir=$ac_dir
1548    ac_install_sh="$ac_aux_dir/install.sh -c"
1549    break
1550  elif test -f $ac_dir/shtool; then
1551    ac_aux_dir=$ac_dir
1552    ac_install_sh="$ac_aux_dir/shtool install -c"
1553    break
1554  fi
1555done
1556if test -z "$ac_aux_dir"; then
1557  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559   { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565# Find a good install program.  We prefer a C program (faster),
1566# so one script is as good as another.  But avoid the broken or
1567# incompatible versions:
1568# SysV /etc/install, /usr/sbin/install
1569# SunOS /usr/etc/install
1570# IRIX /sbin/install
1571# AIX /bin/install
1572# AmigaOS /C/install, which installs bootblocks on floppy discs
1573# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576# OS/2's system install, which has a completely different semantic
1577# ./install, which can be erroneously created by make from ./install.sh.
1578echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580if test -z "$INSTALL"; then
1581if test "${ac_cv_path_install+set}" = set; then
1582  echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587  IFS=$as_save_IFS
1588  test -z "$as_dir" && as_dir=.
1589  # Account for people who put trailing slashes in PATH elements.
1590case $as_dir/ in
1591  ./ | .// | /cC/* | \
1592  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594  /usr/ucb/* ) ;;
1595  *)
1596    # OSF1 and SCO ODT 3.0 have their own names for install.
1597    # Don't use installbsd from OSF since it installs stuff as root
1598    # by default.
1599    for ac_prog in ginstall scoinst install; do
1600      for ac_exec_ext in '' $ac_executable_extensions; do
1601	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602	  if test $ac_prog = install &&
1603	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604	    # AIX install.  It has an incompatible calling convention.
1605	    :
1606	  elif test $ac_prog = install &&
1607	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608	    # program-specific install script used by HP pwplus--don't use.
1609	    :
1610	  else
1611	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1612	    break 3
1613	  fi
1614	fi
1615      done
1616    done
1617    ;;
1618esac
1619done
1620
1621
1622fi
1623  if test "${ac_cv_path_install+set}" = set; then
1624    INSTALL=$ac_cv_path_install
1625  else
1626    # As a last resort, use the slow shell script.  We don't cache a
1627    # path for INSTALL within a source directory, because that will
1628    # break other packages using the cache if that directory is
1629    # removed, or if the path is relative.
1630    INSTALL=$ac_install_sh
1631  fi
1632fi
1633echo "$as_me:$LINENO: result: $INSTALL" >&5
1634echo "${ECHO_T}$INSTALL" >&6
1635
1636# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637# It thinks the first close brace ends the variable substitution.
1638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639
1640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641
1642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643
1644echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646# Just in case
1647sleep 1
1648echo timestamp > conftest.file
1649# Do `set' in a subshell so we don't clobber the current shell's
1650# arguments.  Must try -L first in case configure is actually a
1651# symlink; some systems play weird games with the mod time of symlinks
1652# (eg FreeBSD returns the mod time of the symlink's containing
1653# directory).
1654if (
1655   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656   if test "$*" = "X"; then
1657      # -L didn't work.
1658      set X `ls -t $srcdir/configure conftest.file`
1659   fi
1660   rm -f conftest.file
1661   if test "$*" != "X $srcdir/configure conftest.file" \
1662      && test "$*" != "X conftest.file $srcdir/configure"; then
1663
1664      # If neither matched, then we have a broken ls.  This can happen
1665      # if, for instance, CONFIG_SHELL is bash and it inherits a
1666      # broken ls alias from the environment.  This has actually
1667      # happened.  Such a system could not be considered "sane".
1668      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1669alias in your environment" >&5
1670echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1671alias in your environment" >&2;}
1672   { (exit 1); exit 1; }; }
1673   fi
1674
1675   test "$2" = conftest.file
1676   )
1677then
1678   # Ok.
1679   :
1680else
1681   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682Check your system clock" >&5
1683echo "$as_me: error: newly created file is older than distributed files!
1684Check your system clock" >&2;}
1685   { (exit 1); exit 1; }; }
1686fi
1687echo "$as_me:$LINENO: result: yes" >&5
1688echo "${ECHO_T}yes" >&6
1689test "$program_prefix" != NONE &&
1690  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691# Use a double $ so make ignores it.
1692test "$program_suffix" != NONE &&
1693  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694# Double any \ or $.  echo might interpret backslashes.
1695# By default was `s,x,x', remove it if useless.
1696cat <<\_ACEOF >conftest.sed
1697s/[\\$]/&&/g;s/;s,x,x,$//
1698_ACEOF
1699program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700rm conftest.sed
1701
1702# expand $ac_aux_dir to an absolute path
1703am_aux_dir=`cd $ac_aux_dir && pwd`
1704
1705test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706# Use eval to expand $SHELL
1707if eval "$MISSING --run true"; then
1708  am_missing_run="$MISSING --run "
1709else
1710  am_missing_run=
1711  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713fi
1714
1715if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716  # We used to keeping the `.' as first argument, in order to
1717  # allow $(mkdir_p) to be used without argument.  As in
1718  #   $(mkdir_p) $(somedir)
1719  # where $(somedir) is conditionally defined.  However this is wrong
1720  # for two reasons:
1721  #  1. if the package is installed by a user who cannot write `.'
1722  #     make install will fail,
1723  #  2. the above comment should most certainly read
1724  #     $(mkdir_p) $(DESTDIR)$(somedir)
1725  #     so it does not work when $(somedir) is undefined and
1726  #     $(DESTDIR) is not.
1727  #  To support the latter case, we have to write
1728  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729  #  so the `.' trick is pointless.
1730  mkdir_p='mkdir -p --'
1731else
1732  # On NextStep and OpenStep, the `mkdir' command does not
1733  # recognize any option.  It will interpret all options as
1734  # directories to create, and then abort because `.' already
1735  # exists.
1736  for d in ./-p ./--version;
1737  do
1738    test -d $d && rmdir $d
1739  done
1740  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741  if test -f "$ac_aux_dir/mkinstalldirs"; then
1742    mkdir_p='$(mkinstalldirs)'
1743  else
1744    mkdir_p='$(install_sh) -d'
1745  fi
1746fi
1747
1748for ac_prog in gawk mawk nawk awk
1749do
1750  # Extract the first word of "$ac_prog", so it can be a program name with args.
1751set dummy $ac_prog; ac_word=$2
1752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754if test "${ac_cv_prog_AWK+set}" = set; then
1755  echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757  if test -n "$AWK"; then
1758  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1759else
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763  IFS=$as_save_IFS
1764  test -z "$as_dir" && as_dir=.
1765  for ac_exec_ext in '' $ac_executable_extensions; do
1766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767    ac_cv_prog_AWK="$ac_prog"
1768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769    break 2
1770  fi
1771done
1772done
1773
1774fi
1775fi
1776AWK=$ac_cv_prog_AWK
1777if test -n "$AWK"; then
1778  echo "$as_me:$LINENO: result: $AWK" >&5
1779echo "${ECHO_T}$AWK" >&6
1780else
1781  echo "$as_me:$LINENO: result: no" >&5
1782echo "${ECHO_T}no" >&6
1783fi
1784
1785  test -n "$AWK" && break
1786done
1787
1788echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792  echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794  cat >conftest.make <<\_ACEOF
1795all:
1796	@echo 'ac_maketemp="$(MAKE)"'
1797_ACEOF
1798# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800if test -n "$ac_maketemp"; then
1801  eval ac_cv_prog_make_${ac_make}_set=yes
1802else
1803  eval ac_cv_prog_make_${ac_make}_set=no
1804fi
1805rm -f conftest.make
1806fi
1807if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808  echo "$as_me:$LINENO: result: yes" >&5
1809echo "${ECHO_T}yes" >&6
1810  SET_MAKE=
1811else
1812  echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814  SET_MAKE="MAKE=${MAKE-make}"
1815fi
1816
1817rm -rf .tst 2>/dev/null
1818mkdir .tst 2>/dev/null
1819if test -d .tst; then
1820  am__leading_dot=.
1821else
1822  am__leading_dot=_
1823fi
1824rmdir .tst 2>/dev/null
1825
1826# test to see if srcdir already configured
1827if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828   test -f $srcdir/config.status; then
1829  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831   { (exit 1); exit 1; }; }
1832fi
1833
1834# test whether we have cygpath
1835if test -z "$CYGPATH_W"; then
1836  if (cygpath --version) >/dev/null 2>/dev/null; then
1837    CYGPATH_W='cygpath -w'
1838  else
1839    CYGPATH_W=echo
1840  fi
1841fi
1842
1843
1844# Define the identity of the package.
1845 PACKAGE='dx'
1846 VERSION='4.4.4'
1847
1848
1849cat >>confdefs.h <<_ACEOF
1850#define PACKAGE "$PACKAGE"
1851_ACEOF
1852
1853
1854cat >>confdefs.h <<_ACEOF
1855#define VERSION "$VERSION"
1856_ACEOF
1857
1858# Some tools Automake needs.
1859
1860ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861
1862
1863AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864
1865
1866AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867
1868
1869AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870
1871
1872MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1873
1874install_sh=${install_sh-"$am_aux_dir/install-sh"}
1875
1876# Installed binaries are usually stripped using `strip' when the user
1877# run `make install-strip'.  However `strip' might not be the right
1878# tool to use in cross-compilation environments, therefore Automake
1879# will honor the `STRIP' environment variable to overrule this program.
1880if test "$cross_compiling" != no; then
1881  if test -n "$ac_tool_prefix"; then
1882  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883set dummy ${ac_tool_prefix}strip; ac_word=$2
1884echo "$as_me:$LINENO: checking for $ac_word" >&5
1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886if test "${ac_cv_prog_STRIP+set}" = set; then
1887  echo $ECHO_N "(cached) $ECHO_C" >&6
1888else
1889  if test -n "$STRIP"; then
1890  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1891else
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901    break 2
1902  fi
1903done
1904done
1905
1906fi
1907fi
1908STRIP=$ac_cv_prog_STRIP
1909if test -n "$STRIP"; then
1910  echo "$as_me:$LINENO: result: $STRIP" >&5
1911echo "${ECHO_T}$STRIP" >&6
1912else
1913  echo "$as_me:$LINENO: result: no" >&5
1914echo "${ECHO_T}no" >&6
1915fi
1916
1917fi
1918if test -z "$ac_cv_prog_STRIP"; then
1919  ac_ct_STRIP=$STRIP
1920  # Extract the first word of "strip", so it can be a program name with args.
1921set dummy strip; ac_word=$2
1922echo "$as_me:$LINENO: checking for $ac_word" >&5
1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925  echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927  if test -n "$ac_ct_STRIP"; then
1928  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1929else
1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931for as_dir in $PATH
1932do
1933  IFS=$as_save_IFS
1934  test -z "$as_dir" && as_dir=.
1935  for ac_exec_ext in '' $ac_executable_extensions; do
1936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937    ac_cv_prog_ac_ct_STRIP="strip"
1938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939    break 2
1940  fi
1941done
1942done
1943
1944  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945fi
1946fi
1947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948if test -n "$ac_ct_STRIP"; then
1949  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950echo "${ECHO_T}$ac_ct_STRIP" >&6
1951else
1952  echo "$as_me:$LINENO: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956  STRIP=$ac_ct_STRIP
1957else
1958  STRIP="$ac_cv_prog_STRIP"
1959fi
1960
1961fi
1962INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1963
1964# We need awk for the "check" target.  The system "awk" is bad on
1965# some platforms.
1966# Always define AMTAR for backward compatibility.
1967
1968AMTAR=${AMTAR-"${am_missing_run}tar"}
1969
1970am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971
1972
1973
1974
1975
1976# Check whether --enable-shared or --disable-shared was given.
1977if test "${enable_shared+set}" = set; then
1978  enableval="$enable_shared"
1979  p=${PACKAGE-default}
1980    case $enableval in
1981    yes) enable_shared=yes ;;
1982    no) enable_shared=no ;;
1983    *)
1984      enable_shared=no
1985      # Look at the argument we got.  We use all the common list separators.
1986      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1987      for pkg in $enableval; do
1988	IFS="$lt_save_ifs"
1989	if test "X$pkg" = "X$p"; then
1990	  enable_shared=yes
1991	fi
1992      done
1993      IFS="$lt_save_ifs"
1994      ;;
1995    esac
1996else
1997  enable_shared=no
1998fi;
1999
2000
2001# Check whether --enable-static or --disable-static was given.
2002if test "${enable_static+set}" = set; then
2003  enableval="$enable_static"
2004  p=${PACKAGE-default}
2005    case $enableval in
2006    yes) enable_static=yes ;;
2007    no) enable_static=no ;;
2008    *)
2009     enable_static=no
2010      # Look at the argument we got.  We use all the common list separators.
2011      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2012      for pkg in $enableval; do
2013	IFS="$lt_save_ifs"
2014	if test "X$pkg" = "X$p"; then
2015	  enable_static=yes
2016	fi
2017      done
2018      IFS="$lt_save_ifs"
2019      ;;
2020    esac
2021else
2022  enable_static=yes
2023fi;
2024
2025# Check whether --enable-fast-install or --disable-fast-install was given.
2026if test "${enable_fast_install+set}" = set; then
2027  enableval="$enable_fast_install"
2028  p=${PACKAGE-default}
2029    case $enableval in
2030    yes) enable_fast_install=yes ;;
2031    no) enable_fast_install=no ;;
2032    *)
2033      enable_fast_install=no
2034      # Look at the argument we got.  We use all the common list separators.
2035      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2036      for pkg in $enableval; do
2037	IFS="$lt_save_ifs"
2038	if test "X$pkg" = "X$p"; then
2039	  enable_fast_install=yes
2040	fi
2041      done
2042      IFS="$lt_save_ifs"
2043      ;;
2044    esac
2045else
2046  enable_fast_install=yes
2047fi;
2048
2049# Make sure we can run config.sub.
2050$ac_config_sub sun4 >/dev/null 2>&1 ||
2051  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2052echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2053   { (exit 1); exit 1; }; }
2054
2055echo "$as_me:$LINENO: checking build system type" >&5
2056echo $ECHO_N "checking build system type... $ECHO_C" >&6
2057if test "${ac_cv_build+set}" = set; then
2058  echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060  ac_cv_build_alias=$build_alias
2061test -z "$ac_cv_build_alias" &&
2062  ac_cv_build_alias=`$ac_config_guess`
2063test -z "$ac_cv_build_alias" &&
2064  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2065echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2066   { (exit 1); exit 1; }; }
2067ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2068  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2069echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2070   { (exit 1); exit 1; }; }
2071
2072fi
2073echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2074echo "${ECHO_T}$ac_cv_build" >&6
2075build=$ac_cv_build
2076build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2079
2080
2081echo "$as_me:$LINENO: checking host system type" >&5
2082echo $ECHO_N "checking host system type... $ECHO_C" >&6
2083if test "${ac_cv_host+set}" = set; then
2084  echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086  ac_cv_host_alias=$host_alias
2087test -z "$ac_cv_host_alias" &&
2088  ac_cv_host_alias=$ac_cv_build_alias
2089ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2090  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2091echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2092   { (exit 1); exit 1; }; }
2093
2094fi
2095echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096echo "${ECHO_T}$ac_cv_host" >&6
2097host=$ac_cv_host
2098host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2099host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2100host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2101
2102
2103DEPDIR="${am__leading_dot}deps"
2104
2105          ac_config_commands="$ac_config_commands depfiles"
2106
2107
2108am_make=${MAKE-make}
2109cat > confinc << 'END'
2110am__doit:
2111	@echo done
2112.PHONY: am__doit
2113END
2114# If we don't find an include directive, just comment out the code.
2115echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2116echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2117am__include="#"
2118am__quote=
2119_am_result=none
2120# First try GNU make style include.
2121echo "include confinc" > confmf
2122# We grep out `Entering directory' and `Leaving directory'
2123# messages which can occur if `w' ends up in MAKEFLAGS.
2124# In particular we don't look at `^make:' because GNU make might
2125# be invoked under some other name (usually "gmake"), in which
2126# case it prints its new name instead of `make'.
2127if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2128   am__include=include
2129   am__quote=
2130   _am_result=GNU
2131fi
2132# Now try BSD make style include.
2133if test "$am__include" = "#"; then
2134   echo '.include "confinc"' > confmf
2135   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2136      am__include=.include
2137      am__quote="\""
2138      _am_result=BSD
2139   fi
2140fi
2141
2142
2143echo "$as_me:$LINENO: result: $_am_result" >&5
2144echo "${ECHO_T}$_am_result" >&6
2145rm -f confinc confmf
2146
2147# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2148if test "${enable_dependency_tracking+set}" = set; then
2149  enableval="$enable_dependency_tracking"
2150
2151fi;
2152if test "x$enable_dependency_tracking" != xno; then
2153  am_depcomp="$ac_aux_dir/depcomp"
2154  AMDEPBACKSLASH='\'
2155fi
2156
2157
2158if test "x$enable_dependency_tracking" != xno; then
2159  AMDEP_TRUE=
2160  AMDEP_FALSE='#'
2161else
2162  AMDEP_TRUE='#'
2163  AMDEP_FALSE=
2164fi
2165
2166
2167
2168ac_ext=c
2169ac_cpp='$CPP $CPPFLAGS'
2170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173if test -n "$ac_tool_prefix"; then
2174  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2175set dummy ${ac_tool_prefix}gcc; ac_word=$2
2176echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178if test "${ac_cv_prog_CC+set}" = set; then
2179  echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181  if test -n "$CC"; then
2182  ac_cv_prog_CC="$CC" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187  IFS=$as_save_IFS
2188  test -z "$as_dir" && as_dir=.
2189  for ac_exec_ext in '' $ac_executable_extensions; do
2190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193    break 2
2194  fi
2195done
2196done
2197
2198fi
2199fi
2200CC=$ac_cv_prog_CC
2201if test -n "$CC"; then
2202  echo "$as_me:$LINENO: result: $CC" >&5
2203echo "${ECHO_T}$CC" >&6
2204else
2205  echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6
2207fi
2208
2209fi
2210if test -z "$ac_cv_prog_CC"; then
2211  ac_ct_CC=$CC
2212  # Extract the first word of "gcc", so it can be a program name with args.
2213set dummy gcc; ac_word=$2
2214echo "$as_me:$LINENO: checking for $ac_word" >&5
2215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217  echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219  if test -n "$ac_ct_CC"; then
2220  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225  IFS=$as_save_IFS
2226  test -z "$as_dir" && as_dir=.
2227  for ac_exec_ext in '' $ac_executable_extensions; do
2228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229    ac_cv_prog_ac_ct_CC="gcc"
2230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231    break 2
2232  fi
2233done
2234done
2235
2236fi
2237fi
2238ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239if test -n "$ac_ct_CC"; then
2240  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241echo "${ECHO_T}$ac_ct_CC" >&6
2242else
2243  echo "$as_me:$LINENO: result: no" >&5
2244echo "${ECHO_T}no" >&6
2245fi
2246
2247  CC=$ac_ct_CC
2248else
2249  CC="$ac_cv_prog_CC"
2250fi
2251
2252if test -z "$CC"; then
2253  if test -n "$ac_tool_prefix"; then
2254  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2255set dummy ${ac_tool_prefix}cc; ac_word=$2
2256echo "$as_me:$LINENO: checking for $ac_word" >&5
2257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258if test "${ac_cv_prog_CC+set}" = set; then
2259  echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261  if test -n "$CC"; then
2262  ac_cv_prog_CC="$CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269  for ac_exec_ext in '' $ac_executable_extensions; do
2270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271    ac_cv_prog_CC="${ac_tool_prefix}cc"
2272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273    break 2
2274  fi
2275done
2276done
2277
2278fi
2279fi
2280CC=$ac_cv_prog_CC
2281if test -n "$CC"; then
2282  echo "$as_me:$LINENO: result: $CC" >&5
2283echo "${ECHO_T}$CC" >&6
2284else
2285  echo "$as_me:$LINENO: result: no" >&5
2286echo "${ECHO_T}no" >&6
2287fi
2288
2289fi
2290if test -z "$ac_cv_prog_CC"; then
2291  ac_ct_CC=$CC
2292  # Extract the first word of "cc", so it can be a program name with args.
2293set dummy cc; ac_word=$2
2294echo "$as_me:$LINENO: checking for $ac_word" >&5
2295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2297  echo $ECHO_N "(cached) $ECHO_C" >&6
2298else
2299  if test -n "$ac_ct_CC"; then
2300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2301else
2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303for as_dir in $PATH
2304do
2305  IFS=$as_save_IFS
2306  test -z "$as_dir" && as_dir=.
2307  for ac_exec_ext in '' $ac_executable_extensions; do
2308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309    ac_cv_prog_ac_ct_CC="cc"
2310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311    break 2
2312  fi
2313done
2314done
2315
2316fi
2317fi
2318ac_ct_CC=$ac_cv_prog_ac_ct_CC
2319if test -n "$ac_ct_CC"; then
2320  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2321echo "${ECHO_T}$ac_ct_CC" >&6
2322else
2323  echo "$as_me:$LINENO: result: no" >&5
2324echo "${ECHO_T}no" >&6
2325fi
2326
2327  CC=$ac_ct_CC
2328else
2329  CC="$ac_cv_prog_CC"
2330fi
2331
2332fi
2333if test -z "$CC"; then
2334  # Extract the first word of "cc", so it can be a program name with args.
2335set dummy cc; ac_word=$2
2336echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2338if test "${ac_cv_prog_CC+set}" = set; then
2339  echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341  if test -n "$CC"; then
2342  ac_cv_prog_CC="$CC" # Let the user override the test.
2343else
2344  ac_prog_rejected=no
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350  for ac_exec_ext in '' $ac_executable_extensions; do
2351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2353       ac_prog_rejected=yes
2354       continue
2355     fi
2356    ac_cv_prog_CC="cc"
2357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358    break 2
2359  fi
2360done
2361done
2362
2363if test $ac_prog_rejected = yes; then
2364  # We found a bogon in the path, so make sure we never use it.
2365  set dummy $ac_cv_prog_CC
2366  shift
2367  if test $# != 0; then
2368    # We chose a different compiler from the bogus one.
2369    # However, it has the same basename, so the bogon will be chosen
2370    # first if we set CC to just the basename; use the full file name.
2371    shift
2372    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2373  fi
2374fi
2375fi
2376fi
2377CC=$ac_cv_prog_CC
2378if test -n "$CC"; then
2379  echo "$as_me:$LINENO: result: $CC" >&5
2380echo "${ECHO_T}$CC" >&6
2381else
2382  echo "$as_me:$LINENO: result: no" >&5
2383echo "${ECHO_T}no" >&6
2384fi
2385
2386fi
2387if test -z "$CC"; then
2388  if test -n "$ac_tool_prefix"; then
2389  for ac_prog in cl
2390  do
2391    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2393echo "$as_me:$LINENO: checking for $ac_word" >&5
2394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2395if test "${ac_cv_prog_CC+set}" = set; then
2396  echo $ECHO_N "(cached) $ECHO_C" >&6
2397else
2398  if test -n "$CC"; then
2399  ac_cv_prog_CC="$CC" # Let the user override the test.
2400else
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404  IFS=$as_save_IFS
2405  test -z "$as_dir" && as_dir=.
2406  for ac_exec_ext in '' $ac_executable_extensions; do
2407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410    break 2
2411  fi
2412done
2413done
2414
2415fi
2416fi
2417CC=$ac_cv_prog_CC
2418if test -n "$CC"; then
2419  echo "$as_me:$LINENO: result: $CC" >&5
2420echo "${ECHO_T}$CC" >&6
2421else
2422  echo "$as_me:$LINENO: result: no" >&5
2423echo "${ECHO_T}no" >&6
2424fi
2425
2426    test -n "$CC" && break
2427  done
2428fi
2429if test -z "$CC"; then
2430  ac_ct_CC=$CC
2431  for ac_prog in cl
2432do
2433  # Extract the first word of "$ac_prog", so it can be a program name with args.
2434set dummy $ac_prog; ac_word=$2
2435echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  if test -n "$ac_ct_CC"; then
2441  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446  IFS=$as_save_IFS
2447  test -z "$as_dir" && as_dir=.
2448  for ac_exec_ext in '' $ac_executable_extensions; do
2449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450    ac_cv_prog_ac_ct_CC="$ac_prog"
2451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452    break 2
2453  fi
2454done
2455done
2456
2457fi
2458fi
2459ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460if test -n "$ac_ct_CC"; then
2461  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462echo "${ECHO_T}$ac_ct_CC" >&6
2463else
2464  echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6
2466fi
2467
2468  test -n "$ac_ct_CC" && break
2469done
2470
2471  CC=$ac_ct_CC
2472fi
2473
2474fi
2475
2476
2477test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2478See \`config.log' for more details." >&5
2479echo "$as_me: error: no acceptable C compiler found in \$PATH
2480See \`config.log' for more details." >&2;}
2481   { (exit 1); exit 1; }; }
2482
2483# Provide some information about the compiler.
2484echo "$as_me:$LINENO:" \
2485     "checking for C compiler version" >&5
2486ac_compiler=`set X $ac_compile; echo $2`
2487{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2488  (eval $ac_compiler --version </dev/null >&5) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }
2492{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2493  (eval $ac_compiler -v </dev/null >&5) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }
2497{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2498  (eval $ac_compiler -V </dev/null >&5) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); }
2502
2503cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509
2510int
2511main ()
2512{
2513
2514  ;
2515  return 0;
2516}
2517_ACEOF
2518ac_clean_files_save=$ac_clean_files
2519ac_clean_files="$ac_clean_files a.out a.exe b.out"
2520# Try to create an executable without -o first, disregard a.out.
2521# It will help us diagnose broken compilers, and finding out an intuition
2522# of exeext.
2523echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2524echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2525ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2526if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2527  (eval $ac_link_default) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }; then
2531  # Find the output, starting from the most likely.  This scheme is
2532# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2533# resort.
2534
2535# Be careful to initialize this variable, since it used to be cached.
2536# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2537ac_cv_exeext=
2538# b.out is created by i960 compilers.
2539for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2540do
2541  test -f "$ac_file" || continue
2542  case $ac_file in
2543    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2544	;;
2545    conftest.$ac_ext )
2546	# This is the source file.
2547	;;
2548    [ab].out )
2549	# We found the default executable, but exeext='' is most
2550	# certainly right.
2551	break;;
2552    *.* )
2553	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2554	# FIXME: I believe we export ac_cv_exeext for Libtool,
2555	# but it would be cool to find out if it's true.  Does anybody
2556	# maintain Libtool? --akim.
2557	export ac_cv_exeext
2558	break;;
2559    * )
2560	break;;
2561  esac
2562done
2563else
2564  echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: C compiler cannot create executables
2570See \`config.log' for more details." >&2;}
2571   { (exit 77); exit 77; }; }
2572fi
2573
2574ac_exeext=$ac_cv_exeext
2575echo "$as_me:$LINENO: result: $ac_file" >&5
2576echo "${ECHO_T}$ac_file" >&6
2577
2578# Check the compiler produces executables we can run.  If not, either
2579# the compiler is broken, or we cross compile.
2580echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2582# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583# If not cross compiling, check that we can run a simple program.
2584if test "$cross_compiling" != yes; then
2585  if { ac_try='./$ac_file'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; }; then
2591    cross_compiling=no
2592  else
2593    if test "$cross_compiling" = maybe; then
2594	cross_compiling=yes
2595    else
2596	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2597If you meant to cross compile, use \`--host'.
2598See \`config.log' for more details." >&5
2599echo "$as_me: error: cannot run C compiled programs.
2600If you meant to cross compile, use \`--host'.
2601See \`config.log' for more details." >&2;}
2602   { (exit 1); exit 1; }; }
2603    fi
2604  fi
2605fi
2606echo "$as_me:$LINENO: result: yes" >&5
2607echo "${ECHO_T}yes" >&6
2608
2609rm -f a.out a.exe conftest$ac_cv_exeext b.out
2610ac_clean_files=$ac_clean_files_save
2611# Check the compiler produces executables we can run.  If not, either
2612# the compiler is broken, or we cross compile.
2613echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2614echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2615echo "$as_me:$LINENO: result: $cross_compiling" >&5
2616echo "${ECHO_T}$cross_compiling" >&6
2617
2618echo "$as_me:$LINENO: checking for suffix of executables" >&5
2619echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2621  (eval $ac_link) 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; then
2625  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2626# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2627# work properly (i.e., refer to `conftest.exe'), while it won't with
2628# `rm'.
2629for ac_file in conftest.exe conftest conftest.*; do
2630  test -f "$ac_file" || continue
2631  case $ac_file in
2632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2633    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634	  export ac_cv_exeext
2635	  break;;
2636    * ) break;;
2637  esac
2638done
2639else
2640  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2641See \`config.log' for more details." >&5
2642echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2643See \`config.log' for more details." >&2;}
2644   { (exit 1); exit 1; }; }
2645fi
2646
2647rm -f conftest$ac_cv_exeext
2648echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2649echo "${ECHO_T}$ac_cv_exeext" >&6
2650
2651rm -f conftest.$ac_ext
2652EXEEXT=$ac_cv_exeext
2653ac_exeext=$EXEEXT
2654echo "$as_me:$LINENO: checking for suffix of object files" >&5
2655echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2656if test "${ac_cv_objext+set}" = set; then
2657  echo $ECHO_N "(cached) $ECHO_C" >&6
2658else
2659  cat >conftest.$ac_ext <<_ACEOF
2660/* confdefs.h.  */
2661_ACEOF
2662cat confdefs.h >>conftest.$ac_ext
2663cat >>conftest.$ac_ext <<_ACEOF
2664/* end confdefs.h.  */
2665
2666int
2667main ()
2668{
2669
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674rm -f conftest.o conftest.obj
2675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676  (eval $ac_compile) 2>&5
2677  ac_status=$?
2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679  (exit $ac_status); }; then
2680  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2681  case $ac_file in
2682    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2683    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2684       break;;
2685  esac
2686done
2687else
2688  echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: cannot compute suffix of object files: cannot compile
2694See \`config.log' for more details." >&2;}
2695   { (exit 1); exit 1; }; }
2696fi
2697
2698rm -f conftest.$ac_cv_objext conftest.$ac_ext
2699fi
2700echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2701echo "${ECHO_T}$ac_cv_objext" >&6
2702OBJEXT=$ac_cv_objext
2703ac_objext=$OBJEXT
2704echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2705echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2706if test "${ac_cv_c_compiler_gnu+set}" = set; then
2707  echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709  cat >conftest.$ac_ext <<_ACEOF
2710/* confdefs.h.  */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h.  */
2715
2716int
2717main ()
2718{
2719#ifndef __GNUC__
2720       choke me
2721#endif
2722
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729  (eval $ac_compile) 2>conftest.er1
2730  ac_status=$?
2731  grep -v '^ *+' conftest.er1 >conftest.err
2732  rm -f conftest.er1
2733  cat conftest.err >&5
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); } &&
2736	 { ac_try='test -z "$ac_c_werror_flag"
2737			 || test ! -s conftest.err'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; } &&
2743	 { ac_try='test -s conftest.$ac_objext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  ac_compiler_gnu=yes
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754ac_compiler_gnu=no
2755fi
2756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757ac_cv_c_compiler_gnu=$ac_compiler_gnu
2758
2759fi
2760echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2762GCC=`test $ac_compiler_gnu = yes && echo yes`
2763ac_test_CFLAGS=${CFLAGS+set}
2764ac_save_CFLAGS=$CFLAGS
2765CFLAGS="-g"
2766echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2768if test "${ac_cv_prog_cc_g+set}" = set; then
2769  echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771  cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h.  */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h.  */
2777
2778int
2779main ()
2780{
2781
2782  ;
2783  return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext
2787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788  (eval $ac_compile) 2>conftest.er1
2789  ac_status=$?
2790  grep -v '^ *+' conftest.er1 >conftest.err
2791  rm -f conftest.er1
2792  cat conftest.err >&5
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); } &&
2795	 { ac_try='test -z "$ac_c_werror_flag"
2796			 || test ! -s conftest.err'
2797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798  (eval $ac_try) 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }; } &&
2802	 { ac_try='test -s conftest.$ac_objext'
2803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804  (eval $ac_try) 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }; }; then
2808  ac_cv_prog_cc_g=yes
2809else
2810  echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813ac_cv_prog_cc_g=no
2814fi
2815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816fi
2817echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2818echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2819if test "$ac_test_CFLAGS" = set; then
2820  CFLAGS=$ac_save_CFLAGS
2821elif test $ac_cv_prog_cc_g = yes; then
2822  if test "$GCC" = yes; then
2823    CFLAGS="-g -O2"
2824  else
2825    CFLAGS="-g"
2826  fi
2827else
2828  if test "$GCC" = yes; then
2829    CFLAGS="-O2"
2830  else
2831    CFLAGS=
2832  fi
2833fi
2834echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2835echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2836if test "${ac_cv_prog_cc_stdc+set}" = set; then
2837  echo $ECHO_N "(cached) $ECHO_C" >&6
2838else
2839  ac_cv_prog_cc_stdc=no
2840ac_save_CC=$CC
2841cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h.  */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h.  */
2847#include <stdarg.h>
2848#include <stdio.h>
2849#include <sys/types.h>
2850#include <sys/stat.h>
2851/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2852struct buf { int x; };
2853FILE * (*rcsopen) (struct buf *, struct stat *, int);
2854static char *e (p, i)
2855     char **p;
2856     int i;
2857{
2858  return p[i];
2859}
2860static char *f (char * (*g) (char **, int), char **p, ...)
2861{
2862  char *s;
2863  va_list v;
2864  va_start (v,p);
2865  s = g (p, va_arg (v,int));
2866  va_end (v);
2867  return s;
2868}
2869
2870/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2871   function prototypes and stuff, but not '\xHH' hex character constants.
2872   These don't provoke an error unfortunately, instead are silently treated
2873   as 'x'.  The following induces an error, until -std1 is added to get
2874   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2875   array size at least.  It's necessary to write '\x00'==0 to get something
2876   that's true only with -std1.  */
2877int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2878
2879int test (int i, double x);
2880struct s1 {int (*f) (int a);};
2881struct s2 {int (*f) (double a);};
2882int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883int argc;
2884char **argv;
2885int
2886main ()
2887{
2888return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893# Don't try gcc -ansi; that turns off useful extensions and
2894# breaks some systems' header files.
2895# AIX			-qlanglvl=ansi
2896# Ultrix and OSF/1	-std1
2897# HP-UX 10.20 and later	-Ae
2898# HP-UX older versions	-Aa -D_HPUX_SOURCE
2899# SVR4			-Xc -D__EXTENSIONS__
2900for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2901do
2902  CC="$ac_save_CC $ac_arg"
2903  rm -f conftest.$ac_objext
2904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905  (eval $ac_compile) 2>conftest.er1
2906  ac_status=$?
2907  grep -v '^ *+' conftest.er1 >conftest.err
2908  rm -f conftest.er1
2909  cat conftest.err >&5
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); } &&
2912	 { ac_try='test -z "$ac_c_werror_flag"
2913			 || test ! -s conftest.err'
2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915  (eval $ac_try) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; } &&
2919	 { ac_try='test -s conftest.$ac_objext'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; }; then
2925  ac_cv_prog_cc_stdc=$ac_arg
2926break
2927else
2928  echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931fi
2932rm -f conftest.err conftest.$ac_objext
2933done
2934rm -f conftest.$ac_ext conftest.$ac_objext
2935CC=$ac_save_CC
2936
2937fi
2938
2939case "x$ac_cv_prog_cc_stdc" in
2940  x|xno)
2941    echo "$as_me:$LINENO: result: none needed" >&5
2942echo "${ECHO_T}none needed" >&6 ;;
2943  *)
2944    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2945echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2946    CC="$CC $ac_cv_prog_cc_stdc" ;;
2947esac
2948
2949# Some people use a C++ compiler to compile C.  Since we use `exit',
2950# in C++ we need to declare it.  In case someone uses the same compiler
2951# for both compiling C and C++ we need to have the C++ compiler decide
2952# the declaration of exit, since it's the most demanding environment.
2953cat >conftest.$ac_ext <<_ACEOF
2954#ifndef __cplusplus
2955  choke me
2956#endif
2957_ACEOF
2958rm -f conftest.$ac_objext
2959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960  (eval $ac_compile) 2>conftest.er1
2961  ac_status=$?
2962  grep -v '^ *+' conftest.er1 >conftest.err
2963  rm -f conftest.er1
2964  cat conftest.err >&5
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); } &&
2967	 { ac_try='test -z "$ac_c_werror_flag"
2968			 || test ! -s conftest.err'
2969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970  (eval $ac_try) 2>&5
2971  ac_status=$?
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); }; } &&
2974	 { ac_try='test -s conftest.$ac_objext'
2975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976  (eval $ac_try) 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; }; then
2980  for ac_declaration in \
2981   '' \
2982   'extern "C" void std::exit (int) throw (); using std::exit;' \
2983   'extern "C" void std::exit (int); using std::exit;' \
2984   'extern "C" void exit (int) throw ();' \
2985   'extern "C" [[noreturn]] void exit (int);' \
2986   '[[noreturn]] void exit (int);'
2987do
2988  cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h.  */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h.  */
2994$ac_declaration
2995#include <stdlib.h>
2996int
2997main ()
2998{
2999exit (42);
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004rm -f conftest.$ac_objext
3005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006  (eval $ac_compile) 2>conftest.er1
3007  ac_status=$?
3008  grep -v '^ *+' conftest.er1 >conftest.err
3009  rm -f conftest.er1
3010  cat conftest.err >&5
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); } &&
3013	 { ac_try='test -z "$ac_c_werror_flag"
3014			 || test ! -s conftest.err'
3015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016  (eval $ac_try) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }; } &&
3020	 { ac_try='test -s conftest.$ac_objext'
3021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022  (eval $ac_try) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; }; then
3026  :
3027else
3028  echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031continue
3032fi
3033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034  cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h.  */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h.  */
3040$ac_declaration
3041int
3042main ()
3043{
3044exit (42);
3045  ;
3046  return 0;
3047}
3048_ACEOF
3049rm -f conftest.$ac_objext
3050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051  (eval $ac_compile) 2>conftest.er1
3052  ac_status=$?
3053  grep -v '^ *+' conftest.er1 >conftest.err
3054  rm -f conftest.er1
3055  cat conftest.err >&5
3056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057  (exit $ac_status); } &&
3058	 { ac_try='test -z "$ac_c_werror_flag"
3059			 || test ! -s conftest.err'
3060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061  (eval $ac_try) 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; } &&
3065	 { ac_try='test -s conftest.$ac_objext'
3066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067  (eval $ac_try) 2>&5
3068  ac_status=$?
3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); }; }; then
3071  break
3072else
3073  echo "$as_me: failed program was:" >&5
3074sed 's/^/| /' conftest.$ac_ext >&5
3075
3076fi
3077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3078done
3079rm -f conftest*
3080if test -n "$ac_declaration"; then
3081  echo '#ifdef __cplusplus' >>confdefs.h
3082  echo $ac_declaration      >>confdefs.h
3083  echo '#endif'             >>confdefs.h
3084fi
3085
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090fi
3091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092ac_ext=c
3093ac_cpp='$CPP $CPPFLAGS'
3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097
3098depcc="$CC"   am_compiler_list=
3099
3100echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3101echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3102if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3103  echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3106  # We make a subdir and do the tests there.  Otherwise we can end up
3107  # making bogus files that we don't know about and never remove.  For
3108  # instance it was reported that on HP-UX the gcc test will end up
3109  # making a dummy file named `D' -- because `-MD' means `put the output
3110  # in D'.
3111  mkdir conftest.dir
3112  # Copy depcomp to subdir because otherwise we won't find it if we're
3113  # using a relative directory.
3114  cp "$am_depcomp" conftest.dir
3115  cd conftest.dir
3116  # We will build objects and dependencies in a subdirectory because
3117  # it helps to detect inapplicable dependency modes.  For instance
3118  # both Tru64's cc and ICC support -MD to output dependencies as a
3119  # side effect of compilation, but ICC will put the dependencies in
3120  # the current directory while Tru64 will put them in the object
3121  # directory.
3122  mkdir sub
3123
3124  am_cv_CC_dependencies_compiler_type=none
3125  if test "$am_compiler_list" = ""; then
3126     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3127  fi
3128  for depmode in $am_compiler_list; do
3129    # Setup a source with many dependencies, because some compilers
3130    # like to wrap large dependency lists on column 80 (with \), and
3131    # we should not choose a depcomp mode which is confused by this.
3132    #
3133    # We need to recreate these files for each test, as the compiler may
3134    # overwrite some of them when testing with obscure command lines.
3135    # This happens at least with the AIX C compiler.
3136    : > sub/conftest.c
3137    for i in 1 2 3 4 5 6; do
3138      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3139      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3140      # Solaris 8's {/usr,}/bin/sh.
3141      touch sub/conftst$i.h
3142    done
3143    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3144
3145    case $depmode in
3146    nosideeffect)
3147      # after this tag, mechanisms are not by side-effect, so they'll
3148      # only be used when explicitly requested
3149      if test "x$enable_dependency_tracking" = xyes; then
3150	continue
3151      else
3152	break
3153      fi
3154      ;;
3155    none) break ;;
3156    esac
3157    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3158    # mode.  It turns out that the SunPro C++ compiler does not properly
3159    # handle `-M -o', and we need to detect this.
3160    if depmode=$depmode \
3161       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3162       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3163       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3164         >/dev/null 2>conftest.err &&
3165       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3166       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3167       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3168      # icc doesn't choke on unknown options, it will just issue warnings
3169      # or remarks (even with -Werror).  So we grep stderr for any message
3170      # that says an option was ignored or not supported.
3171      # When given -MP, icc 7.0 and 7.1 complain thusly:
3172      #   icc: Command line warning: ignoring option '-M'; no argument required
3173      # The diagnosis changed in icc 8.0:
3174      #   icc: Command line remark: option '-MP' not supported
3175      if (grep 'ignoring option' conftest.err ||
3176          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3177        am_cv_CC_dependencies_compiler_type=$depmode
3178        break
3179      fi
3180    fi
3181  done
3182
3183  cd ..
3184  rm -rf conftest.dir
3185else
3186  am_cv_CC_dependencies_compiler_type=none
3187fi
3188
3189fi
3190echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3191echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3192CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3193
3194
3195
3196if
3197  test "x$enable_dependency_tracking" != xno \
3198  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3199  am__fastdepCC_TRUE=
3200  am__fastdepCC_FALSE='#'
3201else
3202  am__fastdepCC_TRUE='#'
3203  am__fastdepCC_FALSE=
3204fi
3205
3206
3207echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3208echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3209if test "${lt_cv_path_SED+set}" = set; then
3210  echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212  # Loop through the user's path and test for sed and gsed.
3213# Then use that list of sed's as ones to test for truncation.
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219  for lt_ac_prog in sed gsed; do
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3222        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3223      fi
3224    done
3225  done
3226done
3227lt_ac_max=0
3228lt_ac_count=0
3229# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3230# along with /bin/sed that truncates output.
3231for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3232  test ! -f $lt_ac_sed && continue
3233  cat /dev/null > conftest.in
3234  lt_ac_count=0
3235  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3236  # Check for GNU sed and select it if it is found.
3237  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3238    lt_cv_path_SED=$lt_ac_sed
3239    break
3240  fi
3241  while true; do
3242    cat conftest.in conftest.in >conftest.tmp
3243    mv conftest.tmp conftest.in
3244    cp conftest.in conftest.nl
3245    echo >>conftest.nl
3246    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3247    cmp -s conftest.out conftest.nl || break
3248    # 10000 chars as input seems more than enough
3249    test $lt_ac_count -gt 10 && break
3250    lt_ac_count=`expr $lt_ac_count + 1`
3251    if test $lt_ac_count -gt $lt_ac_max; then
3252      lt_ac_max=$lt_ac_count
3253      lt_cv_path_SED=$lt_ac_sed
3254    fi
3255  done
3256done
3257
3258fi
3259
3260SED=$lt_cv_path_SED
3261echo "$as_me:$LINENO: result: $SED" >&5
3262echo "${ECHO_T}$SED" >&6
3263
3264echo "$as_me:$LINENO: checking for egrep" >&5
3265echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3266if test "${ac_cv_prog_egrep+set}" = set; then
3267  echo $ECHO_N "(cached) $ECHO_C" >&6
3268else
3269  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3270    then ac_cv_prog_egrep='grep -E'
3271    else ac_cv_prog_egrep='egrep'
3272    fi
3273fi
3274echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3275echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3276 EGREP=$ac_cv_prog_egrep
3277
3278
3279
3280# Check whether --with-gnu-ld or --without-gnu-ld was given.
3281if test "${with_gnu_ld+set}" = set; then
3282  withval="$with_gnu_ld"
3283  test "$withval" = no || with_gnu_ld=yes
3284else
3285  with_gnu_ld=no
3286fi;
3287ac_prog=ld
3288if test "$GCC" = yes; then
3289  # Check if gcc -print-prog-name=ld gives a path.
3290  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3291echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3292  case $host in
3293  *-*-mingw*)
3294    # gcc leaves a trailing carriage return which upsets mingw
3295    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3296  *)
3297    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3298  esac
3299  case $ac_prog in
3300    # Accept absolute paths.
3301    [\\/]* | ?:[\\/]*)
3302      re_direlt='/[^/][^/]*/\.\./'
3303      # Canonicalize the pathname of ld
3304      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3305      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3306	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3307      done
3308      test -z "$LD" && LD="$ac_prog"
3309      ;;
3310  "")
3311    # If it fails, then pretend we aren't using GCC.
3312    ac_prog=ld
3313    ;;
3314  *)
3315    # If it is relative, then search for the first ld in PATH.
3316    with_gnu_ld=unknown
3317    ;;
3318  esac
3319elif test "$with_gnu_ld" = yes; then
3320  echo "$as_me:$LINENO: checking for GNU ld" >&5
3321echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3322else
3323  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3324echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3325fi
3326if test "${lt_cv_path_LD+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  if test -z "$LD"; then
3330  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3331  for ac_dir in $PATH; do
3332    IFS="$lt_save_ifs"
3333    test -z "$ac_dir" && ac_dir=.
3334    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3335      lt_cv_path_LD="$ac_dir/$ac_prog"
3336      # Check to see if the program is GNU ld.  I'd rather use --version,
3337      # but apparently some variants of GNU ld only accept -v.
3338      # Break only if it was the GNU/non-GNU ld that we prefer.
3339      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3340      *GNU* | *'with BFD'*)
3341	test "$with_gnu_ld" != no && break
3342	;;
3343      *)
3344	test "$with_gnu_ld" != yes && break
3345	;;
3346      esac
3347    fi
3348  done
3349  IFS="$lt_save_ifs"
3350else
3351  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3352fi
3353fi
3354
3355LD="$lt_cv_path_LD"
3356if test -n "$LD"; then
3357  echo "$as_me:$LINENO: result: $LD" >&5
3358echo "${ECHO_T}$LD" >&6
3359else
3360  echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6
3362fi
3363test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3364echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3365   { (exit 1); exit 1; }; }
3366echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3367echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3368if test "${lt_cv_prog_gnu_ld+set}" = set; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3372case `$LD -v 2>&1 </dev/null` in
3373*GNU* | *'with BFD'*)
3374  lt_cv_prog_gnu_ld=yes
3375  ;;
3376*)
3377  lt_cv_prog_gnu_ld=no
3378  ;;
3379esac
3380fi
3381echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3382echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3383with_gnu_ld=$lt_cv_prog_gnu_ld
3384
3385
3386echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3387echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3388if test "${lt_cv_ld_reload_flag+set}" = set; then
3389  echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391  lt_cv_ld_reload_flag='-r'
3392fi
3393echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3394echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3395reload_flag=$lt_cv_ld_reload_flag
3396case $reload_flag in
3397"" | " "*) ;;
3398*) reload_flag=" $reload_flag" ;;
3399esac
3400reload_cmds='$LD$reload_flag -o $output$reload_objs'
3401case $host_os in
3402  darwin*)
3403    if test "$GCC" = yes; then
3404      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3405    else
3406      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3407    fi
3408    ;;
3409esac
3410
3411echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3412echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3413if test "${lt_cv_path_NM+set}" = set; then
3414  echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416  if test -n "$NM"; then
3417  # Let the user override the test.
3418  lt_cv_path_NM="$NM"
3419else
3420  lt_nm_to_check="${ac_tool_prefix}nm"
3421  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3422    lt_nm_to_check="$lt_nm_to_check nm"
3423  fi
3424  for lt_tmp_nm in $lt_nm_to_check; do
3425    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3426    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3427      IFS="$lt_save_ifs"
3428      test -z "$ac_dir" && ac_dir=.
3429      tmp_nm="$ac_dir/$lt_tmp_nm"
3430      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3431	# Check to see if the nm accepts a BSD-compat flag.
3432	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433	#   nm: unknown option "B" ignored
3434	# Tru64's nm complains that /dev/null is an invalid object file
3435	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3436	*/dev/null* | *'Invalid file or object type'*)
3437	  lt_cv_path_NM="$tmp_nm -B"
3438	  break
3439	  ;;
3440	*)
3441	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3442	  */dev/null*)
3443	    lt_cv_path_NM="$tmp_nm -p"
3444	    break
3445	    ;;
3446	  *)
3447	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3448	    continue # so that we can try to find one that supports BSD flags
3449	    ;;
3450	  esac
3451	  ;;
3452	esac
3453      fi
3454    done
3455    IFS="$lt_save_ifs"
3456  done
3457  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3458fi
3459fi
3460echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3461echo "${ECHO_T}$lt_cv_path_NM" >&6
3462NM="$lt_cv_path_NM"
3463
3464echo "$as_me:$LINENO: checking whether ln -s works" >&5
3465echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3466LN_S=$as_ln_s
3467if test "$LN_S" = "ln -s"; then
3468  echo "$as_me:$LINENO: result: yes" >&5
3469echo "${ECHO_T}yes" >&6
3470else
3471  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3472echo "${ECHO_T}no, using $LN_S" >&6
3473fi
3474
3475echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3476echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3477if test "${lt_cv_deplibs_check_method+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  lt_cv_file_magic_cmd='$MAGIC_CMD'
3481lt_cv_file_magic_test_file=
3482lt_cv_deplibs_check_method='unknown'
3483# Need to set the preceding variable on all platforms that support
3484# interlibrary dependencies.
3485# 'none' -- dependencies not supported.
3486# `unknown' -- same as none, but documents that we really don't know.
3487# 'pass_all' -- all dependencies passed with no checks.
3488# 'test_compile' -- check by making test program.
3489# 'file_magic [[regex]]' -- check by looking for files in library path
3490# which responds to the $file_magic_cmd with a given extended regex.
3491# If you have `file' or equivalent on your system and you're not sure
3492# whether `pass_all' will *always* work, you probably want this one.
3493
3494case $host_os in
3495aix4* | aix5*)
3496  lt_cv_deplibs_check_method=pass_all
3497  ;;
3498
3499beos*)
3500  lt_cv_deplibs_check_method=pass_all
3501  ;;
3502
3503bsdi[45]*)
3504  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3505  lt_cv_file_magic_cmd='/usr/bin/file -L'
3506  lt_cv_file_magic_test_file=/shlib/libc.so
3507  ;;
3508
3509cygwin*)
3510  # func_win32_libid is a shell function defined in ltmain.sh
3511  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3512  lt_cv_file_magic_cmd='func_win32_libid'
3513  ;;
3514
3515mingw* | pw32*)
3516  # Base MSYS/MinGW do not provide the 'file' command needed by
3517  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3518  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3519  lt_cv_file_magic_cmd='$OBJDUMP -f'
3520  ;;
3521
3522darwin* | rhapsody*)
3523  lt_cv_deplibs_check_method=pass_all
3524  ;;
3525
3526freebsd* | kfreebsd*-gnu | dragonfly*)
3527  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3528    case $host_cpu in
3529    i*86 )
3530      # Not sure whether the presence of OpenBSD here was a mistake.
3531      # Let's accept both of them until this is cleared up.
3532      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3533      lt_cv_file_magic_cmd=/usr/bin/file
3534      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3535      ;;
3536    esac
3537  else
3538    lt_cv_deplibs_check_method=pass_all
3539  fi
3540  ;;
3541
3542gnu*)
3543  lt_cv_deplibs_check_method=pass_all
3544  ;;
3545
3546hpux10.20* | hpux11*)
3547  lt_cv_file_magic_cmd=/usr/bin/file
3548  case $host_cpu in
3549  ia64*)
3550    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3552    ;;
3553  hppa*64*)
3554    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]'
3555    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3556    ;;
3557  *)
3558    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3559    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3560    ;;
3561  esac
3562  ;;
3563
3564interix3*)
3565  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3566  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3567  ;;
3568
3569irix5* | irix6* | nonstopux*)
3570  case $LD in
3571  *-32|*"-32 ") libmagic=32-bit;;
3572  *-n32|*"-n32 ") libmagic=N32;;
3573  *-64|*"-64 ") libmagic=64-bit;;
3574  *) libmagic=never-match;;
3575  esac
3576  lt_cv_deplibs_check_method=pass_all
3577  ;;
3578
3579# This must be Linux ELF.
3580linux*)
3581  lt_cv_deplibs_check_method=pass_all
3582  ;;
3583
3584netbsd*)
3585  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3587  else
3588    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3589  fi
3590  ;;
3591
3592newos6*)
3593  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3594  lt_cv_file_magic_cmd=/usr/bin/file
3595  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3596  ;;
3597
3598nto-qnx*)
3599  lt_cv_deplibs_check_method=unknown
3600  ;;
3601
3602openbsd*)
3603  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3604    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3605  else
3606    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3607  fi
3608  ;;
3609
3610osf3* | osf4* | osf5*)
3611  lt_cv_deplibs_check_method=pass_all
3612  ;;
3613
3614solaris*)
3615  lt_cv_deplibs_check_method=pass_all
3616  ;;
3617
3618sysv4 | sysv4.3*)
3619  case $host_vendor in
3620  motorola)
3621    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]'
3622    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3623    ;;
3624  ncr)
3625    lt_cv_deplibs_check_method=pass_all
3626    ;;
3627  sequent)
3628    lt_cv_file_magic_cmd='/bin/file'
3629    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3630    ;;
3631  sni)
3632    lt_cv_file_magic_cmd='/bin/file'
3633    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3634    lt_cv_file_magic_test_file=/lib/libc.so
3635    ;;
3636  siemens)
3637    lt_cv_deplibs_check_method=pass_all
3638    ;;
3639  pc)
3640    lt_cv_deplibs_check_method=pass_all
3641    ;;
3642  esac
3643  ;;
3644
3645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3646  lt_cv_deplibs_check_method=pass_all
3647  ;;
3648esac
3649
3650fi
3651echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3652echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3653file_magic_cmd=$lt_cv_file_magic_cmd
3654deplibs_check_method=$lt_cv_deplibs_check_method
3655test -z "$deplibs_check_method" && deplibs_check_method=unknown
3656
3657
3658
3659
3660# If no C compiler was specified, use CC.
3661LTCC=${LTCC-"$CC"}
3662
3663# If no C compiler flags were specified, use CFLAGS.
3664LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3665
3666# Allow CC to be a program name with arguments.
3667compiler=$CC
3668
3669
3670# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3671if test "${enable_libtool_lock+set}" = set; then
3672  enableval="$enable_libtool_lock"
3673
3674fi;
3675test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3676
3677# Some flags need to be propagated to the compiler or linker for good
3678# libtool support.
3679case $host in
3680ia64-*-hpux*)
3681  # Find out which ABI we are using.
3682  echo 'int i;' > conftest.$ac_ext
3683  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684  (eval $ac_compile) 2>&5
3685  ac_status=$?
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); }; then
3688    case `/usr/bin/file conftest.$ac_objext` in
3689    *ELF-32*)
3690      HPUX_IA64_MODE="32"
3691      ;;
3692    *ELF-64*)
3693      HPUX_IA64_MODE="64"
3694      ;;
3695    esac
3696  fi
3697  rm -rf conftest*
3698  ;;
3699*-*-irix6*)
3700  # Find out which ABI we are using.
3701  echo '#line 3701 "configure"' > conftest.$ac_ext
3702  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703  (eval $ac_compile) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; then
3707   if test "$lt_cv_prog_gnu_ld" = yes; then
3708    case `/usr/bin/file conftest.$ac_objext` in
3709    *32-bit*)
3710      LD="${LD-ld} -melf32bsmip"
3711      ;;
3712    *N32*)
3713      LD="${LD-ld} -melf32bmipn32"
3714      ;;
3715    *64-bit*)
3716      LD="${LD-ld} -melf64bmip"
3717      ;;
3718    esac
3719   else
3720    case `/usr/bin/file conftest.$ac_objext` in
3721    *32-bit*)
3722      LD="${LD-ld} -32"
3723      ;;
3724    *N32*)
3725      LD="${LD-ld} -n32"
3726      ;;
3727    *64-bit*)
3728      LD="${LD-ld} -64"
3729      ;;
3730    esac
3731   fi
3732  fi
3733  rm -rf conftest*
3734  ;;
3735
3736x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3737  # Find out which ABI we are using.
3738  echo 'int i;' > conftest.$ac_ext
3739  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740  (eval $ac_compile) 2>&5
3741  ac_status=$?
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); }; then
3744    case `/usr/bin/file conftest.o` in
3745    *32-bit*)
3746      case $host in
3747        x86_64-*linux*)
3748          LD="${LD-ld} -m elf_i386"
3749          ;;
3750        ppc64-*linux*|powerpc64-*linux*)
3751          LD="${LD-ld} -m elf32ppclinux"
3752          ;;
3753        s390x-*linux*)
3754          LD="${LD-ld} -m elf_s390"
3755          ;;
3756        sparc64-*linux*)
3757          LD="${LD-ld} -m elf32_sparc"
3758          ;;
3759      esac
3760      ;;
3761    *64-bit*)
3762      case $host in
3763        x86_64-*linux*)
3764          LD="${LD-ld} -m elf_x86_64"
3765          ;;
3766        ppc*-*linux*|powerpc*-*linux*)
3767          LD="${LD-ld} -m elf64ppc"
3768          ;;
3769        s390*-*linux*)
3770          LD="${LD-ld} -m elf64_s390"
3771          ;;
3772        sparc*-*linux*)
3773          LD="${LD-ld} -m elf64_sparc"
3774          ;;
3775      esac
3776      ;;
3777    esac
3778  fi
3779  rm -rf conftest*
3780  ;;
3781
3782*-*-sco3.2v5*)
3783  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3784  SAVE_CFLAGS="$CFLAGS"
3785  CFLAGS="$CFLAGS -belf"
3786  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3787echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3788if test "${lt_cv_cc_needs_belf+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791  ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797     cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h.  */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext conftest$ac_exeext
3813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814  (eval $ac_link) 2>conftest.er1
3815  ac_status=$?
3816  grep -v '^ *+' conftest.er1 >conftest.err
3817  rm -f conftest.er1
3818  cat conftest.err >&5
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); } &&
3821	 { ac_try='test -z "$ac_c_werror_flag"
3822			 || test ! -s conftest.err'
3823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824  (eval $ac_try) 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }; } &&
3828	 { ac_try='test -s conftest$ac_exeext'
3829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830  (eval $ac_try) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; }; then
3834  lt_cv_cc_needs_belf=yes
3835else
3836  echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839lt_cv_cc_needs_belf=no
3840fi
3841rm -f conftest.err conftest.$ac_objext \
3842      conftest$ac_exeext conftest.$ac_ext
3843     ac_ext=c
3844ac_cpp='$CPP $CPPFLAGS'
3845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849fi
3850echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3851echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3852  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3853    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3854    CFLAGS="$SAVE_CFLAGS"
3855  fi
3856  ;;
3857sparc*-*solaris*)
3858  # Find out which ABI we are using.
3859  echo 'int i;' > conftest.$ac_ext
3860  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861  (eval $ac_compile) 2>&5
3862  ac_status=$?
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); }; then
3865    case `/usr/bin/file conftest.o` in
3866    *64-bit*)
3867      case $lt_cv_prog_gnu_ld in
3868      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3869      *)    LD="${LD-ld} -64" ;;
3870      esac
3871      ;;
3872    esac
3873  fi
3874  rm -rf conftest*
3875  ;;
3876
3877
3878esac
3879
3880need_locks="$enable_libtool_lock"
3881
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3889echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3890# On Suns, sometimes $CPP names a directory.
3891if test -n "$CPP" && test -d "$CPP"; then
3892  CPP=
3893fi
3894if test -z "$CPP"; then
3895  if test "${ac_cv_prog_CPP+set}" = set; then
3896  echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898      # Double quotes because CPP needs to be expanded
3899    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3900    do
3901      ac_preproc_ok=false
3902for ac_c_preproc_warn_flag in '' yes
3903do
3904  # Use a header file that comes with gcc, so configuring glibc
3905  # with a fresh cross-compiler works.
3906  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3907  # <limits.h> exists even on freestanding compilers.
3908  # On the NeXT, cc -E runs the code through the compiler's parser,
3909  # not just through cpp. "Syntax error" is here to catch this case.
3910  cat >conftest.$ac_ext <<_ACEOF
3911/* confdefs.h.  */
3912_ACEOF
3913cat confdefs.h >>conftest.$ac_ext
3914cat >>conftest.$ac_ext <<_ACEOF
3915/* end confdefs.h.  */
3916#ifdef __STDC__
3917# include <limits.h>
3918#else
3919# include <assert.h>
3920#endif
3921		     Syntax error
3922_ACEOF
3923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3924  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3925  ac_status=$?
3926  grep -v '^ *+' conftest.er1 >conftest.err
3927  rm -f conftest.er1
3928  cat conftest.err >&5
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); } >/dev/null; then
3931  if test -s conftest.err; then
3932    ac_cpp_err=$ac_c_preproc_warn_flag
3933    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3934  else
3935    ac_cpp_err=
3936  fi
3937else
3938  ac_cpp_err=yes
3939fi
3940if test -z "$ac_cpp_err"; then
3941  :
3942else
3943  echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946  # Broken: fails on valid input.
3947continue
3948fi
3949rm -f conftest.err conftest.$ac_ext
3950
3951  # OK, works on sane cases.  Now check whether non-existent headers
3952  # can be detected and how.
3953  cat >conftest.$ac_ext <<_ACEOF
3954/* confdefs.h.  */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h.  */
3959#include <ac_nonexistent.h>
3960_ACEOF
3961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3962  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963  ac_status=$?
3964  grep -v '^ *+' conftest.er1 >conftest.err
3965  rm -f conftest.er1
3966  cat conftest.err >&5
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); } >/dev/null; then
3969  if test -s conftest.err; then
3970    ac_cpp_err=$ac_c_preproc_warn_flag
3971    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3972  else
3973    ac_cpp_err=
3974  fi
3975else
3976  ac_cpp_err=yes
3977fi
3978if test -z "$ac_cpp_err"; then
3979  # Broken: success on invalid input.
3980continue
3981else
3982  echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985  # Passes both tests.
3986ac_preproc_ok=:
3987break
3988fi
3989rm -f conftest.err conftest.$ac_ext
3990
3991done
3992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993rm -f conftest.err conftest.$ac_ext
3994if $ac_preproc_ok; then
3995  break
3996fi
3997
3998    done
3999    ac_cv_prog_CPP=$CPP
4000
4001fi
4002  CPP=$ac_cv_prog_CPP
4003else
4004  ac_cv_prog_CPP=$CPP
4005fi
4006echo "$as_me:$LINENO: result: $CPP" >&5
4007echo "${ECHO_T}$CPP" >&6
4008ac_preproc_ok=false
4009for ac_c_preproc_warn_flag in '' yes
4010do
4011  # Use a header file that comes with gcc, so configuring glibc
4012  # with a fresh cross-compiler works.
4013  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014  # <limits.h> exists even on freestanding compilers.
4015  # On the NeXT, cc -E runs the code through the compiler's parser,
4016  # not just through cpp. "Syntax error" is here to catch this case.
4017  cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h.  */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h.  */
4023#ifdef __STDC__
4024# include <limits.h>
4025#else
4026# include <assert.h>
4027#endif
4028		     Syntax error
4029_ACEOF
4030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4031  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4032  ac_status=$?
4033  grep -v '^ *+' conftest.er1 >conftest.err
4034  rm -f conftest.er1
4035  cat conftest.err >&5
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); } >/dev/null; then
4038  if test -s conftest.err; then
4039    ac_cpp_err=$ac_c_preproc_warn_flag
4040    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4041  else
4042    ac_cpp_err=
4043  fi
4044else
4045  ac_cpp_err=yes
4046fi
4047if test -z "$ac_cpp_err"; then
4048  :
4049else
4050  echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053  # Broken: fails on valid input.
4054continue
4055fi
4056rm -f conftest.err conftest.$ac_ext
4057
4058  # OK, works on sane cases.  Now check whether non-existent headers
4059  # can be detected and how.
4060  cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h.  */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h.  */
4066#include <ac_nonexistent.h>
4067_ACEOF
4068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4070  ac_status=$?
4071  grep -v '^ *+' conftest.er1 >conftest.err
4072  rm -f conftest.er1
4073  cat conftest.err >&5
4074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075  (exit $ac_status); } >/dev/null; then
4076  if test -s conftest.err; then
4077    ac_cpp_err=$ac_c_preproc_warn_flag
4078    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4079  else
4080    ac_cpp_err=
4081  fi
4082else
4083  ac_cpp_err=yes
4084fi
4085if test -z "$ac_cpp_err"; then
4086  # Broken: success on invalid input.
4087continue
4088else
4089  echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092  # Passes both tests.
4093ac_preproc_ok=:
4094break
4095fi
4096rm -f conftest.err conftest.$ac_ext
4097
4098done
4099# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100rm -f conftest.err conftest.$ac_ext
4101if $ac_preproc_ok; then
4102  :
4103else
4104  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4105See \`config.log' for more details." >&5
4106echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4107See \`config.log' for more details." >&2;}
4108   { (exit 1); exit 1; }; }
4109fi
4110
4111ac_ext=c
4112ac_cpp='$CPP $CPPFLAGS'
4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116
4117
4118echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4119echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4120if test "${ac_cv_header_stdc+set}" = set; then
4121  echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123  cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h.  */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h.  */
4129#include <stdlib.h>
4130#include <stdarg.h>
4131#include <string.h>
4132#include <float.h>
4133
4134int
4135main ()
4136{
4137
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142rm -f conftest.$ac_objext
4143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144  (eval $ac_compile) 2>conftest.er1
4145  ac_status=$?
4146  grep -v '^ *+' conftest.er1 >conftest.err
4147  rm -f conftest.er1
4148  cat conftest.err >&5
4149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150  (exit $ac_status); } &&
4151	 { ac_try='test -z "$ac_c_werror_flag"
4152			 || test ! -s conftest.err'
4153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154  (eval $ac_try) 2>&5
4155  ac_status=$?
4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157  (exit $ac_status); }; } &&
4158	 { ac_try='test -s conftest.$ac_objext'
4159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160  (eval $ac_try) 2>&5
4161  ac_status=$?
4162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163  (exit $ac_status); }; }; then
4164  ac_cv_header_stdc=yes
4165else
4166  echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4169ac_cv_header_stdc=no
4170fi
4171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4172
4173if test $ac_cv_header_stdc = yes; then
4174  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4175  cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h.  */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h.  */
4181#include <string.h>
4182
4183_ACEOF
4184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185  $EGREP "memchr" >/dev/null 2>&1; then
4186  :
4187else
4188  ac_cv_header_stdc=no
4189fi
4190rm -f conftest*
4191
4192fi
4193
4194if test $ac_cv_header_stdc = yes; then
4195  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4196  cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h.  */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h.  */
4202#include <stdlib.h>
4203
4204_ACEOF
4205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206  $EGREP "free" >/dev/null 2>&1; then
4207  :
4208else
4209  ac_cv_header_stdc=no
4210fi
4211rm -f conftest*
4212
4213fi
4214
4215if test $ac_cv_header_stdc = yes; then
4216  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217  if test "$cross_compiling" = yes; then
4218  :
4219else
4220  cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h.  */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h.  */
4226#include <ctype.h>
4227#if ((' ' & 0x0FF) == 0x020)
4228# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230#else
4231# define ISLOWER(c) \
4232		   (('a' <= (c) && (c) <= 'i') \
4233		     || ('j' <= (c) && (c) <= 'r') \
4234		     || ('s' <= (c) && (c) <= 'z'))
4235# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4236#endif
4237
4238#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4239int
4240main ()
4241{
4242  int i;
4243  for (i = 0; i < 256; i++)
4244    if (XOR (islower (i), ISLOWER (i))
4245	|| toupper (i) != TOUPPER (i))
4246      exit(2);
4247  exit (0);
4248}
4249_ACEOF
4250rm -f conftest$ac_exeext
4251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252  (eval $ac_link) 2>&5
4253  ac_status=$?
4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257  (eval $ac_try) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); }; }; then
4261  :
4262else
4263  echo "$as_me: program exited with status $ac_status" >&5
4264echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267( exit $ac_status )
4268ac_cv_header_stdc=no
4269fi
4270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4271fi
4272fi
4273fi
4274echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4275echo "${ECHO_T}$ac_cv_header_stdc" >&6
4276if test $ac_cv_header_stdc = yes; then
4277
4278cat >>confdefs.h <<\_ACEOF
4279#define STDC_HEADERS 1
4280_ACEOF
4281
4282fi
4283
4284# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4295		  inttypes.h stdint.h unistd.h
4296do
4297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298echo "$as_me:$LINENO: checking for $ac_header" >&5
4299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301  echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303  cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309$ac_includes_default
4310
4311#include <$ac_header>
4312_ACEOF
4313rm -f conftest.$ac_objext
4314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315  (eval $ac_compile) 2>conftest.er1
4316  ac_status=$?
4317  grep -v '^ *+' conftest.er1 >conftest.err
4318  rm -f conftest.er1
4319  cat conftest.err >&5
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); } &&
4322	 { ac_try='test -z "$ac_c_werror_flag"
4323			 || test ! -s conftest.err'
4324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325  (eval $ac_try) 2>&5
4326  ac_status=$?
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); }; } &&
4329	 { ac_try='test -s conftest.$ac_objext'
4330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331  (eval $ac_try) 2>&5
4332  ac_status=$?
4333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); }; }; then
4335  eval "$as_ac_Header=yes"
4336else
4337  echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340eval "$as_ac_Header=no"
4341fi
4342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4346if test `eval echo '${'$as_ac_Header'}'` = yes; then
4347  cat >>confdefs.h <<_ACEOF
4348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349_ACEOF
4350
4351fi
4352
4353done
4354
4355
4356
4357for ac_header in dlfcn.h
4358do
4359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4360if eval "test \"\${$as_ac_Header+set}\" = set"; then
4361  echo "$as_me:$LINENO: checking for $ac_header" >&5
4362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364  echo $ECHO_N "(cached) $ECHO_C" >&6
4365fi
4366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4368else
4369  # Is the header compilable?
4370echo "$as_me:$LINENO: checking $ac_header usability" >&5
4371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4372cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h.  */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h.  */
4378$ac_includes_default
4379#include <$ac_header>
4380_ACEOF
4381rm -f conftest.$ac_objext
4382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383  (eval $ac_compile) 2>conftest.er1
4384  ac_status=$?
4385  grep -v '^ *+' conftest.er1 >conftest.err
4386  rm -f conftest.er1
4387  cat conftest.err >&5
4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389  (exit $ac_status); } &&
4390	 { ac_try='test -z "$ac_c_werror_flag"
4391			 || test ! -s conftest.err'
4392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393  (eval $ac_try) 2>&5
4394  ac_status=$?
4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); }; } &&
4397	 { ac_try='test -s conftest.$ac_objext'
4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399  (eval $ac_try) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; }; then
4403  ac_header_compiler=yes
4404else
4405  echo "$as_me: failed program was:" >&5
4406sed 's/^/| /' conftest.$ac_ext >&5
4407
4408ac_header_compiler=no
4409fi
4410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4412echo "${ECHO_T}$ac_header_compiler" >&6
4413
4414# Is the header present?
4415echo "$as_me:$LINENO: checking $ac_header presence" >&5
4416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4417cat >conftest.$ac_ext <<_ACEOF
4418/* confdefs.h.  */
4419_ACEOF
4420cat confdefs.h >>conftest.$ac_ext
4421cat >>conftest.$ac_ext <<_ACEOF
4422/* end confdefs.h.  */
4423#include <$ac_header>
4424_ACEOF
4425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4426  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4427  ac_status=$?
4428  grep -v '^ *+' conftest.er1 >conftest.err
4429  rm -f conftest.er1
4430  cat conftest.err >&5
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); } >/dev/null; then
4433  if test -s conftest.err; then
4434    ac_cpp_err=$ac_c_preproc_warn_flag
4435    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4436  else
4437    ac_cpp_err=
4438  fi
4439else
4440  ac_cpp_err=yes
4441fi
4442if test -z "$ac_cpp_err"; then
4443  ac_header_preproc=yes
4444else
4445  echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448  ac_header_preproc=no
4449fi
4450rm -f conftest.err conftest.$ac_ext
4451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4452echo "${ECHO_T}$ac_header_preproc" >&6
4453
4454# So?  What about this header?
4455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4456  yes:no: )
4457    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4459    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4461    ac_header_preproc=yes
4462    ;;
4463  no:yes:* )
4464    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4466    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4467echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4468    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4470    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4471echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4472    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4474    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4476    (
4477      cat <<\_ASBOX
4478## ----------------------------- ##
4479## Report this to the dx lists.  ##
4480## ----------------------------- ##
4481_ASBOX
4482    ) |
4483      sed "s/^/$as_me: WARNING:     /" >&2
4484    ;;
4485esac
4486echo "$as_me:$LINENO: checking for $ac_header" >&5
4487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4488if eval "test \"\${$as_ac_Header+set}\" = set"; then
4489  echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491  eval "$as_ac_Header=\$ac_header_preproc"
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495
4496fi
4497if test `eval echo '${'$as_ac_Header'}'` = yes; then
4498  cat >>confdefs.h <<_ACEOF
4499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4500_ACEOF
4501
4502fi
4503
4504done
4505
4506ac_ext=cc
4507ac_cpp='$CXXCPP $CPPFLAGS'
4508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511if test -n "$ac_tool_prefix"; then
4512  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4513  do
4514    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516echo "$as_me:$LINENO: checking for $ac_word" >&5
4517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518if test "${ac_cv_prog_CXX+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  if test -n "$CXX"; then
4522  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529  for ac_exec_ext in '' $ac_executable_extensions; do
4530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533    break 2
4534  fi
4535done
4536done
4537
4538fi
4539fi
4540CXX=$ac_cv_prog_CXX
4541if test -n "$CXX"; then
4542  echo "$as_me:$LINENO: result: $CXX" >&5
4543echo "${ECHO_T}$CXX" >&6
4544else
4545  echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6
4547fi
4548
4549    test -n "$CXX" && break
4550  done
4551fi
4552if test -z "$CXX"; then
4553  ac_ct_CXX=$CXX
4554  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4555do
4556  # Extract the first word of "$ac_prog", so it can be a program name with args.
4557set dummy $ac_prog; ac_word=$2
4558echo "$as_me:$LINENO: checking for $ac_word" >&5
4559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4561  echo $ECHO_N "(cached) $ECHO_C" >&6
4562else
4563  if test -n "$ac_ct_CXX"; then
4564  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569  IFS=$as_save_IFS
4570  test -z "$as_dir" && as_dir=.
4571  for ac_exec_ext in '' $ac_executable_extensions; do
4572  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573    ac_cv_prog_ac_ct_CXX="$ac_prog"
4574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575    break 2
4576  fi
4577done
4578done
4579
4580fi
4581fi
4582ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583if test -n "$ac_ct_CXX"; then
4584  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4585echo "${ECHO_T}$ac_ct_CXX" >&6
4586else
4587  echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6
4589fi
4590
4591  test -n "$ac_ct_CXX" && break
4592done
4593test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4594
4595  CXX=$ac_ct_CXX
4596fi
4597
4598
4599# Provide some information about the compiler.
4600echo "$as_me:$LINENO:" \
4601     "checking for C++ compiler version" >&5
4602ac_compiler=`set X $ac_compile; echo $2`
4603{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4604  (eval $ac_compiler --version </dev/null >&5) 2>&5
4605  ac_status=$?
4606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607  (exit $ac_status); }
4608{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4609  (eval $ac_compiler -v </dev/null >&5) 2>&5
4610  ac_status=$?
4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612  (exit $ac_status); }
4613{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4614  (eval $ac_compiler -V </dev/null >&5) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }
4618
4619echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4620echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4621if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4622  echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624  cat >conftest.$ac_ext <<_ACEOF
4625/* confdefs.h.  */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h.  */
4630
4631int
4632main ()
4633{
4634#ifndef __GNUC__
4635       choke me
4636#endif
4637
4638  ;
4639  return 0;
4640}
4641_ACEOF
4642rm -f conftest.$ac_objext
4643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644  (eval $ac_compile) 2>conftest.er1
4645  ac_status=$?
4646  grep -v '^ *+' conftest.er1 >conftest.err
4647  rm -f conftest.er1
4648  cat conftest.err >&5
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); } &&
4651	 { ac_try='test -z "$ac_cxx_werror_flag"
4652			 || test ! -s conftest.err'
4653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654  (eval $ac_try) 2>&5
4655  ac_status=$?
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); }; } &&
4658	 { ac_try='test -s conftest.$ac_objext'
4659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660  (eval $ac_try) 2>&5
4661  ac_status=$?
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); }; }; then
4664  ac_compiler_gnu=yes
4665else
4666  echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669ac_compiler_gnu=no
4670fi
4671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4672ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4673
4674fi
4675echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4676echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4677GXX=`test $ac_compiler_gnu = yes && echo yes`
4678ac_test_CXXFLAGS=${CXXFLAGS+set}
4679ac_save_CXXFLAGS=$CXXFLAGS
4680CXXFLAGS="-g"
4681echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4682echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4683if test "${ac_cv_prog_cxx_g+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686  cat >conftest.$ac_ext <<_ACEOF
4687/* confdefs.h.  */
4688_ACEOF
4689cat confdefs.h >>conftest.$ac_ext
4690cat >>conftest.$ac_ext <<_ACEOF
4691/* end confdefs.h.  */
4692
4693int
4694main ()
4695{
4696
4697  ;
4698  return 0;
4699}
4700_ACEOF
4701rm -f conftest.$ac_objext
4702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703  (eval $ac_compile) 2>conftest.er1
4704  ac_status=$?
4705  grep -v '^ *+' conftest.er1 >conftest.err
4706  rm -f conftest.er1
4707  cat conftest.err >&5
4708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709  (exit $ac_status); } &&
4710	 { ac_try='test -z "$ac_cxx_werror_flag"
4711			 || test ! -s conftest.err'
4712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713  (eval $ac_try) 2>&5
4714  ac_status=$?
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; } &&
4717	 { ac_try='test -s conftest.$ac_objext'
4718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719  (eval $ac_try) 2>&5
4720  ac_status=$?
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); }; }; then
4723  ac_cv_prog_cxx_g=yes
4724else
4725  echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728ac_cv_prog_cxx_g=no
4729fi
4730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731fi
4732echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4733echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4734if test "$ac_test_CXXFLAGS" = set; then
4735  CXXFLAGS=$ac_save_CXXFLAGS
4736elif test $ac_cv_prog_cxx_g = yes; then
4737  if test "$GXX" = yes; then
4738    CXXFLAGS="-g -O2"
4739  else
4740    CXXFLAGS="-g"
4741  fi
4742else
4743  if test "$GXX" = yes; then
4744    CXXFLAGS="-O2"
4745  else
4746    CXXFLAGS=
4747  fi
4748fi
4749for ac_declaration in \
4750   '' \
4751   'extern "C" void std::exit (int) throw (); using std::exit;' \
4752   'extern "C" void std::exit (int); using std::exit;' \
4753   'extern "C" void exit (int) throw ();' \
4754   'extern "C" [[noreturn]] void exit (int);' \
4755   '[[noreturn]] void exit (int);'
4756do
4757  cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h.  */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h.  */
4763$ac_declaration
4764#include <stdlib.h>
4765int
4766main ()
4767{
4768exit (42);
4769  ;
4770  return 0;
4771}
4772_ACEOF
4773rm -f conftest.$ac_objext
4774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775  (eval $ac_compile) 2>conftest.er1
4776  ac_status=$?
4777  grep -v '^ *+' conftest.er1 >conftest.err
4778  rm -f conftest.er1
4779  cat conftest.err >&5
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); } &&
4782	 { ac_try='test -z "$ac_cxx_werror_flag"
4783			 || test ! -s conftest.err'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; } &&
4789	 { ac_try='test -s conftest.$ac_objext'
4790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791  (eval $ac_try) 2>&5
4792  ac_status=$?
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); }; }; then
4795  :
4796else
4797  echo "$as_me: failed program was:" >&5
4798sed 's/^/| /' conftest.$ac_ext >&5
4799
4800continue
4801fi
4802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803  cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809$ac_declaration
4810int
4811main ()
4812{
4813exit (42);
4814  ;
4815  return 0;
4816}
4817_ACEOF
4818rm -f conftest.$ac_objext
4819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820  (eval $ac_compile) 2>conftest.er1
4821  ac_status=$?
4822  grep -v '^ *+' conftest.er1 >conftest.err
4823  rm -f conftest.er1
4824  cat conftest.err >&5
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); } &&
4827	 { ac_try='test -z "$ac_cxx_werror_flag"
4828			 || test ! -s conftest.err'
4829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830  (eval $ac_try) 2>&5
4831  ac_status=$?
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); }; } &&
4834	 { ac_try='test -s conftest.$ac_objext'
4835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836  (eval $ac_try) 2>&5
4837  ac_status=$?
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); }; }; then
4840  break
4841else
4842  echo "$as_me: failed program was:" >&5
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845fi
4846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4847done
4848rm -f conftest*
4849if test -n "$ac_declaration"; then
4850  echo '#ifdef __cplusplus' >>confdefs.h
4851  echo $ac_declaration      >>confdefs.h
4852  echo '#endif'             >>confdefs.h
4853fi
4854
4855ac_ext=cc
4856ac_cpp='$CXXCPP $CPPFLAGS'
4857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4860
4861depcc="$CXX"  am_compiler_list=
4862
4863echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4864echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4865if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4869  # We make a subdir and do the tests there.  Otherwise we can end up
4870  # making bogus files that we don't know about and never remove.  For
4871  # instance it was reported that on HP-UX the gcc test will end up
4872  # making a dummy file named `D' -- because `-MD' means `put the output
4873  # in D'.
4874  mkdir conftest.dir
4875  # Copy depcomp to subdir because otherwise we won't find it if we're
4876  # using a relative directory.
4877  cp "$am_depcomp" conftest.dir
4878  cd conftest.dir
4879  # We will build objects and dependencies in a subdirectory because
4880  # it helps to detect inapplicable dependency modes.  For instance
4881  # both Tru64's cc and ICC support -MD to output dependencies as a
4882  # side effect of compilation, but ICC will put the dependencies in
4883  # the current directory while Tru64 will put them in the object
4884  # directory.
4885  mkdir sub
4886
4887  am_cv_CXX_dependencies_compiler_type=none
4888  if test "$am_compiler_list" = ""; then
4889     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4890  fi
4891  for depmode in $am_compiler_list; do
4892    # Setup a source with many dependencies, because some compilers
4893    # like to wrap large dependency lists on column 80 (with \), and
4894    # we should not choose a depcomp mode which is confused by this.
4895    #
4896    # We need to recreate these files for each test, as the compiler may
4897    # overwrite some of them when testing with obscure command lines.
4898    # This happens at least with the AIX C compiler.
4899    : > sub/conftest.c
4900    for i in 1 2 3 4 5 6; do
4901      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4902      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4903      # Solaris 8's {/usr,}/bin/sh.
4904      touch sub/conftst$i.h
4905    done
4906    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4907
4908    case $depmode in
4909    nosideeffect)
4910      # after this tag, mechanisms are not by side-effect, so they'll
4911      # only be used when explicitly requested
4912      if test "x$enable_dependency_tracking" = xyes; then
4913	continue
4914      else
4915	break
4916      fi
4917      ;;
4918    none) break ;;
4919    esac
4920    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4921    # mode.  It turns out that the SunPro C++ compiler does not properly
4922    # handle `-M -o', and we need to detect this.
4923    if depmode=$depmode \
4924       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4925       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4926       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4927         >/dev/null 2>conftest.err &&
4928       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4929       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4930       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4931      # icc doesn't choke on unknown options, it will just issue warnings
4932      # or remarks (even with -Werror).  So we grep stderr for any message
4933      # that says an option was ignored or not supported.
4934      # When given -MP, icc 7.0 and 7.1 complain thusly:
4935      #   icc: Command line warning: ignoring option '-M'; no argument required
4936      # The diagnosis changed in icc 8.0:
4937      #   icc: Command line remark: option '-MP' not supported
4938      if (grep 'ignoring option' conftest.err ||
4939          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4940        am_cv_CXX_dependencies_compiler_type=$depmode
4941        break
4942      fi
4943    fi
4944  done
4945
4946  cd ..
4947  rm -rf conftest.dir
4948else
4949  am_cv_CXX_dependencies_compiler_type=none
4950fi
4951
4952fi
4953echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4954echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4955CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4956
4957
4958
4959if
4960  test "x$enable_dependency_tracking" != xno \
4961  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4962  am__fastdepCXX_TRUE=
4963  am__fastdepCXX_FALSE='#'
4964else
4965  am__fastdepCXX_TRUE='#'
4966  am__fastdepCXX_FALSE=
4967fi
4968
4969
4970
4971
4972if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4973    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4974    (test "X$CXX" != "Xg++"))) ; then
4975  ac_ext=cc
4976ac_cpp='$CXXCPP $CPPFLAGS'
4977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4980echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4981echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4982if test -z "$CXXCPP"; then
4983  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4984  echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986      # Double quotes because CXXCPP needs to be expanded
4987    for CXXCPP in "$CXX -E" "/lib/cpp"
4988    do
4989      ac_preproc_ok=false
4990for ac_cxx_preproc_warn_flag in '' yes
4991do
4992  # Use a header file that comes with gcc, so configuring glibc
4993  # with a fresh cross-compiler works.
4994  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4995  # <limits.h> exists even on freestanding compilers.
4996  # On the NeXT, cc -E runs the code through the compiler's parser,
4997  # not just through cpp. "Syntax error" is here to catch this case.
4998  cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h.  */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h.  */
5004#ifdef __STDC__
5005# include <limits.h>
5006#else
5007# include <assert.h>
5008#endif
5009		     Syntax error
5010_ACEOF
5011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5013  ac_status=$?
5014  grep -v '^ *+' conftest.er1 >conftest.err
5015  rm -f conftest.er1
5016  cat conftest.err >&5
5017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018  (exit $ac_status); } >/dev/null; then
5019  if test -s conftest.err; then
5020    ac_cpp_err=$ac_cxx_preproc_warn_flag
5021    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5022  else
5023    ac_cpp_err=
5024  fi
5025else
5026  ac_cpp_err=yes
5027fi
5028if test -z "$ac_cpp_err"; then
5029  :
5030else
5031  echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
5034  # Broken: fails on valid input.
5035continue
5036fi
5037rm -f conftest.err conftest.$ac_ext
5038
5039  # OK, works on sane cases.  Now check whether non-existent headers
5040  # can be detected and how.
5041  cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h.  */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h.  */
5047#include <ac_nonexistent.h>
5048_ACEOF
5049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5050  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051  ac_status=$?
5052  grep -v '^ *+' conftest.er1 >conftest.err
5053  rm -f conftest.er1
5054  cat conftest.err >&5
5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056  (exit $ac_status); } >/dev/null; then
5057  if test -s conftest.err; then
5058    ac_cpp_err=$ac_cxx_preproc_warn_flag
5059    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5060  else
5061    ac_cpp_err=
5062  fi
5063else
5064  ac_cpp_err=yes
5065fi
5066if test -z "$ac_cpp_err"; then
5067  # Broken: success on invalid input.
5068continue
5069else
5070  echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
5073  # Passes both tests.
5074ac_preproc_ok=:
5075break
5076fi
5077rm -f conftest.err conftest.$ac_ext
5078
5079done
5080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081rm -f conftest.err conftest.$ac_ext
5082if $ac_preproc_ok; then
5083  break
5084fi
5085
5086    done
5087    ac_cv_prog_CXXCPP=$CXXCPP
5088
5089fi
5090  CXXCPP=$ac_cv_prog_CXXCPP
5091else
5092  ac_cv_prog_CXXCPP=$CXXCPP
5093fi
5094echo "$as_me:$LINENO: result: $CXXCPP" >&5
5095echo "${ECHO_T}$CXXCPP" >&6
5096ac_preproc_ok=false
5097for ac_cxx_preproc_warn_flag in '' yes
5098do
5099  # Use a header file that comes with gcc, so configuring glibc
5100  # with a fresh cross-compiler works.
5101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102  # <limits.h> exists even on freestanding compilers.
5103  # On the NeXT, cc -E runs the code through the compiler's parser,
5104  # not just through cpp. "Syntax error" is here to catch this case.
5105  cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111#ifdef __STDC__
5112# include <limits.h>
5113#else
5114# include <assert.h>
5115#endif
5116		     Syntax error
5117_ACEOF
5118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } >/dev/null; then
5126  if test -s conftest.err; then
5127    ac_cpp_err=$ac_cxx_preproc_warn_flag
5128    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5129  else
5130    ac_cpp_err=
5131  fi
5132else
5133  ac_cpp_err=yes
5134fi
5135if test -z "$ac_cpp_err"; then
5136  :
5137else
5138  echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141  # Broken: fails on valid input.
5142continue
5143fi
5144rm -f conftest.err conftest.$ac_ext
5145
5146  # OK, works on sane cases.  Now check whether non-existent headers
5147  # can be detected and how.
5148  cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h.  */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h.  */
5154#include <ac_nonexistent.h>
5155_ACEOF
5156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158  ac_status=$?
5159  grep -v '^ *+' conftest.er1 >conftest.err
5160  rm -f conftest.er1
5161  cat conftest.err >&5
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); } >/dev/null; then
5164  if test -s conftest.err; then
5165    ac_cpp_err=$ac_cxx_preproc_warn_flag
5166    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5167  else
5168    ac_cpp_err=
5169  fi
5170else
5171  ac_cpp_err=yes
5172fi
5173if test -z "$ac_cpp_err"; then
5174  # Broken: success on invalid input.
5175continue
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180  # Passes both tests.
5181ac_preproc_ok=:
5182break
5183fi
5184rm -f conftest.err conftest.$ac_ext
5185
5186done
5187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188rm -f conftest.err conftest.$ac_ext
5189if $ac_preproc_ok; then
5190  :
5191else
5192  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5193See \`config.log' for more details." >&5
5194echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5195See \`config.log' for more details." >&2;}
5196   { (exit 1); exit 1; }; }
5197fi
5198
5199ac_ext=cc
5200ac_cpp='$CXXCPP $CPPFLAGS'
5201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5204
5205fi
5206
5207
5208ac_ext=f
5209ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5210ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5212if test -n "$ac_tool_prefix"; then
5213  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5214  do
5215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_prog_F77+set}" = set; then
5220  echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222  if test -n "$F77"; then
5223  ac_cv_prog_F77="$F77" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230  for ac_exec_ext in '' $ac_executable_extensions; do
5231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234    break 2
5235  fi
5236done
5237done
5238
5239fi
5240fi
5241F77=$ac_cv_prog_F77
5242if test -n "$F77"; then
5243  echo "$as_me:$LINENO: result: $F77" >&5
5244echo "${ECHO_T}$F77" >&6
5245else
5246  echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248fi
5249
5250    test -n "$F77" && break
5251  done
5252fi
5253if test -z "$F77"; then
5254  ac_ct_F77=$F77
5255  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5256do
5257  # Extract the first word of "$ac_prog", so it can be a program name with args.
5258set dummy $ac_prog; ac_word=$2
5259echo "$as_me:$LINENO: checking for $ac_word" >&5
5260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5261if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5262  echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264  if test -n "$ac_ct_F77"; then
5265  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272  for ac_exec_ext in '' $ac_executable_extensions; do
5273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274    ac_cv_prog_ac_ct_F77="$ac_prog"
5275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279done
5280
5281fi
5282fi
5283ac_ct_F77=$ac_cv_prog_ac_ct_F77
5284if test -n "$ac_ct_F77"; then
5285  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5286echo "${ECHO_T}$ac_ct_F77" >&6
5287else
5288  echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290fi
5291
5292  test -n "$ac_ct_F77" && break
5293done
5294
5295  F77=$ac_ct_F77
5296fi
5297
5298
5299# Provide some information about the compiler.
5300echo "$as_me:5300:" \
5301     "checking for Fortran 77 compiler version" >&5
5302ac_compiler=`set X $ac_compile; echo $2`
5303{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5304  (eval $ac_compiler --version </dev/null >&5) 2>&5
5305  ac_status=$?
5306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307  (exit $ac_status); }
5308{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5309  (eval $ac_compiler -v </dev/null >&5) 2>&5
5310  ac_status=$?
5311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312  (exit $ac_status); }
5313{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5314  (eval $ac_compiler -V </dev/null >&5) 2>&5
5315  ac_status=$?
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); }
5318rm -f a.out
5319
5320# If we don't use `.F' as extension, the preprocessor is not run on the
5321# input file.  (Note that this only needs to work for GNU compilers.)
5322ac_save_ext=$ac_ext
5323ac_ext=F
5324echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5325echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5326if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329  cat >conftest.$ac_ext <<_ACEOF
5330      program main
5331#ifndef __GNUC__
5332       choke me
5333#endif
5334
5335      end
5336_ACEOF
5337rm -f conftest.$ac_objext
5338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339  (eval $ac_compile) 2>conftest.er1
5340  ac_status=$?
5341  grep -v '^ *+' conftest.er1 >conftest.err
5342  rm -f conftest.er1
5343  cat conftest.err >&5
5344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345  (exit $ac_status); } &&
5346	 { ac_try='test -z "$ac_f77_werror_flag"
5347			 || test ! -s conftest.err'
5348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349  (eval $ac_try) 2>&5
5350  ac_status=$?
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); }; } &&
5353	 { ac_try='test -s conftest.$ac_objext'
5354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355  (eval $ac_try) 2>&5
5356  ac_status=$?
5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358  (exit $ac_status); }; }; then
5359  ac_compiler_gnu=yes
5360else
5361  echo "$as_me: failed program was:" >&5
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
5364ac_compiler_gnu=no
5365fi
5366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5368
5369fi
5370echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5371echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5372ac_ext=$ac_save_ext
5373ac_test_FFLAGS=${FFLAGS+set}
5374ac_save_FFLAGS=$FFLAGS
5375FFLAGS=
5376echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5377echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5378if test "${ac_cv_prog_f77_g+set}" = set; then
5379  echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381  FFLAGS=-g
5382cat >conftest.$ac_ext <<_ACEOF
5383      program main
5384
5385      end
5386_ACEOF
5387rm -f conftest.$ac_objext
5388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389  (eval $ac_compile) 2>conftest.er1
5390  ac_status=$?
5391  grep -v '^ *+' conftest.er1 >conftest.err
5392  rm -f conftest.er1
5393  cat conftest.err >&5
5394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395  (exit $ac_status); } &&
5396	 { ac_try='test -z "$ac_f77_werror_flag"
5397			 || test ! -s conftest.err'
5398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399  (eval $ac_try) 2>&5
5400  ac_status=$?
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); }; } &&
5403	 { ac_try='test -s conftest.$ac_objext'
5404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405  (eval $ac_try) 2>&5
5406  ac_status=$?
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); }; }; then
5409  ac_cv_prog_f77_g=yes
5410else
5411  echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414ac_cv_prog_f77_g=no
5415fi
5416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5417
5418fi
5419echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5420echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5421if test "$ac_test_FFLAGS" = set; then
5422  FFLAGS=$ac_save_FFLAGS
5423elif test $ac_cv_prog_f77_g = yes; then
5424  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5425    FFLAGS="-g -O2"
5426  else
5427    FFLAGS="-g"
5428  fi
5429else
5430  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5431    FFLAGS="-O2"
5432  else
5433    FFLAGS=
5434  fi
5435fi
5436
5437G77=`test $ac_compiler_gnu = yes && echo yes`
5438ac_ext=c
5439ac_cpp='$CPP $CPPFLAGS'
5440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443
5444
5445
5446# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5447
5448# find the maximum length of command line arguments
5449echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5450echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5451if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5452  echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454    i=0
5455  teststring="ABCD"
5456
5457  case $build_os in
5458  msdosdjgpp*)
5459    # On DJGPP, this test can blow up pretty badly due to problems in libc
5460    # (any single argument exceeding 2000 bytes causes a buffer overrun
5461    # during glob expansion).  Even if it were fixed, the result of this
5462    # check would be larger than it should be.
5463    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5464    ;;
5465
5466  gnu*)
5467    # Under GNU Hurd, this test is not required because there is
5468    # no limit to the length of command line arguments.
5469    # Libtool will interpret -1 as no limit whatsoever
5470    lt_cv_sys_max_cmd_len=-1;
5471    ;;
5472
5473  cygwin* | mingw*)
5474    # On Win9x/ME, this test blows up -- it succeeds, but takes
5475    # about 5 minutes as the teststring grows exponentially.
5476    # Worse, since 9x/ME are not pre-emptively multitasking,
5477    # you end up with a "frozen" computer, even though with patience
5478    # the test eventually succeeds (with a max line length of 256k).
5479    # Instead, let's just punt: use the minimum linelength reported by
5480    # all of the supported platforms: 8192 (on NT/2K/XP).
5481    lt_cv_sys_max_cmd_len=8192;
5482    ;;
5483
5484  amigaos*)
5485    # On AmigaOS with pdksh, this test takes hours, literally.
5486    # So we just punt and use a minimum line length of 8192.
5487    lt_cv_sys_max_cmd_len=8192;
5488    ;;
5489
5490  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5491    # This has been around since 386BSD, at least.  Likely further.
5492    if test -x /sbin/sysctl; then
5493      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5494    elif test -x /usr/sbin/sysctl; then
5495      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5496    else
5497      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5498    fi
5499    # And add a safety zone
5500    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5501    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5502    ;;
5503
5504  interix*)
5505    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5506    lt_cv_sys_max_cmd_len=196608
5507    ;;
5508
5509  osf*)
5510    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5511    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5512    # nice to cause kernel panics so lets avoid the loop below.
5513    # First set a reasonable default.
5514    lt_cv_sys_max_cmd_len=16384
5515    #
5516    if test -x /sbin/sysconfig; then
5517      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5518        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5519      esac
5520    fi
5521    ;;
5522  sco3.2v5*)
5523    lt_cv_sys_max_cmd_len=102400
5524    ;;
5525  sysv5* | sco5v6* | sysv4.2uw2*)
5526    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5527    if test -n "$kargmax"; then
5528      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5529    else
5530      lt_cv_sys_max_cmd_len=32768
5531    fi
5532    ;;
5533  *)
5534    # If test is not a shell built-in, we'll probably end up computing a
5535    # maximum length that is only half of the actual maximum length, but
5536    # we can't tell.
5537    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5538    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5539	       = "XX$teststring") >/dev/null 2>&1 &&
5540	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5541	    lt_cv_sys_max_cmd_len=$new_result &&
5542	    test $i != 17 # 1/2 MB should be enough
5543    do
5544      i=`expr $i + 1`
5545      teststring=$teststring$teststring
5546    done
5547    teststring=
5548    # Add a significant safety factor because C++ compilers can tack on massive
5549    # amounts of additional arguments before passing them to the linker.
5550    # It appears as though 1/2 is a usable value.
5551    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5552    ;;
5553  esac
5554
5555fi
5556
5557if test -n $lt_cv_sys_max_cmd_len ; then
5558  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5559echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5560else
5561  echo "$as_me:$LINENO: result: none" >&5
5562echo "${ECHO_T}none" >&6
5563fi
5564
5565
5566
5567
5568# Check for command to grab the raw symbol name followed by C symbol from nm.
5569echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5570echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5571if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5572  echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574
5575# These are sane defaults that work on at least a few old systems.
5576# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5577
5578# Character class describing NM global symbol codes.
5579symcode='[BCDEGRST]'
5580
5581# Regexp to match symbols that can be accessed directly from C.
5582sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5583
5584# Transform an extracted symbol line into a proper C declaration
5585lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5586
5587# Transform an extracted symbol line into symbol name and symbol address
5588lt_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'"
5589
5590# Define system-specific variables.
5591case $host_os in
5592aix*)
5593  symcode='[BCDT]'
5594  ;;
5595cygwin* | mingw* | pw32*)
5596  symcode='[ABCDGISTW]'
5597  ;;
5598hpux*) # Its linker distinguishes data from code symbols
5599  if test "$host_cpu" = ia64; then
5600    symcode='[ABCDEGRST]'
5601  fi
5602  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5603  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'"
5604  ;;
5605linux*)
5606  if test "$host_cpu" = ia64; then
5607    symcode='[ABCDGIRSTW]'
5608    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5609    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'"
5610  fi
5611  ;;
5612irix* | nonstopux*)
5613  symcode='[BCDEGRST]'
5614  ;;
5615osf*)
5616  symcode='[BCDEGQRST]'
5617  ;;
5618solaris*)
5619  symcode='[BDRT]'
5620  ;;
5621sco3.2v5*)
5622  symcode='[DT]'
5623  ;;
5624sysv4.2uw2*)
5625  symcode='[DT]'
5626  ;;
5627sysv5* | sco5v6* | unixware* | OpenUNIX*)
5628  symcode='[ABDT]'
5629  ;;
5630sysv4)
5631  symcode='[DFNSTU]'
5632  ;;
5633esac
5634
5635# Handle CRLF in mingw tool chain
5636opt_cr=
5637case $build_os in
5638mingw*)
5639  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5640  ;;
5641esac
5642
5643# If we're using GNU nm, then use its standard symbol codes.
5644case `$NM -V 2>&1` in
5645*GNU* | *'with BFD'*)
5646  symcode='[ABCDGIRSTW]' ;;
5647esac
5648
5649# Try without a prefix undercore, then with it.
5650for ac_symprfx in "" "_"; do
5651
5652  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5653  symxfrm="\\1 $ac_symprfx\\2 \\2"
5654
5655  # Write the raw and C identifiers.
5656  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5657
5658  # Check to see that the pipe works correctly.
5659  pipe_works=no
5660
5661  rm -f conftest*
5662  cat > conftest.$ac_ext <<EOF
5663#ifdef __cplusplus
5664extern "C" {
5665#endif
5666char nm_test_var;
5667void nm_test_func(){}
5668#ifdef __cplusplus
5669}
5670#endif
5671int main(){nm_test_var='a';nm_test_func();return(0);}
5672EOF
5673
5674  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675  (eval $ac_compile) 2>&5
5676  ac_status=$?
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); }; then
5679    # Now try to grab the symbols.
5680    nlist=conftest.nm
5681    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5682  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5683  ac_status=$?
5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685  (exit $ac_status); } && test -s "$nlist"; then
5686      # Try sorting and uniquifying the output.
5687      if sort "$nlist" | uniq > "$nlist"T; then
5688	mv -f "$nlist"T "$nlist"
5689      else
5690	rm -f "$nlist"T
5691      fi
5692
5693      # Make sure that we snagged all the symbols we need.
5694      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5695	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5696	  cat <<EOF > conftest.$ac_ext
5697#ifdef __cplusplus
5698extern "C" {
5699#endif
5700
5701EOF
5702	  # Now generate the symbol file.
5703	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5704
5705	  cat <<EOF >> conftest.$ac_ext
5706#if defined (__STDC__) && __STDC__
5707# define lt_ptr_t void *
5708#else
5709# define lt_ptr_t char *
5710# define const
5711#endif
5712
5713/* The mapping between symbol names and symbols. */
5714const struct {
5715  const char *name;
5716  lt_ptr_t address;
5717}
5718lt_preloaded_symbols[] =
5719{
5720EOF
5721	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5722	  cat <<\EOF >> conftest.$ac_ext
5723  {0, (lt_ptr_t) 0}
5724};
5725
5726#ifdef __cplusplus
5727}
5728#endif
5729EOF
5730	  # Now try linking the two files.
5731	  mv conftest.$ac_objext conftstm.$ac_objext
5732	  lt_save_LIBS="$LIBS"
5733	  lt_save_CFLAGS="$CFLAGS"
5734	  LIBS="conftstm.$ac_objext"
5735	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5736	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737  (eval $ac_link) 2>&5
5738  ac_status=$?
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5741	    pipe_works=yes
5742	  fi
5743	  LIBS="$lt_save_LIBS"
5744	  CFLAGS="$lt_save_CFLAGS"
5745	else
5746	  echo "cannot find nm_test_func in $nlist" >&5
5747	fi
5748      else
5749	echo "cannot find nm_test_var in $nlist" >&5
5750      fi
5751    else
5752      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5753    fi
5754  else
5755    echo "$progname: failed program was:" >&5
5756    cat conftest.$ac_ext >&5
5757  fi
5758  rm -f conftest* conftst*
5759
5760  # Do not use the global_symbol_pipe unless it works.
5761  if test "$pipe_works" = yes; then
5762    break
5763  else
5764    lt_cv_sys_global_symbol_pipe=
5765  fi
5766done
5767
5768fi
5769
5770if test -z "$lt_cv_sys_global_symbol_pipe"; then
5771  lt_cv_sys_global_symbol_to_cdecl=
5772fi
5773if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5774  echo "$as_me:$LINENO: result: failed" >&5
5775echo "${ECHO_T}failed" >&6
5776else
5777  echo "$as_me:$LINENO: result: ok" >&5
5778echo "${ECHO_T}ok" >&6
5779fi
5780
5781echo "$as_me:$LINENO: checking for objdir" >&5
5782echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5783if test "${lt_cv_objdir+set}" = set; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  rm -f .libs 2>/dev/null
5787mkdir .libs 2>/dev/null
5788if test -d .libs; then
5789  lt_cv_objdir=.libs
5790else
5791  # MS-DOS does not allow filenames that begin with a dot.
5792  lt_cv_objdir=_libs
5793fi
5794rmdir .libs 2>/dev/null
5795fi
5796echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5797echo "${ECHO_T}$lt_cv_objdir" >&6
5798objdir=$lt_cv_objdir
5799
5800
5801
5802
5803
5804case $host_os in
5805aix3*)
5806  # AIX sometimes has problems with the GCC collect2 program.  For some
5807  # reason, if we set the COLLECT_NAMES environment variable, the problems
5808  # vanish in a puff of smoke.
5809  if test "X${COLLECT_NAMES+set}" != Xset; then
5810    COLLECT_NAMES=
5811    export COLLECT_NAMES
5812  fi
5813  ;;
5814esac
5815
5816# Sed substitution that helps us do robust quoting.  It backslashifies
5817# metacharacters that are still active within double-quoted strings.
5818Xsed='sed -e 1s/^X//'
5819sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5820
5821# Same as above, but do not quote variable references.
5822double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5823
5824# Sed substitution to delay expansion of an escaped shell variable in a
5825# double_quote_subst'ed string.
5826delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5827
5828# Sed substitution to avoid accidental globbing in evaled expressions
5829no_glob_subst='s/\*/\\\*/g'
5830
5831# Constants:
5832rm="rm -f"
5833
5834# Global variables:
5835default_ofile=libtool
5836can_build_shared=yes
5837
5838# All known linkers require a `.a' archive for static linking (except MSVC,
5839# which needs '.lib').
5840libext=a
5841ltmain="$ac_aux_dir/ltmain.sh"
5842ofile="$default_ofile"
5843with_gnu_ld="$lt_cv_prog_gnu_ld"
5844
5845if test -n "$ac_tool_prefix"; then
5846  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5847set dummy ${ac_tool_prefix}ar; ac_word=$2
5848echo "$as_me:$LINENO: checking for $ac_word" >&5
5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850if test "${ac_cv_prog_AR+set}" = set; then
5851  echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853  if test -n "$AR"; then
5854  ac_cv_prog_AR="$AR" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859  IFS=$as_save_IFS
5860  test -z "$as_dir" && as_dir=.
5861  for ac_exec_ext in '' $ac_executable_extensions; do
5862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863    ac_cv_prog_AR="${ac_tool_prefix}ar"
5864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865    break 2
5866  fi
5867done
5868done
5869
5870fi
5871fi
5872AR=$ac_cv_prog_AR
5873if test -n "$AR"; then
5874  echo "$as_me:$LINENO: result: $AR" >&5
5875echo "${ECHO_T}$AR" >&6
5876else
5877  echo "$as_me:$LINENO: result: no" >&5
5878echo "${ECHO_T}no" >&6
5879fi
5880
5881fi
5882if test -z "$ac_cv_prog_AR"; then
5883  ac_ct_AR=$AR
5884  # Extract the first word of "ar", so it can be a program name with args.
5885set dummy ar; ac_word=$2
5886echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5889  echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891  if test -n "$ac_ct_AR"; then
5892  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897  IFS=$as_save_IFS
5898  test -z "$as_dir" && as_dir=.
5899  for ac_exec_ext in '' $ac_executable_extensions; do
5900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901    ac_cv_prog_ac_ct_AR="ar"
5902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903    break 2
5904  fi
5905done
5906done
5907
5908  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5909fi
5910fi
5911ac_ct_AR=$ac_cv_prog_ac_ct_AR
5912if test -n "$ac_ct_AR"; then
5913  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5914echo "${ECHO_T}$ac_ct_AR" >&6
5915else
5916  echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918fi
5919
5920  AR=$ac_ct_AR
5921else
5922  AR="$ac_cv_prog_AR"
5923fi
5924
5925if test -n "$ac_tool_prefix"; then
5926  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5927set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5928echo "$as_me:$LINENO: checking for $ac_word" >&5
5929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930if test "${ac_cv_prog_RANLIB+set}" = set; then
5931  echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933  if test -n "$RANLIB"; then
5934  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939  IFS=$as_save_IFS
5940  test -z "$as_dir" && as_dir=.
5941  for ac_exec_ext in '' $ac_executable_extensions; do
5942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945    break 2
5946  fi
5947done
5948done
5949
5950fi
5951fi
5952RANLIB=$ac_cv_prog_RANLIB
5953if test -n "$RANLIB"; then
5954  echo "$as_me:$LINENO: result: $RANLIB" >&5
5955echo "${ECHO_T}$RANLIB" >&6
5956else
5957  echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
5959fi
5960
5961fi
5962if test -z "$ac_cv_prog_RANLIB"; then
5963  ac_ct_RANLIB=$RANLIB
5964  # Extract the first word of "ranlib", so it can be a program name with args.
5965set dummy ranlib; ac_word=$2
5966echo "$as_me:$LINENO: checking for $ac_word" >&5
5967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5969  echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971  if test -n "$ac_ct_RANLIB"; then
5972  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5973else
5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977  IFS=$as_save_IFS
5978  test -z "$as_dir" && as_dir=.
5979  for ac_exec_ext in '' $ac_executable_extensions; do
5980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981    ac_cv_prog_ac_ct_RANLIB="ranlib"
5982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983    break 2
5984  fi
5985done
5986done
5987
5988  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5989fi
5990fi
5991ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5992if test -n "$ac_ct_RANLIB"; then
5993  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5994echo "${ECHO_T}$ac_ct_RANLIB" >&6
5995else
5996  echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998fi
5999
6000  RANLIB=$ac_ct_RANLIB
6001else
6002  RANLIB="$ac_cv_prog_RANLIB"
6003fi
6004
6005if test -n "$ac_tool_prefix"; then
6006  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6007set dummy ${ac_tool_prefix}strip; ac_word=$2
6008echo "$as_me:$LINENO: checking for $ac_word" >&5
6009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010if test "${ac_cv_prog_STRIP+set}" = set; then
6011  echo $ECHO_N "(cached) $ECHO_C" >&6
6012else
6013  if test -n "$STRIP"; then
6014  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019  IFS=$as_save_IFS
6020  test -z "$as_dir" && as_dir=.
6021  for ac_exec_ext in '' $ac_executable_extensions; do
6022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025    break 2
6026  fi
6027done
6028done
6029
6030fi
6031fi
6032STRIP=$ac_cv_prog_STRIP
6033if test -n "$STRIP"; then
6034  echo "$as_me:$LINENO: result: $STRIP" >&5
6035echo "${ECHO_T}$STRIP" >&6
6036else
6037  echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6
6039fi
6040
6041fi
6042if test -z "$ac_cv_prog_STRIP"; then
6043  ac_ct_STRIP=$STRIP
6044  # Extract the first word of "strip", so it can be a program name with args.
6045set dummy strip; ac_word=$2
6046echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6048if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  if test -n "$ac_ct_STRIP"; then
6052  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059  for ac_exec_ext in '' $ac_executable_extensions; do
6060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_ac_ct_STRIP="strip"
6062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066done
6067
6068  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6069fi
6070fi
6071ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6072if test -n "$ac_ct_STRIP"; then
6073  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6074echo "${ECHO_T}$ac_ct_STRIP" >&6
6075else
6076  echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
6078fi
6079
6080  STRIP=$ac_ct_STRIP
6081else
6082  STRIP="$ac_cv_prog_STRIP"
6083fi
6084
6085
6086old_CC="$CC"
6087old_CFLAGS="$CFLAGS"
6088
6089# Set sane defaults for various variables
6090test -z "$AR" && AR=ar
6091test -z "$AR_FLAGS" && AR_FLAGS=cru
6092test -z "$AS" && AS=as
6093test -z "$CC" && CC=cc
6094test -z "$LTCC" && LTCC=$CC
6095test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6096test -z "$DLLTOOL" && DLLTOOL=dlltool
6097test -z "$LD" && LD=ld
6098test -z "$LN_S" && LN_S="ln -s"
6099test -z "$MAGIC_CMD" && MAGIC_CMD=file
6100test -z "$NM" && NM=nm
6101test -z "$SED" && SED=sed
6102test -z "$OBJDUMP" && OBJDUMP=objdump
6103test -z "$RANLIB" && RANLIB=:
6104test -z "$STRIP" && STRIP=:
6105test -z "$ac_objext" && ac_objext=o
6106
6107# Determine commands to create old-style static archives.
6108old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6109old_postinstall_cmds='chmod 644 $oldlib'
6110old_postuninstall_cmds=
6111
6112if test -n "$RANLIB"; then
6113  case $host_os in
6114  openbsd*)
6115    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6116    ;;
6117  *)
6118    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6119    ;;
6120  esac
6121  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6122fi
6123
6124for cc_temp in $compiler""; do
6125  case $cc_temp in
6126    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6127    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6128    \-*) ;;
6129    *) break;;
6130  esac
6131done
6132cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6133
6134
6135# Only perform the check for file, if the check method requires it
6136case $deplibs_check_method in
6137file_magic*)
6138  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6139    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6140echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6141if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6142  echo $ECHO_N "(cached) $ECHO_C" >&6
6143else
6144  case $MAGIC_CMD in
6145[\\/*] |  ?:[\\/]*)
6146  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6147  ;;
6148*)
6149  lt_save_MAGIC_CMD="$MAGIC_CMD"
6150  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6151  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6152  for ac_dir in $ac_dummy; do
6153    IFS="$lt_save_ifs"
6154    test -z "$ac_dir" && ac_dir=.
6155    if test -f $ac_dir/${ac_tool_prefix}file; then
6156      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6157      if test -n "$file_magic_test_file"; then
6158	case $deplibs_check_method in
6159	"file_magic "*)
6160	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6161	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6162	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6163	    $EGREP "$file_magic_regex" > /dev/null; then
6164	    :
6165	  else
6166	    cat <<EOF 1>&2
6167
6168*** Warning: the command libtool uses to detect shared libraries,
6169*** $file_magic_cmd, produces output that libtool cannot recognize.
6170*** The result is that libtool may fail to recognize shared libraries
6171*** as such.  This will affect the creation of libtool libraries that
6172*** depend on shared libraries, but programs linked with such libtool
6173*** libraries will work regardless of this problem.  Nevertheless, you
6174*** may want to report the problem to your system manager and/or to
6175*** bug-libtool@gnu.org
6176
6177EOF
6178	  fi ;;
6179	esac
6180      fi
6181      break
6182    fi
6183  done
6184  IFS="$lt_save_ifs"
6185  MAGIC_CMD="$lt_save_MAGIC_CMD"
6186  ;;
6187esac
6188fi
6189
6190MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6191if test -n "$MAGIC_CMD"; then
6192  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6193echo "${ECHO_T}$MAGIC_CMD" >&6
6194else
6195  echo "$as_me:$LINENO: result: no" >&5
6196echo "${ECHO_T}no" >&6
6197fi
6198
6199if test -z "$lt_cv_path_MAGIC_CMD"; then
6200  if test -n "$ac_tool_prefix"; then
6201    echo "$as_me:$LINENO: checking for file" >&5
6202echo $ECHO_N "checking for file... $ECHO_C" >&6
6203if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6204  echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206  case $MAGIC_CMD in
6207[\\/*] |  ?:[\\/]*)
6208  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6209  ;;
6210*)
6211  lt_save_MAGIC_CMD="$MAGIC_CMD"
6212  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6213  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6214  for ac_dir in $ac_dummy; do
6215    IFS="$lt_save_ifs"
6216    test -z "$ac_dir" && ac_dir=.
6217    if test -f $ac_dir/file; then
6218      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6219      if test -n "$file_magic_test_file"; then
6220	case $deplibs_check_method in
6221	"file_magic "*)
6222	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6223	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6224	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6225	    $EGREP "$file_magic_regex" > /dev/null; then
6226	    :
6227	  else
6228	    cat <<EOF 1>&2
6229
6230*** Warning: the command libtool uses to detect shared libraries,
6231*** $file_magic_cmd, produces output that libtool cannot recognize.
6232*** The result is that libtool may fail to recognize shared libraries
6233*** as such.  This will affect the creation of libtool libraries that
6234*** depend on shared libraries, but programs linked with such libtool
6235*** libraries will work regardless of this problem.  Nevertheless, you
6236*** may want to report the problem to your system manager and/or to
6237*** bug-libtool@gnu.org
6238
6239EOF
6240	  fi ;;
6241	esac
6242      fi
6243      break
6244    fi
6245  done
6246  IFS="$lt_save_ifs"
6247  MAGIC_CMD="$lt_save_MAGIC_CMD"
6248  ;;
6249esac
6250fi
6251
6252MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6253if test -n "$MAGIC_CMD"; then
6254  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6255echo "${ECHO_T}$MAGIC_CMD" >&6
6256else
6257  echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6
6259fi
6260
6261  else
6262    MAGIC_CMD=:
6263  fi
6264fi
6265
6266  fi
6267  ;;
6268esac
6269
6270enable_dlopen=no
6271enable_win32_dll=no
6272
6273# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6274if test "${enable_libtool_lock+set}" = set; then
6275  enableval="$enable_libtool_lock"
6276
6277fi;
6278test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6279
6280
6281# Check whether --with-pic or --without-pic was given.
6282if test "${with_pic+set}" = set; then
6283  withval="$with_pic"
6284  pic_mode="$withval"
6285else
6286  pic_mode=default
6287fi;
6288test -z "$pic_mode" && pic_mode=default
6289
6290# Use C for the default configuration in the libtool script
6291tagname=
6292lt_save_CC="$CC"
6293ac_ext=c
6294ac_cpp='$CPP $CPPFLAGS'
6295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298
6299
6300# Source file extension for C test sources.
6301ac_ext=c
6302
6303# Object file extension for compiled C test sources.
6304objext=o
6305objext=$objext
6306
6307# Code to be used in simple compile tests
6308lt_simple_compile_test_code="int some_variable = 0;\n"
6309
6310# Code to be used in simple link tests
6311lt_simple_link_test_code='int main(){return(0);}\n'
6312
6313
6314# If no C compiler was specified, use CC.
6315LTCC=${LTCC-"$CC"}
6316
6317# If no C compiler flags were specified, use CFLAGS.
6318LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6319
6320# Allow CC to be a program name with arguments.
6321compiler=$CC
6322
6323
6324# save warnings/boilerplate of simple test code
6325ac_outfile=conftest.$ac_objext
6326printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6327eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6328_lt_compiler_boilerplate=`cat conftest.err`
6329$rm conftest*
6330
6331ac_outfile=conftest.$ac_objext
6332printf "$lt_simple_link_test_code" >conftest.$ac_ext
6333eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6334_lt_linker_boilerplate=`cat conftest.err`
6335$rm conftest*
6336
6337
6338
6339lt_prog_compiler_no_builtin_flag=
6340
6341if test "$GCC" = yes; then
6342  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6343
6344
6345echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6346echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6347if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6348  echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350  lt_cv_prog_compiler_rtti_exceptions=no
6351  ac_outfile=conftest.$ac_objext
6352   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6353   lt_compiler_flag="-fno-rtti -fno-exceptions"
6354   # Insert the option either (1) after the last *FLAGS variable, or
6355   # (2) before a word containing "conftest.", or (3) at the end.
6356   # Note that $ac_compile itself does not contain backslashes and begins
6357   # with a dollar sign (not a hyphen), so the echo should work correctly.
6358   # The option is referenced via a variable to avoid confusing sed.
6359   lt_compile=`echo "$ac_compile" | $SED \
6360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6362   -e 's:$: $lt_compiler_flag:'`
6363   (eval echo "\"\$as_me:6363: $lt_compile\"" >&5)
6364   (eval "$lt_compile" 2>conftest.err)
6365   ac_status=$?
6366   cat conftest.err >&5
6367   echo "$as_me:6367: \$? = $ac_status" >&5
6368   if (exit $ac_status) && test -s "$ac_outfile"; then
6369     # The compiler can only warn and ignore the option if not recognized
6370     # So say no if there are warnings other than the usual output.
6371     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6372     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6373     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6374       lt_cv_prog_compiler_rtti_exceptions=yes
6375     fi
6376   fi
6377   $rm conftest*
6378
6379fi
6380echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6381echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6382
6383if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6384    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6385else
6386    :
6387fi
6388
6389fi
6390
6391lt_prog_compiler_wl=
6392lt_prog_compiler_pic=
6393lt_prog_compiler_static=
6394
6395echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6396echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6397
6398  if test "$GCC" = yes; then
6399    lt_prog_compiler_wl='-Wl,'
6400    lt_prog_compiler_static='-static'
6401
6402    case $host_os in
6403      aix*)
6404      # All AIX code is PIC.
6405      if test "$host_cpu" = ia64; then
6406	# AIX 5 now supports IA64 processor
6407	lt_prog_compiler_static='-Bstatic'
6408      fi
6409      ;;
6410
6411    amigaos*)
6412      # FIXME: we need at least 68020 code to build shared libraries, but
6413      # adding the `-m68020' flag to GCC prevents building anything better,
6414      # like `-m68040'.
6415      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6416      ;;
6417
6418    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6419      # PIC is the default for these OSes.
6420      ;;
6421
6422    mingw* | pw32* | os2*)
6423      # This hack is so that the source file can tell whether it is being
6424      # built for inclusion in a dll (and should export symbols for example).
6425      lt_prog_compiler_pic='-DDLL_EXPORT'
6426      ;;
6427
6428    darwin* | rhapsody*)
6429      # PIC is the default on this platform
6430      # Common symbols not allowed in MH_DYLIB files
6431      lt_prog_compiler_pic='-fno-common'
6432      ;;
6433
6434    interix3*)
6435      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6436      # Instead, we relocate shared libraries at runtime.
6437      ;;
6438
6439    msdosdjgpp*)
6440      # Just because we use GCC doesn't mean we suddenly get shared libraries
6441      # on systems that don't support them.
6442      lt_prog_compiler_can_build_shared=no
6443      enable_shared=no
6444      ;;
6445
6446    sysv4*MP*)
6447      if test -d /usr/nec; then
6448	lt_prog_compiler_pic=-Kconform_pic
6449      fi
6450      ;;
6451
6452    hpux*)
6453      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6454      # not for PA HP-UX.
6455      case $host_cpu in
6456      hppa*64*|ia64*)
6457	# +Z the default
6458	;;
6459      *)
6460	lt_prog_compiler_pic='-fPIC'
6461	;;
6462      esac
6463      ;;
6464
6465    *)
6466      lt_prog_compiler_pic='-fPIC'
6467      ;;
6468    esac
6469  else
6470    # PORTME Check for flag to pass linker flags through the system compiler.
6471    case $host_os in
6472    aix*)
6473      lt_prog_compiler_wl='-Wl,'
6474      if test "$host_cpu" = ia64; then
6475	# AIX 5 now supports IA64 processor
6476	lt_prog_compiler_static='-Bstatic'
6477      else
6478	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6479      fi
6480      ;;
6481      darwin*)
6482        # PIC is the default on this platform
6483        # Common symbols not allowed in MH_DYLIB files
6484       case $cc_basename in
6485         xlc*)
6486         lt_prog_compiler_pic='-qnocommon'
6487         lt_prog_compiler_wl='-Wl,'
6488         ;;
6489       esac
6490       ;;
6491
6492    mingw* | pw32* | os2*)
6493      # This hack is so that the source file can tell whether it is being
6494      # built for inclusion in a dll (and should export symbols for example).
6495      lt_prog_compiler_pic='-DDLL_EXPORT'
6496      ;;
6497
6498    hpux9* | hpux10* | hpux11*)
6499      lt_prog_compiler_wl='-Wl,'
6500      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6501      # not for PA HP-UX.
6502      case $host_cpu in
6503      hppa*64*|ia64*)
6504	# +Z the default
6505	;;
6506      *)
6507	lt_prog_compiler_pic='+Z'
6508	;;
6509      esac
6510      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6511      lt_prog_compiler_static='${wl}-a ${wl}archive'
6512      ;;
6513
6514    irix5* | irix6* | nonstopux*)
6515      lt_prog_compiler_wl='-Wl,'
6516      # PIC (with -KPIC) is the default.
6517      lt_prog_compiler_static='-non_shared'
6518      ;;
6519
6520    newsos6)
6521      lt_prog_compiler_pic='-KPIC'
6522      lt_prog_compiler_static='-Bstatic'
6523      ;;
6524
6525    linux*)
6526      case $cc_basename in
6527      icc* | ecc*)
6528	lt_prog_compiler_wl='-Wl,'
6529	lt_prog_compiler_pic='-KPIC'
6530	lt_prog_compiler_static='-static'
6531        ;;
6532      pgcc* | pgf77* | pgf90* | pgf95*)
6533        # Portland Group compilers (*not* the Pentium gcc compiler,
6534	# which looks to be a dead project)
6535	lt_prog_compiler_wl='-Wl,'
6536	lt_prog_compiler_pic='-fpic'
6537	lt_prog_compiler_static='-Bstatic'
6538        ;;
6539      ccc*)
6540        lt_prog_compiler_wl='-Wl,'
6541        # All Alpha code is PIC.
6542        lt_prog_compiler_static='-non_shared'
6543        ;;
6544      esac
6545      ;;
6546
6547    osf3* | osf4* | osf5*)
6548      lt_prog_compiler_wl='-Wl,'
6549      # All OSF/1 code is PIC.
6550      lt_prog_compiler_static='-non_shared'
6551      ;;
6552
6553    solaris*)
6554      lt_prog_compiler_pic='-KPIC'
6555      lt_prog_compiler_static='-Bstatic'
6556      case $cc_basename in
6557      f77* | f90* | f95*)
6558	lt_prog_compiler_wl='-Qoption ld ';;
6559      *)
6560	lt_prog_compiler_wl='-Wl,';;
6561      esac
6562      ;;
6563
6564    sunos4*)
6565      lt_prog_compiler_wl='-Qoption ld '
6566      lt_prog_compiler_pic='-PIC'
6567      lt_prog_compiler_static='-Bstatic'
6568      ;;
6569
6570    sysv4 | sysv4.2uw2* | sysv4.3*)
6571      lt_prog_compiler_wl='-Wl,'
6572      lt_prog_compiler_pic='-KPIC'
6573      lt_prog_compiler_static='-Bstatic'
6574      ;;
6575
6576    sysv4*MP*)
6577      if test -d /usr/nec ;then
6578	lt_prog_compiler_pic='-Kconform_pic'
6579	lt_prog_compiler_static='-Bstatic'
6580      fi
6581      ;;
6582
6583    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6584      lt_prog_compiler_wl='-Wl,'
6585      lt_prog_compiler_pic='-KPIC'
6586      lt_prog_compiler_static='-Bstatic'
6587      ;;
6588
6589    unicos*)
6590      lt_prog_compiler_wl='-Wl,'
6591      lt_prog_compiler_can_build_shared=no
6592      ;;
6593
6594    uts4*)
6595      lt_prog_compiler_pic='-pic'
6596      lt_prog_compiler_static='-Bstatic'
6597      ;;
6598
6599    *)
6600      lt_prog_compiler_can_build_shared=no
6601      ;;
6602    esac
6603  fi
6604
6605echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6606echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6607
6608#
6609# Check to make sure the PIC flag actually works.
6610#
6611if test -n "$lt_prog_compiler_pic"; then
6612
6613echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6614echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6615if test "${lt_prog_compiler_pic_works+set}" = set; then
6616  echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618  lt_prog_compiler_pic_works=no
6619  ac_outfile=conftest.$ac_objext
6620   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6621   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6622   # Insert the option either (1) after the last *FLAGS variable, or
6623   # (2) before a word containing "conftest.", or (3) at the end.
6624   # Note that $ac_compile itself does not contain backslashes and begins
6625   # with a dollar sign (not a hyphen), so the echo should work correctly.
6626   # The option is referenced via a variable to avoid confusing sed.
6627   lt_compile=`echo "$ac_compile" | $SED \
6628   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6629   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6630   -e 's:$: $lt_compiler_flag:'`
6631   (eval echo "\"\$as_me:6631: $lt_compile\"" >&5)
6632   (eval "$lt_compile" 2>conftest.err)
6633   ac_status=$?
6634   cat conftest.err >&5
6635   echo "$as_me:6635: \$? = $ac_status" >&5
6636   if (exit $ac_status) && test -s "$ac_outfile"; then
6637     # The compiler can only warn and ignore the option if not recognized
6638     # So say no if there are warnings other than the usual output.
6639     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6640     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6641     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6642       lt_prog_compiler_pic_works=yes
6643     fi
6644   fi
6645   $rm conftest*
6646
6647fi
6648echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6649echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6650
6651if test x"$lt_prog_compiler_pic_works" = xyes; then
6652    case $lt_prog_compiler_pic in
6653     "" | " "*) ;;
6654     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6655     esac
6656else
6657    lt_prog_compiler_pic=
6658     lt_prog_compiler_can_build_shared=no
6659fi
6660
6661fi
6662case $host_os in
6663  # For platforms which do not support PIC, -DPIC is meaningless:
6664  *djgpp*)
6665    lt_prog_compiler_pic=
6666    ;;
6667  *)
6668    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6669    ;;
6670esac
6671
6672#
6673# Check to make sure the static flag actually works.
6674#
6675wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6676echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6677echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6678if test "${lt_prog_compiler_static_works+set}" = set; then
6679  echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681  lt_prog_compiler_static_works=no
6682   save_LDFLAGS="$LDFLAGS"
6683   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6684   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6685   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6686     # The linker can only warn and ignore the option if not recognized
6687     # So say no if there are warnings
6688     if test -s conftest.err; then
6689       # Append any errors to the config.log.
6690       cat conftest.err 1>&5
6691       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6692       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6693       if diff conftest.exp conftest.er2 >/dev/null; then
6694         lt_prog_compiler_static_works=yes
6695       fi
6696     else
6697       lt_prog_compiler_static_works=yes
6698     fi
6699   fi
6700   $rm conftest*
6701   LDFLAGS="$save_LDFLAGS"
6702
6703fi
6704echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6705echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6706
6707if test x"$lt_prog_compiler_static_works" = xyes; then
6708    :
6709else
6710    lt_prog_compiler_static=
6711fi
6712
6713
6714echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6715echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6716if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6717  echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719  lt_cv_prog_compiler_c_o=no
6720   $rm -r conftest 2>/dev/null
6721   mkdir conftest
6722   cd conftest
6723   mkdir out
6724   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6725
6726   lt_compiler_flag="-o out/conftest2.$ac_objext"
6727   # Insert the option either (1) after the last *FLAGS variable, or
6728   # (2) before a word containing "conftest.", or (3) at the end.
6729   # Note that $ac_compile itself does not contain backslashes and begins
6730   # with a dollar sign (not a hyphen), so the echo should work correctly.
6731   lt_compile=`echo "$ac_compile" | $SED \
6732   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6734   -e 's:$: $lt_compiler_flag:'`
6735   (eval echo "\"\$as_me:6735: $lt_compile\"" >&5)
6736   (eval "$lt_compile" 2>out/conftest.err)
6737   ac_status=$?
6738   cat out/conftest.err >&5
6739   echo "$as_me:6739: \$? = $ac_status" >&5
6740   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6741   then
6742     # The compiler can only warn and ignore the option if not recognized
6743     # So say no if there are warnings
6744     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6745     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6746     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6747       lt_cv_prog_compiler_c_o=yes
6748     fi
6749   fi
6750   chmod u+w . 2>&5
6751   $rm conftest*
6752   # SGI C++ compiler will create directory out/ii_files/ for
6753   # template instantiation
6754   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6755   $rm out/* && rmdir out
6756   cd ..
6757   rmdir conftest
6758   $rm conftest*
6759
6760fi
6761echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6762echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6763
6764
6765hard_links="nottested"
6766if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6767  # do not overwrite the value of need_locks provided by the user
6768  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6769echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6770  hard_links=yes
6771  $rm conftest*
6772  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6773  touch conftest.a
6774  ln conftest.a conftest.b 2>&5 || hard_links=no
6775  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6776  echo "$as_me:$LINENO: result: $hard_links" >&5
6777echo "${ECHO_T}$hard_links" >&6
6778  if test "$hard_links" = no; then
6779    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6780echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6781    need_locks=warn
6782  fi
6783else
6784  need_locks=no
6785fi
6786
6787echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6788echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6789
6790  runpath_var=
6791  allow_undefined_flag=
6792  enable_shared_with_static_runtimes=no
6793  archive_cmds=
6794  archive_expsym_cmds=
6795  old_archive_From_new_cmds=
6796  old_archive_from_expsyms_cmds=
6797  export_dynamic_flag_spec=
6798  whole_archive_flag_spec=
6799  thread_safe_flag_spec=
6800  hardcode_libdir_flag_spec=
6801  hardcode_libdir_flag_spec_ld=
6802  hardcode_libdir_separator=
6803  hardcode_direct=no
6804  hardcode_minus_L=no
6805  hardcode_shlibpath_var=unsupported
6806  link_all_deplibs=unknown
6807  hardcode_automatic=no
6808  module_cmds=
6809  module_expsym_cmds=
6810  always_export_symbols=no
6811  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6812  # include_expsyms should be a list of space-separated symbols to be *always*
6813  # included in the symbol list
6814  include_expsyms=
6815  # exclude_expsyms can be an extended regexp of symbols to exclude
6816  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6817  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6818  # as well as any symbol that contains `d'.
6819  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6820  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6821  # platforms (ab)use it in PIC code, but their linkers get confused if
6822  # the symbol is explicitly referenced.  Since portable code cannot
6823  # rely on this symbol name, it's probably fine to never include it in
6824  # preloaded symbol tables.
6825  extract_expsyms_cmds=
6826  # Just being paranoid about ensuring that cc_basename is set.
6827  for cc_temp in $compiler""; do
6828  case $cc_temp in
6829    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6830    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6831    \-*) ;;
6832    *) break;;
6833  esac
6834done
6835cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6836
6837  case $host_os in
6838  cygwin* | mingw* | pw32*)
6839    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6840    # When not using gcc, we currently assume that we are using
6841    # Microsoft Visual C++.
6842    if test "$GCC" != yes; then
6843      with_gnu_ld=no
6844    fi
6845    ;;
6846  interix*)
6847    # we just hope/assume this is gcc and not c89 (= MSVC++)
6848    with_gnu_ld=yes
6849    ;;
6850  openbsd*)
6851    with_gnu_ld=no
6852    ;;
6853  esac
6854
6855  ld_shlibs=yes
6856  if test "$with_gnu_ld" = yes; then
6857    # If archive_cmds runs LD, not CC, wlarc should be empty
6858    wlarc='${wl}'
6859
6860    # Set some defaults for GNU ld with shared library support. These
6861    # are reset later if shared libraries are not supported. Putting them
6862    # here allows them to be overridden if necessary.
6863    runpath_var=LD_RUN_PATH
6864    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6865    export_dynamic_flag_spec='${wl}--export-dynamic'
6866    # ancient GNU ld didn't support --whole-archive et. al.
6867    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6868	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6869      else
6870  	whole_archive_flag_spec=
6871    fi
6872    supports_anon_versioning=no
6873    case `$LD -v 2>/dev/null` in
6874      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6875      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6876      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6877      *\ 2.11.*) ;; # other 2.11 versions
6878      *) supports_anon_versioning=yes ;;
6879    esac
6880
6881    # See if GNU ld supports shared libraries.
6882    case $host_os in
6883    aix3* | aix4* | aix5*)
6884      # On AIX/PPC, the GNU linker is very broken
6885      if test "$host_cpu" != ia64; then
6886	ld_shlibs=no
6887	cat <<EOF 1>&2
6888
6889*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6890*** to be unable to reliably create shared libraries on AIX.
6891*** Therefore, libtool is disabling shared libraries support.  If you
6892*** really care for shared libraries, you may want to modify your PATH
6893*** so that a non-GNU linker is found, and then restart.
6894
6895EOF
6896      fi
6897      ;;
6898
6899    amigaos*)
6900      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)'
6901      hardcode_libdir_flag_spec='-L$libdir'
6902      hardcode_minus_L=yes
6903
6904      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6905      # that the semantics of dynamic libraries on AmigaOS, at least up
6906      # to version 4, is to share data among multiple programs linked
6907      # with the same dynamic library.  Since this doesn't match the
6908      # behavior of shared libraries on other platforms, we can't use
6909      # them.
6910      ld_shlibs=no
6911      ;;
6912
6913    beos*)
6914      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6915	allow_undefined_flag=unsupported
6916	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6917	# support --undefined.  This deserves some investigation.  FIXME
6918	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6919      else
6920	ld_shlibs=no
6921      fi
6922      ;;
6923
6924    cygwin* | mingw* | pw32*)
6925      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6926      # as there is no search path for DLLs.
6927      hardcode_libdir_flag_spec='-L$libdir'
6928      allow_undefined_flag=unsupported
6929      always_export_symbols=no
6930      enable_shared_with_static_runtimes=yes
6931      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6932
6933      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6934        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6935	# If the export-symbols file already is a .def file (1st line
6936	# is EXPORTS), use it as is; otherwise, prepend...
6937	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6938	  cp $export_symbols $output_objdir/$soname.def;
6939	else
6940	  echo EXPORTS > $output_objdir/$soname.def;
6941	  cat $export_symbols >> $output_objdir/$soname.def;
6942	fi~
6943	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6944      else
6945	ld_shlibs=no
6946      fi
6947      ;;
6948
6949    interix3*)
6950      hardcode_direct=no
6951      hardcode_shlibpath_var=no
6952      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6953      export_dynamic_flag_spec='${wl}-E'
6954      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6955      # Instead, shared libraries are loaded at an image base (0x10000000 by
6956      # default) and relocated if they conflict, which is a slow very memory
6957      # consuming and fragmenting process.  To avoid this, we pick a random,
6958      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6959      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6960      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6961      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'
6962      ;;
6963
6964    linux*)
6965      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6966	tmp_addflag=
6967	case $cc_basename,$host_cpu in
6968	pgcc*)				# Portland Group C compiler
6969	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6970	  tmp_addflag=' $pic_flag'
6971	  ;;
6972	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6973	  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'
6974	  tmp_addflag=' $pic_flag -Mnomain' ;;
6975	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6976	  tmp_addflag=' -i_dynamic' ;;
6977	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6978	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6979	ifc* | ifort*)			# Intel Fortran compiler
6980	  tmp_addflag=' -nofor_main' ;;
6981	esac
6982	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6983
6984	if test $supports_anon_versioning = yes; then
6985	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6986  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6987  $echo "local: *; };" >> $output_objdir/$libname.ver~
6988	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6989	fi
6990      else
6991	ld_shlibs=no
6992      fi
6993      ;;
6994
6995    netbsd*)
6996      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6997	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6998	wlarc=
6999      else
7000	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7002      fi
7003      ;;
7004
7005    solaris*)
7006      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7007	ld_shlibs=no
7008	cat <<EOF 1>&2
7009
7010*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7011*** create shared libraries on Solaris systems.  Therefore, libtool
7012*** is disabling shared libraries support.  We urge you to upgrade GNU
7013*** binutils to release 2.9.1 or newer.  Another option is to modify
7014*** your PATH or compiler configuration so that the native linker is
7015*** used, and then restart.
7016
7017EOF
7018      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7019	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7020	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7021      else
7022	ld_shlibs=no
7023      fi
7024      ;;
7025
7026    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7027      case `$LD -v 2>&1` in
7028        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7029	ld_shlibs=no
7030	cat <<_LT_EOF 1>&2
7031
7032*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7033*** reliably create shared libraries on SCO systems.  Therefore, libtool
7034*** is disabling shared libraries support.  We urge you to upgrade GNU
7035*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7036*** your PATH or compiler configuration so that the native linker is
7037*** used, and then restart.
7038
7039_LT_EOF
7040	;;
7041	*)
7042	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7044	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7045	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7046	  else
7047	    ld_shlibs=no
7048	  fi
7049	;;
7050      esac
7051      ;;
7052
7053    sunos4*)
7054      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7055      wlarc=
7056      hardcode_direct=yes
7057      hardcode_shlibpath_var=no
7058      ;;
7059
7060    *)
7061      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7062	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7063	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7064      else
7065	ld_shlibs=no
7066      fi
7067      ;;
7068    esac
7069
7070    if test "$ld_shlibs" = no; then
7071      runpath_var=
7072      hardcode_libdir_flag_spec=
7073      export_dynamic_flag_spec=
7074      whole_archive_flag_spec=
7075    fi
7076  else
7077    # PORTME fill in a description of your system's linker (not GNU ld)
7078    case $host_os in
7079    aix3*)
7080      allow_undefined_flag=unsupported
7081      always_export_symbols=yes
7082      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'
7083      # Note: this linker hardcodes the directories in LIBPATH if there
7084      # are no directories specified by -L.
7085      hardcode_minus_L=yes
7086      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7087	# Neither direct hardcoding nor static linking is supported with a
7088	# broken collect2.
7089	hardcode_direct=unsupported
7090      fi
7091      ;;
7092
7093    aix4* | aix5*)
7094      if test "$host_cpu" = ia64; then
7095	# On IA64, the linker does run time linking by default, so we don't
7096	# have to do anything special.
7097	aix_use_runtimelinking=no
7098	exp_sym_flag='-Bexport'
7099	no_entry_flag=""
7100      else
7101	# If we're using GNU nm, then we don't want the "-C" option.
7102	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7103	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7104	  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'
7105	else
7106	  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'
7107	fi
7108	aix_use_runtimelinking=no
7109
7110	# Test if we are trying to use run time linking or normal
7111	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7112	# need to do runtime linking.
7113	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7114	  for ld_flag in $LDFLAGS; do
7115  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7116  	    aix_use_runtimelinking=yes
7117  	    break
7118  	  fi
7119	  done
7120	  ;;
7121	esac
7122
7123	exp_sym_flag='-bexport'
7124	no_entry_flag='-bnoentry'
7125      fi
7126
7127      # When large executables or shared objects are built, AIX ld can
7128      # have problems creating the table of contents.  If linking a library
7129      # or program results in "error TOC overflow" add -mminimal-toc to
7130      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7131      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7132
7133      archive_cmds=''
7134      hardcode_direct=yes
7135      hardcode_libdir_separator=':'
7136      link_all_deplibs=yes
7137
7138      if test "$GCC" = yes; then
7139	case $host_os in aix4.[012]|aix4.[012].*)
7140	# We only want to do this on AIX 4.2 and lower, the check
7141	# below for broken collect2 doesn't work under 4.3+
7142	  collect2name=`${CC} -print-prog-name=collect2`
7143	  if test -f "$collect2name" && \
7144  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7145	  then
7146  	  # We have reworked collect2
7147  	  hardcode_direct=yes
7148	  else
7149  	  # We have old collect2
7150  	  hardcode_direct=unsupported
7151  	  # It fails to find uninstalled libraries when the uninstalled
7152  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7153  	  # to unsupported forces relinking
7154  	  hardcode_minus_L=yes
7155  	  hardcode_libdir_flag_spec='-L$libdir'
7156  	  hardcode_libdir_separator=
7157	  fi
7158	  ;;
7159	esac
7160	shared_flag='-shared'
7161	if test "$aix_use_runtimelinking" = yes; then
7162	  shared_flag="$shared_flag "'${wl}-G'
7163	fi
7164      else
7165	# not using gcc
7166	if test "$host_cpu" = ia64; then
7167  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7168  	# chokes on -Wl,-G. The following line is correct:
7169	  shared_flag='-G'
7170	else
7171	  if test "$aix_use_runtimelinking" = yes; then
7172	    shared_flag='${wl}-G'
7173	  else
7174	    shared_flag='${wl}-bM:SRE'
7175	  fi
7176	fi
7177      fi
7178
7179      # It seems that -bexpall does not export symbols beginning with
7180      # underscore (_), so it is better to generate a list of symbols to export.
7181      always_export_symbols=yes
7182      if test "$aix_use_runtimelinking" = yes; then
7183	# Warning - without using the other runtime loading flags (-brtl),
7184	# -berok will link without error, but may produce a broken library.
7185	allow_undefined_flag='-berok'
7186       # Determine the default libpath from the value encoded in an empty executable.
7187       cat >conftest.$ac_ext <<_ACEOF
7188/* confdefs.h.  */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h.  */
7193
7194int
7195main ()
7196{
7197
7198  ;
7199  return 0;
7200}
7201_ACEOF
7202rm -f conftest.$ac_objext conftest$ac_exeext
7203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204  (eval $ac_link) 2>conftest.er1
7205  ac_status=$?
7206  grep -v '^ *+' conftest.er1 >conftest.err
7207  rm -f conftest.er1
7208  cat conftest.err >&5
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } &&
7211	 { ac_try='test -z "$ac_c_werror_flag"
7212			 || test ! -s conftest.err'
7213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214  (eval $ac_try) 2>&5
7215  ac_status=$?
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); }; } &&
7218	 { ac_try='test -s conftest$ac_exeext'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; }; then
7224
7225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7226}'`
7227# Check for a 64-bit object if we didn't find anything.
7228if 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; }
7229}'`; fi
7230else
7231  echo "$as_me: failed program was:" >&5
7232sed 's/^/| /' conftest.$ac_ext >&5
7233
7234fi
7235rm -f conftest.err conftest.$ac_objext \
7236      conftest$ac_exeext conftest.$ac_ext
7237if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7238
7239       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7240	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"
7241       else
7242	if test "$host_cpu" = ia64; then
7243	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7244	  allow_undefined_flag="-z nodefs"
7245	  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"
7246	else
7247	 # Determine the default libpath from the value encoded in an empty executable.
7248	 cat >conftest.$ac_ext <<_ACEOF
7249/* confdefs.h.  */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h.  */
7254
7255int
7256main ()
7257{
7258
7259  ;
7260  return 0;
7261}
7262_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext
7264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265  (eval $ac_link) 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } &&
7272	 { ac_try='test -z "$ac_c_werror_flag"
7273			 || test ! -s conftest.err'
7274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275  (eval $ac_try) 2>&5
7276  ac_status=$?
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); }; } &&
7279	 { ac_try='test -s conftest$ac_exeext'
7280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281  (eval $ac_try) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }; }; then
7285
7286aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7287}'`
7288# Check for a 64-bit object if we didn't find anything.
7289if 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; }
7290}'`; fi
7291else
7292  echo "$as_me: failed program was:" >&5
7293sed 's/^/| /' conftest.$ac_ext >&5
7294
7295fi
7296rm -f conftest.err conftest.$ac_objext \
7297      conftest$ac_exeext conftest.$ac_ext
7298if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7299
7300	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7301	  # Warning - without using the other run time loading flags,
7302	  # -berok will link without error, but may produce a broken library.
7303	  no_undefined_flag=' ${wl}-bernotok'
7304	  allow_undefined_flag=' ${wl}-berok'
7305	  # Exported symbols can be pulled into shared objects from archives
7306	  whole_archive_flag_spec='$convenience'
7307	  archive_cmds_need_lc=yes
7308	  # This is similar to how AIX traditionally builds its shared libraries.
7309	  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'
7310	fi
7311      fi
7312      ;;
7313
7314    amigaos*)
7315      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)'
7316      hardcode_libdir_flag_spec='-L$libdir'
7317      hardcode_minus_L=yes
7318      # see comment about different semantics on the GNU ld section
7319      ld_shlibs=no
7320      ;;
7321
7322    bsdi[45]*)
7323      export_dynamic_flag_spec=-rdynamic
7324      ;;
7325
7326    cygwin* | mingw* | pw32*)
7327      # When not using gcc, we currently assume that we are using
7328      # Microsoft Visual C++.
7329      # hardcode_libdir_flag_spec is actually meaningless, as there is
7330      # no search path for DLLs.
7331      hardcode_libdir_flag_spec=' '
7332      allow_undefined_flag=unsupported
7333      # Tell ltmain to make .lib files, not .a files.
7334      libext=lib
7335      # Tell ltmain to make .dll files, not .so files.
7336      shrext_cmds=".dll"
7337      # FIXME: Setting linknames here is a bad hack.
7338      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7339      # The linker will automatically build a .lib file if we build a DLL.
7340      old_archive_From_new_cmds='true'
7341      # FIXME: Should let the user specify the lib program.
7342      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7343      fix_srcfile_path='`cygpath -w "$srcfile"`'
7344      enable_shared_with_static_runtimes=yes
7345      ;;
7346
7347    darwin* | rhapsody*)
7348      case $host_os in
7349        rhapsody* | darwin1.[012])
7350         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7351         ;;
7352       *) # Darwin 1.3 on
7353         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7354           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7355         else
7356           case ${MACOSX_DEPLOYMENT_TARGET} in
7357             10.[012])
7358               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7359               ;;
7360             10.*)
7361               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7362               ;;
7363           esac
7364         fi
7365         ;;
7366      esac
7367      archive_cmds_need_lc=no
7368      hardcode_direct=no
7369      hardcode_automatic=yes
7370      hardcode_shlibpath_var=unsupported
7371      whole_archive_flag_spec=''
7372      link_all_deplibs=yes
7373    if test "$GCC" = yes ; then
7374    	output_verbose_link_cmd='echo'
7375        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7376      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7377      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7378      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}'
7379      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}'
7380    else
7381      case $cc_basename in
7382        xlc*)
7383         output_verbose_link_cmd='echo'
7384         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7385         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7386          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7387         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}'
7388          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}'
7389          ;;
7390       *)
7391         ld_shlibs=no
7392          ;;
7393      esac
7394    fi
7395      ;;
7396
7397    dgux*)
7398      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399      hardcode_libdir_flag_spec='-L$libdir'
7400      hardcode_shlibpath_var=no
7401      ;;
7402
7403    freebsd1*)
7404      ld_shlibs=no
7405      ;;
7406
7407    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7408    # support.  Future versions do this automatically, but an explicit c++rt0.o
7409    # does not break anything, and helps significantly (at the cost of a little
7410    # extra space).
7411    freebsd2.2*)
7412      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7413      hardcode_libdir_flag_spec='-R$libdir'
7414      hardcode_direct=yes
7415      hardcode_shlibpath_var=no
7416      ;;
7417
7418    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7419    freebsd2*)
7420      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7421      hardcode_direct=yes
7422      hardcode_minus_L=yes
7423      hardcode_shlibpath_var=no
7424      ;;
7425
7426    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7427    freebsd* | kfreebsd*-gnu | dragonfly*)
7428      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7429      hardcode_libdir_flag_spec='-R$libdir'
7430      hardcode_direct=yes
7431      hardcode_shlibpath_var=no
7432      ;;
7433
7434    hpux9*)
7435      if test "$GCC" = yes; then
7436	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'
7437      else
7438	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'
7439      fi
7440      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7441      hardcode_libdir_separator=:
7442      hardcode_direct=yes
7443
7444      # hardcode_minus_L: Not really in the search PATH,
7445      # but as the default location of the library.
7446      hardcode_minus_L=yes
7447      export_dynamic_flag_spec='${wl}-E'
7448      ;;
7449
7450    hpux10*)
7451      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7452	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7453      else
7454	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7455      fi
7456      if test "$with_gnu_ld" = no; then
7457	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7458	hardcode_libdir_separator=:
7459
7460	hardcode_direct=yes
7461	export_dynamic_flag_spec='${wl}-E'
7462
7463	# hardcode_minus_L: Not really in the search PATH,
7464	# but as the default location of the library.
7465	hardcode_minus_L=yes
7466      fi
7467      ;;
7468
7469    hpux11*)
7470      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7471	case $host_cpu in
7472	hppa*64*)
7473	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474	  ;;
7475	ia64*)
7476	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7477	  ;;
7478	*)
7479	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7480	  ;;
7481	esac
7482      else
7483	case $host_cpu in
7484	hppa*64*)
7485	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7486	  ;;
7487	ia64*)
7488	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7489	  ;;
7490	*)
7491	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7492	  ;;
7493	esac
7494      fi
7495      if test "$with_gnu_ld" = no; then
7496	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7497	hardcode_libdir_separator=:
7498
7499	case $host_cpu in
7500	hppa*64*|ia64*)
7501	  hardcode_libdir_flag_spec_ld='+b $libdir'
7502	  hardcode_direct=no
7503	  hardcode_shlibpath_var=no
7504	  ;;
7505	*)
7506	  hardcode_direct=yes
7507	  export_dynamic_flag_spec='${wl}-E'
7508
7509	  # hardcode_minus_L: Not really in the search PATH,
7510	  # but as the default location of the library.
7511	  hardcode_minus_L=yes
7512	  ;;
7513	esac
7514      fi
7515      ;;
7516
7517    irix5* | irix6* | nonstopux*)
7518      if test "$GCC" = yes; then
7519	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'
7520      else
7521	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'
7522	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7523      fi
7524      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525      hardcode_libdir_separator=:
7526      link_all_deplibs=yes
7527      ;;
7528
7529    netbsd*)
7530      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7531	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7532      else
7533	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7534      fi
7535      hardcode_libdir_flag_spec='-R$libdir'
7536      hardcode_direct=yes
7537      hardcode_shlibpath_var=no
7538      ;;
7539
7540    newsos6)
7541      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7542      hardcode_direct=yes
7543      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7544      hardcode_libdir_separator=:
7545      hardcode_shlibpath_var=no
7546      ;;
7547
7548    openbsd*)
7549      hardcode_direct=yes
7550      hardcode_shlibpath_var=no
7551      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7552	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7553	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7554	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7555	export_dynamic_flag_spec='${wl}-E'
7556      else
7557       case $host_os in
7558	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7559	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7560	   hardcode_libdir_flag_spec='-R$libdir'
7561	   ;;
7562	 *)
7563	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7564	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7565	   ;;
7566       esac
7567      fi
7568      ;;
7569
7570    os2*)
7571      hardcode_libdir_flag_spec='-L$libdir'
7572      hardcode_minus_L=yes
7573      allow_undefined_flag=unsupported
7574      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'
7575      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7576      ;;
7577
7578    osf3*)
7579      if test "$GCC" = yes; then
7580	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7581	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'
7582      else
7583	allow_undefined_flag=' -expect_unresolved \*'
7584	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'
7585      fi
7586      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7587      hardcode_libdir_separator=:
7588      ;;
7589
7590    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7591      if test "$GCC" = yes; then
7592	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7593	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'
7594	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7595      else
7596	allow_undefined_flag=' -expect_unresolved \*'
7597	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'
7598	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7599	$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'
7600
7601	# Both c and cxx compiler support -rpath directly
7602	hardcode_libdir_flag_spec='-rpath $libdir'
7603      fi
7604      hardcode_libdir_separator=:
7605      ;;
7606
7607    solaris*)
7608      no_undefined_flag=' -z text'
7609      if test "$GCC" = yes; then
7610	wlarc='${wl}'
7611	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7612	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7613	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7614      else
7615	wlarc=''
7616	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7617	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7618  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7619      fi
7620      hardcode_libdir_flag_spec='-R$libdir'
7621      hardcode_shlibpath_var=no
7622      case $host_os in
7623      solaris2.[0-5] | solaris2.[0-5].*) ;;
7624      *)
7625 	# The compiler driver will combine linker options so we
7626 	# cannot just pass the convience library names through
7627 	# without $wl, iff we do not link with $LD.
7628 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7629 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7630 	case $wlarc in
7631 	'')
7632 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7633 	*)
7634 	  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' ;;
7635 	esac ;;
7636      esac
7637      link_all_deplibs=yes
7638      ;;
7639
7640    sunos4*)
7641      if test "x$host_vendor" = xsequent; then
7642	# Use $CC to link under sequent, because it throws in some extra .o
7643	# files that make .init and .fini sections work.
7644	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7645      else
7646	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7647      fi
7648      hardcode_libdir_flag_spec='-L$libdir'
7649      hardcode_direct=yes
7650      hardcode_minus_L=yes
7651      hardcode_shlibpath_var=no
7652      ;;
7653
7654    sysv4)
7655      case $host_vendor in
7656	sni)
7657	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7658	  hardcode_direct=yes # is this really true???
7659	;;
7660	siemens)
7661	  ## LD is ld it makes a PLAMLIB
7662	  ## CC just makes a GrossModule.
7663	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7664	  reload_cmds='$CC -r -o $output$reload_objs'
7665	  hardcode_direct=no
7666        ;;
7667	motorola)
7668	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7670	;;
7671      esac
7672      runpath_var='LD_RUN_PATH'
7673      hardcode_shlibpath_var=no
7674      ;;
7675
7676    sysv4.3*)
7677      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7678      hardcode_shlibpath_var=no
7679      export_dynamic_flag_spec='-Bexport'
7680      ;;
7681
7682    sysv4*MP*)
7683      if test -d /usr/nec; then
7684	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7685	hardcode_shlibpath_var=no
7686	runpath_var=LD_RUN_PATH
7687	hardcode_runpath_var=yes
7688	ld_shlibs=yes
7689      fi
7690      ;;
7691
7692    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7693      no_undefined_flag='${wl}-z,text'
7694      archive_cmds_need_lc=no
7695      hardcode_shlibpath_var=no
7696      runpath_var='LD_RUN_PATH'
7697
7698      if test "$GCC" = yes; then
7699	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7700	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7701      else
7702	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7703	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7704      fi
7705      ;;
7706
7707    sysv5* | sco3.2v5* | sco5v6*)
7708      # Note: We can NOT use -z defs as we might desire, because we do not
7709      # link with -lc, and that would cause any symbols used from libc to
7710      # always be unresolved, which means just about no library would
7711      # ever link correctly.  If we're not using GNU ld we use -z text
7712      # though, which does catch some bad symbols but isn't as heavy-handed
7713      # as -z defs.
7714      no_undefined_flag='${wl}-z,text'
7715      allow_undefined_flag='${wl}-z,nodefs'
7716      archive_cmds_need_lc=no
7717      hardcode_shlibpath_var=no
7718      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7719      hardcode_libdir_separator=':'
7720      link_all_deplibs=yes
7721      export_dynamic_flag_spec='${wl}-Bexport'
7722      runpath_var='LD_RUN_PATH'
7723
7724      if test "$GCC" = yes; then
7725	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7726	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7727      else
7728	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7729	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7730      fi
7731      ;;
7732
7733    uts4*)
7734      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7735      hardcode_libdir_flag_spec='-L$libdir'
7736      hardcode_shlibpath_var=no
7737      ;;
7738
7739    *)
7740      ld_shlibs=no
7741      ;;
7742    esac
7743  fi
7744
7745echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7746echo "${ECHO_T}$ld_shlibs" >&6
7747test "$ld_shlibs" = no && can_build_shared=no
7748
7749#
7750# Do we need to explicitly link libc?
7751#
7752case "x$archive_cmds_need_lc" in
7753x|xyes)
7754  # Assume -lc should be added
7755  archive_cmds_need_lc=yes
7756
7757  if test "$enable_shared" = yes && test "$GCC" = yes; then
7758    case $archive_cmds in
7759    *'~'*)
7760      # FIXME: we may have to deal with multi-command sequences.
7761      ;;
7762    '$CC '*)
7763      # Test whether the compiler implicitly links with -lc since on some
7764      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7765      # to ld, don't add -lc before -lgcc.
7766      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7767echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7768      $rm conftest*
7769      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7770
7771      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772  (eval $ac_compile) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); } 2>conftest.err; then
7776        soname=conftest
7777        lib=conftest
7778        libobjs=conftest.$ac_objext
7779        deplibs=
7780        wl=$lt_prog_compiler_wl
7781	pic_flag=$lt_prog_compiler_pic
7782        compiler_flags=-v
7783        linker_flags=-v
7784        verstring=
7785        output_objdir=.
7786        libname=conftest
7787        lt_save_allow_undefined_flag=$allow_undefined_flag
7788        allow_undefined_flag=
7789        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7790  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }
7794        then
7795	  archive_cmds_need_lc=no
7796        else
7797	  archive_cmds_need_lc=yes
7798        fi
7799        allow_undefined_flag=$lt_save_allow_undefined_flag
7800      else
7801        cat conftest.err 1>&5
7802      fi
7803      $rm conftest*
7804      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7805echo "${ECHO_T}$archive_cmds_need_lc" >&6
7806      ;;
7807    esac
7808  fi
7809  ;;
7810esac
7811
7812echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7813echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7814library_names_spec=
7815libname_spec='lib$name'
7816soname_spec=
7817shrext_cmds=".so"
7818postinstall_cmds=
7819postuninstall_cmds=
7820finish_cmds=
7821finish_eval=
7822shlibpath_var=
7823shlibpath_overrides_runpath=unknown
7824version_type=none
7825dynamic_linker="$host_os ld.so"
7826sys_lib_dlsearch_path_spec="/lib /usr/lib"
7827if test "$GCC" = yes; then
7828  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7829  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7830    # if the path contains ";" then we assume it to be the separator
7831    # otherwise default to the standard path separator (i.e. ":") - it is
7832    # assumed that no part of a normal pathname contains ";" but that should
7833    # okay in the real world where ";" in dirpaths is itself problematic.
7834    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7835  else
7836    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7837  fi
7838else
7839  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7840fi
7841need_lib_prefix=unknown
7842hardcode_into_libs=no
7843
7844# when you set need_version to no, make sure it does not cause -set_version
7845# flags to be left without arguments
7846need_version=unknown
7847
7848case $host_os in
7849aix3*)
7850  version_type=linux
7851  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7852  shlibpath_var=LIBPATH
7853
7854  # AIX 3 has no versioning support, so we append a major version to the name.
7855  soname_spec='${libname}${release}${shared_ext}$major'
7856  ;;
7857
7858aix4* | aix5*)
7859  version_type=linux
7860  need_lib_prefix=no
7861  need_version=no
7862  hardcode_into_libs=yes
7863  if test "$host_cpu" = ia64; then
7864    # AIX 5 supports IA64
7865    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7866    shlibpath_var=LD_LIBRARY_PATH
7867  else
7868    # With GCC up to 2.95.x, collect2 would create an import file
7869    # for dependence libraries.  The import file would start with
7870    # the line `#! .'.  This would cause the generated library to
7871    # depend on `.', always an invalid library.  This was fixed in
7872    # development snapshots of GCC prior to 3.0.
7873    case $host_os in
7874      aix4 | aix4.[01] | aix4.[01].*)
7875      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7876	   echo ' yes '
7877	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7878	:
7879      else
7880	can_build_shared=no
7881      fi
7882      ;;
7883    esac
7884    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7885    # soname into executable. Probably we can add versioning support to
7886    # collect2, so additional links can be useful in future.
7887    if test "$aix_use_runtimelinking" = yes; then
7888      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7889      # instead of lib<name>.a to let people know that these are not
7890      # typical AIX shared libraries.
7891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892    else
7893      # We preserve .a as extension for shared libraries through AIX4.2
7894      # and later when we are not doing run time linking.
7895      library_names_spec='${libname}${release}.a $libname.a'
7896      soname_spec='${libname}${release}${shared_ext}$major'
7897    fi
7898    shlibpath_var=LIBPATH
7899  fi
7900  ;;
7901
7902amigaos*)
7903  library_names_spec='$libname.ixlibrary $libname.a'
7904  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7905  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'
7906  ;;
7907
7908beos*)
7909  library_names_spec='${libname}${shared_ext}'
7910  dynamic_linker="$host_os ld.so"
7911  shlibpath_var=LIBRARY_PATH
7912  ;;
7913
7914bsdi[45]*)
7915  version_type=linux
7916  need_version=no
7917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918  soname_spec='${libname}${release}${shared_ext}$major'
7919  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7920  shlibpath_var=LD_LIBRARY_PATH
7921  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7922  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7923  # the default ld.so.conf also contains /usr/contrib/lib and
7924  # /usr/local/lib (/usr/X11 is a link to /usr/local), but let us allow
7925  # libtool to hard-code these into programs
7926  ;;
7927
7928cygwin* | mingw* | pw32*)
7929  version_type=windows
7930  shrext_cmds=".dll"
7931  need_version=no
7932  need_lib_prefix=no
7933
7934  case $GCC,$host_os in
7935  yes,cygwin* | yes,mingw* | yes,pw32*)
7936    library_names_spec='$libname.dll.a'
7937    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7938    postinstall_cmds='base_file=`basename \${file}`~
7939      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7940      dldir=$destdir/`dirname \$dlpath`~
7941      test -d \$dldir || mkdir -p \$dldir~
7942      $install_prog $dir/$dlname \$dldir/$dlname~
7943      chmod a+x \$dldir/$dlname'
7944    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7945      dlpath=$dir/\$dldll~
7946       $rm \$dlpath'
7947    shlibpath_overrides_runpath=yes
7948
7949    case $host_os in
7950    cygwin*)
7951      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7952      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7953      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7954      ;;
7955    mingw*)
7956      # MinGW DLLs use traditional 'lib' prefix
7957      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7958      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7959      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7960        # It is most probably a Windows format PATH printed by
7961        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7962        # path with ; separators, and with drive letters. We can handle the
7963        # drive letters (cygwin fileutils understands them), so leave them,
7964        # especially as we might pass files found there to a mingw objdump,
7965        # which wouldn't understand a cygwinified path. Ahh.
7966        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7967      else
7968        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7969      fi
7970      ;;
7971    pw32*)
7972      # pw32 DLLs use 'pw' prefix rather than 'lib'
7973      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7974      ;;
7975    esac
7976    ;;
7977
7978  *)
7979    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7980    ;;
7981  esac
7982  dynamic_linker='Win32 ld.exe'
7983  # FIXME: first we should search . and the directory the executable is in
7984  shlibpath_var=PATH
7985  ;;
7986
7987darwin* | rhapsody*)
7988  dynamic_linker="$host_os dyld"
7989  version_type=darwin
7990  need_lib_prefix=no
7991  need_version=no
7992  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7993  soname_spec='${libname}${release}${major}$shared_ext'
7994  shlibpath_overrides_runpath=yes
7995  shlibpath_var=DYLD_LIBRARY_PATH
7996  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7997  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7998  if test "$GCC" = yes; then
7999    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"`
8000  else
8001    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8002  fi
8003  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8004  ;;
8005
8006dgux*)
8007  version_type=linux
8008  need_lib_prefix=no
8009  need_version=no
8010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8011  soname_spec='${libname}${release}${shared_ext}$major'
8012  shlibpath_var=LD_LIBRARY_PATH
8013  ;;
8014
8015freebsd1*)
8016  dynamic_linker=no
8017  ;;
8018
8019kfreebsd*-gnu)
8020  version_type=linux
8021  need_lib_prefix=no
8022  need_version=no
8023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8024  soname_spec='${libname}${release}${shared_ext}$major'
8025  shlibpath_var=LD_LIBRARY_PATH
8026  shlibpath_overrides_runpath=no
8027  hardcode_into_libs=yes
8028  dynamic_linker='GNU ld.so'
8029  ;;
8030
8031freebsd* | dragonfly*)
8032  # DragonFly does not have aout.  When/if they implement a new
8033  # versioning mechanism, adjust this.
8034  if test -x /usr/bin/objformat; then
8035    objformat=`/usr/bin/objformat`
8036  else
8037    case $host_os in
8038    freebsd[123]*) objformat=aout ;;
8039    *) objformat=elf ;;
8040    esac
8041  fi
8042  version_type=freebsd-$objformat
8043  case $version_type in
8044    freebsd-elf*)
8045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8046      need_version=no
8047      need_lib_prefix=no
8048      ;;
8049    freebsd-*)
8050      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8051      need_version=yes
8052      ;;
8053  esac
8054  shlibpath_var=LD_LIBRARY_PATH
8055  case $host_os in
8056  freebsd2*)
8057    shlibpath_overrides_runpath=yes
8058    ;;
8059  freebsd3.[01]* | freebsdelf3.[01]*)
8060    shlibpath_overrides_runpath=yes
8061    hardcode_into_libs=yes
8062    ;;
8063  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8064  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8065    shlibpath_overrides_runpath=no
8066    hardcode_into_libs=yes
8067    ;;
8068  freebsd*) # from 4.6 on
8069    shlibpath_overrides_runpath=yes
8070    hardcode_into_libs=yes
8071    ;;
8072  esac
8073  ;;
8074
8075gnu*)
8076  version_type=linux
8077  need_lib_prefix=no
8078  need_version=no
8079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8080  soname_spec='${libname}${release}${shared_ext}$major'
8081  shlibpath_var=LD_LIBRARY_PATH
8082  hardcode_into_libs=yes
8083  ;;
8084
8085hpux9* | hpux10* | hpux11*)
8086  # Give a soname corresponding to the major version so that dld.sl refuses to
8087  # link against other versions.
8088  version_type=sunos
8089  need_lib_prefix=no
8090  need_version=no
8091  case $host_cpu in
8092  ia64*)
8093    shrext_cmds='.so'
8094    hardcode_into_libs=yes
8095    dynamic_linker="$host_os dld.so"
8096    shlibpath_var=LD_LIBRARY_PATH
8097    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099    soname_spec='${libname}${release}${shared_ext}$major'
8100    if test "X$HPUX_IA64_MODE" = X32; then
8101      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8102    else
8103      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8104    fi
8105    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8106    ;;
8107   hppa*64*)
8108     shrext_cmds='.sl'
8109     hardcode_into_libs=yes
8110     dynamic_linker="$host_os dld.sl"
8111     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8112     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8114     soname_spec='${libname}${release}${shared_ext}$major'
8115     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8117     ;;
8118   *)
8119    shrext_cmds='.sl'
8120    dynamic_linker="$host_os dld.sl"
8121    shlibpath_var=SHLIB_PATH
8122    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124    soname_spec='${libname}${release}${shared_ext}$major'
8125    ;;
8126  esac
8127  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8128  postinstall_cmds='chmod 555 $lib'
8129  ;;
8130
8131interix3*)
8132  version_type=linux
8133  need_lib_prefix=no
8134  need_version=no
8135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8136  soname_spec='${libname}${release}${shared_ext}$major'
8137  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8138  shlibpath_var=LD_LIBRARY_PATH
8139  shlibpath_overrides_runpath=no
8140  hardcode_into_libs=yes
8141  ;;
8142
8143irix5* | irix6* | nonstopux*)
8144  case $host_os in
8145    nonstopux*) version_type=nonstopux ;;
8146    *)
8147	if test "$lt_cv_prog_gnu_ld" = yes; then
8148		version_type=linux
8149	else
8150		version_type=irix
8151	fi ;;
8152  esac
8153  need_lib_prefix=no
8154  need_version=no
8155  soname_spec='${libname}${release}${shared_ext}$major'
8156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8157  case $host_os in
8158  irix5* | nonstopux*)
8159    libsuff= shlibsuff=
8160    ;;
8161  *)
8162    case $LD in # libtool.m4 will add one of these switches to LD
8163    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8164      libsuff= shlibsuff= libmagic=32-bit;;
8165    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8166      libsuff=32 shlibsuff=N32 libmagic=N32;;
8167    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8168      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8169    *) libsuff= shlibsuff= libmagic=never-match;;
8170    esac
8171    ;;
8172  esac
8173  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8174  shlibpath_overrides_runpath=no
8175  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8176  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8177  hardcode_into_libs=yes
8178  ;;
8179
8180# No shared lib support for Linux oldld, aout, or coff.
8181linux*oldld* | linux*aout* | linux*coff*)
8182  dynamic_linker=no
8183  ;;
8184
8185# This must be Linux ELF.
8186linux*)
8187  version_type=linux
8188  need_lib_prefix=no
8189  need_version=no
8190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191  soname_spec='${libname}${release}${shared_ext}$major'
8192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8193  shlibpath_var=LD_LIBRARY_PATH
8194  shlibpath_overrides_runpath=no
8195  # This implies no fast_install, which is unacceptable.
8196  # Some rework will be needed to allow for fast_install
8197  # before this can be enabled.
8198  hardcode_into_libs=yes
8199
8200  # Append ld.so.conf contents to the search path
8201  if test -f /etc/ld.so.conf; then
8202    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' ' '`
8203    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8204  fi
8205
8206  # We used to test for /lib/ld.so.1 and disable shared libraries on
8207  # powerpc, because MkLinux only supported shared libraries with the
8208  # GNU dynamic linker.  Since this was broken with cross compilers,
8209  # most powerpc-linux boxes support dynamic linking these days and
8210  # people can always --disable-shared, the test was removed, and we
8211  # assume the GNU/Linux dynamic linker is in use.
8212  dynamic_linker='GNU/Linux ld.so'
8213  ;;
8214
8215knetbsd*-gnu)
8216  version_type=linux
8217  need_lib_prefix=no
8218  need_version=no
8219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8220  soname_spec='${libname}${release}${shared_ext}$major'
8221  shlibpath_var=LD_LIBRARY_PATH
8222  shlibpath_overrides_runpath=no
8223  hardcode_into_libs=yes
8224  dynamic_linker='GNU ld.so'
8225  ;;
8226
8227netbsd*)
8228  version_type=sunos
8229  need_lib_prefix=no
8230  need_version=no
8231  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8233    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8234    dynamic_linker='NetBSD (a.out) ld.so'
8235  else
8236    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237    soname_spec='${libname}${release}${shared_ext}$major'
8238    dynamic_linker='NetBSD ld.elf_so'
8239  fi
8240  shlibpath_var=LD_LIBRARY_PATH
8241  shlibpath_overrides_runpath=yes
8242  hardcode_into_libs=yes
8243  ;;
8244
8245newsos6)
8246  version_type=linux
8247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248  shlibpath_var=LD_LIBRARY_PATH
8249  shlibpath_overrides_runpath=yes
8250  ;;
8251
8252nto-qnx*)
8253  version_type=linux
8254  need_lib_prefix=no
8255  need_version=no
8256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257  soname_spec='${libname}${release}${shared_ext}$major'
8258  shlibpath_var=LD_LIBRARY_PATH
8259  shlibpath_overrides_runpath=yes
8260  ;;
8261
8262openbsd*)
8263  version_type=sunos
8264  sys_lib_dlsearch_path_spec="/usr/lib"
8265  need_lib_prefix=no
8266  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8267  case $host_os in
8268    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8269    *)                         need_version=no  ;;
8270  esac
8271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8272  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8273  shlibpath_var=LD_LIBRARY_PATH
8274  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8275    case $host_os in
8276      openbsd2.[89] | openbsd2.[89].*)
8277	shlibpath_overrides_runpath=no
8278	;;
8279      *)
8280	shlibpath_overrides_runpath=yes
8281	;;
8282      esac
8283  else
8284    shlibpath_overrides_runpath=yes
8285  fi
8286  ;;
8287
8288os2*)
8289  libname_spec='$name'
8290  shrext_cmds=".dll"
8291  need_lib_prefix=no
8292  library_names_spec='$libname${shared_ext} $libname.a'
8293  dynamic_linker='OS/2 ld.exe'
8294  shlibpath_var=LIBPATH
8295  ;;
8296
8297osf3* | osf4* | osf5*)
8298  version_type=osf
8299  need_lib_prefix=no
8300  need_version=no
8301  soname_spec='${libname}${release}${shared_ext}$major'
8302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303  shlibpath_var=LD_LIBRARY_PATH
8304  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8305  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8306  ;;
8307
8308solaris*)
8309  version_type=linux
8310  need_lib_prefix=no
8311  need_version=no
8312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8313  soname_spec='${libname}${release}${shared_ext}$major'
8314  shlibpath_var=LD_LIBRARY_PATH
8315  shlibpath_overrides_runpath=yes
8316  hardcode_into_libs=yes
8317  # ldd complains unless libraries are executable
8318  postinstall_cmds='chmod +x $lib'
8319  ;;
8320
8321sunos4*)
8322  version_type=sunos
8323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8324  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8325  shlibpath_var=LD_LIBRARY_PATH
8326  shlibpath_overrides_runpath=yes
8327  if test "$with_gnu_ld" = yes; then
8328    need_lib_prefix=no
8329  fi
8330  need_version=yes
8331  ;;
8332
8333sysv4 | sysv4.3*)
8334  version_type=linux
8335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8336  soname_spec='${libname}${release}${shared_ext}$major'
8337  shlibpath_var=LD_LIBRARY_PATH
8338  case $host_vendor in
8339    sni)
8340      shlibpath_overrides_runpath=no
8341      need_lib_prefix=no
8342      export_dynamic_flag_spec='${wl}-Blargedynsym'
8343      runpath_var=LD_RUN_PATH
8344      ;;
8345    siemens)
8346      need_lib_prefix=no
8347      ;;
8348    motorola)
8349      need_lib_prefix=no
8350      need_version=no
8351      shlibpath_overrides_runpath=no
8352      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8353      ;;
8354  esac
8355  ;;
8356
8357sysv4*MP*)
8358  if test -d /usr/nec ;then
8359    version_type=linux
8360    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8361    soname_spec='$libname${shared_ext}.$major'
8362    shlibpath_var=LD_LIBRARY_PATH
8363  fi
8364  ;;
8365
8366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8367  version_type=freebsd-elf
8368  need_lib_prefix=no
8369  need_version=no
8370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8371  soname_spec='${libname}${release}${shared_ext}$major'
8372  shlibpath_var=LD_LIBRARY_PATH
8373  hardcode_into_libs=yes
8374  if test "$with_gnu_ld" = yes; then
8375    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8376    shlibpath_overrides_runpath=no
8377  else
8378    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8379    shlibpath_overrides_runpath=yes
8380    case $host_os in
8381      sco3.2v5*)
8382        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8383	;;
8384    esac
8385  fi
8386  sys_lib_dlsearch_path_spec='/usr/lib'
8387  ;;
8388
8389uts4*)
8390  version_type=linux
8391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392  soname_spec='${libname}${release}${shared_ext}$major'
8393  shlibpath_var=LD_LIBRARY_PATH
8394  ;;
8395
8396*)
8397  dynamic_linker=no
8398  ;;
8399esac
8400echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8401echo "${ECHO_T}$dynamic_linker" >&6
8402test "$dynamic_linker" = no && can_build_shared=no
8403
8404variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8405if test "$GCC" = yes; then
8406  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8407fi
8408
8409echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8410echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8411hardcode_action=
8412if test -n "$hardcode_libdir_flag_spec" || \
8413   test -n "$runpath_var" || \
8414   test "X$hardcode_automatic" = "Xyes" ; then
8415
8416  # We can hardcode non-existant directories.
8417  if test "$hardcode_direct" != no &&
8418     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8419     # have to relink, otherwise we might link with an installed library
8420     # when we should be linking with a yet-to-be-installed one
8421     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8422     test "$hardcode_minus_L" != no; then
8423    # Linking always hardcodes the temporary library directory.
8424    hardcode_action=relink
8425  else
8426    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8427    hardcode_action=immediate
8428  fi
8429else
8430  # We cannot hardcode anything, or else we can only hardcode existing
8431  # directories.
8432  hardcode_action=unsupported
8433fi
8434echo "$as_me:$LINENO: result: $hardcode_action" >&5
8435echo "${ECHO_T}$hardcode_action" >&6
8436
8437if test "$hardcode_action" = relink; then
8438  # Fast installation is not supported
8439  enable_fast_install=no
8440elif test "$shlibpath_overrides_runpath" = yes ||
8441     test "$enable_shared" = no; then
8442  # Fast installation is not necessary
8443  enable_fast_install=needless
8444fi
8445
8446striplib=
8447old_striplib=
8448echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8449echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8450if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8451  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8452  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8453  echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455else
8456# FIXME - insert some real tests, host_os isn't really good enough
8457  case $host_os in
8458   darwin*)
8459       if test -n "$STRIP" ; then
8460         striplib="$STRIP -x"
8461         echo "$as_me:$LINENO: result: yes" >&5
8462echo "${ECHO_T}yes" >&6
8463       else
8464  echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
8466fi
8467       ;;
8468   *)
8469  echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6
8471    ;;
8472  esac
8473fi
8474
8475if test "x$enable_dlopen" != xyes; then
8476  enable_dlopen=unknown
8477  enable_dlopen_self=unknown
8478  enable_dlopen_self_static=unknown
8479else
8480  lt_cv_dlopen=no
8481  lt_cv_dlopen_libs=
8482
8483  case $host_os in
8484  beos*)
8485    lt_cv_dlopen="load_add_on"
8486    lt_cv_dlopen_libs=
8487    lt_cv_dlopen_self=yes
8488    ;;
8489
8490  mingw* | pw32*)
8491    lt_cv_dlopen="LoadLibrary"
8492    lt_cv_dlopen_libs=
8493   ;;
8494
8495  cygwin*)
8496    lt_cv_dlopen="dlopen"
8497    lt_cv_dlopen_libs=
8498   ;;
8499
8500  darwin*)
8501  # if libdl is installed we need to link against it
8502    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8503echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8504if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8505  echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507  ac_check_lib_save_LIBS=$LIBS
8508LIBS="-ldl  $LIBS"
8509cat >conftest.$ac_ext <<_ACEOF
8510/* confdefs.h.  */
8511_ACEOF
8512cat confdefs.h >>conftest.$ac_ext
8513cat >>conftest.$ac_ext <<_ACEOF
8514/* end confdefs.h.  */
8515
8516/* Override any gcc2 internal prototype to avoid an error.  */
8517#ifdef __cplusplus
8518extern "C"
8519#endif
8520/* We use char because int might match the return type of a gcc2
8521   builtin and then its argument prototype would still apply.  */
8522char dlopen ();
8523int
8524main ()
8525{
8526dlopen ();
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531rm -f conftest.$ac_objext conftest$ac_exeext
8532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533  (eval $ac_link) 2>conftest.er1
8534  ac_status=$?
8535  grep -v '^ *+' conftest.er1 >conftest.err
8536  rm -f conftest.er1
8537  cat conftest.err >&5
8538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539  (exit $ac_status); } &&
8540	 { ac_try='test -z "$ac_c_werror_flag"
8541			 || test ! -s conftest.err'
8542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543  (eval $ac_try) 2>&5
8544  ac_status=$?
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); }; } &&
8547	 { ac_try='test -s conftest$ac_exeext'
8548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549  (eval $ac_try) 2>&5
8550  ac_status=$?
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); }; }; then
8553  ac_cv_lib_dl_dlopen=yes
8554else
8555  echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558ac_cv_lib_dl_dlopen=no
8559fi
8560rm -f conftest.err conftest.$ac_objext \
8561      conftest$ac_exeext conftest.$ac_ext
8562LIBS=$ac_check_lib_save_LIBS
8563fi
8564echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8565echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8566if test $ac_cv_lib_dl_dlopen = yes; then
8567  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8568else
8569
8570    lt_cv_dlopen="dyld"
8571    lt_cv_dlopen_libs=
8572    lt_cv_dlopen_self=yes
8573
8574fi
8575
8576   ;;
8577
8578  *)
8579    echo "$as_me:$LINENO: checking for shl_load" >&5
8580echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8581if test "${ac_cv_func_shl_load+set}" = set; then
8582  echo $ECHO_N "(cached) $ECHO_C" >&6
8583else
8584  cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h.  */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h.  */
8590/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8592#define shl_load innocuous_shl_load
8593
8594/* System header to define __stub macros and hopefully few prototypes,
8595    which can conflict with char shl_load (); below.
8596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8597    <limits.h> exists even on freestanding compilers.  */
8598
8599#ifdef __STDC__
8600# include <limits.h>
8601#else
8602# include <assert.h>
8603#endif
8604
8605#undef shl_load
8606
8607/* Override any gcc2 internal prototype to avoid an error.  */
8608#ifdef __cplusplus
8609extern "C"
8610{
8611#endif
8612/* We use char because int might match the return type of a gcc2
8613   builtin and then its argument prototype would still apply.  */
8614char shl_load ();
8615/* The GNU C library defines this for functions which it implements
8616    to always fail with ENOSYS.  Some functions are actually named
8617    something starting with __ and the normal name is an alias.  */
8618#if defined (__stub_shl_load) || defined (__stub___shl_load)
8619choke me
8620#else
8621char (*f) () = shl_load;
8622#endif
8623#ifdef __cplusplus
8624}
8625#endif
8626
8627int
8628main ()
8629{
8630return f != shl_load;
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635rm -f conftest.$ac_objext conftest$ac_exeext
8636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637  (eval $ac_link) 2>conftest.er1
8638  ac_status=$?
8639  grep -v '^ *+' conftest.er1 >conftest.err
8640  rm -f conftest.er1
8641  cat conftest.err >&5
8642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643  (exit $ac_status); } &&
8644	 { ac_try='test -z "$ac_c_werror_flag"
8645			 || test ! -s conftest.err'
8646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  (eval $ac_try) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; } &&
8651	 { ac_try='test -s conftest$ac_exeext'
8652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653  (eval $ac_try) 2>&5
8654  ac_status=$?
8655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656  (exit $ac_status); }; }; then
8657  ac_cv_func_shl_load=yes
8658else
8659  echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
8662ac_cv_func_shl_load=no
8663fi
8664rm -f conftest.err conftest.$ac_objext \
8665      conftest$ac_exeext conftest.$ac_ext
8666fi
8667echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8668echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8669if test $ac_cv_func_shl_load = yes; then
8670  lt_cv_dlopen="shl_load"
8671else
8672  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8673echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8674if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8675  echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677  ac_check_lib_save_LIBS=$LIBS
8678LIBS="-ldld  $LIBS"
8679cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h.  */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h.  */
8685
8686/* Override any gcc2 internal prototype to avoid an error.  */
8687#ifdef __cplusplus
8688extern "C"
8689#endif
8690/* We use char because int might match the return type of a gcc2
8691   builtin and then its argument prototype would still apply.  */
8692char shl_load ();
8693int
8694main ()
8695{
8696shl_load ();
8697  ;
8698  return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext conftest$ac_exeext
8702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703  (eval $ac_link) 2>conftest.er1
8704  ac_status=$?
8705  grep -v '^ *+' conftest.er1 >conftest.err
8706  rm -f conftest.er1
8707  cat conftest.err >&5
8708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709  (exit $ac_status); } &&
8710	 { ac_try='test -z "$ac_c_werror_flag"
8711			 || test ! -s conftest.err'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; } &&
8717	 { ac_try='test -s conftest$ac_exeext'
8718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719  (eval $ac_try) 2>&5
8720  ac_status=$?
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); }; }; then
8723  ac_cv_lib_dld_shl_load=yes
8724else
8725  echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728ac_cv_lib_dld_shl_load=no
8729fi
8730rm -f conftest.err conftest.$ac_objext \
8731      conftest$ac_exeext conftest.$ac_ext
8732LIBS=$ac_check_lib_save_LIBS
8733fi
8734echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8735echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8736if test $ac_cv_lib_dld_shl_load = yes; then
8737  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8738else
8739  echo "$as_me:$LINENO: checking for dlopen" >&5
8740echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8741if test "${ac_cv_func_dlopen+set}" = set; then
8742  echo $ECHO_N "(cached) $ECHO_C" >&6
8743else
8744  cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h.  */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h.  */
8750/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8752#define dlopen innocuous_dlopen
8753
8754/* System header to define __stub macros and hopefully few prototypes,
8755    which can conflict with char dlopen (); below.
8756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8757    <limits.h> exists even on freestanding compilers.  */
8758
8759#ifdef __STDC__
8760# include <limits.h>
8761#else
8762# include <assert.h>
8763#endif
8764
8765#undef dlopen
8766
8767/* Override any gcc2 internal prototype to avoid an error.  */
8768#ifdef __cplusplus
8769extern "C"
8770{
8771#endif
8772/* We use char because int might match the return type of a gcc2
8773   builtin and then its argument prototype would still apply.  */
8774char dlopen ();
8775/* The GNU C library defines this for functions which it implements
8776    to always fail with ENOSYS.  Some functions are actually named
8777    something starting with __ and the normal name is an alias.  */
8778#if defined (__stub_dlopen) || defined (__stub___dlopen)
8779choke me
8780#else
8781char (*f) () = dlopen;
8782#endif
8783#ifdef __cplusplus
8784}
8785#endif
8786
8787int
8788main ()
8789{
8790return f != dlopen;
8791  ;
8792  return 0;
8793}
8794_ACEOF
8795rm -f conftest.$ac_objext conftest$ac_exeext
8796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797  (eval $ac_link) 2>conftest.er1
8798  ac_status=$?
8799  grep -v '^ *+' conftest.er1 >conftest.err
8800  rm -f conftest.er1
8801  cat conftest.err >&5
8802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803  (exit $ac_status); } &&
8804	 { ac_try='test -z "$ac_c_werror_flag"
8805			 || test ! -s conftest.err'
8806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807  (eval $ac_try) 2>&5
8808  ac_status=$?
8809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); }; } &&
8811	 { ac_try='test -s conftest$ac_exeext'
8812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813  (eval $ac_try) 2>&5
8814  ac_status=$?
8815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); }; }; then
8817  ac_cv_func_dlopen=yes
8818else
8819  echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822ac_cv_func_dlopen=no
8823fi
8824rm -f conftest.err conftest.$ac_objext \
8825      conftest$ac_exeext conftest.$ac_ext
8826fi
8827echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8828echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8829if test $ac_cv_func_dlopen = yes; then
8830  lt_cv_dlopen="dlopen"
8831else
8832  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8833echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8834if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8835  echo $ECHO_N "(cached) $ECHO_C" >&6
8836else
8837  ac_check_lib_save_LIBS=$LIBS
8838LIBS="-ldl  $LIBS"
8839cat >conftest.$ac_ext <<_ACEOF
8840/* confdefs.h.  */
8841_ACEOF
8842cat confdefs.h >>conftest.$ac_ext
8843cat >>conftest.$ac_ext <<_ACEOF
8844/* end confdefs.h.  */
8845
8846/* Override any gcc2 internal prototype to avoid an error.  */
8847#ifdef __cplusplus
8848extern "C"
8849#endif
8850/* We use char because int might match the return type of a gcc2
8851   builtin and then its argument prototype would still apply.  */
8852char dlopen ();
8853int
8854main ()
8855{
8856dlopen ();
8857  ;
8858  return 0;
8859}
8860_ACEOF
8861rm -f conftest.$ac_objext conftest$ac_exeext
8862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863  (eval $ac_link) 2>conftest.er1
8864  ac_status=$?
8865  grep -v '^ *+' conftest.er1 >conftest.err
8866  rm -f conftest.er1
8867  cat conftest.err >&5
8868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); } &&
8870	 { ac_try='test -z "$ac_c_werror_flag"
8871			 || test ! -s conftest.err'
8872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873  (eval $ac_try) 2>&5
8874  ac_status=$?
8875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876  (exit $ac_status); }; } &&
8877	 { ac_try='test -s conftest$ac_exeext'
8878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879  (eval $ac_try) 2>&5
8880  ac_status=$?
8881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882  (exit $ac_status); }; }; then
8883  ac_cv_lib_dl_dlopen=yes
8884else
8885  echo "$as_me: failed program was:" >&5
8886sed 's/^/| /' conftest.$ac_ext >&5
8887
8888ac_cv_lib_dl_dlopen=no
8889fi
8890rm -f conftest.err conftest.$ac_objext \
8891      conftest$ac_exeext conftest.$ac_ext
8892LIBS=$ac_check_lib_save_LIBS
8893fi
8894echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8895echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8896if test $ac_cv_lib_dl_dlopen = yes; then
8897  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8898else
8899  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8900echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8901if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8902  echo $ECHO_N "(cached) $ECHO_C" >&6
8903else
8904  ac_check_lib_save_LIBS=$LIBS
8905LIBS="-lsvld  $LIBS"
8906cat >conftest.$ac_ext <<_ACEOF
8907/* confdefs.h.  */
8908_ACEOF
8909cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h.  */
8912
8913/* Override any gcc2 internal prototype to avoid an error.  */
8914#ifdef __cplusplus
8915extern "C"
8916#endif
8917/* We use char because int might match the return type of a gcc2
8918   builtin and then its argument prototype would still apply.  */
8919char dlopen ();
8920int
8921main ()
8922{
8923dlopen ();
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928rm -f conftest.$ac_objext conftest$ac_exeext
8929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930  (eval $ac_link) 2>conftest.er1
8931  ac_status=$?
8932  grep -v '^ *+' conftest.er1 >conftest.err
8933  rm -f conftest.er1
8934  cat conftest.err >&5
8935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936  (exit $ac_status); } &&
8937	 { ac_try='test -z "$ac_c_werror_flag"
8938			 || test ! -s conftest.err'
8939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940  (eval $ac_try) 2>&5
8941  ac_status=$?
8942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943  (exit $ac_status); }; } &&
8944	 { ac_try='test -s conftest$ac_exeext'
8945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946  (eval $ac_try) 2>&5
8947  ac_status=$?
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); }; }; then
8950  ac_cv_lib_svld_dlopen=yes
8951else
8952  echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
8955ac_cv_lib_svld_dlopen=no
8956fi
8957rm -f conftest.err conftest.$ac_objext \
8958      conftest$ac_exeext conftest.$ac_ext
8959LIBS=$ac_check_lib_save_LIBS
8960fi
8961echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8962echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8963if test $ac_cv_lib_svld_dlopen = yes; then
8964  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8965else
8966  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8967echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8968if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8969  echo $ECHO_N "(cached) $ECHO_C" >&6
8970else
8971  ac_check_lib_save_LIBS=$LIBS
8972LIBS="-ldld  $LIBS"
8973cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h.  */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h.  */
8979
8980/* Override any gcc2 internal prototype to avoid an error.  */
8981#ifdef __cplusplus
8982extern "C"
8983#endif
8984/* We use char because int might match the return type of a gcc2
8985   builtin and then its argument prototype would still apply.  */
8986char dld_link ();
8987int
8988main ()
8989{
8990dld_link ();
8991  ;
8992  return 0;
8993}
8994_ACEOF
8995rm -f conftest.$ac_objext conftest$ac_exeext
8996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997  (eval $ac_link) 2>conftest.er1
8998  ac_status=$?
8999  grep -v '^ *+' conftest.er1 >conftest.err
9000  rm -f conftest.er1
9001  cat conftest.err >&5
9002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003  (exit $ac_status); } &&
9004	 { ac_try='test -z "$ac_c_werror_flag"
9005			 || test ! -s conftest.err'
9006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007  (eval $ac_try) 2>&5
9008  ac_status=$?
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); }; } &&
9011	 { ac_try='test -s conftest$ac_exeext'
9012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013  (eval $ac_try) 2>&5
9014  ac_status=$?
9015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016  (exit $ac_status); }; }; then
9017  ac_cv_lib_dld_dld_link=yes
9018else
9019  echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022ac_cv_lib_dld_dld_link=no
9023fi
9024rm -f conftest.err conftest.$ac_objext \
9025      conftest$ac_exeext conftest.$ac_ext
9026LIBS=$ac_check_lib_save_LIBS
9027fi
9028echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9029echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9030if test $ac_cv_lib_dld_dld_link = yes; then
9031  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9032fi
9033
9034
9035fi
9036
9037
9038fi
9039
9040
9041fi
9042
9043
9044fi
9045
9046
9047fi
9048
9049    ;;
9050  esac
9051
9052  if test "x$lt_cv_dlopen" != xno; then
9053    enable_dlopen=yes
9054  else
9055    enable_dlopen=no
9056  fi
9057
9058  case $lt_cv_dlopen in
9059  dlopen)
9060    save_CPPFLAGS="$CPPFLAGS"
9061    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9062
9063    save_LDFLAGS="$LDFLAGS"
9064    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9065
9066    save_LIBS="$LIBS"
9067    LIBS="$lt_cv_dlopen_libs $LIBS"
9068
9069    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9070echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9071if test "${lt_cv_dlopen_self+set}" = set; then
9072  echo $ECHO_N "(cached) $ECHO_C" >&6
9073else
9074  	  if test "$cross_compiling" = yes; then :
9075  lt_cv_dlopen_self=cross
9076else
9077  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9078  lt_status=$lt_dlunknown
9079  cat > conftest.$ac_ext <<EOF
9080#line 9080 "configure"
9081#include "confdefs.h"
9082
9083#if HAVE_DLFCN_H
9084#include <dlfcn.h>
9085#endif
9086
9087#include <stdio.h>
9088
9089#ifdef RTLD_GLOBAL
9090#  define LT_DLGLOBAL		RTLD_GLOBAL
9091#else
9092#  ifdef DL_GLOBAL
9093#    define LT_DLGLOBAL		DL_GLOBAL
9094#  else
9095#    define LT_DLGLOBAL		0
9096#  endif
9097#endif
9098
9099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9100   find out it does not work in some platform. */
9101#ifndef LT_DLLAZY_OR_NOW
9102#  ifdef RTLD_LAZY
9103#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9104#  else
9105#    ifdef DL_LAZY
9106#      define LT_DLLAZY_OR_NOW		DL_LAZY
9107#    else
9108#      ifdef RTLD_NOW
9109#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9110#      else
9111#        ifdef DL_NOW
9112#          define LT_DLLAZY_OR_NOW	DL_NOW
9113#        else
9114#          define LT_DLLAZY_OR_NOW	0
9115#        endif
9116#      endif
9117#    endif
9118#  endif
9119#endif
9120
9121#ifdef __cplusplus
9122extern "C" [[noreturn]] void exit (int);
9123#endif
9124
9125void fnord() { int i=42;}
9126int main ()
9127{
9128  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9129  int status = $lt_dlunknown;
9130
9131  if (self)
9132    {
9133      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9134      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9135      /* dlclose (self); */
9136    }
9137  else
9138    puts (dlerror ());
9139
9140    exit (status);
9141}
9142EOF
9143  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144  (eval $ac_link) 2>&5
9145  ac_status=$?
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9148    (./conftest; exit; ) >&5 2>/dev/null
9149    lt_status=$?
9150    case x$lt_status in
9151      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9152      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9153      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9154    esac
9155  else :
9156    # compilation failed
9157    lt_cv_dlopen_self=no
9158  fi
9159fi
9160rm -fr conftest*
9161
9162
9163fi
9164echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9165echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9166
9167    if test "x$lt_cv_dlopen_self" = xyes; then
9168      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9169      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9170echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9171if test "${lt_cv_dlopen_self_static+set}" = set; then
9172  echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174  	  if test "$cross_compiling" = yes; then :
9175  lt_cv_dlopen_self_static=cross
9176else
9177  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9178  lt_status=$lt_dlunknown
9179  cat > conftest.$ac_ext <<EOF
9180#line 9180 "configure"
9181#include "confdefs.h"
9182
9183#if HAVE_DLFCN_H
9184#include <dlfcn.h>
9185#endif
9186
9187#include <stdio.h>
9188
9189#ifdef RTLD_GLOBAL
9190#  define LT_DLGLOBAL		RTLD_GLOBAL
9191#else
9192#  ifdef DL_GLOBAL
9193#    define LT_DLGLOBAL		DL_GLOBAL
9194#  else
9195#    define LT_DLGLOBAL		0
9196#  endif
9197#endif
9198
9199/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9200   find out it does not work in some platform. */
9201#ifndef LT_DLLAZY_OR_NOW
9202#  ifdef RTLD_LAZY
9203#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9204#  else
9205#    ifdef DL_LAZY
9206#      define LT_DLLAZY_OR_NOW		DL_LAZY
9207#    else
9208#      ifdef RTLD_NOW
9209#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9210#      else
9211#        ifdef DL_NOW
9212#          define LT_DLLAZY_OR_NOW	DL_NOW
9213#        else
9214#          define LT_DLLAZY_OR_NOW	0
9215#        endif
9216#      endif
9217#    endif
9218#  endif
9219#endif
9220
9221#ifdef __cplusplus
9222extern "C" [[noreturn]] void exit (int);
9223#endif
9224
9225void fnord() { int i=42;}
9226int main ()
9227{
9228  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9229  int status = $lt_dlunknown;
9230
9231  if (self)
9232    {
9233      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9234      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9235      /* dlclose (self); */
9236    }
9237  else
9238    puts (dlerror ());
9239
9240    exit (status);
9241}
9242EOF
9243  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244  (eval $ac_link) 2>&5
9245  ac_status=$?
9246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9248    (./conftest; exit; ) >&5 2>/dev/null
9249    lt_status=$?
9250    case x$lt_status in
9251      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9252      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9253      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9254    esac
9255  else :
9256    # compilation failed
9257    lt_cv_dlopen_self_static=no
9258  fi
9259fi
9260rm -fr conftest*
9261
9262
9263fi
9264echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9265echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9266    fi
9267
9268    CPPFLAGS="$save_CPPFLAGS"
9269    LDFLAGS="$save_LDFLAGS"
9270    LIBS="$save_LIBS"
9271    ;;
9272  esac
9273
9274  case $lt_cv_dlopen_self in
9275  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9276  *) enable_dlopen_self=unknown ;;
9277  esac
9278
9279  case $lt_cv_dlopen_self_static in
9280  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9281  *) enable_dlopen_self_static=unknown ;;
9282  esac
9283fi
9284
9285
9286# Report which library types will actually be built
9287echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9288echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9289echo "$as_me:$LINENO: result: $can_build_shared" >&5
9290echo "${ECHO_T}$can_build_shared" >&6
9291
9292echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9293echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9294test "$can_build_shared" = "no" && enable_shared=no
9295
9296# On AIX, shared libraries and static libraries use the same namespace, and
9297# are all built from PIC.
9298case $host_os in
9299aix3*)
9300  test "$enable_shared" = yes && enable_static=no
9301  if test -n "$RANLIB"; then
9302    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9303    postinstall_cmds='$RANLIB $lib'
9304  fi
9305  ;;
9306
9307aix4* | aix5*)
9308  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9309    test "$enable_shared" = yes && enable_static=no
9310  fi
9311    ;;
9312esac
9313echo "$as_me:$LINENO: result: $enable_shared" >&5
9314echo "${ECHO_T}$enable_shared" >&6
9315
9316echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9317echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9318# Make sure either enable_shared or enable_static is yes.
9319test "$enable_shared" = yes || enable_static=yes
9320echo "$as_me:$LINENO: result: $enable_static" >&5
9321echo "${ECHO_T}$enable_static" >&6
9322
9323# The else clause should only fire when bootstrapping the
9324# libtool distribution, otherwise you forgot to ship ltmain.sh
9325# with your package, and you will get complaints that there are
9326# no rules to generate ltmain.sh.
9327if test -f "$ltmain"; then
9328  # See if we are running on zsh, and set the options which allow our commands through
9329  # without removal of \ escapes.
9330  if test -n "${ZSH_VERSION+set}" ; then
9331    setopt NO_GLOB_SUBST
9332  fi
9333  # Now quote all the things that may contain metacharacters while being
9334  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9335  # variables and quote the copies for generation of the libtool script.
9336  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9337    SED SHELL STRIP \
9338    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9339    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9340    deplibs_check_method reload_flag reload_cmds need_locks \
9341    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9342    lt_cv_sys_global_symbol_to_c_name_address \
9343    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9344    old_postinstall_cmds old_postuninstall_cmds \
9345    compiler \
9346    CC \
9347    LD \
9348    lt_prog_compiler_wl \
9349    lt_prog_compiler_pic \
9350    lt_prog_compiler_static \
9351    lt_prog_compiler_no_builtin_flag \
9352    export_dynamic_flag_spec \
9353    thread_safe_flag_spec \
9354    whole_archive_flag_spec \
9355    enable_shared_with_static_runtimes \
9356    old_archive_cmds \
9357    old_archive_from_new_cmds \
9358    predep_objects \
9359    postdep_objects \
9360    predeps \
9361    postdeps \
9362    compiler_lib_search_path \
9363    archive_cmds \
9364    archive_expsym_cmds \
9365    postinstall_cmds \
9366    postuninstall_cmds \
9367    old_archive_from_expsyms_cmds \
9368    allow_undefined_flag \
9369    no_undefined_flag \
9370    export_symbols_cmds \
9371    hardcode_libdir_flag_spec \
9372    hardcode_libdir_flag_spec_ld \
9373    hardcode_libdir_separator \
9374    hardcode_automatic \
9375    module_cmds \
9376    module_expsym_cmds \
9377    lt_cv_prog_compiler_c_o \
9378    exclude_expsyms \
9379    include_expsyms; do
9380
9381    case $var in
9382    old_archive_cmds | \
9383    old_archive_from_new_cmds | \
9384    archive_cmds | \
9385    archive_expsym_cmds | \
9386    module_cmds | \
9387    module_expsym_cmds | \
9388    old_archive_from_expsyms_cmds | \
9389    export_symbols_cmds | \
9390    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9391    postinstall_cmds | postuninstall_cmds | \
9392    old_postinstall_cmds | old_postuninstall_cmds | \
9393    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9394      # Double-quote double-evaled strings.
9395      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9396      ;;
9397    *)
9398      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9399      ;;
9400    esac
9401  done
9402
9403  case $lt_echo in
9404  *'\$0 --fallback-echo"')
9405    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9406    ;;
9407  esac
9408
9409cfgfile="${ofile}T"
9410  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9411  $rm -f "$cfgfile"
9412  { echo "$as_me:$LINENO: creating $ofile" >&5
9413echo "$as_me: creating $ofile" >&6;}
9414
9415  cat <<__EOF__ >> "$cfgfile"
9416#! $SHELL
9417
9418# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9419# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9420# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9421#
9422# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9423# Free Software Foundation, Inc.
9424#
9425# This file is part of GNU Libtool:
9426# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9427#
9428# This program is free software; you can redistribute it and/or modify
9429# it under the terms of the GNU General Public License as published by
9430# the Free Software Foundation; either version 2 of the License, or
9431# (at your option) any later version.
9432#
9433# This program is distributed in the hope that it will be useful, but
9434# WITHOUT ANY WARRANTY; without even the implied warranty of
9435# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9436# General Public License for more details.
9437#
9438# You should have received a copy of the GNU General Public License
9439# along with this program; if not, write to the Free Software
9440# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9441#
9442# As a special exception to the GNU General Public License, if you
9443# distribute this file as part of a program that contains a
9444# configuration script generated by Autoconf, you may include it under
9445# the same distribution terms that you use for the rest of that program.
9446
9447# A sed program that does not truncate output.
9448SED=$lt_SED
9449
9450# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9451Xsed="$SED -e 1s/^X//"
9452
9453# The HP-UX ksh and POSIX shell print the target directory to stdout
9454# if CDPATH is set.
9455(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9456
9457# The names of the tagged configurations supported by this script.
9458available_tags=
9459
9460# ### BEGIN LIBTOOL CONFIG
9461
9462# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9463
9464# Shell to use when invoking shell scripts.
9465SHELL=$lt_SHELL
9466
9467# Whether or not to build shared libraries.
9468build_libtool_libs=$enable_shared
9469
9470# Whether or not to build static libraries.
9471build_old_libs=$enable_static
9472
9473# Whether or not to add -lc for building shared libraries.
9474build_libtool_need_lc=$archive_cmds_need_lc
9475
9476# Whether or not to disallow shared libs when runtime libs are static
9477allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9478
9479# Whether or not to optimize for fast installation.
9480fast_install=$enable_fast_install
9481
9482# The host system.
9483host_alias=$host_alias
9484host=$host
9485host_os=$host_os
9486
9487# The build system.
9488build_alias=$build_alias
9489build=$build
9490build_os=$build_os
9491
9492# An echo program that does not interpret backslashes.
9493echo=$lt_echo
9494
9495# The archiver.
9496AR=$lt_AR
9497AR_FLAGS=$lt_AR_FLAGS
9498
9499# A C compiler.
9500LTCC=$lt_LTCC
9501
9502# LTCC compiler flags.
9503LTCFLAGS=$lt_LTCFLAGS
9504
9505# A language-specific compiler.
9506CC=$lt_compiler
9507
9508# Is the compiler the GNU C compiler?
9509with_gcc=$GCC
9510
9511# An ERE matcher.
9512EGREP=$lt_EGREP
9513
9514# The linker used to build libraries.
9515LD=$lt_LD
9516
9517# Whether we need hard or soft links.
9518LN_S=$lt_LN_S
9519
9520# A BSD-compatible nm program.
9521NM=$lt_NM
9522
9523# A symbol stripping program
9524STRIP=$lt_STRIP
9525
9526# Used to examine libraries when file_magic_cmd begins "file"
9527MAGIC_CMD=$MAGIC_CMD
9528
9529# Used on cygwin: DLL creation program.
9530DLLTOOL="$DLLTOOL"
9531
9532# Used on cygwin: object dumper.
9533OBJDUMP="$OBJDUMP"
9534
9535# Used on cygwin: assembler.
9536AS="$AS"
9537
9538# The name of the directory that contains temporary libtool files.
9539objdir=$objdir
9540
9541# How to create reloadable object files.
9542reload_flag=$lt_reload_flag
9543reload_cmds=$lt_reload_cmds
9544
9545# How to pass a linker flag through the compiler.
9546wl=$lt_lt_prog_compiler_wl
9547
9548# Object file suffix (normally "o").
9549objext="$ac_objext"
9550
9551# Old archive suffix (normally "a").
9552libext="$libext"
9553
9554# Shared library suffix (normally ".so").
9555shrext_cmds='$shrext_cmds'
9556
9557# Executable file suffix (normally "").
9558exeext="$exeext"
9559
9560# Additional compiler flags for building library objects.
9561pic_flag=$lt_lt_prog_compiler_pic
9562pic_mode=$pic_mode
9563
9564# What is the maximum length of a command?
9565max_cmd_len=$lt_cv_sys_max_cmd_len
9566
9567# Does compiler simultaneously support -c and -o options?
9568compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9569
9570# Must we lock files when doing compilation?
9571need_locks=$lt_need_locks
9572
9573# Do we need the lib prefix for modules?
9574need_lib_prefix=$need_lib_prefix
9575
9576# Do we need a version for libraries?
9577need_version=$need_version
9578
9579# Whether dlopen is supported.
9580dlopen_support=$enable_dlopen
9581
9582# Whether dlopen of programs is supported.
9583dlopen_self=$enable_dlopen_self
9584
9585# Whether dlopen of statically linked programs is supported.
9586dlopen_self_static=$enable_dlopen_self_static
9587
9588# Compiler flag to prevent dynamic linking.
9589link_static_flag=$lt_lt_prog_compiler_static
9590
9591# Compiler flag to turn off builtin functions.
9592no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9593
9594# Compiler flag to allow reflexive dlopens.
9595export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9596
9597# Compiler flag to generate shared objects directly from archives.
9598whole_archive_flag_spec=$lt_whole_archive_flag_spec
9599
9600# Compiler flag to generate thread-safe objects.
9601thread_safe_flag_spec=$lt_thread_safe_flag_spec
9602
9603# Library versioning type.
9604version_type=$version_type
9605
9606# Format of library name prefix.
9607libname_spec=$lt_libname_spec
9608
9609# List of archive names.  First name is the real one, the rest are links.
9610# The last name is the one that the linker finds with -lNAME.
9611library_names_spec=$lt_library_names_spec
9612
9613# The coded name of the library, if different from the real name.
9614soname_spec=$lt_soname_spec
9615
9616# Commands used to build and install an old-style archive.
9617RANLIB=$lt_RANLIB
9618old_archive_cmds=$lt_old_archive_cmds
9619old_postinstall_cmds=$lt_old_postinstall_cmds
9620old_postuninstall_cmds=$lt_old_postuninstall_cmds
9621
9622# Create an old-style archive from a shared archive.
9623old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9624
9625# Create a temporary old-style archive to link instead of a shared archive.
9626old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9627
9628# Commands used to build and install a shared archive.
9629archive_cmds=$lt_archive_cmds
9630archive_expsym_cmds=$lt_archive_expsym_cmds
9631postinstall_cmds=$lt_postinstall_cmds
9632postuninstall_cmds=$lt_postuninstall_cmds
9633
9634# Commands used to build a loadable module (assumed same as above if empty)
9635module_cmds=$lt_module_cmds
9636module_expsym_cmds=$lt_module_expsym_cmds
9637
9638# Commands to strip libraries.
9639old_striplib=$lt_old_striplib
9640striplib=$lt_striplib
9641
9642# Dependencies to place before the objects being linked to create a
9643# shared library.
9644predep_objects=$lt_predep_objects
9645
9646# Dependencies to place after the objects being linked to create a
9647# shared library.
9648postdep_objects=$lt_postdep_objects
9649
9650# Dependencies to place before the objects being linked to create a
9651# shared library.
9652predeps=$lt_predeps
9653
9654# Dependencies to place after the objects being linked to create a
9655# shared library.
9656postdeps=$lt_postdeps
9657
9658# The library search path used internally by the compiler when linking
9659# a shared library.
9660compiler_lib_search_path=$lt_compiler_lib_search_path
9661
9662# Method to check whether dependent libraries are shared objects.
9663deplibs_check_method=$lt_deplibs_check_method
9664
9665# Command to use when deplibs_check_method == file_magic.
9666file_magic_cmd=$lt_file_magic_cmd
9667
9668# Flag that allows shared libraries with undefined symbols to be built.
9669allow_undefined_flag=$lt_allow_undefined_flag
9670
9671# Flag that forces no undefined symbols.
9672no_undefined_flag=$lt_no_undefined_flag
9673
9674# Commands used to finish a libtool library installation in a directory.
9675finish_cmds=$lt_finish_cmds
9676
9677# Same as above, but a single script fragment to be evaled but not shown.
9678finish_eval=$lt_finish_eval
9679
9680# Take the output of nm and produce a listing of raw symbols and C names.
9681global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9682
9683# Transform the output of nm in a proper C declaration
9684global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9685
9686# Transform the output of nm in a C name address pair
9687global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9688
9689# This is the shared library runtime path variable.
9690runpath_var=$runpath_var
9691
9692# This is the shared library path variable.
9693shlibpath_var=$shlibpath_var
9694
9695# Is shlibpath searched before the hard-coded library search path?
9696shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9697
9698# How to hardcode a shared library path into an executable.
9699hardcode_action=$hardcode_action
9700
9701# Whether we should hardcode library paths into libraries.
9702hardcode_into_libs=$hardcode_into_libs
9703
9704# Flag to hardcode \$libdir into a binary during linking.
9705# This must work even if \$libdir does not exist.
9706hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9707
9708# If ld is used when linking, flag to hardcode \$libdir into
9709# a binary during linking. This must work even if \$libdir does
9710# not exist.
9711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9712
9713# Whether we need a single -rpath flag with a separated argument.
9714hardcode_libdir_separator=$lt_hardcode_libdir_separator
9715
9716# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9717# resulting binary.
9718hardcode_direct=$hardcode_direct
9719
9720# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9721# resulting binary.
9722hardcode_minus_L=$hardcode_minus_L
9723
9724# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9725# the resulting binary.
9726hardcode_shlibpath_var=$hardcode_shlibpath_var
9727
9728# Set to yes if building a shared library automatically hardcodes DIR into the library
9729# and all subsequent libraries and executables linked against it.
9730hardcode_automatic=$hardcode_automatic
9731
9732# Variables whose values should be saved in libtool wrapper scripts and
9733# restored at relink time.
9734variables_saved_for_relink="$variables_saved_for_relink"
9735
9736# Whether libtool must link a program against all its dependency libraries.
9737link_all_deplibs=$link_all_deplibs
9738
9739# Compile-time system search path for libraries
9740sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9741
9742# Run-time system search path for libraries
9743sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9744
9745# Fix the shell variable \$srcfile for the compiler.
9746fix_srcfile_path="$fix_srcfile_path"
9747
9748# Set to yes if exported symbols are required.
9749always_export_symbols=$always_export_symbols
9750
9751# The commands to list exported symbols.
9752export_symbols_cmds=$lt_export_symbols_cmds
9753
9754# The commands to extract the exported symbol list from a shared archive.
9755extract_expsyms_cmds=$lt_extract_expsyms_cmds
9756
9757# Symbols that should not be listed in the preloaded symbols.
9758exclude_expsyms=$lt_exclude_expsyms
9759
9760# Symbols that must always be exported.
9761include_expsyms=$lt_include_expsyms
9762
9763# ### END LIBTOOL CONFIG
9764
9765__EOF__
9766
9767
9768  case $host_os in
9769  aix3*)
9770    cat <<\EOF >> "$cfgfile"
9771
9772# AIX sometimes has problems with the GCC collect2 program.  For some
9773# reason, if we set the COLLECT_NAMES environment variable, the problems
9774# vanish in a puff of smoke.
9775if test "X${COLLECT_NAMES+set}" != Xset; then
9776  COLLECT_NAMES=
9777  export COLLECT_NAMES
9778fi
9779EOF
9780    ;;
9781  esac
9782
9783  # We use sed instead of cat because bash on DJGPP gets confused if
9784  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9785  # text mode, it properly converts lines to CR/LF.  This bash problem
9786  # is reportedly fixed, but why not run on old versions too?
9787  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9788
9789  mv -f "$cfgfile" "$ofile" || \
9790    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9791  chmod +x "$ofile"
9792
9793else
9794  # If there is no Makefile yet, we rely on a make rule to execute
9795  # `config.status --recheck' to rerun these tests and create the
9796  # libtool script then.
9797  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9798  if test -f "$ltmain_in"; then
9799    test -f Makefile && make "$ltmain"
9800  fi
9801fi
9802
9803
9804ac_ext=c
9805ac_cpp='$CPP $CPPFLAGS'
9806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808ac_compiler_gnu=$ac_cv_c_compiler_gnu
9809
9810CC="$lt_save_CC"
9811
9812
9813# Check whether --with-tags or --without-tags was given.
9814if test "${with_tags+set}" = set; then
9815  withval="$with_tags"
9816  tagnames="$withval"
9817fi;
9818
9819if test -f "$ltmain" && test -n "$tagnames"; then
9820  if test ! -f "${ofile}"; then
9821    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9822echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9823  fi
9824
9825  if test -z "$LTCC"; then
9826    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9827    if test -z "$LTCC"; then
9828      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9829echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9830    else
9831      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9832echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9833    fi
9834  fi
9835  if test -z "$LTCFLAGS"; then
9836    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9837  fi
9838
9839  # Extract list of available tagged configurations in $ofile.
9840  # Note that this assumes the entire list is on one line.
9841  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9842
9843  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9844  for tagname in $tagnames; do
9845    IFS="$lt_save_ifs"
9846    # Check whether tagname contains only valid characters
9847    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9848    "") ;;
9849    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9850echo "$as_me: error: invalid tag name: $tagname" >&2;}
9851   { (exit 1); exit 1; }; }
9852	;;
9853    esac
9854
9855    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9856    then
9857      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9858echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9859   { (exit 1); exit 1; }; }
9860    fi
9861
9862    # Update the list of available tags.
9863    if test -n "$tagname"; then
9864      echo appending configuration tag \"$tagname\" to $ofile
9865
9866      case $tagname in
9867      CXX)
9868	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9869	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9870	    (test "X$CXX" != "Xg++"))) ; then
9871	  ac_ext=cc
9872ac_cpp='$CXXCPP $CPPFLAGS'
9873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9876
9877
9878
9879
9880archive_cmds_need_lc_CXX=no
9881allow_undefined_flag_CXX=
9882always_export_symbols_CXX=no
9883archive_expsym_cmds_CXX=
9884export_dynamic_flag_spec_CXX=
9885hardcode_direct_CXX=no
9886hardcode_libdir_flag_spec_CXX=
9887hardcode_libdir_flag_spec_ld_CXX=
9888hardcode_libdir_separator_CXX=
9889hardcode_minus_L_CXX=no
9890hardcode_shlibpath_var_CXX=unsupported
9891hardcode_automatic_CXX=no
9892module_cmds_CXX=
9893module_expsym_cmds_CXX=
9894link_all_deplibs_CXX=unknown
9895old_archive_cmds_CXX=$old_archive_cmds
9896no_undefined_flag_CXX=
9897whole_archive_flag_spec_CXX=
9898enable_shared_with_static_runtimes_CXX=no
9899
9900# Dependencies to place before and after the object being linked:
9901predep_objects_CXX=
9902postdep_objects_CXX=
9903predeps_CXX=
9904postdeps_CXX=
9905compiler_lib_search_path_CXX=
9906
9907# Source file extension for C++ test sources.
9908ac_ext=cpp
9909
9910# Object file extension for compiled C++ test sources.
9911objext=o
9912objext_CXX=$objext
9913
9914# Code to be used in simple compile tests
9915lt_simple_compile_test_code="int some_variable = 0;\n"
9916
9917# Code to be used in simple link tests
9918lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9919
9920# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9921
9922# If no C compiler was specified, use CC.
9923LTCC=${LTCC-"$CC"}
9924
9925# If no C compiler flags were specified, use CFLAGS.
9926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9927
9928# Allow CC to be a program name with arguments.
9929compiler=$CC
9930
9931
9932# save warnings/boilerplate of simple test code
9933ac_outfile=conftest.$ac_objext
9934printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9935eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9936_lt_compiler_boilerplate=`cat conftest.err`
9937$rm conftest*
9938
9939ac_outfile=conftest.$ac_objext
9940printf "$lt_simple_link_test_code" >conftest.$ac_ext
9941eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9942_lt_linker_boilerplate=`cat conftest.err`
9943$rm conftest*
9944
9945
9946# Allow CC to be a program name with arguments.
9947lt_save_CC=$CC
9948lt_save_LD=$LD
9949lt_save_GCC=$GCC
9950GCC=$GXX
9951lt_save_with_gnu_ld=$with_gnu_ld
9952lt_save_path_LD=$lt_cv_path_LD
9953if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9954  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9955else
9956  $as_unset lt_cv_prog_gnu_ld
9957fi
9958if test -n "${lt_cv_path_LDCXX+set}"; then
9959  lt_cv_path_LD=$lt_cv_path_LDCXX
9960else
9961  $as_unset lt_cv_path_LD
9962fi
9963test -z "${LDCXX+set}" || LD=$LDCXX
9964CC=${CXX-"c++"}
9965compiler=$CC
9966compiler_CXX=$CC
9967for cc_temp in $compiler""; do
9968  case $cc_temp in
9969    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9970    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9971    \-*) ;;
9972    *) break;;
9973  esac
9974done
9975cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9976
9977
9978# We don't want -fno-exception wen compiling C++ code, so set the
9979# no_builtin_flag separately
9980if test "$GXX" = yes; then
9981  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9982else
9983  lt_prog_compiler_no_builtin_flag_CXX=
9984fi
9985
9986if test "$GXX" = yes; then
9987  # Set up default GNU C++ configuration
9988
9989
9990# Check whether --with-gnu-ld or --without-gnu-ld was given.
9991if test "${with_gnu_ld+set}" = set; then
9992  withval="$with_gnu_ld"
9993  test "$withval" = no || with_gnu_ld=yes
9994else
9995  with_gnu_ld=no
9996fi;
9997ac_prog=ld
9998if test "$GCC" = yes; then
9999  # Check if gcc -print-prog-name=ld gives a path.
10000  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10001echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10002  case $host in
10003  *-*-mingw*)
10004    # gcc leaves a trailing carriage return which upsets mingw
10005    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10006  *)
10007    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10008  esac
10009  case $ac_prog in
10010    # Accept absolute paths.
10011    [\\/]* | ?:[\\/]*)
10012      re_direlt='/[^/][^/]*/\.\./'
10013      # Canonicalize the pathname of ld
10014      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10015      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10016	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10017      done
10018      test -z "$LD" && LD="$ac_prog"
10019      ;;
10020  "")
10021    # If it fails, then pretend we aren't using GCC.
10022    ac_prog=ld
10023    ;;
10024  *)
10025    # If it is relative, then search for the first ld in PATH.
10026    with_gnu_ld=unknown
10027    ;;
10028  esac
10029elif test "$with_gnu_ld" = yes; then
10030  echo "$as_me:$LINENO: checking for GNU ld" >&5
10031echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10032else
10033  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10034echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10035fi
10036if test "${lt_cv_path_LD+set}" = set; then
10037  echo $ECHO_N "(cached) $ECHO_C" >&6
10038else
10039  if test -z "$LD"; then
10040  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10041  for ac_dir in $PATH; do
10042    IFS="$lt_save_ifs"
10043    test -z "$ac_dir" && ac_dir=.
10044    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10045      lt_cv_path_LD="$ac_dir/$ac_prog"
10046      # Check to see if the program is GNU ld.  I'd rather use --version,
10047      # but apparently some variants of GNU ld only accept -v.
10048      # Break only if it was the GNU/non-GNU ld that we prefer.
10049      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10050      *GNU* | *'with BFD'*)
10051	test "$with_gnu_ld" != no && break
10052	;;
10053      *)
10054	test "$with_gnu_ld" != yes && break
10055	;;
10056      esac
10057    fi
10058  done
10059  IFS="$lt_save_ifs"
10060else
10061  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10062fi
10063fi
10064
10065LD="$lt_cv_path_LD"
10066if test -n "$LD"; then
10067  echo "$as_me:$LINENO: result: $LD" >&5
10068echo "${ECHO_T}$LD" >&6
10069else
10070  echo "$as_me:$LINENO: result: no" >&5
10071echo "${ECHO_T}no" >&6
10072fi
10073test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10074echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10075   { (exit 1); exit 1; }; }
10076echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10077echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10078if test "${lt_cv_prog_gnu_ld+set}" = set; then
10079  echo $ECHO_N "(cached) $ECHO_C" >&6
10080else
10081  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10082case `$LD -v 2>&1 </dev/null` in
10083*GNU* | *'with BFD'*)
10084  lt_cv_prog_gnu_ld=yes
10085  ;;
10086*)
10087  lt_cv_prog_gnu_ld=no
10088  ;;
10089esac
10090fi
10091echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10092echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10093with_gnu_ld=$lt_cv_prog_gnu_ld
10094
10095
10096
10097  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10098  # archiving commands below assume that GNU ld is being used.
10099  if test "$with_gnu_ld" = yes; then
10100    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101    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'
10102
10103    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10104    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10105
10106    # If archive_cmds runs LD, not CC, wlarc should be empty
10107    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10108    #     investigate it a little bit more. (MM)
10109    wlarc='${wl}'
10110
10111    # ancient GNU ld didn't support --whole-archive et. al.
10112    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10113	grep 'no-whole-archive' > /dev/null; then
10114      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10115    else
10116      whole_archive_flag_spec_CXX=
10117    fi
10118  else
10119    with_gnu_ld=no
10120    wlarc=
10121
10122    # A generic and very simple default shared library creation
10123    # command for GNU C++ for the case where it uses the native
10124    # linker, instead of GNU ld.  If possible, this setting should
10125    # overridden to take advantage of the native linker features on
10126    # the platform it is being used on.
10127    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10128  fi
10129
10130  # Commands to make compiler produce verbose output that lists
10131  # what "hidden" libraries, object files and flags are used when
10132  # linking a shared library.
10133  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10134
10135else
10136  GXX=no
10137  with_gnu_ld=no
10138  wlarc=
10139fi
10140
10141# PORTME: fill in a description of your system's C++ link characteristics
10142echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10144ld_shlibs_CXX=yes
10145case $host_os in
10146  aix3*)
10147    # FIXME: insert proper C++ library support
10148    ld_shlibs_CXX=no
10149    ;;
10150  aix4* | aix5*)
10151    if test "$host_cpu" = ia64; then
10152      # On IA64, the linker does run time linking by default, so we don't
10153      # have to do anything special.
10154      aix_use_runtimelinking=no
10155      exp_sym_flag='-Bexport'
10156      no_entry_flag=""
10157    else
10158      aix_use_runtimelinking=no
10159
10160      # Test if we are trying to use run time linking or normal
10161      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10162      # need to do runtime linking.
10163      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10164	for ld_flag in $LDFLAGS; do
10165	  case $ld_flag in
10166	  *-brtl*)
10167	    aix_use_runtimelinking=yes
10168	    break
10169	    ;;
10170	  esac
10171	done
10172	;;
10173      esac
10174
10175      exp_sym_flag='-bexport'
10176      no_entry_flag='-bnoentry'
10177    fi
10178
10179    # When large executables or shared objects are built, AIX ld can
10180    # have problems creating the table of contents.  If linking a library
10181    # or program results in "error TOC overflow" add -mminimal-toc to
10182    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10183    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10184
10185    archive_cmds_CXX=''
10186    hardcode_direct_CXX=yes
10187    hardcode_libdir_separator_CXX=':'
10188    link_all_deplibs_CXX=yes
10189
10190    if test "$GXX" = yes; then
10191      case $host_os in aix4.[012]|aix4.[012].*)
10192      # We only want to do this on AIX 4.2 and lower, the check
10193      # below for broken collect2 doesn't work under 4.3+
10194	collect2name=`${CC} -print-prog-name=collect2`
10195	if test -f "$collect2name" && \
10196	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10197	then
10198	  # We have reworked collect2
10199	  hardcode_direct_CXX=yes
10200	else
10201	  # We have old collect2
10202	  hardcode_direct_CXX=unsupported
10203	  # It fails to find uninstalled libraries when the uninstalled
10204	  # path is not listed in the libpath.  Setting hardcode_minus_L
10205	  # to unsupported forces relinking
10206	  hardcode_minus_L_CXX=yes
10207	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10208	  hardcode_libdir_separator_CXX=
10209	fi
10210	;;
10211      esac
10212      shared_flag='-shared'
10213      if test "$aix_use_runtimelinking" = yes; then
10214	shared_flag="$shared_flag "'${wl}-G'
10215      fi
10216    else
10217      # not using gcc
10218      if test "$host_cpu" = ia64; then
10219	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10220	# chokes on -Wl,-G. The following line is correct:
10221	shared_flag='-G'
10222      else
10223	if test "$aix_use_runtimelinking" = yes; then
10224	  shared_flag='${wl}-G'
10225	else
10226	  shared_flag='${wl}-bM:SRE'
10227	fi
10228      fi
10229    fi
10230
10231    # It seems that -bexpall does not export symbols beginning with
10232    # underscore (_), so it is better to generate a list of symbols to export.
10233    always_export_symbols_CXX=yes
10234    if test "$aix_use_runtimelinking" = yes; then
10235      # Warning - without using the other runtime loading flags (-brtl),
10236      # -berok will link without error, but may produce a broken library.
10237      allow_undefined_flag_CXX='-berok'
10238      # Determine the default libpath from the value encoded in an empty executable.
10239      cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h.  */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h.  */
10245
10246int
10247main ()
10248{
10249
10250  ;
10251  return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext conftest$ac_exeext
10255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256  (eval $ac_link) 2>conftest.er1
10257  ac_status=$?
10258  grep -v '^ *+' conftest.er1 >conftest.err
10259  rm -f conftest.er1
10260  cat conftest.err >&5
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); } &&
10263	 { ac_try='test -z "$ac_cxx_werror_flag"
10264			 || test ! -s conftest.err'
10265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266  (eval $ac_try) 2>&5
10267  ac_status=$?
10268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269  (exit $ac_status); }; } &&
10270	 { ac_try='test -s conftest$ac_exeext'
10271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272  (eval $ac_try) 2>&5
10273  ac_status=$?
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); }; }; then
10276
10277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10278}'`
10279# Check for a 64-bit object if we didn't find anything.
10280if 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; }
10281}'`; fi
10282else
10283  echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
10286fi
10287rm -f conftest.err conftest.$ac_objext \
10288      conftest$ac_exeext conftest.$ac_ext
10289if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10290
10291      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10292
10293      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"
10294     else
10295      if test "$host_cpu" = ia64; then
10296	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10297	allow_undefined_flag_CXX="-z nodefs"
10298	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"
10299      else
10300	# Determine the default libpath from the value encoded in an empty executable.
10301	cat >conftest.$ac_ext <<_ACEOF
10302/* confdefs.h.  */
10303_ACEOF
10304cat confdefs.h >>conftest.$ac_ext
10305cat >>conftest.$ac_ext <<_ACEOF
10306/* end confdefs.h.  */
10307
10308int
10309main ()
10310{
10311
10312  ;
10313  return 0;
10314}
10315_ACEOF
10316rm -f conftest.$ac_objext conftest$ac_exeext
10317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318  (eval $ac_link) 2>conftest.er1
10319  ac_status=$?
10320  grep -v '^ *+' conftest.er1 >conftest.err
10321  rm -f conftest.er1
10322  cat conftest.err >&5
10323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324  (exit $ac_status); } &&
10325	 { ac_try='test -z "$ac_cxx_werror_flag"
10326			 || test ! -s conftest.err'
10327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328  (eval $ac_try) 2>&5
10329  ac_status=$?
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); }; } &&
10332	 { ac_try='test -s conftest$ac_exeext'
10333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334  (eval $ac_try) 2>&5
10335  ac_status=$?
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); }; }; then
10338
10339aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10340}'`
10341# Check for a 64-bit object if we didn't find anything.
10342if 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; }
10343}'`; fi
10344else
10345  echo "$as_me: failed program was:" >&5
10346sed 's/^/| /' conftest.$ac_ext >&5
10347
10348fi
10349rm -f conftest.err conftest.$ac_objext \
10350      conftest$ac_exeext conftest.$ac_ext
10351if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10352
10353	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10354	# Warning - without using the other run time loading flags,
10355	# -berok will link without error, but may produce a broken library.
10356	no_undefined_flag_CXX=' ${wl}-bernotok'
10357	allow_undefined_flag_CXX=' ${wl}-berok'
10358	# Exported symbols can be pulled into shared objects from archives
10359	whole_archive_flag_spec_CXX='$convenience'
10360	archive_cmds_need_lc_CXX=yes
10361	# This is similar to how AIX traditionally builds its shared libraries.
10362	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'
10363      fi
10364    fi
10365    ;;
10366
10367  beos*)
10368    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10369      allow_undefined_flag_CXX=unsupported
10370      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10371      # support --undefined.  This deserves some investigation.  FIXME
10372      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373    else
10374      ld_shlibs_CXX=no
10375    fi
10376    ;;
10377
10378  chorus*)
10379    case $cc_basename in
10380      *)
10381	# FIXME: insert proper C++ library support
10382	ld_shlibs_CXX=no
10383	;;
10384    esac
10385    ;;
10386
10387  cygwin* | mingw* | pw32*)
10388    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10389    # as there is no search path for DLLs.
10390    hardcode_libdir_flag_spec_CXX='-L$libdir'
10391    allow_undefined_flag_CXX=unsupported
10392    always_export_symbols_CXX=no
10393    enable_shared_with_static_runtimes_CXX=yes
10394
10395    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10396      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'
10397      # If the export-symbols file already is a .def file (1st line
10398      # is EXPORTS), use it as is; otherwise, prepend...
10399      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10400	cp $export_symbols $output_objdir/$soname.def;
10401      else
10402	echo EXPORTS > $output_objdir/$soname.def;
10403	cat $export_symbols >> $output_objdir/$soname.def;
10404      fi~
10405      $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'
10406    else
10407      ld_shlibs_CXX=no
10408    fi
10409  ;;
10410      darwin* | rhapsody*)
10411        case $host_os in
10412        rhapsody* | darwin1.[012])
10413         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10414         ;;
10415       *) # Darwin 1.3 on
10416         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10417           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10418         else
10419           case ${MACOSX_DEPLOYMENT_TARGET} in
10420             10.[012])
10421               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10422               ;;
10423             10.*)
10424               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10425               ;;
10426           esac
10427         fi
10428         ;;
10429        esac
10430      archive_cmds_need_lc_CXX=no
10431      hardcode_direct_CXX=no
10432      hardcode_automatic_CXX=yes
10433      hardcode_shlibpath_var_CXX=unsupported
10434      whole_archive_flag_spec_CXX=''
10435      link_all_deplibs_CXX=yes
10436
10437    if test "$GXX" = yes ; then
10438      lt_int_apple_cc_single_mod=no
10439      output_verbose_link_cmd='echo'
10440      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10441       lt_int_apple_cc_single_mod=yes
10442      fi
10443      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10444       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10445      else
10446          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'
10447        fi
10448        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10449        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10450          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10451            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}'
10452          else
10453            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}'
10454          fi
10455            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}'
10456      else
10457      case $cc_basename in
10458        xlc*)
10459         output_verbose_link_cmd='echo'
10460          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'
10461          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10462          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10463          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}'
10464          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}'
10465          ;;
10466       *)
10467         ld_shlibs_CXX=no
10468          ;;
10469      esac
10470      fi
10471        ;;
10472
10473  dgux*)
10474    case $cc_basename in
10475      ec++*)
10476	# FIXME: insert proper C++ library support
10477	ld_shlibs_CXX=no
10478	;;
10479      ghcx*)
10480	# Green Hills C++ Compiler
10481	# FIXME: insert proper C++ library support
10482	ld_shlibs_CXX=no
10483	;;
10484      *)
10485	# FIXME: insert proper C++ library support
10486	ld_shlibs_CXX=no
10487	;;
10488    esac
10489    ;;
10490  freebsd[12]*)
10491    # C++ shared libraries reported to be fairly broken before switch to ELF
10492    ld_shlibs_CXX=no
10493    ;;
10494  freebsd-elf*)
10495    archive_cmds_need_lc_CXX=no
10496    ;;
10497  freebsd* | kfreebsd*-gnu | dragonfly*)
10498    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10499    # conventions
10500    ld_shlibs_CXX=yes
10501    ;;
10502  gnu*)
10503    ;;
10504  hpux9*)
10505    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10506    hardcode_libdir_separator_CXX=:
10507    export_dynamic_flag_spec_CXX='${wl}-E'
10508    hardcode_direct_CXX=yes
10509    hardcode_minus_L_CXX=yes # Not in the search PATH,
10510				# but as the default
10511				# location of the library.
10512
10513    case $cc_basename in
10514    CC*)
10515      # FIXME: insert proper C++ library support
10516      ld_shlibs_CXX=no
10517      ;;
10518    aCC*)
10519      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'
10520      # Commands to make compiler produce verbose output that lists
10521      # what "hidden" libraries, object files and flags are used when
10522      # linking a shared library.
10523      #
10524      # There doesn't appear to be a way to prevent this compiler from
10525      # explicitly linking system object files so we need to strip them
10526      # from the output so that they don't get included in the library
10527      # dependencies.
10528      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'
10529      ;;
10530    *)
10531      if test "$GXX" = yes; then
10532        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'
10533      else
10534        # FIXME: insert proper C++ library support
10535        ld_shlibs_CXX=no
10536      fi
10537      ;;
10538    esac
10539    ;;
10540  hpux10*|hpux11*)
10541    if test $with_gnu_ld = no; then
10542      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10543      hardcode_libdir_separator_CXX=:
10544
10545      case $host_cpu in
10546      hppa*64*|ia64*)
10547	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10548        ;;
10549      *)
10550	export_dynamic_flag_spec_CXX='${wl}-E'
10551        ;;
10552      esac
10553    fi
10554    case $host_cpu in
10555    hppa*64*|ia64*)
10556      hardcode_direct_CXX=no
10557      hardcode_shlibpath_var_CXX=no
10558      ;;
10559    *)
10560      hardcode_direct_CXX=yes
10561      hardcode_minus_L_CXX=yes # Not in the search PATH,
10562					      # but as the default
10563					      # location of the library.
10564      ;;
10565    esac
10566
10567    case $cc_basename in
10568      CC*)
10569	# FIXME: insert proper C++ library support
10570	ld_shlibs_CXX=no
10571	;;
10572      aCC*)
10573	case $host_cpu in
10574	hppa*64*)
10575	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576	  ;;
10577	ia64*)
10578	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10579	  ;;
10580	*)
10581	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10582	  ;;
10583	esac
10584	# Commands to make compiler produce verbose output that lists
10585	# what "hidden" libraries, object files and flags are used when
10586	# linking a shared library.
10587	#
10588	# There doesn't appear to be a way to prevent this compiler from
10589	# explicitly linking system object files so we need to strip them
10590	# from the output so that they don't get included in the library
10591	# dependencies.
10592	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'
10593	;;
10594      *)
10595	if test "$GXX" = yes; then
10596	  if test $with_gnu_ld = no; then
10597	    case $host_cpu in
10598	    hppa*64*)
10599	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10600	      ;;
10601	    ia64*)
10602	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10603	      ;;
10604	    *)
10605	      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'
10606	      ;;
10607	    esac
10608	  fi
10609	else
10610	  # FIXME: insert proper C++ library support
10611	  ld_shlibs_CXX=no
10612	fi
10613	;;
10614    esac
10615    ;;
10616  interix3*)
10617    hardcode_direct_CXX=no
10618    hardcode_shlibpath_var_CXX=no
10619    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10620    export_dynamic_flag_spec_CXX='${wl}-E'
10621    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10622    # Instead, shared libraries are loaded at an image base (0x10000000 by
10623    # default) and relocated if they conflict, which is a slow very memory
10624    # consuming and fragmenting process.  To avoid this, we pick a random,
10625    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10626    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10627    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'
10628    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'
10629    ;;
10630  irix5* | irix6*)
10631    case $cc_basename in
10632      CC*)
10633	# SGI C++
10634	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'
10635
10636	# Archives containing C++ object files must be created using
10637	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10638	# necessary to make sure instantiated templates are included
10639	# in the archive.
10640	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10641	;;
10642      *)
10643	if test "$GXX" = yes; then
10644	  if test "$with_gnu_ld" = no; then
10645	    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'
10646	  else
10647	    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'
10648	  fi
10649	fi
10650	link_all_deplibs_CXX=yes
10651	;;
10652    esac
10653    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10654    hardcode_libdir_separator_CXX=:
10655    ;;
10656  linux*)
10657    case $cc_basename in
10658      KCC*)
10659	# Kuck and Associates, Inc. (KAI) C++ Compiler
10660
10661	# KCC will only create a shared library if the output file
10662	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10663	# to its proper name (with version) after linking.
10664	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'
10665	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'
10666	# Commands to make compiler produce verbose output that lists
10667	# what "hidden" libraries, object files and flags are used when
10668	# linking a shared library.
10669	#
10670	# There doesn't appear to be a way to prevent this compiler from
10671	# explicitly linking system object files so we need to strip them
10672	# from the output so that they don't get included in the library
10673	# dependencies.
10674	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'
10675
10676	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10677	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10678
10679	# Archives containing C++ object files must be created using
10680	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10681	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10682	;;
10683      icpc*)
10684	# Intel C++
10685	with_gnu_ld=yes
10686	# version 8.0 and above of icpc choke on multiply defined symbols
10687	# if we add $predep_objects and $postdep_objects, however 7.1 and
10688	# earlier do not add the objects themselves.
10689	case `$CC -V 2>&1` in
10690	*"Version 7."*)
10691  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692  	  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'
10693	  ;;
10694	*)  # Version 8.0 or newer
10695	  tmp_idyn=
10696	  case $host_cpu in
10697	    ia64*) tmp_idyn=' -i_dynamic';;
10698	  esac
10699  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10700	  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'
10701	  ;;
10702	esac
10703	archive_cmds_need_lc_CXX=no
10704	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10705	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10707	;;
10708      pgCC*)
10709        # Portland Group C++ compiler
10710	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10711  	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'
10712
10713	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10714	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10715	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'
10716        ;;
10717      cxx*)
10718	# Compaq C++
10719	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10720	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'
10721
10722	runpath_var=LD_RUN_PATH
10723	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10724	hardcode_libdir_separator_CXX=:
10725
10726	# Commands to make compiler produce verbose output that lists
10727	# what "hidden" libraries, object files and flags are used when
10728	# linking a shared library.
10729	#
10730	# There doesn't appear to be a way to prevent this compiler from
10731	# explicitly linking system object files so we need to strip them
10732	# from the output so that they don't get included in the library
10733	# dependencies.
10734	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'
10735	;;
10736    esac
10737    ;;
10738  lynxos*)
10739    # FIXME: insert proper C++ library support
10740    ld_shlibs_CXX=no
10741    ;;
10742  m88k*)
10743    # FIXME: insert proper C++ library support
10744    ld_shlibs_CXX=no
10745    ;;
10746  mvs*)
10747    case $cc_basename in
10748      cxx*)
10749	# FIXME: insert proper C++ library support
10750	ld_shlibs_CXX=no
10751	;;
10752      *)
10753	# FIXME: insert proper C++ library support
10754	ld_shlibs_CXX=no
10755	;;
10756    esac
10757    ;;
10758  netbsd*)
10759    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10760      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10761      wlarc=
10762      hardcode_libdir_flag_spec_CXX='-R$libdir'
10763      hardcode_direct_CXX=yes
10764      hardcode_shlibpath_var_CXX=no
10765    fi
10766    # Workaround some broken pre-1.5 toolchains
10767    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10768    ;;
10769  openbsd2*)
10770    # C++ shared libraries are fairly broken
10771    ld_shlibs_CXX=no
10772    ;;
10773  openbsd*)
10774    hardcode_direct_CXX=yes
10775    hardcode_shlibpath_var_CXX=no
10776    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10777    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10778    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10779      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10780      export_dynamic_flag_spec_CXX='${wl}-E'
10781      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10782    fi
10783    output_verbose_link_cmd='echo'
10784    ;;
10785  osf3*)
10786    case $cc_basename in
10787      KCC*)
10788	# Kuck and Associates, Inc. (KAI) C++ Compiler
10789
10790	# KCC will only create a shared library if the output file
10791	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10792	# to its proper name (with version) after linking.
10793	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'
10794
10795	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10796	hardcode_libdir_separator_CXX=:
10797
10798	# Archives containing C++ object files must be created using
10799	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10800	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10801
10802	;;
10803      RCC*)
10804	# Rational C++ 2.4.1
10805	# FIXME: insert proper C++ library support
10806	ld_shlibs_CXX=no
10807	;;
10808      cxx*)
10809	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10810	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'
10811
10812	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10813	hardcode_libdir_separator_CXX=:
10814
10815	# Commands to make compiler produce verbose output that lists
10816	# what "hidden" libraries, object files and flags are used when
10817	# linking a shared library.
10818	#
10819	# There doesn't appear to be a way to prevent this compiler from
10820	# explicitly linking system object files so we need to strip them
10821	# from the output so that they don't get included in the library
10822	# dependencies.
10823	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'
10824	;;
10825      *)
10826	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10827	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10828	  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'
10829
10830	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10831	  hardcode_libdir_separator_CXX=:
10832
10833	  # Commands to make compiler produce verbose output that lists
10834	  # what "hidden" libraries, object files and flags are used when
10835	  # linking a shared library.
10836	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10837
10838	else
10839	  # FIXME: insert proper C++ library support
10840	  ld_shlibs_CXX=no
10841	fi
10842	;;
10843    esac
10844    ;;
10845  osf4* | osf5*)
10846    case $cc_basename in
10847      KCC*)
10848	# Kuck and Associates, Inc. (KAI) C++ Compiler
10849
10850	# KCC will only create a shared library if the output file
10851	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10852	# to its proper name (with version) after linking.
10853	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'
10854
10855	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10856	hardcode_libdir_separator_CXX=:
10857
10858	# Archives containing C++ object files must be created using
10859	# the KAI C++ compiler.
10860	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10861	;;
10862      RCC*)
10863	# Rational C++ 2.4.1
10864	# FIXME: insert proper C++ library support
10865	ld_shlibs_CXX=no
10866	;;
10867      cxx*)
10868	allow_undefined_flag_CXX=' -expect_unresolved \*'
10869	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'
10870	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10871	  echo "-hidden">> $lib.exp~
10872	  $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~
10873	  $rm $lib.exp'
10874
10875	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10876	hardcode_libdir_separator_CXX=:
10877
10878	# Commands to make compiler produce verbose output that lists
10879	# what "hidden" libraries, object files and flags are used when
10880	# linking a shared library.
10881	#
10882	# There doesn't appear to be a way to prevent this compiler from
10883	# explicitly linking system object files so we need to strip them
10884	# from the output so that they don't get included in the library
10885	# dependencies.
10886	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'
10887	;;
10888      *)
10889	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10890	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10891	 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'
10892
10893	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10894	  hardcode_libdir_separator_CXX=:
10895
10896	  # Commands to make compiler produce verbose output that lists
10897	  # what "hidden" libraries, object files and flags are used when
10898	  # linking a shared library.
10899	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10900
10901	else
10902	  # FIXME: insert proper C++ library support
10903	  ld_shlibs_CXX=no
10904	fi
10905	;;
10906    esac
10907    ;;
10908  psos*)
10909    # FIXME: insert proper C++ library support
10910    ld_shlibs_CXX=no
10911    ;;
10912  sunos4*)
10913    case $cc_basename in
10914      CC*)
10915	# Sun C++ 4.x
10916	# FIXME: insert proper C++ library support
10917	ld_shlibs_CXX=no
10918	;;
10919      lcc*)
10920	# Lucid
10921	# FIXME: insert proper C++ library support
10922	ld_shlibs_CXX=no
10923	;;
10924      *)
10925	# FIXME: insert proper C++ library support
10926	ld_shlibs_CXX=no
10927	;;
10928    esac
10929    ;;
10930  solaris*)
10931    case $cc_basename in
10932      CC*)
10933	# Sun C++ 4.2, 5.x and Centerline C++
10934        archive_cmds_need_lc_CXX=yes
10935	no_undefined_flag_CXX=' -zdefs'
10936	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10937	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10938	$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'
10939
10940	hardcode_libdir_flag_spec_CXX='-R$libdir'
10941	hardcode_shlibpath_var_CXX=no
10942	case $host_os in
10943	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10944	  *)
10945	    # The C++ compiler is used as linker so we must use $wl
10946	    # flag to pass the commands to the underlying system
10947	    # linker. We must also pass each convience library through
10948	    # to the system linker between allextract/defaultextract.
10949	    # The C++ compiler will combine linker options so we
10950	    # cannot just pass the convience library names through
10951	    # without $wl.
10952	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10953	    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'
10954	    ;;
10955	esac
10956	link_all_deplibs_CXX=yes
10957
10958	output_verbose_link_cmd='echo'
10959
10960	# Archives containing C++ object files must be created using
10961	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10962	# necessary to make sure instantiated templates are included
10963	# in the archive.
10964	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10965	;;
10966      gcx*)
10967	# Green Hills C++ Compiler
10968	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10969
10970	# The C++ compiler must be used to create the archive.
10971	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10972	;;
10973      *)
10974	# GNU C++ compiler with Solaris linker
10975	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10976	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10977	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10978	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10979	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10980		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10981
10982	    # Commands to make compiler produce verbose output that lists
10983	    # what "hidden" libraries, object files and flags are used when
10984	    # linking a shared library.
10985	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10986	  else
10987	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10988	    # platform.
10989	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10990	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10991		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10992
10993	    # Commands to make compiler produce verbose output that lists
10994	    # what "hidden" libraries, object files and flags are used when
10995	    # linking a shared library.
10996	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10997	  fi
10998
10999	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11000	fi
11001	;;
11002    esac
11003    ;;
11004  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11005    no_undefined_flag_CXX='${wl}-z,text'
11006    archive_cmds_need_lc_CXX=no
11007    hardcode_shlibpath_var_CXX=no
11008    runpath_var='LD_RUN_PATH'
11009
11010    case $cc_basename in
11011      CC*)
11012	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014	;;
11015      *)
11016	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018	;;
11019    esac
11020    ;;
11021  sysv5* | sco3.2v5* | sco5v6*)
11022    # Note: We can NOT use -z defs as we might desire, because we do not
11023    # link with -lc, and that would cause any symbols used from libc to
11024    # always be unresolved, which means just about no library would
11025    # ever link correctly.  If we're not using GNU ld we use -z text
11026    # though, which does catch some bad symbols but isn't as heavy-handed
11027    # as -z defs.
11028    # For security reasons, it is highly recommended that you always
11029    # use absolute paths for naming shared libraries, and exclude the
11030    # DT_RUNPATH tag from executables and libraries.  But doing so
11031    # requires that you compile everything twice, which is a pain.
11032    # So that behaviour is only enabled if SCOABSPATH is set to a
11033    # non-empty value in the environment.  Most likely only useful for
11034    # creating official distributions of packages.
11035    # This is a hack until libtool officially supports absolute path
11036    # names for shared libraries.
11037    no_undefined_flag_CXX='${wl}-z,text'
11038    allow_undefined_flag_CXX='${wl}-z,nodefs'
11039    archive_cmds_need_lc_CXX=no
11040    hardcode_shlibpath_var_CXX=no
11041    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11042    hardcode_libdir_separator_CXX=':'
11043    link_all_deplibs_CXX=yes
11044    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11045    runpath_var='LD_RUN_PATH'
11046
11047    case $cc_basename in
11048      CC*)
11049	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11050	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051	;;
11052      *)
11053	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11054	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055	;;
11056    esac
11057    ;;
11058  tandem*)
11059    case $cc_basename in
11060      NCC*)
11061	# NonStop-UX NCC 3.20
11062	# FIXME: insert proper C++ library support
11063	ld_shlibs_CXX=no
11064	;;
11065      *)
11066	# FIXME: insert proper C++ library support
11067	ld_shlibs_CXX=no
11068	;;
11069    esac
11070    ;;
11071  vxworks*)
11072    # FIXME: insert proper C++ library support
11073    ld_shlibs_CXX=no
11074    ;;
11075  *)
11076    # FIXME: insert proper C++ library support
11077    ld_shlibs_CXX=no
11078    ;;
11079esac
11080echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11081echo "${ECHO_T}$ld_shlibs_CXX" >&6
11082test "$ld_shlibs_CXX" = no && can_build_shared=no
11083
11084GCC_CXX="$GXX"
11085LD_CXX="$LD"
11086
11087
11088cat > conftest.$ac_ext <<EOF
11089class Foo
11090{
11091public:
11092  Foo (void) { a = 0; }
11093private:
11094  int a;
11095};
11096EOF
11097
11098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099  (eval $ac_compile) 2>&5
11100  ac_status=$?
11101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102  (exit $ac_status); }; then
11103  # Parse the compiler output and extract the necessary
11104  # objects, libraries and library flags.
11105
11106  # Sentinel used to keep track of whether or not we are before
11107  # the conftest object file.
11108  pre_test_object_deps_done=no
11109
11110  # The `*' in the case matches for architectures that use `case' in
11111  # $output_verbose_cmd can trigger glob expansion during the loop
11112  # eval without this substitution.
11113  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11114
11115  for p in `eval $output_verbose_link_cmd`; do
11116    case $p in
11117
11118    -L* | -R* | -l*)
11119       # Some compilers place space between "-{L,R}" and the path.
11120       # Remove the space.
11121       if test $p = "-L" \
11122	  || test $p = "-R"; then
11123	 prev=$p
11124	 continue
11125       else
11126	 prev=
11127       fi
11128
11129       if test "$pre_test_object_deps_done" = no; then
11130	 case $p in
11131	 -L* | -R*)
11132	   # Internal compiler library paths should come after those
11133	   # provided the user.  The postdeps already come after the
11134	   # user supplied libs so there is no need to process them.
11135	   if test -z "$compiler_lib_search_path_CXX"; then
11136	     compiler_lib_search_path_CXX="${prev}${p}"
11137	   else
11138	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11139	   fi
11140	   ;;
11141	 # The "-l" case would never come before the object being
11142	 # linked, so don't bother handling this case.
11143	 esac
11144       else
11145	 if test -z "$postdeps_CXX"; then
11146	   postdeps_CXX="${prev}${p}"
11147	 else
11148	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11149	 fi
11150       fi
11151       ;;
11152
11153    *.$objext)
11154       # This assumes that the test object file only shows up
11155       # once in the compiler output.
11156       if test "$p" = "conftest.$objext"; then
11157	 pre_test_object_deps_done=yes
11158	 continue
11159       fi
11160
11161       if test "$pre_test_object_deps_done" = no; then
11162	 if test -z "$predep_objects_CXX"; then
11163	   predep_objects_CXX="$p"
11164	 else
11165	   predep_objects_CXX="$predep_objects_CXX $p"
11166	 fi
11167       else
11168	 if test -z "$postdep_objects_CXX"; then
11169	   postdep_objects_CXX="$p"
11170	 else
11171	   postdep_objects_CXX="$postdep_objects_CXX $p"
11172	 fi
11173       fi
11174       ;;
11175
11176    *) ;; # Ignore the rest.
11177
11178    esac
11179  done
11180
11181  # Clean up.
11182  rm -f a.out a.exe
11183else
11184  echo "libtool.m4: error: problem compiling CXX test program"
11185fi
11186
11187$rm -f confest.$objext
11188
11189# PORTME: override above test on systems where it is broken
11190case $host_os in
11191interix3*)
11192  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11193  # hack all around it, let's just trust "g++" to DTRT.
11194  predep_objects_CXX=
11195  postdep_objects_CXX=
11196  postdeps_CXX=
11197  ;;
11198
11199solaris*)
11200  case $cc_basename in
11201  CC*)
11202    # Adding this requires a known-good setup of shared libraries for
11203    # Sun compiler versions before 5.6, else PIC objects from an old
11204    # archive will be linked into the output, leading to subtle bugs.
11205    postdeps_CXX='-lCstd -lCrun'
11206    ;;
11207  esac
11208  ;;
11209esac
11210
11211
11212case " $postdeps_CXX " in
11213*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11214esac
11215
11216lt_prog_compiler_wl_CXX=
11217lt_prog_compiler_pic_CXX=
11218lt_prog_compiler_static_CXX=
11219
11220echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11221echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11222
11223  # C++ specific cases for pic, static, wl, etc.
11224  if test "$GXX" = yes; then
11225    lt_prog_compiler_wl_CXX='-Wl,'
11226    lt_prog_compiler_static_CXX='-static'
11227
11228    case $host_os in
11229    aix*)
11230      # All AIX code is PIC.
11231      if test "$host_cpu" = ia64; then
11232	# AIX 5 now supports IA64 processor
11233	lt_prog_compiler_static_CXX='-Bstatic'
11234      fi
11235      ;;
11236    amigaos*)
11237      # FIXME: we need at least 68020 code to build shared libraries, but
11238      # adding the `-m68020' flag to GCC prevents building anything better,
11239      # like `-m68040'.
11240      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11241      ;;
11242    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11243      # PIC is the default for these OSes.
11244      ;;
11245    mingw* | os2* | pw32*)
11246      # This hack is so that the source file can tell whether it is being
11247      # built for inclusion in a dll (and should export symbols for example).
11248      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11249      ;;
11250    darwin* | rhapsody*)
11251      # PIC is the default on this platform
11252      # Common symbols not allowed in MH_DYLIB files
11253      lt_prog_compiler_pic_CXX='-fno-common'
11254      ;;
11255    *djgpp*)
11256      # DJGPP does not support shared libraries at all
11257      lt_prog_compiler_pic_CXX=
11258      ;;
11259    interix3*)
11260      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11261      # Instead, we relocate shared libraries at runtime.
11262      ;;
11263    sysv4*MP*)
11264      if test -d /usr/nec; then
11265	lt_prog_compiler_pic_CXX=-Kconform_pic
11266      fi
11267      ;;
11268    hpux*)
11269      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11270      # not for PA HP-UX.
11271      case $host_cpu in
11272      hppa*64*|ia64*)
11273	;;
11274      *)
11275	lt_prog_compiler_pic_CXX='-fPIC'
11276	;;
11277      esac
11278      ;;
11279    *)
11280      lt_prog_compiler_pic_CXX='-fPIC'
11281      ;;
11282    esac
11283  else
11284    case $host_os in
11285      aix4* | aix5*)
11286	# All AIX code is PIC.
11287	if test "$host_cpu" = ia64; then
11288	  # AIX 5 now supports IA64 processor
11289	  lt_prog_compiler_static_CXX='-Bstatic'
11290	else
11291	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11292	fi
11293	;;
11294      chorus*)
11295	case $cc_basename in
11296	cxch68*)
11297	  # Green Hills C++ Compiler
11298	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11299	  ;;
11300	esac
11301	;;
11302       darwin*)
11303         # PIC is the default on this platform
11304         # Common symbols not allowed in MH_DYLIB files
11305         case $cc_basename in
11306           xlc*)
11307           lt_prog_compiler_pic_CXX='-qnocommon'
11308           lt_prog_compiler_wl_CXX='-Wl,'
11309           ;;
11310         esac
11311       ;;
11312      dgux*)
11313	case $cc_basename in
11314	  ec++*)
11315	    lt_prog_compiler_pic_CXX='-KPIC'
11316	    ;;
11317	  ghcx*)
11318	    # Green Hills C++ Compiler
11319	    lt_prog_compiler_pic_CXX='-pic'
11320	    ;;
11321	  *)
11322	    ;;
11323	esac
11324	;;
11325      freebsd* | kfreebsd*-gnu | dragonfly*)
11326	# FreeBSD uses GNU C++
11327	;;
11328      hpux9* | hpux10* | hpux11*)
11329	case $cc_basename in
11330	  CC*)
11331	    lt_prog_compiler_wl_CXX='-Wl,'
11332	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11333	    if test "$host_cpu" != ia64; then
11334	      lt_prog_compiler_pic_CXX='+Z'
11335	    fi
11336	    ;;
11337	  aCC*)
11338	    lt_prog_compiler_wl_CXX='-Wl,'
11339	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11340	    case $host_cpu in
11341	    hppa*64*|ia64*)
11342	      # +Z the default
11343	      ;;
11344	    *)
11345	      lt_prog_compiler_pic_CXX='+Z'
11346	      ;;
11347	    esac
11348	    ;;
11349	  *)
11350	    ;;
11351	esac
11352	;;
11353      interix*)
11354	# This is c89, which is MS Visual C++ (no shared libs)
11355	# Anyone wants to do a port?
11356	;;
11357      irix5* | irix6* | nonstopux*)
11358	case $cc_basename in
11359	  CC*)
11360	    lt_prog_compiler_wl_CXX='-Wl,'
11361	    lt_prog_compiler_static_CXX='-non_shared'
11362	    # CC pic flag -KPIC is the default.
11363	    ;;
11364	  *)
11365	    ;;
11366	esac
11367	;;
11368      linux*)
11369	case $cc_basename in
11370	  KCC*)
11371	    # KAI C++ Compiler
11372	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11373	    lt_prog_compiler_pic_CXX='-fPIC'
11374	    ;;
11375	  icpc* | ecpc*)
11376	    # Intel C++
11377	    lt_prog_compiler_wl_CXX='-Wl,'
11378	    lt_prog_compiler_pic_CXX='-KPIC'
11379	    lt_prog_compiler_static_CXX='-static'
11380	    ;;
11381	  pgCC*)
11382	    # Portland Group C++ compiler.
11383	    lt_prog_compiler_wl_CXX='-Wl,'
11384	    lt_prog_compiler_pic_CXX='-fpic'
11385	    lt_prog_compiler_static_CXX='-Bstatic'
11386	    ;;
11387	  cxx*)
11388	    # Compaq C++
11389	    # Make sure the PIC flag is empty.  It appears that all Alpha
11390	    # Linux and Compaq Tru64 Unix objects are PIC.
11391	    lt_prog_compiler_pic_CXX=
11392	    lt_prog_compiler_static_CXX='-non_shared'
11393	    ;;
11394	  *)
11395	    ;;
11396	esac
11397	;;
11398      lynxos*)
11399	;;
11400      m88k*)
11401	;;
11402      mvs*)
11403	case $cc_basename in
11404	  cxx*)
11405	    lt_prog_compiler_pic_CXX='-W c,exportall'
11406	    ;;
11407	  *)
11408	    ;;
11409	esac
11410	;;
11411      netbsd*)
11412	;;
11413      osf3* | osf4* | osf5*)
11414	case $cc_basename in
11415	  KCC*)
11416	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11417	    ;;
11418	  RCC*)
11419	    # Rational C++ 2.4.1
11420	    lt_prog_compiler_pic_CXX='-pic'
11421	    ;;
11422	  cxx*)
11423	    # Digital/Compaq C++
11424	    lt_prog_compiler_wl_CXX='-Wl,'
11425	    # Make sure the PIC flag is empty.  It appears that all Alpha
11426	    # Linux and Compaq Tru64 Unix objects are PIC.
11427	    lt_prog_compiler_pic_CXX=
11428	    lt_prog_compiler_static_CXX='-non_shared'
11429	    ;;
11430	  *)
11431	    ;;
11432	esac
11433	;;
11434      psos*)
11435	;;
11436      solaris*)
11437	case $cc_basename in
11438	  CC*)
11439	    # Sun C++ 4.2, 5.x and Centerline C++
11440	    lt_prog_compiler_pic_CXX='-KPIC'
11441	    lt_prog_compiler_static_CXX='-Bstatic'
11442	    lt_prog_compiler_wl_CXX='-Qoption ld '
11443	    ;;
11444	  gcx*)
11445	    # Green Hills C++ Compiler
11446	    lt_prog_compiler_pic_CXX='-PIC'
11447	    ;;
11448	  *)
11449	    ;;
11450	esac
11451	;;
11452      sunos4*)
11453	case $cc_basename in
11454	  CC*)
11455	    # Sun C++ 4.x
11456	    lt_prog_compiler_pic_CXX='-pic'
11457	    lt_prog_compiler_static_CXX='-Bstatic'
11458	    ;;
11459	  lcc*)
11460	    # Lucid
11461	    lt_prog_compiler_pic_CXX='-pic'
11462	    ;;
11463	  *)
11464	    ;;
11465	esac
11466	;;
11467      tandem*)
11468	case $cc_basename in
11469	  NCC*)
11470	    # NonStop-UX NCC 3.20
11471	    lt_prog_compiler_pic_CXX='-KPIC'
11472	    ;;
11473	  *)
11474	    ;;
11475	esac
11476	;;
11477      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11478	case $cc_basename in
11479	  CC*)
11480	    lt_prog_compiler_wl_CXX='-Wl,'
11481	    lt_prog_compiler_pic_CXX='-KPIC'
11482	    lt_prog_compiler_static_CXX='-Bstatic'
11483	    ;;
11484	esac
11485	;;
11486      vxworks*)
11487	;;
11488      *)
11489	lt_prog_compiler_can_build_shared_CXX=no
11490	;;
11491    esac
11492  fi
11493
11494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11495echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11496
11497#
11498# Check to make sure the PIC flag actually works.
11499#
11500if test -n "$lt_prog_compiler_pic_CXX"; then
11501
11502echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11503echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11504if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11505  echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507  lt_prog_compiler_pic_works_CXX=no
11508  ac_outfile=conftest.$ac_objext
11509   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11510   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11511   # Insert the option either (1) after the last *FLAGS variable, or
11512   # (2) before a word containing "conftest.", or (3) at the end.
11513   # Note that $ac_compile itself does not contain backslashes and begins
11514   # with a dollar sign (not a hyphen), so the echo should work correctly.
11515   # The option is referenced via a variable to avoid confusing sed.
11516   lt_compile=`echo "$ac_compile" | $SED \
11517   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11519   -e 's:$: $lt_compiler_flag:'`
11520   (eval echo "\"\$as_me:11520: $lt_compile\"" >&5)
11521   (eval "$lt_compile" 2>conftest.err)
11522   ac_status=$?
11523   cat conftest.err >&5
11524   echo "$as_me:11524: \$? = $ac_status" >&5
11525   if (exit $ac_status) && test -s "$ac_outfile"; then
11526     # The compiler can only warn and ignore the option if not recognized
11527     # So say no if there are warnings other than the usual output.
11528     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11529     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11530     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11531       lt_prog_compiler_pic_works_CXX=yes
11532     fi
11533   fi
11534   $rm conftest*
11535
11536fi
11537echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11538echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11539
11540if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11541    case $lt_prog_compiler_pic_CXX in
11542     "" | " "*) ;;
11543     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11544     esac
11545else
11546    lt_prog_compiler_pic_CXX=
11547     lt_prog_compiler_can_build_shared_CXX=no
11548fi
11549
11550fi
11551case $host_os in
11552  # For platforms which do not support PIC, -DPIC is meaningless:
11553  *djgpp*)
11554    lt_prog_compiler_pic_CXX=
11555    ;;
11556  *)
11557    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11558    ;;
11559esac
11560
11561#
11562# Check to make sure the static flag actually works.
11563#
11564wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11565echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11566echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11567if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11568  echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570  lt_prog_compiler_static_works_CXX=no
11571   save_LDFLAGS="$LDFLAGS"
11572   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11573   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11574   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11575     # The linker can only warn and ignore the option if not recognized
11576     # So say no if there are warnings
11577     if test -s conftest.err; then
11578       # Append any errors to the config.log.
11579       cat conftest.err 1>&5
11580       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11581       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11582       if diff conftest.exp conftest.er2 >/dev/null; then
11583         lt_prog_compiler_static_works_CXX=yes
11584       fi
11585     else
11586       lt_prog_compiler_static_works_CXX=yes
11587     fi
11588   fi
11589   $rm conftest*
11590   LDFLAGS="$save_LDFLAGS"
11591
11592fi
11593echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11594echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11595
11596if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11597    :
11598else
11599    lt_prog_compiler_static_CXX=
11600fi
11601
11602
11603echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11604echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11605if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11606  echo $ECHO_N "(cached) $ECHO_C" >&6
11607else
11608  lt_cv_prog_compiler_c_o_CXX=no
11609   $rm -r conftest 2>/dev/null
11610   mkdir conftest
11611   cd conftest
11612   mkdir out
11613   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11614
11615   lt_compiler_flag="-o out/conftest2.$ac_objext"
11616   # Insert the option either (1) after the last *FLAGS variable, or
11617   # (2) before a word containing "conftest.", or (3) at the end.
11618   # Note that $ac_compile itself does not contain backslashes and begins
11619   # with a dollar sign (not a hyphen), so the echo should work correctly.
11620   lt_compile=`echo "$ac_compile" | $SED \
11621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623   -e 's:$: $lt_compiler_flag:'`
11624   (eval echo "\"\$as_me:11624: $lt_compile\"" >&5)
11625   (eval "$lt_compile" 2>out/conftest.err)
11626   ac_status=$?
11627   cat out/conftest.err >&5
11628   echo "$as_me:11628: \$? = $ac_status" >&5
11629   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11630   then
11631     # The compiler can only warn and ignore the option if not recognized
11632     # So say no if there are warnings
11633     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11634     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11635     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11636       lt_cv_prog_compiler_c_o_CXX=yes
11637     fi
11638   fi
11639   chmod u+w . 2>&5
11640   $rm conftest*
11641   # SGI C++ compiler will create directory out/ii_files/ for
11642   # template instantiation
11643   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11644   $rm out/* && rmdir out
11645   cd ..
11646   rmdir conftest
11647   $rm conftest*
11648
11649fi
11650echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11651echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11652
11653
11654hard_links="nottested"
11655if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11656  # do not overwrite the value of need_locks provided by the user
11657  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11658echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11659  hard_links=yes
11660  $rm conftest*
11661  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11662  touch conftest.a
11663  ln conftest.a conftest.b 2>&5 || hard_links=no
11664  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665  echo "$as_me:$LINENO: result: $hard_links" >&5
11666echo "${ECHO_T}$hard_links" >&6
11667  if test "$hard_links" = no; then
11668    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11669echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11670    need_locks=warn
11671  fi
11672else
11673  need_locks=no
11674fi
11675
11676echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11677echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11678
11679  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11680  case $host_os in
11681  aix4* | aix5*)
11682    # If we're using GNU nm, then we don't want the "-C" option.
11683    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11684    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11685      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11686    else
11687      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11688    fi
11689    ;;
11690  pw32*)
11691    export_symbols_cmds_CXX="$ltdll_cmds"
11692  ;;
11693  cygwin* | mingw*)
11694    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11695  ;;
11696  *)
11697    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11698  ;;
11699  esac
11700
11701echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11702echo "${ECHO_T}$ld_shlibs_CXX" >&6
11703test "$ld_shlibs_CXX" = no && can_build_shared=no
11704
11705#
11706# Do we need to explicitly link libc?
11707#
11708case "x$archive_cmds_need_lc_CXX" in
11709x|xyes)
11710  # Assume -lc should be added
11711  archive_cmds_need_lc_CXX=yes
11712
11713  if test "$enable_shared" = yes && test "$GCC" = yes; then
11714    case $archive_cmds_CXX in
11715    *'~'*)
11716      # FIXME: we may have to deal with multi-command sequences.
11717      ;;
11718    '$CC '*)
11719      # Test whether the compiler implicitly links with -lc since on some
11720      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11721      # to ld, don't add -lc before -lgcc.
11722      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11723echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11724      $rm conftest*
11725      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11726
11727      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728  (eval $ac_compile) 2>&5
11729  ac_status=$?
11730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731  (exit $ac_status); } 2>conftest.err; then
11732        soname=conftest
11733        lib=conftest
11734        libobjs=conftest.$ac_objext
11735        deplibs=
11736        wl=$lt_prog_compiler_wl_CXX
11737	pic_flag=$lt_prog_compiler_pic_CXX
11738        compiler_flags=-v
11739        linker_flags=-v
11740        verstring=
11741        output_objdir=.
11742        libname=conftest
11743        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11744        allow_undefined_flag_CXX=
11745        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11746  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11747  ac_status=$?
11748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749  (exit $ac_status); }
11750        then
11751	  archive_cmds_need_lc_CXX=no
11752        else
11753	  archive_cmds_need_lc_CXX=yes
11754        fi
11755        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11756      else
11757        cat conftest.err 1>&5
11758      fi
11759      $rm conftest*
11760      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11761echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11762      ;;
11763    esac
11764  fi
11765  ;;
11766esac
11767
11768echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11769echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11770library_names_spec=
11771libname_spec='lib$name'
11772soname_spec=
11773shrext_cmds=".so"
11774postinstall_cmds=
11775postuninstall_cmds=
11776finish_cmds=
11777finish_eval=
11778shlibpath_var=
11779shlibpath_overrides_runpath=unknown
11780version_type=none
11781dynamic_linker="$host_os ld.so"
11782sys_lib_dlsearch_path_spec="/lib /usr/lib"
11783if test "$GCC" = yes; then
11784  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11785  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11786    # if the path contains ";" then we assume it to be the separator
11787    # otherwise default to the standard path separator (i.e. ":") - it is
11788    # assumed that no part of a normal pathname contains ";" but that should
11789    # okay in the real world where ";" in dirpaths is itself problematic.
11790    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11791  else
11792    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11793  fi
11794else
11795  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11796fi
11797need_lib_prefix=unknown
11798hardcode_into_libs=no
11799
11800# when you set need_version to no, make sure it does not cause -set_version
11801# flags to be left without arguments
11802need_version=unknown
11803
11804case $host_os in
11805aix3*)
11806  version_type=linux
11807  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11808  shlibpath_var=LIBPATH
11809
11810  # AIX 3 has no versioning support, so we append a major version to the name.
11811  soname_spec='${libname}${release}${shared_ext}$major'
11812  ;;
11813
11814aix4* | aix5*)
11815  version_type=linux
11816  need_lib_prefix=no
11817  need_version=no
11818  hardcode_into_libs=yes
11819  if test "$host_cpu" = ia64; then
11820    # AIX 5 supports IA64
11821    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11822    shlibpath_var=LD_LIBRARY_PATH
11823  else
11824    # With GCC up to 2.95.x, collect2 would create an import file
11825    # for dependence libraries.  The import file would start with
11826    # the line `#! .'.  This would cause the generated library to
11827    # depend on `.', always an invalid library.  This was fixed in
11828    # development snapshots of GCC prior to 3.0.
11829    case $host_os in
11830      aix4 | aix4.[01] | aix4.[01].*)
11831      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11832	   echo ' yes '
11833	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11834	:
11835      else
11836	can_build_shared=no
11837      fi
11838      ;;
11839    esac
11840    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11841    # soname into executable. Probably we can add versioning support to
11842    # collect2, so additional links can be useful in future.
11843    if test "$aix_use_runtimelinking" = yes; then
11844      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11845      # instead of lib<name>.a to let people know that these are not
11846      # typical AIX shared libraries.
11847      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848    else
11849      # We preserve .a as extension for shared libraries through AIX4.2
11850      # and later when we are not doing run time linking.
11851      library_names_spec='${libname}${release}.a $libname.a'
11852      soname_spec='${libname}${release}${shared_ext}$major'
11853    fi
11854    shlibpath_var=LIBPATH
11855  fi
11856  ;;
11857
11858amigaos*)
11859  library_names_spec='$libname.ixlibrary $libname.a'
11860  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11861  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11862  ;;
11863
11864beos*)
11865  library_names_spec='${libname}${shared_ext}'
11866  dynamic_linker="$host_os ld.so"
11867  shlibpath_var=LIBRARY_PATH
11868  ;;
11869
11870bsdi[45]*)
11871  version_type=linux
11872  need_version=no
11873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874  soname_spec='${libname}${release}${shared_ext}$major'
11875  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11876  shlibpath_var=LD_LIBRARY_PATH
11877  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11878  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11879  # the default ld.so.conf also contains /usr/contrib/lib and
11880  # /usr/local/lib (/usr/X11 is a link to /usr/local), but let us allow
11881  # libtool to hard-code these into programs
11882  ;;
11883
11884cygwin* | mingw* | pw32*)
11885  version_type=windows
11886  shrext_cmds=".dll"
11887  need_version=no
11888  need_lib_prefix=no
11889
11890  case $GCC,$host_os in
11891  yes,cygwin* | yes,mingw* | yes,pw32*)
11892    library_names_spec='$libname.dll.a'
11893    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11894    postinstall_cmds='base_file=`basename \${file}`~
11895      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11896      dldir=$destdir/`dirname \$dlpath`~
11897      test -d \$dldir || mkdir -p \$dldir~
11898      $install_prog $dir/$dlname \$dldir/$dlname~
11899      chmod a+x \$dldir/$dlname'
11900    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11901      dlpath=$dir/\$dldll~
11902       $rm \$dlpath'
11903    shlibpath_overrides_runpath=yes
11904
11905    case $host_os in
11906    cygwin*)
11907      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11908      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11910      ;;
11911    mingw*)
11912      # MinGW DLLs use traditional 'lib' prefix
11913      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11914      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11915      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11916        # It is most probably a Windows format PATH printed by
11917        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11918        # path with ; separators, and with drive letters. We can handle the
11919        # drive letters (cygwin fileutils understands them), so leave them,
11920        # especially as we might pass files found there to a mingw objdump,
11921        # which wouldn't understand a cygwinified path. Ahh.
11922        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11923      else
11924        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11925      fi
11926      ;;
11927    pw32*)
11928      # pw32 DLLs use 'pw' prefix rather than 'lib'
11929      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11930      ;;
11931    esac
11932    ;;
11933
11934  *)
11935    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11936    ;;
11937  esac
11938  dynamic_linker='Win32 ld.exe'
11939  # FIXME: first we should search . and the directory the executable is in
11940  shlibpath_var=PATH
11941  ;;
11942
11943darwin* | rhapsody*)
11944  dynamic_linker="$host_os dyld"
11945  version_type=darwin
11946  need_lib_prefix=no
11947  need_version=no
11948  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11949  soname_spec='${libname}${release}${major}$shared_ext'
11950  shlibpath_overrides_runpath=yes
11951  shlibpath_var=DYLD_LIBRARY_PATH
11952  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11953  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11954  if test "$GCC" = yes; then
11955    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11956  else
11957    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11958  fi
11959  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11960  ;;
11961
11962dgux*)
11963  version_type=linux
11964  need_lib_prefix=no
11965  need_version=no
11966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11967  soname_spec='${libname}${release}${shared_ext}$major'
11968  shlibpath_var=LD_LIBRARY_PATH
11969  ;;
11970
11971freebsd1*)
11972  dynamic_linker=no
11973  ;;
11974
11975kfreebsd*-gnu)
11976  version_type=linux
11977  need_lib_prefix=no
11978  need_version=no
11979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11980  soname_spec='${libname}${release}${shared_ext}$major'
11981  shlibpath_var=LD_LIBRARY_PATH
11982  shlibpath_overrides_runpath=no
11983  hardcode_into_libs=yes
11984  dynamic_linker='GNU ld.so'
11985  ;;
11986
11987freebsd* | dragonfly*)
11988  # DragonFly does not have aout.  When/if they implement a new
11989  # versioning mechanism, adjust this.
11990  if test -x /usr/bin/objformat; then
11991    objformat=`/usr/bin/objformat`
11992  else
11993    case $host_os in
11994    freebsd[123]*) objformat=aout ;;
11995    *) objformat=elf ;;
11996    esac
11997  fi
11998  version_type=freebsd-$objformat
11999  case $version_type in
12000    freebsd-elf*)
12001      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12002      need_version=no
12003      need_lib_prefix=no
12004      ;;
12005    freebsd-*)
12006      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12007      need_version=yes
12008      ;;
12009  esac
12010  shlibpath_var=LD_LIBRARY_PATH
12011  case $host_os in
12012  freebsd2*)
12013    shlibpath_overrides_runpath=yes
12014    ;;
12015  freebsd3.[01]* | freebsdelf3.[01]*)
12016    shlibpath_overrides_runpath=yes
12017    hardcode_into_libs=yes
12018    ;;
12019  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12020  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12021    shlibpath_overrides_runpath=no
12022    hardcode_into_libs=yes
12023    ;;
12024  freebsd*) # from 4.6 on
12025    shlibpath_overrides_runpath=yes
12026    hardcode_into_libs=yes
12027    ;;
12028  esac
12029  ;;
12030
12031gnu*)
12032  version_type=linux
12033  need_lib_prefix=no
12034  need_version=no
12035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12036  soname_spec='${libname}${release}${shared_ext}$major'
12037  shlibpath_var=LD_LIBRARY_PATH
12038  hardcode_into_libs=yes
12039  ;;
12040
12041hpux9* | hpux10* | hpux11*)
12042  # Give a soname corresponding to the major version so that dld.sl refuses to
12043  # link against other versions.
12044  version_type=sunos
12045  need_lib_prefix=no
12046  need_version=no
12047  case $host_cpu in
12048  ia64*)
12049    shrext_cmds='.so'
12050    hardcode_into_libs=yes
12051    dynamic_linker="$host_os dld.so"
12052    shlibpath_var=LD_LIBRARY_PATH
12053    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12054    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055    soname_spec='${libname}${release}${shared_ext}$major'
12056    if test "X$HPUX_IA64_MODE" = X32; then
12057      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12058    else
12059      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12060    fi
12061    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062    ;;
12063   hppa*64*)
12064     shrext_cmds='.sl'
12065     hardcode_into_libs=yes
12066     dynamic_linker="$host_os dld.sl"
12067     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12068     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070     soname_spec='${libname}${release}${shared_ext}$major'
12071     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12073     ;;
12074   *)
12075    shrext_cmds='.sl'
12076    dynamic_linker="$host_os dld.sl"
12077    shlibpath_var=SHLIB_PATH
12078    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12079    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080    soname_spec='${libname}${release}${shared_ext}$major'
12081    ;;
12082  esac
12083  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12084  postinstall_cmds='chmod 555 $lib'
12085  ;;
12086
12087interix3*)
12088  version_type=linux
12089  need_lib_prefix=no
12090  need_version=no
12091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12092  soname_spec='${libname}${release}${shared_ext}$major'
12093  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12094  shlibpath_var=LD_LIBRARY_PATH
12095  shlibpath_overrides_runpath=no
12096  hardcode_into_libs=yes
12097  ;;
12098
12099irix5* | irix6* | nonstopux*)
12100  case $host_os in
12101    nonstopux*) version_type=nonstopux ;;
12102    *)
12103	if test "$lt_cv_prog_gnu_ld" = yes; then
12104		version_type=linux
12105	else
12106		version_type=irix
12107	fi ;;
12108  esac
12109  need_lib_prefix=no
12110  need_version=no
12111  soname_spec='${libname}${release}${shared_ext}$major'
12112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12113  case $host_os in
12114  irix5* | nonstopux*)
12115    libsuff= shlibsuff=
12116    ;;
12117  *)
12118    case $LD in # libtool.m4 will add one of these switches to LD
12119    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12120      libsuff= shlibsuff= libmagic=32-bit;;
12121    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12122      libsuff=32 shlibsuff=N32 libmagic=N32;;
12123    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12124      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12125    *) libsuff= shlibsuff= libmagic=never-match;;
12126    esac
12127    ;;
12128  esac
12129  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12130  shlibpath_overrides_runpath=no
12131  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12132  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12133  hardcode_into_libs=yes
12134  ;;
12135
12136# No shared lib support for Linux oldld, aout, or coff.
12137linux*oldld* | linux*aout* | linux*coff*)
12138  dynamic_linker=no
12139  ;;
12140
12141# This must be Linux ELF.
12142linux*)
12143  version_type=linux
12144  need_lib_prefix=no
12145  need_version=no
12146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147  soname_spec='${libname}${release}${shared_ext}$major'
12148  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12149  shlibpath_var=LD_LIBRARY_PATH
12150  shlibpath_overrides_runpath=no
12151  # This implies no fast_install, which is unacceptable.
12152  # Some rework will be needed to allow for fast_install
12153  # before this can be enabled.
12154  hardcode_into_libs=yes
12155
12156  # Append ld.so.conf contents to the search path
12157  if test -f /etc/ld.so.conf; then
12158    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12159    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12160  fi
12161
12162  # We used to test for /lib/ld.so.1 and disable shared libraries on
12163  # powerpc, because MkLinux only supported shared libraries with the
12164  # GNU dynamic linker.  Since this was broken with cross compilers,
12165  # most powerpc-linux boxes support dynamic linking these days and
12166  # people can always --disable-shared, the test was removed, and we
12167  # assume the GNU/Linux dynamic linker is in use.
12168  dynamic_linker='GNU/Linux ld.so'
12169  ;;
12170
12171knetbsd*-gnu)
12172  version_type=linux
12173  need_lib_prefix=no
12174  need_version=no
12175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12176  soname_spec='${libname}${release}${shared_ext}$major'
12177  shlibpath_var=LD_LIBRARY_PATH
12178  shlibpath_overrides_runpath=no
12179  hardcode_into_libs=yes
12180  dynamic_linker='GNU ld.so'
12181  ;;
12182
12183netbsd*)
12184  version_type=sunos
12185  need_lib_prefix=no
12186  need_version=no
12187  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12189    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12190    dynamic_linker='NetBSD (a.out) ld.so'
12191  else
12192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12193    soname_spec='${libname}${release}${shared_ext}$major'
12194    dynamic_linker='NetBSD ld.elf_so'
12195  fi
12196  shlibpath_var=LD_LIBRARY_PATH
12197  shlibpath_overrides_runpath=yes
12198  hardcode_into_libs=yes
12199  ;;
12200
12201newsos6)
12202  version_type=linux
12203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204  shlibpath_var=LD_LIBRARY_PATH
12205  shlibpath_overrides_runpath=yes
12206  ;;
12207
12208nto-qnx*)
12209  version_type=linux
12210  need_lib_prefix=no
12211  need_version=no
12212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213  soname_spec='${libname}${release}${shared_ext}$major'
12214  shlibpath_var=LD_LIBRARY_PATH
12215  shlibpath_overrides_runpath=yes
12216  ;;
12217
12218openbsd*)
12219  version_type=sunos
12220  sys_lib_dlsearch_path_spec="/usr/lib"
12221  need_lib_prefix=no
12222  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12223  case $host_os in
12224    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12225    *)                         need_version=no  ;;
12226  esac
12227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12228  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12229  shlibpath_var=LD_LIBRARY_PATH
12230  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12231    case $host_os in
12232      openbsd2.[89] | openbsd2.[89].*)
12233	shlibpath_overrides_runpath=no
12234	;;
12235      *)
12236	shlibpath_overrides_runpath=yes
12237	;;
12238      esac
12239  else
12240    shlibpath_overrides_runpath=yes
12241  fi
12242  ;;
12243
12244os2*)
12245  libname_spec='$name'
12246  shrext_cmds=".dll"
12247  need_lib_prefix=no
12248  library_names_spec='$libname${shared_ext} $libname.a'
12249  dynamic_linker='OS/2 ld.exe'
12250  shlibpath_var=LIBPATH
12251  ;;
12252
12253osf3* | osf4* | osf5*)
12254  version_type=osf
12255  need_lib_prefix=no
12256  need_version=no
12257  soname_spec='${libname}${release}${shared_ext}$major'
12258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259  shlibpath_var=LD_LIBRARY_PATH
12260  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12261  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12262  ;;
12263
12264solaris*)
12265  version_type=linux
12266  need_lib_prefix=no
12267  need_version=no
12268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269  soname_spec='${libname}${release}${shared_ext}$major'
12270  shlibpath_var=LD_LIBRARY_PATH
12271  shlibpath_overrides_runpath=yes
12272  hardcode_into_libs=yes
12273  # ldd complains unless libraries are executable
12274  postinstall_cmds='chmod +x $lib'
12275  ;;
12276
12277sunos4*)
12278  version_type=sunos
12279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12280  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12281  shlibpath_var=LD_LIBRARY_PATH
12282  shlibpath_overrides_runpath=yes
12283  if test "$with_gnu_ld" = yes; then
12284    need_lib_prefix=no
12285  fi
12286  need_version=yes
12287  ;;
12288
12289sysv4 | sysv4.3*)
12290  version_type=linux
12291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292  soname_spec='${libname}${release}${shared_ext}$major'
12293  shlibpath_var=LD_LIBRARY_PATH
12294  case $host_vendor in
12295    sni)
12296      shlibpath_overrides_runpath=no
12297      need_lib_prefix=no
12298      export_dynamic_flag_spec='${wl}-Blargedynsym'
12299      runpath_var=LD_RUN_PATH
12300      ;;
12301    siemens)
12302      need_lib_prefix=no
12303      ;;
12304    motorola)
12305      need_lib_prefix=no
12306      need_version=no
12307      shlibpath_overrides_runpath=no
12308      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12309      ;;
12310  esac
12311  ;;
12312
12313sysv4*MP*)
12314  if test -d /usr/nec ;then
12315    version_type=linux
12316    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12317    soname_spec='$libname${shared_ext}.$major'
12318    shlibpath_var=LD_LIBRARY_PATH
12319  fi
12320  ;;
12321
12322sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12323  version_type=freebsd-elf
12324  need_lib_prefix=no
12325  need_version=no
12326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12327  soname_spec='${libname}${release}${shared_ext}$major'
12328  shlibpath_var=LD_LIBRARY_PATH
12329  hardcode_into_libs=yes
12330  if test "$with_gnu_ld" = yes; then
12331    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12332    shlibpath_overrides_runpath=no
12333  else
12334    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12335    shlibpath_overrides_runpath=yes
12336    case $host_os in
12337      sco3.2v5*)
12338        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12339	;;
12340    esac
12341  fi
12342  sys_lib_dlsearch_path_spec='/usr/lib'
12343  ;;
12344
12345uts4*)
12346  version_type=linux
12347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12348  soname_spec='${libname}${release}${shared_ext}$major'
12349  shlibpath_var=LD_LIBRARY_PATH
12350  ;;
12351
12352*)
12353  dynamic_linker=no
12354  ;;
12355esac
12356echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12357echo "${ECHO_T}$dynamic_linker" >&6
12358test "$dynamic_linker" = no && can_build_shared=no
12359
12360variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12361if test "$GCC" = yes; then
12362  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12363fi
12364
12365echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12366echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12367hardcode_action_CXX=
12368if test -n "$hardcode_libdir_flag_spec_CXX" || \
12369   test -n "$runpath_var_CXX" || \
12370   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12371
12372  # We can hardcode non-existant directories.
12373  if test "$hardcode_direct_CXX" != no &&
12374     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12375     # have to relink, otherwise we might link with an installed library
12376     # when we should be linking with a yet-to-be-installed one
12377     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12378     test "$hardcode_minus_L_CXX" != no; then
12379    # Linking always hardcodes the temporary library directory.
12380    hardcode_action_CXX=relink
12381  else
12382    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12383    hardcode_action_CXX=immediate
12384  fi
12385else
12386  # We cannot hardcode anything, or else we can only hardcode existing
12387  # directories.
12388  hardcode_action_CXX=unsupported
12389fi
12390echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12391echo "${ECHO_T}$hardcode_action_CXX" >&6
12392
12393if test "$hardcode_action_CXX" = relink; then
12394  # Fast installation is not supported
12395  enable_fast_install=no
12396elif test "$shlibpath_overrides_runpath" = yes ||
12397     test "$enable_shared" = no; then
12398  # Fast installation is not necessary
12399  enable_fast_install=needless
12400fi
12401
12402
12403# The else clause should only fire when bootstrapping the
12404# libtool distribution, otherwise you forgot to ship ltmain.sh
12405# with your package, and you will get complaints that there are
12406# no rules to generate ltmain.sh.
12407if test -f "$ltmain"; then
12408  # See if we are running on zsh, and set the options which allow our commands through
12409  # without removal of \ escapes.
12410  if test -n "${ZSH_VERSION+set}" ; then
12411    setopt NO_GLOB_SUBST
12412  fi
12413  # Now quote all the things that may contain metacharacters while being
12414  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12415  # variables and quote the copies for generation of the libtool script.
12416  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12417    SED SHELL STRIP \
12418    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12419    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12420    deplibs_check_method reload_flag reload_cmds need_locks \
12421    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12422    lt_cv_sys_global_symbol_to_c_name_address \
12423    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12424    old_postinstall_cmds old_postuninstall_cmds \
12425    compiler_CXX \
12426    CC_CXX \
12427    LD_CXX \
12428    lt_prog_compiler_wl_CXX \
12429    lt_prog_compiler_pic_CXX \
12430    lt_prog_compiler_static_CXX \
12431    lt_prog_compiler_no_builtin_flag_CXX \
12432    export_dynamic_flag_spec_CXX \
12433    thread_safe_flag_spec_CXX \
12434    whole_archive_flag_spec_CXX \
12435    enable_shared_with_static_runtimes_CXX \
12436    old_archive_cmds_CXX \
12437    old_archive_from_new_cmds_CXX \
12438    predep_objects_CXX \
12439    postdep_objects_CXX \
12440    predeps_CXX \
12441    postdeps_CXX \
12442    compiler_lib_search_path_CXX \
12443    archive_cmds_CXX \
12444    archive_expsym_cmds_CXX \
12445    postinstall_cmds_CXX \
12446    postuninstall_cmds_CXX \
12447    old_archive_from_expsyms_cmds_CXX \
12448    allow_undefined_flag_CXX \
12449    no_undefined_flag_CXX \
12450    export_symbols_cmds_CXX \
12451    hardcode_libdir_flag_spec_CXX \
12452    hardcode_libdir_flag_spec_ld_CXX \
12453    hardcode_libdir_separator_CXX \
12454    hardcode_automatic_CXX \
12455    module_cmds_CXX \
12456    module_expsym_cmds_CXX \
12457    lt_cv_prog_compiler_c_o_CXX \
12458    exclude_expsyms_CXX \
12459    include_expsyms_CXX; do
12460
12461    case $var in
12462    old_archive_cmds_CXX | \
12463    old_archive_from_new_cmds_CXX | \
12464    archive_cmds_CXX | \
12465    archive_expsym_cmds_CXX | \
12466    module_cmds_CXX | \
12467    module_expsym_cmds_CXX | \
12468    old_archive_from_expsyms_cmds_CXX | \
12469    export_symbols_cmds_CXX | \
12470    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12471    postinstall_cmds | postuninstall_cmds | \
12472    old_postinstall_cmds | old_postuninstall_cmds | \
12473    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12474      # Double-quote double-evaled strings.
12475      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12476      ;;
12477    *)
12478      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12479      ;;
12480    esac
12481  done
12482
12483  case $lt_echo in
12484  *'\$0 --fallback-echo"')
12485    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12486    ;;
12487  esac
12488
12489cfgfile="$ofile"
12490
12491  cat <<__EOF__ >> "$cfgfile"
12492# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12493
12494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12495
12496# Shell to use when invoking shell scripts.
12497SHELL=$lt_SHELL
12498
12499# Whether or not to build shared libraries.
12500build_libtool_libs=$enable_shared
12501
12502# Whether or not to build static libraries.
12503build_old_libs=$enable_static
12504
12505# Whether or not to add -lc for building shared libraries.
12506build_libtool_need_lc=$archive_cmds_need_lc_CXX
12507
12508# Whether or not to disallow shared libs when runtime libs are static
12509allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12510
12511# Whether or not to optimize for fast installation.
12512fast_install=$enable_fast_install
12513
12514# The host system.
12515host_alias=$host_alias
12516host=$host
12517host_os=$host_os
12518
12519# The build system.
12520build_alias=$build_alias
12521build=$build
12522build_os=$build_os
12523
12524# An echo program that does not interpret backslashes.
12525echo=$lt_echo
12526
12527# The archiver.
12528AR=$lt_AR
12529AR_FLAGS=$lt_AR_FLAGS
12530
12531# A C compiler.
12532LTCC=$lt_LTCC
12533
12534# LTCC compiler flags.
12535LTCFLAGS=$lt_LTCFLAGS
12536
12537# A language-specific compiler.
12538CC=$lt_compiler_CXX
12539
12540# Is the compiler the GNU C compiler?
12541with_gcc=$GCC_CXX
12542
12543# An ERE matcher.
12544EGREP=$lt_EGREP
12545
12546# The linker used to build libraries.
12547LD=$lt_LD_CXX
12548
12549# Whether we need hard or soft links.
12550LN_S=$lt_LN_S
12551
12552# A BSD-compatible nm program.
12553NM=$lt_NM
12554
12555# A symbol stripping program
12556STRIP=$lt_STRIP
12557
12558# Used to examine libraries when file_magic_cmd begins "file"
12559MAGIC_CMD=$MAGIC_CMD
12560
12561# Used on cygwin: DLL creation program.
12562DLLTOOL="$DLLTOOL"
12563
12564# Used on cygwin: object dumper.
12565OBJDUMP="$OBJDUMP"
12566
12567# Used on cygwin: assembler.
12568AS="$AS"
12569
12570# The name of the directory that contains temporary libtool files.
12571objdir=$objdir
12572
12573# How to create reloadable object files.
12574reload_flag=$lt_reload_flag
12575reload_cmds=$lt_reload_cmds
12576
12577# How to pass a linker flag through the compiler.
12578wl=$lt_lt_prog_compiler_wl_CXX
12579
12580# Object file suffix (normally "o").
12581objext="$ac_objext"
12582
12583# Old archive suffix (normally "a").
12584libext="$libext"
12585
12586# Shared library suffix (normally ".so").
12587shrext_cmds='$shrext_cmds'
12588
12589# Executable file suffix (normally "").
12590exeext="$exeext"
12591
12592# Additional compiler flags for building library objects.
12593pic_flag=$lt_lt_prog_compiler_pic_CXX
12594pic_mode=$pic_mode
12595
12596# What is the maximum length of a command?
12597max_cmd_len=$lt_cv_sys_max_cmd_len
12598
12599# Does compiler simultaneously support -c and -o options?
12600compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12601
12602# Must we lock files when doing compilation?
12603need_locks=$lt_need_locks
12604
12605# Do we need the lib prefix for modules?
12606need_lib_prefix=$need_lib_prefix
12607
12608# Do we need a version for libraries?
12609need_version=$need_version
12610
12611# Whether dlopen is supported.
12612dlopen_support=$enable_dlopen
12613
12614# Whether dlopen of programs is supported.
12615dlopen_self=$enable_dlopen_self
12616
12617# Whether dlopen of statically linked programs is supported.
12618dlopen_self_static=$enable_dlopen_self_static
12619
12620# Compiler flag to prevent dynamic linking.
12621link_static_flag=$lt_lt_prog_compiler_static_CXX
12622
12623# Compiler flag to turn off builtin functions.
12624no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12625
12626# Compiler flag to allow reflexive dlopens.
12627export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12628
12629# Compiler flag to generate shared objects directly from archives.
12630whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12631
12632# Compiler flag to generate thread-safe objects.
12633thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12634
12635# Library versioning type.
12636version_type=$version_type
12637
12638# Format of library name prefix.
12639libname_spec=$lt_libname_spec
12640
12641# List of archive names.  First name is the real one, the rest are links.
12642# The last name is the one that the linker finds with -lNAME.
12643library_names_spec=$lt_library_names_spec
12644
12645# The coded name of the library, if different from the real name.
12646soname_spec=$lt_soname_spec
12647
12648# Commands used to build and install an old-style archive.
12649RANLIB=$lt_RANLIB
12650old_archive_cmds=$lt_old_archive_cmds_CXX
12651old_postinstall_cmds=$lt_old_postinstall_cmds
12652old_postuninstall_cmds=$lt_old_postuninstall_cmds
12653
12654# Create an old-style archive from a shared archive.
12655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12656
12657# Create a temporary old-style archive to link instead of a shared archive.
12658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12659
12660# Commands used to build and install a shared archive.
12661archive_cmds=$lt_archive_cmds_CXX
12662archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12663postinstall_cmds=$lt_postinstall_cmds
12664postuninstall_cmds=$lt_postuninstall_cmds
12665
12666# Commands used to build a loadable module (assumed same as above if empty)
12667module_cmds=$lt_module_cmds_CXX
12668module_expsym_cmds=$lt_module_expsym_cmds_CXX
12669
12670# Commands to strip libraries.
12671old_striplib=$lt_old_striplib
12672striplib=$lt_striplib
12673
12674# Dependencies to place before the objects being linked to create a
12675# shared library.
12676predep_objects=$lt_predep_objects_CXX
12677
12678# Dependencies to place after the objects being linked to create a
12679# shared library.
12680postdep_objects=$lt_postdep_objects_CXX
12681
12682# Dependencies to place before the objects being linked to create a
12683# shared library.
12684predeps=$lt_predeps_CXX
12685
12686# Dependencies to place after the objects being linked to create a
12687# shared library.
12688postdeps=$lt_postdeps_CXX
12689
12690# The library search path used internally by the compiler when linking
12691# a shared library.
12692compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12693
12694# Method to check whether dependent libraries are shared objects.
12695deplibs_check_method=$lt_deplibs_check_method
12696
12697# Command to use when deplibs_check_method == file_magic.
12698file_magic_cmd=$lt_file_magic_cmd
12699
12700# Flag that allows shared libraries with undefined symbols to be built.
12701allow_undefined_flag=$lt_allow_undefined_flag_CXX
12702
12703# Flag that forces no undefined symbols.
12704no_undefined_flag=$lt_no_undefined_flag_CXX
12705
12706# Commands used to finish a libtool library installation in a directory.
12707finish_cmds=$lt_finish_cmds
12708
12709# Same as above, but a single script fragment to be evaled but not shown.
12710finish_eval=$lt_finish_eval
12711
12712# Take the output of nm and produce a listing of raw symbols and C names.
12713global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12714
12715# Transform the output of nm in a proper C declaration
12716global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12717
12718# Transform the output of nm in a C name address pair
12719global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12720
12721# This is the shared library runtime path variable.
12722runpath_var=$runpath_var
12723
12724# This is the shared library path variable.
12725shlibpath_var=$shlibpath_var
12726
12727# Is shlibpath searched before the hard-coded library search path?
12728shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12729
12730# How to hardcode a shared library path into an executable.
12731hardcode_action=$hardcode_action_CXX
12732
12733# Whether we should hardcode library paths into libraries.
12734hardcode_into_libs=$hardcode_into_libs
12735
12736# Flag to hardcode \$libdir into a binary during linking.
12737# This must work even if \$libdir does not exist.
12738hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12739
12740# If ld is used when linking, flag to hardcode \$libdir into
12741# a binary during linking. This must work even if \$libdir does
12742# not exist.
12743hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12744
12745# Whether we need a single -rpath flag with a separated argument.
12746hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12747
12748# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12749# resulting binary.
12750hardcode_direct=$hardcode_direct_CXX
12751
12752# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12753# resulting binary.
12754hardcode_minus_L=$hardcode_minus_L_CXX
12755
12756# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12757# the resulting binary.
12758hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12759
12760# Set to yes if building a shared library automatically hardcodes DIR into the library
12761# and all subsequent libraries and executables linked against it.
12762hardcode_automatic=$hardcode_automatic_CXX
12763
12764# Variables whose values should be saved in libtool wrapper scripts and
12765# restored at relink time.
12766variables_saved_for_relink="$variables_saved_for_relink"
12767
12768# Whether libtool must link a program against all its dependency libraries.
12769link_all_deplibs=$link_all_deplibs_CXX
12770
12771# Compile-time system search path for libraries
12772sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12773
12774# Run-time system search path for libraries
12775sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12776
12777# Fix the shell variable \$srcfile for the compiler.
12778fix_srcfile_path="$fix_srcfile_path_CXX"
12779
12780# Set to yes if exported symbols are required.
12781always_export_symbols=$always_export_symbols_CXX
12782
12783# The commands to list exported symbols.
12784export_symbols_cmds=$lt_export_symbols_cmds_CXX
12785
12786# The commands to extract the exported symbol list from a shared archive.
12787extract_expsyms_cmds=$lt_extract_expsyms_cmds
12788
12789# Symbols that should not be listed in the preloaded symbols.
12790exclude_expsyms=$lt_exclude_expsyms_CXX
12791
12792# Symbols that must always be exported.
12793include_expsyms=$lt_include_expsyms_CXX
12794
12795# ### END LIBTOOL TAG CONFIG: $tagname
12796
12797__EOF__
12798
12799
12800else
12801  # If there is no Makefile yet, we rely on a make rule to execute
12802  # `config.status --recheck' to rerun these tests and create the
12803  # libtool script then.
12804  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12805  if test -f "$ltmain_in"; then
12806    test -f Makefile && make "$ltmain"
12807  fi
12808fi
12809
12810
12811ac_ext=c
12812ac_cpp='$CPP $CPPFLAGS'
12813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816
12817CC=$lt_save_CC
12818LDCXX=$LD
12819LD=$lt_save_LD
12820GCC=$lt_save_GCC
12821with_gnu_ldcxx=$with_gnu_ld
12822with_gnu_ld=$lt_save_with_gnu_ld
12823lt_cv_path_LDCXX=$lt_cv_path_LD
12824lt_cv_path_LD=$lt_save_path_LD
12825lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12826lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12827
12828	else
12829	  tagname=""
12830	fi
12831	;;
12832
12833      F77)
12834	if test -n "$F77" && test "X$F77" != "Xno"; then
12835
12836ac_ext=f
12837ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12838ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12840
12841
12842archive_cmds_need_lc_F77=no
12843allow_undefined_flag_F77=
12844always_export_symbols_F77=no
12845archive_expsym_cmds_F77=
12846export_dynamic_flag_spec_F77=
12847hardcode_direct_F77=no
12848hardcode_libdir_flag_spec_F77=
12849hardcode_libdir_flag_spec_ld_F77=
12850hardcode_libdir_separator_F77=
12851hardcode_minus_L_F77=no
12852hardcode_automatic_F77=no
12853module_cmds_F77=
12854module_expsym_cmds_F77=
12855link_all_deplibs_F77=unknown
12856old_archive_cmds_F77=$old_archive_cmds
12857no_undefined_flag_F77=
12858whole_archive_flag_spec_F77=
12859enable_shared_with_static_runtimes_F77=no
12860
12861# Source file extension for f77 test sources.
12862ac_ext=f
12863
12864# Object file extension for compiled f77 test sources.
12865objext=o
12866objext_F77=$objext
12867
12868# Code to be used in simple compile tests
12869lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12870
12871# Code to be used in simple link tests
12872lt_simple_link_test_code="      program t\n      end\n"
12873
12874# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12875
12876# If no C compiler was specified, use CC.
12877LTCC=${LTCC-"$CC"}
12878
12879# If no C compiler flags were specified, use CFLAGS.
12880LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12881
12882# Allow CC to be a program name with arguments.
12883compiler=$CC
12884
12885
12886# save warnings/boilerplate of simple test code
12887ac_outfile=conftest.$ac_objext
12888printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12889eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12890_lt_compiler_boilerplate=`cat conftest.err`
12891$rm conftest*
12892
12893ac_outfile=conftest.$ac_objext
12894printf "$lt_simple_link_test_code" >conftest.$ac_ext
12895eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12896_lt_linker_boilerplate=`cat conftest.err`
12897$rm conftest*
12898
12899
12900# Allow CC to be a program name with arguments.
12901lt_save_CC="$CC"
12902CC=${F77-"f77"}
12903compiler=$CC
12904compiler_F77=$CC
12905for cc_temp in $compiler""; do
12906  case $cc_temp in
12907    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12908    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12909    \-*) ;;
12910    *) break;;
12911  esac
12912done
12913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12914
12915
12916echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12917echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12918echo "$as_me:$LINENO: result: $can_build_shared" >&5
12919echo "${ECHO_T}$can_build_shared" >&6
12920
12921echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12922echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12923test "$can_build_shared" = "no" && enable_shared=no
12924
12925# On AIX, shared libraries and static libraries use the same namespace, and
12926# are all built from PIC.
12927case $host_os in
12928aix3*)
12929  test "$enable_shared" = yes && enable_static=no
12930  if test -n "$RANLIB"; then
12931    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12932    postinstall_cmds='$RANLIB $lib'
12933  fi
12934  ;;
12935aix4* | aix5*)
12936  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12937    test "$enable_shared" = yes && enable_static=no
12938  fi
12939  ;;
12940esac
12941echo "$as_me:$LINENO: result: $enable_shared" >&5
12942echo "${ECHO_T}$enable_shared" >&6
12943
12944echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12945echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12946# Make sure either enable_shared or enable_static is yes.
12947test "$enable_shared" = yes || enable_static=yes
12948echo "$as_me:$LINENO: result: $enable_static" >&5
12949echo "${ECHO_T}$enable_static" >&6
12950
12951GCC_F77="$G77"
12952LD_F77="$LD"
12953
12954lt_prog_compiler_wl_F77=
12955lt_prog_compiler_pic_F77=
12956lt_prog_compiler_static_F77=
12957
12958echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12959echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12960
12961  if test "$GCC" = yes; then
12962    lt_prog_compiler_wl_F77='-Wl,'
12963    lt_prog_compiler_static_F77='-static'
12964
12965    case $host_os in
12966      aix*)
12967      # All AIX code is PIC.
12968      if test "$host_cpu" = ia64; then
12969	# AIX 5 now supports IA64 processor
12970	lt_prog_compiler_static_F77='-Bstatic'
12971      fi
12972      ;;
12973
12974    amigaos*)
12975      # FIXME: we need at least 68020 code to build shared libraries, but
12976      # adding the `-m68020' flag to GCC prevents building anything better,
12977      # like `-m68040'.
12978      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12979      ;;
12980
12981    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12982      # PIC is the default for these OSes.
12983      ;;
12984
12985    mingw* | pw32* | os2*)
12986      # This hack is so that the source file can tell whether it is being
12987      # built for inclusion in a dll (and should export symbols for example).
12988      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12989      ;;
12990
12991    darwin* | rhapsody*)
12992      # PIC is the default on this platform
12993      # Common symbols not allowed in MH_DYLIB files
12994      lt_prog_compiler_pic_F77='-fno-common'
12995      ;;
12996
12997    interix3*)
12998      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12999      # Instead, we relocate shared libraries at runtime.
13000      ;;
13001
13002    msdosdjgpp*)
13003      # Just because we use GCC doesn't mean we suddenly get shared libraries
13004      # on systems that don't support them.
13005      lt_prog_compiler_can_build_shared_F77=no
13006      enable_shared=no
13007      ;;
13008
13009    sysv4*MP*)
13010      if test -d /usr/nec; then
13011	lt_prog_compiler_pic_F77=-Kconform_pic
13012      fi
13013      ;;
13014
13015    hpux*)
13016      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13017      # not for PA HP-UX.
13018      case $host_cpu in
13019      hppa*64*|ia64*)
13020	# +Z the default
13021	;;
13022      *)
13023	lt_prog_compiler_pic_F77='-fPIC'
13024	;;
13025      esac
13026      ;;
13027
13028    *)
13029      lt_prog_compiler_pic_F77='-fPIC'
13030      ;;
13031    esac
13032  else
13033    # PORTME Check for flag to pass linker flags through the system compiler.
13034    case $host_os in
13035    aix*)
13036      lt_prog_compiler_wl_F77='-Wl,'
13037      if test "$host_cpu" = ia64; then
13038	# AIX 5 now supports IA64 processor
13039	lt_prog_compiler_static_F77='-Bstatic'
13040      else
13041	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13042      fi
13043      ;;
13044      darwin*)
13045        # PIC is the default on this platform
13046        # Common symbols not allowed in MH_DYLIB files
13047       case $cc_basename in
13048         xlc*)
13049         lt_prog_compiler_pic_F77='-qnocommon'
13050         lt_prog_compiler_wl_F77='-Wl,'
13051         ;;
13052       esac
13053       ;;
13054
13055    mingw* | pw32* | os2*)
13056      # This hack is so that the source file can tell whether it is being
13057      # built for inclusion in a dll (and should export symbols for example).
13058      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13059      ;;
13060
13061    hpux9* | hpux10* | hpux11*)
13062      lt_prog_compiler_wl_F77='-Wl,'
13063      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13064      # not for PA HP-UX.
13065      case $host_cpu in
13066      hppa*64*|ia64*)
13067	# +Z the default
13068	;;
13069      *)
13070	lt_prog_compiler_pic_F77='+Z'
13071	;;
13072      esac
13073      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13074      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13075      ;;
13076
13077    irix5* | irix6* | nonstopux*)
13078      lt_prog_compiler_wl_F77='-Wl,'
13079      # PIC (with -KPIC) is the default.
13080      lt_prog_compiler_static_F77='-non_shared'
13081      ;;
13082
13083    newsos6)
13084      lt_prog_compiler_pic_F77='-KPIC'
13085      lt_prog_compiler_static_F77='-Bstatic'
13086      ;;
13087
13088    linux*)
13089      case $cc_basename in
13090      icc* | ecc*)
13091	lt_prog_compiler_wl_F77='-Wl,'
13092	lt_prog_compiler_pic_F77='-KPIC'
13093	lt_prog_compiler_static_F77='-static'
13094        ;;
13095      pgcc* | pgf77* | pgf90* | pgf95*)
13096        # Portland Group compilers (*not* the Pentium gcc compiler,
13097	# which looks to be a dead project)
13098	lt_prog_compiler_wl_F77='-Wl,'
13099	lt_prog_compiler_pic_F77='-fpic'
13100	lt_prog_compiler_static_F77='-Bstatic'
13101        ;;
13102      ccc*)
13103        lt_prog_compiler_wl_F77='-Wl,'
13104        # All Alpha code is PIC.
13105        lt_prog_compiler_static_F77='-non_shared'
13106        ;;
13107      esac
13108      ;;
13109
13110    osf3* | osf4* | osf5*)
13111      lt_prog_compiler_wl_F77='-Wl,'
13112      # All OSF/1 code is PIC.
13113      lt_prog_compiler_static_F77='-non_shared'
13114      ;;
13115
13116    solaris*)
13117      lt_prog_compiler_pic_F77='-KPIC'
13118      lt_prog_compiler_static_F77='-Bstatic'
13119      case $cc_basename in
13120      f77* | f90* | f95*)
13121	lt_prog_compiler_wl_F77='-Qoption ld ';;
13122      *)
13123	lt_prog_compiler_wl_F77='-Wl,';;
13124      esac
13125      ;;
13126
13127    sunos4*)
13128      lt_prog_compiler_wl_F77='-Qoption ld '
13129      lt_prog_compiler_pic_F77='-PIC'
13130      lt_prog_compiler_static_F77='-Bstatic'
13131      ;;
13132
13133    sysv4 | sysv4.2uw2* | sysv4.3*)
13134      lt_prog_compiler_wl_F77='-Wl,'
13135      lt_prog_compiler_pic_F77='-KPIC'
13136      lt_prog_compiler_static_F77='-Bstatic'
13137      ;;
13138
13139    sysv4*MP*)
13140      if test -d /usr/nec ;then
13141	lt_prog_compiler_pic_F77='-Kconform_pic'
13142	lt_prog_compiler_static_F77='-Bstatic'
13143      fi
13144      ;;
13145
13146    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13147      lt_prog_compiler_wl_F77='-Wl,'
13148      lt_prog_compiler_pic_F77='-KPIC'
13149      lt_prog_compiler_static_F77='-Bstatic'
13150      ;;
13151
13152    unicos*)
13153      lt_prog_compiler_wl_F77='-Wl,'
13154      lt_prog_compiler_can_build_shared_F77=no
13155      ;;
13156
13157    uts4*)
13158      lt_prog_compiler_pic_F77='-pic'
13159      lt_prog_compiler_static_F77='-Bstatic'
13160      ;;
13161
13162    *)
13163      lt_prog_compiler_can_build_shared_F77=no
13164      ;;
13165    esac
13166  fi
13167
13168echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13169echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13170
13171#
13172# Check to make sure the PIC flag actually works.
13173#
13174if test -n "$lt_prog_compiler_pic_F77"; then
13175
13176echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13177echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13178if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13179  echo $ECHO_N "(cached) $ECHO_C" >&6
13180else
13181  lt_prog_compiler_pic_works_F77=no
13182  ac_outfile=conftest.$ac_objext
13183   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13184   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13185   # Insert the option either (1) after the last *FLAGS variable, or
13186   # (2) before a word containing "conftest.", or (3) at the end.
13187   # Note that $ac_compile itself does not contain backslashes and begins
13188   # with a dollar sign (not a hyphen), so the echo should work correctly.
13189   # The option is referenced via a variable to avoid confusing sed.
13190   lt_compile=`echo "$ac_compile" | $SED \
13191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13193   -e 's:$: $lt_compiler_flag:'`
13194   (eval echo "\"\$as_me:13194: $lt_compile\"" >&5)
13195   (eval "$lt_compile" 2>conftest.err)
13196   ac_status=$?
13197   cat conftest.err >&5
13198   echo "$as_me:13198: \$? = $ac_status" >&5
13199   if (exit $ac_status) && test -s "$ac_outfile"; then
13200     # The compiler can only warn and ignore the option if not recognized
13201     # So say no if there are warnings other than the usual output.
13202     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13203     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13204     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13205       lt_prog_compiler_pic_works_F77=yes
13206     fi
13207   fi
13208   $rm conftest*
13209
13210fi
13211echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13212echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13213
13214if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13215    case $lt_prog_compiler_pic_F77 in
13216     "" | " "*) ;;
13217     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13218     esac
13219else
13220    lt_prog_compiler_pic_F77=
13221     lt_prog_compiler_can_build_shared_F77=no
13222fi
13223
13224fi
13225case $host_os in
13226  # For platforms which do not support PIC, -DPIC is meaningless:
13227  *djgpp*)
13228    lt_prog_compiler_pic_F77=
13229    ;;
13230  *)
13231    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13232    ;;
13233esac
13234
13235#
13236# Check to make sure the static flag actually works.
13237#
13238wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13239echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13240echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13241if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13242  echo $ECHO_N "(cached) $ECHO_C" >&6
13243else
13244  lt_prog_compiler_static_works_F77=no
13245   save_LDFLAGS="$LDFLAGS"
13246   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13247   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13248   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13249     # The linker can only warn and ignore the option if not recognized
13250     # So say no if there are warnings
13251     if test -s conftest.err; then
13252       # Append any errors to the config.log.
13253       cat conftest.err 1>&5
13254       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13255       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13256       if diff conftest.exp conftest.er2 >/dev/null; then
13257         lt_prog_compiler_static_works_F77=yes
13258       fi
13259     else
13260       lt_prog_compiler_static_works_F77=yes
13261     fi
13262   fi
13263   $rm conftest*
13264   LDFLAGS="$save_LDFLAGS"
13265
13266fi
13267echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13268echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13269
13270if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13271    :
13272else
13273    lt_prog_compiler_static_F77=
13274fi
13275
13276
13277echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13278echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13279if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13280  echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282  lt_cv_prog_compiler_c_o_F77=no
13283   $rm -r conftest 2>/dev/null
13284   mkdir conftest
13285   cd conftest
13286   mkdir out
13287   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13288
13289   lt_compiler_flag="-o out/conftest2.$ac_objext"
13290   # Insert the option either (1) after the last *FLAGS variable, or
13291   # (2) before a word containing "conftest.", or (3) at the end.
13292   # Note that $ac_compile itself does not contain backslashes and begins
13293   # with a dollar sign (not a hyphen), so the echo should work correctly.
13294   lt_compile=`echo "$ac_compile" | $SED \
13295   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13296   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13297   -e 's:$: $lt_compiler_flag:'`
13298   (eval echo "\"\$as_me:13298: $lt_compile\"" >&5)
13299   (eval "$lt_compile" 2>out/conftest.err)
13300   ac_status=$?
13301   cat out/conftest.err >&5
13302   echo "$as_me:13302: \$? = $ac_status" >&5
13303   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13304   then
13305     # The compiler can only warn and ignore the option if not recognized
13306     # So say no if there are warnings
13307     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13308     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13309     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13310       lt_cv_prog_compiler_c_o_F77=yes
13311     fi
13312   fi
13313   chmod u+w . 2>&5
13314   $rm conftest*
13315   # SGI C++ compiler will create directory out/ii_files/ for
13316   # template instantiation
13317   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13318   $rm out/* && rmdir out
13319   cd ..
13320   rmdir conftest
13321   $rm conftest*
13322
13323fi
13324echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13325echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13326
13327
13328hard_links="nottested"
13329if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13330  # do not overwrite the value of need_locks provided by the user
13331  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13332echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13333  hard_links=yes
13334  $rm conftest*
13335  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13336  touch conftest.a
13337  ln conftest.a conftest.b 2>&5 || hard_links=no
13338  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13339  echo "$as_me:$LINENO: result: $hard_links" >&5
13340echo "${ECHO_T}$hard_links" >&6
13341  if test "$hard_links" = no; then
13342    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13343echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13344    need_locks=warn
13345  fi
13346else
13347  need_locks=no
13348fi
13349
13350echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13351echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13352
13353  runpath_var=
13354  allow_undefined_flag_F77=
13355  enable_shared_with_static_runtimes_F77=no
13356  archive_cmds_F77=
13357  archive_expsym_cmds_F77=
13358  old_archive_From_new_cmds_F77=
13359  old_archive_from_expsyms_cmds_F77=
13360  export_dynamic_flag_spec_F77=
13361  whole_archive_flag_spec_F77=
13362  thread_safe_flag_spec_F77=
13363  hardcode_libdir_flag_spec_F77=
13364  hardcode_libdir_flag_spec_ld_F77=
13365  hardcode_libdir_separator_F77=
13366  hardcode_direct_F77=no
13367  hardcode_minus_L_F77=no
13368  hardcode_shlibpath_var_F77=unsupported
13369  link_all_deplibs_F77=unknown
13370  hardcode_automatic_F77=no
13371  module_cmds_F77=
13372  module_expsym_cmds_F77=
13373  always_export_symbols_F77=no
13374  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13375  # include_expsyms should be a list of space-separated symbols to be *always*
13376  # included in the symbol list
13377  include_expsyms_F77=
13378  # exclude_expsyms can be an extended regexp of symbols to exclude
13379  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13380  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13381  # as well as any symbol that contains `d'.
13382  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13383  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13384  # platforms (ab)use it in PIC code, but their linkers get confused if
13385  # the symbol is explicitly referenced.  Since portable code cannot
13386  # rely on this symbol name, it's probably fine to never include it in
13387  # preloaded symbol tables.
13388  extract_expsyms_cmds=
13389  # Just being paranoid about ensuring that cc_basename is set.
13390  for cc_temp in $compiler""; do
13391  case $cc_temp in
13392    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13393    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13394    \-*) ;;
13395    *) break;;
13396  esac
13397done
13398cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13399
13400  case $host_os in
13401  cygwin* | mingw* | pw32*)
13402    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13403    # When not using gcc, we currently assume that we are using
13404    # Microsoft Visual C++.
13405    if test "$GCC" != yes; then
13406      with_gnu_ld=no
13407    fi
13408    ;;
13409  interix*)
13410    # we just hope/assume this is gcc and not c89 (= MSVC++)
13411    with_gnu_ld=yes
13412    ;;
13413  openbsd*)
13414    with_gnu_ld=no
13415    ;;
13416  esac
13417
13418  ld_shlibs_F77=yes
13419  if test "$with_gnu_ld" = yes; then
13420    # If archive_cmds runs LD, not CC, wlarc should be empty
13421    wlarc='${wl}'
13422
13423    # Set some defaults for GNU ld with shared library support. These
13424    # are reset later if shared libraries are not supported. Putting them
13425    # here allows them to be overridden if necessary.
13426    runpath_var=LD_RUN_PATH
13427    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13428    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13429    # ancient GNU ld didn't support --whole-archive et. al.
13430    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13431	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13432      else
13433  	whole_archive_flag_spec_F77=
13434    fi
13435    supports_anon_versioning=no
13436    case `$LD -v 2>/dev/null` in
13437      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13438      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13439      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13440      *\ 2.11.*) ;; # other 2.11 versions
13441      *) supports_anon_versioning=yes ;;
13442    esac
13443
13444    # See if GNU ld supports shared libraries.
13445    case $host_os in
13446    aix3* | aix4* | aix5*)
13447      # On AIX/PPC, the GNU linker is very broken
13448      if test "$host_cpu" != ia64; then
13449	ld_shlibs_F77=no
13450	cat <<EOF 1>&2
13451
13452*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13453*** to be unable to reliably create shared libraries on AIX.
13454*** Therefore, libtool is disabling shared libraries support.  If you
13455*** really care for shared libraries, you may want to modify your PATH
13456*** so that a non-GNU linker is found, and then restart.
13457
13458EOF
13459      fi
13460      ;;
13461
13462    amigaos*)
13463      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13464      hardcode_libdir_flag_spec_F77='-L$libdir'
13465      hardcode_minus_L_F77=yes
13466
13467      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13468      # that the semantics of dynamic libraries on AmigaOS, at least up
13469      # to version 4, is to share data among multiple programs linked
13470      # with the same dynamic library.  Since this doesn't match the
13471      # behavior of shared libraries on other platforms, we can't use
13472      # them.
13473      ld_shlibs_F77=no
13474      ;;
13475
13476    beos*)
13477      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13478	allow_undefined_flag_F77=unsupported
13479	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13480	# support --undefined.  This deserves some investigation.  FIXME
13481	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482      else
13483	ld_shlibs_F77=no
13484      fi
13485      ;;
13486
13487    cygwin* | mingw* | pw32*)
13488      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13489      # as there is no search path for DLLs.
13490      hardcode_libdir_flag_spec_F77='-L$libdir'
13491      allow_undefined_flag_F77=unsupported
13492      always_export_symbols_F77=no
13493      enable_shared_with_static_runtimes_F77=yes
13494      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13495
13496      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13497        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13498	# If the export-symbols file already is a .def file (1st line
13499	# is EXPORTS), use it as is; otherwise, prepend...
13500	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13501	  cp $export_symbols $output_objdir/$soname.def;
13502	else
13503	  echo EXPORTS > $output_objdir/$soname.def;
13504	  cat $export_symbols >> $output_objdir/$soname.def;
13505	fi~
13506	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13507      else
13508	ld_shlibs_F77=no
13509      fi
13510      ;;
13511
13512    interix3*)
13513      hardcode_direct_F77=no
13514      hardcode_shlibpath_var_F77=no
13515      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13516      export_dynamic_flag_spec_F77='${wl}-E'
13517      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13518      # Instead, shared libraries are loaded at an image base (0x10000000 by
13519      # default) and relocated if they conflict, which is a slow very memory
13520      # consuming and fragmenting process.  To avoid this, we pick a random,
13521      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13522      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13523      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13524      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13525      ;;
13526
13527    linux*)
13528      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13529	tmp_addflag=
13530	case $cc_basename,$host_cpu in
13531	pgcc*)				# Portland Group C compiler
13532	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13533	  tmp_addflag=' $pic_flag'
13534	  ;;
13535	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13536	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13537	  tmp_addflag=' $pic_flag -Mnomain' ;;
13538	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13539	  tmp_addflag=' -i_dynamic' ;;
13540	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13541	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13542	ifc* | ifort*)			# Intel Fortran compiler
13543	  tmp_addflag=' -nofor_main' ;;
13544	esac
13545	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13546
13547	if test $supports_anon_versioning = yes; then
13548	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13549  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13550  $echo "local: *; };" >> $output_objdir/$libname.ver~
13551	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13552	fi
13553      else
13554	ld_shlibs_F77=no
13555      fi
13556      ;;
13557
13558    netbsd*)
13559      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13560	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13561	wlarc=
13562      else
13563	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13565      fi
13566      ;;
13567
13568    solaris*)
13569      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13570	ld_shlibs_F77=no
13571	cat <<EOF 1>&2
13572
13573*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13574*** create shared libraries on Solaris systems.  Therefore, libtool
13575*** is disabling shared libraries support.  We urge you to upgrade GNU
13576*** binutils to release 2.9.1 or newer.  Another option is to modify
13577*** your PATH or compiler configuration so that the native linker is
13578*** used, and then restart.
13579
13580EOF
13581      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13582	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13583	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13584      else
13585	ld_shlibs_F77=no
13586      fi
13587      ;;
13588
13589    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13590      case `$LD -v 2>&1` in
13591        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13592	ld_shlibs_F77=no
13593	cat <<_LT_EOF 1>&2
13594
13595*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13596*** reliably create shared libraries on SCO systems.  Therefore, libtool
13597*** is disabling shared libraries support.  We urge you to upgrade GNU
13598*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13599*** your PATH or compiler configuration so that the native linker is
13600*** used, and then restart.
13601
13602_LT_EOF
13603	;;
13604	*)
13605	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13606	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13607	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13608	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13609	  else
13610	    ld_shlibs_F77=no
13611	  fi
13612	;;
13613      esac
13614      ;;
13615
13616    sunos4*)
13617      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13618      wlarc=
13619      hardcode_direct_F77=yes
13620      hardcode_shlibpath_var_F77=no
13621      ;;
13622
13623    *)
13624      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13625	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13627      else
13628	ld_shlibs_F77=no
13629      fi
13630      ;;
13631    esac
13632
13633    if test "$ld_shlibs_F77" = no; then
13634      runpath_var=
13635      hardcode_libdir_flag_spec_F77=
13636      export_dynamic_flag_spec_F77=
13637      whole_archive_flag_spec_F77=
13638    fi
13639  else
13640    # PORTME fill in a description of your system's linker (not GNU ld)
13641    case $host_os in
13642    aix3*)
13643      allow_undefined_flag_F77=unsupported
13644      always_export_symbols_F77=yes
13645      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13646      # Note: this linker hardcodes the directories in LIBPATH if there
13647      # are no directories specified by -L.
13648      hardcode_minus_L_F77=yes
13649      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13650	# Neither direct hardcoding nor static linking is supported with a
13651	# broken collect2.
13652	hardcode_direct_F77=unsupported
13653      fi
13654      ;;
13655
13656    aix4* | aix5*)
13657      if test "$host_cpu" = ia64; then
13658	# On IA64, the linker does run time linking by default, so we don't
13659	# have to do anything special.
13660	aix_use_runtimelinking=no
13661	exp_sym_flag='-Bexport'
13662	no_entry_flag=""
13663      else
13664	# If we're using GNU nm, then we don't want the "-C" option.
13665	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13666	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13667	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13668	else
13669	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13670	fi
13671	aix_use_runtimelinking=no
13672
13673	# Test if we are trying to use run time linking or normal
13674	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13675	# need to do runtime linking.
13676	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13677	  for ld_flag in $LDFLAGS; do
13678  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13679  	    aix_use_runtimelinking=yes
13680  	    break
13681  	  fi
13682	  done
13683	  ;;
13684	esac
13685
13686	exp_sym_flag='-bexport'
13687	no_entry_flag='-bnoentry'
13688      fi
13689
13690      # When large executables or shared objects are built, AIX ld can
13691      # have problems creating the table of contents.  If linking a library
13692      # or program results in "error TOC overflow" add -mminimal-toc to
13693      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13694      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13695
13696      archive_cmds_F77=''
13697      hardcode_direct_F77=yes
13698      hardcode_libdir_separator_F77=':'
13699      link_all_deplibs_F77=yes
13700
13701      if test "$GCC" = yes; then
13702	case $host_os in aix4.[012]|aix4.[012].*)
13703	# We only want to do this on AIX 4.2 and lower, the check
13704	# below for broken collect2 doesn't work under 4.3+
13705	  collect2name=`${CC} -print-prog-name=collect2`
13706	  if test -f "$collect2name" && \
13707  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13708	  then
13709  	  # We have reworked collect2
13710  	  hardcode_direct_F77=yes
13711	  else
13712  	  # We have old collect2
13713  	  hardcode_direct_F77=unsupported
13714  	  # It fails to find uninstalled libraries when the uninstalled
13715  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13716  	  # to unsupported forces relinking
13717  	  hardcode_minus_L_F77=yes
13718  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13719  	  hardcode_libdir_separator_F77=
13720	  fi
13721	  ;;
13722	esac
13723	shared_flag='-shared'
13724	if test "$aix_use_runtimelinking" = yes; then
13725	  shared_flag="$shared_flag "'${wl}-G'
13726	fi
13727      else
13728	# not using gcc
13729	if test "$host_cpu" = ia64; then
13730  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13731  	# chokes on -Wl,-G. The following line is correct:
13732	  shared_flag='-G'
13733	else
13734	  if test "$aix_use_runtimelinking" = yes; then
13735	    shared_flag='${wl}-G'
13736	  else
13737	    shared_flag='${wl}-bM:SRE'
13738	  fi
13739	fi
13740      fi
13741
13742      # It seems that -bexpall does not export symbols beginning with
13743      # underscore (_), so it is better to generate a list of symbols to export.
13744      always_export_symbols_F77=yes
13745      if test "$aix_use_runtimelinking" = yes; then
13746	# Warning - without using the other runtime loading flags (-brtl),
13747	# -berok will link without error, but may produce a broken library.
13748	allow_undefined_flag_F77='-berok'
13749       # Determine the default libpath from the value encoded in an empty executable.
13750       cat >conftest.$ac_ext <<_ACEOF
13751      program main
13752
13753      end
13754_ACEOF
13755rm -f conftest.$ac_objext conftest$ac_exeext
13756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757  (eval $ac_link) 2>conftest.er1
13758  ac_status=$?
13759  grep -v '^ *+' conftest.er1 >conftest.err
13760  rm -f conftest.er1
13761  cat conftest.err >&5
13762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763  (exit $ac_status); } &&
13764	 { ac_try='test -z "$ac_f77_werror_flag"
13765			 || test ! -s conftest.err'
13766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767  (eval $ac_try) 2>&5
13768  ac_status=$?
13769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770  (exit $ac_status); }; } &&
13771	 { ac_try='test -s conftest$ac_exeext'
13772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773  (eval $ac_try) 2>&5
13774  ac_status=$?
13775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776  (exit $ac_status); }; }; then
13777
13778aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13779}'`
13780# Check for a 64-bit object if we didn't find anything.
13781if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13782}'`; fi
13783else
13784  echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787fi
13788rm -f conftest.err conftest.$ac_objext \
13789      conftest$ac_exeext conftest.$ac_ext
13790if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13791
13792       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13793	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13794       else
13795	if test "$host_cpu" = ia64; then
13796	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13797	  allow_undefined_flag_F77="-z nodefs"
13798	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13799	else
13800	 # Determine the default libpath from the value encoded in an empty executable.
13801	 cat >conftest.$ac_ext <<_ACEOF
13802      program main
13803
13804      end
13805_ACEOF
13806rm -f conftest.$ac_objext conftest$ac_exeext
13807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808  (eval $ac_link) 2>conftest.er1
13809  ac_status=$?
13810  grep -v '^ *+' conftest.er1 >conftest.err
13811  rm -f conftest.er1
13812  cat conftest.err >&5
13813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814  (exit $ac_status); } &&
13815	 { ac_try='test -z "$ac_f77_werror_flag"
13816			 || test ! -s conftest.err'
13817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818  (eval $ac_try) 2>&5
13819  ac_status=$?
13820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821  (exit $ac_status); }; } &&
13822	 { ac_try='test -s conftest$ac_exeext'
13823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824  (eval $ac_try) 2>&5
13825  ac_status=$?
13826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827  (exit $ac_status); }; }; then
13828
13829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13830}'`
13831# Check for a 64-bit object if we didn't find anything.
13832if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13833}'`; fi
13834else
13835  echo "$as_me: failed program was:" >&5
13836sed 's/^/| /' conftest.$ac_ext >&5
13837
13838fi
13839rm -f conftest.err conftest.$ac_objext \
13840      conftest$ac_exeext conftest.$ac_ext
13841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13842
13843	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13844	  # Warning - without using the other run time loading flags,
13845	  # -berok will link without error, but may produce a broken library.
13846	  no_undefined_flag_F77=' ${wl}-bernotok'
13847	  allow_undefined_flag_F77=' ${wl}-berok'
13848	  # Exported symbols can be pulled into shared objects from archives
13849	  whole_archive_flag_spec_F77='$convenience'
13850	  archive_cmds_need_lc_F77=yes
13851	  # This is similar to how AIX traditionally builds its shared libraries.
13852	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13853	fi
13854      fi
13855      ;;
13856
13857    amigaos*)
13858      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13859      hardcode_libdir_flag_spec_F77='-L$libdir'
13860      hardcode_minus_L_F77=yes
13861      # see comment about different semantics on the GNU ld section
13862      ld_shlibs_F77=no
13863      ;;
13864
13865    bsdi[45]*)
13866      export_dynamic_flag_spec_F77=-rdynamic
13867      ;;
13868
13869    cygwin* | mingw* | pw32*)
13870      # When not using gcc, we currently assume that we are using
13871      # Microsoft Visual C++.
13872      # hardcode_libdir_flag_spec is actually meaningless, as there is
13873      # no search path for DLLs.
13874      hardcode_libdir_flag_spec_F77=' '
13875      allow_undefined_flag_F77=unsupported
13876      # Tell ltmain to make .lib files, not .a files.
13877      libext=lib
13878      # Tell ltmain to make .dll files, not .so files.
13879      shrext_cmds=".dll"
13880      # FIXME: Setting linknames here is a bad hack.
13881      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13882      # The linker will automatically build a .lib file if we build a DLL.
13883      old_archive_From_new_cmds_F77='true'
13884      # FIXME: Should let the user specify the lib program.
13885      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13886      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13887      enable_shared_with_static_runtimes_F77=yes
13888      ;;
13889
13890    darwin* | rhapsody*)
13891      case $host_os in
13892        rhapsody* | darwin1.[012])
13893         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13894         ;;
13895       *) # Darwin 1.3 on
13896         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13897           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13898         else
13899           case ${MACOSX_DEPLOYMENT_TARGET} in
13900             10.[012])
13901               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13902               ;;
13903             10.*)
13904               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13905               ;;
13906           esac
13907         fi
13908         ;;
13909      esac
13910      archive_cmds_need_lc_F77=no
13911      hardcode_direct_F77=no
13912      hardcode_automatic_F77=yes
13913      hardcode_shlibpath_var_F77=unsupported
13914      whole_archive_flag_spec_F77=''
13915      link_all_deplibs_F77=yes
13916    if test "$GCC" = yes ; then
13917    	output_verbose_link_cmd='echo'
13918        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13919      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13920      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13921      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13922      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13923    else
13924      case $cc_basename in
13925        xlc*)
13926         output_verbose_link_cmd='echo'
13927         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13928         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13929          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13930         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13931          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13932          ;;
13933       *)
13934         ld_shlibs_F77=no
13935          ;;
13936      esac
13937    fi
13938      ;;
13939
13940    dgux*)
13941      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942      hardcode_libdir_flag_spec_F77='-L$libdir'
13943      hardcode_shlibpath_var_F77=no
13944      ;;
13945
13946    freebsd1*)
13947      ld_shlibs_F77=no
13948      ;;
13949
13950    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13951    # support.  Future versions do this automatically, but an explicit c++rt0.o
13952    # does not break anything, and helps significantly (at the cost of a little
13953    # extra space).
13954    freebsd2.2*)
13955      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13956      hardcode_libdir_flag_spec_F77='-R$libdir'
13957      hardcode_direct_F77=yes
13958      hardcode_shlibpath_var_F77=no
13959      ;;
13960
13961    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13962    freebsd2*)
13963      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13964      hardcode_direct_F77=yes
13965      hardcode_minus_L_F77=yes
13966      hardcode_shlibpath_var_F77=no
13967      ;;
13968
13969    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13970    freebsd* | kfreebsd*-gnu | dragonfly*)
13971      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13972      hardcode_libdir_flag_spec_F77='-R$libdir'
13973      hardcode_direct_F77=yes
13974      hardcode_shlibpath_var_F77=no
13975      ;;
13976
13977    hpux9*)
13978      if test "$GCC" = yes; then
13979	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13980      else
13981	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13982      fi
13983      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13984      hardcode_libdir_separator_F77=:
13985      hardcode_direct_F77=yes
13986
13987      # hardcode_minus_L: Not really in the search PATH,
13988      # but as the default location of the library.
13989      hardcode_minus_L_F77=yes
13990      export_dynamic_flag_spec_F77='${wl}-E'
13991      ;;
13992
13993    hpux10*)
13994      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13995	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13996      else
13997	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13998      fi
13999      if test "$with_gnu_ld" = no; then
14000	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14001	hardcode_libdir_separator_F77=:
14002
14003	hardcode_direct_F77=yes
14004	export_dynamic_flag_spec_F77='${wl}-E'
14005
14006	# hardcode_minus_L: Not really in the search PATH,
14007	# but as the default location of the library.
14008	hardcode_minus_L_F77=yes
14009      fi
14010      ;;
14011
14012    hpux11*)
14013      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14014	case $host_cpu in
14015	hppa*64*)
14016	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14017	  ;;
14018	ia64*)
14019	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14020	  ;;
14021	*)
14022	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14023	  ;;
14024	esac
14025      else
14026	case $host_cpu in
14027	hppa*64*)
14028	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14029	  ;;
14030	ia64*)
14031	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14032	  ;;
14033	*)
14034	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14035	  ;;
14036	esac
14037      fi
14038      if test "$with_gnu_ld" = no; then
14039	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14040	hardcode_libdir_separator_F77=:
14041
14042	case $host_cpu in
14043	hppa*64*|ia64*)
14044	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14045	  hardcode_direct_F77=no
14046	  hardcode_shlibpath_var_F77=no
14047	  ;;
14048	*)
14049	  hardcode_direct_F77=yes
14050	  export_dynamic_flag_spec_F77='${wl}-E'
14051
14052	  # hardcode_minus_L: Not really in the search PATH,
14053	  # but as the default location of the library.
14054	  hardcode_minus_L_F77=yes
14055	  ;;
14056	esac
14057      fi
14058      ;;
14059
14060    irix5* | irix6* | nonstopux*)
14061      if test "$GCC" = yes; then
14062	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14063      else
14064	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14065	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14066      fi
14067      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14068      hardcode_libdir_separator_F77=:
14069      link_all_deplibs_F77=yes
14070      ;;
14071
14072    netbsd*)
14073      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14074	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14075      else
14076	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14077      fi
14078      hardcode_libdir_flag_spec_F77='-R$libdir'
14079      hardcode_direct_F77=yes
14080      hardcode_shlibpath_var_F77=no
14081      ;;
14082
14083    newsos6)
14084      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085      hardcode_direct_F77=yes
14086      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14087      hardcode_libdir_separator_F77=:
14088      hardcode_shlibpath_var_F77=no
14089      ;;
14090
14091    openbsd*)
14092      hardcode_direct_F77=yes
14093      hardcode_shlibpath_var_F77=no
14094      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14095	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14096	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14097	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14098	export_dynamic_flag_spec_F77='${wl}-E'
14099      else
14100       case $host_os in
14101	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14102	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14103	   hardcode_libdir_flag_spec_F77='-R$libdir'
14104	   ;;
14105	 *)
14106	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14107	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14108	   ;;
14109       esac
14110      fi
14111      ;;
14112
14113    os2*)
14114      hardcode_libdir_flag_spec_F77='-L$libdir'
14115      hardcode_minus_L_F77=yes
14116      allow_undefined_flag_F77=unsupported
14117      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14118      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14119      ;;
14120
14121    osf3*)
14122      if test "$GCC" = yes; then
14123	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14124	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14125      else
14126	allow_undefined_flag_F77=' -expect_unresolved \*'
14127	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14128      fi
14129      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14130      hardcode_libdir_separator_F77=:
14131      ;;
14132
14133    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14134      if test "$GCC" = yes; then
14135	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14136	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14137	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14138      else
14139	allow_undefined_flag_F77=' -expect_unresolved \*'
14140	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14141	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14142	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14143
14144	# Both c and cxx compiler support -rpath directly
14145	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14146      fi
14147      hardcode_libdir_separator_F77=:
14148      ;;
14149
14150    solaris*)
14151      no_undefined_flag_F77=' -z text'
14152      if test "$GCC" = yes; then
14153	wlarc='${wl}'
14154	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14155	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14156	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14157      else
14158	wlarc=''
14159	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14160	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14161  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14162      fi
14163      hardcode_libdir_flag_spec_F77='-R$libdir'
14164      hardcode_shlibpath_var_F77=no
14165      case $host_os in
14166      solaris2.[0-5] | solaris2.[0-5].*) ;;
14167      *)
14168 	# The compiler driver will combine linker options so we
14169 	# cannot just pass the convience library names through
14170 	# without $wl, iff we do not link with $LD.
14171 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14172 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14173 	case $wlarc in
14174 	'')
14175 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14176 	*)
14177 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14178 	esac ;;
14179      esac
14180      link_all_deplibs_F77=yes
14181      ;;
14182
14183    sunos4*)
14184      if test "x$host_vendor" = xsequent; then
14185	# Use $CC to link under sequent, because it throws in some extra .o
14186	# files that make .init and .fini sections work.
14187	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14188      else
14189	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14190      fi
14191      hardcode_libdir_flag_spec_F77='-L$libdir'
14192      hardcode_direct_F77=yes
14193      hardcode_minus_L_F77=yes
14194      hardcode_shlibpath_var_F77=no
14195      ;;
14196
14197    sysv4)
14198      case $host_vendor in
14199	sni)
14200	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201	  hardcode_direct_F77=yes # is this really true???
14202	;;
14203	siemens)
14204	  ## LD is ld it makes a PLAMLIB
14205	  ## CC just makes a GrossModule.
14206	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14207	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14208	  hardcode_direct_F77=no
14209        ;;
14210	motorola)
14211	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14212	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14213	;;
14214      esac
14215      runpath_var='LD_RUN_PATH'
14216      hardcode_shlibpath_var_F77=no
14217      ;;
14218
14219    sysv4.3*)
14220      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221      hardcode_shlibpath_var_F77=no
14222      export_dynamic_flag_spec_F77='-Bexport'
14223      ;;
14224
14225    sysv4*MP*)
14226      if test -d /usr/nec; then
14227	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228	hardcode_shlibpath_var_F77=no
14229	runpath_var=LD_RUN_PATH
14230	hardcode_runpath_var=yes
14231	ld_shlibs_F77=yes
14232      fi
14233      ;;
14234
14235    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14236      no_undefined_flag_F77='${wl}-z,text'
14237      archive_cmds_need_lc_F77=no
14238      hardcode_shlibpath_var_F77=no
14239      runpath_var='LD_RUN_PATH'
14240
14241      if test "$GCC" = yes; then
14242	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14244      else
14245	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14247      fi
14248      ;;
14249
14250    sysv5* | sco3.2v5* | sco5v6*)
14251      # Note: We can NOT use -z defs as we might desire, because we do not
14252      # link with -lc, and that would cause any symbols used from libc to
14253      # always be unresolved, which means just about no library would
14254      # ever link correctly.  If we're not using GNU ld we use -z text
14255      # though, which does catch some bad symbols but isn't as heavy-handed
14256      # as -z defs.
14257      no_undefined_flag_F77='${wl}-z,text'
14258      allow_undefined_flag_F77='${wl}-z,nodefs'
14259      archive_cmds_need_lc_F77=no
14260      hardcode_shlibpath_var_F77=no
14261      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14262      hardcode_libdir_separator_F77=':'
14263      link_all_deplibs_F77=yes
14264      export_dynamic_flag_spec_F77='${wl}-Bexport'
14265      runpath_var='LD_RUN_PATH'
14266
14267      if test "$GCC" = yes; then
14268	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14270      else
14271	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14273      fi
14274      ;;
14275
14276    uts4*)
14277      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278      hardcode_libdir_flag_spec_F77='-L$libdir'
14279      hardcode_shlibpath_var_F77=no
14280      ;;
14281
14282    *)
14283      ld_shlibs_F77=no
14284      ;;
14285    esac
14286  fi
14287
14288echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14289echo "${ECHO_T}$ld_shlibs_F77" >&6
14290test "$ld_shlibs_F77" = no && can_build_shared=no
14291
14292#
14293# Do we need to explicitly link libc?
14294#
14295case "x$archive_cmds_need_lc_F77" in
14296x|xyes)
14297  # Assume -lc should be added
14298  archive_cmds_need_lc_F77=yes
14299
14300  if test "$enable_shared" = yes && test "$GCC" = yes; then
14301    case $archive_cmds_F77 in
14302    *'~'*)
14303      # FIXME: we may have to deal with multi-command sequences.
14304      ;;
14305    '$CC '*)
14306      # Test whether the compiler implicitly links with -lc since on some
14307      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14308      # to ld, don't add -lc before -lgcc.
14309      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14310echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14311      $rm conftest*
14312      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313
14314      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315  (eval $ac_compile) 2>&5
14316  ac_status=$?
14317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318  (exit $ac_status); } 2>conftest.err; then
14319        soname=conftest
14320        lib=conftest
14321        libobjs=conftest.$ac_objext
14322        deplibs=
14323        wl=$lt_prog_compiler_wl_F77
14324	pic_flag=$lt_prog_compiler_pic_F77
14325        compiler_flags=-v
14326        linker_flags=-v
14327        verstring=
14328        output_objdir=.
14329        libname=conftest
14330        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14331        allow_undefined_flag_F77=
14332        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14333  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14334  ac_status=$?
14335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336  (exit $ac_status); }
14337        then
14338	  archive_cmds_need_lc_F77=no
14339        else
14340	  archive_cmds_need_lc_F77=yes
14341        fi
14342        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14343      else
14344        cat conftest.err 1>&5
14345      fi
14346      $rm conftest*
14347      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14348echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14349      ;;
14350    esac
14351  fi
14352  ;;
14353esac
14354
14355echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14356echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14357library_names_spec=
14358libname_spec='lib$name'
14359soname_spec=
14360shrext_cmds=".so"
14361postinstall_cmds=
14362postuninstall_cmds=
14363finish_cmds=
14364finish_eval=
14365shlibpath_var=
14366shlibpath_overrides_runpath=unknown
14367version_type=none
14368dynamic_linker="$host_os ld.so"
14369sys_lib_dlsearch_path_spec="/lib /usr/lib"
14370if test "$GCC" = yes; then
14371  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14372  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14373    # if the path contains ";" then we assume it to be the separator
14374    # otherwise default to the standard path separator (i.e. ":") - it is
14375    # assumed that no part of a normal pathname contains ";" but that should
14376    # okay in the real world where ";" in dirpaths is itself problematic.
14377    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14378  else
14379    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14380  fi
14381else
14382  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14383fi
14384need_lib_prefix=unknown
14385hardcode_into_libs=no
14386
14387# when you set need_version to no, make sure it does not cause -set_version
14388# flags to be left without arguments
14389need_version=unknown
14390
14391case $host_os in
14392aix3*)
14393  version_type=linux
14394  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14395  shlibpath_var=LIBPATH
14396
14397  # AIX 3 has no versioning support, so we append a major version to the name.
14398  soname_spec='${libname}${release}${shared_ext}$major'
14399  ;;
14400
14401aix4* | aix5*)
14402  version_type=linux
14403  need_lib_prefix=no
14404  need_version=no
14405  hardcode_into_libs=yes
14406  if test "$host_cpu" = ia64; then
14407    # AIX 5 supports IA64
14408    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14409    shlibpath_var=LD_LIBRARY_PATH
14410  else
14411    # With GCC up to 2.95.x, collect2 would create an import file
14412    # for dependence libraries.  The import file would start with
14413    # the line `#! .'.  This would cause the generated library to
14414    # depend on `.', always an invalid library.  This was fixed in
14415    # development snapshots of GCC prior to 3.0.
14416    case $host_os in
14417      aix4 | aix4.[01] | aix4.[01].*)
14418      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14419	   echo ' yes '
14420	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14421	:
14422      else
14423	can_build_shared=no
14424      fi
14425      ;;
14426    esac
14427    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14428    # soname into executable. Probably we can add versioning support to
14429    # collect2, so additional links can be useful in future.
14430    if test "$aix_use_runtimelinking" = yes; then
14431      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14432      # instead of lib<name>.a to let people know that these are not
14433      # typical AIX shared libraries.
14434      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435    else
14436      # We preserve .a as extension for shared libraries through AIX4.2
14437      # and later when we are not doing run time linking.
14438      library_names_spec='${libname}${release}.a $libname.a'
14439      soname_spec='${libname}${release}${shared_ext}$major'
14440    fi
14441    shlibpath_var=LIBPATH
14442  fi
14443  ;;
14444
14445amigaos*)
14446  library_names_spec='$libname.ixlibrary $libname.a'
14447  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14448  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14449  ;;
14450
14451beos*)
14452  library_names_spec='${libname}${shared_ext}'
14453  dynamic_linker="$host_os ld.so"
14454  shlibpath_var=LIBRARY_PATH
14455  ;;
14456
14457bsdi[45]*)
14458  version_type=linux
14459  need_version=no
14460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461  soname_spec='${libname}${release}${shared_ext}$major'
14462  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14463  shlibpath_var=LD_LIBRARY_PATH
14464  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14465  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14466  # the default ld.so.conf also contains /usr/contrib/lib and
14467  # /usr/local/lib (/usr/X11 is a link to /usr/local), but let us allow
14468  # libtool to hard-code these into programs
14469  ;;
14470
14471cygwin* | mingw* | pw32*)
14472  version_type=windows
14473  shrext_cmds=".dll"
14474  need_version=no
14475  need_lib_prefix=no
14476
14477  case $GCC,$host_os in
14478  yes,cygwin* | yes,mingw* | yes,pw32*)
14479    library_names_spec='$libname.dll.a'
14480    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14481    postinstall_cmds='base_file=`basename \${file}`~
14482      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14483      dldir=$destdir/`dirname \$dlpath`~
14484      test -d \$dldir || mkdir -p \$dldir~
14485      $install_prog $dir/$dlname \$dldir/$dlname~
14486      chmod a+x \$dldir/$dlname'
14487    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14488      dlpath=$dir/\$dldll~
14489       $rm \$dlpath'
14490    shlibpath_overrides_runpath=yes
14491
14492    case $host_os in
14493    cygwin*)
14494      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14495      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14497      ;;
14498    mingw*)
14499      # MinGW DLLs use traditional 'lib' prefix
14500      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14501      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14502      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14503        # It is most probably a Windows format PATH printed by
14504        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14505        # path with ; separators, and with drive letters. We can handle the
14506        # drive letters (cygwin fileutils understands them), so leave them,
14507        # especially as we might pass files found there to a mingw objdump,
14508        # which wouldn't understand a cygwinified path. Ahh.
14509        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14510      else
14511        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14512      fi
14513      ;;
14514    pw32*)
14515      # pw32 DLLs use 'pw' prefix rather than 'lib'
14516      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14517      ;;
14518    esac
14519    ;;
14520
14521  *)
14522    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14523    ;;
14524  esac
14525  dynamic_linker='Win32 ld.exe'
14526  # FIXME: first we should search . and the directory the executable is in
14527  shlibpath_var=PATH
14528  ;;
14529
14530darwin* | rhapsody*)
14531  dynamic_linker="$host_os dyld"
14532  version_type=darwin
14533  need_lib_prefix=no
14534  need_version=no
14535  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14536  soname_spec='${libname}${release}${major}$shared_ext'
14537  shlibpath_overrides_runpath=yes
14538  shlibpath_var=DYLD_LIBRARY_PATH
14539  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14540  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14541  if test "$GCC" = yes; then
14542    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14543  else
14544    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14545  fi
14546  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14547  ;;
14548
14549dgux*)
14550  version_type=linux
14551  need_lib_prefix=no
14552  need_version=no
14553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14554  soname_spec='${libname}${release}${shared_ext}$major'
14555  shlibpath_var=LD_LIBRARY_PATH
14556  ;;
14557
14558freebsd1*)
14559  dynamic_linker=no
14560  ;;
14561
14562kfreebsd*-gnu)
14563  version_type=linux
14564  need_lib_prefix=no
14565  need_version=no
14566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14567  soname_spec='${libname}${release}${shared_ext}$major'
14568  shlibpath_var=LD_LIBRARY_PATH
14569  shlibpath_overrides_runpath=no
14570  hardcode_into_libs=yes
14571  dynamic_linker='GNU ld.so'
14572  ;;
14573
14574freebsd* | dragonfly*)
14575  # DragonFly does not have aout.  When/if they implement a new
14576  # versioning mechanism, adjust this.
14577  if test -x /usr/bin/objformat; then
14578    objformat=`/usr/bin/objformat`
14579  else
14580    case $host_os in
14581    freebsd[123]*) objformat=aout ;;
14582    *) objformat=elf ;;
14583    esac
14584  fi
14585  version_type=freebsd-$objformat
14586  case $version_type in
14587    freebsd-elf*)
14588      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14589      need_version=no
14590      need_lib_prefix=no
14591      ;;
14592    freebsd-*)
14593      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14594      need_version=yes
14595      ;;
14596  esac
14597  shlibpath_var=LD_LIBRARY_PATH
14598  case $host_os in
14599  freebsd2*)
14600    shlibpath_overrides_runpath=yes
14601    ;;
14602  freebsd3.[01]* | freebsdelf3.[01]*)
14603    shlibpath_overrides_runpath=yes
14604    hardcode_into_libs=yes
14605    ;;
14606  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14607  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14608    shlibpath_overrides_runpath=no
14609    hardcode_into_libs=yes
14610    ;;
14611  freebsd*) # from 4.6 on
14612    shlibpath_overrides_runpath=yes
14613    hardcode_into_libs=yes
14614    ;;
14615  esac
14616  ;;
14617
14618gnu*)
14619  version_type=linux
14620  need_lib_prefix=no
14621  need_version=no
14622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14623  soname_spec='${libname}${release}${shared_ext}$major'
14624  shlibpath_var=LD_LIBRARY_PATH
14625  hardcode_into_libs=yes
14626  ;;
14627
14628hpux9* | hpux10* | hpux11*)
14629  # Give a soname corresponding to the major version so that dld.sl refuses to
14630  # link against other versions.
14631  version_type=sunos
14632  need_lib_prefix=no
14633  need_version=no
14634  case $host_cpu in
14635  ia64*)
14636    shrext_cmds='.so'
14637    hardcode_into_libs=yes
14638    dynamic_linker="$host_os dld.so"
14639    shlibpath_var=LD_LIBRARY_PATH
14640    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14641    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642    soname_spec='${libname}${release}${shared_ext}$major'
14643    if test "X$HPUX_IA64_MODE" = X32; then
14644      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14645    else
14646      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14647    fi
14648    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14649    ;;
14650   hppa*64*)
14651     shrext_cmds='.sl'
14652     hardcode_into_libs=yes
14653     dynamic_linker="$host_os dld.sl"
14654     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14655     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657     soname_spec='${libname}${release}${shared_ext}$major'
14658     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14659     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14660     ;;
14661   *)
14662    shrext_cmds='.sl'
14663    dynamic_linker="$host_os dld.sl"
14664    shlibpath_var=SHLIB_PATH
14665    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667    soname_spec='${libname}${release}${shared_ext}$major'
14668    ;;
14669  esac
14670  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14671  postinstall_cmds='chmod 555 $lib'
14672  ;;
14673
14674interix3*)
14675  version_type=linux
14676  need_lib_prefix=no
14677  need_version=no
14678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14679  soname_spec='${libname}${release}${shared_ext}$major'
14680  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14681  shlibpath_var=LD_LIBRARY_PATH
14682  shlibpath_overrides_runpath=no
14683  hardcode_into_libs=yes
14684  ;;
14685
14686irix5* | irix6* | nonstopux*)
14687  case $host_os in
14688    nonstopux*) version_type=nonstopux ;;
14689    *)
14690	if test "$lt_cv_prog_gnu_ld" = yes; then
14691		version_type=linux
14692	else
14693		version_type=irix
14694	fi ;;
14695  esac
14696  need_lib_prefix=no
14697  need_version=no
14698  soname_spec='${libname}${release}${shared_ext}$major'
14699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14700  case $host_os in
14701  irix5* | nonstopux*)
14702    libsuff= shlibsuff=
14703    ;;
14704  *)
14705    case $LD in # libtool.m4 will add one of these switches to LD
14706    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14707      libsuff= shlibsuff= libmagic=32-bit;;
14708    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14709      libsuff=32 shlibsuff=N32 libmagic=N32;;
14710    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14711      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14712    *) libsuff= shlibsuff= libmagic=never-match;;
14713    esac
14714    ;;
14715  esac
14716  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14717  shlibpath_overrides_runpath=no
14718  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14719  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14720  hardcode_into_libs=yes
14721  ;;
14722
14723# No shared lib support for Linux oldld, aout, or coff.
14724linux*oldld* | linux*aout* | linux*coff*)
14725  dynamic_linker=no
14726  ;;
14727
14728# This must be Linux ELF.
14729linux*)
14730  version_type=linux
14731  need_lib_prefix=no
14732  need_version=no
14733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734  soname_spec='${libname}${release}${shared_ext}$major'
14735  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14736  shlibpath_var=LD_LIBRARY_PATH
14737  shlibpath_overrides_runpath=no
14738  # This implies no fast_install, which is unacceptable.
14739  # Some rework will be needed to allow for fast_install
14740  # before this can be enabled.
14741  hardcode_into_libs=yes
14742
14743  # Append ld.so.conf contents to the search path
14744  if test -f /etc/ld.so.conf; then
14745    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14746    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14747  fi
14748
14749  # We used to test for /lib/ld.so.1 and disable shared libraries on
14750  # powerpc, because MkLinux only supported shared libraries with the
14751  # GNU dynamic linker.  Since this was broken with cross compilers,
14752  # most powerpc-linux boxes support dynamic linking these days and
14753  # people can always --disable-shared, the test was removed, and we
14754  # assume the GNU/Linux dynamic linker is in use.
14755  dynamic_linker='GNU/Linux ld.so'
14756  ;;
14757
14758knetbsd*-gnu)
14759  version_type=linux
14760  need_lib_prefix=no
14761  need_version=no
14762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763  soname_spec='${libname}${release}${shared_ext}$major'
14764  shlibpath_var=LD_LIBRARY_PATH
14765  shlibpath_overrides_runpath=no
14766  hardcode_into_libs=yes
14767  dynamic_linker='GNU ld.so'
14768  ;;
14769
14770netbsd*)
14771  version_type=sunos
14772  need_lib_prefix=no
14773  need_version=no
14774  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14777    dynamic_linker='NetBSD (a.out) ld.so'
14778  else
14779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780    soname_spec='${libname}${release}${shared_ext}$major'
14781    dynamic_linker='NetBSD ld.elf_so'
14782  fi
14783  shlibpath_var=LD_LIBRARY_PATH
14784  shlibpath_overrides_runpath=yes
14785  hardcode_into_libs=yes
14786  ;;
14787
14788newsos6)
14789  version_type=linux
14790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791  shlibpath_var=LD_LIBRARY_PATH
14792  shlibpath_overrides_runpath=yes
14793  ;;
14794
14795nto-qnx*)
14796  version_type=linux
14797  need_lib_prefix=no
14798  need_version=no
14799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800  soname_spec='${libname}${release}${shared_ext}$major'
14801  shlibpath_var=LD_LIBRARY_PATH
14802  shlibpath_overrides_runpath=yes
14803  ;;
14804
14805openbsd*)
14806  version_type=sunos
14807  sys_lib_dlsearch_path_spec="/usr/lib"
14808  need_lib_prefix=no
14809  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14810  case $host_os in
14811    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14812    *)                         need_version=no  ;;
14813  esac
14814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14815  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14816  shlibpath_var=LD_LIBRARY_PATH
14817  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14818    case $host_os in
14819      openbsd2.[89] | openbsd2.[89].*)
14820	shlibpath_overrides_runpath=no
14821	;;
14822      *)
14823	shlibpath_overrides_runpath=yes
14824	;;
14825      esac
14826  else
14827    shlibpath_overrides_runpath=yes
14828  fi
14829  ;;
14830
14831os2*)
14832  libname_spec='$name'
14833  shrext_cmds=".dll"
14834  need_lib_prefix=no
14835  library_names_spec='$libname${shared_ext} $libname.a'
14836  dynamic_linker='OS/2 ld.exe'
14837  shlibpath_var=LIBPATH
14838  ;;
14839
14840osf3* | osf4* | osf5*)
14841  version_type=osf
14842  need_lib_prefix=no
14843  need_version=no
14844  soname_spec='${libname}${release}${shared_ext}$major'
14845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846  shlibpath_var=LD_LIBRARY_PATH
14847  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14848  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14849  ;;
14850
14851solaris*)
14852  version_type=linux
14853  need_lib_prefix=no
14854  need_version=no
14855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856  soname_spec='${libname}${release}${shared_ext}$major'
14857  shlibpath_var=LD_LIBRARY_PATH
14858  shlibpath_overrides_runpath=yes
14859  hardcode_into_libs=yes
14860  # ldd complains unless libraries are executable
14861  postinstall_cmds='chmod +x $lib'
14862  ;;
14863
14864sunos4*)
14865  version_type=sunos
14866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14867  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14868  shlibpath_var=LD_LIBRARY_PATH
14869  shlibpath_overrides_runpath=yes
14870  if test "$with_gnu_ld" = yes; then
14871    need_lib_prefix=no
14872  fi
14873  need_version=yes
14874  ;;
14875
14876sysv4 | sysv4.3*)
14877  version_type=linux
14878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879  soname_spec='${libname}${release}${shared_ext}$major'
14880  shlibpath_var=LD_LIBRARY_PATH
14881  case $host_vendor in
14882    sni)
14883      shlibpath_overrides_runpath=no
14884      need_lib_prefix=no
14885      export_dynamic_flag_spec='${wl}-Blargedynsym'
14886      runpath_var=LD_RUN_PATH
14887      ;;
14888    siemens)
14889      need_lib_prefix=no
14890      ;;
14891    motorola)
14892      need_lib_prefix=no
14893      need_version=no
14894      shlibpath_overrides_runpath=no
14895      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14896      ;;
14897  esac
14898  ;;
14899
14900sysv4*MP*)
14901  if test -d /usr/nec ;then
14902    version_type=linux
14903    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14904    soname_spec='$libname${shared_ext}.$major'
14905    shlibpath_var=LD_LIBRARY_PATH
14906  fi
14907  ;;
14908
14909sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14910  version_type=freebsd-elf
14911  need_lib_prefix=no
14912  need_version=no
14913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14914  soname_spec='${libname}${release}${shared_ext}$major'
14915  shlibpath_var=LD_LIBRARY_PATH
14916  hardcode_into_libs=yes
14917  if test "$with_gnu_ld" = yes; then
14918    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14919    shlibpath_overrides_runpath=no
14920  else
14921    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14922    shlibpath_overrides_runpath=yes
14923    case $host_os in
14924      sco3.2v5*)
14925        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14926	;;
14927    esac
14928  fi
14929  sys_lib_dlsearch_path_spec='/usr/lib'
14930  ;;
14931
14932uts4*)
14933  version_type=linux
14934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935  soname_spec='${libname}${release}${shared_ext}$major'
14936  shlibpath_var=LD_LIBRARY_PATH
14937  ;;
14938
14939*)
14940  dynamic_linker=no
14941  ;;
14942esac
14943echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14944echo "${ECHO_T}$dynamic_linker" >&6
14945test "$dynamic_linker" = no && can_build_shared=no
14946
14947variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14948if test "$GCC" = yes; then
14949  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14950fi
14951
14952echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14953echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14954hardcode_action_F77=
14955if test -n "$hardcode_libdir_flag_spec_F77" || \
14956   test -n "$runpath_var_F77" || \
14957   test "X$hardcode_automatic_F77" = "Xyes" ; then
14958
14959  # We can hardcode non-existant directories.
14960  if test "$hardcode_direct_F77" != no &&
14961     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14962     # have to relink, otherwise we might link with an installed library
14963     # when we should be linking with a yet-to-be-installed one
14964     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14965     test "$hardcode_minus_L_F77" != no; then
14966    # Linking always hardcodes the temporary library directory.
14967    hardcode_action_F77=relink
14968  else
14969    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14970    hardcode_action_F77=immediate
14971  fi
14972else
14973  # We cannot hardcode anything, or else we can only hardcode existing
14974  # directories.
14975  hardcode_action_F77=unsupported
14976fi
14977echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14978echo "${ECHO_T}$hardcode_action_F77" >&6
14979
14980if test "$hardcode_action_F77" = relink; then
14981  # Fast installation is not supported
14982  enable_fast_install=no
14983elif test "$shlibpath_overrides_runpath" = yes ||
14984     test "$enable_shared" = no; then
14985  # Fast installation is not necessary
14986  enable_fast_install=needless
14987fi
14988
14989
14990# The else clause should only fire when bootstrapping the
14991# libtool distribution, otherwise you forgot to ship ltmain.sh
14992# with your package, and you will get complaints that there are
14993# no rules to generate ltmain.sh.
14994if test -f "$ltmain"; then
14995  # See if we are running on zsh, and set the options which allow our commands through
14996  # without removal of \ escapes.
14997  if test -n "${ZSH_VERSION+set}" ; then
14998    setopt NO_GLOB_SUBST
14999  fi
15000  # Now quote all the things that may contain metacharacters while being
15001  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15002  # variables and quote the copies for generation of the libtool script.
15003  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15004    SED SHELL STRIP \
15005    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15006    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15007    deplibs_check_method reload_flag reload_cmds need_locks \
15008    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15009    lt_cv_sys_global_symbol_to_c_name_address \
15010    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15011    old_postinstall_cmds old_postuninstall_cmds \
15012    compiler_F77 \
15013    CC_F77 \
15014    LD_F77 \
15015    lt_prog_compiler_wl_F77 \
15016    lt_prog_compiler_pic_F77 \
15017    lt_prog_compiler_static_F77 \
15018    lt_prog_compiler_no_builtin_flag_F77 \
15019    export_dynamic_flag_spec_F77 \
15020    thread_safe_flag_spec_F77 \
15021    whole_archive_flag_spec_F77 \
15022    enable_shared_with_static_runtimes_F77 \
15023    old_archive_cmds_F77 \
15024    old_archive_from_new_cmds_F77 \
15025    predep_objects_F77 \
15026    postdep_objects_F77 \
15027    predeps_F77 \
15028    postdeps_F77 \
15029    compiler_lib_search_path_F77 \
15030    archive_cmds_F77 \
15031    archive_expsym_cmds_F77 \
15032    postinstall_cmds_F77 \
15033    postuninstall_cmds_F77 \
15034    old_archive_from_expsyms_cmds_F77 \
15035    allow_undefined_flag_F77 \
15036    no_undefined_flag_F77 \
15037    export_symbols_cmds_F77 \
15038    hardcode_libdir_flag_spec_F77 \
15039    hardcode_libdir_flag_spec_ld_F77 \
15040    hardcode_libdir_separator_F77 \
15041    hardcode_automatic_F77 \
15042    module_cmds_F77 \
15043    module_expsym_cmds_F77 \
15044    lt_cv_prog_compiler_c_o_F77 \
15045    exclude_expsyms_F77 \
15046    include_expsyms_F77; do
15047
15048    case $var in
15049    old_archive_cmds_F77 | \
15050    old_archive_from_new_cmds_F77 | \
15051    archive_cmds_F77 | \
15052    archive_expsym_cmds_F77 | \
15053    module_cmds_F77 | \
15054    module_expsym_cmds_F77 | \
15055    old_archive_from_expsyms_cmds_F77 | \
15056    export_symbols_cmds_F77 | \
15057    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15058    postinstall_cmds | postuninstall_cmds | \
15059    old_postinstall_cmds | old_postuninstall_cmds | \
15060    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15061      # Double-quote double-evaled strings.
15062      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15063      ;;
15064    *)
15065      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15066      ;;
15067    esac
15068  done
15069
15070  case $lt_echo in
15071  *'\$0 --fallback-echo"')
15072    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15073    ;;
15074  esac
15075
15076cfgfile="$ofile"
15077
15078  cat <<__EOF__ >> "$cfgfile"
15079# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15080
15081# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15082
15083# Shell to use when invoking shell scripts.
15084SHELL=$lt_SHELL
15085
15086# Whether or not to build shared libraries.
15087build_libtool_libs=$enable_shared
15088
15089# Whether or not to build static libraries.
15090build_old_libs=$enable_static
15091
15092# Whether or not to add -lc for building shared libraries.
15093build_libtool_need_lc=$archive_cmds_need_lc_F77
15094
15095# Whether or not to disallow shared libs when runtime libs are static
15096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15097
15098# Whether or not to optimize for fast installation.
15099fast_install=$enable_fast_install
15100
15101# The host system.
15102host_alias=$host_alias
15103host=$host
15104host_os=$host_os
15105
15106# The build system.
15107build_alias=$build_alias
15108build=$build
15109build_os=$build_os
15110
15111# An echo program that does not interpret backslashes.
15112echo=$lt_echo
15113
15114# The archiver.
15115AR=$lt_AR
15116AR_FLAGS=$lt_AR_FLAGS
15117
15118# A C compiler.
15119LTCC=$lt_LTCC
15120
15121# LTCC compiler flags.
15122LTCFLAGS=$lt_LTCFLAGS
15123
15124# A language-specific compiler.
15125CC=$lt_compiler_F77
15126
15127# Is the compiler the GNU C compiler?
15128with_gcc=$GCC_F77
15129
15130# An ERE matcher.
15131EGREP=$lt_EGREP
15132
15133# The linker used to build libraries.
15134LD=$lt_LD_F77
15135
15136# Whether we need hard or soft links.
15137LN_S=$lt_LN_S
15138
15139# A BSD-compatible nm program.
15140NM=$lt_NM
15141
15142# A symbol stripping program
15143STRIP=$lt_STRIP
15144
15145# Used to examine libraries when file_magic_cmd begins "file"
15146MAGIC_CMD=$MAGIC_CMD
15147
15148# Used on cygwin: DLL creation program.
15149DLLTOOL="$DLLTOOL"
15150
15151# Used on cygwin: object dumper.
15152OBJDUMP="$OBJDUMP"
15153
15154# Used on cygwin: assembler.
15155AS="$AS"
15156
15157# The name of the directory that contains temporary libtool files.
15158objdir=$objdir
15159
15160# How to create reloadable object files.
15161reload_flag=$lt_reload_flag
15162reload_cmds=$lt_reload_cmds
15163
15164# How to pass a linker flag through the compiler.
15165wl=$lt_lt_prog_compiler_wl_F77
15166
15167# Object file suffix (normally "o").
15168objext="$ac_objext"
15169
15170# Old archive suffix (normally "a").
15171libext="$libext"
15172
15173# Shared library suffix (normally ".so").
15174shrext_cmds='$shrext_cmds'
15175
15176# Executable file suffix (normally "").
15177exeext="$exeext"
15178
15179# Additional compiler flags for building library objects.
15180pic_flag=$lt_lt_prog_compiler_pic_F77
15181pic_mode=$pic_mode
15182
15183# What is the maximum length of a command?
15184max_cmd_len=$lt_cv_sys_max_cmd_len
15185
15186# Does compiler simultaneously support -c and -o options?
15187compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15188
15189# Must we lock files when doing compilation?
15190need_locks=$lt_need_locks
15191
15192# Do we need the lib prefix for modules?
15193need_lib_prefix=$need_lib_prefix
15194
15195# Do we need a version for libraries?
15196need_version=$need_version
15197
15198# Whether dlopen is supported.
15199dlopen_support=$enable_dlopen
15200
15201# Whether dlopen of programs is supported.
15202dlopen_self=$enable_dlopen_self
15203
15204# Whether dlopen of statically linked programs is supported.
15205dlopen_self_static=$enable_dlopen_self_static
15206
15207# Compiler flag to prevent dynamic linking.
15208link_static_flag=$lt_lt_prog_compiler_static_F77
15209
15210# Compiler flag to turn off builtin functions.
15211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15212
15213# Compiler flag to allow reflexive dlopens.
15214export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15215
15216# Compiler flag to generate shared objects directly from archives.
15217whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15218
15219# Compiler flag to generate thread-safe objects.
15220thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15221
15222# Library versioning type.
15223version_type=$version_type
15224
15225# Format of library name prefix.
15226libname_spec=$lt_libname_spec
15227
15228# List of archive names.  First name is the real one, the rest are links.
15229# The last name is the one that the linker finds with -lNAME.
15230library_names_spec=$lt_library_names_spec
15231
15232# The coded name of the library, if different from the real name.
15233soname_spec=$lt_soname_spec
15234
15235# Commands used to build and install an old-style archive.
15236RANLIB=$lt_RANLIB
15237old_archive_cmds=$lt_old_archive_cmds_F77
15238old_postinstall_cmds=$lt_old_postinstall_cmds
15239old_postuninstall_cmds=$lt_old_postuninstall_cmds
15240
15241# Create an old-style archive from a shared archive.
15242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15243
15244# Create a temporary old-style archive to link instead of a shared archive.
15245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15246
15247# Commands used to build and install a shared archive.
15248archive_cmds=$lt_archive_cmds_F77
15249archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15250postinstall_cmds=$lt_postinstall_cmds
15251postuninstall_cmds=$lt_postuninstall_cmds
15252
15253# Commands used to build a loadable module (assumed same as above if empty)
15254module_cmds=$lt_module_cmds_F77
15255module_expsym_cmds=$lt_module_expsym_cmds_F77
15256
15257# Commands to strip libraries.
15258old_striplib=$lt_old_striplib
15259striplib=$lt_striplib
15260
15261# Dependencies to place before the objects being linked to create a
15262# shared library.
15263predep_objects=$lt_predep_objects_F77
15264
15265# Dependencies to place after the objects being linked to create a
15266# shared library.
15267postdep_objects=$lt_postdep_objects_F77
15268
15269# Dependencies to place before the objects being linked to create a
15270# shared library.
15271predeps=$lt_predeps_F77
15272
15273# Dependencies to place after the objects being linked to create a
15274# shared library.
15275postdeps=$lt_postdeps_F77
15276
15277# The library search path used internally by the compiler when linking
15278# a shared library.
15279compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15280
15281# Method to check whether dependent libraries are shared objects.
15282deplibs_check_method=$lt_deplibs_check_method
15283
15284# Command to use when deplibs_check_method == file_magic.
15285file_magic_cmd=$lt_file_magic_cmd
15286
15287# Flag that allows shared libraries with undefined symbols to be built.
15288allow_undefined_flag=$lt_allow_undefined_flag_F77
15289
15290# Flag that forces no undefined symbols.
15291no_undefined_flag=$lt_no_undefined_flag_F77
15292
15293# Commands used to finish a libtool library installation in a directory.
15294finish_cmds=$lt_finish_cmds
15295
15296# Same as above, but a single script fragment to be evaled but not shown.
15297finish_eval=$lt_finish_eval
15298
15299# Take the output of nm and produce a listing of raw symbols and C names.
15300global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15301
15302# Transform the output of nm in a proper C declaration
15303global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15304
15305# Transform the output of nm in a C name address pair
15306global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15307
15308# This is the shared library runtime path variable.
15309runpath_var=$runpath_var
15310
15311# This is the shared library path variable.
15312shlibpath_var=$shlibpath_var
15313
15314# Is shlibpath searched before the hard-coded library search path?
15315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15316
15317# How to hardcode a shared library path into an executable.
15318hardcode_action=$hardcode_action_F77
15319
15320# Whether we should hardcode library paths into libraries.
15321hardcode_into_libs=$hardcode_into_libs
15322
15323# Flag to hardcode \$libdir into a binary during linking.
15324# This must work even if \$libdir does not exist.
15325hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15326
15327# If ld is used when linking, flag to hardcode \$libdir into
15328# a binary during linking. This must work even if \$libdir does
15329# not exist.
15330hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15331
15332# Whether we need a single -rpath flag with a separated argument.
15333hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15334
15335# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15336# resulting binary.
15337hardcode_direct=$hardcode_direct_F77
15338
15339# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15340# resulting binary.
15341hardcode_minus_L=$hardcode_minus_L_F77
15342
15343# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15344# the resulting binary.
15345hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15346
15347# Set to yes if building a shared library automatically hardcodes DIR into the library
15348# and all subsequent libraries and executables linked against it.
15349hardcode_automatic=$hardcode_automatic_F77
15350
15351# Variables whose values should be saved in libtool wrapper scripts and
15352# restored at relink time.
15353variables_saved_for_relink="$variables_saved_for_relink"
15354
15355# Whether libtool must link a program against all its dependency libraries.
15356link_all_deplibs=$link_all_deplibs_F77
15357
15358# Compile-time system search path for libraries
15359sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15360
15361# Run-time system search path for libraries
15362sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15363
15364# Fix the shell variable \$srcfile for the compiler.
15365fix_srcfile_path="$fix_srcfile_path_F77"
15366
15367# Set to yes if exported symbols are required.
15368always_export_symbols=$always_export_symbols_F77
15369
15370# The commands to list exported symbols.
15371export_symbols_cmds=$lt_export_symbols_cmds_F77
15372
15373# The commands to extract the exported symbol list from a shared archive.
15374extract_expsyms_cmds=$lt_extract_expsyms_cmds
15375
15376# Symbols that should not be listed in the preloaded symbols.
15377exclude_expsyms=$lt_exclude_expsyms_F77
15378
15379# Symbols that must always be exported.
15380include_expsyms=$lt_include_expsyms_F77
15381
15382# ### END LIBTOOL TAG CONFIG: $tagname
15383
15384__EOF__
15385
15386
15387else
15388  # If there is no Makefile yet, we rely on a make rule to execute
15389  # `config.status --recheck' to rerun these tests and create the
15390  # libtool script then.
15391  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15392  if test -f "$ltmain_in"; then
15393    test -f Makefile && make "$ltmain"
15394  fi
15395fi
15396
15397
15398ac_ext=c
15399ac_cpp='$CPP $CPPFLAGS'
15400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15402ac_compiler_gnu=$ac_cv_c_compiler_gnu
15403
15404CC="$lt_save_CC"
15405
15406	else
15407	  tagname=""
15408	fi
15409	;;
15410
15411      GCJ)
15412	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15413
15414
15415
15416# Source file extension for Java test sources.
15417ac_ext=java
15418
15419# Object file extension for compiled Java test sources.
15420objext=o
15421objext_GCJ=$objext
15422
15423# Code to be used in simple compile tests
15424lt_simple_compile_test_code="class foo {}\n"
15425
15426# Code to be used in simple link tests
15427lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15428
15429# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15430
15431# If no C compiler was specified, use CC.
15432LTCC=${LTCC-"$CC"}
15433
15434# If no C compiler flags were specified, use CFLAGS.
15435LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15436
15437# Allow CC to be a program name with arguments.
15438compiler=$CC
15439
15440
15441# save warnings/boilerplate of simple test code
15442ac_outfile=conftest.$ac_objext
15443printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15444eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15445_lt_compiler_boilerplate=`cat conftest.err`
15446$rm conftest*
15447
15448ac_outfile=conftest.$ac_objext
15449printf "$lt_simple_link_test_code" >conftest.$ac_ext
15450eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15451_lt_linker_boilerplate=`cat conftest.err`
15452$rm conftest*
15453
15454
15455# Allow CC to be a program name with arguments.
15456lt_save_CC="$CC"
15457CC=${GCJ-"gcj"}
15458compiler=$CC
15459compiler_GCJ=$CC
15460for cc_temp in $compiler""; do
15461  case $cc_temp in
15462    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15463    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15464    \-*) ;;
15465    *) break;;
15466  esac
15467done
15468cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15469
15470
15471# GCJ did not exist at the time GCC didn't implicitly link libc in.
15472archive_cmds_need_lc_GCJ=no
15473
15474old_archive_cmds_GCJ=$old_archive_cmds
15475
15476
15477lt_prog_compiler_no_builtin_flag_GCJ=
15478
15479if test "$GCC" = yes; then
15480  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15481
15482
15483echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15484echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15485if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15486  echo $ECHO_N "(cached) $ECHO_C" >&6
15487else
15488  lt_cv_prog_compiler_rtti_exceptions=no
15489  ac_outfile=conftest.$ac_objext
15490   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15491   lt_compiler_flag="-fno-rtti -fno-exceptions"
15492   # Insert the option either (1) after the last *FLAGS variable, or
15493   # (2) before a word containing "conftest.", or (3) at the end.
15494   # Note that $ac_compile itself does not contain backslashes and begins
15495   # with a dollar sign (not a hyphen), so the echo should work correctly.
15496   # The option is referenced via a variable to avoid confusing sed.
15497   lt_compile=`echo "$ac_compile" | $SED \
15498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15500   -e 's:$: $lt_compiler_flag:'`
15501   (eval echo "\"\$as_me:15501: $lt_compile\"" >&5)
15502   (eval "$lt_compile" 2>conftest.err)
15503   ac_status=$?
15504   cat conftest.err >&5
15505   echo "$as_me:15505: \$? = $ac_status" >&5
15506   if (exit $ac_status) && test -s "$ac_outfile"; then
15507     # The compiler can only warn and ignore the option if not recognized
15508     # So say no if there are warnings other than the usual output.
15509     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15510     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15511     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15512       lt_cv_prog_compiler_rtti_exceptions=yes
15513     fi
15514   fi
15515   $rm conftest*
15516
15517fi
15518echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15519echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15520
15521if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15522    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15523else
15524    :
15525fi
15526
15527fi
15528
15529lt_prog_compiler_wl_GCJ=
15530lt_prog_compiler_pic_GCJ=
15531lt_prog_compiler_static_GCJ=
15532
15533echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15534echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15535
15536  if test "$GCC" = yes; then
15537    lt_prog_compiler_wl_GCJ='-Wl,'
15538    lt_prog_compiler_static_GCJ='-static'
15539
15540    case $host_os in
15541      aix*)
15542      # All AIX code is PIC.
15543      if test "$host_cpu" = ia64; then
15544	# AIX 5 now supports IA64 processor
15545	lt_prog_compiler_static_GCJ='-Bstatic'
15546      fi
15547      ;;
15548
15549    amigaos*)
15550      # FIXME: we need at least 68020 code to build shared libraries, but
15551      # adding the `-m68020' flag to GCC prevents building anything better,
15552      # like `-m68040'.
15553      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15554      ;;
15555
15556    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15557      # PIC is the default for these OSes.
15558      ;;
15559
15560    mingw* | pw32* | os2*)
15561      # This hack is so that the source file can tell whether it is being
15562      # built for inclusion in a dll (and should export symbols for example).
15563      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15564      ;;
15565
15566    darwin* | rhapsody*)
15567      # PIC is the default on this platform
15568      # Common symbols not allowed in MH_DYLIB files
15569      lt_prog_compiler_pic_GCJ='-fno-common'
15570      ;;
15571
15572    interix3*)
15573      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15574      # Instead, we relocate shared libraries at runtime.
15575      ;;
15576
15577    msdosdjgpp*)
15578      # Just because we use GCC doesn't mean we suddenly get shared libraries
15579      # on systems that don't support them.
15580      lt_prog_compiler_can_build_shared_GCJ=no
15581      enable_shared=no
15582      ;;
15583
15584    sysv4*MP*)
15585      if test -d /usr/nec; then
15586	lt_prog_compiler_pic_GCJ=-Kconform_pic
15587      fi
15588      ;;
15589
15590    hpux*)
15591      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15592      # not for PA HP-UX.
15593      case $host_cpu in
15594      hppa*64*|ia64*)
15595	# +Z the default
15596	;;
15597      *)
15598	lt_prog_compiler_pic_GCJ='-fPIC'
15599	;;
15600      esac
15601      ;;
15602
15603    *)
15604      lt_prog_compiler_pic_GCJ='-fPIC'
15605      ;;
15606    esac
15607  else
15608    # PORTME Check for flag to pass linker flags through the system compiler.
15609    case $host_os in
15610    aix*)
15611      lt_prog_compiler_wl_GCJ='-Wl,'
15612      if test "$host_cpu" = ia64; then
15613	# AIX 5 now supports IA64 processor
15614	lt_prog_compiler_static_GCJ='-Bstatic'
15615      else
15616	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15617      fi
15618      ;;
15619      darwin*)
15620        # PIC is the default on this platform
15621        # Common symbols not allowed in MH_DYLIB files
15622       case $cc_basename in
15623         xlc*)
15624         lt_prog_compiler_pic_GCJ='-qnocommon'
15625         lt_prog_compiler_wl_GCJ='-Wl,'
15626         ;;
15627       esac
15628       ;;
15629
15630    mingw* | pw32* | os2*)
15631      # This hack is so that the source file can tell whether it is being
15632      # built for inclusion in a dll (and should export symbols for example).
15633      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15634      ;;
15635
15636    hpux9* | hpux10* | hpux11*)
15637      lt_prog_compiler_wl_GCJ='-Wl,'
15638      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15639      # not for PA HP-UX.
15640      case $host_cpu in
15641      hppa*64*|ia64*)
15642	# +Z the default
15643	;;
15644      *)
15645	lt_prog_compiler_pic_GCJ='+Z'
15646	;;
15647      esac
15648      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15649      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15650      ;;
15651
15652    irix5* | irix6* | nonstopux*)
15653      lt_prog_compiler_wl_GCJ='-Wl,'
15654      # PIC (with -KPIC) is the default.
15655      lt_prog_compiler_static_GCJ='-non_shared'
15656      ;;
15657
15658    newsos6)
15659      lt_prog_compiler_pic_GCJ='-KPIC'
15660      lt_prog_compiler_static_GCJ='-Bstatic'
15661      ;;
15662
15663    linux*)
15664      case $cc_basename in
15665      icc* | ecc*)
15666	lt_prog_compiler_wl_GCJ='-Wl,'
15667	lt_prog_compiler_pic_GCJ='-KPIC'
15668	lt_prog_compiler_static_GCJ='-static'
15669        ;;
15670      pgcc* | pgf77* | pgf90* | pgf95*)
15671        # Portland Group compilers (*not* the Pentium gcc compiler,
15672	# which looks to be a dead project)
15673	lt_prog_compiler_wl_GCJ='-Wl,'
15674	lt_prog_compiler_pic_GCJ='-fpic'
15675	lt_prog_compiler_static_GCJ='-Bstatic'
15676        ;;
15677      ccc*)
15678        lt_prog_compiler_wl_GCJ='-Wl,'
15679        # All Alpha code is PIC.
15680        lt_prog_compiler_static_GCJ='-non_shared'
15681        ;;
15682      esac
15683      ;;
15684
15685    osf3* | osf4* | osf5*)
15686      lt_prog_compiler_wl_GCJ='-Wl,'
15687      # All OSF/1 code is PIC.
15688      lt_prog_compiler_static_GCJ='-non_shared'
15689      ;;
15690
15691    solaris*)
15692      lt_prog_compiler_pic_GCJ='-KPIC'
15693      lt_prog_compiler_static_GCJ='-Bstatic'
15694      case $cc_basename in
15695      f77* | f90* | f95*)
15696	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15697      *)
15698	lt_prog_compiler_wl_GCJ='-Wl,';;
15699      esac
15700      ;;
15701
15702    sunos4*)
15703      lt_prog_compiler_wl_GCJ='-Qoption ld '
15704      lt_prog_compiler_pic_GCJ='-PIC'
15705      lt_prog_compiler_static_GCJ='-Bstatic'
15706      ;;
15707
15708    sysv4 | sysv4.2uw2* | sysv4.3*)
15709      lt_prog_compiler_wl_GCJ='-Wl,'
15710      lt_prog_compiler_pic_GCJ='-KPIC'
15711      lt_prog_compiler_static_GCJ='-Bstatic'
15712      ;;
15713
15714    sysv4*MP*)
15715      if test -d /usr/nec ;then
15716	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15717	lt_prog_compiler_static_GCJ='-Bstatic'
15718      fi
15719      ;;
15720
15721    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15722      lt_prog_compiler_wl_GCJ='-Wl,'
15723      lt_prog_compiler_pic_GCJ='-KPIC'
15724      lt_prog_compiler_static_GCJ='-Bstatic'
15725      ;;
15726
15727    unicos*)
15728      lt_prog_compiler_wl_GCJ='-Wl,'
15729      lt_prog_compiler_can_build_shared_GCJ=no
15730      ;;
15731
15732    uts4*)
15733      lt_prog_compiler_pic_GCJ='-pic'
15734      lt_prog_compiler_static_GCJ='-Bstatic'
15735      ;;
15736
15737    *)
15738      lt_prog_compiler_can_build_shared_GCJ=no
15739      ;;
15740    esac
15741  fi
15742
15743echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15744echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15745
15746#
15747# Check to make sure the PIC flag actually works.
15748#
15749if test -n "$lt_prog_compiler_pic_GCJ"; then
15750
15751echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15752echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15753if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15754  echo $ECHO_N "(cached) $ECHO_C" >&6
15755else
15756  lt_prog_compiler_pic_works_GCJ=no
15757  ac_outfile=conftest.$ac_objext
15758   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15759   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15760   # Insert the option either (1) after the last *FLAGS variable, or
15761   # (2) before a word containing "conftest.", or (3) at the end.
15762   # Note that $ac_compile itself does not contain backslashes and begins
15763   # with a dollar sign (not a hyphen), so the echo should work correctly.
15764   # The option is referenced via a variable to avoid confusing sed.
15765   lt_compile=`echo "$ac_compile" | $SED \
15766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15768   -e 's:$: $lt_compiler_flag:'`
15769   (eval echo "\"\$as_me:15769: $lt_compile\"" >&5)
15770   (eval "$lt_compile" 2>conftest.err)
15771   ac_status=$?
15772   cat conftest.err >&5
15773   echo "$as_me:15773: \$? = $ac_status" >&5
15774   if (exit $ac_status) && test -s "$ac_outfile"; then
15775     # The compiler can only warn and ignore the option if not recognized
15776     # So say no if there are warnings other than the usual output.
15777     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15778     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15779     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15780       lt_prog_compiler_pic_works_GCJ=yes
15781     fi
15782   fi
15783   $rm conftest*
15784
15785fi
15786echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15787echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15788
15789if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15790    case $lt_prog_compiler_pic_GCJ in
15791     "" | " "*) ;;
15792     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15793     esac
15794else
15795    lt_prog_compiler_pic_GCJ=
15796     lt_prog_compiler_can_build_shared_GCJ=no
15797fi
15798
15799fi
15800case $host_os in
15801  # For platforms which do not support PIC, -DPIC is meaningless:
15802  *djgpp*)
15803    lt_prog_compiler_pic_GCJ=
15804    ;;
15805  *)
15806    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15807    ;;
15808esac
15809
15810#
15811# Check to make sure the static flag actually works.
15812#
15813wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15814echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15815echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15816if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15817  echo $ECHO_N "(cached) $ECHO_C" >&6
15818else
15819  lt_prog_compiler_static_works_GCJ=no
15820   save_LDFLAGS="$LDFLAGS"
15821   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15822   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15823   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15824     # The linker can only warn and ignore the option if not recognized
15825     # So say no if there are warnings
15826     if test -s conftest.err; then
15827       # Append any errors to the config.log.
15828       cat conftest.err 1>&5
15829       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15830       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15831       if diff conftest.exp conftest.er2 >/dev/null; then
15832         lt_prog_compiler_static_works_GCJ=yes
15833       fi
15834     else
15835       lt_prog_compiler_static_works_GCJ=yes
15836     fi
15837   fi
15838   $rm conftest*
15839   LDFLAGS="$save_LDFLAGS"
15840
15841fi
15842echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15843echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15844
15845if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15846    :
15847else
15848    lt_prog_compiler_static_GCJ=
15849fi
15850
15851
15852echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15853echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15854if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15855  echo $ECHO_N "(cached) $ECHO_C" >&6
15856else
15857  lt_cv_prog_compiler_c_o_GCJ=no
15858   $rm -r conftest 2>/dev/null
15859   mkdir conftest
15860   cd conftest
15861   mkdir out
15862   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15863
15864   lt_compiler_flag="-o out/conftest2.$ac_objext"
15865   # Insert the option either (1) after the last *FLAGS variable, or
15866   # (2) before a word containing "conftest.", or (3) at the end.
15867   # Note that $ac_compile itself does not contain backslashes and begins
15868   # with a dollar sign (not a hyphen), so the echo should work correctly.
15869   lt_compile=`echo "$ac_compile" | $SED \
15870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15872   -e 's:$: $lt_compiler_flag:'`
15873   (eval echo "\"\$as_me:15873: $lt_compile\"" >&5)
15874   (eval "$lt_compile" 2>out/conftest.err)
15875   ac_status=$?
15876   cat out/conftest.err >&5
15877   echo "$as_me:15877: \$? = $ac_status" >&5
15878   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15879   then
15880     # The compiler can only warn and ignore the option if not recognized
15881     # So say no if there are warnings
15882     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15883     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15884     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15885       lt_cv_prog_compiler_c_o_GCJ=yes
15886     fi
15887   fi
15888   chmod u+w . 2>&5
15889   $rm conftest*
15890   # SGI C++ compiler will create directory out/ii_files/ for
15891   # template instantiation
15892   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15893   $rm out/* && rmdir out
15894   cd ..
15895   rmdir conftest
15896   $rm conftest*
15897
15898fi
15899echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15900echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15901
15902
15903hard_links="nottested"
15904if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15905  # do not overwrite the value of need_locks provided by the user
15906  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15907echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15908  hard_links=yes
15909  $rm conftest*
15910  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15911  touch conftest.a
15912  ln conftest.a conftest.b 2>&5 || hard_links=no
15913  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15914  echo "$as_me:$LINENO: result: $hard_links" >&5
15915echo "${ECHO_T}$hard_links" >&6
15916  if test "$hard_links" = no; then
15917    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15918echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15919    need_locks=warn
15920  fi
15921else
15922  need_locks=no
15923fi
15924
15925echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15926echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15927
15928  runpath_var=
15929  allow_undefined_flag_GCJ=
15930  enable_shared_with_static_runtimes_GCJ=no
15931  archive_cmds_GCJ=
15932  archive_expsym_cmds_GCJ=
15933  old_archive_From_new_cmds_GCJ=
15934  old_archive_from_expsyms_cmds_GCJ=
15935  export_dynamic_flag_spec_GCJ=
15936  whole_archive_flag_spec_GCJ=
15937  thread_safe_flag_spec_GCJ=
15938  hardcode_libdir_flag_spec_GCJ=
15939  hardcode_libdir_flag_spec_ld_GCJ=
15940  hardcode_libdir_separator_GCJ=
15941  hardcode_direct_GCJ=no
15942  hardcode_minus_L_GCJ=no
15943  hardcode_shlibpath_var_GCJ=unsupported
15944  link_all_deplibs_GCJ=unknown
15945  hardcode_automatic_GCJ=no
15946  module_cmds_GCJ=
15947  module_expsym_cmds_GCJ=
15948  always_export_symbols_GCJ=no
15949  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15950  # include_expsyms should be a list of space-separated symbols to be *always*
15951  # included in the symbol list
15952  include_expsyms_GCJ=
15953  # exclude_expsyms can be an extended regexp of symbols to exclude
15954  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15955  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15956  # as well as any symbol that contains `d'.
15957  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15958  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15959  # platforms (ab)use it in PIC code, but their linkers get confused if
15960  # the symbol is explicitly referenced.  Since portable code cannot
15961  # rely on this symbol name, it's probably fine to never include it in
15962  # preloaded symbol tables.
15963  extract_expsyms_cmds=
15964  # Just being paranoid about ensuring that cc_basename is set.
15965  for cc_temp in $compiler""; do
15966  case $cc_temp in
15967    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15968    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15969    \-*) ;;
15970    *) break;;
15971  esac
15972done
15973cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15974
15975  case $host_os in
15976  cygwin* | mingw* | pw32*)
15977    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15978    # When not using gcc, we currently assume that we are using
15979    # Microsoft Visual C++.
15980    if test "$GCC" != yes; then
15981      with_gnu_ld=no
15982    fi
15983    ;;
15984  interix*)
15985    # we just hope/assume this is gcc and not c89 (= MSVC++)
15986    with_gnu_ld=yes
15987    ;;
15988  openbsd*)
15989    with_gnu_ld=no
15990    ;;
15991  esac
15992
15993  ld_shlibs_GCJ=yes
15994  if test "$with_gnu_ld" = yes; then
15995    # If archive_cmds runs LD, not CC, wlarc should be empty
15996    wlarc='${wl}'
15997
15998    # Set some defaults for GNU ld with shared library support. These
15999    # are reset later if shared libraries are not supported. Putting them
16000    # here allows them to be overridden if necessary.
16001    runpath_var=LD_RUN_PATH
16002    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16003    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16004    # ancient GNU ld didn't support --whole-archive et. al.
16005    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16006	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16007      else
16008  	whole_archive_flag_spec_GCJ=
16009    fi
16010    supports_anon_versioning=no
16011    case `$LD -v 2>/dev/null` in
16012      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16013      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16014      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16015      *\ 2.11.*) ;; # other 2.11 versions
16016      *) supports_anon_versioning=yes ;;
16017    esac
16018
16019    # See if GNU ld supports shared libraries.
16020    case $host_os in
16021    aix3* | aix4* | aix5*)
16022      # On AIX/PPC, the GNU linker is very broken
16023      if test "$host_cpu" != ia64; then
16024	ld_shlibs_GCJ=no
16025	cat <<EOF 1>&2
16026
16027*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16028*** to be unable to reliably create shared libraries on AIX.
16029*** Therefore, libtool is disabling shared libraries support.  If you
16030*** really care for shared libraries, you may want to modify your PATH
16031*** so that a non-GNU linker is found, and then restart.
16032
16033EOF
16034      fi
16035      ;;
16036
16037    amigaos*)
16038      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)'
16039      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16040      hardcode_minus_L_GCJ=yes
16041
16042      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16043      # that the semantics of dynamic libraries on AmigaOS, at least up
16044      # to version 4, is to share data among multiple programs linked
16045      # with the same dynamic library.  Since this doesn't match the
16046      # behavior of shared libraries on other platforms, we can't use
16047      # them.
16048      ld_shlibs_GCJ=no
16049      ;;
16050
16051    beos*)
16052      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16053	allow_undefined_flag_GCJ=unsupported
16054	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16055	# support --undefined.  This deserves some investigation.  FIXME
16056	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16057      else
16058	ld_shlibs_GCJ=no
16059      fi
16060      ;;
16061
16062    cygwin* | mingw* | pw32*)
16063      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16064      # as there is no search path for DLLs.
16065      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16066      allow_undefined_flag_GCJ=unsupported
16067      always_export_symbols_GCJ=no
16068      enable_shared_with_static_runtimes_GCJ=yes
16069      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16070
16071      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16072        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16073	# If the export-symbols file already is a .def file (1st line
16074	# is EXPORTS), use it as is; otherwise, prepend...
16075	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16076	  cp $export_symbols $output_objdir/$soname.def;
16077	else
16078	  echo EXPORTS > $output_objdir/$soname.def;
16079	  cat $export_symbols >> $output_objdir/$soname.def;
16080	fi~
16081	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16082      else
16083	ld_shlibs_GCJ=no
16084      fi
16085      ;;
16086
16087    interix3*)
16088      hardcode_direct_GCJ=no
16089      hardcode_shlibpath_var_GCJ=no
16090      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16091      export_dynamic_flag_spec_GCJ='${wl}-E'
16092      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16093      # Instead, shared libraries are loaded at an image base (0x10000000 by
16094      # default) and relocated if they conflict, which is a slow very memory
16095      # consuming and fragmenting process.  To avoid this, we pick a random,
16096      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16097      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16098      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'
16099      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'
16100      ;;
16101
16102    linux*)
16103      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16104	tmp_addflag=
16105	case $cc_basename,$host_cpu in
16106	pgcc*)				# Portland Group C compiler
16107	  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'
16108	  tmp_addflag=' $pic_flag'
16109	  ;;
16110	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16111	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16112	  tmp_addflag=' $pic_flag -Mnomain' ;;
16113	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16114	  tmp_addflag=' -i_dynamic' ;;
16115	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16116	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16117	ifc* | ifort*)			# Intel Fortran compiler
16118	  tmp_addflag=' -nofor_main' ;;
16119	esac
16120	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16121
16122	if test $supports_anon_versioning = yes; then
16123	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16124  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16125  $echo "local: *; };" >> $output_objdir/$libname.ver~
16126	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16127	fi
16128      else
16129	ld_shlibs_GCJ=no
16130      fi
16131      ;;
16132
16133    netbsd*)
16134      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16135	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16136	wlarc=
16137      else
16138	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16139	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16140      fi
16141      ;;
16142
16143    solaris*)
16144      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16145	ld_shlibs_GCJ=no
16146	cat <<EOF 1>&2
16147
16148*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16149*** create shared libraries on Solaris systems.  Therefore, libtool
16150*** is disabling shared libraries support.  We urge you to upgrade GNU
16151*** binutils to release 2.9.1 or newer.  Another option is to modify
16152*** your PATH or compiler configuration so that the native linker is
16153*** used, and then restart.
16154
16155EOF
16156      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16157	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16158	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16159      else
16160	ld_shlibs_GCJ=no
16161      fi
16162      ;;
16163
16164    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16165      case `$LD -v 2>&1` in
16166        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16167	ld_shlibs_GCJ=no
16168	cat <<_LT_EOF 1>&2
16169
16170*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16171*** reliably create shared libraries on SCO systems.  Therefore, libtool
16172*** is disabling shared libraries support.  We urge you to upgrade GNU
16173*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16174*** your PATH or compiler configuration so that the native linker is
16175*** used, and then restart.
16176
16177_LT_EOF
16178	;;
16179	*)
16180	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16181	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16182	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16183	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16184	  else
16185	    ld_shlibs_GCJ=no
16186	  fi
16187	;;
16188      esac
16189      ;;
16190
16191    sunos4*)
16192      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16193      wlarc=
16194      hardcode_direct_GCJ=yes
16195      hardcode_shlibpath_var_GCJ=no
16196      ;;
16197
16198    *)
16199      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16202      else
16203	ld_shlibs_GCJ=no
16204      fi
16205      ;;
16206    esac
16207
16208    if test "$ld_shlibs_GCJ" = no; then
16209      runpath_var=
16210      hardcode_libdir_flag_spec_GCJ=
16211      export_dynamic_flag_spec_GCJ=
16212      whole_archive_flag_spec_GCJ=
16213    fi
16214  else
16215    # PORTME fill in a description of your system's linker (not GNU ld)
16216    case $host_os in
16217    aix3*)
16218      allow_undefined_flag_GCJ=unsupported
16219      always_export_symbols_GCJ=yes
16220      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'
16221      # Note: this linker hardcodes the directories in LIBPATH if there
16222      # are no directories specified by -L.
16223      hardcode_minus_L_GCJ=yes
16224      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16225	# Neither direct hardcoding nor static linking is supported with a
16226	# broken collect2.
16227	hardcode_direct_GCJ=unsupported
16228      fi
16229      ;;
16230
16231    aix4* | aix5*)
16232      if test "$host_cpu" = ia64; then
16233	# On IA64, the linker does run time linking by default, so we don't
16234	# have to do anything special.
16235	aix_use_runtimelinking=no
16236	exp_sym_flag='-Bexport'
16237	no_entry_flag=""
16238      else
16239	# If we're using GNU nm, then we don't want the "-C" option.
16240	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16241	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16242	  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'
16243	else
16244	  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'
16245	fi
16246	aix_use_runtimelinking=no
16247
16248	# Test if we are trying to use run time linking or normal
16249	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16250	# need to do runtime linking.
16251	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16252	  for ld_flag in $LDFLAGS; do
16253  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16254  	    aix_use_runtimelinking=yes
16255  	    break
16256  	  fi
16257	  done
16258	  ;;
16259	esac
16260
16261	exp_sym_flag='-bexport'
16262	no_entry_flag='-bnoentry'
16263      fi
16264
16265      # When large executables or shared objects are built, AIX ld can
16266      # have problems creating the table of contents.  If linking a library
16267      # or program results in "error TOC overflow" add -mminimal-toc to
16268      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16269      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16270
16271      archive_cmds_GCJ=''
16272      hardcode_direct_GCJ=yes
16273      hardcode_libdir_separator_GCJ=':'
16274      link_all_deplibs_GCJ=yes
16275
16276      if test "$GCC" = yes; then
16277	case $host_os in aix4.[012]|aix4.[012].*)
16278	# We only want to do this on AIX 4.2 and lower, the check
16279	# below for broken collect2 doesn't work under 4.3+
16280	  collect2name=`${CC} -print-prog-name=collect2`
16281	  if test -f "$collect2name" && \
16282  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16283	  then
16284  	  # We have reworked collect2
16285  	  hardcode_direct_GCJ=yes
16286	  else
16287  	  # We have old collect2
16288  	  hardcode_direct_GCJ=unsupported
16289  	  # It fails to find uninstalled libraries when the uninstalled
16290  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16291  	  # to unsupported forces relinking
16292  	  hardcode_minus_L_GCJ=yes
16293  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16294  	  hardcode_libdir_separator_GCJ=
16295	  fi
16296	  ;;
16297	esac
16298	shared_flag='-shared'
16299	if test "$aix_use_runtimelinking" = yes; then
16300	  shared_flag="$shared_flag "'${wl}-G'
16301	fi
16302      else
16303	# not using gcc
16304	if test "$host_cpu" = ia64; then
16305  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16306  	# chokes on -Wl,-G. The following line is correct:
16307	  shared_flag='-G'
16308	else
16309	  if test "$aix_use_runtimelinking" = yes; then
16310	    shared_flag='${wl}-G'
16311	  else
16312	    shared_flag='${wl}-bM:SRE'
16313	  fi
16314	fi
16315      fi
16316
16317      # It seems that -bexpall does not export symbols beginning with
16318      # underscore (_), so it is better to generate a list of symbols to export.
16319      always_export_symbols_GCJ=yes
16320      if test "$aix_use_runtimelinking" = yes; then
16321	# Warning - without using the other runtime loading flags (-brtl),
16322	# -berok will link without error, but may produce a broken library.
16323	allow_undefined_flag_GCJ='-berok'
16324       # Determine the default libpath from the value encoded in an empty executable.
16325       cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h.  */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h.  */
16331
16332int
16333main ()
16334{
16335
16336  ;
16337  return 0;
16338}
16339_ACEOF
16340rm -f conftest.$ac_objext conftest$ac_exeext
16341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342  (eval $ac_link) 2>conftest.er1
16343  ac_status=$?
16344  grep -v '^ *+' conftest.er1 >conftest.err
16345  rm -f conftest.er1
16346  cat conftest.err >&5
16347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348  (exit $ac_status); } &&
16349	 { ac_try='test -z "$ac_c_werror_flag"
16350			 || test ! -s conftest.err'
16351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352  (eval $ac_try) 2>&5
16353  ac_status=$?
16354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355  (exit $ac_status); }; } &&
16356	 { ac_try='test -s conftest$ac_exeext'
16357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358  (eval $ac_try) 2>&5
16359  ac_status=$?
16360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361  (exit $ac_status); }; }; then
16362
16363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16364}'`
16365# Check for a 64-bit object if we didn't find anything.
16366if 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; }
16367}'`; fi
16368else
16369  echo "$as_me: failed program was:" >&5
16370sed 's/^/| /' conftest.$ac_ext >&5
16371
16372fi
16373rm -f conftest.err conftest.$ac_objext \
16374      conftest$ac_exeext conftest.$ac_ext
16375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16376
16377       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16378	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"
16379       else
16380	if test "$host_cpu" = ia64; then
16381	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16382	  allow_undefined_flag_GCJ="-z nodefs"
16383	  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"
16384	else
16385	 # Determine the default libpath from the value encoded in an empty executable.
16386	 cat >conftest.$ac_ext <<_ACEOF
16387/* confdefs.h.  */
16388_ACEOF
16389cat confdefs.h >>conftest.$ac_ext
16390cat >>conftest.$ac_ext <<_ACEOF
16391/* end confdefs.h.  */
16392
16393int
16394main ()
16395{
16396
16397  ;
16398  return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext conftest$ac_exeext
16402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403  (eval $ac_link) 2>conftest.er1
16404  ac_status=$?
16405  grep -v '^ *+' conftest.er1 >conftest.err
16406  rm -f conftest.er1
16407  cat conftest.err >&5
16408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409  (exit $ac_status); } &&
16410	 { ac_try='test -z "$ac_c_werror_flag"
16411			 || test ! -s conftest.err'
16412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413  (eval $ac_try) 2>&5
16414  ac_status=$?
16415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416  (exit $ac_status); }; } &&
16417	 { ac_try='test -s conftest$ac_exeext'
16418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419  (eval $ac_try) 2>&5
16420  ac_status=$?
16421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422  (exit $ac_status); }; }; then
16423
16424aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16425}'`
16426# Check for a 64-bit object if we didn't find anything.
16427if 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; }
16428}'`; fi
16429else
16430  echo "$as_me: failed program was:" >&5
16431sed 's/^/| /' conftest.$ac_ext >&5
16432
16433fi
16434rm -f conftest.err conftest.$ac_objext \
16435      conftest$ac_exeext conftest.$ac_ext
16436if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16437
16438	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16439	  # Warning - without using the other run time loading flags,
16440	  # -berok will link without error, but may produce a broken library.
16441	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16442	  allow_undefined_flag_GCJ=' ${wl}-berok'
16443	  # Exported symbols can be pulled into shared objects from archives
16444	  whole_archive_flag_spec_GCJ='$convenience'
16445	  archive_cmds_need_lc_GCJ=yes
16446	  # This is similar to how AIX traditionally builds its shared libraries.
16447	  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'
16448	fi
16449      fi
16450      ;;
16451
16452    amigaos*)
16453      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)'
16454      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16455      hardcode_minus_L_GCJ=yes
16456      # see comment about different semantics on the GNU ld section
16457      ld_shlibs_GCJ=no
16458      ;;
16459
16460    bsdi[45]*)
16461      export_dynamic_flag_spec_GCJ=-rdynamic
16462      ;;
16463
16464    cygwin* | mingw* | pw32*)
16465      # When not using gcc, we currently assume that we are using
16466      # Microsoft Visual C++.
16467      # hardcode_libdir_flag_spec is actually meaningless, as there is
16468      # no search path for DLLs.
16469      hardcode_libdir_flag_spec_GCJ=' '
16470      allow_undefined_flag_GCJ=unsupported
16471      # Tell ltmain to make .lib files, not .a files.
16472      libext=lib
16473      # Tell ltmain to make .dll files, not .so files.
16474      shrext_cmds=".dll"
16475      # FIXME: Setting linknames here is a bad hack.
16476      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16477      # The linker will automatically build a .lib file if we build a DLL.
16478      old_archive_From_new_cmds_GCJ='true'
16479      # FIXME: Should let the user specify the lib program.
16480      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16481      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16482      enable_shared_with_static_runtimes_GCJ=yes
16483      ;;
16484
16485    darwin* | rhapsody*)
16486      case $host_os in
16487        rhapsody* | darwin1.[012])
16488         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16489         ;;
16490       *) # Darwin 1.3 on
16491         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16492           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16493         else
16494           case ${MACOSX_DEPLOYMENT_TARGET} in
16495             10.[012])
16496               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16497               ;;
16498             10.*)
16499               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16500               ;;
16501           esac
16502         fi
16503         ;;
16504      esac
16505      archive_cmds_need_lc_GCJ=no
16506      hardcode_direct_GCJ=no
16507      hardcode_automatic_GCJ=yes
16508      hardcode_shlibpath_var_GCJ=unsupported
16509      whole_archive_flag_spec_GCJ=''
16510      link_all_deplibs_GCJ=yes
16511    if test "$GCC" = yes ; then
16512    	output_verbose_link_cmd='echo'
16513        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16514      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16515      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16516      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}'
16517      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}'
16518    else
16519      case $cc_basename in
16520        xlc*)
16521         output_verbose_link_cmd='echo'
16522         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16523         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16524          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16525         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}'
16526          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}'
16527          ;;
16528       *)
16529         ld_shlibs_GCJ=no
16530          ;;
16531      esac
16532    fi
16533      ;;
16534
16535    dgux*)
16536      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16538      hardcode_shlibpath_var_GCJ=no
16539      ;;
16540
16541    freebsd1*)
16542      ld_shlibs_GCJ=no
16543      ;;
16544
16545    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16546    # support.  Future versions do this automatically, but an explicit c++rt0.o
16547    # does not break anything, and helps significantly (at the cost of a little
16548    # extra space).
16549    freebsd2.2*)
16550      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16551      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16552      hardcode_direct_GCJ=yes
16553      hardcode_shlibpath_var_GCJ=no
16554      ;;
16555
16556    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16557    freebsd2*)
16558      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16559      hardcode_direct_GCJ=yes
16560      hardcode_minus_L_GCJ=yes
16561      hardcode_shlibpath_var_GCJ=no
16562      ;;
16563
16564    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16565    freebsd* | kfreebsd*-gnu | dragonfly*)
16566      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16567      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16568      hardcode_direct_GCJ=yes
16569      hardcode_shlibpath_var_GCJ=no
16570      ;;
16571
16572    hpux9*)
16573      if test "$GCC" = yes; then
16574	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'
16575      else
16576	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'
16577      fi
16578      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16579      hardcode_libdir_separator_GCJ=:
16580      hardcode_direct_GCJ=yes
16581
16582      # hardcode_minus_L: Not really in the search PATH,
16583      # but as the default location of the library.
16584      hardcode_minus_L_GCJ=yes
16585      export_dynamic_flag_spec_GCJ='${wl}-E'
16586      ;;
16587
16588    hpux10*)
16589      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16590	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16591      else
16592	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16593      fi
16594      if test "$with_gnu_ld" = no; then
16595	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16596	hardcode_libdir_separator_GCJ=:
16597
16598	hardcode_direct_GCJ=yes
16599	export_dynamic_flag_spec_GCJ='${wl}-E'
16600
16601	# hardcode_minus_L: Not really in the search PATH,
16602	# but as the default location of the library.
16603	hardcode_minus_L_GCJ=yes
16604      fi
16605      ;;
16606
16607    hpux11*)
16608      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16609	case $host_cpu in
16610	hppa*64*)
16611	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16612	  ;;
16613	ia64*)
16614	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16615	  ;;
16616	*)
16617	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16618	  ;;
16619	esac
16620      else
16621	case $host_cpu in
16622	hppa*64*)
16623	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16624	  ;;
16625	ia64*)
16626	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16627	  ;;
16628	*)
16629	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16630	  ;;
16631	esac
16632      fi
16633      if test "$with_gnu_ld" = no; then
16634	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16635	hardcode_libdir_separator_GCJ=:
16636
16637	case $host_cpu in
16638	hppa*64*|ia64*)
16639	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16640	  hardcode_direct_GCJ=no
16641	  hardcode_shlibpath_var_GCJ=no
16642	  ;;
16643	*)
16644	  hardcode_direct_GCJ=yes
16645	  export_dynamic_flag_spec_GCJ='${wl}-E'
16646
16647	  # hardcode_minus_L: Not really in the search PATH,
16648	  # but as the default location of the library.
16649	  hardcode_minus_L_GCJ=yes
16650	  ;;
16651	esac
16652      fi
16653      ;;
16654
16655    irix5* | irix6* | nonstopux*)
16656      if test "$GCC" = yes; then
16657	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'
16658      else
16659	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'
16660	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16661      fi
16662      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16663      hardcode_libdir_separator_GCJ=:
16664      link_all_deplibs_GCJ=yes
16665      ;;
16666
16667    netbsd*)
16668      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16669	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16670      else
16671	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16672      fi
16673      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16674      hardcode_direct_GCJ=yes
16675      hardcode_shlibpath_var_GCJ=no
16676      ;;
16677
16678    newsos6)
16679      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680      hardcode_direct_GCJ=yes
16681      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16682      hardcode_libdir_separator_GCJ=:
16683      hardcode_shlibpath_var_GCJ=no
16684      ;;
16685
16686    openbsd*)
16687      hardcode_direct_GCJ=yes
16688      hardcode_shlibpath_var_GCJ=no
16689      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16690	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16691	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16692	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16693	export_dynamic_flag_spec_GCJ='${wl}-E'
16694      else
16695       case $host_os in
16696	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16697	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16698	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16699	   ;;
16700	 *)
16701	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16702	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16703	   ;;
16704       esac
16705      fi
16706      ;;
16707
16708    os2*)
16709      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16710      hardcode_minus_L_GCJ=yes
16711      allow_undefined_flag_GCJ=unsupported
16712      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'
16713      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16714      ;;
16715
16716    osf3*)
16717      if test "$GCC" = yes; then
16718	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16719	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'
16720      else
16721	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16722	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'
16723      fi
16724      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16725      hardcode_libdir_separator_GCJ=:
16726      ;;
16727
16728    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16729      if test "$GCC" = yes; then
16730	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16731	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'
16732	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16733      else
16734	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16735	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'
16736	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~
16737	$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'
16738
16739	# Both c and cxx compiler support -rpath directly
16740	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16741      fi
16742      hardcode_libdir_separator_GCJ=:
16743      ;;
16744
16745    solaris*)
16746      no_undefined_flag_GCJ=' -z text'
16747      if test "$GCC" = yes; then
16748	wlarc='${wl}'
16749	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16750	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16751	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16752      else
16753	wlarc=''
16754	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16755	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16756  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16757      fi
16758      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16759      hardcode_shlibpath_var_GCJ=no
16760      case $host_os in
16761      solaris2.[0-5] | solaris2.[0-5].*) ;;
16762      *)
16763 	# The compiler driver will combine linker options so we
16764 	# cannot just pass the convience library names through
16765 	# without $wl, iff we do not link with $LD.
16766 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16767 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16768 	case $wlarc in
16769 	'')
16770 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16771 	*)
16772 	  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' ;;
16773 	esac ;;
16774      esac
16775      link_all_deplibs_GCJ=yes
16776      ;;
16777
16778    sunos4*)
16779      if test "x$host_vendor" = xsequent; then
16780	# Use $CC to link under sequent, because it throws in some extra .o
16781	# files that make .init and .fini sections work.
16782	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16783      else
16784	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16785      fi
16786      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16787      hardcode_direct_GCJ=yes
16788      hardcode_minus_L_GCJ=yes
16789      hardcode_shlibpath_var_GCJ=no
16790      ;;
16791
16792    sysv4)
16793      case $host_vendor in
16794	sni)
16795	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16796	  hardcode_direct_GCJ=yes # is this really true???
16797	;;
16798	siemens)
16799	  ## LD is ld it makes a PLAMLIB
16800	  ## CC just makes a GrossModule.
16801	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16802	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16803	  hardcode_direct_GCJ=no
16804        ;;
16805	motorola)
16806	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16807	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16808	;;
16809      esac
16810      runpath_var='LD_RUN_PATH'
16811      hardcode_shlibpath_var_GCJ=no
16812      ;;
16813
16814    sysv4.3*)
16815      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816      hardcode_shlibpath_var_GCJ=no
16817      export_dynamic_flag_spec_GCJ='-Bexport'
16818      ;;
16819
16820    sysv4*MP*)
16821      if test -d /usr/nec; then
16822	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823	hardcode_shlibpath_var_GCJ=no
16824	runpath_var=LD_RUN_PATH
16825	hardcode_runpath_var=yes
16826	ld_shlibs_GCJ=yes
16827      fi
16828      ;;
16829
16830    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16831      no_undefined_flag_GCJ='${wl}-z,text'
16832      archive_cmds_need_lc_GCJ=no
16833      hardcode_shlibpath_var_GCJ=no
16834      runpath_var='LD_RUN_PATH'
16835
16836      if test "$GCC" = yes; then
16837	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16838	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16839      else
16840	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16841	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16842      fi
16843      ;;
16844
16845    sysv5* | sco3.2v5* | sco5v6*)
16846      # Note: We can NOT use -z defs as we might desire, because we do not
16847      # link with -lc, and that would cause any symbols used from libc to
16848      # always be unresolved, which means just about no library would
16849      # ever link correctly.  If we're not using GNU ld we use -z text
16850      # though, which does catch some bad symbols but isn't as heavy-handed
16851      # as -z defs.
16852      no_undefined_flag_GCJ='${wl}-z,text'
16853      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16854      archive_cmds_need_lc_GCJ=no
16855      hardcode_shlibpath_var_GCJ=no
16856      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16857      hardcode_libdir_separator_GCJ=':'
16858      link_all_deplibs_GCJ=yes
16859      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16860      runpath_var='LD_RUN_PATH'
16861
16862      if test "$GCC" = yes; then
16863	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16864	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16865      else
16866	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16867	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16868      fi
16869      ;;
16870
16871    uts4*)
16872      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16874      hardcode_shlibpath_var_GCJ=no
16875      ;;
16876
16877    *)
16878      ld_shlibs_GCJ=no
16879      ;;
16880    esac
16881  fi
16882
16883echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16884echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16885test "$ld_shlibs_GCJ" = no && can_build_shared=no
16886
16887#
16888# Do we need to explicitly link libc?
16889#
16890case "x$archive_cmds_need_lc_GCJ" in
16891x|xyes)
16892  # Assume -lc should be added
16893  archive_cmds_need_lc_GCJ=yes
16894
16895  if test "$enable_shared" = yes && test "$GCC" = yes; then
16896    case $archive_cmds_GCJ in
16897    *'~'*)
16898      # FIXME: we may have to deal with multi-command sequences.
16899      ;;
16900    '$CC '*)
16901      # Test whether the compiler implicitly links with -lc since on some
16902      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16903      # to ld, don't add -lc before -lgcc.
16904      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16905echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16906      $rm conftest*
16907      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16908
16909      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16910  (eval $ac_compile) 2>&5
16911  ac_status=$?
16912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913  (exit $ac_status); } 2>conftest.err; then
16914        soname=conftest
16915        lib=conftest
16916        libobjs=conftest.$ac_objext
16917        deplibs=
16918        wl=$lt_prog_compiler_wl_GCJ
16919	pic_flag=$lt_prog_compiler_pic_GCJ
16920        compiler_flags=-v
16921        linker_flags=-v
16922        verstring=
16923        output_objdir=.
16924        libname=conftest
16925        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16926        allow_undefined_flag_GCJ=
16927        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16928  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16929  ac_status=$?
16930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931  (exit $ac_status); }
16932        then
16933	  archive_cmds_need_lc_GCJ=no
16934        else
16935	  archive_cmds_need_lc_GCJ=yes
16936        fi
16937        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16938      else
16939        cat conftest.err 1>&5
16940      fi
16941      $rm conftest*
16942      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16943echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16944      ;;
16945    esac
16946  fi
16947  ;;
16948esac
16949
16950echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16952library_names_spec=
16953libname_spec='lib$name'
16954soname_spec=
16955shrext_cmds=".so"
16956postinstall_cmds=
16957postuninstall_cmds=
16958finish_cmds=
16959finish_eval=
16960shlibpath_var=
16961shlibpath_overrides_runpath=unknown
16962version_type=none
16963dynamic_linker="$host_os ld.so"
16964sys_lib_dlsearch_path_spec="/lib /usr/lib"
16965if test "$GCC" = yes; then
16966  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16967  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16968    # if the path contains ";" then we assume it to be the separator
16969    # otherwise default to the standard path separator (i.e. ":") - it is
16970    # assumed that no part of a normal pathname contains ";" but that should
16971    # okay in the real world where ";" in dirpaths is itself problematic.
16972    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16973  else
16974    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16975  fi
16976else
16977  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16978fi
16979need_lib_prefix=unknown
16980hardcode_into_libs=no
16981
16982# when you set need_version to no, make sure it does not cause -set_version
16983# flags to be left without arguments
16984need_version=unknown
16985
16986case $host_os in
16987aix3*)
16988  version_type=linux
16989  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16990  shlibpath_var=LIBPATH
16991
16992  # AIX 3 has no versioning support, so we append a major version to the name.
16993  soname_spec='${libname}${release}${shared_ext}$major'
16994  ;;
16995
16996aix4* | aix5*)
16997  version_type=linux
16998  need_lib_prefix=no
16999  need_version=no
17000  hardcode_into_libs=yes
17001  if test "$host_cpu" = ia64; then
17002    # AIX 5 supports IA64
17003    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17004    shlibpath_var=LD_LIBRARY_PATH
17005  else
17006    # With GCC up to 2.95.x, collect2 would create an import file
17007    # for dependence libraries.  The import file would start with
17008    # the line `#! .'.  This would cause the generated library to
17009    # depend on `.', always an invalid library.  This was fixed in
17010    # development snapshots of GCC prior to 3.0.
17011    case $host_os in
17012      aix4 | aix4.[01] | aix4.[01].*)
17013      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17014	   echo ' yes '
17015	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17016	:
17017      else
17018	can_build_shared=no
17019      fi
17020      ;;
17021    esac
17022    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17023    # soname into executable. Probably we can add versioning support to
17024    # collect2, so additional links can be useful in future.
17025    if test "$aix_use_runtimelinking" = yes; then
17026      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17027      # instead of lib<name>.a to let people know that these are not
17028      # typical AIX shared libraries.
17029      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030    else
17031      # We preserve .a as extension for shared libraries through AIX4.2
17032      # and later when we are not doing run time linking.
17033      library_names_spec='${libname}${release}.a $libname.a'
17034      soname_spec='${libname}${release}${shared_ext}$major'
17035    fi
17036    shlibpath_var=LIBPATH
17037  fi
17038  ;;
17039
17040amigaos*)
17041  library_names_spec='$libname.ixlibrary $libname.a'
17042  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17043  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'
17044  ;;
17045
17046beos*)
17047  library_names_spec='${libname}${shared_ext}'
17048  dynamic_linker="$host_os ld.so"
17049  shlibpath_var=LIBRARY_PATH
17050  ;;
17051
17052bsdi[45]*)
17053  version_type=linux
17054  need_version=no
17055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056  soname_spec='${libname}${release}${shared_ext}$major'
17057  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17058  shlibpath_var=LD_LIBRARY_PATH
17059  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17060  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17061  # the default ld.so.conf also contains /usr/contrib/lib and
17062  # /usr/local/lib (/usr/X11 is a link to /usr/local), but let us allow
17063  # libtool to hard-code these into programs
17064  ;;
17065
17066cygwin* | mingw* | pw32*)
17067  version_type=windows
17068  shrext_cmds=".dll"
17069  need_version=no
17070  need_lib_prefix=no
17071
17072  case $GCC,$host_os in
17073  yes,cygwin* | yes,mingw* | yes,pw32*)
17074    library_names_spec='$libname.dll.a'
17075    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17076    postinstall_cmds='base_file=`basename \${file}`~
17077      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17078      dldir=$destdir/`dirname \$dlpath`~
17079      test -d \$dldir || mkdir -p \$dldir~
17080      $install_prog $dir/$dlname \$dldir/$dlname~
17081      chmod a+x \$dldir/$dlname'
17082    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17083      dlpath=$dir/\$dldll~
17084       $rm \$dlpath'
17085    shlibpath_overrides_runpath=yes
17086
17087    case $host_os in
17088    cygwin*)
17089      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17090      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17091      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17092      ;;
17093    mingw*)
17094      # MinGW DLLs use traditional 'lib' prefix
17095      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17096      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17097      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17098        # It is most probably a Windows format PATH printed by
17099        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17100        # path with ; separators, and with drive letters. We can handle the
17101        # drive letters (cygwin fileutils understands them), so leave them,
17102        # especially as we might pass files found there to a mingw objdump,
17103        # which wouldn't understand a cygwinified path. Ahh.
17104        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17105      else
17106        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17107      fi
17108      ;;
17109    pw32*)
17110      # pw32 DLLs use 'pw' prefix rather than 'lib'
17111      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17112      ;;
17113    esac
17114    ;;
17115
17116  *)
17117    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17118    ;;
17119  esac
17120  dynamic_linker='Win32 ld.exe'
17121  # FIXME: first we should search . and the directory the executable is in
17122  shlibpath_var=PATH
17123  ;;
17124
17125darwin* | rhapsody*)
17126  dynamic_linker="$host_os dyld"
17127  version_type=darwin
17128  need_lib_prefix=no
17129  need_version=no
17130  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17131  soname_spec='${libname}${release}${major}$shared_ext'
17132  shlibpath_overrides_runpath=yes
17133  shlibpath_var=DYLD_LIBRARY_PATH
17134  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17135  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17136  if test "$GCC" = yes; then
17137    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"`
17138  else
17139    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17140  fi
17141  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17142  ;;
17143
17144dgux*)
17145  version_type=linux
17146  need_lib_prefix=no
17147  need_version=no
17148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17149  soname_spec='${libname}${release}${shared_ext}$major'
17150  shlibpath_var=LD_LIBRARY_PATH
17151  ;;
17152
17153freebsd1*)
17154  dynamic_linker=no
17155  ;;
17156
17157kfreebsd*-gnu)
17158  version_type=linux
17159  need_lib_prefix=no
17160  need_version=no
17161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17162  soname_spec='${libname}${release}${shared_ext}$major'
17163  shlibpath_var=LD_LIBRARY_PATH
17164  shlibpath_overrides_runpath=no
17165  hardcode_into_libs=yes
17166  dynamic_linker='GNU ld.so'
17167  ;;
17168
17169freebsd* | dragonfly*)
17170  # DragonFly does not have aout.  When/if they implement a new
17171  # versioning mechanism, adjust this.
17172  if test -x /usr/bin/objformat; then
17173    objformat=`/usr/bin/objformat`
17174  else
17175    case $host_os in
17176    freebsd[123]*) objformat=aout ;;
17177    *) objformat=elf ;;
17178    esac
17179  fi
17180  version_type=freebsd-$objformat
17181  case $version_type in
17182    freebsd-elf*)
17183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17184      need_version=no
17185      need_lib_prefix=no
17186      ;;
17187    freebsd-*)
17188      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17189      need_version=yes
17190      ;;
17191  esac
17192  shlibpath_var=LD_LIBRARY_PATH
17193  case $host_os in
17194  freebsd2*)
17195    shlibpath_overrides_runpath=yes
17196    ;;
17197  freebsd3.[01]* | freebsdelf3.[01]*)
17198    shlibpath_overrides_runpath=yes
17199    hardcode_into_libs=yes
17200    ;;
17201  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17202  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17203    shlibpath_overrides_runpath=no
17204    hardcode_into_libs=yes
17205    ;;
17206  freebsd*) # from 4.6 on
17207    shlibpath_overrides_runpath=yes
17208    hardcode_into_libs=yes
17209    ;;
17210  esac
17211  ;;
17212
17213gnu*)
17214  version_type=linux
17215  need_lib_prefix=no
17216  need_version=no
17217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17218  soname_spec='${libname}${release}${shared_ext}$major'
17219  shlibpath_var=LD_LIBRARY_PATH
17220  hardcode_into_libs=yes
17221  ;;
17222
17223hpux9* | hpux10* | hpux11*)
17224  # Give a soname corresponding to the major version so that dld.sl refuses to
17225  # link against other versions.
17226  version_type=sunos
17227  need_lib_prefix=no
17228  need_version=no
17229  case $host_cpu in
17230  ia64*)
17231    shrext_cmds='.so'
17232    hardcode_into_libs=yes
17233    dynamic_linker="$host_os dld.so"
17234    shlibpath_var=LD_LIBRARY_PATH
17235    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17236    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237    soname_spec='${libname}${release}${shared_ext}$major'
17238    if test "X$HPUX_IA64_MODE" = X32; then
17239      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17240    else
17241      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17242    fi
17243    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17244    ;;
17245   hppa*64*)
17246     shrext_cmds='.sl'
17247     hardcode_into_libs=yes
17248     dynamic_linker="$host_os dld.sl"
17249     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17250     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252     soname_spec='${libname}${release}${shared_ext}$major'
17253     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17254     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17255     ;;
17256   *)
17257    shrext_cmds='.sl'
17258    dynamic_linker="$host_os dld.sl"
17259    shlibpath_var=SHLIB_PATH
17260    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17261    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262    soname_spec='${libname}${release}${shared_ext}$major'
17263    ;;
17264  esac
17265  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17266  postinstall_cmds='chmod 555 $lib'
17267  ;;
17268
17269interix3*)
17270  version_type=linux
17271  need_lib_prefix=no
17272  need_version=no
17273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17274  soname_spec='${libname}${release}${shared_ext}$major'
17275  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17276  shlibpath_var=LD_LIBRARY_PATH
17277  shlibpath_overrides_runpath=no
17278  hardcode_into_libs=yes
17279  ;;
17280
17281irix5* | irix6* | nonstopux*)
17282  case $host_os in
17283    nonstopux*) version_type=nonstopux ;;
17284    *)
17285	if test "$lt_cv_prog_gnu_ld" = yes; then
17286		version_type=linux
17287	else
17288		version_type=irix
17289	fi ;;
17290  esac
17291  need_lib_prefix=no
17292  need_version=no
17293  soname_spec='${libname}${release}${shared_ext}$major'
17294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17295  case $host_os in
17296  irix5* | nonstopux*)
17297    libsuff= shlibsuff=
17298    ;;
17299  *)
17300    case $LD in # libtool.m4 will add one of these switches to LD
17301    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17302      libsuff= shlibsuff= libmagic=32-bit;;
17303    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17304      libsuff=32 shlibsuff=N32 libmagic=N32;;
17305    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17306      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17307    *) libsuff= shlibsuff= libmagic=never-match;;
17308    esac
17309    ;;
17310  esac
17311  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17312  shlibpath_overrides_runpath=no
17313  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17314  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17315  hardcode_into_libs=yes
17316  ;;
17317
17318# No shared lib support for Linux oldld, aout, or coff.
17319linux*oldld* | linux*aout* | linux*coff*)
17320  dynamic_linker=no
17321  ;;
17322
17323# This must be Linux ELF.
17324linux*)
17325  version_type=linux
17326  need_lib_prefix=no
17327  need_version=no
17328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329  soname_spec='${libname}${release}${shared_ext}$major'
17330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17331  shlibpath_var=LD_LIBRARY_PATH
17332  shlibpath_overrides_runpath=no
17333  # This implies no fast_install, which is unacceptable.
17334  # Some rework will be needed to allow for fast_install
17335  # before this can be enabled.
17336  hardcode_into_libs=yes
17337
17338  # Append ld.so.conf contents to the search path
17339  if test -f /etc/ld.so.conf; then
17340    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' ' '`
17341    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17342  fi
17343
17344  # We used to test for /lib/ld.so.1 and disable shared libraries on
17345  # powerpc, because MkLinux only supported shared libraries with the
17346  # GNU dynamic linker.  Since this was broken with cross compilers,
17347  # most powerpc-linux boxes support dynamic linking these days and
17348  # people can always --disable-shared, the test was removed, and we
17349  # assume the GNU/Linux dynamic linker is in use.
17350  dynamic_linker='GNU/Linux ld.so'
17351  ;;
17352
17353knetbsd*-gnu)
17354  version_type=linux
17355  need_lib_prefix=no
17356  need_version=no
17357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17358  soname_spec='${libname}${release}${shared_ext}$major'
17359  shlibpath_var=LD_LIBRARY_PATH
17360  shlibpath_overrides_runpath=no
17361  hardcode_into_libs=yes
17362  dynamic_linker='GNU ld.so'
17363  ;;
17364
17365netbsd*)
17366  version_type=sunos
17367  need_lib_prefix=no
17368  need_version=no
17369  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17371    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17372    dynamic_linker='NetBSD (a.out) ld.so'
17373  else
17374    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17375    soname_spec='${libname}${release}${shared_ext}$major'
17376    dynamic_linker='NetBSD ld.elf_so'
17377  fi
17378  shlibpath_var=LD_LIBRARY_PATH
17379  shlibpath_overrides_runpath=yes
17380  hardcode_into_libs=yes
17381  ;;
17382
17383newsos6)
17384  version_type=linux
17385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386  shlibpath_var=LD_LIBRARY_PATH
17387  shlibpath_overrides_runpath=yes
17388  ;;
17389
17390nto-qnx*)
17391  version_type=linux
17392  need_lib_prefix=no
17393  need_version=no
17394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395  soname_spec='${libname}${release}${shared_ext}$major'
17396  shlibpath_var=LD_LIBRARY_PATH
17397  shlibpath_overrides_runpath=yes
17398  ;;
17399
17400openbsd*)
17401  version_type=sunos
17402  sys_lib_dlsearch_path_spec="/usr/lib"
17403  need_lib_prefix=no
17404  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17405  case $host_os in
17406    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17407    *)                         need_version=no  ;;
17408  esac
17409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17410  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17411  shlibpath_var=LD_LIBRARY_PATH
17412  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17413    case $host_os in
17414      openbsd2.[89] | openbsd2.[89].*)
17415	shlibpath_overrides_runpath=no
17416	;;
17417      *)
17418	shlibpath_overrides_runpath=yes
17419	;;
17420      esac
17421  else
17422    shlibpath_overrides_runpath=yes
17423  fi
17424  ;;
17425
17426os2*)
17427  libname_spec='$name'
17428  shrext_cmds=".dll"
17429  need_lib_prefix=no
17430  library_names_spec='$libname${shared_ext} $libname.a'
17431  dynamic_linker='OS/2 ld.exe'
17432  shlibpath_var=LIBPATH
17433  ;;
17434
17435osf3* | osf4* | osf5*)
17436  version_type=osf
17437  need_lib_prefix=no
17438  need_version=no
17439  soname_spec='${libname}${release}${shared_ext}$major'
17440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441  shlibpath_var=LD_LIBRARY_PATH
17442  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17443  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17444  ;;
17445
17446solaris*)
17447  version_type=linux
17448  need_lib_prefix=no
17449  need_version=no
17450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451  soname_spec='${libname}${release}${shared_ext}$major'
17452  shlibpath_var=LD_LIBRARY_PATH
17453  shlibpath_overrides_runpath=yes
17454  hardcode_into_libs=yes
17455  # ldd complains unless libraries are executable
17456  postinstall_cmds='chmod +x $lib'
17457  ;;
17458
17459sunos4*)
17460  version_type=sunos
17461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17462  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17463  shlibpath_var=LD_LIBRARY_PATH
17464  shlibpath_overrides_runpath=yes
17465  if test "$with_gnu_ld" = yes; then
17466    need_lib_prefix=no
17467  fi
17468  need_version=yes
17469  ;;
17470
17471sysv4 | sysv4.3*)
17472  version_type=linux
17473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17474  soname_spec='${libname}${release}${shared_ext}$major'
17475  shlibpath_var=LD_LIBRARY_PATH
17476  case $host_vendor in
17477    sni)
17478      shlibpath_overrides_runpath=no
17479      need_lib_prefix=no
17480      export_dynamic_flag_spec='${wl}-Blargedynsym'
17481      runpath_var=LD_RUN_PATH
17482      ;;
17483    siemens)
17484      need_lib_prefix=no
17485      ;;
17486    motorola)
17487      need_lib_prefix=no
17488      need_version=no
17489      shlibpath_overrides_runpath=no
17490      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17491      ;;
17492  esac
17493  ;;
17494
17495sysv4*MP*)
17496  if test -d /usr/nec ;then
17497    version_type=linux
17498    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17499    soname_spec='$libname${shared_ext}.$major'
17500    shlibpath_var=LD_LIBRARY_PATH
17501  fi
17502  ;;
17503
17504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17505  version_type=freebsd-elf
17506  need_lib_prefix=no
17507  need_version=no
17508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17509  soname_spec='${libname}${release}${shared_ext}$major'
17510  shlibpath_var=LD_LIBRARY_PATH
17511  hardcode_into_libs=yes
17512  if test "$with_gnu_ld" = yes; then
17513    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17514    shlibpath_overrides_runpath=no
17515  else
17516    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17517    shlibpath_overrides_runpath=yes
17518    case $host_os in
17519      sco3.2v5*)
17520        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17521	;;
17522    esac
17523  fi
17524  sys_lib_dlsearch_path_spec='/usr/lib'
17525  ;;
17526
17527uts4*)
17528  version_type=linux
17529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530  soname_spec='${libname}${release}${shared_ext}$major'
17531  shlibpath_var=LD_LIBRARY_PATH
17532  ;;
17533
17534*)
17535  dynamic_linker=no
17536  ;;
17537esac
17538echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17539echo "${ECHO_T}$dynamic_linker" >&6
17540test "$dynamic_linker" = no && can_build_shared=no
17541
17542variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17543if test "$GCC" = yes; then
17544  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17545fi
17546
17547echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17549hardcode_action_GCJ=
17550if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17551   test -n "$runpath_var_GCJ" || \
17552   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17553
17554  # We can hardcode non-existant directories.
17555  if test "$hardcode_direct_GCJ" != no &&
17556     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17557     # have to relink, otherwise we might link with an installed library
17558     # when we should be linking with a yet-to-be-installed one
17559     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17560     test "$hardcode_minus_L_GCJ" != no; then
17561    # Linking always hardcodes the temporary library directory.
17562    hardcode_action_GCJ=relink
17563  else
17564    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17565    hardcode_action_GCJ=immediate
17566  fi
17567else
17568  # We cannot hardcode anything, or else we can only hardcode existing
17569  # directories.
17570  hardcode_action_GCJ=unsupported
17571fi
17572echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17573echo "${ECHO_T}$hardcode_action_GCJ" >&6
17574
17575if test "$hardcode_action_GCJ" = relink; then
17576  # Fast installation is not supported
17577  enable_fast_install=no
17578elif test "$shlibpath_overrides_runpath" = yes ||
17579     test "$enable_shared" = no; then
17580  # Fast installation is not necessary
17581  enable_fast_install=needless
17582fi
17583
17584
17585# The else clause should only fire when bootstrapping the
17586# libtool distribution, otherwise you forgot to ship ltmain.sh
17587# with your package, and you will get complaints that there are
17588# no rules to generate ltmain.sh.
17589if test -f "$ltmain"; then
17590  # See if we are running on zsh, and set the options which allow our commands through
17591  # without removal of \ escapes.
17592  if test -n "${ZSH_VERSION+set}" ; then
17593    setopt NO_GLOB_SUBST
17594  fi
17595  # Now quote all the things that may contain metacharacters while being
17596  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17597  # variables and quote the copies for generation of the libtool script.
17598  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17599    SED SHELL STRIP \
17600    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17601    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17602    deplibs_check_method reload_flag reload_cmds need_locks \
17603    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17604    lt_cv_sys_global_symbol_to_c_name_address \
17605    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17606    old_postinstall_cmds old_postuninstall_cmds \
17607    compiler_GCJ \
17608    CC_GCJ \
17609    LD_GCJ \
17610    lt_prog_compiler_wl_GCJ \
17611    lt_prog_compiler_pic_GCJ \
17612    lt_prog_compiler_static_GCJ \
17613    lt_prog_compiler_no_builtin_flag_GCJ \
17614    export_dynamic_flag_spec_GCJ \
17615    thread_safe_flag_spec_GCJ \
17616    whole_archive_flag_spec_GCJ \
17617    enable_shared_with_static_runtimes_GCJ \
17618    old_archive_cmds_GCJ \
17619    old_archive_from_new_cmds_GCJ \
17620    predep_objects_GCJ \
17621    postdep_objects_GCJ \
17622    predeps_GCJ \
17623    postdeps_GCJ \
17624    compiler_lib_search_path_GCJ \
17625    archive_cmds_GCJ \
17626    archive_expsym_cmds_GCJ \
17627    postinstall_cmds_GCJ \
17628    postuninstall_cmds_GCJ \
17629    old_archive_from_expsyms_cmds_GCJ \
17630    allow_undefined_flag_GCJ \
17631    no_undefined_flag_GCJ \
17632    export_symbols_cmds_GCJ \
17633    hardcode_libdir_flag_spec_GCJ \
17634    hardcode_libdir_flag_spec_ld_GCJ \
17635    hardcode_libdir_separator_GCJ \
17636    hardcode_automatic_GCJ \
17637    module_cmds_GCJ \
17638    module_expsym_cmds_GCJ \
17639    lt_cv_prog_compiler_c_o_GCJ \
17640    exclude_expsyms_GCJ \
17641    include_expsyms_GCJ; do
17642
17643    case $var in
17644    old_archive_cmds_GCJ | \
17645    old_archive_from_new_cmds_GCJ | \
17646    archive_cmds_GCJ | \
17647    archive_expsym_cmds_GCJ | \
17648    module_cmds_GCJ | \
17649    module_expsym_cmds_GCJ | \
17650    old_archive_from_expsyms_cmds_GCJ | \
17651    export_symbols_cmds_GCJ | \
17652    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17653    postinstall_cmds | postuninstall_cmds | \
17654    old_postinstall_cmds | old_postuninstall_cmds | \
17655    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17656      # Double-quote double-evaled strings.
17657      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17658      ;;
17659    *)
17660      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17661      ;;
17662    esac
17663  done
17664
17665  case $lt_echo in
17666  *'\$0 --fallback-echo"')
17667    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17668    ;;
17669  esac
17670
17671cfgfile="$ofile"
17672
17673  cat <<__EOF__ >> "$cfgfile"
17674# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17675
17676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17677
17678# Shell to use when invoking shell scripts.
17679SHELL=$lt_SHELL
17680
17681# Whether or not to build shared libraries.
17682build_libtool_libs=$enable_shared
17683
17684# Whether or not to build static libraries.
17685build_old_libs=$enable_static
17686
17687# Whether or not to add -lc for building shared libraries.
17688build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17689
17690# Whether or not to disallow shared libs when runtime libs are static
17691allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17692
17693# Whether or not to optimize for fast installation.
17694fast_install=$enable_fast_install
17695
17696# The host system.
17697host_alias=$host_alias
17698host=$host
17699host_os=$host_os
17700
17701# The build system.
17702build_alias=$build_alias
17703build=$build
17704build_os=$build_os
17705
17706# An echo program that does not interpret backslashes.
17707echo=$lt_echo
17708
17709# The archiver.
17710AR=$lt_AR
17711AR_FLAGS=$lt_AR_FLAGS
17712
17713# A C compiler.
17714LTCC=$lt_LTCC
17715
17716# LTCC compiler flags.
17717LTCFLAGS=$lt_LTCFLAGS
17718
17719# A language-specific compiler.
17720CC=$lt_compiler_GCJ
17721
17722# Is the compiler the GNU C compiler?
17723with_gcc=$GCC_GCJ
17724
17725# An ERE matcher.
17726EGREP=$lt_EGREP
17727
17728# The linker used to build libraries.
17729LD=$lt_LD_GCJ
17730
17731# Whether we need hard or soft links.
17732LN_S=$lt_LN_S
17733
17734# A BSD-compatible nm program.
17735NM=$lt_NM
17736
17737# A symbol stripping program
17738STRIP=$lt_STRIP
17739
17740# Used to examine libraries when file_magic_cmd begins "file"
17741MAGIC_CMD=$MAGIC_CMD
17742
17743# Used on cygwin: DLL creation program.
17744DLLTOOL="$DLLTOOL"
17745
17746# Used on cygwin: object dumper.
17747OBJDUMP="$OBJDUMP"
17748
17749# Used on cygwin: assembler.
17750AS="$AS"
17751
17752# The name of the directory that contains temporary libtool files.
17753objdir=$objdir
17754
17755# How to create reloadable object files.
17756reload_flag=$lt_reload_flag
17757reload_cmds=$lt_reload_cmds
17758
17759# How to pass a linker flag through the compiler.
17760wl=$lt_lt_prog_compiler_wl_GCJ
17761
17762# Object file suffix (normally "o").
17763objext="$ac_objext"
17764
17765# Old archive suffix (normally "a").
17766libext="$libext"
17767
17768# Shared library suffix (normally ".so").
17769shrext_cmds='$shrext_cmds'
17770
17771# Executable file suffix (normally "").
17772exeext="$exeext"
17773
17774# Additional compiler flags for building library objects.
17775pic_flag=$lt_lt_prog_compiler_pic_GCJ
17776pic_mode=$pic_mode
17777
17778# What is the maximum length of a command?
17779max_cmd_len=$lt_cv_sys_max_cmd_len
17780
17781# Does compiler simultaneously support -c and -o options?
17782compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17783
17784# Must we lock files when doing compilation?
17785need_locks=$lt_need_locks
17786
17787# Do we need the lib prefix for modules?
17788need_lib_prefix=$need_lib_prefix
17789
17790# Do we need a version for libraries?
17791need_version=$need_version
17792
17793# Whether dlopen is supported.
17794dlopen_support=$enable_dlopen
17795
17796# Whether dlopen of programs is supported.
17797dlopen_self=$enable_dlopen_self
17798
17799# Whether dlopen of statically linked programs is supported.
17800dlopen_self_static=$enable_dlopen_self_static
17801
17802# Compiler flag to prevent dynamic linking.
17803link_static_flag=$lt_lt_prog_compiler_static_GCJ
17804
17805# Compiler flag to turn off builtin functions.
17806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17807
17808# Compiler flag to allow reflexive dlopens.
17809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17810
17811# Compiler flag to generate shared objects directly from archives.
17812whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17813
17814# Compiler flag to generate thread-safe objects.
17815thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17816
17817# Library versioning type.
17818version_type=$version_type
17819
17820# Format of library name prefix.
17821libname_spec=$lt_libname_spec
17822
17823# List of archive names.  First name is the real one, the rest are links.
17824# The last name is the one that the linker finds with -lNAME.
17825library_names_spec=$lt_library_names_spec
17826
17827# The coded name of the library, if different from the real name.
17828soname_spec=$lt_soname_spec
17829
17830# Commands used to build and install an old-style archive.
17831RANLIB=$lt_RANLIB
17832old_archive_cmds=$lt_old_archive_cmds_GCJ
17833old_postinstall_cmds=$lt_old_postinstall_cmds
17834old_postuninstall_cmds=$lt_old_postuninstall_cmds
17835
17836# Create an old-style archive from a shared archive.
17837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17838
17839# Create a temporary old-style archive to link instead of a shared archive.
17840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17841
17842# Commands used to build and install a shared archive.
17843archive_cmds=$lt_archive_cmds_GCJ
17844archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17845postinstall_cmds=$lt_postinstall_cmds
17846postuninstall_cmds=$lt_postuninstall_cmds
17847
17848# Commands used to build a loadable module (assumed same as above if empty)
17849module_cmds=$lt_module_cmds_GCJ
17850module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17851
17852# Commands to strip libraries.
17853old_striplib=$lt_old_striplib
17854striplib=$lt_striplib
17855
17856# Dependencies to place before the objects being linked to create a
17857# shared library.
17858predep_objects=$lt_predep_objects_GCJ
17859
17860# Dependencies to place after the objects being linked to create a
17861# shared library.
17862postdep_objects=$lt_postdep_objects_GCJ
17863
17864# Dependencies to place before the objects being linked to create a
17865# shared library.
17866predeps=$lt_predeps_GCJ
17867
17868# Dependencies to place after the objects being linked to create a
17869# shared library.
17870postdeps=$lt_postdeps_GCJ
17871
17872# The library search path used internally by the compiler when linking
17873# a shared library.
17874compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17875
17876# Method to check whether dependent libraries are shared objects.
17877deplibs_check_method=$lt_deplibs_check_method
17878
17879# Command to use when deplibs_check_method == file_magic.
17880file_magic_cmd=$lt_file_magic_cmd
17881
17882# Flag that allows shared libraries with undefined symbols to be built.
17883allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17884
17885# Flag that forces no undefined symbols.
17886no_undefined_flag=$lt_no_undefined_flag_GCJ
17887
17888# Commands used to finish a libtool library installation in a directory.
17889finish_cmds=$lt_finish_cmds
17890
17891# Same as above, but a single script fragment to be evaled but not shown.
17892finish_eval=$lt_finish_eval
17893
17894# Take the output of nm and produce a listing of raw symbols and C names.
17895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17896
17897# Transform the output of nm in a proper C declaration
17898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17899
17900# Transform the output of nm in a C name address pair
17901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17902
17903# This is the shared library runtime path variable.
17904runpath_var=$runpath_var
17905
17906# This is the shared library path variable.
17907shlibpath_var=$shlibpath_var
17908
17909# Is shlibpath searched before the hard-coded library search path?
17910shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17911
17912# How to hardcode a shared library path into an executable.
17913hardcode_action=$hardcode_action_GCJ
17914
17915# Whether we should hardcode library paths into libraries.
17916hardcode_into_libs=$hardcode_into_libs
17917
17918# Flag to hardcode \$libdir into a binary during linking.
17919# This must work even if \$libdir does not exist.
17920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17921
17922# If ld is used when linking, flag to hardcode \$libdir into
17923# a binary during linking. This must work even if \$libdir does
17924# not exist.
17925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17926
17927# Whether we need a single -rpath flag with a separated argument.
17928hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17929
17930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17931# resulting binary.
17932hardcode_direct=$hardcode_direct_GCJ
17933
17934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17935# resulting binary.
17936hardcode_minus_L=$hardcode_minus_L_GCJ
17937
17938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17939# the resulting binary.
17940hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17941
17942# Set to yes if building a shared library automatically hardcodes DIR into the library
17943# and all subsequent libraries and executables linked against it.
17944hardcode_automatic=$hardcode_automatic_GCJ
17945
17946# Variables whose values should be saved in libtool wrapper scripts and
17947# restored at relink time.
17948variables_saved_for_relink="$variables_saved_for_relink"
17949
17950# Whether libtool must link a program against all its dependency libraries.
17951link_all_deplibs=$link_all_deplibs_GCJ
17952
17953# Compile-time system search path for libraries
17954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17955
17956# Run-time system search path for libraries
17957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17958
17959# Fix the shell variable \$srcfile for the compiler.
17960fix_srcfile_path="$fix_srcfile_path_GCJ"
17961
17962# Set to yes if exported symbols are required.
17963always_export_symbols=$always_export_symbols_GCJ
17964
17965# The commands to list exported symbols.
17966export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17967
17968# The commands to extract the exported symbol list from a shared archive.
17969extract_expsyms_cmds=$lt_extract_expsyms_cmds
17970
17971# Symbols that should not be listed in the preloaded symbols.
17972exclude_expsyms=$lt_exclude_expsyms_GCJ
17973
17974# Symbols that must always be exported.
17975include_expsyms=$lt_include_expsyms_GCJ
17976
17977# ### END LIBTOOL TAG CONFIG: $tagname
17978
17979__EOF__
17980
17981
17982else
17983  # If there is no Makefile yet, we rely on a make rule to execute
17984  # `config.status --recheck' to rerun these tests and create the
17985  # libtool script then.
17986  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17987  if test -f "$ltmain_in"; then
17988    test -f Makefile && make "$ltmain"
17989  fi
17990fi
17991
17992
17993ac_ext=c
17994ac_cpp='$CPP $CPPFLAGS'
17995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997ac_compiler_gnu=$ac_cv_c_compiler_gnu
17998
17999CC="$lt_save_CC"
18000
18001	else
18002	  tagname=""
18003	fi
18004	;;
18005
18006      RC)
18007
18008
18009
18010# Source file extension for RC test sources.
18011ac_ext=rc
18012
18013# Object file extension for compiled RC test sources.
18014objext=o
18015objext_RC=$objext
18016
18017# Code to be used in simple compile tests
18018lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18019
18020# Code to be used in simple link tests
18021lt_simple_link_test_code="$lt_simple_compile_test_code"
18022
18023# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18024
18025# If no C compiler was specified, use CC.
18026LTCC=${LTCC-"$CC"}
18027
18028# If no C compiler flags were specified, use CFLAGS.
18029LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18030
18031# Allow CC to be a program name with arguments.
18032compiler=$CC
18033
18034
18035# save warnings/boilerplate of simple test code
18036ac_outfile=conftest.$ac_objext
18037printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18038eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18039_lt_compiler_boilerplate=`cat conftest.err`
18040$rm conftest*
18041
18042ac_outfile=conftest.$ac_objext
18043printf "$lt_simple_link_test_code" >conftest.$ac_ext
18044eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18045_lt_linker_boilerplate=`cat conftest.err`
18046$rm conftest*
18047
18048
18049# Allow CC to be a program name with arguments.
18050lt_save_CC="$CC"
18051CC=${RC-"windres"}
18052compiler=$CC
18053compiler_RC=$CC
18054for cc_temp in $compiler""; do
18055  case $cc_temp in
18056    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18057    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18058    \-*) ;;
18059    *) break;;
18060  esac
18061done
18062cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18063
18064lt_cv_prog_compiler_c_o_RC=yes
18065
18066# The else clause should only fire when bootstrapping the
18067# libtool distribution, otherwise you forgot to ship ltmain.sh
18068# with your package, and you will get complaints that there are
18069# no rules to generate ltmain.sh.
18070if test -f "$ltmain"; then
18071  # See if we are running on zsh, and set the options which allow our commands through
18072  # without removal of \ escapes.
18073  if test -n "${ZSH_VERSION+set}" ; then
18074    setopt NO_GLOB_SUBST
18075  fi
18076  # Now quote all the things that may contain metacharacters while being
18077  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18078  # variables and quote the copies for generation of the libtool script.
18079  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18080    SED SHELL STRIP \
18081    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18082    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18083    deplibs_check_method reload_flag reload_cmds need_locks \
18084    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18085    lt_cv_sys_global_symbol_to_c_name_address \
18086    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18087    old_postinstall_cmds old_postuninstall_cmds \
18088    compiler_RC \
18089    CC_RC \
18090    LD_RC \
18091    lt_prog_compiler_wl_RC \
18092    lt_prog_compiler_pic_RC \
18093    lt_prog_compiler_static_RC \
18094    lt_prog_compiler_no_builtin_flag_RC \
18095    export_dynamic_flag_spec_RC \
18096    thread_safe_flag_spec_RC \
18097    whole_archive_flag_spec_RC \
18098    enable_shared_with_static_runtimes_RC \
18099    old_archive_cmds_RC \
18100    old_archive_from_new_cmds_RC \
18101    predep_objects_RC \
18102    postdep_objects_RC \
18103    predeps_RC \
18104    postdeps_RC \
18105    compiler_lib_search_path_RC \
18106    archive_cmds_RC \
18107    archive_expsym_cmds_RC \
18108    postinstall_cmds_RC \
18109    postuninstall_cmds_RC \
18110    old_archive_from_expsyms_cmds_RC \
18111    allow_undefined_flag_RC \
18112    no_undefined_flag_RC \
18113    export_symbols_cmds_RC \
18114    hardcode_libdir_flag_spec_RC \
18115    hardcode_libdir_flag_spec_ld_RC \
18116    hardcode_libdir_separator_RC \
18117    hardcode_automatic_RC \
18118    module_cmds_RC \
18119    module_expsym_cmds_RC \
18120    lt_cv_prog_compiler_c_o_RC \
18121    exclude_expsyms_RC \
18122    include_expsyms_RC; do
18123
18124    case $var in
18125    old_archive_cmds_RC | \
18126    old_archive_from_new_cmds_RC | \
18127    archive_cmds_RC | \
18128    archive_expsym_cmds_RC | \
18129    module_cmds_RC | \
18130    module_expsym_cmds_RC | \
18131    old_archive_from_expsyms_cmds_RC | \
18132    export_symbols_cmds_RC | \
18133    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18134    postinstall_cmds | postuninstall_cmds | \
18135    old_postinstall_cmds | old_postuninstall_cmds | \
18136    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18137      # Double-quote double-evaled strings.
18138      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18139      ;;
18140    *)
18141      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18142      ;;
18143    esac
18144  done
18145
18146  case $lt_echo in
18147  *'\$0 --fallback-echo"')
18148    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18149    ;;
18150  esac
18151
18152cfgfile="$ofile"
18153
18154  cat <<__EOF__ >> "$cfgfile"
18155# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18156
18157# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18158
18159# Shell to use when invoking shell scripts.
18160SHELL=$lt_SHELL
18161
18162# Whether or not to build shared libraries.
18163build_libtool_libs=$enable_shared
18164
18165# Whether or not to build static libraries.
18166build_old_libs=$enable_static
18167
18168# Whether or not to add -lc for building shared libraries.
18169build_libtool_need_lc=$archive_cmds_need_lc_RC
18170
18171# Whether or not to disallow shared libs when runtime libs are static
18172allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18173
18174# Whether or not to optimize for fast installation.
18175fast_install=$enable_fast_install
18176
18177# The host system.
18178host_alias=$host_alias
18179host=$host
18180host_os=$host_os
18181
18182# The build system.
18183build_alias=$build_alias
18184build=$build
18185build_os=$build_os
18186
18187# An echo program that does not interpret backslashes.
18188echo=$lt_echo
18189
18190# The archiver.
18191AR=$lt_AR
18192AR_FLAGS=$lt_AR_FLAGS
18193
18194# A C compiler.
18195LTCC=$lt_LTCC
18196
18197# LTCC compiler flags.
18198LTCFLAGS=$lt_LTCFLAGS
18199
18200# A language-specific compiler.
18201CC=$lt_compiler_RC
18202
18203# Is the compiler the GNU C compiler?
18204with_gcc=$GCC_RC
18205
18206# An ERE matcher.
18207EGREP=$lt_EGREP
18208
18209# The linker used to build libraries.
18210LD=$lt_LD_RC
18211
18212# Whether we need hard or soft links.
18213LN_S=$lt_LN_S
18214
18215# A BSD-compatible nm program.
18216NM=$lt_NM
18217
18218# A symbol stripping program
18219STRIP=$lt_STRIP
18220
18221# Used to examine libraries when file_magic_cmd begins "file"
18222MAGIC_CMD=$MAGIC_CMD
18223
18224# Used on cygwin: DLL creation program.
18225DLLTOOL="$DLLTOOL"
18226
18227# Used on cygwin: object dumper.
18228OBJDUMP="$OBJDUMP"
18229
18230# Used on cygwin: assembler.
18231AS="$AS"
18232
18233# The name of the directory that contains temporary libtool files.
18234objdir=$objdir
18235
18236# How to create reloadable object files.
18237reload_flag=$lt_reload_flag
18238reload_cmds=$lt_reload_cmds
18239
18240# How to pass a linker flag through the compiler.
18241wl=$lt_lt_prog_compiler_wl_RC
18242
18243# Object file suffix (normally "o").
18244objext="$ac_objext"
18245
18246# Old archive suffix (normally "a").
18247libext="$libext"
18248
18249# Shared library suffix (normally ".so").
18250shrext_cmds='$shrext_cmds'
18251
18252# Executable file suffix (normally "").
18253exeext="$exeext"
18254
18255# Additional compiler flags for building library objects.
18256pic_flag=$lt_lt_prog_compiler_pic_RC
18257pic_mode=$pic_mode
18258
18259# What is the maximum length of a command?
18260max_cmd_len=$lt_cv_sys_max_cmd_len
18261
18262# Does compiler simultaneously support -c and -o options?
18263compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18264
18265# Must we lock files when doing compilation?
18266need_locks=$lt_need_locks
18267
18268# Do we need the lib prefix for modules?
18269need_lib_prefix=$need_lib_prefix
18270
18271# Do we need a version for libraries?
18272need_version=$need_version
18273
18274# Whether dlopen is supported.
18275dlopen_support=$enable_dlopen
18276
18277# Whether dlopen of programs is supported.
18278dlopen_self=$enable_dlopen_self
18279
18280# Whether dlopen of statically linked programs is supported.
18281dlopen_self_static=$enable_dlopen_self_static
18282
18283# Compiler flag to prevent dynamic linking.
18284link_static_flag=$lt_lt_prog_compiler_static_RC
18285
18286# Compiler flag to turn off builtin functions.
18287no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18288
18289# Compiler flag to allow reflexive dlopens.
18290export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18291
18292# Compiler flag to generate shared objects directly from archives.
18293whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18294
18295# Compiler flag to generate thread-safe objects.
18296thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18297
18298# Library versioning type.
18299version_type=$version_type
18300
18301# Format of library name prefix.
18302libname_spec=$lt_libname_spec
18303
18304# List of archive names.  First name is the real one, the rest are links.
18305# The last name is the one that the linker finds with -lNAME.
18306library_names_spec=$lt_library_names_spec
18307
18308# The coded name of the library, if different from the real name.
18309soname_spec=$lt_soname_spec
18310
18311# Commands used to build and install an old-style archive.
18312RANLIB=$lt_RANLIB
18313old_archive_cmds=$lt_old_archive_cmds_RC
18314old_postinstall_cmds=$lt_old_postinstall_cmds
18315old_postuninstall_cmds=$lt_old_postuninstall_cmds
18316
18317# Create an old-style archive from a shared archive.
18318old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18319
18320# Create a temporary old-style archive to link instead of a shared archive.
18321old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18322
18323# Commands used to build and install a shared archive.
18324archive_cmds=$lt_archive_cmds_RC
18325archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18326postinstall_cmds=$lt_postinstall_cmds
18327postuninstall_cmds=$lt_postuninstall_cmds
18328
18329# Commands used to build a loadable module (assumed same as above if empty)
18330module_cmds=$lt_module_cmds_RC
18331module_expsym_cmds=$lt_module_expsym_cmds_RC
18332
18333# Commands to strip libraries.
18334old_striplib=$lt_old_striplib
18335striplib=$lt_striplib
18336
18337# Dependencies to place before the objects being linked to create a
18338# shared library.
18339predep_objects=$lt_predep_objects_RC
18340
18341# Dependencies to place after the objects being linked to create a
18342# shared library.
18343postdep_objects=$lt_postdep_objects_RC
18344
18345# Dependencies to place before the objects being linked to create a
18346# shared library.
18347predeps=$lt_predeps_RC
18348
18349# Dependencies to place after the objects being linked to create a
18350# shared library.
18351postdeps=$lt_postdeps_RC
18352
18353# The library search path used internally by the compiler when linking
18354# a shared library.
18355compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18356
18357# Method to check whether dependent libraries are shared objects.
18358deplibs_check_method=$lt_deplibs_check_method
18359
18360# Command to use when deplibs_check_method == file_magic.
18361file_magic_cmd=$lt_file_magic_cmd
18362
18363# Flag that allows shared libraries with undefined symbols to be built.
18364allow_undefined_flag=$lt_allow_undefined_flag_RC
18365
18366# Flag that forces no undefined symbols.
18367no_undefined_flag=$lt_no_undefined_flag_RC
18368
18369# Commands used to finish a libtool library installation in a directory.
18370finish_cmds=$lt_finish_cmds
18371
18372# Same as above, but a single script fragment to be evaled but not shown.
18373finish_eval=$lt_finish_eval
18374
18375# Take the output of nm and produce a listing of raw symbols and C names.
18376global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18377
18378# Transform the output of nm in a proper C declaration
18379global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18380
18381# Transform the output of nm in a C name address pair
18382global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18383
18384# This is the shared library runtime path variable.
18385runpath_var=$runpath_var
18386
18387# This is the shared library path variable.
18388shlibpath_var=$shlibpath_var
18389
18390# Is shlibpath searched before the hard-coded library search path?
18391shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18392
18393# How to hardcode a shared library path into an executable.
18394hardcode_action=$hardcode_action_RC
18395
18396# Whether we should hardcode library paths into libraries.
18397hardcode_into_libs=$hardcode_into_libs
18398
18399# Flag to hardcode \$libdir into a binary during linking.
18400# This must work even if \$libdir does not exist.
18401hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18402
18403# If ld is used when linking, flag to hardcode \$libdir into
18404# a binary during linking. This must work even if \$libdir does
18405# not exist.
18406hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18407
18408# Whether we need a single -rpath flag with a separated argument.
18409hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18410
18411# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18412# resulting binary.
18413hardcode_direct=$hardcode_direct_RC
18414
18415# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18416# resulting binary.
18417hardcode_minus_L=$hardcode_minus_L_RC
18418
18419# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18420# the resulting binary.
18421hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18422
18423# Set to yes if building a shared library automatically hardcodes DIR into the library
18424# and all subsequent libraries and executables linked against it.
18425hardcode_automatic=$hardcode_automatic_RC
18426
18427# Variables whose values should be saved in libtool wrapper scripts and
18428# restored at relink time.
18429variables_saved_for_relink="$variables_saved_for_relink"
18430
18431# Whether libtool must link a program against all its dependency libraries.
18432link_all_deplibs=$link_all_deplibs_RC
18433
18434# Compile-time system search path for libraries
18435sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18436
18437# Run-time system search path for libraries
18438sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18439
18440# Fix the shell variable \$srcfile for the compiler.
18441fix_srcfile_path="$fix_srcfile_path_RC"
18442
18443# Set to yes if exported symbols are required.
18444always_export_symbols=$always_export_symbols_RC
18445
18446# The commands to list exported symbols.
18447export_symbols_cmds=$lt_export_symbols_cmds_RC
18448
18449# The commands to extract the exported symbol list from a shared archive.
18450extract_expsyms_cmds=$lt_extract_expsyms_cmds
18451
18452# Symbols that should not be listed in the preloaded symbols.
18453exclude_expsyms=$lt_exclude_expsyms_RC
18454
18455# Symbols that must always be exported.
18456include_expsyms=$lt_include_expsyms_RC
18457
18458# ### END LIBTOOL TAG CONFIG: $tagname
18459
18460__EOF__
18461
18462
18463else
18464  # If there is no Makefile yet, we rely on a make rule to execute
18465  # `config.status --recheck' to rerun these tests and create the
18466  # libtool script then.
18467  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18468  if test -f "$ltmain_in"; then
18469    test -f Makefile && make "$ltmain"
18470  fi
18471fi
18472
18473
18474ac_ext=c
18475ac_cpp='$CPP $CPPFLAGS'
18476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478ac_compiler_gnu=$ac_cv_c_compiler_gnu
18479
18480CC="$lt_save_CC"
18481
18482	;;
18483
18484      *)
18485	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18486echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18487   { (exit 1); exit 1; }; }
18488	;;
18489      esac
18490
18491      # Append the new tag name to the list of available tags.
18492      if test -n "$tagname" ; then
18493      available_tags="$available_tags $tagname"
18494    fi
18495    fi
18496  done
18497  IFS="$lt_save_ifs"
18498
18499  # Now substitute the updated list of available tags.
18500  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18501    mv "${ofile}T" "$ofile"
18502    chmod +x "$ofile"
18503  else
18504    rm -f "${ofile}T"
18505    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18506echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18507   { (exit 1); exit 1; }; }
18508  fi
18509fi
18510
18511
18512
18513# This can be used to rebuild libtool when needed
18514LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18515
18516# Always use our own libtool.
18517LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18518
18519# Prevent multiple expansion
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541VERSION_STRING="04.4.4000"
18542MAJOR_VERSION=4
18543MINOR_VERSION=4
18544MICRO_VERSION=4
18545
18546cat >>confdefs.h <<\_ACEOF
18547#define DXD_VERSION_STRING "04.4.4000"
18548_ACEOF
18549
18550
18551cat >>confdefs.h <<\_ACEOF
18552#define DXD_COPYRIGHT_STRING "Open Visualization Data Explorer\nMore Info at www.research.ibm.com/dx\nand www.opendx.org\nVersion - 4.4.4"
18553_ACEOF
18554
18555
18556cat >>confdefs.h <<_ACEOF
18557#define DXD_VERSION $MAJOR_VERSION
18558_ACEOF
18559
18560
18561cat >>confdefs.h <<_ACEOF
18562#define DXD_RELEASE $MINOR_VERSION
18563_ACEOF
18564
18565
18566cat >>confdefs.h <<_ACEOF
18567#define DXD_MODIFICATION $MICRO_VERSION
18568_ACEOF
18569
18570
18571
18572SHELL=sh
18573BUILDBASE="`pwd`"
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613# Check whether --enable-smp_linux or --disable-smp_linux was given.
18614if test "${enable_smp_linux+set}" = set; then
18615  enableval="$enable_smp_linux"
18616  with_smp_linux=$enableval
18617else
18618  with_smp_linux='no'
18619fi;
18620
18621# Check whether --enable-ddx or --disable-ddx was given.
18622if test "${enable_ddx+set}" = set; then
18623  enableval="$enable_ddx"
18624  with_ddx=$enableval
18625else
18626  with_ddx='no'
18627fi;
18628
18629# Check whether --enable-new-keylayout or --disable-new-keylayout was given.
18630if test "${enable_new_keylayout+set}" = set; then
18631  enableval="$enable_new_keylayout"
18632  with_new_keylayout=$enableval
18633else
18634  with_new_keylayout='no'
18635fi;
18636
18637
18638# Check whether --enable-buildlibdx or --disable-buildlibdx was given.
18639if test "${enable_buildlibdx+set}" = set; then
18640  enableval="$enable_buildlibdx"
18641  with_buildlibdx=$enableval
18642else
18643  with_buildlibdx='yes'
18644fi;
18645
18646# Check whether --enable-installhtml or --disable-installhtml was given.
18647if test "${enable_installhtml+set}" = set; then
18648  enableval="$enable_installhtml"
18649  with_installhtml=$enableval
18650else
18651  with_installhtml='yes'
18652fi;
18653
18654
18655# Disable support for largefiles
18656
18657# Check whether --with-largefiles or --without-largefiles was given.
18658if test "${with_largefiles+set}" = set; then
18659  withval="$with_largefiles"
18660  with_largefiles=$withval
18661else
18662  with_largefiles='yes'
18663fi;
18664
18665# Enable HDF.
18666
18667# Check whether --with-hdf or --without-hdf was given.
18668if test "${with_hdf+set}" = set; then
18669  withval="$with_hdf"
18670  with_hdf=$withval
18671else
18672  with_hdf='yes'
18673fi;
18674
18675# Enable TIFF.
18676
18677# Check whether --with-tiff or --without-tiff was given.
18678if test "${with_tiff+set}" = set; then
18679  withval="$with_tiff"
18680  with_tiff=$withval
18681else
18682  with_tiff='yes'
18683fi;
18684
18685
18686# Check whether --with-magick or --without-magick was given.
18687if test "${with_magick+set}" = set; then
18688  withval="$with_magick"
18689  with_magick=$withval
18690else
18691  with_magick='yes'
18692fi;
18693
18694
18695# Check whether --with-statmagick or --without-statmagick was given.
18696if test "${with_statmagick+set}" = set; then
18697  withval="$with_statmagick"
18698  with_smagick=$withval
18699else
18700  with_smagick='no'
18701fi;
18702
18703# Enable CDF.
18704
18705# Check whether --with-cdf or --without-cdf was given.
18706if test "${with_cdf+set}" = set; then
18707  withval="$with_cdf"
18708  with_cdf=$withval
18709else
18710  with_cdf='yes'
18711fi;
18712
18713# Enable NetCDF.
18714
18715# Check whether --with-netcdf or --without-netcdf was given.
18716if test "${with_netcdf+set}" = set; then
18717  withval="$with_netcdf"
18718  with_netcdf=$withval
18719else
18720  with_netcdf='yes'
18721fi;
18722
18723# Enable 64-bit arenas, if supported
18724
18725# Check whether --with-large-arenas or --without-large-arenas was given.
18726if test "${with_large_arenas+set}" = set; then
18727  withval="$with_large_arenas"
18728  with_large_arenas=$withval
18729else
18730  with_large_arenas='no'
18731fi;
18732
18733
18734# Check whether --with-javadx or --without-javadx was given.
18735if test "${with_javadx+set}" = set; then
18736  withval="$with_javadx"
18737  with_javadx=$withval
18738else
18739  with_javadx='yes'
18740fi;
18741
18742
18743# Check whether --with-jni-path or --without-jni-path was given.
18744if test "${with_jni_path+set}" = set; then
18745  withval="$with_jni_path"
18746  with_jni_path=$withval
18747else
18748  with_jni_path=''
18749fi;
18750if test "$with_jni_path" = "yes"
18751then
18752  with_jni_path=''
18753fi
18754
18755
18756# Check whether --with-java40jar-path or --without-java40jar-path was given.
18757if test "${with_java40jar_path+set}" = set; then
18758  withval="$with_java40jar_path"
18759  with_java40jar_path=$withval
18760else
18761  with_java40jar_path=''
18762fi;
18763if test "$with_java40jar_path" != "yes" && test -z "$with_java40jar_path"
18764then
18765  with_java40jar_path=''
18766fi
18767
18768
18769# Check whether --with-cosmojar-path or --without-cosmojar-path was given.
18770if test "${with_cosmojar_path+set}" = set; then
18771  withval="$with_cosmojar_path"
18772  with_cosmojar_path=$withval
18773else
18774  with_cosmojar_path=''
18775fi;
18776if test "$with_cosmojar_path" != "yes" && test -z "$with_cosmojar_path"
18777then
18778  with_cosmojar_path=''
18779fi
18780
18781# Looking for rsh and path
18782
18783# Check whether --with-rsh or --without-rsh was given.
18784if test "${with_rsh+set}" = set; then
18785  withval="$with_rsh"
18786
18787                rsh_path=$withval
18788
18789else
18790
18791if test "$ARCH" = "intelnt" ; then
18792	rsh_path="rsh"
18793else
18794                # Extract the first word of "rsh", so it can be a program name with args.
18795set dummy rsh; ac_word=$2
18796echo "$as_me:$LINENO: checking for $ac_word" >&5
18797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18798if test "${ac_cv_path_rsh_path+set}" = set; then
18799  echo $ECHO_N "(cached) $ECHO_C" >&6
18800else
18801  case $rsh_path in
18802  [\\/]* | ?:[\\/]*)
18803  ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path.
18804  ;;
18805  *)
18806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807for as_dir in $PATH
18808do
18809  IFS=$as_save_IFS
18810  test -z "$as_dir" && as_dir=.
18811  for ac_exec_ext in '' $ac_executable_extensions; do
18812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18813    ac_cv_path_rsh_path="$as_dir/$ac_word$ac_exec_ext"
18814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18815    break 2
18816  fi
18817done
18818done
18819
18820  ;;
18821esac
18822fi
18823rsh_path=$ac_cv_path_rsh_path
18824
18825if test -n "$rsh_path"; then
18826  echo "$as_me:$LINENO: result: $rsh_path" >&5
18827echo "${ECHO_T}$rsh_path" >&6
18828else
18829  echo "$as_me:$LINENO: result: no" >&5
18830echo "${ECHO_T}no" >&6
18831fi
18832
18833fi
18834
18835
18836fi;
18837
18838cat >>confdefs.h <<_ACEOF
18839#define RSH "$rsh_path"
18840_ACEOF
18841
18842
18843
18844# Check whether --with-bsh or --without-bsh was given.
18845if test "${with_bsh+set}" = set; then
18846  withval="$with_bsh"
18847
18848                if test "x$withval" != "$no" ; then
18849                        bsh_path=$withval
18850                fi
18851
18852else
18853
18854                # Extract the first word of "sh", so it can be a program name with args.
18855set dummy sh; ac_word=$2
18856echo "$as_me:$LINENO: checking for $ac_word" >&5
18857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18858if test "${ac_cv_path_bsh_path+set}" = set; then
18859  echo $ECHO_N "(cached) $ECHO_C" >&6
18860else
18861  case $bsh_path in
18862  [\\/]* | ?:[\\/]*)
18863  ac_cv_path_bsh_path="$bsh_path" # Let the user override the test with a path.
18864  ;;
18865  *)
18866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18867for as_dir in $PATH
18868do
18869  IFS=$as_save_IFS
18870  test -z "$as_dir" && as_dir=.
18871  for ac_exec_ext in '' $ac_executable_extensions; do
18872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18873    ac_cv_path_bsh_path="$as_dir/$ac_word$ac_exec_ext"
18874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18875    break 2
18876  fi
18877done
18878done
18879
18880  ;;
18881esac
18882fi
18883bsh_path=$ac_cv_path_bsh_path
18884
18885if test -n "$bsh_path"; then
18886  echo "$as_me:$LINENO: result: $bsh_path" >&5
18887echo "${ECHO_T}$bsh_path" >&6
18888else
18889  echo "$as_me:$LINENO: result: no" >&5
18890echo "${ECHO_T}no" >&6
18891fi
18892
18893
18894
18895fi;
18896
18897cat >>confdefs.h <<_ACEOF
18898#define BSH "$bsh_path"
18899_ACEOF
18900
18901
18902
18903ac_ext=cc
18904ac_cpp='$CXXCPP $CPPFLAGS'
18905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18908
18909
18910
18911for ac_header in stdlib.h
18912do
18913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18914if eval "test \"\${$as_ac_Header+set}\" = set"; then
18915  echo "$as_me:$LINENO: checking for $ac_header" >&5
18916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18917if eval "test \"\${$as_ac_Header+set}\" = set"; then
18918  echo $ECHO_N "(cached) $ECHO_C" >&6
18919fi
18920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18922else
18923  # Is the header compilable?
18924echo "$as_me:$LINENO: checking $ac_header usability" >&5
18925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18926cat >conftest.$ac_ext <<_ACEOF
18927/* confdefs.h.  */
18928_ACEOF
18929cat confdefs.h >>conftest.$ac_ext
18930cat >>conftest.$ac_ext <<_ACEOF
18931/* end confdefs.h.  */
18932$ac_includes_default
18933#include <$ac_header>
18934_ACEOF
18935rm -f conftest.$ac_objext
18936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937  (eval $ac_compile) 2>conftest.er1
18938  ac_status=$?
18939  grep -v '^ *+' conftest.er1 >conftest.err
18940  rm -f conftest.er1
18941  cat conftest.err >&5
18942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943  (exit $ac_status); } &&
18944	 { ac_try='test -z "$ac_cxx_werror_flag"
18945			 || test ! -s conftest.err'
18946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947  (eval $ac_try) 2>&5
18948  ac_status=$?
18949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950  (exit $ac_status); }; } &&
18951	 { ac_try='test -s conftest.$ac_objext'
18952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953  (eval $ac_try) 2>&5
18954  ac_status=$?
18955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956  (exit $ac_status); }; }; then
18957  ac_header_compiler=yes
18958else
18959  echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962ac_header_compiler=no
18963fi
18964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966echo "${ECHO_T}$ac_header_compiler" >&6
18967
18968# Is the header present?
18969echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18971cat >conftest.$ac_ext <<_ACEOF
18972/* confdefs.h.  */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
18976/* end confdefs.h.  */
18977#include <$ac_header>
18978_ACEOF
18979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18981  ac_status=$?
18982  grep -v '^ *+' conftest.er1 >conftest.err
18983  rm -f conftest.er1
18984  cat conftest.err >&5
18985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986  (exit $ac_status); } >/dev/null; then
18987  if test -s conftest.err; then
18988    ac_cpp_err=$ac_cxx_preproc_warn_flag
18989    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18990  else
18991    ac_cpp_err=
18992  fi
18993else
18994  ac_cpp_err=yes
18995fi
18996if test -z "$ac_cpp_err"; then
18997  ac_header_preproc=yes
18998else
18999  echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002  ac_header_preproc=no
19003fi
19004rm -f conftest.err conftest.$ac_ext
19005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006echo "${ECHO_T}$ac_header_preproc" >&6
19007
19008# So?  What about this header?
19009case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19010  yes:no: )
19011    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19015    ac_header_preproc=yes
19016    ;;
19017  no:yes:* )
19018    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19020    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19021echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19022    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19024    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19025echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19026    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19028    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19030    (
19031      cat <<\_ASBOX
19032## ----------------------------- ##
19033## Report this to the dx lists.  ##
19034## ----------------------------- ##
19035_ASBOX
19036    ) |
19037      sed "s/^/$as_me: WARNING:     /" >&2
19038    ;;
19039esac
19040echo "$as_me:$LINENO: checking for $ac_header" >&5
19041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19042if eval "test \"\${$as_ac_Header+set}\" = set"; then
19043  echo $ECHO_N "(cached) $ECHO_C" >&6
19044else
19045  eval "$as_ac_Header=\$ac_header_preproc"
19046fi
19047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19049
19050fi
19051if test `eval echo '${'$as_ac_Header'}'` = yes; then
19052  cat >>confdefs.h <<_ACEOF
19053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19054_ACEOF
19055
19056fi
19057
19058done
19059
19060ac_ext=c
19061ac_cpp='$CPP $CPPFLAGS'
19062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19064ac_compiler_gnu=$ac_cv_c_compiler_gnu
19065
19066
19067#
19068# Check for large file support
19069#
19070LIB_LF=''
19071if test "$with_largefiles" = 'yes'
19072then
19073   echo "$as_me:$LINENO: checking whether large file support needs explicit enabling" >&5
19074echo $ECHO_N "checking whether large file support needs explicit enabling... $ECHO_C" >&6
19075   result='no'
19076   getconf='getconf LFS_CFLAGS'
19077   if ($getconf) >/dev/null 2>&1
19078   then
19079      CPPFLAGS="$CPPFLAGS "`$getconf`
19080      result='yes'
19081   fi
19082   getconf='getconf LFS_LDFLAGS'
19083   if ($getconf) >/dev/null 2>&1
19084   then
19085      LDFLAGS="$LDFLAGS "`$getconf`
19086      result='yes'
19087   fi
19088   getconf='getconf LFS_LIBS'
19089   if ($getconf) >/dev/null 2>&1
19090   then
19091      LIB_LF=`$getconf`
19092      LIBS="$LIB_LF $LIBS"
19093      result='yes'
19094   fi
19095   echo "$as_me:$LINENO: result: $result" >&5
19096echo "${ECHO_T}$result" >&6
19097fi
19098
19099
19100
19101    echo "$as_me:$LINENO: checking architecture type" >&5
19102echo $ECHO_N "checking architecture type... $ECHO_C" >&6
19103    if test "${ac_cv_dx_arch+set}" = set; then
19104  echo $ECHO_N "(cached) $ECHO_C" >&6
19105else
19106
19107	ac_cv_dx_arch=$ARCH
19108	if test "$ARCH" = "" ; then
19109	    unameS=`uname -s`
19110	    unameM="`uname -m`"
19111	    ac_cv_dx_arch=unknown
19112	    if test $unameS = "FreeBSD" ; then
19113		ac_cv_dx_arch=freebsd
19114	    elif test `echo $unameS | tr A-Z a-z | sed "s/^.*cygwin.*$/yes/"` = "yes" ; then
19115		ac_cv_dx_arch=cygwin
19116	    elif test $unameS = "Linux" ; then
19117		ac_cv_dx_arch=linux
19118	    elif test $unameS = "IRIX" || test $unameS = "IRIX64" ; then
19119		ac_cv_dx_arch=sgi
19120	    elif test $unameS = "AIX" ; then
19121		ac_cv_dx_arch=ibm6000
19122	    elif test "$unameM" = "alpha" ; then
19123		ac_cv_dx_arch=alphax
19124	    elif test $unameS = "HP-UX" ; then
19125		ac_cv_dx_arch=hp700
19126	    elif test $unameS = "SunOS" ; then
19127		ac_cv_dx_arch=solaris
19128	    elif test $unameS = "Darwin" ; then
19129		ac_cv_dx_arch=macos
19130	    fi
19131	fi
19132
19133fi
19134
19135    ARCH=$ac_cv_dx_arch
19136    echo "$as_me:$LINENO: result: $ARCH" >&5
19137echo "${ECHO_T}$ARCH" >&6
19138
19139    cat >>confdefs.h <<_ACEOF
19140#define $ARCH 1
19141_ACEOF
19142
19143
19144cat >>confdefs.h <<_ACEOF
19145#define DXD_ARCHNAME "$ARCH"
19146_ACEOF
19147
19148
19149
19150    echo "$as_me:$LINENO: checking architecture specific stuff" >&5
19151echo $ECHO_N "checking architecture specific stuff... $ECHO_C" >&6
19152    case $ARCH in
19153	ibm6000)
19154	    a=`echo $CC | sed "s/.*gcc.*/YES/"`
19155	    if test "$a" = "YES" ; then
19156		CFLAGS="$CFLAGS -mminimal-toc"
19157		CXXFLAGS="$CXXFLAGS -mminimal-toc"
19158		DXEXEC_EXP='-Wl,-bexpall'
19159		DXEXEC_IMP=''
19160	    else
19161		DXEXEC_EXP='-bE:$(EXP)'
19162		DXEXEC_IMP='-bI:$(EXP)'
19163	    fi
19164
19165cat >>confdefs.h <<_ACEOF
19166#define DXEXEC_EXP $DXEXEC_EXP
19167_ACEOF
19168
19169
19170cat >>confdefs.h <<_ACEOF
19171#define DXEXEC_IMP $DXEXEC_IMP
19172_ACEOF
19173
19174	    ;;
19175	cygwin)
19176		DXEXEC_EXP='$(WEXP) -Wl,--out-implib,dxexec.a'
19177		cat >>confdefs.h <<_ACEOF
19178#define DXEXEC_EXP $DXEXEC_EXP
19179_ACEOF
19180
19181	    ;;
19182	intelnt)
19183		DXEXEC_EXP='-def $(WEXP)'
19184		cat >>confdefs.h <<_ACEOF
19185#define DXEXEC_EXP $DXEXEC_EXP
19186_ACEOF
19187
19188	    ;;
19189	linux)
19190	    DXEXEC_EXP='-Wl,-export-dynamic'
19191	    cat >>confdefs.h <<_ACEOF
19192#define DXEXEC_EXP $DXEXEC_EXP
19193_ACEOF
19194
19195	    ;;
19196	freebsd)
19197	    DXEXEC_EXP='-Wl,-export-dynamic'
19198	    cat >>confdefs.h <<_ACEOF
19199#define DXEXEC_EXP $DXEXEC_EXP
19200_ACEOF
19201
19202	    ;;
19203	macos)
19204	    DXUI_ALDFLAGS='-framework CoreFoundation -framework ApplicationServices'
19205
19206cat >>confdefs.h <<_ACEOF
19207#define DXUI_ALDFLAGS $DXUI_ALDFLAGS
19208_ACEOF
19209
19210	    ;;
19211    esac
19212    echo "$as_me:$LINENO: result: done" >&5
19213echo "${ECHO_T}done" >&6
19214
19215
19216if test "$MKDEP" = "" ; then
19217    MKDEP='$(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
19218fi
19219
19220if test "$ARCH" = "intelnt" ; then
19221    INSTALL_BIN_PROGRAM="dx"
19222    INSTALL_BIN_SCRIPT=""
19223else
19224    INSTALL_BIN_PROGRAM=""
19225    INSTALL_BIN_SCRIPT="dx"
19226fi
19227
19228# Find a good install program.  We prefer a C program (faster),
19229# so one script is as good as another.  But avoid the broken or
19230# incompatible versions:
19231# SysV /etc/install, /usr/sbin/install
19232# SunOS /usr/etc/install
19233# IRIX /sbin/install
19234# AIX /bin/install
19235# AmigaOS /C/install, which installs bootblocks on floppy discs
19236# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19237# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19238# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19239# OS/2's system install, which has a completely different semantic
19240# ./install, which can be erroneously created by make from ./install.sh.
19241echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19242echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19243if test -z "$INSTALL"; then
19244if test "${ac_cv_path_install+set}" = set; then
19245  echo $ECHO_N "(cached) $ECHO_C" >&6
19246else
19247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19248for as_dir in $PATH
19249do
19250  IFS=$as_save_IFS
19251  test -z "$as_dir" && as_dir=.
19252  # Account for people who put trailing slashes in PATH elements.
19253case $as_dir/ in
19254  ./ | .// | /cC/* | \
19255  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19256  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19257  /usr/ucb/* ) ;;
19258  *)
19259    # OSF1 and SCO ODT 3.0 have their own names for install.
19260    # Don't use installbsd from OSF since it installs stuff as root
19261    # by default.
19262    for ac_prog in ginstall scoinst install; do
19263      for ac_exec_ext in '' $ac_executable_extensions; do
19264	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19265	  if test $ac_prog = install &&
19266	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19267	    # AIX install.  It has an incompatible calling convention.
19268	    :
19269	  elif test $ac_prog = install &&
19270	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19271	    # program-specific install script used by HP pwplus--don't use.
19272	    :
19273	  else
19274	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19275	    break 3
19276	  fi
19277	fi
19278      done
19279    done
19280    ;;
19281esac
19282done
19283
19284
19285fi
19286  if test "${ac_cv_path_install+set}" = set; then
19287    INSTALL=$ac_cv_path_install
19288  else
19289    # As a last resort, use the slow shell script.  We don't cache a
19290    # path for INSTALL within a source directory, because that will
19291    # break other packages using the cache if that directory is
19292    # removed, or if the path is relative.
19293    INSTALL=$ac_install_sh
19294  fi
19295fi
19296echo "$as_me:$LINENO: result: $INSTALL" >&5
19297echo "${ECHO_T}$INSTALL" >&6
19298
19299# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19300# It thinks the first close brace ends the variable substitution.
19301test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19302
19303test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19304
19305test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19306
19307
19308if test -z "$LN_S" ; then
19309    echo "$as_me:$LINENO: checking whether ln -s works" >&5
19310echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19311LN_S=$as_ln_s
19312if test "$LN_S" = "ln -s"; then
19313  echo "$as_me:$LINENO: result: yes" >&5
19314echo "${ECHO_T}yes" >&6
19315else
19316  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19317echo "${ECHO_T}no, using $LN_S" >&6
19318fi
19319
19320fi
19321
19322ac_ext=cc
19323ac_cpp='$CXXCPP $CPPFLAGS'
19324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19327if test -n "$ac_tool_prefix"; then
19328  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19329  do
19330    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19332echo "$as_me:$LINENO: checking for $ac_word" >&5
19333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19334if test "${ac_cv_prog_CXX+set}" = set; then
19335  echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337  if test -n "$CXX"; then
19338  ac_cv_prog_CXX="$CXX" # Let the user override the test.
19339else
19340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19341for as_dir in $PATH
19342do
19343  IFS=$as_save_IFS
19344  test -z "$as_dir" && as_dir=.
19345  for ac_exec_ext in '' $ac_executable_extensions; do
19346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19347    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19349    break 2
19350  fi
19351done
19352done
19353
19354fi
19355fi
19356CXX=$ac_cv_prog_CXX
19357if test -n "$CXX"; then
19358  echo "$as_me:$LINENO: result: $CXX" >&5
19359echo "${ECHO_T}$CXX" >&6
19360else
19361  echo "$as_me:$LINENO: result: no" >&5
19362echo "${ECHO_T}no" >&6
19363fi
19364
19365    test -n "$CXX" && break
19366  done
19367fi
19368if test -z "$CXX"; then
19369  ac_ct_CXX=$CXX
19370  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19371do
19372  # Extract the first word of "$ac_prog", so it can be a program name with args.
19373set dummy $ac_prog; ac_word=$2
19374echo "$as_me:$LINENO: checking for $ac_word" >&5
19375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19376if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19377  echo $ECHO_N "(cached) $ECHO_C" >&6
19378else
19379  if test -n "$ac_ct_CXX"; then
19380  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19381else
19382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19383for as_dir in $PATH
19384do
19385  IFS=$as_save_IFS
19386  test -z "$as_dir" && as_dir=.
19387  for ac_exec_ext in '' $ac_executable_extensions; do
19388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19389    ac_cv_prog_ac_ct_CXX="$ac_prog"
19390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19391    break 2
19392  fi
19393done
19394done
19395
19396fi
19397fi
19398ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19399if test -n "$ac_ct_CXX"; then
19400  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19401echo "${ECHO_T}$ac_ct_CXX" >&6
19402else
19403  echo "$as_me:$LINENO: result: no" >&5
19404echo "${ECHO_T}no" >&6
19405fi
19406
19407  test -n "$ac_ct_CXX" && break
19408done
19409test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19410
19411  CXX=$ac_ct_CXX
19412fi
19413
19414
19415# Provide some information about the compiler.
19416echo "$as_me:$LINENO:" \
19417     "checking for C++ compiler version" >&5
19418ac_compiler=`set X $ac_compile; echo $2`
19419{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19420  (eval $ac_compiler --version </dev/null >&5) 2>&5
19421  ac_status=$?
19422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423  (exit $ac_status); }
19424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19425  (eval $ac_compiler -v </dev/null >&5) 2>&5
19426  ac_status=$?
19427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428  (exit $ac_status); }
19429{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19430  (eval $ac_compiler -V </dev/null >&5) 2>&5
19431  ac_status=$?
19432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433  (exit $ac_status); }
19434
19435echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19436echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19437if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19438  echo $ECHO_N "(cached) $ECHO_C" >&6
19439else
19440  cat >conftest.$ac_ext <<_ACEOF
19441/* confdefs.h.  */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h.  */
19446
19447int
19448main ()
19449{
19450#ifndef __GNUC__
19451       choke me
19452#endif
19453
19454  ;
19455  return 0;
19456}
19457_ACEOF
19458rm -f conftest.$ac_objext
19459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19460  (eval $ac_compile) 2>conftest.er1
19461  ac_status=$?
19462  grep -v '^ *+' conftest.er1 >conftest.err
19463  rm -f conftest.er1
19464  cat conftest.err >&5
19465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466  (exit $ac_status); } &&
19467	 { ac_try='test -z "$ac_cxx_werror_flag"
19468			 || test ! -s conftest.err'
19469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470  (eval $ac_try) 2>&5
19471  ac_status=$?
19472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473  (exit $ac_status); }; } &&
19474	 { ac_try='test -s conftest.$ac_objext'
19475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476  (eval $ac_try) 2>&5
19477  ac_status=$?
19478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479  (exit $ac_status); }; }; then
19480  ac_compiler_gnu=yes
19481else
19482  echo "$as_me: failed program was:" >&5
19483sed 's/^/| /' conftest.$ac_ext >&5
19484
19485ac_compiler_gnu=no
19486fi
19487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19488ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19489
19490fi
19491echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19492echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19493GXX=`test $ac_compiler_gnu = yes && echo yes`
19494ac_test_CXXFLAGS=${CXXFLAGS+set}
19495ac_save_CXXFLAGS=$CXXFLAGS
19496CXXFLAGS="-g"
19497echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19498echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19499if test "${ac_cv_prog_cxx_g+set}" = set; then
19500  echo $ECHO_N "(cached) $ECHO_C" >&6
19501else
19502  cat >conftest.$ac_ext <<_ACEOF
19503/* confdefs.h.  */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h.  */
19508
19509int
19510main ()
19511{
19512
19513  ;
19514  return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519  (eval $ac_compile) 2>conftest.er1
19520  ac_status=$?
19521  grep -v '^ *+' conftest.er1 >conftest.err
19522  rm -f conftest.er1
19523  cat conftest.err >&5
19524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525  (exit $ac_status); } &&
19526	 { ac_try='test -z "$ac_cxx_werror_flag"
19527			 || test ! -s conftest.err'
19528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529  (eval $ac_try) 2>&5
19530  ac_status=$?
19531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532  (exit $ac_status); }; } &&
19533	 { ac_try='test -s conftest.$ac_objext'
19534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535  (eval $ac_try) 2>&5
19536  ac_status=$?
19537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538  (exit $ac_status); }; }; then
19539  ac_cv_prog_cxx_g=yes
19540else
19541  echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544ac_cv_prog_cxx_g=no
19545fi
19546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19547fi
19548echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19549echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19550if test "$ac_test_CXXFLAGS" = set; then
19551  CXXFLAGS=$ac_save_CXXFLAGS
19552elif test $ac_cv_prog_cxx_g = yes; then
19553  if test "$GXX" = yes; then
19554    CXXFLAGS="-g -O2"
19555  else
19556    CXXFLAGS="-g"
19557  fi
19558else
19559  if test "$GXX" = yes; then
19560    CXXFLAGS="-O2"
19561  else
19562    CXXFLAGS=
19563  fi
19564fi
19565for ac_declaration in \
19566   '' \
19567   'extern "C" void std::exit (int) throw (); using std::exit;' \
19568   'extern "C" void std::exit (int); using std::exit;' \
19569   'extern "C" void exit (int) throw ();' \
19570   'extern "C" [[noreturn]] void exit (int);' \
19571   '[[noreturn]] void exit (int);'
19572do
19573  cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h.  */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h.  */
19579$ac_declaration
19580#include <stdlib.h>
19581int
19582main ()
19583{
19584exit (42);
19585  ;
19586  return 0;
19587}
19588_ACEOF
19589rm -f conftest.$ac_objext
19590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19591  (eval $ac_compile) 2>conftest.er1
19592  ac_status=$?
19593  grep -v '^ *+' conftest.er1 >conftest.err
19594  rm -f conftest.er1
19595  cat conftest.err >&5
19596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597  (exit $ac_status); } &&
19598	 { ac_try='test -z "$ac_cxx_werror_flag"
19599			 || test ! -s conftest.err'
19600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601  (eval $ac_try) 2>&5
19602  ac_status=$?
19603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604  (exit $ac_status); }; } &&
19605	 { ac_try='test -s conftest.$ac_objext'
19606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607  (eval $ac_try) 2>&5
19608  ac_status=$?
19609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610  (exit $ac_status); }; }; then
19611  :
19612else
19613  echo "$as_me: failed program was:" >&5
19614sed 's/^/| /' conftest.$ac_ext >&5
19615
19616continue
19617fi
19618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19619  cat >conftest.$ac_ext <<_ACEOF
19620/* confdefs.h.  */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h.  */
19625$ac_declaration
19626int
19627main ()
19628{
19629exit (42);
19630  ;
19631  return 0;
19632}
19633_ACEOF
19634rm -f conftest.$ac_objext
19635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19636  (eval $ac_compile) 2>conftest.er1
19637  ac_status=$?
19638  grep -v '^ *+' conftest.er1 >conftest.err
19639  rm -f conftest.er1
19640  cat conftest.err >&5
19641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642  (exit $ac_status); } &&
19643	 { ac_try='test -z "$ac_cxx_werror_flag"
19644			 || test ! -s conftest.err'
19645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646  (eval $ac_try) 2>&5
19647  ac_status=$?
19648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649  (exit $ac_status); }; } &&
19650	 { ac_try='test -s conftest.$ac_objext'
19651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652  (eval $ac_try) 2>&5
19653  ac_status=$?
19654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655  (exit $ac_status); }; }; then
19656  break
19657else
19658  echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661fi
19662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663done
19664rm -f conftest*
19665if test -n "$ac_declaration"; then
19666  echo '#ifdef __cplusplus' >>confdefs.h
19667  echo $ac_declaration      >>confdefs.h
19668  echo '#endif'             >>confdefs.h
19669fi
19670
19671ac_ext=c
19672ac_cpp='$CPP $CPPFLAGS'
19673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19675ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676
19677depcc="$CXX"  am_compiler_list=
19678
19679echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19680echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19681if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19682  echo $ECHO_N "(cached) $ECHO_C" >&6
19683else
19684  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19685  # We make a subdir and do the tests there.  Otherwise we can end up
19686  # making bogus files that we don't know about and never remove.  For
19687  # instance it was reported that on HP-UX the gcc test will end up
19688  # making a dummy file named `D' -- because `-MD' means `put the output
19689  # in D'.
19690  mkdir conftest.dir
19691  # Copy depcomp to subdir because otherwise we won't find it if we're
19692  # using a relative directory.
19693  cp "$am_depcomp" conftest.dir
19694  cd conftest.dir
19695  # We will build objects and dependencies in a subdirectory because
19696  # it helps to detect inapplicable dependency modes.  For instance
19697  # both Tru64's cc and ICC support -MD to output dependencies as a
19698  # side effect of compilation, but ICC will put the dependencies in
19699  # the current directory while Tru64 will put them in the object
19700  # directory.
19701  mkdir sub
19702
19703  am_cv_CXX_dependencies_compiler_type=none
19704  if test "$am_compiler_list" = ""; then
19705     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19706  fi
19707  for depmode in $am_compiler_list; do
19708    # Setup a source with many dependencies, because some compilers
19709    # like to wrap large dependency lists on column 80 (with \), and
19710    # we should not choose a depcomp mode which is confused by this.
19711    #
19712    # We need to recreate these files for each test, as the compiler may
19713    # overwrite some of them when testing with obscure command lines.
19714    # This happens at least with the AIX C compiler.
19715    : > sub/conftest.c
19716    for i in 1 2 3 4 5 6; do
19717      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19718      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19719      # Solaris 8's {/usr,}/bin/sh.
19720      touch sub/conftst$i.h
19721    done
19722    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19723
19724    case $depmode in
19725    nosideeffect)
19726      # after this tag, mechanisms are not by side-effect, so they'll
19727      # only be used when explicitly requested
19728      if test "x$enable_dependency_tracking" = xyes; then
19729	continue
19730      else
19731	break
19732      fi
19733      ;;
19734    none) break ;;
19735    esac
19736    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19737    # mode.  It turns out that the SunPro C++ compiler does not properly
19738    # handle `-M -o', and we need to detect this.
19739    if depmode=$depmode \
19740       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19741       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19742       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19743         >/dev/null 2>conftest.err &&
19744       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19745       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19746       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19747      # icc doesn't choke on unknown options, it will just issue warnings
19748      # or remarks (even with -Werror).  So we grep stderr for any message
19749      # that says an option was ignored or not supported.
19750      # When given -MP, icc 7.0 and 7.1 complain thusly:
19751      #   icc: Command line warning: ignoring option '-M'; no argument required
19752      # The diagnosis changed in icc 8.0:
19753      #   icc: Command line remark: option '-MP' not supported
19754      if (grep 'ignoring option' conftest.err ||
19755          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19756        am_cv_CXX_dependencies_compiler_type=$depmode
19757        break
19758      fi
19759    fi
19760  done
19761
19762  cd ..
19763  rm -rf conftest.dir
19764else
19765  am_cv_CXX_dependencies_compiler_type=none
19766fi
19767
19768fi
19769echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19770echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19771CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19772
19773
19774
19775if
19776  test "x$enable_dependency_tracking" != xno \
19777  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19778  am__fastdepCXX_TRUE=
19779  am__fastdepCXX_FALSE='#'
19780else
19781  am__fastdepCXX_TRUE='#'
19782  am__fastdepCXX_FALSE=
19783fi
19784
19785
19786if test -n "$CXXCPP" ; then
19787    ac_cv_prog_CXXCPP=$CXXCPP
19788fi
19789
19790ac_ext=cc
19791ac_cpp='$CXXCPP $CPPFLAGS'
19792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19795echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19796echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19797if test -z "$CXXCPP"; then
19798  if test "${ac_cv_prog_CXXCPP+set}" = set; then
19799  echo $ECHO_N "(cached) $ECHO_C" >&6
19800else
19801      # Double quotes because CXXCPP needs to be expanded
19802    for CXXCPP in "$CXX -E" "/lib/cpp"
19803    do
19804      ac_preproc_ok=false
19805for ac_cxx_preproc_warn_flag in '' yes
19806do
19807  # Use a header file that comes with gcc, so configuring glibc
19808  # with a fresh cross-compiler works.
19809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19810  # <limits.h> exists even on freestanding compilers.
19811  # On the NeXT, cc -E runs the code through the compiler's parser,
19812  # not just through cpp. "Syntax error" is here to catch this case.
19813  cat >conftest.$ac_ext <<_ACEOF
19814/* confdefs.h.  */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h.  */
19819#ifdef __STDC__
19820# include <limits.h>
19821#else
19822# include <assert.h>
19823#endif
19824		     Syntax error
19825_ACEOF
19826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19828  ac_status=$?
19829  grep -v '^ *+' conftest.er1 >conftest.err
19830  rm -f conftest.er1
19831  cat conftest.err >&5
19832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833  (exit $ac_status); } >/dev/null; then
19834  if test -s conftest.err; then
19835    ac_cpp_err=$ac_cxx_preproc_warn_flag
19836    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19837  else
19838    ac_cpp_err=
19839  fi
19840else
19841  ac_cpp_err=yes
19842fi
19843if test -z "$ac_cpp_err"; then
19844  :
19845else
19846  echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849  # Broken: fails on valid input.
19850continue
19851fi
19852rm -f conftest.err conftest.$ac_ext
19853
19854  # OK, works on sane cases.  Now check whether non-existent headers
19855  # can be detected and how.
19856  cat >conftest.$ac_ext <<_ACEOF
19857/* confdefs.h.  */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h.  */
19862#include <ac_nonexistent.h>
19863_ACEOF
19864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19865  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19866  ac_status=$?
19867  grep -v '^ *+' conftest.er1 >conftest.err
19868  rm -f conftest.er1
19869  cat conftest.err >&5
19870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871  (exit $ac_status); } >/dev/null; then
19872  if test -s conftest.err; then
19873    ac_cpp_err=$ac_cxx_preproc_warn_flag
19874    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19875  else
19876    ac_cpp_err=
19877  fi
19878else
19879  ac_cpp_err=yes
19880fi
19881if test -z "$ac_cpp_err"; then
19882  # Broken: success on invalid input.
19883continue
19884else
19885  echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888  # Passes both tests.
19889ac_preproc_ok=:
19890break
19891fi
19892rm -f conftest.err conftest.$ac_ext
19893
19894done
19895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19896rm -f conftest.err conftest.$ac_ext
19897if $ac_preproc_ok; then
19898  break
19899fi
19900
19901    done
19902    ac_cv_prog_CXXCPP=$CXXCPP
19903
19904fi
19905  CXXCPP=$ac_cv_prog_CXXCPP
19906else
19907  ac_cv_prog_CXXCPP=$CXXCPP
19908fi
19909echo "$as_me:$LINENO: result: $CXXCPP" >&5
19910echo "${ECHO_T}$CXXCPP" >&6
19911ac_preproc_ok=false
19912for ac_cxx_preproc_warn_flag in '' yes
19913do
19914  # Use a header file that comes with gcc, so configuring glibc
19915  # with a fresh cross-compiler works.
19916  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19917  # <limits.h> exists even on freestanding compilers.
19918  # On the NeXT, cc -E runs the code through the compiler's parser,
19919  # not just through cpp. "Syntax error" is here to catch this case.
19920  cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h.  */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h.  */
19926#ifdef __STDC__
19927# include <limits.h>
19928#else
19929# include <assert.h>
19930#endif
19931		     Syntax error
19932_ACEOF
19933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19934  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19935  ac_status=$?
19936  grep -v '^ *+' conftest.er1 >conftest.err
19937  rm -f conftest.er1
19938  cat conftest.err >&5
19939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940  (exit $ac_status); } >/dev/null; then
19941  if test -s conftest.err; then
19942    ac_cpp_err=$ac_cxx_preproc_warn_flag
19943    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19944  else
19945    ac_cpp_err=
19946  fi
19947else
19948  ac_cpp_err=yes
19949fi
19950if test -z "$ac_cpp_err"; then
19951  :
19952else
19953  echo "$as_me: failed program was:" >&5
19954sed 's/^/| /' conftest.$ac_ext >&5
19955
19956  # Broken: fails on valid input.
19957continue
19958fi
19959rm -f conftest.err conftest.$ac_ext
19960
19961  # OK, works on sane cases.  Now check whether non-existent headers
19962  # can be detected and how.
19963  cat >conftest.$ac_ext <<_ACEOF
19964/* confdefs.h.  */
19965_ACEOF
19966cat confdefs.h >>conftest.$ac_ext
19967cat >>conftest.$ac_ext <<_ACEOF
19968/* end confdefs.h.  */
19969#include <ac_nonexistent.h>
19970_ACEOF
19971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19973  ac_status=$?
19974  grep -v '^ *+' conftest.er1 >conftest.err
19975  rm -f conftest.er1
19976  cat conftest.err >&5
19977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978  (exit $ac_status); } >/dev/null; then
19979  if test -s conftest.err; then
19980    ac_cpp_err=$ac_cxx_preproc_warn_flag
19981    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19982  else
19983    ac_cpp_err=
19984  fi
19985else
19986  ac_cpp_err=yes
19987fi
19988if test -z "$ac_cpp_err"; then
19989  # Broken: success on invalid input.
19990continue
19991else
19992  echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995  # Passes both tests.
19996ac_preproc_ok=:
19997break
19998fi
19999rm -f conftest.err conftest.$ac_ext
20000
20001done
20002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20003rm -f conftest.err conftest.$ac_ext
20004if $ac_preproc_ok; then
20005  :
20006else
20007  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20008See \`config.log' for more details." >&5
20009echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20010See \`config.log' for more details." >&2;}
20011   { (exit 1); exit 1; }; }
20012fi
20013
20014ac_ext=c
20015ac_cpp='$CPP $CPPFLAGS'
20016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20018ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019
20020ac_ext=c
20021ac_cpp='$CPP $CPPFLAGS'
20022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20024ac_compiler_gnu=$ac_cv_c_compiler_gnu
20025if test -n "$ac_tool_prefix"; then
20026  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20027set dummy ${ac_tool_prefix}gcc; ac_word=$2
20028echo "$as_me:$LINENO: checking for $ac_word" >&5
20029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20030if test "${ac_cv_prog_CC+set}" = set; then
20031  echo $ECHO_N "(cached) $ECHO_C" >&6
20032else
20033  if test -n "$CC"; then
20034  ac_cv_prog_CC="$CC" # Let the user override the test.
20035else
20036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20037for as_dir in $PATH
20038do
20039  IFS=$as_save_IFS
20040  test -z "$as_dir" && as_dir=.
20041  for ac_exec_ext in '' $ac_executable_extensions; do
20042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20043    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20045    break 2
20046  fi
20047done
20048done
20049
20050fi
20051fi
20052CC=$ac_cv_prog_CC
20053if test -n "$CC"; then
20054  echo "$as_me:$LINENO: result: $CC" >&5
20055echo "${ECHO_T}$CC" >&6
20056else
20057  echo "$as_me:$LINENO: result: no" >&5
20058echo "${ECHO_T}no" >&6
20059fi
20060
20061fi
20062if test -z "$ac_cv_prog_CC"; then
20063  ac_ct_CC=$CC
20064  # Extract the first word of "gcc", so it can be a program name with args.
20065set dummy gcc; ac_word=$2
20066echo "$as_me:$LINENO: checking for $ac_word" >&5
20067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20069  echo $ECHO_N "(cached) $ECHO_C" >&6
20070else
20071  if test -n "$ac_ct_CC"; then
20072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20073else
20074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20075for as_dir in $PATH
20076do
20077  IFS=$as_save_IFS
20078  test -z "$as_dir" && as_dir=.
20079  for ac_exec_ext in '' $ac_executable_extensions; do
20080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20081    ac_cv_prog_ac_ct_CC="gcc"
20082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20083    break 2
20084  fi
20085done
20086done
20087
20088fi
20089fi
20090ac_ct_CC=$ac_cv_prog_ac_ct_CC
20091if test -n "$ac_ct_CC"; then
20092  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20093echo "${ECHO_T}$ac_ct_CC" >&6
20094else
20095  echo "$as_me:$LINENO: result: no" >&5
20096echo "${ECHO_T}no" >&6
20097fi
20098
20099  CC=$ac_ct_CC
20100else
20101  CC="$ac_cv_prog_CC"
20102fi
20103
20104if test -z "$CC"; then
20105  if test -n "$ac_tool_prefix"; then
20106  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20107set dummy ${ac_tool_prefix}cc; ac_word=$2
20108echo "$as_me:$LINENO: checking for $ac_word" >&5
20109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20110if test "${ac_cv_prog_CC+set}" = set; then
20111  echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113  if test -n "$CC"; then
20114  ac_cv_prog_CC="$CC" # Let the user override the test.
20115else
20116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20117for as_dir in $PATH
20118do
20119  IFS=$as_save_IFS
20120  test -z "$as_dir" && as_dir=.
20121  for ac_exec_ext in '' $ac_executable_extensions; do
20122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20123    ac_cv_prog_CC="${ac_tool_prefix}cc"
20124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20125    break 2
20126  fi
20127done
20128done
20129
20130fi
20131fi
20132CC=$ac_cv_prog_CC
20133if test -n "$CC"; then
20134  echo "$as_me:$LINENO: result: $CC" >&5
20135echo "${ECHO_T}$CC" >&6
20136else
20137  echo "$as_me:$LINENO: result: no" >&5
20138echo "${ECHO_T}no" >&6
20139fi
20140
20141fi
20142if test -z "$ac_cv_prog_CC"; then
20143  ac_ct_CC=$CC
20144  # Extract the first word of "cc", so it can be a program name with args.
20145set dummy cc; ac_word=$2
20146echo "$as_me:$LINENO: checking for $ac_word" >&5
20147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20148if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20149  echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151  if test -n "$ac_ct_CC"; then
20152  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20153else
20154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20155for as_dir in $PATH
20156do
20157  IFS=$as_save_IFS
20158  test -z "$as_dir" && as_dir=.
20159  for ac_exec_ext in '' $ac_executable_extensions; do
20160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20161    ac_cv_prog_ac_ct_CC="cc"
20162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20163    break 2
20164  fi
20165done
20166done
20167
20168fi
20169fi
20170ac_ct_CC=$ac_cv_prog_ac_ct_CC
20171if test -n "$ac_ct_CC"; then
20172  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20173echo "${ECHO_T}$ac_ct_CC" >&6
20174else
20175  echo "$as_me:$LINENO: result: no" >&5
20176echo "${ECHO_T}no" >&6
20177fi
20178
20179  CC=$ac_ct_CC
20180else
20181  CC="$ac_cv_prog_CC"
20182fi
20183
20184fi
20185if test -z "$CC"; then
20186  # Extract the first word of "cc", so it can be a program name with args.
20187set dummy cc; ac_word=$2
20188echo "$as_me:$LINENO: checking for $ac_word" >&5
20189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20190if test "${ac_cv_prog_CC+set}" = set; then
20191  echo $ECHO_N "(cached) $ECHO_C" >&6
20192else
20193  if test -n "$CC"; then
20194  ac_cv_prog_CC="$CC" # Let the user override the test.
20195else
20196  ac_prog_rejected=no
20197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20198for as_dir in $PATH
20199do
20200  IFS=$as_save_IFS
20201  test -z "$as_dir" && as_dir=.
20202  for ac_exec_ext in '' $ac_executable_extensions; do
20203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20204    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20205       ac_prog_rejected=yes
20206       continue
20207     fi
20208    ac_cv_prog_CC="cc"
20209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20210    break 2
20211  fi
20212done
20213done
20214
20215if test $ac_prog_rejected = yes; then
20216  # We found a bogon in the path, so make sure we never use it.
20217  set dummy $ac_cv_prog_CC
20218  shift
20219  if test $# != 0; then
20220    # We chose a different compiler from the bogus one.
20221    # However, it has the same basename, so the bogon will be chosen
20222    # first if we set CC to just the basename; use the full file name.
20223    shift
20224    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20225  fi
20226fi
20227fi
20228fi
20229CC=$ac_cv_prog_CC
20230if test -n "$CC"; then
20231  echo "$as_me:$LINENO: result: $CC" >&5
20232echo "${ECHO_T}$CC" >&6
20233else
20234  echo "$as_me:$LINENO: result: no" >&5
20235echo "${ECHO_T}no" >&6
20236fi
20237
20238fi
20239if test -z "$CC"; then
20240  if test -n "$ac_tool_prefix"; then
20241  for ac_prog in cl
20242  do
20243    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20244set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20245echo "$as_me:$LINENO: checking for $ac_word" >&5
20246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20247if test "${ac_cv_prog_CC+set}" = set; then
20248  echo $ECHO_N "(cached) $ECHO_C" >&6
20249else
20250  if test -n "$CC"; then
20251  ac_cv_prog_CC="$CC" # Let the user override the test.
20252else
20253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20254for as_dir in $PATH
20255do
20256  IFS=$as_save_IFS
20257  test -z "$as_dir" && as_dir=.
20258  for ac_exec_ext in '' $ac_executable_extensions; do
20259  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20260    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20262    break 2
20263  fi
20264done
20265done
20266
20267fi
20268fi
20269CC=$ac_cv_prog_CC
20270if test -n "$CC"; then
20271  echo "$as_me:$LINENO: result: $CC" >&5
20272echo "${ECHO_T}$CC" >&6
20273else
20274  echo "$as_me:$LINENO: result: no" >&5
20275echo "${ECHO_T}no" >&6
20276fi
20277
20278    test -n "$CC" && break
20279  done
20280fi
20281if test -z "$CC"; then
20282  ac_ct_CC=$CC
20283  for ac_prog in cl
20284do
20285  # Extract the first word of "$ac_prog", so it can be a program name with args.
20286set dummy $ac_prog; ac_word=$2
20287echo "$as_me:$LINENO: checking for $ac_word" >&5
20288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20290  echo $ECHO_N "(cached) $ECHO_C" >&6
20291else
20292  if test -n "$ac_ct_CC"; then
20293  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20294else
20295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20296for as_dir in $PATH
20297do
20298  IFS=$as_save_IFS
20299  test -z "$as_dir" && as_dir=.
20300  for ac_exec_ext in '' $ac_executable_extensions; do
20301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20302    ac_cv_prog_ac_ct_CC="$ac_prog"
20303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20304    break 2
20305  fi
20306done
20307done
20308
20309fi
20310fi
20311ac_ct_CC=$ac_cv_prog_ac_ct_CC
20312if test -n "$ac_ct_CC"; then
20313  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20314echo "${ECHO_T}$ac_ct_CC" >&6
20315else
20316  echo "$as_me:$LINENO: result: no" >&5
20317echo "${ECHO_T}no" >&6
20318fi
20319
20320  test -n "$ac_ct_CC" && break
20321done
20322
20323  CC=$ac_ct_CC
20324fi
20325
20326fi
20327
20328
20329test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20330See \`config.log' for more details." >&5
20331echo "$as_me: error: no acceptable C compiler found in \$PATH
20332See \`config.log' for more details." >&2;}
20333   { (exit 1); exit 1; }; }
20334
20335# Provide some information about the compiler.
20336echo "$as_me:$LINENO:" \
20337     "checking for C compiler version" >&5
20338ac_compiler=`set X $ac_compile; echo $2`
20339{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20340  (eval $ac_compiler --version </dev/null >&5) 2>&5
20341  ac_status=$?
20342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343  (exit $ac_status); }
20344{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20345  (eval $ac_compiler -v </dev/null >&5) 2>&5
20346  ac_status=$?
20347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348  (exit $ac_status); }
20349{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20350  (eval $ac_compiler -V </dev/null >&5) 2>&5
20351  ac_status=$?
20352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353  (exit $ac_status); }
20354
20355echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
20357if test "${ac_cv_c_compiler_gnu+set}" = set; then
20358  echo $ECHO_N "(cached) $ECHO_C" >&6
20359else
20360  cat >conftest.$ac_ext <<_ACEOF
20361/* confdefs.h.  */
20362_ACEOF
20363cat confdefs.h >>conftest.$ac_ext
20364cat >>conftest.$ac_ext <<_ACEOF
20365/* end confdefs.h.  */
20366
20367int
20368main ()
20369{
20370#ifndef __GNUC__
20371       choke me
20372#endif
20373
20374  ;
20375  return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20380  (eval $ac_compile) 2>conftest.er1
20381  ac_status=$?
20382  grep -v '^ *+' conftest.er1 >conftest.err
20383  rm -f conftest.er1
20384  cat conftest.err >&5
20385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386  (exit $ac_status); } &&
20387	 { ac_try='test -z "$ac_c_werror_flag"
20388			 || test ! -s conftest.err'
20389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390  (eval $ac_try) 2>&5
20391  ac_status=$?
20392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393  (exit $ac_status); }; } &&
20394	 { ac_try='test -s conftest.$ac_objext'
20395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396  (eval $ac_try) 2>&5
20397  ac_status=$?
20398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399  (exit $ac_status); }; }; then
20400  ac_compiler_gnu=yes
20401else
20402  echo "$as_me: failed program was:" >&5
20403sed 's/^/| /' conftest.$ac_ext >&5
20404
20405ac_compiler_gnu=no
20406fi
20407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408ac_cv_c_compiler_gnu=$ac_compiler_gnu
20409
20410fi
20411echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20412echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
20413GCC=`test $ac_compiler_gnu = yes && echo yes`
20414ac_test_CFLAGS=${CFLAGS+set}
20415ac_save_CFLAGS=$CFLAGS
20416CFLAGS="-g"
20417echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
20419if test "${ac_cv_prog_cc_g+set}" = set; then
20420  echo $ECHO_N "(cached) $ECHO_C" >&6
20421else
20422  cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h.  */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h.  */
20428
20429int
20430main ()
20431{
20432
20433  ;
20434  return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext
20438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439  (eval $ac_compile) 2>conftest.er1
20440  ac_status=$?
20441  grep -v '^ *+' conftest.er1 >conftest.err
20442  rm -f conftest.er1
20443  cat conftest.err >&5
20444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445  (exit $ac_status); } &&
20446	 { ac_try='test -z "$ac_c_werror_flag"
20447			 || test ! -s conftest.err'
20448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449  (eval $ac_try) 2>&5
20450  ac_status=$?
20451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452  (exit $ac_status); }; } &&
20453	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20459  ac_cv_prog_cc_g=yes
20460else
20461  echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464ac_cv_prog_cc_g=no
20465fi
20466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20467fi
20468echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20469echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20470if test "$ac_test_CFLAGS" = set; then
20471  CFLAGS=$ac_save_CFLAGS
20472elif test $ac_cv_prog_cc_g = yes; then
20473  if test "$GCC" = yes; then
20474    CFLAGS="-g -O2"
20475  else
20476    CFLAGS="-g"
20477  fi
20478else
20479  if test "$GCC" = yes; then
20480    CFLAGS="-O2"
20481  else
20482    CFLAGS=
20483  fi
20484fi
20485echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
20486echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20487if test "${ac_cv_prog_cc_stdc+set}" = set; then
20488  echo $ECHO_N "(cached) $ECHO_C" >&6
20489else
20490  ac_cv_prog_cc_stdc=no
20491ac_save_CC=$CC
20492cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h.  */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h.  */
20498#include <stdarg.h>
20499#include <stdio.h>
20500#include <sys/types.h>
20501#include <sys/stat.h>
20502/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20503struct buf { int x; };
20504FILE * (*rcsopen) (struct buf *, struct stat *, int);
20505static char *e (p, i)
20506     char **p;
20507     int i;
20508{
20509  return p[i];
20510}
20511static char *f (char * (*g) (char **, int), char **p, ...)
20512{
20513  char *s;
20514  va_list v;
20515  va_start (v,p);
20516  s = g (p, va_arg (v,int));
20517  va_end (v);
20518  return s;
20519}
20520
20521/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20522   function prototypes and stuff, but not '\xHH' hex character constants.
20523   These don't provoke an error unfortunately, instead are silently treated
20524   as 'x'.  The following induces an error, until -std1 is added to get
20525   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20526   array size at least.  It's necessary to write '\x00'==0 to get something
20527   that's true only with -std1.  */
20528int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20529
20530int test (int i, double x);
20531struct s1 {int (*f) (int a);};
20532struct s2 {int (*f) (double a);};
20533int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20534int argc;
20535char **argv;
20536int
20537main ()
20538{
20539return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20540  ;
20541  return 0;
20542}
20543_ACEOF
20544# Don't try gcc -ansi; that turns off useful extensions and
20545# breaks some systems' header files.
20546# AIX			-qlanglvl=ansi
20547# Ultrix and OSF/1	-std1
20548# HP-UX 10.20 and later	-Ae
20549# HP-UX older versions	-Aa -D_HPUX_SOURCE
20550# SVR4			-Xc -D__EXTENSIONS__
20551for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20552do
20553  CC="$ac_save_CC $ac_arg"
20554  rm -f conftest.$ac_objext
20555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556  (eval $ac_compile) 2>conftest.er1
20557  ac_status=$?
20558  grep -v '^ *+' conftest.er1 >conftest.err
20559  rm -f conftest.er1
20560  cat conftest.err >&5
20561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562  (exit $ac_status); } &&
20563	 { ac_try='test -z "$ac_c_werror_flag"
20564			 || test ! -s conftest.err'
20565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566  (eval $ac_try) 2>&5
20567  ac_status=$?
20568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569  (exit $ac_status); }; } &&
20570	 { ac_try='test -s conftest.$ac_objext'
20571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572  (eval $ac_try) 2>&5
20573  ac_status=$?
20574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575  (exit $ac_status); }; }; then
20576  ac_cv_prog_cc_stdc=$ac_arg
20577break
20578else
20579  echo "$as_me: failed program was:" >&5
20580sed 's/^/| /' conftest.$ac_ext >&5
20581
20582fi
20583rm -f conftest.err conftest.$ac_objext
20584done
20585rm -f conftest.$ac_ext conftest.$ac_objext
20586CC=$ac_save_CC
20587
20588fi
20589
20590case "x$ac_cv_prog_cc_stdc" in
20591  x|xno)
20592    echo "$as_me:$LINENO: result: none needed" >&5
20593echo "${ECHO_T}none needed" >&6 ;;
20594  *)
20595    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20596echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20597    CC="$CC $ac_cv_prog_cc_stdc" ;;
20598esac
20599
20600# Some people use a C++ compiler to compile C.  Since we use `exit',
20601# in C++ we need to declare it.  In case someone uses the same compiler
20602# for both compiling C and C++ we need to have the C++ compiler decide
20603# the declaration of exit, since it's the most demanding environment.
20604cat >conftest.$ac_ext <<_ACEOF
20605#ifndef __cplusplus
20606  choke me
20607#endif
20608_ACEOF
20609rm -f conftest.$ac_objext
20610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20611  (eval $ac_compile) 2>conftest.er1
20612  ac_status=$?
20613  grep -v '^ *+' conftest.er1 >conftest.err
20614  rm -f conftest.er1
20615  cat conftest.err >&5
20616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617  (exit $ac_status); } &&
20618	 { ac_try='test -z "$ac_c_werror_flag"
20619			 || test ! -s conftest.err'
20620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621  (eval $ac_try) 2>&5
20622  ac_status=$?
20623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624  (exit $ac_status); }; } &&
20625	 { ac_try='test -s conftest.$ac_objext'
20626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627  (eval $ac_try) 2>&5
20628  ac_status=$?
20629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630  (exit $ac_status); }; }; then
20631  for ac_declaration in \
20632   '' \
20633   'extern "C" void std::exit (int) throw (); using std::exit;' \
20634   'extern "C" void std::exit (int); using std::exit;' \
20635   'extern "C" void exit (int) throw ();' \
20636   'extern "C" [[noreturn]] void exit (int);' \
20637   '[[noreturn]] void exit (int);'
20638do
20639  cat >conftest.$ac_ext <<_ACEOF
20640/* confdefs.h.  */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h.  */
20645$ac_declaration
20646#include <stdlib.h>
20647int
20648main ()
20649{
20650exit (42);
20651  ;
20652  return 0;
20653}
20654_ACEOF
20655rm -f conftest.$ac_objext
20656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20657  (eval $ac_compile) 2>conftest.er1
20658  ac_status=$?
20659  grep -v '^ *+' conftest.er1 >conftest.err
20660  rm -f conftest.er1
20661  cat conftest.err >&5
20662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663  (exit $ac_status); } &&
20664	 { ac_try='test -z "$ac_c_werror_flag"
20665			 || test ! -s conftest.err'
20666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667  (eval $ac_try) 2>&5
20668  ac_status=$?
20669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670  (exit $ac_status); }; } &&
20671	 { ac_try='test -s conftest.$ac_objext'
20672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673  (eval $ac_try) 2>&5
20674  ac_status=$?
20675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676  (exit $ac_status); }; }; then
20677  :
20678else
20679  echo "$as_me: failed program was:" >&5
20680sed 's/^/| /' conftest.$ac_ext >&5
20681
20682continue
20683fi
20684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20685  cat >conftest.$ac_ext <<_ACEOF
20686/* confdefs.h.  */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h.  */
20691$ac_declaration
20692int
20693main ()
20694{
20695exit (42);
20696  ;
20697  return 0;
20698}
20699_ACEOF
20700rm -f conftest.$ac_objext
20701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20702  (eval $ac_compile) 2>conftest.er1
20703  ac_status=$?
20704  grep -v '^ *+' conftest.er1 >conftest.err
20705  rm -f conftest.er1
20706  cat conftest.err >&5
20707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708  (exit $ac_status); } &&
20709	 { ac_try='test -z "$ac_c_werror_flag"
20710			 || test ! -s conftest.err'
20711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712  (eval $ac_try) 2>&5
20713  ac_status=$?
20714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715  (exit $ac_status); }; } &&
20716	 { ac_try='test -s conftest.$ac_objext'
20717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718  (eval $ac_try) 2>&5
20719  ac_status=$?
20720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721  (exit $ac_status); }; }; then
20722  break
20723else
20724  echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727fi
20728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20729done
20730rm -f conftest*
20731if test -n "$ac_declaration"; then
20732  echo '#ifdef __cplusplus' >>confdefs.h
20733  echo $ac_declaration      >>confdefs.h
20734  echo '#endif'             >>confdefs.h
20735fi
20736
20737else
20738  echo "$as_me: failed program was:" >&5
20739sed 's/^/| /' conftest.$ac_ext >&5
20740
20741fi
20742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743ac_ext=c
20744ac_cpp='$CPP $CPPFLAGS'
20745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20747ac_compiler_gnu=$ac_cv_c_compiler_gnu
20748
20749depcc="$CC"   am_compiler_list=
20750
20751echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20752echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20753if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20754  echo $ECHO_N "(cached) $ECHO_C" >&6
20755else
20756  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20757  # We make a subdir and do the tests there.  Otherwise we can end up
20758  # making bogus files that we don't know about and never remove.  For
20759  # instance it was reported that on HP-UX the gcc test will end up
20760  # making a dummy file named `D' -- because `-MD' means `put the output
20761  # in D'.
20762  mkdir conftest.dir
20763  # Copy depcomp to subdir because otherwise we won't find it if we're
20764  # using a relative directory.
20765  cp "$am_depcomp" conftest.dir
20766  cd conftest.dir
20767  # We will build objects and dependencies in a subdirectory because
20768  # it helps to detect inapplicable dependency modes.  For instance
20769  # both Tru64's cc and ICC support -MD to output dependencies as a
20770  # side effect of compilation, but ICC will put the dependencies in
20771  # the current directory while Tru64 will put them in the object
20772  # directory.
20773  mkdir sub
20774
20775  am_cv_CC_dependencies_compiler_type=none
20776  if test "$am_compiler_list" = ""; then
20777     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20778  fi
20779  for depmode in $am_compiler_list; do
20780    # Setup a source with many dependencies, because some compilers
20781    # like to wrap large dependency lists on column 80 (with \), and
20782    # we should not choose a depcomp mode which is confused by this.
20783    #
20784    # We need to recreate these files for each test, as the compiler may
20785    # overwrite some of them when testing with obscure command lines.
20786    # This happens at least with the AIX C compiler.
20787    : > sub/conftest.c
20788    for i in 1 2 3 4 5 6; do
20789      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20790      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20791      # Solaris 8's {/usr,}/bin/sh.
20792      touch sub/conftst$i.h
20793    done
20794    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20795
20796    case $depmode in
20797    nosideeffect)
20798      # after this tag, mechanisms are not by side-effect, so they'll
20799      # only be used when explicitly requested
20800      if test "x$enable_dependency_tracking" = xyes; then
20801	continue
20802      else
20803	break
20804      fi
20805      ;;
20806    none) break ;;
20807    esac
20808    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20809    # mode.  It turns out that the SunPro C++ compiler does not properly
20810    # handle `-M -o', and we need to detect this.
20811    if depmode=$depmode \
20812       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20813       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20814       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20815         >/dev/null 2>conftest.err &&
20816       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20817       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20818       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20819      # icc doesn't choke on unknown options, it will just issue warnings
20820      # or remarks (even with -Werror).  So we grep stderr for any message
20821      # that says an option was ignored or not supported.
20822      # When given -MP, icc 7.0 and 7.1 complain thusly:
20823      #   icc: Command line warning: ignoring option '-M'; no argument required
20824      # The diagnosis changed in icc 8.0:
20825      #   icc: Command line remark: option '-MP' not supported
20826      if (grep 'ignoring option' conftest.err ||
20827          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20828        am_cv_CC_dependencies_compiler_type=$depmode
20829        break
20830      fi
20831    fi
20832  done
20833
20834  cd ..
20835  rm -rf conftest.dir
20836else
20837  am_cv_CC_dependencies_compiler_type=none
20838fi
20839
20840fi
20841echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20842echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20843CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20844
20845
20846
20847if
20848  test "x$enable_dependency_tracking" != xno \
20849  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20850  am__fastdepCC_TRUE=
20851  am__fastdepCC_FALSE='#'
20852else
20853  am__fastdepCC_TRUE='#'
20854  am__fastdepCC_FALSE=
20855fi
20856
20857
20858ac_ext=c
20859ac_cpp='$CPP $CPPFLAGS'
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20864echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
20865# On Suns, sometimes $CPP names a directory.
20866if test -n "$CPP" && test -d "$CPP"; then
20867  CPP=
20868fi
20869if test -z "$CPP"; then
20870  if test "${ac_cv_prog_CPP+set}" = set; then
20871  echo $ECHO_N "(cached) $ECHO_C" >&6
20872else
20873      # Double quotes because CPP needs to be expanded
20874    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20875    do
20876      ac_preproc_ok=false
20877for ac_c_preproc_warn_flag in '' yes
20878do
20879  # Use a header file that comes with gcc, so configuring glibc
20880  # with a fresh cross-compiler works.
20881  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20882  # <limits.h> exists even on freestanding compilers.
20883  # On the NeXT, cc -E runs the code through the compiler's parser,
20884  # not just through cpp. "Syntax error" is here to catch this case.
20885  cat >conftest.$ac_ext <<_ACEOF
20886/* confdefs.h.  */
20887_ACEOF
20888cat confdefs.h >>conftest.$ac_ext
20889cat >>conftest.$ac_ext <<_ACEOF
20890/* end confdefs.h.  */
20891#ifdef __STDC__
20892# include <limits.h>
20893#else
20894# include <assert.h>
20895#endif
20896		     Syntax error
20897_ACEOF
20898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20899  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20900  ac_status=$?
20901  grep -v '^ *+' conftest.er1 >conftest.err
20902  rm -f conftest.er1
20903  cat conftest.err >&5
20904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905  (exit $ac_status); } >/dev/null; then
20906  if test -s conftest.err; then
20907    ac_cpp_err=$ac_c_preproc_warn_flag
20908    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20909  else
20910    ac_cpp_err=
20911  fi
20912else
20913  ac_cpp_err=yes
20914fi
20915if test -z "$ac_cpp_err"; then
20916  :
20917else
20918  echo "$as_me: failed program was:" >&5
20919sed 's/^/| /' conftest.$ac_ext >&5
20920
20921  # Broken: fails on valid input.
20922continue
20923fi
20924rm -f conftest.err conftest.$ac_ext
20925
20926  # OK, works on sane cases.  Now check whether non-existent headers
20927  # can be detected and how.
20928  cat >conftest.$ac_ext <<_ACEOF
20929/* confdefs.h.  */
20930_ACEOF
20931cat confdefs.h >>conftest.$ac_ext
20932cat >>conftest.$ac_ext <<_ACEOF
20933/* end confdefs.h.  */
20934#include <ac_nonexistent.h>
20935_ACEOF
20936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20937  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20938  ac_status=$?
20939  grep -v '^ *+' conftest.er1 >conftest.err
20940  rm -f conftest.er1
20941  cat conftest.err >&5
20942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943  (exit $ac_status); } >/dev/null; then
20944  if test -s conftest.err; then
20945    ac_cpp_err=$ac_c_preproc_warn_flag
20946    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20947  else
20948    ac_cpp_err=
20949  fi
20950else
20951  ac_cpp_err=yes
20952fi
20953if test -z "$ac_cpp_err"; then
20954  # Broken: success on invalid input.
20955continue
20956else
20957  echo "$as_me: failed program was:" >&5
20958sed 's/^/| /' conftest.$ac_ext >&5
20959
20960  # Passes both tests.
20961ac_preproc_ok=:
20962break
20963fi
20964rm -f conftest.err conftest.$ac_ext
20965
20966done
20967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20968rm -f conftest.err conftest.$ac_ext
20969if $ac_preproc_ok; then
20970  break
20971fi
20972
20973    done
20974    ac_cv_prog_CPP=$CPP
20975
20976fi
20977  CPP=$ac_cv_prog_CPP
20978else
20979  ac_cv_prog_CPP=$CPP
20980fi
20981echo "$as_me:$LINENO: result: $CPP" >&5
20982echo "${ECHO_T}$CPP" >&6
20983ac_preproc_ok=false
20984for ac_c_preproc_warn_flag in '' yes
20985do
20986  # Use a header file that comes with gcc, so configuring glibc
20987  # with a fresh cross-compiler works.
20988  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20989  # <limits.h> exists even on freestanding compilers.
20990  # On the NeXT, cc -E runs the code through the compiler's parser,
20991  # not just through cpp. "Syntax error" is here to catch this case.
20992  cat >conftest.$ac_ext <<_ACEOF
20993/* confdefs.h.  */
20994_ACEOF
20995cat confdefs.h >>conftest.$ac_ext
20996cat >>conftest.$ac_ext <<_ACEOF
20997/* end confdefs.h.  */
20998#ifdef __STDC__
20999# include <limits.h>
21000#else
21001# include <assert.h>
21002#endif
21003		     Syntax error
21004_ACEOF
21005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21006  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21007  ac_status=$?
21008  grep -v '^ *+' conftest.er1 >conftest.err
21009  rm -f conftest.er1
21010  cat conftest.err >&5
21011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012  (exit $ac_status); } >/dev/null; then
21013  if test -s conftest.err; then
21014    ac_cpp_err=$ac_c_preproc_warn_flag
21015    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21016  else
21017    ac_cpp_err=
21018  fi
21019else
21020  ac_cpp_err=yes
21021fi
21022if test -z "$ac_cpp_err"; then
21023  :
21024else
21025  echo "$as_me: failed program was:" >&5
21026sed 's/^/| /' conftest.$ac_ext >&5
21027
21028  # Broken: fails on valid input.
21029continue
21030fi
21031rm -f conftest.err conftest.$ac_ext
21032
21033  # OK, works on sane cases.  Now check whether non-existent headers
21034  # can be detected and how.
21035  cat >conftest.$ac_ext <<_ACEOF
21036/* confdefs.h.  */
21037_ACEOF
21038cat confdefs.h >>conftest.$ac_ext
21039cat >>conftest.$ac_ext <<_ACEOF
21040/* end confdefs.h.  */
21041#include <ac_nonexistent.h>
21042_ACEOF
21043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21044  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21045  ac_status=$?
21046  grep -v '^ *+' conftest.er1 >conftest.err
21047  rm -f conftest.er1
21048  cat conftest.err >&5
21049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050  (exit $ac_status); } >/dev/null; then
21051  if test -s conftest.err; then
21052    ac_cpp_err=$ac_c_preproc_warn_flag
21053    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21054  else
21055    ac_cpp_err=
21056  fi
21057else
21058  ac_cpp_err=yes
21059fi
21060if test -z "$ac_cpp_err"; then
21061  # Broken: success on invalid input.
21062continue
21063else
21064  echo "$as_me: failed program was:" >&5
21065sed 's/^/| /' conftest.$ac_ext >&5
21066
21067  # Passes both tests.
21068ac_preproc_ok=:
21069break
21070fi
21071rm -f conftest.err conftest.$ac_ext
21072
21073done
21074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21075rm -f conftest.err conftest.$ac_ext
21076if $ac_preproc_ok; then
21077  :
21078else
21079  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21080See \`config.log' for more details." >&5
21081echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21082See \`config.log' for more details." >&2;}
21083   { (exit 1); exit 1; }; }
21084fi
21085
21086ac_ext=c
21087ac_cpp='$CPP $CPPFLAGS'
21088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091
21092echo "$as_me:$LINENO: checking for Cygwin environment" >&5
21093echo $ECHO_N "checking for Cygwin environment... $ECHO_C" >&6
21094if test "${ac_cv_cygwin+set}" = set; then
21095  echo $ECHO_N "(cached) $ECHO_C" >&6
21096else
21097  cat >conftest.$ac_ext <<_ACEOF
21098/* confdefs.h.  */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h.  */
21103
21104int
21105main ()
21106{
21107
21108#ifndef __CYGWIN__
21109#define __CYGWIN__ __CYGWIN32__
21110#endif
21111return __CYGWIN__;
21112  ;
21113  return 0;
21114}
21115_ACEOF
21116rm -f conftest.$ac_objext
21117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21118  (eval $ac_compile) 2>conftest.er1
21119  ac_status=$?
21120  grep -v '^ *+' conftest.er1 >conftest.err
21121  rm -f conftest.er1
21122  cat conftest.err >&5
21123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124  (exit $ac_status); } &&
21125	 { ac_try='test -z "$ac_c_werror_flag"
21126			 || test ! -s conftest.err'
21127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128  (eval $ac_try) 2>&5
21129  ac_status=$?
21130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131  (exit $ac_status); }; } &&
21132	 { ac_try='test -s conftest.$ac_objext'
21133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134  (eval $ac_try) 2>&5
21135  ac_status=$?
21136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137  (exit $ac_status); }; }; then
21138  ac_cv_cygwin=yes
21139else
21140  echo "$as_me: failed program was:" >&5
21141sed 's/^/| /' conftest.$ac_ext >&5
21142
21143ac_cv_cygwin=no
21144fi
21145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21146rm -f conftest*
21147fi
21148echo "$as_me:$LINENO: result: $ac_cv_cygwin" >&5
21149echo "${ECHO_T}$ac_cv_cygwin" >&6
21150CYGWIN=
21151test "$ac_cv_cygwin" = yes && CYGWIN=yes
21152 case $host_os in
21153  *cygwin* ) CYGWIN=yes;;
21154         * ) CYGWIN=no;;
21155 esac
21156echo "$as_me:$LINENO: checking for executable suffix" >&5
21157echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
21158
21159if test "${ac_cv_exeext+set}" = set; then
21160  echo $ECHO_N "(cached) $ECHO_C" >&6
21161else
21162  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
21163  ac_cv_exeext=.exe
21164else
21165  rm -f conftest*
21166  echo 'int main () { return 0; }' > conftest.$ac_ext
21167  ac_cv_exeext=
21168  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21169  (eval $ac_link) 2>&5
21170  ac_status=$?
21171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172  (exit $ac_status); }; then
21173    for file in conftest.*; do
21174      case $file in
21175      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
21176      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
21177      esac
21178    done
21179  else
21180    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
21181echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
21182   { (exit 1); exit 1; }; }
21183  fi
21184  rm -f conftest*
21185  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
21186fi
21187fi
21188
21189EXEEXT=""
21190test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
21191echo "$as_me:$LINENO: result: ${ac_cv_exeext}" >&5
21192echo "${ECHO_T}${ac_cv_exeext}" >&6
21193ac_exeext=$EXEEXT
21194
21195if test -z "$EXEEXT" ; then
21196	DOT_EXE_EXT="";
21197	else
21198	DOT_EXE_EXT=".$EXEEXT";
21199fi
21200echo "$as_me:$LINENO: checking for object file suffix" >&5
21201echo $ECHO_N "checking for object file suffix... $ECHO_C" >&6
21202if test "${ac_cv_objext+set}" = set; then
21203  echo $ECHO_N "(cached) $ECHO_C" >&6
21204else
21205
21206  rm -f conftest*
21207  echo 'int main () { return 0; }' > conftest.$ac_ext
21208  ac_cv_objext=
21209  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210  (eval $ac_compile) 2>&5
21211  ac_status=$?
21212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213  (exit $ac_status); }; then
21214    for file in conftest.*; do
21215      case $file in
21216      *.c ) ;;
21217      *) ac_cv_objext=`echo $file | sed -e s/conftest.//` ;;
21218      esac
21219    done
21220  else
21221    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
21222echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
21223   { (exit 1); exit 1; }; }
21224  fi
21225  rm -f conftest*
21226  test x"${ac_cv_objext}" = x && ac_cv_objext=no
21227
21228fi
21229
21230OBJEXT=""
21231test x"${ac_cv_objext}" != xno && OBJEXT=${ac_cv_objext}
21232echo "$as_me:$LINENO: result: ${ac_cv_objext}" >&5
21233echo "${ECHO_T}${ac_cv_objext}" >&6
21234ac_objext=$OBJEXT
21235
21236
21237if test "$ARCH" = "intelnt" ; then
21238
21239for ac_header in windows.h
21240do
21241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21242if eval "test \"\${$as_ac_Header+set}\" = set"; then
21243  echo "$as_me:$LINENO: checking for $ac_header" >&5
21244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21245if eval "test \"\${$as_ac_Header+set}\" = set"; then
21246  echo $ECHO_N "(cached) $ECHO_C" >&6
21247fi
21248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21250else
21251  # Is the header compilable?
21252echo "$as_me:$LINENO: checking $ac_header usability" >&5
21253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21254cat >conftest.$ac_ext <<_ACEOF
21255/* confdefs.h.  */
21256_ACEOF
21257cat confdefs.h >>conftest.$ac_ext
21258cat >>conftest.$ac_ext <<_ACEOF
21259/* end confdefs.h.  */
21260$ac_includes_default
21261#include <$ac_header>
21262_ACEOF
21263rm -f conftest.$ac_objext
21264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265  (eval $ac_compile) 2>conftest.er1
21266  ac_status=$?
21267  grep -v '^ *+' conftest.er1 >conftest.err
21268  rm -f conftest.er1
21269  cat conftest.err >&5
21270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271  (exit $ac_status); } &&
21272	 { ac_try='test -z "$ac_c_werror_flag"
21273			 || test ! -s conftest.err'
21274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275  (eval $ac_try) 2>&5
21276  ac_status=$?
21277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278  (exit $ac_status); }; } &&
21279	 { ac_try='test -s conftest.$ac_objext'
21280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281  (eval $ac_try) 2>&5
21282  ac_status=$?
21283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284  (exit $ac_status); }; }; then
21285  ac_header_compiler=yes
21286else
21287  echo "$as_me: failed program was:" >&5
21288sed 's/^/| /' conftest.$ac_ext >&5
21289
21290ac_header_compiler=no
21291fi
21292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21294echo "${ECHO_T}$ac_header_compiler" >&6
21295
21296# Is the header present?
21297echo "$as_me:$LINENO: checking $ac_header presence" >&5
21298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21299cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h.  */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h.  */
21305#include <$ac_header>
21306_ACEOF
21307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21308  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21309  ac_status=$?
21310  grep -v '^ *+' conftest.er1 >conftest.err
21311  rm -f conftest.er1
21312  cat conftest.err >&5
21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314  (exit $ac_status); } >/dev/null; then
21315  if test -s conftest.err; then
21316    ac_cpp_err=$ac_c_preproc_warn_flag
21317    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21318  else
21319    ac_cpp_err=
21320  fi
21321else
21322  ac_cpp_err=yes
21323fi
21324if test -z "$ac_cpp_err"; then
21325  ac_header_preproc=yes
21326else
21327  echo "$as_me: failed program was:" >&5
21328sed 's/^/| /' conftest.$ac_ext >&5
21329
21330  ac_header_preproc=no
21331fi
21332rm -f conftest.err conftest.$ac_ext
21333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21334echo "${ECHO_T}$ac_header_preproc" >&6
21335
21336# So?  What about this header?
21337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21338  yes:no: )
21339    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21341    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21342echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21343    ac_header_preproc=yes
21344    ;;
21345  no:yes:* )
21346    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21347echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21348    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21349echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21350    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21351echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21352    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21353echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21354    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21356    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21357echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21358    (
21359      cat <<\_ASBOX
21360## ----------------------------- ##
21361## Report this to the dx lists.  ##
21362## ----------------------------- ##
21363_ASBOX
21364    ) |
21365      sed "s/^/$as_me: WARNING:     /" >&2
21366    ;;
21367esac
21368echo "$as_me:$LINENO: checking for $ac_header" >&5
21369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21370if eval "test \"\${$as_ac_Header+set}\" = set"; then
21371  echo $ECHO_N "(cached) $ECHO_C" >&6
21372else
21373  eval "$as_ac_Header=\$ac_header_preproc"
21374fi
21375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21377
21378fi
21379if test `eval echo '${'$as_ac_Header'}'` = yes; then
21380  cat >>confdefs.h <<_ACEOF
21381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21382_ACEOF
21383
21384fi
21385
21386done
21387
21388else
21389	ac_cv_header_windows_h="no"
21390fi
21391
21392# On SGI, detect the ABI we're compiling for (handles all methods that
21393#   can be used to set the ABI target).
21394if test "$ARCH" = "sgi" ; then
21395    echo "$as_me:$LINENO: checking for the target SGI ABI ..." >&5
21396echo $ECHO_N "checking for the target SGI ABI ...... $ECHO_C" >&6
21397cat >conftest.$ac_ext <<_ACEOF
21398/* confdefs.h.  */
21399_ACEOF
21400cat confdefs.h >>conftest.$ac_ext
21401cat >>conftest.$ac_ext <<_ACEOF
21402/* end confdefs.h.  */
21403
21404int
21405main ()
21406{
21407
21408   #if defined(sgi) && _MIPS_SIM == _ABI64
21409   #else
21410   xyzz
21411   #endif
21412
21413
21414  ;
21415  return 0;
21416}
21417_ACEOF
21418rm -f conftest.$ac_objext
21419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21420  (eval $ac_compile) 2>conftest.er1
21421  ac_status=$?
21422  grep -v '^ *+' conftest.er1 >conftest.err
21423  rm -f conftest.er1
21424  cat conftest.err >&5
21425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426  (exit $ac_status); } &&
21427	 { ac_try='test -z "$ac_c_werror_flag"
21428			 || test ! -s conftest.err'
21429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430  (eval $ac_try) 2>&5
21431  ac_status=$?
21432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433  (exit $ac_status); }; } &&
21434	 { ac_try='test -s conftest.$ac_objext'
21435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436  (eval $ac_try) 2>&5
21437  ac_status=$?
21438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439  (exit $ac_status); }; }; then
21440  echo "$as_me:$LINENO: result: \"-64\"" >&5
21441echo "${ECHO_T}\"-64\"" >&6
21442
21443cat >>confdefs.h <<\_ACEOF
21444#define SGI_ABI -64
21445_ACEOF
21446
21447
21448else
21449  echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452 cat >conftest.$ac_ext <<_ACEOF
21453/* confdefs.h.  */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h.  */
21458
21459int
21460main ()
21461{
21462
21463      #if defined(sgi) && _MIPS_SIM == _ABIO32
21464      #else
21465      xyzz
21466      #endif
21467
21468
21469  ;
21470  return 0;
21471}
21472_ACEOF
21473rm -f conftest.$ac_objext
21474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21475  (eval $ac_compile) 2>conftest.er1
21476  ac_status=$?
21477  grep -v '^ *+' conftest.er1 >conftest.err
21478  rm -f conftest.er1
21479  cat conftest.err >&5
21480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481  (exit $ac_status); } &&
21482	 { ac_try='test -z "$ac_c_werror_flag"
21483			 || test ! -s conftest.err'
21484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485  (eval $ac_try) 2>&5
21486  ac_status=$?
21487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488  (exit $ac_status); }; } &&
21489	 { ac_try='test -s conftest.$ac_objext'
21490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491  (eval $ac_try) 2>&5
21492  ac_status=$?
21493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494  (exit $ac_status); }; }; then
21495  echo "$as_me:$LINENO: result: \"-32\"" >&5
21496echo "${ECHO_T}\"-32\"" >&6
21497    cat >>confdefs.h <<\_ACEOF
21498#define SGI_ABI -32
21499_ACEOF
21500
21501else
21502  echo "$as_me: failed program was:" >&5
21503sed 's/^/| /' conftest.$ac_ext >&5
21504
21505echo "$as_me:$LINENO: result: \"-n32\"" >&5
21506echo "${ECHO_T}\"-n32\"" >&6
21507    cat >>confdefs.h <<\_ACEOF
21508#define SGI_ABI -n32
21509_ACEOF
21510
21511
21512fi
21513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21514
21515
21516fi
21517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21518fi
21519
21520# For SGI, set DXABI based on SGI_ABI
21521if test "$ARCH" = "sgi" ; then
21522    case "$SGI_ABI" in
21523      -64)  DXABI=" $SGI_ABI -L/usr/lib64";;
21524      -32)  DXABI=" $SGI_ABI -L/usr/lib";;
21525      -n32) DXABI=" $SGI_ABI -L/usr/lib32";;
21526    esac
21527fi
21528
21529#
21530# Enable 64-bit arenas if requested and supported
21531#
21532echo "$as_me:$LINENO: checking whether to enable large arenas ..." >&5
21533echo $ECHO_N "checking whether to enable large arenas ...... $ECHO_C" >&6
21534if test "$with_large_arenas" != 'no' -a \
21535   "$ARCH" = "sgi" -a "$SGI_ABI" = "-64"; then
21536
21537cat >>confdefs.h <<\_ACEOF
21538#define ENABLE_LARGE_ARENAS 1
21539_ACEOF
21540
21541  echo "$as_me:$LINENO: result: \"yes\"" >&5
21542echo "${ECHO_T}\"yes\"" >&6
21543else
21544  echo "$as_me:$LINENO: result: \"no\"" >&5
21545echo "${ECHO_T}\"no\"" >&6
21546fi
21547
21548# Code to enable JAVADX to be built
21549
21550if test -r C:\ ; then
21551        DIRSEP=";"
21552else
21553        DIRSEP=":"
21554fi
21555
21556if test "$with_javadx" != 'no'; then
21557  failed=0;
21558  passed=0;
21559
21560{ echo "$as_me:$LINENO: checking for java compiler..." >&5
21561echo "$as_me: checking for java compiler..." >&6;}
21562if test -n "$JAVAC"; then
21563  { echo "$as_me:$LINENO: WARNING: JAVAC was preset" >&5
21564echo "$as_me: WARNING: JAVAC was preset" >&2;}
21565  # Extract the first word of "$JAVAC", so it can be a program name with args.
21566set dummy $JAVAC; ac_word=$2
21567echo "$as_me:$LINENO: checking for $ac_word" >&5
21568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21569if test "${ac_cv_prog_JAVAC+set}" = set; then
21570  echo $ECHO_N "(cached) $ECHO_C" >&6
21571else
21572  if test -n "$JAVAC"; then
21573  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
21574else
21575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21576for as_dir in $PATH
21577do
21578  IFS=$as_save_IFS
21579  test -z "$as_dir" && as_dir=.
21580  for ac_exec_ext in '' $ac_executable_extensions; do
21581  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21582    ac_cv_prog_JAVAC=""
21583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21584    break 2
21585  fi
21586done
21587done
21588
21589fi
21590fi
21591JAVAC=$ac_cv_prog_JAVAC
21592if test -n "$JAVAC"; then
21593  echo "$as_me:$LINENO: result: $JAVAC" >&5
21594echo "${ECHO_T}$JAVAC" >&6
21595else
21596  echo "$as_me:$LINENO: result: no" >&5
21597echo "${ECHO_T}no" >&6
21598fi
21599
21600else
21601  for ac_prog in javac "gcj -C" guavac jikes
21602do
21603  # Extract the first word of "$ac_prog", so it can be a program name with args.
21604set dummy $ac_prog; ac_word=$2
21605echo "$as_me:$LINENO: checking for $ac_word" >&5
21606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21607if test "${ac_cv_prog_JAVAC+set}" = set; then
21608  echo $ECHO_N "(cached) $ECHO_C" >&6
21609else
21610  if test -n "$JAVAC"; then
21611  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
21612else
21613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21614for as_dir in $PATH
21615do
21616  IFS=$as_save_IFS
21617  test -z "$as_dir" && as_dir=.
21618  for ac_exec_ext in '' $ac_executable_extensions; do
21619  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21620    ac_cv_prog_JAVAC="$ac_prog"
21621    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21622    break 2
21623  fi
21624done
21625done
21626
21627fi
21628fi
21629JAVAC=$ac_cv_prog_JAVAC
21630if test -n "$JAVAC"; then
21631  echo "$as_me:$LINENO: result: $JAVAC" >&5
21632echo "${ECHO_T}$JAVAC" >&6
21633else
21634  echo "$as_me:$LINENO: result: no" >&5
21635echo "${ECHO_T}no" >&6
21636fi
21637
21638  test -n "$JAVAC" && break
21639done
21640
21641fi
21642if test -z "$JAVAC"; then
21643  { echo "$as_me:$LINENO: WARNING: No java compiler found" >&5
21644echo "$as_me: WARNING: No java compiler found" >&2;}
21645  failed=`expr $failed + 1`
21646else
21647
21648echo "$as_me:$LINENO: checking if $JAVAC works..." >&5
21649echo $ECHO_N "checking if $JAVAC works...... $ECHO_C" >&6
21650dx_test_java_classname="dx_conf"
21651dx_test_java_prog=$dx_test_java_classname".java"
21652dx_test_java_class=$dx_test_java_classname".class"
21653cat << EOF_JAVA > $dx_test_java_prog
21654
21655public class $dx_test_java_classname extends Object {
21656  public static void main() {
21657    }
21658}
21659EOF_JAVA
21660
21661if { ac_try='$JAVAC $dx_test_java_prog'
21662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663  (eval $ac_try) 2>&5
21664  ac_status=$?
21665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666  (exit $ac_status); }; } >/dev/null 2>&1; then
21667  echo "$as_me:$LINENO: result: yes" >&5
21668echo "${ECHO_T}yes" >&6
21669  passed=`expr $passed + 1`
21670else
21671 echo "$as_me:$LINENO: result: no" >&5
21672echo "${ECHO_T}no" >&6
21673 failed=`expr $failed + 1`
21674 { echo "$as_me:$LINENO: WARNING: $JAVAC failed to compile (see config.log, check your CLASSPATH?)" >&5
21675echo "$as_me: WARNING: $JAVAC failed to compile (see config.log, check your CLASSPATH?)" >&2;}
21676fi
21677rm -f $dx_test_java_prog $dx_test_java_class
21678
21679fi
21680
21681
21682{ echo "$as_me:$LINENO: checking for jar..." >&5
21683echo "$as_me: checking for jar..." >&6;}
21684if test -n "$JAR"; then
21685  { echo "$as_me:$LINENO: WARNING: JAR was preset" >&5
21686echo "$as_me: WARNING: JAR was preset" >&2;}
21687  # Extract the first word of "$JAR", so it can be a program name with args.
21688set dummy $JAR; ac_word=$2
21689echo "$as_me:$LINENO: checking for $ac_word" >&5
21690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21691if test "${ac_cv_prog_JAR+set}" = set; then
21692  echo $ECHO_N "(cached) $ECHO_C" >&6
21693else
21694  if test -n "$JAR"; then
21695  ac_cv_prog_JAR="$JAR" # Let the user override the test.
21696else
21697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21698for as_dir in $PATH
21699do
21700  IFS=$as_save_IFS
21701  test -z "$as_dir" && as_dir=.
21702  for ac_exec_ext in '' $ac_executable_extensions; do
21703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21704    ac_cv_prog_JAR=""
21705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21706    break 2
21707  fi
21708done
21709done
21710
21711fi
21712fi
21713JAR=$ac_cv_prog_JAR
21714if test -n "$JAR"; then
21715  echo "$as_me:$LINENO: result: $JAR" >&5
21716echo "${ECHO_T}$JAR" >&6
21717else
21718  echo "$as_me:$LINENO: result: no" >&5
21719echo "${ECHO_T}no" >&6
21720fi
21721
21722else
21723  for ac_prog in jar
21724do
21725  # Extract the first word of "$ac_prog", so it can be a program name with args.
21726set dummy $ac_prog; ac_word=$2
21727echo "$as_me:$LINENO: checking for $ac_word" >&5
21728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21729if test "${ac_cv_prog_JAR+set}" = set; then
21730  echo $ECHO_N "(cached) $ECHO_C" >&6
21731else
21732  if test -n "$JAR"; then
21733  ac_cv_prog_JAR="$JAR" # Let the user override the test.
21734else
21735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21736for as_dir in $PATH
21737do
21738  IFS=$as_save_IFS
21739  test -z "$as_dir" && as_dir=.
21740  for ac_exec_ext in '' $ac_executable_extensions; do
21741  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21742    ac_cv_prog_JAR="$ac_prog"
21743    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21744    break 2
21745  fi
21746done
21747done
21748
21749fi
21750fi
21751JAR=$ac_cv_prog_JAR
21752if test -n "$JAR"; then
21753  echo "$as_me:$LINENO: result: $JAR" >&5
21754echo "${ECHO_T}$JAR" >&6
21755else
21756  echo "$as_me:$LINENO: result: no" >&5
21757echo "${ECHO_T}no" >&6
21758fi
21759
21760  test -n "$JAR" && break
21761done
21762
21763fi
21764if test -z "$JAR"; then
21765  { echo "$as_me:$LINENO: WARNING: jar class packager not found in \$PATH" >&5
21766echo "$as_me: WARNING: jar class packager not found in \$PATH" >&2;}
21767  failed=`expr $failed + 1`
21768else
21769  passed=`expr $passed + 1`
21770fi
21771
21772
21773{ echo "$as_me:$LINENO: checking for javah..." >&5
21774echo "$as_me: checking for javah..." >&6;}
21775if test -n "$JAVAH"; then
21776  { echo "$as_me:$LINENO: WARNING: JAVAH was preset" >&5
21777echo "$as_me: WARNING: JAVAH was preset" >&2;}
21778  # Extract the first word of "$JAVAH", so it can be a program name with args.
21779set dummy $JAVAH; ac_word=$2
21780echo "$as_me:$LINENO: checking for $ac_word" >&5
21781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21782if test "${ac_cv_prog_JAVAH+set}" = set; then
21783  echo $ECHO_N "(cached) $ECHO_C" >&6
21784else
21785  if test -n "$JAVAH"; then
21786  ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
21787else
21788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21789for as_dir in $PATH
21790do
21791  IFS=$as_save_IFS
21792  test -z "$as_dir" && as_dir=.
21793  for ac_exec_ext in '' $ac_executable_extensions; do
21794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21795    ac_cv_prog_JAVAH=""
21796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21797    break 2
21798  fi
21799done
21800done
21801
21802fi
21803fi
21804JAVAH=$ac_cv_prog_JAVAH
21805if test -n "$JAVAH"; then
21806  echo "$as_me:$LINENO: result: $JAVAH" >&5
21807echo "${ECHO_T}$JAVAH" >&6
21808else
21809  echo "$as_me:$LINENO: result: no" >&5
21810echo "${ECHO_T}no" >&6
21811fi
21812
21813else
21814  for ac_prog in javah gcjh
21815do
21816  # Extract the first word of "$ac_prog", so it can be a program name with args.
21817set dummy $ac_prog; ac_word=$2
21818echo "$as_me:$LINENO: checking for $ac_word" >&5
21819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21820if test "${ac_cv_prog_JAVAH+set}" = set; then
21821  echo $ECHO_N "(cached) $ECHO_C" >&6
21822else
21823  if test -n "$JAVAH"; then
21824  ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
21825else
21826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827for as_dir in $PATH
21828do
21829  IFS=$as_save_IFS
21830  test -z "$as_dir" && as_dir=.
21831  for ac_exec_ext in '' $ac_executable_extensions; do
21832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21833    ac_cv_prog_JAVAH="$ac_prog"
21834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21835    break 2
21836  fi
21837done
21838done
21839
21840fi
21841fi
21842JAVAH=$ac_cv_prog_JAVAH
21843if test -n "$JAVAH"; then
21844  echo "$as_me:$LINENO: result: $JAVAH" >&5
21845echo "${ECHO_T}$JAVAH" >&6
21846else
21847  echo "$as_me:$LINENO: result: no" >&5
21848echo "${ECHO_T}no" >&6
21849fi
21850
21851  test -n "$JAVAH" && break
21852done
21853
21854fi
21855if test -z "$JAVAH"; then
21856  { echo "$as_me:$LINENO: WARNING: no acceptable jni header generator found in \$PATH" >&5
21857echo "$as_me: WARNING: no acceptable jni header generator found in \$PATH" >&2;}
21858  failed=`expr $failed + 1`
21859else
21860  passed=`expr $passed + 1`
21861fi
21862
21863
21864if test -n "$JAVA"; then
21865  { echo "$as_me:$LINENO: WARNING: JAVA was preset" >&5
21866echo "$as_me: WARNING: JAVA was preset" >&2;}
21867  # Extract the first word of "$JAVAH", so it can be a program name with args.
21868set dummy $JAVAH; ac_word=$2
21869echo "$as_me:$LINENO: checking for $ac_word" >&5
21870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21871if test "${ac_cv_path_JAVA+set}" = set; then
21872  echo $ECHO_N "(cached) $ECHO_C" >&6
21873else
21874  case $JAVA in
21875  [\\/]* | ?:[\\/]*)
21876  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
21877  ;;
21878  *)
21879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880for as_dir in $PATH
21881do
21882  IFS=$as_save_IFS
21883  test -z "$as_dir" && as_dir=.
21884  for ac_exec_ext in '' $ac_executable_extensions; do
21885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21886    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
21887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21888    break 2
21889  fi
21890done
21891done
21892
21893  ;;
21894esac
21895fi
21896JAVA=$ac_cv_path_JAVA
21897
21898if test -n "$JAVA"; then
21899  echo "$as_me:$LINENO: result: $JAVA" >&5
21900echo "${ECHO_T}$JAVA" >&6
21901else
21902  echo "$as_me:$LINENO: result: no" >&5
21903echo "${ECHO_T}no" >&6
21904fi
21905
21906else
21907  for ac_prog in java
21908do
21909  # Extract the first word of "$ac_prog", so it can be a program name with args.
21910set dummy $ac_prog; ac_word=$2
21911echo "$as_me:$LINENO: checking for $ac_word" >&5
21912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21913if test "${ac_cv_path_JAVA+set}" = set; then
21914  echo $ECHO_N "(cached) $ECHO_C" >&6
21915else
21916  case $JAVA in
21917  [\\/]* | ?:[\\/]*)
21918  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
21919  ;;
21920  *)
21921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21922for as_dir in $PATH
21923do
21924  IFS=$as_save_IFS
21925  test -z "$as_dir" && as_dir=.
21926  for ac_exec_ext in '' $ac_executable_extensions; do
21927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21928    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
21929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21930    break 2
21931  fi
21932done
21933done
21934
21935  ;;
21936esac
21937fi
21938JAVA=$ac_cv_path_JAVA
21939
21940if test -n "$JAVA"; then
21941  echo "$as_me:$LINENO: result: $JAVA" >&5
21942echo "${ECHO_T}$JAVA" >&6
21943else
21944  echo "$as_me:$LINENO: result: no" >&5
21945echo "${ECHO_T}no" >&6
21946fi
21947
21948  test -n "$JAVA" && break
21949done
21950
21951fi
21952if test -z "$JAVA"; then
21953  { echo "$as_me:$LINENO: WARNING: no java executable found in \$PATH" >&5
21954echo "$as_me: WARNING: no java executable found in \$PATH" >&2;}
21955
21956else
21957  DX_JBASE_TRAILING=`echo $JAVA | sed -e "s&.*/&&"`
21958  JBASE=`echo $JAVA | sed -e "s&/$DX_JBASE_TRAILING&&"`
21959
21960fi
21961
21962
21963
21964  if test $failed -eq 0 ; then
21965    if test -z "$with_jni_path" ; then
21966      if test -z "$JNIPATH" ; then
21967
21968
21969if test "${ac_cv_jdk_base+set}" = set; then
21970  echo $ECHO_N "(cached) $ECHO_C" >&6
21971else
21972
21973
21974
21975    echo "$as_me:$LINENO: checking java architecture type" >&5
21976echo $ECHO_N "checking java architecture type... $ECHO_C" >&6
21977    if test "$JAVA_ARCH" = "linux" ; then
21978	JNI_CFLAGS=-DIBM_LINUX
21979    fi
21980
21981# NLS nuisances.
21982# Needed e.g. for some versions of `tr' so that character classes in `[]' work.
21983    if test "${LC_ALL+set}" = 'set'; then LC_ALL=C ; export LC_ALL ; fi
21984    if test "${LANG+set}"   = 'set'; then LANG=C   ; export LANG   ; fi
21985    if test "`echo ABC | tr '[A-Z]' '[a-z]'`" = "abc"  ; then
21986        tolower="tr '[A-Z]' '[a-z]'"
21987    else
21988        tolower="tr A-Z a-z"
21989    fi
21990
21991    if test "$JAVA_ARCH" = "" ; then
21992	lc=`uname -s | $tolower`
21993        case $lc in
21994	    irix*)     JAVA_ARCH=irix ;;
21995	    cygwin*)   JAVA_ARCH=win32 ;;
21996	    aix)       JAVA_ARCH=aix ;;
21997	    alpha)     JAVA_ARCH=alpha ;;
21998	    osf1)      JAVA_ARCH=alpha ;;
21999	    hp-ux)     JAVA_ARCH=hp-ux ;;
22000	    sunos)     JAVA_ARCH=solaris ;;
22001	    linux)     JAVA_ARCH=genunix
22002		       JNI_CFLAGS=-DIBM_LINUX;;
22003	    darwin)    JAVA_ARCH=macos ;;
22004	    *)         JAVA_ARCH=$lc ;;
22005	esac
22006    fi
22007    echo "$as_me:$LINENO: result: $JAVA_ARCH" >&5
22008echo "${ECHO_T}$JAVA_ARCH" >&6
22009
22010
22011
22012dx_find_jdk=""
22013echo "$as_me:$LINENO: checking for jdk classes" >&5
22014echo $ECHO_N "checking for jdk classes... $ECHO_C" >&6
22015if test "${ac_cv_jdk_classes+set}" = set; then
22016  echo $ECHO_N "(cached) $ECHO_C" >&6
22017else
22018
22019ac_cv_jdk_classes=""
22020
22021if test "$JAVAC" = "javac" ; then
22022
22023echo "$as_me:$LINENO: result: trying javac -verbose" >&5
22024echo "${ECHO_T}trying javac -verbose" >&6
22025
22026
22027echo "$as_me:$LINENO: checking for jdk classes verbosely" >&5
22028echo $ECHO_N "checking for jdk classes verbosely... $ECHO_C" >&6
22029
22030cat > jdkpath.java <<EOF
22031//   used to find jdk path via -verbose option to javac
22032public class jdkpath extends Object {
22033 public static void main() {
22034   }
22035}
22036EOF
22037
22038javac -verbose jdkpath.java >jdkpath.out 2>jdkpath.err
22039
22040
22041ac_cv_jdk_classes=`egrep "loaded|loading" jdkpath.err | tr '\134' '\057' | sed -e "s/.loaded //" -e "s/.loading //" -e "s&(.*$&&"`
22042
22043rm -f jdkpath.*
22044
22045echo "$as_me:$LINENO: result: $ac_cv_jdk_classes" >&5
22046echo "${ECHO_T}$ac_cv_jdk_classes" >&6
22047else
22048
22049echo "$as_me:$LINENO: result: none" >&5
22050echo "${ECHO_T}none" >&6
22051
22052fi
22053dx_find_jdk="yes"
22054
22055fi
22056
22057if test -z "$dx_find_jdk" ; then
22058  echo "$as_me:$LINENO: result: $ac_cv_jdk_classes" >&5
22059echo "${ECHO_T}$ac_cv_jdk_classes" >&6
22060fi
22061
22062
22063if test -z "$ac_cv_jdk_classes" ; then
22064
22065  echo "$as_me:$LINENO: result: trying default path" >&5
22066echo "${ECHO_T}trying default path" >&6
22067  ac_cv_jdk_base="/usr/include:/usr/include/$JAVA_ARCH"
22068else
22069
22070DX_JDK_TRAILING=`echo $ac_cv_jdk_classes | sed -e "s&.*/&&"`
22071
22072DX_ALMOST_BASE=`echo $ac_cv_jdk_classes | sed -e "s&/lib/$DX_JDK_TRAILING&&"`
22073DX_JBASE=`echo $DX_ALMOST_BASE | sed -e "s&/jre&&"`
22074
22075
22076DX_FOUND_PATH="$DX_JBASE/include:$DX_JBASE/include/$JAVA_ARCH"
22077
22078if test "$JAVA_ARCH" = "macos" ; then
22079	DX_FOUND_PATH="/System/Library/Frameworks/JavaVM.framework/Headers"
22080fi
22081
22082ac_cv_jdk_base="$DX_FOUND_PATH"
22083
22084fi
22085
22086
22087fi
22088
22089echo "$as_me:$LINENO: checking for jni headers path" >&5
22090echo $ECHO_N "checking for jni headers path... $ECHO_C" >&6
22091echo "$as_me:$LINENO: result: $ac_cv_jdk_base" >&5
22092echo "${ECHO_T}$ac_cv_jdk_base" >&6
22093
22094
22095echo "$as_me:$LINENO: checking for valid jni headers path" >&5
22096echo $ECHO_N "checking for valid jni headers path... $ECHO_C" >&6
22097if test "${ac_cv_include_jni+set}" = set; then
22098  echo $ECHO_N "(cached) $ECHO_C" >&6
22099else
22100
22101
22102
22103dx_jniinc=''
22104dx_jnimdinc=''
22105
22106list=`echo $ac_cv_jdk_base | sed -e "s/:/ /g"`
22107for i in $list
22108do
22109	if test -r "$i/jni.h" ; then
22110	   dx_jniinc=$i
22111	fi
22112	if test -r "$i/jni_md.h" ; then
22113	   dx_jnimdinc=$i
22114	fi
22115done
22116
22117
22118if test -n "$dx_jniinc" && test -n "$dx_jnimdinc" ; then
22119  JINC="-I$dx_jniinc -I$dx_jnimdinc"
22120  ac_cv_include_jni="$JINC"
22121fi
22122
22123fi
22124
22125if test -z "$ac_cv_include_jni" ; then
22126  echo "$as_me:$LINENO: result: no" >&5
22127echo "${ECHO_T}no" >&6
22128  failed=`expr $failed + 1`
22129else
22130  echo "$as_me:$LINENO: result: yes" >&5
22131echo "${ECHO_T}yes" >&6
22132  passed=`expr $passed + 1`
22133  if test -z "$JINC"; then
22134    JINC="$ac_cv_include_jni"
22135  fi
22136fi
22137
22138
22139      else
22140
22141echo "$as_me:$LINENO: checking for valid jni headers path" >&5
22142echo $ECHO_N "checking for valid jni headers path... $ECHO_C" >&6
22143if test "${ac_cv_include_jni+set}" = set; then
22144  echo $ECHO_N "(cached) $ECHO_C" >&6
22145else
22146
22147
22148
22149dx_jniinc=''
22150dx_jnimdinc=''
22151
22152list=`echo $JNIPATH | sed -e "s/:/ /g"`
22153for i in $list
22154do
22155	if test -r "$i/jni.h" ; then
22156	   dx_jniinc=$i
22157	fi
22158	if test -r "$i/jni_md.h" ; then
22159	   dx_jnimdinc=$i
22160	fi
22161done
22162
22163
22164if test -n "$dx_jniinc" && test -n "$dx_jnimdinc" ; then
22165  JINC="-I$dx_jniinc -I$dx_jnimdinc"
22166  ac_cv_include_jni="$JINC"
22167fi
22168
22169fi
22170
22171if test -z "$ac_cv_include_jni" ; then
22172  echo "$as_me:$LINENO: result: no" >&5
22173echo "${ECHO_T}no" >&6
22174  failed=`expr $failed + 1`
22175else
22176  echo "$as_me:$LINENO: result: yes" >&5
22177echo "${ECHO_T}yes" >&6
22178  passed=`expr $passed + 1`
22179  if test -z "$JINC"; then
22180    JINC="$ac_cv_include_jni"
22181  fi
22182fi
22183
22184      fi
22185    else
22186
22187echo "$as_me:$LINENO: checking for valid jni headers path" >&5
22188echo $ECHO_N "checking for valid jni headers path... $ECHO_C" >&6
22189if test "${ac_cv_include_jni+set}" = set; then
22190  echo $ECHO_N "(cached) $ECHO_C" >&6
22191else
22192
22193
22194
22195dx_jniinc=''
22196dx_jnimdinc=''
22197
22198list=`echo $with_jni_path | sed -e "s/:/ /g"`
22199for i in $list
22200do
22201	if test -r "$i/jni.h" ; then
22202	   dx_jniinc=$i
22203	fi
22204	if test -r "$i/jni_md.h" ; then
22205	   dx_jnimdinc=$i
22206	fi
22207done
22208
22209
22210if test -n "$dx_jniinc" && test -n "$dx_jnimdinc" ; then
22211  JINC="-I$dx_jniinc -I$dx_jnimdinc"
22212  ac_cv_include_jni="$JINC"
22213fi
22214
22215fi
22216
22217if test -z "$ac_cv_include_jni" ; then
22218  echo "$as_me:$LINENO: result: no" >&5
22219echo "${ECHO_T}no" >&6
22220  failed=`expr $failed + 1`
22221else
22222  echo "$as_me:$LINENO: result: yes" >&5
22223echo "${ECHO_T}yes" >&6
22224  passed=`expr $passed + 1`
22225  if test -z "$JINC"; then
22226    JINC="$ac_cv_include_jni"
22227  fi
22228fi
22229
22230    fi
22231  fi
22232
22233  if test $failed -gt 0; then
22234    with_javadx='no'
22235    { echo "$as_me:$LINENO: WARNING: JavaDX will be skipped during compilation due to limitations." >&5
22236echo "$as_me: WARNING: JavaDX will be skipped during compilation due to limitations." >&2;}
22237  else
22238    with_javadx='yes'
22239    JAVABRANCH=java
22240
22241dx_find_jdk=""
22242echo "$as_me:$LINENO: checking for jdk classes" >&5
22243echo $ECHO_N "checking for jdk classes... $ECHO_C" >&6
22244if test "${ac_cv_jdk_classes+set}" = set; then
22245  echo $ECHO_N "(cached) $ECHO_C" >&6
22246else
22247
22248ac_cv_jdk_classes=""
22249
22250if test "$JAVAC" = "javac" ; then
22251
22252echo "$as_me:$LINENO: result: trying javac -verbose" >&5
22253echo "${ECHO_T}trying javac -verbose" >&6
22254
22255
22256echo "$as_me:$LINENO: checking for jdk classes verbosely" >&5
22257echo $ECHO_N "checking for jdk classes verbosely... $ECHO_C" >&6
22258
22259cat > jdkpath.java <<EOF
22260//   used to find jdk path via -verbose option to javac
22261public class jdkpath extends Object {
22262 public static void main() {
22263   }
22264}
22265EOF
22266
22267javac -verbose jdkpath.java >jdkpath.out 2>jdkpath.err
22268
22269
22270ac_cv_jdk_classes=`egrep "loaded|loading" jdkpath.err | tr '\134' '\057' | sed -e "s/.loaded //" -e "s/.loading //" -e "s&(.*$&&"`
22271
22272rm -f jdkpath.*
22273
22274echo "$as_me:$LINENO: result: $ac_cv_jdk_classes" >&5
22275echo "${ECHO_T}$ac_cv_jdk_classes" >&6
22276else
22277
22278echo "$as_me:$LINENO: result: none" >&5
22279echo "${ECHO_T}none" >&6
22280
22281fi
22282dx_find_jdk="yes"
22283
22284fi
22285
22286if test -z "$dx_find_jdk" ; then
22287  echo "$as_me:$LINENO: result: $ac_cv_jdk_classes" >&5
22288echo "${ECHO_T}$ac_cv_jdk_classes" >&6
22289fi
22290
22291    DX_JAVA_CLASSPATH="$ac_cv_jdk_classes"
22292    if test -z "$with_java40jar_path" ; then
22293      if test -z "$JAVA40JAR" ; then
22294
22295
22296
22297
22298echo "$as_me:$LINENO: checking for netscape jar files" >&5
22299echo $ECHO_N "checking for netscape jar files... $ECHO_C" >&6
22300if test "${ac_cv_class_netscape+set}" = set; then
22301  echo $ECHO_N "(cached) $ECHO_C" >&6
22302else
22303
22304if test -r /usr/lib/netscape/java/classes/java40.jar; then
22305  ac_cv_class_netscape=/usr/lib/netscape/java/classes/java40.jar
22306fi
22307
22308fi
22309
22310if test -n "$ac_cv_class_netscape" ; then
22311  echo "$as_me:$LINENO: result: yes" >&5
22312echo "${ECHO_T}yes" >&6
22313
22314else
22315  echo "$as_me:$LINENO: result: no -- netscape support will not be complete" >&5
22316echo "${ECHO_T}no -- netscape support will not be complete" >&6
22317
22318fi
22319
22320
22321
22322      else
22323
22324echo "$as_me:$LINENO: checking for netscape jar files" >&5
22325echo $ECHO_N "checking for netscape jar files... $ECHO_C" >&6
22326if test "${ac_cv_class_netscape+set}" = set; then
22327  echo $ECHO_N "(cached) $ECHO_C" >&6
22328else
22329
22330if test -r $JAVA40JAR; then
22331  ac_cv_class_netscape=$JAVA40JAR
22332fi
22333
22334fi
22335
22336if test -n "$ac_cv_class_netscape" ; then
22337  echo "$as_me:$LINENO: result: yes" >&5
22338echo "${ECHO_T}yes" >&6
22339
22340else
22341  echo "$as_me:$LINENO: result: no -- netscape support will not be complete" >&5
22342echo "${ECHO_T}no -- netscape support will not be complete" >&6
22343
22344fi
22345
22346      fi
22347    else
22348
22349echo "$as_me:$LINENO: checking for netscape jar files" >&5
22350echo $ECHO_N "checking for netscape jar files... $ECHO_C" >&6
22351if test "${ac_cv_class_netscape+set}" = set; then
22352  echo $ECHO_N "(cached) $ECHO_C" >&6
22353else
22354
22355if test -r $with_java40jar_path; then
22356  ac_cv_class_netscape=$with_java40jar_path
22357fi
22358
22359fi
22360
22361if test -n "$ac_cv_class_netscape" ; then
22362  echo "$as_me:$LINENO: result: yes" >&5
22363echo "${ECHO_T}yes" >&6
22364
22365else
22366  echo "$as_me:$LINENO: result: no -- netscape support will not be complete" >&5
22367echo "${ECHO_T}no -- netscape support will not be complete" >&6
22368
22369fi
22370
22371    fi
22372    if test -z "$with_cosmojar_path" ; then
22373      if test -z "$COSMOJAR" ; then
22374
22375
22376
22377
22378echo "$as_me:$LINENO: checking for cosmo jar files" >&5
22379echo $ECHO_N "checking for cosmo jar files... $ECHO_C" >&6
22380if test "${ac_cv_class_cosmo+set}" = set; then
22381  echo $ECHO_N "(cached) $ECHO_C" >&6
22382else
22383
22384if test -r /usr/lib/netscape/java/classes/npcosmop211.jar; then
22385  ac_cv_class_cosmo=/usr/lib/netscape/java/classes/npcosmop211.jar
22386fi
22387
22388fi
22389
22390if test -n "$ac_cv_class_cosmo" ; then
22391  echo "$as_me:$LINENO: result: yes" >&5
22392echo "${ECHO_T}yes" >&6
22393
22394else
22395  echo "$as_me:$LINENO: result: no -- comso support will not be complete" >&5
22396echo "${ECHO_T}no -- comso support will not be complete" >&6
22397
22398fi
22399
22400
22401
22402      else
22403
22404echo "$as_me:$LINENO: checking for cosmo jar files" >&5
22405echo $ECHO_N "checking for cosmo jar files... $ECHO_C" >&6
22406if test "${ac_cv_class_cosmo+set}" = set; then
22407  echo $ECHO_N "(cached) $ECHO_C" >&6
22408else
22409
22410if test -r $COSMOJAR; then
22411  ac_cv_class_cosmo=$COSMOJAR
22412fi
22413
22414fi
22415
22416if test -n "$ac_cv_class_cosmo" ; then
22417  echo "$as_me:$LINENO: result: yes" >&5
22418echo "${ECHO_T}yes" >&6
22419
22420else
22421  echo "$as_me:$LINENO: result: no -- comso support will not be complete" >&5
22422echo "${ECHO_T}no -- comso support will not be complete" >&6
22423
22424fi
22425
22426      fi
22427    else
22428
22429echo "$as_me:$LINENO: checking for cosmo jar files" >&5
22430echo $ECHO_N "checking for cosmo jar files... $ECHO_C" >&6
22431if test "${ac_cv_class_cosmo+set}" = set; then
22432  echo $ECHO_N "(cached) $ECHO_C" >&6
22433else
22434
22435if test -r $with_cosmojar_path; then
22436  ac_cv_class_cosmo=$with_cosmojar_path
22437fi
22438
22439fi
22440
22441if test -n "$ac_cv_class_cosmo" ; then
22442  echo "$as_me:$LINENO: result: yes" >&5
22443echo "${ECHO_T}yes" >&6
22444
22445else
22446  echo "$as_me:$LINENO: result: no -- comso support will not be complete" >&5
22447echo "${ECHO_T}no -- comso support will not be complete" >&6
22448
22449fi
22450
22451    fi
22452    WRL_CLASSPATH="$ac_cv_class_netscape"
22453    if test -n "$ac_cv_class_cosmo" ; then
22454      WRL_CLASSPATH="$ac_cv_class_netscape$DIRSEP$ac_cv_class_cosmo"
22455    fi
22456
22457    TMP_CLASSPATH=./
22458    if test ! "$CLASSPATH" = "" ; then
22459	TMP_CLASSPATH=$CLASSPATH$DIRSEP$TMP_CLASSPATH
22460    fi
22461    if test ! "$COSMOJAR" = "" ; then
22462	TMP_CLASSPATH=$COSMOJAR$DIRSEP$TMP_CLASSPATH
22463    fi
22464    if test ! "$WRL_CLASSPATH" = "" ; then
22465	TMP_CLASSPATH=$WRL_CLASSPATH$DIRSEP$TMP_CLASSPATH
22466    fi
22467    if test ! "$DX_JAVA_CLASSPATH" = "" ; then
22468	TMP_CLASSPATH=$DX_JAVA_CLASSPATH$DIRSEP$TMP_CLASSPATH
22469    fi
22470    DX_JAVA_CLASSPATH=$TMP_CLASSPATH
22471    { echo "$as_me:$LINENO:  DX_JAVA_CLASSPATH :: $DX_JAVA_CLASSPATH " >&5
22472echo "$as_me:  DX_JAVA_CLASSPATH :: $DX_JAVA_CLASSPATH " >&6;}
22473  fi
22474
22475fi
22476# end of JAVADX configure
22477
22478ac_ext=c
22479ac_cpp='$CPP $CPPFLAGS'
22480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22482ac_compiler_gnu=$ac_cv_c_compiler_gnu
22483
22484
22485
22486
22487
22488
22489
22490ac_header_dirent=no
22491for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22492  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22493echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22494echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22495if eval "test \"\${$as_ac_Header+set}\" = set"; then
22496  echo $ECHO_N "(cached) $ECHO_C" >&6
22497else
22498  cat >conftest.$ac_ext <<_ACEOF
22499/* confdefs.h.  */
22500_ACEOF
22501cat confdefs.h >>conftest.$ac_ext
22502cat >>conftest.$ac_ext <<_ACEOF
22503/* end confdefs.h.  */
22504#include <sys/types.h>
22505#include <$ac_hdr>
22506
22507int
22508main ()
22509{
22510if ((DIR *) 0)
22511return 0;
22512  ;
22513  return 0;
22514}
22515_ACEOF
22516rm -f conftest.$ac_objext
22517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22518  (eval $ac_compile) 2>conftest.er1
22519  ac_status=$?
22520  grep -v '^ *+' conftest.er1 >conftest.err
22521  rm -f conftest.er1
22522  cat conftest.err >&5
22523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524  (exit $ac_status); } &&
22525	 { ac_try='test -z "$ac_c_werror_flag"
22526			 || test ! -s conftest.err'
22527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528  (eval $ac_try) 2>&5
22529  ac_status=$?
22530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531  (exit $ac_status); }; } &&
22532	 { ac_try='test -s conftest.$ac_objext'
22533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534  (eval $ac_try) 2>&5
22535  ac_status=$?
22536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537  (exit $ac_status); }; }; then
22538  eval "$as_ac_Header=yes"
22539else
22540  echo "$as_me: failed program was:" >&5
22541sed 's/^/| /' conftest.$ac_ext >&5
22542
22543eval "$as_ac_Header=no"
22544fi
22545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546fi
22547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22549if test `eval echo '${'$as_ac_Header'}'` = yes; then
22550  cat >>confdefs.h <<_ACEOF
22551#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22552_ACEOF
22553
22554ac_header_dirent=$ac_hdr; break
22555fi
22556
22557done
22558# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22559if test $ac_header_dirent = dirent.h; then
22560  echo "$as_me:$LINENO: checking for library containing opendir" >&5
22561echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22562if test "${ac_cv_search_opendir+set}" = set; then
22563  echo $ECHO_N "(cached) $ECHO_C" >&6
22564else
22565  ac_func_search_save_LIBS=$LIBS
22566ac_cv_search_opendir=no
22567cat >conftest.$ac_ext <<_ACEOF
22568/* confdefs.h.  */
22569_ACEOF
22570cat confdefs.h >>conftest.$ac_ext
22571cat >>conftest.$ac_ext <<_ACEOF
22572/* end confdefs.h.  */
22573
22574/* Override any gcc2 internal prototype to avoid an error.  */
22575#ifdef __cplusplus
22576extern "C"
22577#endif
22578/* We use char because int might match the return type of a gcc2
22579   builtin and then its argument prototype would still apply.  */
22580char opendir ();
22581int
22582main ()
22583{
22584opendir ();
22585  ;
22586  return 0;
22587}
22588_ACEOF
22589rm -f conftest.$ac_objext conftest$ac_exeext
22590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591  (eval $ac_link) 2>conftest.er1
22592  ac_status=$?
22593  grep -v '^ *+' conftest.er1 >conftest.err
22594  rm -f conftest.er1
22595  cat conftest.err >&5
22596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597  (exit $ac_status); } &&
22598	 { ac_try='test -z "$ac_c_werror_flag"
22599			 || test ! -s conftest.err'
22600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601  (eval $ac_try) 2>&5
22602  ac_status=$?
22603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604  (exit $ac_status); }; } &&
22605	 { ac_try='test -s conftest$ac_exeext'
22606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607  (eval $ac_try) 2>&5
22608  ac_status=$?
22609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610  (exit $ac_status); }; }; then
22611  ac_cv_search_opendir="none required"
22612else
22613  echo "$as_me: failed program was:" >&5
22614sed 's/^/| /' conftest.$ac_ext >&5
22615
22616fi
22617rm -f conftest.err conftest.$ac_objext \
22618      conftest$ac_exeext conftest.$ac_ext
22619if test "$ac_cv_search_opendir" = no; then
22620  for ac_lib in dir; do
22621    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22622    cat >conftest.$ac_ext <<_ACEOF
22623/* confdefs.h.  */
22624_ACEOF
22625cat confdefs.h >>conftest.$ac_ext
22626cat >>conftest.$ac_ext <<_ACEOF
22627/* end confdefs.h.  */
22628
22629/* Override any gcc2 internal prototype to avoid an error.  */
22630#ifdef __cplusplus
22631extern "C"
22632#endif
22633/* We use char because int might match the return type of a gcc2
22634   builtin and then its argument prototype would still apply.  */
22635char opendir ();
22636int
22637main ()
22638{
22639opendir ();
22640  ;
22641  return 0;
22642}
22643_ACEOF
22644rm -f conftest.$ac_objext conftest$ac_exeext
22645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22646  (eval $ac_link) 2>conftest.er1
22647  ac_status=$?
22648  grep -v '^ *+' conftest.er1 >conftest.err
22649  rm -f conftest.er1
22650  cat conftest.err >&5
22651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652  (exit $ac_status); } &&
22653	 { ac_try='test -z "$ac_c_werror_flag"
22654			 || test ! -s conftest.err'
22655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656  (eval $ac_try) 2>&5
22657  ac_status=$?
22658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659  (exit $ac_status); }; } &&
22660	 { ac_try='test -s conftest$ac_exeext'
22661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662  (eval $ac_try) 2>&5
22663  ac_status=$?
22664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665  (exit $ac_status); }; }; then
22666  ac_cv_search_opendir="-l$ac_lib"
22667break
22668else
22669  echo "$as_me: failed program was:" >&5
22670sed 's/^/| /' conftest.$ac_ext >&5
22671
22672fi
22673rm -f conftest.err conftest.$ac_objext \
22674      conftest$ac_exeext conftest.$ac_ext
22675  done
22676fi
22677LIBS=$ac_func_search_save_LIBS
22678fi
22679echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22680echo "${ECHO_T}$ac_cv_search_opendir" >&6
22681if test "$ac_cv_search_opendir" != no; then
22682  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
22683
22684fi
22685
22686else
22687  echo "$as_me:$LINENO: checking for library containing opendir" >&5
22688echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22689if test "${ac_cv_search_opendir+set}" = set; then
22690  echo $ECHO_N "(cached) $ECHO_C" >&6
22691else
22692  ac_func_search_save_LIBS=$LIBS
22693ac_cv_search_opendir=no
22694cat >conftest.$ac_ext <<_ACEOF
22695/* confdefs.h.  */
22696_ACEOF
22697cat confdefs.h >>conftest.$ac_ext
22698cat >>conftest.$ac_ext <<_ACEOF
22699/* end confdefs.h.  */
22700
22701/* Override any gcc2 internal prototype to avoid an error.  */
22702#ifdef __cplusplus
22703extern "C"
22704#endif
22705/* We use char because int might match the return type of a gcc2
22706   builtin and then its argument prototype would still apply.  */
22707char opendir ();
22708int
22709main ()
22710{
22711opendir ();
22712  ;
22713  return 0;
22714}
22715_ACEOF
22716rm -f conftest.$ac_objext conftest$ac_exeext
22717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22718  (eval $ac_link) 2>conftest.er1
22719  ac_status=$?
22720  grep -v '^ *+' conftest.er1 >conftest.err
22721  rm -f conftest.er1
22722  cat conftest.err >&5
22723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724  (exit $ac_status); } &&
22725	 { ac_try='test -z "$ac_c_werror_flag"
22726			 || test ! -s conftest.err'
22727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728  (eval $ac_try) 2>&5
22729  ac_status=$?
22730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731  (exit $ac_status); }; } &&
22732	 { ac_try='test -s conftest$ac_exeext'
22733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734  (eval $ac_try) 2>&5
22735  ac_status=$?
22736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737  (exit $ac_status); }; }; then
22738  ac_cv_search_opendir="none required"
22739else
22740  echo "$as_me: failed program was:" >&5
22741sed 's/^/| /' conftest.$ac_ext >&5
22742
22743fi
22744rm -f conftest.err conftest.$ac_objext \
22745      conftest$ac_exeext conftest.$ac_ext
22746if test "$ac_cv_search_opendir" = no; then
22747  for ac_lib in x; do
22748    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22749    cat >conftest.$ac_ext <<_ACEOF
22750/* confdefs.h.  */
22751_ACEOF
22752cat confdefs.h >>conftest.$ac_ext
22753cat >>conftest.$ac_ext <<_ACEOF
22754/* end confdefs.h.  */
22755
22756/* Override any gcc2 internal prototype to avoid an error.  */
22757#ifdef __cplusplus
22758extern "C"
22759#endif
22760/* We use char because int might match the return type of a gcc2
22761   builtin and then its argument prototype would still apply.  */
22762char opendir ();
22763int
22764main ()
22765{
22766opendir ();
22767  ;
22768  return 0;
22769}
22770_ACEOF
22771rm -f conftest.$ac_objext conftest$ac_exeext
22772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773  (eval $ac_link) 2>conftest.er1
22774  ac_status=$?
22775  grep -v '^ *+' conftest.er1 >conftest.err
22776  rm -f conftest.er1
22777  cat conftest.err >&5
22778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779  (exit $ac_status); } &&
22780	 { ac_try='test -z "$ac_c_werror_flag"
22781			 || test ! -s conftest.err'
22782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783  (eval $ac_try) 2>&5
22784  ac_status=$?
22785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786  (exit $ac_status); }; } &&
22787	 { ac_try='test -s conftest$ac_exeext'
22788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789  (eval $ac_try) 2>&5
22790  ac_status=$?
22791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792  (exit $ac_status); }; }; then
22793  ac_cv_search_opendir="-l$ac_lib"
22794break
22795else
22796  echo "$as_me: failed program was:" >&5
22797sed 's/^/| /' conftest.$ac_ext >&5
22798
22799fi
22800rm -f conftest.err conftest.$ac_objext \
22801      conftest$ac_exeext conftest.$ac_ext
22802  done
22803fi
22804LIBS=$ac_func_search_save_LIBS
22805fi
22806echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22807echo "${ECHO_T}$ac_cv_search_opendir" >&6
22808if test "$ac_cv_search_opendir" != no; then
22809  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
22810
22811fi
22812
22813fi
22814
22815echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22816echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22817if test "${ac_cv_header_stdc+set}" = set; then
22818  echo $ECHO_N "(cached) $ECHO_C" >&6
22819else
22820  cat >conftest.$ac_ext <<_ACEOF
22821/* confdefs.h.  */
22822_ACEOF
22823cat confdefs.h >>conftest.$ac_ext
22824cat >>conftest.$ac_ext <<_ACEOF
22825/* end confdefs.h.  */
22826#include <stdlib.h>
22827#include <stdarg.h>
22828#include <string.h>
22829#include <float.h>
22830
22831int
22832main ()
22833{
22834
22835  ;
22836  return 0;
22837}
22838_ACEOF
22839rm -f conftest.$ac_objext
22840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22841  (eval $ac_compile) 2>conftest.er1
22842  ac_status=$?
22843  grep -v '^ *+' conftest.er1 >conftest.err
22844  rm -f conftest.er1
22845  cat conftest.err >&5
22846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847  (exit $ac_status); } &&
22848	 { ac_try='test -z "$ac_c_werror_flag"
22849			 || test ! -s conftest.err'
22850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851  (eval $ac_try) 2>&5
22852  ac_status=$?
22853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854  (exit $ac_status); }; } &&
22855	 { ac_try='test -s conftest.$ac_objext'
22856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857  (eval $ac_try) 2>&5
22858  ac_status=$?
22859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860  (exit $ac_status); }; }; then
22861  ac_cv_header_stdc=yes
22862else
22863  echo "$as_me: failed program was:" >&5
22864sed 's/^/| /' conftest.$ac_ext >&5
22865
22866ac_cv_header_stdc=no
22867fi
22868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22869
22870if test $ac_cv_header_stdc = yes; then
22871  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22872  cat >conftest.$ac_ext <<_ACEOF
22873/* confdefs.h.  */
22874_ACEOF
22875cat confdefs.h >>conftest.$ac_ext
22876cat >>conftest.$ac_ext <<_ACEOF
22877/* end confdefs.h.  */
22878#include <string.h>
22879
22880_ACEOF
22881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22882  $EGREP "memchr" >/dev/null 2>&1; then
22883  :
22884else
22885  ac_cv_header_stdc=no
22886fi
22887rm -f conftest*
22888
22889fi
22890
22891if test $ac_cv_header_stdc = yes; then
22892  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22893  cat >conftest.$ac_ext <<_ACEOF
22894/* confdefs.h.  */
22895_ACEOF
22896cat confdefs.h >>conftest.$ac_ext
22897cat >>conftest.$ac_ext <<_ACEOF
22898/* end confdefs.h.  */
22899#include <stdlib.h>
22900
22901_ACEOF
22902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903  $EGREP "free" >/dev/null 2>&1; then
22904  :
22905else
22906  ac_cv_header_stdc=no
22907fi
22908rm -f conftest*
22909
22910fi
22911
22912if test $ac_cv_header_stdc = yes; then
22913  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22914  if test "$cross_compiling" = yes; then
22915  :
22916else
22917  cat >conftest.$ac_ext <<_ACEOF
22918/* confdefs.h.  */
22919_ACEOF
22920cat confdefs.h >>conftest.$ac_ext
22921cat >>conftest.$ac_ext <<_ACEOF
22922/* end confdefs.h.  */
22923#include <ctype.h>
22924#if ((' ' & 0x0FF) == 0x020)
22925# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22926# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22927#else
22928# define ISLOWER(c) \
22929		   (('a' <= (c) && (c) <= 'i') \
22930		     || ('j' <= (c) && (c) <= 'r') \
22931		     || ('s' <= (c) && (c) <= 'z'))
22932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22933#endif
22934
22935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22936int
22937main ()
22938{
22939  int i;
22940  for (i = 0; i < 256; i++)
22941    if (XOR (islower (i), ISLOWER (i))
22942	|| toupper (i) != TOUPPER (i))
22943      exit(2);
22944  exit (0);
22945}
22946_ACEOF
22947rm -f conftest$ac_exeext
22948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22949  (eval $ac_link) 2>&5
22950  ac_status=$?
22951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22954  (eval $ac_try) 2>&5
22955  ac_status=$?
22956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957  (exit $ac_status); }; }; then
22958  :
22959else
22960  echo "$as_me: program exited with status $ac_status" >&5
22961echo "$as_me: failed program was:" >&5
22962sed 's/^/| /' conftest.$ac_ext >&5
22963
22964( exit $ac_status )
22965ac_cv_header_stdc=no
22966fi
22967rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22968fi
22969fi
22970fi
22971echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22972echo "${ECHO_T}$ac_cv_header_stdc" >&6
22973if test $ac_cv_header_stdc = yes; then
22974
22975cat >>confdefs.h <<\_ACEOF
22976#define STDC_HEADERS 1
22977_ACEOF
22978
22979fi
22980
22981echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22982echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
22983if test "${ac_cv_header_sys_wait_h+set}" = set; then
22984  echo $ECHO_N "(cached) $ECHO_C" >&6
22985else
22986  cat >conftest.$ac_ext <<_ACEOF
22987/* confdefs.h.  */
22988_ACEOF
22989cat confdefs.h >>conftest.$ac_ext
22990cat >>conftest.$ac_ext <<_ACEOF
22991/* end confdefs.h.  */
22992#include <sys/types.h>
22993#include <sys/wait.h>
22994#ifndef WEXITSTATUS
22995# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
22996#endif
22997#ifndef WIFEXITED
22998# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22999#endif
23000
23001int
23002main ()
23003{
23004  int s;
23005  wait (&s);
23006  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23007  ;
23008  return 0;
23009}
23010_ACEOF
23011rm -f conftest.$ac_objext
23012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23013  (eval $ac_compile) 2>conftest.er1
23014  ac_status=$?
23015  grep -v '^ *+' conftest.er1 >conftest.err
23016  rm -f conftest.er1
23017  cat conftest.err >&5
23018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019  (exit $ac_status); } &&
23020	 { ac_try='test -z "$ac_c_werror_flag"
23021			 || test ! -s conftest.err'
23022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023  (eval $ac_try) 2>&5
23024  ac_status=$?
23025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026  (exit $ac_status); }; } &&
23027	 { ac_try='test -s conftest.$ac_objext'
23028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029  (eval $ac_try) 2>&5
23030  ac_status=$?
23031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032  (exit $ac_status); }; }; then
23033  ac_cv_header_sys_wait_h=yes
23034else
23035  echo "$as_me: failed program was:" >&5
23036sed 's/^/| /' conftest.$ac_ext >&5
23037
23038ac_cv_header_sys_wait_h=no
23039fi
23040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23041fi
23042echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23043echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23044if test $ac_cv_header_sys_wait_h = yes; then
23045
23046cat >>confdefs.h <<\_ACEOF
23047#define HAVE_SYS_WAIT_H 1
23048_ACEOF
23049
23050fi
23051
23052
23053echo "$as_me:$LINENO: checking for mode_t" >&5
23054echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
23055if test "${ac_cv_type_mode_t+set}" = set; then
23056  echo $ECHO_N "(cached) $ECHO_C" >&6
23057else
23058  cat >conftest.$ac_ext <<_ACEOF
23059/* confdefs.h.  */
23060_ACEOF
23061cat confdefs.h >>conftest.$ac_ext
23062cat >>conftest.$ac_ext <<_ACEOF
23063/* end confdefs.h.  */
23064$ac_includes_default
23065int
23066main ()
23067{
23068if ((mode_t *) 0)
23069  return 0;
23070if (sizeof (mode_t))
23071  return 0;
23072  ;
23073  return 0;
23074}
23075_ACEOF
23076rm -f conftest.$ac_objext
23077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23078  (eval $ac_compile) 2>conftest.er1
23079  ac_status=$?
23080  grep -v '^ *+' conftest.er1 >conftest.err
23081  rm -f conftest.er1
23082  cat conftest.err >&5
23083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084  (exit $ac_status); } &&
23085	 { ac_try='test -z "$ac_c_werror_flag"
23086			 || test ! -s conftest.err'
23087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088  (eval $ac_try) 2>&5
23089  ac_status=$?
23090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091  (exit $ac_status); }; } &&
23092	 { ac_try='test -s conftest.$ac_objext'
23093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094  (eval $ac_try) 2>&5
23095  ac_status=$?
23096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097  (exit $ac_status); }; }; then
23098  ac_cv_type_mode_t=yes
23099else
23100  echo "$as_me: failed program was:" >&5
23101sed 's/^/| /' conftest.$ac_ext >&5
23102
23103ac_cv_type_mode_t=no
23104fi
23105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23106fi
23107echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23108echo "${ECHO_T}$ac_cv_type_mode_t" >&6
23109if test $ac_cv_type_mode_t = yes; then
23110  :
23111else
23112
23113cat >>confdefs.h <<_ACEOF
23114#define mode_t int
23115_ACEOF
23116
23117fi
23118
23119echo "$as_me:$LINENO: checking for pid_t" >&5
23120echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23121if test "${ac_cv_type_pid_t+set}" = set; then
23122  echo $ECHO_N "(cached) $ECHO_C" >&6
23123else
23124  cat >conftest.$ac_ext <<_ACEOF
23125/* confdefs.h.  */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h.  */
23130$ac_includes_default
23131int
23132main ()
23133{
23134if ((pid_t *) 0)
23135  return 0;
23136if (sizeof (pid_t))
23137  return 0;
23138  ;
23139  return 0;
23140}
23141_ACEOF
23142rm -f conftest.$ac_objext
23143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23144  (eval $ac_compile) 2>conftest.er1
23145  ac_status=$?
23146  grep -v '^ *+' conftest.er1 >conftest.err
23147  rm -f conftest.er1
23148  cat conftest.err >&5
23149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150  (exit $ac_status); } &&
23151	 { ac_try='test -z "$ac_c_werror_flag"
23152			 || test ! -s conftest.err'
23153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154  (eval $ac_try) 2>&5
23155  ac_status=$?
23156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157  (exit $ac_status); }; } &&
23158	 { ac_try='test -s conftest.$ac_objext'
23159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160  (eval $ac_try) 2>&5
23161  ac_status=$?
23162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163  (exit $ac_status); }; }; then
23164  ac_cv_type_pid_t=yes
23165else
23166  echo "$as_me: failed program was:" >&5
23167sed 's/^/| /' conftest.$ac_ext >&5
23168
23169ac_cv_type_pid_t=no
23170fi
23171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23172fi
23173echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23174echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23175if test $ac_cv_type_pid_t = yes; then
23176  :
23177else
23178
23179cat >>confdefs.h <<_ACEOF
23180#define pid_t int
23181_ACEOF
23182
23183fi
23184
23185echo "$as_me:$LINENO: checking for size_t" >&5
23186echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23187if test "${ac_cv_type_size_t+set}" = set; then
23188  echo $ECHO_N "(cached) $ECHO_C" >&6
23189else
23190  cat >conftest.$ac_ext <<_ACEOF
23191/* confdefs.h.  */
23192_ACEOF
23193cat confdefs.h >>conftest.$ac_ext
23194cat >>conftest.$ac_ext <<_ACEOF
23195/* end confdefs.h.  */
23196$ac_includes_default
23197int
23198main ()
23199{
23200if ((size_t *) 0)
23201  return 0;
23202if (sizeof (size_t))
23203  return 0;
23204  ;
23205  return 0;
23206}
23207_ACEOF
23208rm -f conftest.$ac_objext
23209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23210  (eval $ac_compile) 2>conftest.er1
23211  ac_status=$?
23212  grep -v '^ *+' conftest.er1 >conftest.err
23213  rm -f conftest.er1
23214  cat conftest.err >&5
23215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216  (exit $ac_status); } &&
23217	 { ac_try='test -z "$ac_c_werror_flag"
23218			 || test ! -s conftest.err'
23219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220  (eval $ac_try) 2>&5
23221  ac_status=$?
23222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223  (exit $ac_status); }; } &&
23224	 { ac_try='test -s conftest.$ac_objext'
23225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226  (eval $ac_try) 2>&5
23227  ac_status=$?
23228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229  (exit $ac_status); }; }; then
23230  ac_cv_type_size_t=yes
23231else
23232  echo "$as_me: failed program was:" >&5
23233sed 's/^/| /' conftest.$ac_ext >&5
23234
23235ac_cv_type_size_t=no
23236fi
23237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23238fi
23239echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23240echo "${ECHO_T}$ac_cv_type_size_t" >&6
23241if test $ac_cv_type_size_t = yes; then
23242  :
23243else
23244
23245cat >>confdefs.h <<_ACEOF
23246#define size_t unsigned
23247_ACEOF
23248
23249fi
23250
23251echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23252echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
23253if test "${ac_cv_header_time+set}" = set; then
23254  echo $ECHO_N "(cached) $ECHO_C" >&6
23255else
23256  cat >conftest.$ac_ext <<_ACEOF
23257/* confdefs.h.  */
23258_ACEOF
23259cat confdefs.h >>conftest.$ac_ext
23260cat >>conftest.$ac_ext <<_ACEOF
23261/* end confdefs.h.  */
23262#include <sys/types.h>
23263#include <sys/time.h>
23264#include <time.h>
23265
23266int
23267main ()
23268{
23269if ((struct tm *) 0)
23270return 0;
23271  ;
23272  return 0;
23273}
23274_ACEOF
23275rm -f conftest.$ac_objext
23276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23277  (eval $ac_compile) 2>conftest.er1
23278  ac_status=$?
23279  grep -v '^ *+' conftest.er1 >conftest.err
23280  rm -f conftest.er1
23281  cat conftest.err >&5
23282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283  (exit $ac_status); } &&
23284	 { ac_try='test -z "$ac_c_werror_flag"
23285			 || test ! -s conftest.err'
23286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287  (eval $ac_try) 2>&5
23288  ac_status=$?
23289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290  (exit $ac_status); }; } &&
23291	 { ac_try='test -s conftest.$ac_objext'
23292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293  (eval $ac_try) 2>&5
23294  ac_status=$?
23295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296  (exit $ac_status); }; }; then
23297  ac_cv_header_time=yes
23298else
23299  echo "$as_me: failed program was:" >&5
23300sed 's/^/| /' conftest.$ac_ext >&5
23301
23302ac_cv_header_time=no
23303fi
23304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23305fi
23306echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23307echo "${ECHO_T}$ac_cv_header_time" >&6
23308if test $ac_cv_header_time = yes; then
23309
23310cat >>confdefs.h <<\_ACEOF
23311#define TIME_WITH_SYS_TIME 1
23312_ACEOF
23313
23314fi
23315
23316echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23317echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23318if test "${ac_cv_struct_tm+set}" = set; then
23319  echo $ECHO_N "(cached) $ECHO_C" >&6
23320else
23321  cat >conftest.$ac_ext <<_ACEOF
23322/* confdefs.h.  */
23323_ACEOF
23324cat confdefs.h >>conftest.$ac_ext
23325cat >>conftest.$ac_ext <<_ACEOF
23326/* end confdefs.h.  */
23327#include <sys/types.h>
23328#include <time.h>
23329
23330int
23331main ()
23332{
23333struct tm *tp; tp->tm_sec;
23334  ;
23335  return 0;
23336}
23337_ACEOF
23338rm -f conftest.$ac_objext
23339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23340  (eval $ac_compile) 2>conftest.er1
23341  ac_status=$?
23342  grep -v '^ *+' conftest.er1 >conftest.err
23343  rm -f conftest.er1
23344  cat conftest.err >&5
23345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346  (exit $ac_status); } &&
23347	 { ac_try='test -z "$ac_c_werror_flag"
23348			 || test ! -s conftest.err'
23349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350  (eval $ac_try) 2>&5
23351  ac_status=$?
23352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353  (exit $ac_status); }; } &&
23354	 { ac_try='test -s conftest.$ac_objext'
23355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356  (eval $ac_try) 2>&5
23357  ac_status=$?
23358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359  (exit $ac_status); }; }; then
23360  ac_cv_struct_tm=time.h
23361else
23362  echo "$as_me: failed program was:" >&5
23363sed 's/^/| /' conftest.$ac_ext >&5
23364
23365ac_cv_struct_tm=sys/time.h
23366fi
23367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23368fi
23369echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23370echo "${ECHO_T}$ac_cv_struct_tm" >&6
23371if test $ac_cv_struct_tm = sys/time.h; then
23372
23373cat >>confdefs.h <<\_ACEOF
23374#define TM_IN_SYS_TIME 1
23375_ACEOF
23376
23377fi
23378
23379
23380if test "$ARCH" = "intelnt" -o "$ARCH" = "cygwin" ; then
23381    ANYDX=AnyDX.dll
23382elif test "$ARCH" = "macos" ; then
23383    ANYDX=libAnyDX.jnilib
23384else
23385    ANYDX=libAnyDX.so
23386fi
23387
23388
23389
23390
23391	ccld_defaulted=0
23392	if test "$SHARED_LINK" = "" ; then
23393		SHARED_LINK="$""(CC)"
23394		ccld_defaulted=1
23395	fi
23396	DX_RTL_SYSLIBS=""
23397        if test $ac_cv_c_compiler_gnu = "yes" ; then
23398                MDXLDFLAG="-Wl,"
23399        else
23400                MDXLDFLAG=""
23401        fi
23402        if test $ARCH = "intelnt" ; then
23403                DX_RTL_IMPORTS=
23404                DX_RTL_CFLAGS="-shared -e DXEntry"
23405        fi
23406        if test $ARCH = "cygwin" ; then
23407                DX_RTL_CFLAGS="-shared "
23408		DX_RTL_DXENTRY="${MDXLDFLAG}-e,DXEntry"
23409		DX_RTL_IMPORTS="\$(BASE)/lib_$ARCH/dxexec.a"
23410                DX_RTL_SYSLIBS="$SYSLIBS kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib wsock32.lib"
23411                DX_OUTBOARD_LIBS="$OLIBS \$(BASE)/lib/DXExport.lib"
23412        fi
23413        if test $ARCH = "hp700" ; then
23414                DX_RTL_CFLAGS="-Dhp700 -Aa +z"
23415                DX_RTL_ALDFLAGS="${MDXLDFLAG}-q ${MDXLDFLAG}-b ${MDXLDFLAG}-E "
23416		DX_RTL_DXENTRY="${MDXLDFLAG}-eDXEntry"
23417                DX_RTL_SYSLIBS="$SYSLIBS -ldld"
23418        fi
23419        if test $ARCH = "ibm6000" ; then
23420                DX_RTL_CFLAGS="-Dibm6000"
23421                DX_RTL_DXENTRY="${MDXLDFLAG}-eDXEntry "
23422		DX_RTL_ALDFLAGS=
23423		DX_RTL_IMPORT="${MDXLDFLAG}-bI:\$(BASE)/lib/dxexec.exp"
23424        fi
23425        if test $ARCH = "sgi" ; then
23426                DX_RTL_CFLAGS=" -Dsgi"
23427        	if test $ac_cv_c_compiler_gnu = "yes" ; then
23428			DX_RTL_CFLAGS=" -Dsgi -D_GNU_SOURCE"
23429                	DX_RTL_ALDFLAGS=" -shared"
23430			DX_RTL_DXENTRY=" -e DXEntry -exported_symbol DXEntry"
23431			if test $ccld_defaulted != 0 ; then
23432				SHARED_LINK="ld"
23433			fi
23434        	else
23435                	DX_RTL_ALDFLAGS=" -shared -ignore_unresolved "
23436			if test $ccld_defaulted != 0 ; then
23437				SHARED_LINK=$CC
23438			fi
23439        	fi
23440
23441        fi
23442        if test $ARCH = "solaris" ; then
23443                DX_RTL_CFLAGS=" -Dsolaris"
23444                # DX_RTL_ALDFLAGS=" ${MDXLDFLAG}-G ${MDXLDFLAG}-eDXEntry"
23445                DX_RTL_ALDFLAGS=" -G "
23446		SHARED_LINK="cc"
23447        fi
23448        if test $ARCH = "alphax" ; then
23449                DX_RTL_CFLAGS=" -Dalphax"
23450                DX_RTL_ALDFLAGS=" -shared -all -expect_unresolved main "
23451                DX_RTL_DXENTRY=" -e DXEntry"
23452                DX_RTL_IMPORTS=" -expect_unresolved DX\*"
23453        fi
23454        if test $ARCH = "linux" ; then
23455                DX_RTL_CFLAGS=" -D_GNU_SOURCE -Dlinux"
23456                DX_RTL_ALDFLAGS="-fPIC -shared"
23457		DX_RTL_DXENTRY=" -eDXEntry"
23458        fi
23459        if test $ARCH = "freebsd" ; then
23460                DX_RTL_CFLAGS="-D_GNU_SOURCE -Dfreebsd"
23461                DX_RTL_ALDFLAGS="--shared "
23462		DX_RTL_DXENTRY="-eDXEntry"
23463        fi
23464
23465
23466echo "$as_me:$LINENO: checking for pthread_getspecific in -lpthread" >&5
23467echo $ECHO_N "checking for pthread_getspecific in -lpthread... $ECHO_C" >&6
23468if test "${ac_cv_lib_pthread_pthread_getspecific+set}" = set; then
23469  echo $ECHO_N "(cached) $ECHO_C" >&6
23470else
23471  ac_check_lib_save_LIBS=$LIBS
23472LIBS="-lpthread  $LIBS"
23473cat >conftest.$ac_ext <<_ACEOF
23474/* confdefs.h.  */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h.  */
23479
23480/* Override any gcc2 internal prototype to avoid an error.  */
23481#ifdef __cplusplus
23482extern "C"
23483#endif
23484/* We use char because int might match the return type of a gcc2
23485   builtin and then its argument prototype would still apply.  */
23486char pthread_getspecific ();
23487int
23488main ()
23489{
23490pthread_getspecific ();
23491  ;
23492  return 0;
23493}
23494_ACEOF
23495rm -f conftest.$ac_objext conftest$ac_exeext
23496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23497  (eval $ac_link) 2>conftest.er1
23498  ac_status=$?
23499  grep -v '^ *+' conftest.er1 >conftest.err
23500  rm -f conftest.er1
23501  cat conftest.err >&5
23502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503  (exit $ac_status); } &&
23504	 { ac_try='test -z "$ac_c_werror_flag"
23505			 || test ! -s conftest.err'
23506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507  (eval $ac_try) 2>&5
23508  ac_status=$?
23509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510  (exit $ac_status); }; } &&
23511	 { ac_try='test -s conftest$ac_exeext'
23512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513  (eval $ac_try) 2>&5
23514  ac_status=$?
23515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516  (exit $ac_status); }; }; then
23517  ac_cv_lib_pthread_pthread_getspecific=yes
23518else
23519  echo "$as_me: failed program was:" >&5
23520sed 's/^/| /' conftest.$ac_ext >&5
23521
23522ac_cv_lib_pthread_pthread_getspecific=no
23523fi
23524rm -f conftest.err conftest.$ac_objext \
23525      conftest$ac_exeext conftest.$ac_ext
23526LIBS=$ac_check_lib_save_LIBS
23527fi
23528echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_getspecific" >&5
23529echo "${ECHO_T}$ac_cv_lib_pthread_pthread_getspecific" >&6
23530if test $ac_cv_lib_pthread_pthread_getspecific = yes; then
23531  cat >>confdefs.h <<_ACEOF
23532#define HAVE_LIBPTHREAD 1
23533_ACEOF
23534
23535  LIBS="-lpthread $LIBS"
23536
23537fi
23538
23539
23540
23541echo "$as_me:$LINENO: checking for X" >&5
23542echo $ECHO_N "checking for X... $ECHO_C" >&6
23543
23544
23545# Check whether --with-x or --without-x was given.
23546if test "${with_x+set}" = set; then
23547  withval="$with_x"
23548
23549fi;
23550# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23551if test "x$with_x" = xno; then
23552  # The user explicitly disabled X.
23553  have_x=disabled
23554else
23555  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23556    # Both variables are already set.
23557    have_x=yes
23558  else
23559    if test "${ac_cv_have_x+set}" = set; then
23560  echo $ECHO_N "(cached) $ECHO_C" >&6
23561else
23562  # One or both of the vars are not set, and there is no cached value.
23563ac_x_includes=no ac_x_libraries=no
23564rm -fr conftest.dir
23565if mkdir conftest.dir; then
23566  cd conftest.dir
23567  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23568  cat >Imakefile <<'_ACEOF'
23569acfindx:
23570	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23571_ACEOF
23572  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23573    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23574    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23575    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23576    for ac_extension in a so sl; do
23577      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23578	 test -f $ac_im_libdir/libX11.$ac_extension; then
23579	ac_im_usrlibdir=$ac_im_libdir; break
23580      fi
23581    done
23582    # Screen out bogus values from the imake configuration.  They are
23583    # bogus both because they are the default anyway, and because
23584    # using them would break gcc on systems where it needs fixed includes.
23585    case $ac_im_incroot in
23586	/usr/include) ;;
23587	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23588    esac
23589    case $ac_im_usrlibdir in
23590	/usr/lib | /lib) ;;
23591	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23592    esac
23593  fi
23594  cd ..
23595  rm -fr conftest.dir
23596fi
23597
23598# Standard set of common directories for X headers.
23599# Check X11 before X11Rn because it is often a symlink to the current release.
23600ac_x_header_dirs='
23601/usr/X11/include
23602/usr/local/include
23603/usr/X11R5/include
23604/usr/X11R4/include
23605
23606/usr/include/X11
23607/usr/include/X11R6
23608/usr/include/X11R5
23609/usr/include/X11R4
23610
23611/usr/local/X11/include
23612/usr/local/X11R6/include
23613/usr/local/X11R5/include
23614/usr/local/X11R4/include
23615
23616/usr/local/include/X11
23617/usr/local/include/X11R6
23618/usr/local/include/X11R5
23619/usr/local/include/X11R4
23620
23621/usr/X386/include
23622/usr/x386/include
23623/usr/XFree86/include/X11
23624
23625/usr/include
23626/usr/local/include
23627/usr/unsupported/include
23628/usr/athena/include
23629/usr/local/x11r5/include
23630/usr/lpp/Xamples/include
23631
23632/usr/openwin/include
23633/usr/openwin/share/include'
23634
23635if test "$ac_x_includes" = no; then
23636  # Guess where to find include files, by looking for Intrinsic.h.
23637  # First, try using that file with no special directory specified.
23638  cat >conftest.$ac_ext <<_ACEOF
23639/* confdefs.h.  */
23640_ACEOF
23641cat confdefs.h >>conftest.$ac_ext
23642cat >>conftest.$ac_ext <<_ACEOF
23643/* end confdefs.h.  */
23644#include <X11/Intrinsic.h>
23645_ACEOF
23646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23647  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23648  ac_status=$?
23649  grep -v '^ *+' conftest.er1 >conftest.err
23650  rm -f conftest.er1
23651  cat conftest.err >&5
23652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653  (exit $ac_status); } >/dev/null; then
23654  if test -s conftest.err; then
23655    ac_cpp_err=$ac_c_preproc_warn_flag
23656    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23657  else
23658    ac_cpp_err=
23659  fi
23660else
23661  ac_cpp_err=yes
23662fi
23663if test -z "$ac_cpp_err"; then
23664  # We can compile using X headers with no special include directory.
23665ac_x_includes=
23666else
23667  echo "$as_me: failed program was:" >&5
23668sed 's/^/| /' conftest.$ac_ext >&5
23669
23670  for ac_dir in $ac_x_header_dirs; do
23671  if test -r "$ac_dir/X11/Intrinsic.h"; then
23672    ac_x_includes=$ac_dir
23673    break
23674  fi
23675done
23676fi
23677rm -f conftest.err conftest.$ac_ext
23678fi # $ac_x_includes = no
23679
23680if test "$ac_x_libraries" = no; then
23681  # Check for the libraries.
23682  # See if we find them without any special options.
23683  # Don't add to $LIBS permanently.
23684  ac_save_LIBS=$LIBS
23685  LIBS="-lXt $LIBS"
23686  cat >conftest.$ac_ext <<_ACEOF
23687/* confdefs.h.  */
23688_ACEOF
23689cat confdefs.h >>conftest.$ac_ext
23690cat >>conftest.$ac_ext <<_ACEOF
23691/* end confdefs.h.  */
23692#include <X11/Intrinsic.h>
23693int
23694main ()
23695{
23696XtMalloc (0)
23697  ;
23698  return 0;
23699}
23700_ACEOF
23701rm -f conftest.$ac_objext conftest$ac_exeext
23702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23703  (eval $ac_link) 2>conftest.er1
23704  ac_status=$?
23705  grep -v '^ *+' conftest.er1 >conftest.err
23706  rm -f conftest.er1
23707  cat conftest.err >&5
23708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709  (exit $ac_status); } &&
23710	 { ac_try='test -z "$ac_c_werror_flag"
23711			 || test ! -s conftest.err'
23712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713  (eval $ac_try) 2>&5
23714  ac_status=$?
23715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716  (exit $ac_status); }; } &&
23717	 { ac_try='test -s conftest$ac_exeext'
23718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719  (eval $ac_try) 2>&5
23720  ac_status=$?
23721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722  (exit $ac_status); }; }; then
23723  LIBS=$ac_save_LIBS
23724# We can link X programs with no special library path.
23725ac_x_libraries=
23726else
23727  echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730LIBS=$ac_save_LIBS
23731for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23732do
23733  # Don't even attempt the hair of trying to link an X program!
23734  for ac_extension in a so sl; do
23735    if test -r $ac_dir/libXt.$ac_extension; then
23736      ac_x_libraries=$ac_dir
23737      break 2
23738    fi
23739  done
23740done
23741fi
23742rm -f conftest.err conftest.$ac_objext \
23743      conftest$ac_exeext conftest.$ac_ext
23744fi # $ac_x_libraries = no
23745
23746if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23747  # Didn't find X anywhere.  Cache the known absence of X.
23748  ac_cv_have_x="have_x=no"
23749else
23750  # Record where we found X for the cache.
23751  ac_cv_have_x="have_x=yes \
23752		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23753fi
23754fi
23755
23756  fi
23757  eval "$ac_cv_have_x"
23758fi # $with_x != no
23759
23760if test "$have_x" != yes; then
23761  echo "$as_me:$LINENO: result: $have_x" >&5
23762echo "${ECHO_T}$have_x" >&6
23763  no_x=yes
23764else
23765  # If each of the values was on the command line, it overrides each guess.
23766  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23767  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23768  # Update the cache value to reflect the command line values.
23769  ac_cv_have_x="have_x=yes \
23770		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23771  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23772echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23773fi
23774
23775if test "$x_includes" != "" ; then
23776    CFLAGS="$CFLAGS -I$x_includes"
23777    CXXFLAGS="$CXXFLAGS -I$x_includes"
23778    CPPFLAGS="$CPPFLAGS -I$x_includes"
23779fi
23780if test "$x_libraries" != "" ; then
23781    LIBS="-L$x_libraries $LIBS"
23782fi
23783
23784
23785echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23786echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23787if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23788  echo $ECHO_N "(cached) $ECHO_C" >&6
23789else
23790  ac_check_lib_save_LIBS=$LIBS
23791LIBS="-lICE  $LIBS"
23792cat >conftest.$ac_ext <<_ACEOF
23793/* confdefs.h.  */
23794_ACEOF
23795cat confdefs.h >>conftest.$ac_ext
23796cat >>conftest.$ac_ext <<_ACEOF
23797/* end confdefs.h.  */
23798
23799/* Override any gcc2 internal prototype to avoid an error.  */
23800#ifdef __cplusplus
23801extern "C"
23802#endif
23803/* We use char because int might match the return type of a gcc2
23804   builtin and then its argument prototype would still apply.  */
23805char IceConnectionNumber ();
23806int
23807main ()
23808{
23809IceConnectionNumber ();
23810  ;
23811  return 0;
23812}
23813_ACEOF
23814rm -f conftest.$ac_objext conftest$ac_exeext
23815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23816  (eval $ac_link) 2>conftest.er1
23817  ac_status=$?
23818  grep -v '^ *+' conftest.er1 >conftest.err
23819  rm -f conftest.er1
23820  cat conftest.err >&5
23821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822  (exit $ac_status); } &&
23823	 { ac_try='test -z "$ac_c_werror_flag"
23824			 || test ! -s conftest.err'
23825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826  (eval $ac_try) 2>&5
23827  ac_status=$?
23828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829  (exit $ac_status); }; } &&
23830	 { ac_try='test -s conftest$ac_exeext'
23831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832  (eval $ac_try) 2>&5
23833  ac_status=$?
23834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835  (exit $ac_status); }; }; then
23836  ac_cv_lib_ICE_IceConnectionNumber=yes
23837else
23838  echo "$as_me: failed program was:" >&5
23839sed 's/^/| /' conftest.$ac_ext >&5
23840
23841ac_cv_lib_ICE_IceConnectionNumber=no
23842fi
23843rm -f conftest.err conftest.$ac_objext \
23844      conftest$ac_exeext conftest.$ac_ext
23845LIBS=$ac_check_lib_save_LIBS
23846fi
23847echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23848echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23849if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23850  cat >>confdefs.h <<_ACEOF
23851#define HAVE_LIBICE 1
23852_ACEOF
23853
23854  LIBS="-lICE $LIBS"
23855
23856fi
23857
23858
23859echo "$as_me:$LINENO: checking for SmcSetProperties in -lSM" >&5
23860echo $ECHO_N "checking for SmcSetProperties in -lSM... $ECHO_C" >&6
23861if test "${ac_cv_lib_SM_SmcSetProperties+set}" = set; then
23862  echo $ECHO_N "(cached) $ECHO_C" >&6
23863else
23864  ac_check_lib_save_LIBS=$LIBS
23865LIBS="-lSM  $LIBS"
23866cat >conftest.$ac_ext <<_ACEOF
23867/* confdefs.h.  */
23868_ACEOF
23869cat confdefs.h >>conftest.$ac_ext
23870cat >>conftest.$ac_ext <<_ACEOF
23871/* end confdefs.h.  */
23872
23873/* Override any gcc2 internal prototype to avoid an error.  */
23874#ifdef __cplusplus
23875extern "C"
23876#endif
23877/* We use char because int might match the return type of a gcc2
23878   builtin and then its argument prototype would still apply.  */
23879char SmcSetProperties ();
23880int
23881main ()
23882{
23883SmcSetProperties ();
23884  ;
23885  return 0;
23886}
23887_ACEOF
23888rm -f conftest.$ac_objext conftest$ac_exeext
23889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23890  (eval $ac_link) 2>conftest.er1
23891  ac_status=$?
23892  grep -v '^ *+' conftest.er1 >conftest.err
23893  rm -f conftest.er1
23894  cat conftest.err >&5
23895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896  (exit $ac_status); } &&
23897	 { ac_try='test -z "$ac_c_werror_flag"
23898			 || test ! -s conftest.err'
23899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900  (eval $ac_try) 2>&5
23901  ac_status=$?
23902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903  (exit $ac_status); }; } &&
23904	 { ac_try='test -s conftest$ac_exeext'
23905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906  (eval $ac_try) 2>&5
23907  ac_status=$?
23908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909  (exit $ac_status); }; }; then
23910  ac_cv_lib_SM_SmcSetProperties=yes
23911else
23912  echo "$as_me: failed program was:" >&5
23913sed 's/^/| /' conftest.$ac_ext >&5
23914
23915ac_cv_lib_SM_SmcSetProperties=no
23916fi
23917rm -f conftest.err conftest.$ac_objext \
23918      conftest$ac_exeext conftest.$ac_ext
23919LIBS=$ac_check_lib_save_LIBS
23920fi
23921echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcSetProperties" >&5
23922echo "${ECHO_T}$ac_cv_lib_SM_SmcSetProperties" >&6
23923if test $ac_cv_lib_SM_SmcSetProperties = yes; then
23924  cat >>confdefs.h <<_ACEOF
23925#define HAVE_LIBSM 1
23926_ACEOF
23927
23928  LIBS="-lSM $LIBS"
23929
23930fi
23931
23932
23933echo "$as_me:$LINENO: checking for printf in -lxlibcon" >&5
23934echo $ECHO_N "checking for printf in -lxlibcon... $ECHO_C" >&6
23935if test "${ac_cv_lib_xlibcon_printf+set}" = set; then
23936  echo $ECHO_N "(cached) $ECHO_C" >&6
23937else
23938  ac_check_lib_save_LIBS=$LIBS
23939LIBS="-lxlibcon  $LIBS"
23940cat >conftest.$ac_ext <<_ACEOF
23941/* confdefs.h.  */
23942_ACEOF
23943cat confdefs.h >>conftest.$ac_ext
23944cat >>conftest.$ac_ext <<_ACEOF
23945/* end confdefs.h.  */
23946
23947/* Override any gcc2 internal prototype to avoid an error.  */
23948#ifdef __cplusplus
23949extern "C"
23950#endif
23951/* We use char because int might match the return type of a gcc2
23952   builtin and then its argument prototype would still apply.  */
23953char printf ();
23954int
23955main ()
23956{
23957printf ();
23958  ;
23959  return 0;
23960}
23961_ACEOF
23962rm -f conftest.$ac_objext conftest$ac_exeext
23963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23964  (eval $ac_link) 2>conftest.er1
23965  ac_status=$?
23966  grep -v '^ *+' conftest.er1 >conftest.err
23967  rm -f conftest.er1
23968  cat conftest.err >&5
23969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970  (exit $ac_status); } &&
23971	 { ac_try='test -z "$ac_c_werror_flag"
23972			 || test ! -s conftest.err'
23973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974  (eval $ac_try) 2>&5
23975  ac_status=$?
23976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977  (exit $ac_status); }; } &&
23978	 { ac_try='test -s conftest$ac_exeext'
23979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980  (eval $ac_try) 2>&5
23981  ac_status=$?
23982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983  (exit $ac_status); }; }; then
23984  ac_cv_lib_xlibcon_printf=yes
23985else
23986  echo "$as_me: failed program was:" >&5
23987sed 's/^/| /' conftest.$ac_ext >&5
23988
23989ac_cv_lib_xlibcon_printf=no
23990fi
23991rm -f conftest.err conftest.$ac_objext \
23992      conftest$ac_exeext conftest.$ac_ext
23993LIBS=$ac_check_lib_save_LIBS
23994fi
23995echo "$as_me:$LINENO: result: $ac_cv_lib_xlibcon_printf" >&5
23996echo "${ECHO_T}$ac_cv_lib_xlibcon_printf" >&6
23997if test $ac_cv_lib_xlibcon_printf = yes; then
23998  cat >>confdefs.h <<_ACEOF
23999#define HAVE_LIBXLIBCON 1
24000_ACEOF
24001
24002  LIBS="-lxlibcon $LIBS"
24003
24004fi
24005
24006
24007echo "$as_me:$LINENO: checking for XCreateWindow in -lxlib" >&5
24008echo $ECHO_N "checking for XCreateWindow in -lxlib... $ECHO_C" >&6
24009if test "${ac_cv_lib_xlib_XCreateWindow+set}" = set; then
24010  echo $ECHO_N "(cached) $ECHO_C" >&6
24011else
24012  ac_check_lib_save_LIBS=$LIBS
24013LIBS="-lxlib  $LIBS"
24014cat >conftest.$ac_ext <<_ACEOF
24015/* confdefs.h.  */
24016_ACEOF
24017cat confdefs.h >>conftest.$ac_ext
24018cat >>conftest.$ac_ext <<_ACEOF
24019/* end confdefs.h.  */
24020
24021/* Override any gcc2 internal prototype to avoid an error.  */
24022#ifdef __cplusplus
24023extern "C"
24024#endif
24025/* We use char because int might match the return type of a gcc2
24026   builtin and then its argument prototype would still apply.  */
24027char XCreateWindow ();
24028int
24029main ()
24030{
24031XCreateWindow ();
24032  ;
24033  return 0;
24034}
24035_ACEOF
24036rm -f conftest.$ac_objext conftest$ac_exeext
24037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24038  (eval $ac_link) 2>conftest.er1
24039  ac_status=$?
24040  grep -v '^ *+' conftest.er1 >conftest.err
24041  rm -f conftest.er1
24042  cat conftest.err >&5
24043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044  (exit $ac_status); } &&
24045	 { ac_try='test -z "$ac_c_werror_flag"
24046			 || test ! -s conftest.err'
24047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24048  (eval $ac_try) 2>&5
24049  ac_status=$?
24050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051  (exit $ac_status); }; } &&
24052	 { ac_try='test -s conftest$ac_exeext'
24053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054  (eval $ac_try) 2>&5
24055  ac_status=$?
24056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057  (exit $ac_status); }; }; then
24058  ac_cv_lib_xlib_XCreateWindow=yes
24059else
24060  echo "$as_me: failed program was:" >&5
24061sed 's/^/| /' conftest.$ac_ext >&5
24062
24063ac_cv_lib_xlib_XCreateWindow=no
24064fi
24065rm -f conftest.err conftest.$ac_objext \
24066      conftest$ac_exeext conftest.$ac_ext
24067LIBS=$ac_check_lib_save_LIBS
24068fi
24069echo "$as_me:$LINENO: result: $ac_cv_lib_xlib_XCreateWindow" >&5
24070echo "${ECHO_T}$ac_cv_lib_xlib_XCreateWindow" >&6
24071if test $ac_cv_lib_xlib_XCreateWindow = yes; then
24072  cat >>confdefs.h <<_ACEOF
24073#define HAVE_LIBXLIB 1
24074_ACEOF
24075
24076  LIBS="-lxlib $LIBS"
24077
24078fi
24079
24080
24081echo "$as_me:$LINENO: checking for XtVaGetValues in -lxt" >&5
24082echo $ECHO_N "checking for XtVaGetValues in -lxt... $ECHO_C" >&6
24083if test "${ac_cv_lib_xt_XtVaGetValues+set}" = set; then
24084  echo $ECHO_N "(cached) $ECHO_C" >&6
24085else
24086  ac_check_lib_save_LIBS=$LIBS
24087LIBS="-lxt  $LIBS"
24088cat >conftest.$ac_ext <<_ACEOF
24089/* confdefs.h.  */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h.  */
24094
24095/* Override any gcc2 internal prototype to avoid an error.  */
24096#ifdef __cplusplus
24097extern "C"
24098#endif
24099/* We use char because int might match the return type of a gcc2
24100   builtin and then its argument prototype would still apply.  */
24101char XtVaGetValues ();
24102int
24103main ()
24104{
24105XtVaGetValues ();
24106  ;
24107  return 0;
24108}
24109_ACEOF
24110rm -f conftest.$ac_objext conftest$ac_exeext
24111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24112  (eval $ac_link) 2>conftest.er1
24113  ac_status=$?
24114  grep -v '^ *+' conftest.er1 >conftest.err
24115  rm -f conftest.er1
24116  cat conftest.err >&5
24117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118  (exit $ac_status); } &&
24119	 { ac_try='test -z "$ac_c_werror_flag"
24120			 || test ! -s conftest.err'
24121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24122  (eval $ac_try) 2>&5
24123  ac_status=$?
24124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125  (exit $ac_status); }; } &&
24126	 { ac_try='test -s conftest$ac_exeext'
24127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24128  (eval $ac_try) 2>&5
24129  ac_status=$?
24130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131  (exit $ac_status); }; }; then
24132  ac_cv_lib_xt_XtVaGetValues=yes
24133else
24134  echo "$as_me: failed program was:" >&5
24135sed 's/^/| /' conftest.$ac_ext >&5
24136
24137ac_cv_lib_xt_XtVaGetValues=no
24138fi
24139rm -f conftest.err conftest.$ac_objext \
24140      conftest$ac_exeext conftest.$ac_ext
24141LIBS=$ac_check_lib_save_LIBS
24142fi
24143echo "$as_me:$LINENO: result: $ac_cv_lib_xt_XtVaGetValues" >&5
24144echo "${ECHO_T}$ac_cv_lib_xt_XtVaGetValues" >&6
24145if test $ac_cv_lib_xt_XtVaGetValues = yes; then
24146  cat >>confdefs.h <<_ACEOF
24147#define HAVE_LIBXT 1
24148_ACEOF
24149
24150  LIBS="-lxt $LIBS"
24151
24152fi
24153
24154
24155echo "$as_me:$LINENO: checking for XtVaGetValues in -lxmstatxt" >&5
24156echo $ECHO_N "checking for XtVaGetValues in -lxmstatxt... $ECHO_C" >&6
24157if test "${ac_cv_lib_xmstatxt_XtVaGetValues+set}" = set; then
24158  echo $ECHO_N "(cached) $ECHO_C" >&6
24159else
24160  ac_check_lib_save_LIBS=$LIBS
24161LIBS="-lxmstatxt  $LIBS"
24162cat >conftest.$ac_ext <<_ACEOF
24163/* confdefs.h.  */
24164_ACEOF
24165cat confdefs.h >>conftest.$ac_ext
24166cat >>conftest.$ac_ext <<_ACEOF
24167/* end confdefs.h.  */
24168
24169/* Override any gcc2 internal prototype to avoid an error.  */
24170#ifdef __cplusplus
24171extern "C"
24172#endif
24173/* We use char because int might match the return type of a gcc2
24174   builtin and then its argument prototype would still apply.  */
24175char XtVaGetValues ();
24176int
24177main ()
24178{
24179XtVaGetValues ();
24180  ;
24181  return 0;
24182}
24183_ACEOF
24184rm -f conftest.$ac_objext conftest$ac_exeext
24185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24186  (eval $ac_link) 2>conftest.er1
24187  ac_status=$?
24188  grep -v '^ *+' conftest.er1 >conftest.err
24189  rm -f conftest.er1
24190  cat conftest.err >&5
24191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192  (exit $ac_status); } &&
24193	 { ac_try='test -z "$ac_c_werror_flag"
24194			 || test ! -s conftest.err'
24195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196  (eval $ac_try) 2>&5
24197  ac_status=$?
24198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199  (exit $ac_status); }; } &&
24200	 { ac_try='test -s conftest$ac_exeext'
24201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202  (eval $ac_try) 2>&5
24203  ac_status=$?
24204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205  (exit $ac_status); }; }; then
24206  ac_cv_lib_xmstatxt_XtVaGetValues=yes
24207else
24208  echo "$as_me: failed program was:" >&5
24209sed 's/^/| /' conftest.$ac_ext >&5
24210
24211ac_cv_lib_xmstatxt_XtVaGetValues=no
24212fi
24213rm -f conftest.err conftest.$ac_objext \
24214      conftest$ac_exeext conftest.$ac_ext
24215LIBS=$ac_check_lib_save_LIBS
24216fi
24217echo "$as_me:$LINENO: result: $ac_cv_lib_xmstatxt_XtVaGetValues" >&5
24218echo "${ECHO_T}$ac_cv_lib_xmstatxt_XtVaGetValues" >&6
24219if test $ac_cv_lib_xmstatxt_XtVaGetValues = yes; then
24220  cat >>confdefs.h <<_ACEOF
24221#define HAVE_LIBXMSTATXT 1
24222_ACEOF
24223
24224  LIBS="-lxmstatxt $LIBS"
24225
24226fi
24227
24228
24229echo "$as_me:$LINENO: checking for XmStringFree in -lxmstatic" >&5
24230echo $ECHO_N "checking for XmStringFree in -lxmstatic... $ECHO_C" >&6
24231if test "${ac_cv_lib_xmstatic_XmStringFree+set}" = set; then
24232  echo $ECHO_N "(cached) $ECHO_C" >&6
24233else
24234  ac_check_lib_save_LIBS=$LIBS
24235LIBS="-lxmstatic  $LIBS"
24236cat >conftest.$ac_ext <<_ACEOF
24237/* confdefs.h.  */
24238_ACEOF
24239cat confdefs.h >>conftest.$ac_ext
24240cat >>conftest.$ac_ext <<_ACEOF
24241/* end confdefs.h.  */
24242
24243/* Override any gcc2 internal prototype to avoid an error.  */
24244#ifdef __cplusplus
24245extern "C"
24246#endif
24247/* We use char because int might match the return type of a gcc2
24248   builtin and then its argument prototype would still apply.  */
24249char XmStringFree ();
24250int
24251main ()
24252{
24253XmStringFree ();
24254  ;
24255  return 0;
24256}
24257_ACEOF
24258rm -f conftest.$ac_objext conftest$ac_exeext
24259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260  (eval $ac_link) 2>conftest.er1
24261  ac_status=$?
24262  grep -v '^ *+' conftest.er1 >conftest.err
24263  rm -f conftest.er1
24264  cat conftest.err >&5
24265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266  (exit $ac_status); } &&
24267	 { ac_try='test -z "$ac_c_werror_flag"
24268			 || test ! -s conftest.err'
24269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270  (eval $ac_try) 2>&5
24271  ac_status=$?
24272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273  (exit $ac_status); }; } &&
24274	 { ac_try='test -s conftest$ac_exeext'
24275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276  (eval $ac_try) 2>&5
24277  ac_status=$?
24278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279  (exit $ac_status); }; }; then
24280  ac_cv_lib_xmstatic_XmStringFree=yes
24281else
24282  echo "$as_me: failed program was:" >&5
24283sed 's/^/| /' conftest.$ac_ext >&5
24284
24285ac_cv_lib_xmstatic_XmStringFree=no
24286fi
24287rm -f conftest.err conftest.$ac_objext \
24288      conftest$ac_exeext conftest.$ac_ext
24289LIBS=$ac_check_lib_save_LIBS
24290fi
24291echo "$as_me:$LINENO: result: $ac_cv_lib_xmstatic_XmStringFree" >&5
24292echo "${ECHO_T}$ac_cv_lib_xmstatic_XmStringFree" >&6
24293if test $ac_cv_lib_xmstatic_XmStringFree = yes; then
24294  cat >>confdefs.h <<_ACEOF
24295#define HAVE_LIBXMSTATIC 1
24296_ACEOF
24297
24298  LIBS="-lxmstatic $LIBS"
24299
24300fi
24301
24302
24303echo "$as_me:$LINENO: checking for XmStringFree in -lxm" >&5
24304echo $ECHO_N "checking for XmStringFree in -lxm... $ECHO_C" >&6
24305if test "${ac_cv_lib_xm_XmStringFree+set}" = set; then
24306  echo $ECHO_N "(cached) $ECHO_C" >&6
24307else
24308  ac_check_lib_save_LIBS=$LIBS
24309LIBS="-lxm  $LIBS"
24310cat >conftest.$ac_ext <<_ACEOF
24311/* confdefs.h.  */
24312_ACEOF
24313cat confdefs.h >>conftest.$ac_ext
24314cat >>conftest.$ac_ext <<_ACEOF
24315/* end confdefs.h.  */
24316
24317/* Override any gcc2 internal prototype to avoid an error.  */
24318#ifdef __cplusplus
24319extern "C"
24320#endif
24321/* We use char because int might match the return type of a gcc2
24322   builtin and then its argument prototype would still apply.  */
24323char XmStringFree ();
24324int
24325main ()
24326{
24327XmStringFree ();
24328  ;
24329  return 0;
24330}
24331_ACEOF
24332rm -f conftest.$ac_objext conftest$ac_exeext
24333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24334  (eval $ac_link) 2>conftest.er1
24335  ac_status=$?
24336  grep -v '^ *+' conftest.er1 >conftest.err
24337  rm -f conftest.er1
24338  cat conftest.err >&5
24339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340  (exit $ac_status); } &&
24341	 { ac_try='test -z "$ac_c_werror_flag"
24342			 || test ! -s conftest.err'
24343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344  (eval $ac_try) 2>&5
24345  ac_status=$?
24346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347  (exit $ac_status); }; } &&
24348	 { ac_try='test -s conftest$ac_exeext'
24349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350  (eval $ac_try) 2>&5
24351  ac_status=$?
24352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353  (exit $ac_status); }; }; then
24354  ac_cv_lib_xm_XmStringFree=yes
24355else
24356  echo "$as_me: failed program was:" >&5
24357sed 's/^/| /' conftest.$ac_ext >&5
24358
24359ac_cv_lib_xm_XmStringFree=no
24360fi
24361rm -f conftest.err conftest.$ac_objext \
24362      conftest$ac_exeext conftest.$ac_ext
24363LIBS=$ac_check_lib_save_LIBS
24364fi
24365echo "$as_me:$LINENO: result: $ac_cv_lib_xm_XmStringFree" >&5
24366echo "${ECHO_T}$ac_cv_lib_xm_XmStringFree" >&6
24367if test $ac_cv_lib_xm_XmStringFree = yes; then
24368  cat >>confdefs.h <<_ACEOF
24369#define HAVE_LIBXM 1
24370_ACEOF
24371
24372  LIBS="-lxm $LIBS"
24373
24374fi
24375
24376
24377echo "$as_me:$LINENO: checking for glXGetConfig in -lhclglx" >&5
24378echo $ECHO_N "checking for glXGetConfig in -lhclglx... $ECHO_C" >&6
24379if test "${ac_cv_lib_hclglx_glXGetConfig+set}" = set; then
24380  echo $ECHO_N "(cached) $ECHO_C" >&6
24381else
24382  ac_check_lib_save_LIBS=$LIBS
24383LIBS="-lhclglx  $LIBS"
24384cat >conftest.$ac_ext <<_ACEOF
24385/* confdefs.h.  */
24386_ACEOF
24387cat confdefs.h >>conftest.$ac_ext
24388cat >>conftest.$ac_ext <<_ACEOF
24389/* end confdefs.h.  */
24390
24391/* Override any gcc2 internal prototype to avoid an error.  */
24392#ifdef __cplusplus
24393extern "C"
24394#endif
24395/* We use char because int might match the return type of a gcc2
24396   builtin and then its argument prototype would still apply.  */
24397char glXGetConfig ();
24398int
24399main ()
24400{
24401glXGetConfig ();
24402  ;
24403  return 0;
24404}
24405_ACEOF
24406rm -f conftest.$ac_objext conftest$ac_exeext
24407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24408  (eval $ac_link) 2>conftest.er1
24409  ac_status=$?
24410  grep -v '^ *+' conftest.er1 >conftest.err
24411  rm -f conftest.er1
24412  cat conftest.err >&5
24413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414  (exit $ac_status); } &&
24415	 { ac_try='test -z "$ac_c_werror_flag"
24416			 || test ! -s conftest.err'
24417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418  (eval $ac_try) 2>&5
24419  ac_status=$?
24420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421  (exit $ac_status); }; } &&
24422	 { ac_try='test -s conftest$ac_exeext'
24423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424  (eval $ac_try) 2>&5
24425  ac_status=$?
24426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427  (exit $ac_status); }; }; then
24428  ac_cv_lib_hclglx_glXGetConfig=yes
24429else
24430  echo "$as_me: failed program was:" >&5
24431sed 's/^/| /' conftest.$ac_ext >&5
24432
24433ac_cv_lib_hclglx_glXGetConfig=no
24434fi
24435rm -f conftest.err conftest.$ac_objext \
24436      conftest$ac_exeext conftest.$ac_ext
24437LIBS=$ac_check_lib_save_LIBS
24438fi
24439echo "$as_me:$LINENO: result: $ac_cv_lib_hclglx_glXGetConfig" >&5
24440echo "${ECHO_T}$ac_cv_lib_hclglx_glXGetConfig" >&6
24441if test $ac_cv_lib_hclglx_glXGetConfig = yes; then
24442  cat >>confdefs.h <<_ACEOF
24443#define HAVE_LIBHCLGLX 1
24444_ACEOF
24445
24446  LIBS="-lhclglx $LIBS"
24447
24448fi
24449
24450
24451echo "$as_me:$LINENO: checking for gluBuild2DMipmaps in -lhclglu" >&5
24452echo $ECHO_N "checking for gluBuild2DMipmaps in -lhclglu... $ECHO_C" >&6
24453if test "${ac_cv_lib_hclglu_gluBuild2DMipmaps+set}" = set; then
24454  echo $ECHO_N "(cached) $ECHO_C" >&6
24455else
24456  ac_check_lib_save_LIBS=$LIBS
24457LIBS="-lhclglu  $LIBS"
24458cat >conftest.$ac_ext <<_ACEOF
24459/* confdefs.h.  */
24460_ACEOF
24461cat confdefs.h >>conftest.$ac_ext
24462cat >>conftest.$ac_ext <<_ACEOF
24463/* end confdefs.h.  */
24464
24465/* Override any gcc2 internal prototype to avoid an error.  */
24466#ifdef __cplusplus
24467extern "C"
24468#endif
24469/* We use char because int might match the return type of a gcc2
24470   builtin and then its argument prototype would still apply.  */
24471char gluBuild2DMipmaps ();
24472int
24473main ()
24474{
24475gluBuild2DMipmaps ();
24476  ;
24477  return 0;
24478}
24479_ACEOF
24480rm -f conftest.$ac_objext conftest$ac_exeext
24481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24482  (eval $ac_link) 2>conftest.er1
24483  ac_status=$?
24484  grep -v '^ *+' conftest.er1 >conftest.err
24485  rm -f conftest.er1
24486  cat conftest.err >&5
24487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488  (exit $ac_status); } &&
24489	 { ac_try='test -z "$ac_c_werror_flag"
24490			 || test ! -s conftest.err'
24491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492  (eval $ac_try) 2>&5
24493  ac_status=$?
24494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495  (exit $ac_status); }; } &&
24496	 { ac_try='test -s conftest$ac_exeext'
24497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498  (eval $ac_try) 2>&5
24499  ac_status=$?
24500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501  (exit $ac_status); }; }; then
24502  ac_cv_lib_hclglu_gluBuild2DMipmaps=yes
24503else
24504  echo "$as_me: failed program was:" >&5
24505sed 's/^/| /' conftest.$ac_ext >&5
24506
24507ac_cv_lib_hclglu_gluBuild2DMipmaps=no
24508fi
24509rm -f conftest.err conftest.$ac_objext \
24510      conftest$ac_exeext conftest.$ac_ext
24511LIBS=$ac_check_lib_save_LIBS
24512fi
24513echo "$as_me:$LINENO: result: $ac_cv_lib_hclglu_gluBuild2DMipmaps" >&5
24514echo "${ECHO_T}$ac_cv_lib_hclglu_gluBuild2DMipmaps" >&6
24515if test $ac_cv_lib_hclglu_gluBuild2DMipmaps = yes; then
24516  cat >>confdefs.h <<_ACEOF
24517#define HAVE_LIBHCLGLU 1
24518_ACEOF
24519
24520  LIBS="-lhclglu $LIBS"
24521
24522fi
24523
24524
24525echo "$as_me:$LINENO: checking for glAccum in -lglwstati" >&5
24526echo $ECHO_N "checking for glAccum in -lglwstati... $ECHO_C" >&6
24527if test "${ac_cv_lib_glwstati_glAccum+set}" = set; then
24528  echo $ECHO_N "(cached) $ECHO_C" >&6
24529else
24530  ac_check_lib_save_LIBS=$LIBS
24531LIBS="-lglwstati  $LIBS"
24532cat >conftest.$ac_ext <<_ACEOF
24533/* confdefs.h.  */
24534_ACEOF
24535cat confdefs.h >>conftest.$ac_ext
24536cat >>conftest.$ac_ext <<_ACEOF
24537/* end confdefs.h.  */
24538
24539/* Override any gcc2 internal prototype to avoid an error.  */
24540#ifdef __cplusplus
24541extern "C"
24542#endif
24543/* We use char because int might match the return type of a gcc2
24544   builtin and then its argument prototype would still apply.  */
24545char glAccum ();
24546int
24547main ()
24548{
24549glAccum ();
24550  ;
24551  return 0;
24552}
24553_ACEOF
24554rm -f conftest.$ac_objext conftest$ac_exeext
24555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24556  (eval $ac_link) 2>conftest.er1
24557  ac_status=$?
24558  grep -v '^ *+' conftest.er1 >conftest.err
24559  rm -f conftest.er1
24560  cat conftest.err >&5
24561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562  (exit $ac_status); } &&
24563	 { ac_try='test -z "$ac_c_werror_flag"
24564			 || test ! -s conftest.err'
24565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24566  (eval $ac_try) 2>&5
24567  ac_status=$?
24568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569  (exit $ac_status); }; } &&
24570	 { ac_try='test -s conftest$ac_exeext'
24571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572  (eval $ac_try) 2>&5
24573  ac_status=$?
24574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575  (exit $ac_status); }; }; then
24576  ac_cv_lib_glwstati_glAccum=yes
24577else
24578  echo "$as_me: failed program was:" >&5
24579sed 's/^/| /' conftest.$ac_ext >&5
24580
24581ac_cv_lib_glwstati_glAccum=no
24582fi
24583rm -f conftest.err conftest.$ac_objext \
24584      conftest$ac_exeext conftest.$ac_ext
24585LIBS=$ac_check_lib_save_LIBS
24586fi
24587echo "$as_me:$LINENO: result: $ac_cv_lib_glwstati_glAccum" >&5
24588echo "${ECHO_T}$ac_cv_lib_glwstati_glAccum" >&6
24589if test $ac_cv_lib_glwstati_glAccum = yes; then
24590  cat >>confdefs.h <<_ACEOF
24591#define HAVE_LIBGLWSTATI 1
24592_ACEOF
24593
24594  LIBS="-lglwstati $LIBS"
24595
24596fi
24597
24598
24599
24600echo "$as_me:$LINENO: checking for XCreateGC in -lX11" >&5
24601echo $ECHO_N "checking for XCreateGC in -lX11... $ECHO_C" >&6
24602if test "${ac_cv_lib_X11_XCreateGC+set}" = set; then
24603  echo $ECHO_N "(cached) $ECHO_C" >&6
24604else
24605  ac_check_lib_save_LIBS=$LIBS
24606LIBS="-lX11  $LIBS"
24607cat >conftest.$ac_ext <<_ACEOF
24608/* confdefs.h.  */
24609_ACEOF
24610cat confdefs.h >>conftest.$ac_ext
24611cat >>conftest.$ac_ext <<_ACEOF
24612/* end confdefs.h.  */
24613
24614/* Override any gcc2 internal prototype to avoid an error.  */
24615#ifdef __cplusplus
24616extern "C"
24617#endif
24618/* We use char because int might match the return type of a gcc2
24619   builtin and then its argument prototype would still apply.  */
24620char XCreateGC ();
24621int
24622main ()
24623{
24624XCreateGC ();
24625  ;
24626  return 0;
24627}
24628_ACEOF
24629rm -f conftest.$ac_objext conftest$ac_exeext
24630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24631  (eval $ac_link) 2>conftest.er1
24632  ac_status=$?
24633  grep -v '^ *+' conftest.er1 >conftest.err
24634  rm -f conftest.er1
24635  cat conftest.err >&5
24636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637  (exit $ac_status); } &&
24638	 { ac_try='test -z "$ac_c_werror_flag"
24639			 || test ! -s conftest.err'
24640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641  (eval $ac_try) 2>&5
24642  ac_status=$?
24643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644  (exit $ac_status); }; } &&
24645	 { ac_try='test -s conftest$ac_exeext'
24646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647  (eval $ac_try) 2>&5
24648  ac_status=$?
24649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650  (exit $ac_status); }; }; then
24651  ac_cv_lib_X11_XCreateGC=yes
24652else
24653  echo "$as_me: failed program was:" >&5
24654sed 's/^/| /' conftest.$ac_ext >&5
24655
24656ac_cv_lib_X11_XCreateGC=no
24657fi
24658rm -f conftest.err conftest.$ac_objext \
24659      conftest$ac_exeext conftest.$ac_ext
24660LIBS=$ac_check_lib_save_LIBS
24661fi
24662echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCreateGC" >&5
24663echo "${ECHO_T}$ac_cv_lib_X11_XCreateGC" >&6
24664if test $ac_cv_lib_X11_XCreateGC = yes; then
24665  cat >>confdefs.h <<_ACEOF
24666#define HAVE_LIBX11 1
24667_ACEOF
24668
24669  LIBS="-lX11 $LIBS"
24670
24671fi
24672
24673
24674echo "$as_me:$LINENO: checking for XtMalloc in -lXt" >&5
24675echo $ECHO_N "checking for XtMalloc in -lXt... $ECHO_C" >&6
24676if test "${ac_cv_lib_Xt_XtMalloc+set}" = set; then
24677  echo $ECHO_N "(cached) $ECHO_C" >&6
24678else
24679  ac_check_lib_save_LIBS=$LIBS
24680LIBS="-lXt  $LIBS"
24681cat >conftest.$ac_ext <<_ACEOF
24682/* confdefs.h.  */
24683_ACEOF
24684cat confdefs.h >>conftest.$ac_ext
24685cat >>conftest.$ac_ext <<_ACEOF
24686/* end confdefs.h.  */
24687
24688/* Override any gcc2 internal prototype to avoid an error.  */
24689#ifdef __cplusplus
24690extern "C"
24691#endif
24692/* We use char because int might match the return type of a gcc2
24693   builtin and then its argument prototype would still apply.  */
24694char XtMalloc ();
24695int
24696main ()
24697{
24698XtMalloc ();
24699  ;
24700  return 0;
24701}
24702_ACEOF
24703rm -f conftest.$ac_objext conftest$ac_exeext
24704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705  (eval $ac_link) 2>conftest.er1
24706  ac_status=$?
24707  grep -v '^ *+' conftest.er1 >conftest.err
24708  rm -f conftest.er1
24709  cat conftest.err >&5
24710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711  (exit $ac_status); } &&
24712	 { ac_try='test -z "$ac_c_werror_flag"
24713			 || test ! -s conftest.err'
24714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715  (eval $ac_try) 2>&5
24716  ac_status=$?
24717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718  (exit $ac_status); }; } &&
24719	 { ac_try='test -s conftest$ac_exeext'
24720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721  (eval $ac_try) 2>&5
24722  ac_status=$?
24723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724  (exit $ac_status); }; }; then
24725  ac_cv_lib_Xt_XtMalloc=yes
24726else
24727  echo "$as_me: failed program was:" >&5
24728sed 's/^/| /' conftest.$ac_ext >&5
24729
24730ac_cv_lib_Xt_XtMalloc=no
24731fi
24732rm -f conftest.err conftest.$ac_objext \
24733      conftest$ac_exeext conftest.$ac_ext
24734LIBS=$ac_check_lib_save_LIBS
24735fi
24736echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtMalloc" >&5
24737echo "${ECHO_T}$ac_cv_lib_Xt_XtMalloc" >&6
24738if test $ac_cv_lib_Xt_XtMalloc = yes; then
24739  cat >>confdefs.h <<_ACEOF
24740#define HAVE_LIBXT 1
24741_ACEOF
24742
24743  LIBS="-lXt $LIBS"
24744
24745fi
24746
24747
24748echo "$as_me:$LINENO: checking for XextAddDisplay in -lXext" >&5
24749echo $ECHO_N "checking for XextAddDisplay in -lXext... $ECHO_C" >&6
24750if test "${ac_cv_lib_Xext_XextAddDisplay+set}" = set; then
24751  echo $ECHO_N "(cached) $ECHO_C" >&6
24752else
24753  ac_check_lib_save_LIBS=$LIBS
24754LIBS="-lXext  $LIBS"
24755cat >conftest.$ac_ext <<_ACEOF
24756/* confdefs.h.  */
24757_ACEOF
24758cat confdefs.h >>conftest.$ac_ext
24759cat >>conftest.$ac_ext <<_ACEOF
24760/* end confdefs.h.  */
24761
24762/* Override any gcc2 internal prototype to avoid an error.  */
24763#ifdef __cplusplus
24764extern "C"
24765#endif
24766/* We use char because int might match the return type of a gcc2
24767   builtin and then its argument prototype would still apply.  */
24768char XextAddDisplay ();
24769int
24770main ()
24771{
24772XextAddDisplay ();
24773  ;
24774  return 0;
24775}
24776_ACEOF
24777rm -f conftest.$ac_objext conftest$ac_exeext
24778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24779  (eval $ac_link) 2>conftest.er1
24780  ac_status=$?
24781  grep -v '^ *+' conftest.er1 >conftest.err
24782  rm -f conftest.er1
24783  cat conftest.err >&5
24784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785  (exit $ac_status); } &&
24786	 { ac_try='test -z "$ac_c_werror_flag"
24787			 || test ! -s conftest.err'
24788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789  (eval $ac_try) 2>&5
24790  ac_status=$?
24791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792  (exit $ac_status); }; } &&
24793	 { ac_try='test -s conftest$ac_exeext'
24794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795  (eval $ac_try) 2>&5
24796  ac_status=$?
24797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798  (exit $ac_status); }; }; then
24799  ac_cv_lib_Xext_XextAddDisplay=yes
24800else
24801  echo "$as_me: failed program was:" >&5
24802sed 's/^/| /' conftest.$ac_ext >&5
24803
24804ac_cv_lib_Xext_XextAddDisplay=no
24805fi
24806rm -f conftest.err conftest.$ac_objext \
24807      conftest$ac_exeext conftest.$ac_ext
24808LIBS=$ac_check_lib_save_LIBS
24809fi
24810echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
24811echo "${ECHO_T}$ac_cv_lib_Xext_XextAddDisplay" >&6
24812if test $ac_cv_lib_Xext_XextAddDisplay = yes; then
24813  cat >>confdefs.h <<_ACEOF
24814#define HAVE_LIBXEXT 1
24815_ACEOF
24816
24817  LIBS="-lXext $LIBS"
24818
24819fi
24820
24821
24822echo "$as_me:$LINENO: checking for XmuAddInitializer in -lXmu" >&5
24823echo $ECHO_N "checking for XmuAddInitializer in -lXmu... $ECHO_C" >&6
24824if test "${ac_cv_lib_Xmu_XmuAddInitializer+set}" = set; then
24825  echo $ECHO_N "(cached) $ECHO_C" >&6
24826else
24827  ac_check_lib_save_LIBS=$LIBS
24828LIBS="-lXmu  $LIBS"
24829cat >conftest.$ac_ext <<_ACEOF
24830/* confdefs.h.  */
24831_ACEOF
24832cat confdefs.h >>conftest.$ac_ext
24833cat >>conftest.$ac_ext <<_ACEOF
24834/* end confdefs.h.  */
24835
24836/* Override any gcc2 internal prototype to avoid an error.  */
24837#ifdef __cplusplus
24838extern "C"
24839#endif
24840/* We use char because int might match the return type of a gcc2
24841   builtin and then its argument prototype would still apply.  */
24842char XmuAddInitializer ();
24843int
24844main ()
24845{
24846XmuAddInitializer ();
24847  ;
24848  return 0;
24849}
24850_ACEOF
24851rm -f conftest.$ac_objext conftest$ac_exeext
24852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24853  (eval $ac_link) 2>conftest.er1
24854  ac_status=$?
24855  grep -v '^ *+' conftest.er1 >conftest.err
24856  rm -f conftest.er1
24857  cat conftest.err >&5
24858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859  (exit $ac_status); } &&
24860	 { ac_try='test -z "$ac_c_werror_flag"
24861			 || test ! -s conftest.err'
24862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863  (eval $ac_try) 2>&5
24864  ac_status=$?
24865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866  (exit $ac_status); }; } &&
24867	 { ac_try='test -s conftest$ac_exeext'
24868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869  (eval $ac_try) 2>&5
24870  ac_status=$?
24871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872  (exit $ac_status); }; }; then
24873  ac_cv_lib_Xmu_XmuAddInitializer=yes
24874else
24875  echo "$as_me: failed program was:" >&5
24876sed 's/^/| /' conftest.$ac_ext >&5
24877
24878ac_cv_lib_Xmu_XmuAddInitializer=no
24879fi
24880rm -f conftest.err conftest.$ac_objext \
24881      conftest$ac_exeext conftest.$ac_ext
24882LIBS=$ac_check_lib_save_LIBS
24883fi
24884echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuAddInitializer" >&5
24885echo "${ECHO_T}$ac_cv_lib_Xmu_XmuAddInitializer" >&6
24886if test $ac_cv_lib_Xmu_XmuAddInitializer = yes; then
24887  cat >>confdefs.h <<_ACEOF
24888#define HAVE_LIBXMU 1
24889_ACEOF
24890
24891  LIBS="-lXmu $LIBS"
24892
24893fi
24894
24895
24896echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
24897echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
24898if test "${ac_cv_lib_m_sqrt+set}" = set; then
24899  echo $ECHO_N "(cached) $ECHO_C" >&6
24900else
24901  ac_check_lib_save_LIBS=$LIBS
24902LIBS="-lm  $LIBS"
24903cat >conftest.$ac_ext <<_ACEOF
24904/* confdefs.h.  */
24905_ACEOF
24906cat confdefs.h >>conftest.$ac_ext
24907cat >>conftest.$ac_ext <<_ACEOF
24908/* end confdefs.h.  */
24909
24910/* Override any gcc2 internal prototype to avoid an error.  */
24911#ifdef __cplusplus
24912extern "C"
24913#endif
24914/* We use char because int might match the return type of a gcc2
24915   builtin and then its argument prototype would still apply.  */
24916char sqrt ();
24917int
24918main ()
24919{
24920sqrt ();
24921  ;
24922  return 0;
24923}
24924_ACEOF
24925rm -f conftest.$ac_objext conftest$ac_exeext
24926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24927  (eval $ac_link) 2>conftest.er1
24928  ac_status=$?
24929  grep -v '^ *+' conftest.er1 >conftest.err
24930  rm -f conftest.er1
24931  cat conftest.err >&5
24932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933  (exit $ac_status); } &&
24934	 { ac_try='test -z "$ac_c_werror_flag"
24935			 || test ! -s conftest.err'
24936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937  (eval $ac_try) 2>&5
24938  ac_status=$?
24939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940  (exit $ac_status); }; } &&
24941	 { ac_try='test -s conftest$ac_exeext'
24942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943  (eval $ac_try) 2>&5
24944  ac_status=$?
24945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946  (exit $ac_status); }; }; then
24947  ac_cv_lib_m_sqrt=yes
24948else
24949  echo "$as_me: failed program was:" >&5
24950sed 's/^/| /' conftest.$ac_ext >&5
24951
24952ac_cv_lib_m_sqrt=no
24953fi
24954rm -f conftest.err conftest.$ac_objext \
24955      conftest$ac_exeext conftest.$ac_ext
24956LIBS=$ac_check_lib_save_LIBS
24957fi
24958echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
24959echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
24960if test $ac_cv_lib_m_sqrt = yes; then
24961  cat >>confdefs.h <<_ACEOF
24962#define HAVE_LIBM 1
24963_ACEOF
24964
24965  LIBS="-lm $LIBS"
24966
24967fi
24968
24969
24970
24971
24972# Check whether --with-motif-includes or --without-motif-includes was given.
24973if test "${with_motif_includes+set}" = set; then
24974  withval="$with_motif_includes"
24975  with_motif_includes=$withval
24976else
24977  with_motif_includes=''
24978fi;
24979if test "$with_motif_includes" != "yes" && test -z "$with_motif_includes"
24980then
24981        with_motif_includes=''
24982fi
24983
24984
24985# Check whether --with-motif-libs or --without-motif-libs was given.
24986if test "${with_motif_libs+set}" = set; then
24987  withval="$with_motif_libs"
24988  with_motif_libs=$withval
24989else
24990  with_motif_libs=''
24991fi;
24992if test "$with_motif_libs" != "yes" && test -z "$with_motif_libs"
24993then
24994  with_motif_libs=''
24995fi
24996
24997  # Guess where to find include files, by looking for this one Xm .h file.
24998  test -z "$xm_direct_test_include" && xm_direct_test_include=Xm/Xm.h
24999
25000  # First, try using that file with no special directory specified.
25001cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h.  */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h.  */
25007#include <$xm_direct_test_include>
25008_ACEOF
25009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25010  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25011  ac_status=$?
25012  grep -v '^ *+' conftest.er1 >conftest.err
25013  rm -f conftest.er1
25014  cat conftest.err >&5
25015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016  (exit $ac_status); } >/dev/null; then
25017  if test -s conftest.err; then
25018    ac_cpp_err=$ac_c_preproc_warn_flag
25019    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25020  else
25021    ac_cpp_err=
25022  fi
25023else
25024  ac_cpp_err=yes
25025fi
25026if test -z "$ac_cpp_err"; then
25027  # We can compile using X headers with no special include directory.
25028xm_includes=
25029else
25030  echo "$as_me: failed program was:" >&5
25031sed 's/^/| /' conftest.$ac_ext >&5
25032
25033  # Look for the header file in a standard set of common directories.
25034# Check X11 before X11Rn because it is often a symlink to the current release.
25035  for ac_dir in               \
25036    /usr/X11/include          \
25037    /usr/local/include        \
25038    /usr/X11R5/include        \
25039    /usr/X11R4/include        \
25040                              \
25041    /usr/include/X11          \
25042    /usr/include/X11R6        \
25043    /usr/include/X11R5        \
25044    /usr/include/X11R4        \
25045                              \
25046    /usr/local/X11/include    \
25047    /usr/local/X11R6/include  \
25048    /usr/local/X11R5/include  \
25049    /usr/local/X11R4/include  \
25050                              \
25051    /usr/local/include/X11    \
25052    /usr/local/include/X11R6  \
25053    /usr/local/include/X11R5  \
25054    /usr/local/include/X11R4  \
25055                              \
25056    /usr/X386/include         \
25057    /usr/x386/include         \
25058    /usr/XFree86/include/X11  \
25059                              \
25060    /usr/include              \
25061    /usr/local/include        \
25062    /usr/unsupported/include  \
25063    /usr/athena/include       \
25064    /usr/local/x11r5/include  \
25065    /usr/lpp/Xamples/include  \
25066                              \
25067    /usr/openwin/include      \
25068    /usr/openwin/share/include \
25069    "$with_motif_includes"    \
25070    ; \
25071  do
25072    if test -r "$ac_dir/$xm_direct_test_include"; then
25073      xm_includes=$ac_dir
25074      break
25075    fi
25076  done
25077fi
25078rm -f conftest.err conftest.$ac_ext
25079
25080  # Check for the libraries.
25081
25082  test -z "$xm_direct_test_library" && xm_direct_test_library=Xm
25083  test -z "$xm_direct_test_function" && xm_direct_test_function=XmGetDestination
25084
25085  # See if we find them without any special options.
25086  # Don't add to $LIBS permanently.
25087  ac_save_LIBS="$LIBS"
25088  LIBS="-l$xm_direct_test_library $LIBS"
25089cat >conftest.$ac_ext <<_ACEOF
25090/* confdefs.h.  */
25091_ACEOF
25092cat confdefs.h >>conftest.$ac_ext
25093cat >>conftest.$ac_ext <<_ACEOF
25094/* end confdefs.h.  */
25095
25096int
25097main ()
25098{
25099${xm_direct_test_function}()
25100  ;
25101  return 0;
25102}
25103_ACEOF
25104rm -f conftest.$ac_objext conftest$ac_exeext
25105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106  (eval $ac_link) 2>conftest.er1
25107  ac_status=$?
25108  grep -v '^ *+' conftest.er1 >conftest.err
25109  rm -f conftest.er1
25110  cat conftest.err >&5
25111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112  (exit $ac_status); } &&
25113	 { ac_try='test -z "$ac_c_werror_flag"
25114			 || test ! -s conftest.err'
25115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116  (eval $ac_try) 2>&5
25117  ac_status=$?
25118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119  (exit $ac_status); }; } &&
25120	 { ac_try='test -s conftest$ac_exeext'
25121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122  (eval $ac_try) 2>&5
25123  ac_status=$?
25124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125  (exit $ac_status); }; }; then
25126  LIBS="$ac_save_LIBS"
25127# We can link Motif programs with no special library path.
25128xm_libraries=
25129else
25130  echo "$as_me: failed program was:" >&5
25131sed 's/^/| /' conftest.$ac_ext >&5
25132
25133LIBS="$ac_save_LIBS"
25134# First see if replacing the include by lib works.
25135# Check X11 before X11Rn because it is often a symlink to the current release.
25136for ac_dir in `echo "$xm_includes" | sed s/include/lib/` \
25137    /usr/X11/lib          \
25138    /usr/local/lib        \
25139    /usr/X11R5/lib        \
25140    /usr/X11R4/lib        \
25141                          \
25142    /usr/lib/X11          \
25143    /usr/lib/X11R6        \
25144    /usr/lib/X11R5        \
25145    /usr/lib/X11R4        \
25146                          \
25147    /usr/local/X11/lib    \
25148    /usr/local/X11R6/lib  \
25149    /usr/local/X11R5/lib  \
25150    /usr/local/X11R4/lib  \
25151                          \
25152    /usr/local/lib/X11    \
25153    /usr/local/lib/X11R6  \
25154    /usr/local/lib/X11R5  \
25155    /usr/local/lib/X11R4  \
25156                          \
25157    /usr/X386/lib         \
25158    /usr/x386/lib         \
25159    /usr/XFree86/lib/X11  \
25160                          \
25161    /usr/lib              \
25162    /usr/local/lib        \
25163    /usr/unsupported/lib  \
25164    /usr/athena/lib       \
25165    /usr/local/x11r5/lib  \
25166    /usr/lpp/Xamples/lib  \
25167    /lib/usr/lib/X11	  \
25168                          \
25169    /usr/openwin/lib      \
25170    /usr/openwin/share/lib \
25171    ; \
25172do
25173  for ac_extension in a so sl; do
25174    if test -r $ac_dir/lib${xm_direct_test_library}.$ac_extension; then
25175      xm_libraries=$ac_dir
25176      break 2
25177    fi
25178  done
25179done
25180fi
25181rm -f conftest.err conftest.$ac_objext \
25182      conftest$ac_exeext conftest.$ac_ext
25183
25184if test "$xm_includes" != "" ; then
25185    CFLAGS="$CFLAGS -I$xm_includes"
25186    CXXFLAGS="$CXXFLAGS -I$xm_includes"
25187    CPPFLAGS="$CPPFLAGS -I$xm_includes"
25188fi
25189if test "$xm_libraries" != "" ; then
25190    LIBS="-L$xm_libraries $LIBS"
25191fi
25192
25193
25194echo "$as_me:$LINENO: checking for glXGetConfig in -lGL" >&5
25195echo $ECHO_N "checking for glXGetConfig in -lGL... $ECHO_C" >&6
25196if test "${ac_cv_lib_GL_glXGetConfig+set}" = set; then
25197  echo $ECHO_N "(cached) $ECHO_C" >&6
25198else
25199  ac_check_lib_save_LIBS=$LIBS
25200LIBS="-lGL  $LIBS"
25201cat >conftest.$ac_ext <<_ACEOF
25202/* confdefs.h.  */
25203_ACEOF
25204cat confdefs.h >>conftest.$ac_ext
25205cat >>conftest.$ac_ext <<_ACEOF
25206/* end confdefs.h.  */
25207
25208/* Override any gcc2 internal prototype to avoid an error.  */
25209#ifdef __cplusplus
25210extern "C"
25211#endif
25212/* We use char because int might match the return type of a gcc2
25213   builtin and then its argument prototype would still apply.  */
25214char glXGetConfig ();
25215int
25216main ()
25217{
25218glXGetConfig ();
25219  ;
25220  return 0;
25221}
25222_ACEOF
25223rm -f conftest.$ac_objext conftest$ac_exeext
25224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25225  (eval $ac_link) 2>conftest.er1
25226  ac_status=$?
25227  grep -v '^ *+' conftest.er1 >conftest.err
25228  rm -f conftest.er1
25229  cat conftest.err >&5
25230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231  (exit $ac_status); } &&
25232	 { ac_try='test -z "$ac_c_werror_flag"
25233			 || test ! -s conftest.err'
25234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235  (eval $ac_try) 2>&5
25236  ac_status=$?
25237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238  (exit $ac_status); }; } &&
25239	 { ac_try='test -s conftest$ac_exeext'
25240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241  (eval $ac_try) 2>&5
25242  ac_status=$?
25243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244  (exit $ac_status); }; }; then
25245  ac_cv_lib_GL_glXGetConfig=yes
25246else
25247  echo "$as_me: failed program was:" >&5
25248sed 's/^/| /' conftest.$ac_ext >&5
25249
25250ac_cv_lib_GL_glXGetConfig=no
25251fi
25252rm -f conftest.err conftest.$ac_objext \
25253      conftest$ac_exeext conftest.$ac_ext
25254LIBS=$ac_check_lib_save_LIBS
25255fi
25256echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetConfig" >&5
25257echo "${ECHO_T}$ac_cv_lib_GL_glXGetConfig" >&6
25258if test $ac_cv_lib_GL_glXGetConfig = yes; then
25259  cat >>confdefs.h <<_ACEOF
25260#define HAVE_LIBGL 1
25261_ACEOF
25262
25263  LIBS="-lGL $LIBS"
25264
25265fi
25266
25267
25268echo "$as_me:$LINENO: checking for gluBuild2DMipmaps in -lGLU" >&5
25269echo $ECHO_N "checking for gluBuild2DMipmaps in -lGLU... $ECHO_C" >&6
25270if test "${ac_cv_lib_GLU_gluBuild2DMipmaps+set}" = set; then
25271  echo $ECHO_N "(cached) $ECHO_C" >&6
25272else
25273  ac_check_lib_save_LIBS=$LIBS
25274LIBS="-lGLU  $LIBS"
25275cat >conftest.$ac_ext <<_ACEOF
25276/* confdefs.h.  */
25277_ACEOF
25278cat confdefs.h >>conftest.$ac_ext
25279cat >>conftest.$ac_ext <<_ACEOF
25280/* end confdefs.h.  */
25281
25282/* Override any gcc2 internal prototype to avoid an error.  */
25283#ifdef __cplusplus
25284extern "C"
25285#endif
25286/* We use char because int might match the return type of a gcc2
25287   builtin and then its argument prototype would still apply.  */
25288char gluBuild2DMipmaps ();
25289int
25290main ()
25291{
25292gluBuild2DMipmaps ();
25293  ;
25294  return 0;
25295}
25296_ACEOF
25297rm -f conftest.$ac_objext conftest$ac_exeext
25298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25299  (eval $ac_link) 2>conftest.er1
25300  ac_status=$?
25301  grep -v '^ *+' conftest.er1 >conftest.err
25302  rm -f conftest.er1
25303  cat conftest.err >&5
25304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305  (exit $ac_status); } &&
25306	 { ac_try='test -z "$ac_c_werror_flag"
25307			 || test ! -s conftest.err'
25308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309  (eval $ac_try) 2>&5
25310  ac_status=$?
25311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312  (exit $ac_status); }; } &&
25313	 { ac_try='test -s conftest$ac_exeext'
25314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315  (eval $ac_try) 2>&5
25316  ac_status=$?
25317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318  (exit $ac_status); }; }; then
25319  ac_cv_lib_GLU_gluBuild2DMipmaps=yes
25320else
25321  echo "$as_me: failed program was:" >&5
25322sed 's/^/| /' conftest.$ac_ext >&5
25323
25324ac_cv_lib_GLU_gluBuild2DMipmaps=no
25325fi
25326rm -f conftest.err conftest.$ac_objext \
25327      conftest$ac_exeext conftest.$ac_ext
25328LIBS=$ac_check_lib_save_LIBS
25329fi
25330echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBuild2DMipmaps" >&5
25331echo "${ECHO_T}$ac_cv_lib_GLU_gluBuild2DMipmaps" >&6
25332if test $ac_cv_lib_GLU_gluBuild2DMipmaps = yes; then
25333  cat >>confdefs.h <<_ACEOF
25334#define HAVE_LIBGLU 1
25335_ACEOF
25336
25337  LIBS="-lGLU $LIBS"
25338
25339fi
25340
25341
25342
25343echo "$as_me:$LINENO: checking for XpSetImageResolution in -lXp" >&5
25344echo $ECHO_N "checking for XpSetImageResolution in -lXp... $ECHO_C" >&6
25345if test "${ac_cv_lib_Xp_XpSetImageResolution+set}" = set; then
25346  echo $ECHO_N "(cached) $ECHO_C" >&6
25347else
25348  ac_check_lib_save_LIBS=$LIBS
25349LIBS="-lXp  $LIBS"
25350cat >conftest.$ac_ext <<_ACEOF
25351/* confdefs.h.  */
25352_ACEOF
25353cat confdefs.h >>conftest.$ac_ext
25354cat >>conftest.$ac_ext <<_ACEOF
25355/* end confdefs.h.  */
25356
25357/* Override any gcc2 internal prototype to avoid an error.  */
25358#ifdef __cplusplus
25359extern "C"
25360#endif
25361/* We use char because int might match the return type of a gcc2
25362   builtin and then its argument prototype would still apply.  */
25363char XpSetImageResolution ();
25364int
25365main ()
25366{
25367XpSetImageResolution ();
25368  ;
25369  return 0;
25370}
25371_ACEOF
25372rm -f conftest.$ac_objext conftest$ac_exeext
25373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25374  (eval $ac_link) 2>conftest.er1
25375  ac_status=$?
25376  grep -v '^ *+' conftest.er1 >conftest.err
25377  rm -f conftest.er1
25378  cat conftest.err >&5
25379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380  (exit $ac_status); } &&
25381	 { ac_try='test -z "$ac_c_werror_flag"
25382			 || test ! -s conftest.err'
25383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384  (eval $ac_try) 2>&5
25385  ac_status=$?
25386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387  (exit $ac_status); }; } &&
25388	 { ac_try='test -s conftest$ac_exeext'
25389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390  (eval $ac_try) 2>&5
25391  ac_status=$?
25392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393  (exit $ac_status); }; }; then
25394  ac_cv_lib_Xp_XpSetImageResolution=yes
25395else
25396  echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399ac_cv_lib_Xp_XpSetImageResolution=no
25400fi
25401rm -f conftest.err conftest.$ac_objext \
25402      conftest$ac_exeext conftest.$ac_ext
25403LIBS=$ac_check_lib_save_LIBS
25404fi
25405echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpSetImageResolution" >&5
25406echo "${ECHO_T}$ac_cv_lib_Xp_XpSetImageResolution" >&6
25407if test $ac_cv_lib_Xp_XpSetImageResolution = yes; then
25408  cat >>confdefs.h <<_ACEOF
25409#define HAVE_LIBXP 1
25410_ACEOF
25411
25412  LIBS="-lXp $LIBS"
25413
25414fi
25415
25416
25417echo "$as_me:$LINENO: checking for XmGetDestination in -lXm" >&5
25418echo $ECHO_N "checking for XmGetDestination in -lXm... $ECHO_C" >&6
25419if test "${ac_cv_lib_Xm_XmGetDestination+set}" = set; then
25420  echo $ECHO_N "(cached) $ECHO_C" >&6
25421else
25422  ac_check_lib_save_LIBS=$LIBS
25423LIBS="-lXm  $LIBS"
25424cat >conftest.$ac_ext <<_ACEOF
25425/* confdefs.h.  */
25426_ACEOF
25427cat confdefs.h >>conftest.$ac_ext
25428cat >>conftest.$ac_ext <<_ACEOF
25429/* end confdefs.h.  */
25430
25431/* Override any gcc2 internal prototype to avoid an error.  */
25432#ifdef __cplusplus
25433extern "C"
25434#endif
25435/* We use char because int might match the return type of a gcc2
25436   builtin and then its argument prototype would still apply.  */
25437char XmGetDestination ();
25438int
25439main ()
25440{
25441XmGetDestination ();
25442  ;
25443  return 0;
25444}
25445_ACEOF
25446rm -f conftest.$ac_objext conftest$ac_exeext
25447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25448  (eval $ac_link) 2>conftest.er1
25449  ac_status=$?
25450  grep -v '^ *+' conftest.er1 >conftest.err
25451  rm -f conftest.er1
25452  cat conftest.err >&5
25453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454  (exit $ac_status); } &&
25455	 { ac_try='test -z "$ac_c_werror_flag"
25456			 || test ! -s conftest.err'
25457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458  (eval $ac_try) 2>&5
25459  ac_status=$?
25460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461  (exit $ac_status); }; } &&
25462	 { ac_try='test -s conftest$ac_exeext'
25463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464  (eval $ac_try) 2>&5
25465  ac_status=$?
25466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467  (exit $ac_status); }; }; then
25468  ac_cv_lib_Xm_XmGetDestination=yes
25469else
25470  echo "$as_me: failed program was:" >&5
25471sed 's/^/| /' conftest.$ac_ext >&5
25472
25473ac_cv_lib_Xm_XmGetDestination=no
25474fi
25475rm -f conftest.err conftest.$ac_objext \
25476      conftest$ac_exeext conftest.$ac_ext
25477LIBS=$ac_check_lib_save_LIBS
25478fi
25479echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmGetDestination" >&5
25480echo "${ECHO_T}$ac_cv_lib_Xm_XmGetDestination" >&6
25481if test $ac_cv_lib_Xm_XmGetDestination = yes; then
25482  cat >>confdefs.h <<_ACEOF
25483#define HAVE_LIBXM 1
25484_ACEOF
25485
25486  LIBS="-lXm $LIBS"
25487
25488fi
25489
25490cat >conftest.$ac_ext <<_ACEOF
25491/* confdefs.h.  */
25492_ACEOF
25493cat confdefs.h >>conftest.$ac_ext
25494cat >>conftest.$ac_ext <<_ACEOF
25495/* end confdefs.h.  */
25496
25497/* Override any gcc2 internal prototype to avoid an error.  */
25498#ifdef __cplusplus
25499extern "C"
25500#endif
25501/* We use char because int might match the return type of a gcc2
25502   builtin and then its argument prototype would still apply.  */
25503char _XmMapKeyEvents ();
25504int
25505main ()
25506{
25507_XmMapKeyEvents ();
25508  ;
25509  return 0;
25510}
25511_ACEOF
25512rm -f conftest.$ac_objext conftest$ac_exeext
25513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25514  (eval $ac_link) 2>conftest.er1
25515  ac_status=$?
25516  grep -v '^ *+' conftest.er1 >conftest.err
25517  rm -f conftest.er1
25518  cat conftest.err >&5
25519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520  (exit $ac_status); } &&
25521	 { ac_try='test -z "$ac_c_werror_flag"
25522			 || test ! -s conftest.err'
25523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524  (eval $ac_try) 2>&5
25525  ac_status=$?
25526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527  (exit $ac_status); }; } &&
25528	 { ac_try='test -s conftest$ac_exeext'
25529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530  (eval $ac_try) 2>&5
25531  ac_status=$?
25532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533  (exit $ac_status); }; }; then
25534
25535cat >>confdefs.h <<\_ACEOF
25536#define HAVE_XMMAPKEYEVENTS 1
25537_ACEOF
25538
25539else
25540  echo "$as_me: failed program was:" >&5
25541sed 's/^/| /' conftest.$ac_ext >&5
25542
25543fi
25544rm -f conftest.err conftest.$ac_objext \
25545      conftest$ac_exeext conftest.$ac_ext
25546cat >conftest.$ac_ext <<_ACEOF
25547/* confdefs.h.  */
25548_ACEOF
25549cat confdefs.h >>conftest.$ac_ext
25550cat >>conftest.$ac_ext <<_ACEOF
25551/* end confdefs.h.  */
25552
25553/* Override any gcc2 internal prototype to avoid an error.  */
25554#ifdef __cplusplus
25555extern "C"
25556#endif
25557/* We use char because int might match the return type of a gcc2
25558   builtin and then its argument prototype would still apply.  */
25559char HCLXmInit ();
25560int
25561main ()
25562{
25563HCLXmInit ();
25564  ;
25565  return 0;
25566}
25567_ACEOF
25568rm -f conftest.$ac_objext conftest$ac_exeext
25569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25570  (eval $ac_link) 2>conftest.er1
25571  ac_status=$?
25572  grep -v '^ *+' conftest.er1 >conftest.err
25573  rm -f conftest.er1
25574  cat conftest.err >&5
25575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576  (exit $ac_status); } &&
25577	 { ac_try='test -z "$ac_c_werror_flag"
25578			 || test ! -s conftest.err'
25579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580  (eval $ac_try) 2>&5
25581  ac_status=$?
25582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583  (exit $ac_status); }; } &&
25584	 { ac_try='test -s conftest$ac_exeext'
25585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586  (eval $ac_try) 2>&5
25587  ac_status=$?
25588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589  (exit $ac_status); }; }; then
25590
25591cat >>confdefs.h <<\_ACEOF
25592#define HAVE_HCLXMINIT 1
25593_ACEOF
25594
25595else
25596  echo "$as_me: failed program was:" >&5
25597sed 's/^/| /' conftest.$ac_ext >&5
25598
25599fi
25600rm -f conftest.err conftest.$ac_objext \
25601      conftest$ac_exeext conftest.$ac_ext
25602cat >conftest.$ac_ext <<_ACEOF
25603/* confdefs.h.  */
25604_ACEOF
25605cat confdefs.h >>conftest.$ac_ext
25606cat >>conftest.$ac_ext <<_ACEOF
25607/* end confdefs.h.  */
25608
25609/* Override any gcc2 internal prototype to avoid an error.  */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613/* We use char because int might match the return type of a gcc2
25614   builtin and then its argument prototype would still apply.  */
25615char HCLXtInit ();
25616int
25617main ()
25618{
25619HCLXtInit ();
25620  ;
25621  return 0;
25622}
25623_ACEOF
25624rm -f conftest.$ac_objext conftest$ac_exeext
25625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25626  (eval $ac_link) 2>conftest.er1
25627  ac_status=$?
25628  grep -v '^ *+' conftest.er1 >conftest.err
25629  rm -f conftest.er1
25630  cat conftest.err >&5
25631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632  (exit $ac_status); } &&
25633	 { ac_try='test -z "$ac_c_werror_flag"
25634			 || test ! -s conftest.err'
25635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636  (eval $ac_try) 2>&5
25637  ac_status=$?
25638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639  (exit $ac_status); }; } &&
25640	 { ac_try='test -s conftest$ac_exeext'
25641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642  (eval $ac_try) 2>&5
25643  ac_status=$?
25644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645  (exit $ac_status); }; }; then
25646
25647cat >>confdefs.h <<\_ACEOF
25648#define HAVE_HCLXTINIT 1
25649_ACEOF
25650
25651else
25652  echo "$as_me: failed program was:" >&5
25653sed 's/^/| /' conftest.$ac_ext >&5
25654
25655fi
25656rm -f conftest.err conftest.$ac_objext \
25657      conftest$ac_exeext conftest.$ac_ext
25658
25659DX_X_LINK_LIBS="$LIBS"
25660
25661cat >conftest.$ac_ext <<_ACEOF
25662/* confdefs.h.  */
25663_ACEOF
25664cat confdefs.h >>conftest.$ac_ext
25665cat >>conftest.$ac_ext <<_ACEOF
25666/* end confdefs.h.  */
25667
25668#include <Xm/FormP.h>
25669
25670int
25671main ()
25672{
25673
25674XmFormConstraintPart *p;
25675p->att[0].type;
25676
25677  ;
25678  return 0;
25679}
25680_ACEOF
25681rm -f conftest.$ac_objext conftest$ac_exeext
25682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25683  (eval $ac_link) 2>conftest.er1
25684  ac_status=$?
25685  grep -v '^ *+' conftest.er1 >conftest.err
25686  rm -f conftest.er1
25687  cat conftest.err >&5
25688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689  (exit $ac_status); } &&
25690	 { ac_try='test -z "$ac_c_werror_flag"
25691			 || test ! -s conftest.err'
25692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693  (eval $ac_try) 2>&5
25694  ac_status=$?
25695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696  (exit $ac_status); }; } &&
25697	 { ac_try='test -s conftest$ac_exeext'
25698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699  (eval $ac_try) 2>&5
25700  ac_status=$?
25701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702  (exit $ac_status); }; }; then
25703  :
25704else
25705  echo "$as_me: failed program was:" >&5
25706sed 's/^/| /' conftest.$ac_ext >&5
25707
25708
25709
25710cat >>confdefs.h <<_ACEOF
25711#define OLD_LESSTIF 1
25712_ACEOF
25713
25714    { echo "$as_me:$LINENO: using old version of  LESSTIF" >&5
25715echo "$as_me: using old version of  LESSTIF" >&6;}
25716
25717fi
25718rm -f conftest.err conftest.$ac_objext \
25719      conftest$ac_exeext conftest.$ac_ext
25720
25721if test "$ARCH" = "solaris" ; then
25722    OLDLIBS=$LIBS
25723    LIBS="-L/usr/openwin/lib $LIBS"
25724    echo "$as_me:$LINENO: checking for dga_draw_devfd in -ldga" >&5
25725echo $ECHO_N "checking for dga_draw_devfd in -ldga... $ECHO_C" >&6
25726if test "${ac_cv_lib_dga_dga_draw_devfd+set}" = set; then
25727  echo $ECHO_N "(cached) $ECHO_C" >&6
25728else
25729  ac_check_lib_save_LIBS=$LIBS
25730LIBS="-ldga -lX11 $LIBS"
25731cat >conftest.$ac_ext <<_ACEOF
25732/* confdefs.h.  */
25733_ACEOF
25734cat confdefs.h >>conftest.$ac_ext
25735cat >>conftest.$ac_ext <<_ACEOF
25736/* end confdefs.h.  */
25737
25738/* Override any gcc2 internal prototype to avoid an error.  */
25739#ifdef __cplusplus
25740extern "C"
25741#endif
25742/* We use char because int might match the return type of a gcc2
25743   builtin and then its argument prototype would still apply.  */
25744char dga_draw_devfd ();
25745int
25746main ()
25747{
25748dga_draw_devfd ();
25749  ;
25750  return 0;
25751}
25752_ACEOF
25753rm -f conftest.$ac_objext conftest$ac_exeext
25754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25755  (eval $ac_link) 2>conftest.er1
25756  ac_status=$?
25757  grep -v '^ *+' conftest.er1 >conftest.err
25758  rm -f conftest.er1
25759  cat conftest.err >&5
25760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761  (exit $ac_status); } &&
25762	 { ac_try='test -z "$ac_c_werror_flag"
25763			 || test ! -s conftest.err'
25764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765  (eval $ac_try) 2>&5
25766  ac_status=$?
25767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768  (exit $ac_status); }; } &&
25769	 { ac_try='test -s conftest$ac_exeext'
25770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771  (eval $ac_try) 2>&5
25772  ac_status=$?
25773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774  (exit $ac_status); }; }; then
25775  ac_cv_lib_dga_dga_draw_devfd=yes
25776else
25777  echo "$as_me: failed program was:" >&5
25778sed 's/^/| /' conftest.$ac_ext >&5
25779
25780ac_cv_lib_dga_dga_draw_devfd=no
25781fi
25782rm -f conftest.err conftest.$ac_objext \
25783      conftest$ac_exeext conftest.$ac_ext
25784LIBS=$ac_check_lib_save_LIBS
25785fi
25786echo "$as_me:$LINENO: result: $ac_cv_lib_dga_dga_draw_devfd" >&5
25787echo "${ECHO_T}$ac_cv_lib_dga_dga_draw_devfd" >&6
25788if test $ac_cv_lib_dga_dga_draw_devfd = yes; then
25789
25790      LIBS="$LIBS -ldga"
25791      echo "$as_me:$LINENO: checking for XmuAddInitializer in -lXmu" >&5
25792echo $ECHO_N "checking for XmuAddInitializer in -lXmu... $ECHO_C" >&6
25793if test "${ac_cv_lib_Xmu_XmuAddInitializer+set}" = set; then
25794  echo $ECHO_N "(cached) $ECHO_C" >&6
25795else
25796  ac_check_lib_save_LIBS=$LIBS
25797LIBS="-lXmu  $LIBS"
25798cat >conftest.$ac_ext <<_ACEOF
25799/* confdefs.h.  */
25800_ACEOF
25801cat confdefs.h >>conftest.$ac_ext
25802cat >>conftest.$ac_ext <<_ACEOF
25803/* end confdefs.h.  */
25804
25805/* Override any gcc2 internal prototype to avoid an error.  */
25806#ifdef __cplusplus
25807extern "C"
25808#endif
25809/* We use char because int might match the return type of a gcc2
25810   builtin and then its argument prototype would still apply.  */
25811char XmuAddInitializer ();
25812int
25813main ()
25814{
25815XmuAddInitializer ();
25816  ;
25817  return 0;
25818}
25819_ACEOF
25820rm -f conftest.$ac_objext conftest$ac_exeext
25821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25822  (eval $ac_link) 2>conftest.er1
25823  ac_status=$?
25824  grep -v '^ *+' conftest.er1 >conftest.err
25825  rm -f conftest.er1
25826  cat conftest.err >&5
25827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828  (exit $ac_status); } &&
25829	 { ac_try='test -z "$ac_c_werror_flag"
25830			 || test ! -s conftest.err'
25831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832  (eval $ac_try) 2>&5
25833  ac_status=$?
25834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835  (exit $ac_status); }; } &&
25836	 { ac_try='test -s conftest$ac_exeext'
25837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838  (eval $ac_try) 2>&5
25839  ac_status=$?
25840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841  (exit $ac_status); }; }; then
25842  ac_cv_lib_Xmu_XmuAddInitializer=yes
25843else
25844  echo "$as_me: failed program was:" >&5
25845sed 's/^/| /' conftest.$ac_ext >&5
25846
25847ac_cv_lib_Xmu_XmuAddInitializer=no
25848fi
25849rm -f conftest.err conftest.$ac_objext \
25850      conftest$ac_exeext conftest.$ac_ext
25851LIBS=$ac_check_lib_save_LIBS
25852fi
25853echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuAddInitializer" >&5
25854echo "${ECHO_T}$ac_cv_lib_Xmu_XmuAddInitializer" >&6
25855if test $ac_cv_lib_Xmu_XmuAddInitializer = yes; then
25856  LIBS="$LIBS -lXmu"
25857fi
25858
25859
25860else
25861  LIBS=$OLDLIBS
25862fi
25863
25864fi
25865
25866
25867echo "$as_me:$LINENO: checking for regcomp in -lREXP" >&5
25868echo $ECHO_N "checking for regcomp in -lREXP... $ECHO_C" >&6
25869if test "${ac_cv_lib_REXP_regcomp+set}" = set; then
25870  echo $ECHO_N "(cached) $ECHO_C" >&6
25871else
25872  ac_check_lib_save_LIBS=$LIBS
25873LIBS="-lREXP  $LIBS"
25874cat >conftest.$ac_ext <<_ACEOF
25875/* confdefs.h.  */
25876_ACEOF
25877cat confdefs.h >>conftest.$ac_ext
25878cat >>conftest.$ac_ext <<_ACEOF
25879/* end confdefs.h.  */
25880
25881/* Override any gcc2 internal prototype to avoid an error.  */
25882#ifdef __cplusplus
25883extern "C"
25884#endif
25885/* We use char because int might match the return type of a gcc2
25886   builtin and then its argument prototype would still apply.  */
25887char regcomp ();
25888int
25889main ()
25890{
25891regcomp ();
25892  ;
25893  return 0;
25894}
25895_ACEOF
25896rm -f conftest.$ac_objext conftest$ac_exeext
25897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25898  (eval $ac_link) 2>conftest.er1
25899  ac_status=$?
25900  grep -v '^ *+' conftest.er1 >conftest.err
25901  rm -f conftest.er1
25902  cat conftest.err >&5
25903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904  (exit $ac_status); } &&
25905	 { ac_try='test -z "$ac_c_werror_flag"
25906			 || test ! -s conftest.err'
25907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908  (eval $ac_try) 2>&5
25909  ac_status=$?
25910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911  (exit $ac_status); }; } &&
25912	 { ac_try='test -s conftest$ac_exeext'
25913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914  (eval $ac_try) 2>&5
25915  ac_status=$?
25916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917  (exit $ac_status); }; }; then
25918  ac_cv_lib_REXP_regcomp=yes
25919else
25920  echo "$as_me: failed program was:" >&5
25921sed 's/^/| /' conftest.$ac_ext >&5
25922
25923ac_cv_lib_REXP_regcomp=no
25924fi
25925rm -f conftest.err conftest.$ac_objext \
25926      conftest$ac_exeext conftest.$ac_ext
25927LIBS=$ac_check_lib_save_LIBS
25928fi
25929echo "$as_me:$LINENO: result: $ac_cv_lib_REXP_regcomp" >&5
25930echo "${ECHO_T}$ac_cv_lib_REXP_regcomp" >&6
25931if test $ac_cv_lib_REXP_regcomp = yes; then
25932  cat >>confdefs.h <<_ACEOF
25933#define HAVE_LIBREXP 1
25934_ACEOF
25935
25936  LIBS="-lREXP $LIBS"
25937
25938fi
25939
25940echo "$as_me:$LINENO: checking whether we are using GNU glibc math" >&5
25941echo $ECHO_N "checking whether we are using GNU glibc math... $ECHO_C" >&6
25942if test "${ac_cv_lib_glibcmath+set}" = set; then
25943  echo $ECHO_N "(cached) $ECHO_C" >&6
25944else
25945  cat > conftest.c <<EOF
25946/* Because certain platforms using glibc and gcc will not use certain
25947   math functions correctly unless they are using the ISO C 9X standard
25948   we check. If we get a yes, then the define _GNU_SOURCE makes the
25949   compiler add the ISO C 9X support. */
25950#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7)
25951  yes;
25952#endif
25953EOF
25954if { ac_try='${CC-cc} -E conftest.c'
25955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956  (eval $ac_try) 2>&5
25957  ac_status=$?
25958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959  (exit $ac_status); }; } | egrep yes > foo 2>&1; then
25960  ac_cv_lib_glibcmath=-D_GNU_SOURCE
25961fi
25962rm foo
25963
25964fi
25965echo "$as_me:$LINENO: result: $ac_cv_lib_glibcmath" >&5
25966echo "${ECHO_T}$ac_cv_lib_glibcmath" >&6
25967if test -n "$ac_cv_lib_glibcmath" ; then
25968  CFLAGS="$CFLAGS $ac_cv_lib_glibcmath"
25969fi
25970
25971
25972
25973
25974if test $with_buildlibdx = 'yes'; then
25975  WITH_BUILDLIBDX_TRUE=
25976  WITH_BUILDLIBDX_FALSE='#'
25977else
25978  WITH_BUILDLIBDX_TRUE='#'
25979  WITH_BUILDLIBDX_FALSE=
25980fi
25981
25982
25983
25984if test $with_installhtml = 'yes'; then
25985  WITH_INSTALLHTML_TRUE=
25986  WITH_INSTALLHTML_FALSE='#'
25987else
25988  WITH_INSTALLHTML_TRUE='#'
25989  WITH_INSTALLHTML_FALSE=
25990fi
25991
25992
25993
25994
25995echo "$as_me:$LINENO: checking for main in -lg++" >&5
25996echo $ECHO_N "checking for main in -lg++... $ECHO_C" >&6
25997if test "${ac_cv_lib_gpp_main+set}" = set; then
25998  echo $ECHO_N "(cached) $ECHO_C" >&6
25999else
26000  ac_check_lib_save_LIBS=$LIBS
26001LIBS="-lg++  $LIBS"
26002cat >conftest.$ac_ext <<_ACEOF
26003/* confdefs.h.  */
26004_ACEOF
26005cat confdefs.h >>conftest.$ac_ext
26006cat >>conftest.$ac_ext <<_ACEOF
26007/* end confdefs.h.  */
26008
26009
26010int
26011main ()
26012{
26013main ();
26014  ;
26015  return 0;
26016}
26017_ACEOF
26018rm -f conftest.$ac_objext conftest$ac_exeext
26019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26020  (eval $ac_link) 2>conftest.er1
26021  ac_status=$?
26022  grep -v '^ *+' conftest.er1 >conftest.err
26023  rm -f conftest.er1
26024  cat conftest.err >&5
26025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026  (exit $ac_status); } &&
26027	 { ac_try='test -z "$ac_c_werror_flag"
26028			 || test ! -s conftest.err'
26029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030  (eval $ac_try) 2>&5
26031  ac_status=$?
26032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033  (exit $ac_status); }; } &&
26034	 { ac_try='test -s conftest$ac_exeext'
26035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036  (eval $ac_try) 2>&5
26037  ac_status=$?
26038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039  (exit $ac_status); }; }; then
26040  ac_cv_lib_gpp_main=yes
26041else
26042  echo "$as_me: failed program was:" >&5
26043sed 's/^/| /' conftest.$ac_ext >&5
26044
26045ac_cv_lib_gpp_main=no
26046fi
26047rm -f conftest.err conftest.$ac_objext \
26048      conftest$ac_exeext conftest.$ac_ext
26049LIBS=$ac_check_lib_save_LIBS
26050fi
26051echo "$as_me:$LINENO: result: $ac_cv_lib_gpp_main" >&5
26052echo "${ECHO_T}$ac_cv_lib_gpp_main" >&6
26053if test $ac_cv_lib_gpp_main = yes; then
26054  cat >>confdefs.h <<_ACEOF
26055#define HAVE_LIBG__ 1
26056_ACEOF
26057
26058  LIBS="-lg++ $LIBS"
26059
26060fi
26061
26062
26063echo "$as_me:$LINENO: checking for main in -ldl" >&5
26064echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
26065if test "${ac_cv_lib_dl_main+set}" = set; then
26066  echo $ECHO_N "(cached) $ECHO_C" >&6
26067else
26068  ac_check_lib_save_LIBS=$LIBS
26069LIBS="-ldl  $LIBS"
26070cat >conftest.$ac_ext <<_ACEOF
26071/* confdefs.h.  */
26072_ACEOF
26073cat confdefs.h >>conftest.$ac_ext
26074cat >>conftest.$ac_ext <<_ACEOF
26075/* end confdefs.h.  */
26076
26077
26078int
26079main ()
26080{
26081main ();
26082  ;
26083  return 0;
26084}
26085_ACEOF
26086rm -f conftest.$ac_objext conftest$ac_exeext
26087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26088  (eval $ac_link) 2>conftest.er1
26089  ac_status=$?
26090  grep -v '^ *+' conftest.er1 >conftest.err
26091  rm -f conftest.er1
26092  cat conftest.err >&5
26093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094  (exit $ac_status); } &&
26095	 { ac_try='test -z "$ac_c_werror_flag"
26096			 || test ! -s conftest.err'
26097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098  (eval $ac_try) 2>&5
26099  ac_status=$?
26100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101  (exit $ac_status); }; } &&
26102	 { ac_try='test -s conftest$ac_exeext'
26103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104  (eval $ac_try) 2>&5
26105  ac_status=$?
26106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107  (exit $ac_status); }; }; then
26108  ac_cv_lib_dl_main=yes
26109else
26110  echo "$as_me: failed program was:" >&5
26111sed 's/^/| /' conftest.$ac_ext >&5
26112
26113ac_cv_lib_dl_main=no
26114fi
26115rm -f conftest.err conftest.$ac_objext \
26116      conftest$ac_exeext conftest.$ac_ext
26117LIBS=$ac_check_lib_save_LIBS
26118fi
26119echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
26120echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
26121if test $ac_cv_lib_dl_main = yes; then
26122  cat >>confdefs.h <<_ACEOF
26123#define HAVE_LIBDL 1
26124_ACEOF
26125
26126  LIBS="-ldl $LIBS"
26127
26128fi
26129
26130
26131if test "$with_new_keylayout" != 'no'
26132then
26133
26134cat >>confdefs.h <<_ACEOF
26135#define DX_NEW_KEYLAYOUT 1
26136_ACEOF
26137
26138fi
26139
26140
26141#
26142# Check for TIFF
26143#
26144have_tiff='no'
26145LIB_TIFF=''
26146if test "$with_tiff" != 'no'
26147then
26148    { echo "$as_me:$LINENO: checking for TIFF support ......" >&5
26149echo "$as_me: checking for TIFF support ......" >&6;}
26150    failed=0;
26151    passed=0;
26152    if test "${ac_cv_header_tiff_h+set}" = set; then
26153  echo "$as_me:$LINENO: checking for tiff.h" >&5
26154echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6
26155if test "${ac_cv_header_tiff_h+set}" = set; then
26156  echo $ECHO_N "(cached) $ECHO_C" >&6
26157fi
26158echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
26159echo "${ECHO_T}$ac_cv_header_tiff_h" >&6
26160else
26161  # Is the header compilable?
26162echo "$as_me:$LINENO: checking tiff.h usability" >&5
26163echo $ECHO_N "checking tiff.h usability... $ECHO_C" >&6
26164cat >conftest.$ac_ext <<_ACEOF
26165/* confdefs.h.  */
26166_ACEOF
26167cat confdefs.h >>conftest.$ac_ext
26168cat >>conftest.$ac_ext <<_ACEOF
26169/* end confdefs.h.  */
26170$ac_includes_default
26171#include <tiff.h>
26172_ACEOF
26173rm -f conftest.$ac_objext
26174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26175  (eval $ac_compile) 2>conftest.er1
26176  ac_status=$?
26177  grep -v '^ *+' conftest.er1 >conftest.err
26178  rm -f conftest.er1
26179  cat conftest.err >&5
26180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181  (exit $ac_status); } &&
26182	 { ac_try='test -z "$ac_c_werror_flag"
26183			 || test ! -s conftest.err'
26184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185  (eval $ac_try) 2>&5
26186  ac_status=$?
26187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188  (exit $ac_status); }; } &&
26189	 { ac_try='test -s conftest.$ac_objext'
26190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191  (eval $ac_try) 2>&5
26192  ac_status=$?
26193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194  (exit $ac_status); }; }; then
26195  ac_header_compiler=yes
26196else
26197  echo "$as_me: failed program was:" >&5
26198sed 's/^/| /' conftest.$ac_ext >&5
26199
26200ac_header_compiler=no
26201fi
26202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26204echo "${ECHO_T}$ac_header_compiler" >&6
26205
26206# Is the header present?
26207echo "$as_me:$LINENO: checking tiff.h presence" >&5
26208echo $ECHO_N "checking tiff.h presence... $ECHO_C" >&6
26209cat >conftest.$ac_ext <<_ACEOF
26210/* confdefs.h.  */
26211_ACEOF
26212cat confdefs.h >>conftest.$ac_ext
26213cat >>conftest.$ac_ext <<_ACEOF
26214/* end confdefs.h.  */
26215#include <tiff.h>
26216_ACEOF
26217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26218  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26219  ac_status=$?
26220  grep -v '^ *+' conftest.er1 >conftest.err
26221  rm -f conftest.er1
26222  cat conftest.err >&5
26223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224  (exit $ac_status); } >/dev/null; then
26225  if test -s conftest.err; then
26226    ac_cpp_err=$ac_c_preproc_warn_flag
26227    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26228  else
26229    ac_cpp_err=
26230  fi
26231else
26232  ac_cpp_err=yes
26233fi
26234if test -z "$ac_cpp_err"; then
26235  ac_header_preproc=yes
26236else
26237  echo "$as_me: failed program was:" >&5
26238sed 's/^/| /' conftest.$ac_ext >&5
26239
26240  ac_header_preproc=no
26241fi
26242rm -f conftest.err conftest.$ac_ext
26243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26244echo "${ECHO_T}$ac_header_preproc" >&6
26245
26246# So?  What about this header?
26247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26248  yes:no: )
26249    { echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
26250echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26251    { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
26252echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
26253    ac_header_preproc=yes
26254    ;;
26255  no:yes:* )
26256    { echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
26257echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
26258    { echo "$as_me:$LINENO: WARNING: tiff.h:     check for missing prerequisite headers?" >&5
26259echo "$as_me: WARNING: tiff.h:     check for missing prerequisite headers?" >&2;}
26260    { echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
26261echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
26262    { echo "$as_me:$LINENO: WARNING: tiff.h:     section \"Present But Cannot Be Compiled\"" >&5
26263echo "$as_me: WARNING: tiff.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26264    { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
26265echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
26266    { echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
26267echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
26268    (
26269      cat <<\_ASBOX
26270## ----------------------------- ##
26271## Report this to the dx lists.  ##
26272## ----------------------------- ##
26273_ASBOX
26274    ) |
26275      sed "s/^/$as_me: WARNING:     /" >&2
26276    ;;
26277esac
26278echo "$as_me:$LINENO: checking for tiff.h" >&5
26279echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6
26280if test "${ac_cv_header_tiff_h+set}" = set; then
26281  echo $ECHO_N "(cached) $ECHO_C" >&6
26282else
26283  ac_cv_header_tiff_h=$ac_header_preproc
26284fi
26285echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
26286echo "${ECHO_T}$ac_cv_header_tiff_h" >&6
26287
26288fi
26289if test $ac_cv_header_tiff_h = yes; then
26290  passed=`expr $passed + 1`
26291else
26292  failed=`expr $failed + 1`
26293fi
26294
26295
26296    if test "${ac_cv_header_tiffio_h+set}" = set; then
26297  echo "$as_me:$LINENO: checking for tiffio.h" >&5
26298echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26299if test "${ac_cv_header_tiffio_h+set}" = set; then
26300  echo $ECHO_N "(cached) $ECHO_C" >&6
26301fi
26302echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26303echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26304else
26305  # Is the header compilable?
26306echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26307echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26308cat >conftest.$ac_ext <<_ACEOF
26309/* confdefs.h.  */
26310_ACEOF
26311cat confdefs.h >>conftest.$ac_ext
26312cat >>conftest.$ac_ext <<_ACEOF
26313/* end confdefs.h.  */
26314$ac_includes_default
26315#include <tiffio.h>
26316_ACEOF
26317rm -f conftest.$ac_objext
26318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26319  (eval $ac_compile) 2>conftest.er1
26320  ac_status=$?
26321  grep -v '^ *+' conftest.er1 >conftest.err
26322  rm -f conftest.er1
26323  cat conftest.err >&5
26324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325  (exit $ac_status); } &&
26326	 { ac_try='test -z "$ac_c_werror_flag"
26327			 || test ! -s conftest.err'
26328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329  (eval $ac_try) 2>&5
26330  ac_status=$?
26331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332  (exit $ac_status); }; } &&
26333	 { ac_try='test -s conftest.$ac_objext'
26334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335  (eval $ac_try) 2>&5
26336  ac_status=$?
26337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338  (exit $ac_status); }; }; then
26339  ac_header_compiler=yes
26340else
26341  echo "$as_me: failed program was:" >&5
26342sed 's/^/| /' conftest.$ac_ext >&5
26343
26344ac_header_compiler=no
26345fi
26346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26348echo "${ECHO_T}$ac_header_compiler" >&6
26349
26350# Is the header present?
26351echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26352echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26353cat >conftest.$ac_ext <<_ACEOF
26354/* confdefs.h.  */
26355_ACEOF
26356cat confdefs.h >>conftest.$ac_ext
26357cat >>conftest.$ac_ext <<_ACEOF
26358/* end confdefs.h.  */
26359#include <tiffio.h>
26360_ACEOF
26361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26362  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26363  ac_status=$?
26364  grep -v '^ *+' conftest.er1 >conftest.err
26365  rm -f conftest.er1
26366  cat conftest.err >&5
26367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368  (exit $ac_status); } >/dev/null; then
26369  if test -s conftest.err; then
26370    ac_cpp_err=$ac_c_preproc_warn_flag
26371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26372  else
26373    ac_cpp_err=
26374  fi
26375else
26376  ac_cpp_err=yes
26377fi
26378if test -z "$ac_cpp_err"; then
26379  ac_header_preproc=yes
26380else
26381  echo "$as_me: failed program was:" >&5
26382sed 's/^/| /' conftest.$ac_ext >&5
26383
26384  ac_header_preproc=no
26385fi
26386rm -f conftest.err conftest.$ac_ext
26387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26388echo "${ECHO_T}$ac_header_preproc" >&6
26389
26390# So?  What about this header?
26391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26392  yes:no: )
26393    { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26394echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26395    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26396echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26397    ac_header_preproc=yes
26398    ;;
26399  no:yes:* )
26400    { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26401echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
26402    { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
26403echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
26404    { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26405echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26406    { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
26407echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26408    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26409echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26410    { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26411echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26412    (
26413      cat <<\_ASBOX
26414## ----------------------------- ##
26415## Report this to the dx lists.  ##
26416## ----------------------------- ##
26417_ASBOX
26418    ) |
26419      sed "s/^/$as_me: WARNING:     /" >&2
26420    ;;
26421esac
26422echo "$as_me:$LINENO: checking for tiffio.h" >&5
26423echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26424if test "${ac_cv_header_tiffio_h+set}" = set; then
26425  echo $ECHO_N "(cached) $ECHO_C" >&6
26426else
26427  ac_cv_header_tiffio_h=$ac_header_preproc
26428fi
26429echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26430echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26431
26432fi
26433if test $ac_cv_header_tiffio_h = yes; then
26434  passed=`expr $passed + 1`
26435else
26436  failed=`expr $failed + 1`
26437fi
26438
26439
26440    echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
26441echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6
26442if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
26443  echo $ECHO_N "(cached) $ECHO_C" >&6
26444else
26445  ac_check_lib_save_LIBS=$LIBS
26446LIBS="-ltiff  -lm   $LIBS"
26447cat >conftest.$ac_ext <<_ACEOF
26448/* confdefs.h.  */
26449_ACEOF
26450cat confdefs.h >>conftest.$ac_ext
26451cat >>conftest.$ac_ext <<_ACEOF
26452/* end confdefs.h.  */
26453
26454/* Override any gcc2 internal prototype to avoid an error.  */
26455#ifdef __cplusplus
26456extern "C"
26457#endif
26458/* We use char because int might match the return type of a gcc2
26459   builtin and then its argument prototype would still apply.  */
26460char TIFFOpen ();
26461int
26462main ()
26463{
26464TIFFOpen ();
26465  ;
26466  return 0;
26467}
26468_ACEOF
26469rm -f conftest.$ac_objext conftest$ac_exeext
26470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26471  (eval $ac_link) 2>conftest.er1
26472  ac_status=$?
26473  grep -v '^ *+' conftest.er1 >conftest.err
26474  rm -f conftest.er1
26475  cat conftest.err >&5
26476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477  (exit $ac_status); } &&
26478	 { ac_try='test -z "$ac_c_werror_flag"
26479			 || test ! -s conftest.err'
26480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481  (eval $ac_try) 2>&5
26482  ac_status=$?
26483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484  (exit $ac_status); }; } &&
26485	 { ac_try='test -s conftest$ac_exeext'
26486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487  (eval $ac_try) 2>&5
26488  ac_status=$?
26489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490  (exit $ac_status); }; }; then
26491  ac_cv_lib_tiff_TIFFOpen=yes
26492else
26493  echo "$as_me: failed program was:" >&5
26494sed 's/^/| /' conftest.$ac_ext >&5
26495
26496ac_cv_lib_tiff_TIFFOpen=no
26497fi
26498rm -f conftest.err conftest.$ac_objext \
26499      conftest$ac_exeext conftest.$ac_ext
26500LIBS=$ac_check_lib_save_LIBS
26501fi
26502echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
26503echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6
26504if test $ac_cv_lib_tiff_TIFFOpen = yes; then
26505  passed=`expr $passed + 1`
26506else
26507  failed=`expr $failed + 1`
26508fi
26509
26510    echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
26511echo $ECHO_N "checking if TIFF package is complete... $ECHO_C" >&6
26512    if test $passed -gt 0
26513    then
26514    if test $failed -gt 0
26515    then
26516	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
26517echo "${ECHO_T}no -- some components failed test" >&6
26518	have_tiff='no (failed tests)'
26519    else
26520	LIB_TIFF='-ltiff'
26521	LIBS="$LIB_TIFF $LIBS"
26522	FMT_LIBS="$FMT_LIBS libtiff.a"
26523
26524cat >>confdefs.h <<\_ACEOF
26525#define HAVE_LIBTIFF 1
26526_ACEOF
26527
26528	echo "$as_me:$LINENO: result: yes" >&5
26529echo "${ECHO_T}yes" >&6
26530	have_tiff='yes'
26531    fi
26532    else
26533    echo "$as_me:$LINENO: result: no" >&5
26534echo "${ECHO_T}no" >&6
26535    fi
26536fi
26537
26538#
26539# Check for Xpm
26540#
26541have_xpm='no'
26542LIB_XPM=''
26543{ echo "$as_me:$LINENO: checking for XPM support ......" >&5
26544echo "$as_me: checking for XPM support ......" >&6;}
26545failed=0;
26546passed=0;
26547
26548
26549for ac_header in xpm.h X11/xpm.h
26550do
26551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26552if eval "test \"\${$as_ac_Header+set}\" = set"; then
26553  echo "$as_me:$LINENO: checking for $ac_header" >&5
26554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26555if eval "test \"\${$as_ac_Header+set}\" = set"; then
26556  echo $ECHO_N "(cached) $ECHO_C" >&6
26557fi
26558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26560else
26561  # Is the header compilable?
26562echo "$as_me:$LINENO: checking $ac_header usability" >&5
26563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26564cat >conftest.$ac_ext <<_ACEOF
26565/* confdefs.h.  */
26566_ACEOF
26567cat confdefs.h >>conftest.$ac_ext
26568cat >>conftest.$ac_ext <<_ACEOF
26569/* end confdefs.h.  */
26570$ac_includes_default
26571#include <$ac_header>
26572_ACEOF
26573rm -f conftest.$ac_objext
26574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26575  (eval $ac_compile) 2>conftest.er1
26576  ac_status=$?
26577  grep -v '^ *+' conftest.er1 >conftest.err
26578  rm -f conftest.er1
26579  cat conftest.err >&5
26580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581  (exit $ac_status); } &&
26582	 { ac_try='test -z "$ac_c_werror_flag"
26583			 || test ! -s conftest.err'
26584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585  (eval $ac_try) 2>&5
26586  ac_status=$?
26587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588  (exit $ac_status); }; } &&
26589	 { ac_try='test -s conftest.$ac_objext'
26590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26591  (eval $ac_try) 2>&5
26592  ac_status=$?
26593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594  (exit $ac_status); }; }; then
26595  ac_header_compiler=yes
26596else
26597  echo "$as_me: failed program was:" >&5
26598sed 's/^/| /' conftest.$ac_ext >&5
26599
26600ac_header_compiler=no
26601fi
26602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26604echo "${ECHO_T}$ac_header_compiler" >&6
26605
26606# Is the header present?
26607echo "$as_me:$LINENO: checking $ac_header presence" >&5
26608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26609cat >conftest.$ac_ext <<_ACEOF
26610/* confdefs.h.  */
26611_ACEOF
26612cat confdefs.h >>conftest.$ac_ext
26613cat >>conftest.$ac_ext <<_ACEOF
26614/* end confdefs.h.  */
26615#include <$ac_header>
26616_ACEOF
26617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26618  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26619  ac_status=$?
26620  grep -v '^ *+' conftest.er1 >conftest.err
26621  rm -f conftest.er1
26622  cat conftest.err >&5
26623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624  (exit $ac_status); } >/dev/null; then
26625  if test -s conftest.err; then
26626    ac_cpp_err=$ac_c_preproc_warn_flag
26627    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26628  else
26629    ac_cpp_err=
26630  fi
26631else
26632  ac_cpp_err=yes
26633fi
26634if test -z "$ac_cpp_err"; then
26635  ac_header_preproc=yes
26636else
26637  echo "$as_me: failed program was:" >&5
26638sed 's/^/| /' conftest.$ac_ext >&5
26639
26640  ac_header_preproc=no
26641fi
26642rm -f conftest.err conftest.$ac_ext
26643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26644echo "${ECHO_T}$ac_header_preproc" >&6
26645
26646# So?  What about this header?
26647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26648  yes:no: )
26649    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26653    ac_header_preproc=yes
26654    ;;
26655  no:yes:* )
26656    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26658    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26659echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26660    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26662    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26663echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26664    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26666    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26668    (
26669      cat <<\_ASBOX
26670## ----------------------------- ##
26671## Report this to the dx lists.  ##
26672## ----------------------------- ##
26673_ASBOX
26674    ) |
26675      sed "s/^/$as_me: WARNING:     /" >&2
26676    ;;
26677esac
26678echo "$as_me:$LINENO: checking for $ac_header" >&5
26679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26680if eval "test \"\${$as_ac_Header+set}\" = set"; then
26681  echo $ECHO_N "(cached) $ECHO_C" >&6
26682else
26683  eval "$as_ac_Header=\$ac_header_preproc"
26684fi
26685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26687
26688fi
26689if test `eval echo '${'$as_ac_Header'}'` = yes; then
26690  cat >>confdefs.h <<_ACEOF
26691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26692_ACEOF
26693
26694fi
26695
26696done
26697
26698if test "$ac_cv_header_xpm_h" = 'yes' -o "$ac_cv_header_X11_xpm_h" = 'yes'
26699then
26700    passed=`expr $passed + 1`
26701else
26702    failed=`expr $failed + 1`
26703fi
26704echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
26705echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
26706if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
26707  echo $ECHO_N "(cached) $ECHO_C" >&6
26708else
26709  ac_check_lib_save_LIBS=$LIBS
26710LIBS="-lXpm  $LIBS"
26711cat >conftest.$ac_ext <<_ACEOF
26712/* confdefs.h.  */
26713_ACEOF
26714cat confdefs.h >>conftest.$ac_ext
26715cat >>conftest.$ac_ext <<_ACEOF
26716/* end confdefs.h.  */
26717
26718/* Override any gcc2 internal prototype to avoid an error.  */
26719#ifdef __cplusplus
26720extern "C"
26721#endif
26722/* We use char because int might match the return type of a gcc2
26723   builtin and then its argument prototype would still apply.  */
26724char XpmReadFileToPixmap ();
26725int
26726main ()
26727{
26728XpmReadFileToPixmap ();
26729  ;
26730  return 0;
26731}
26732_ACEOF
26733rm -f conftest.$ac_objext conftest$ac_exeext
26734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26735  (eval $ac_link) 2>conftest.er1
26736  ac_status=$?
26737  grep -v '^ *+' conftest.er1 >conftest.err
26738  rm -f conftest.er1
26739  cat conftest.err >&5
26740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741  (exit $ac_status); } &&
26742	 { ac_try='test -z "$ac_c_werror_flag"
26743			 || test ! -s conftest.err'
26744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745  (eval $ac_try) 2>&5
26746  ac_status=$?
26747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748  (exit $ac_status); }; } &&
26749	 { ac_try='test -s conftest$ac_exeext'
26750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751  (eval $ac_try) 2>&5
26752  ac_status=$?
26753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754  (exit $ac_status); }; }; then
26755  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
26756else
26757  echo "$as_me: failed program was:" >&5
26758sed 's/^/| /' conftest.$ac_ext >&5
26759
26760ac_cv_lib_Xpm_XpmReadFileToPixmap=no
26761fi
26762rm -f conftest.err conftest.$ac_objext \
26763      conftest$ac_exeext conftest.$ac_ext
26764LIBS=$ac_check_lib_save_LIBS
26765fi
26766echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
26767echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
26768if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
26769  passed=`expr $passed + 1`
26770else
26771  failed=`expr $failed + 1`
26772fi
26773
26774echo "$as_me:$LINENO: checking if XPM package is complete" >&5
26775echo $ECHO_N "checking if XPM package is complete... $ECHO_C" >&6
26776if test $passed -gt 0
26777then
26778    if test $failed -gt 0
26779    then
26780	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
26781echo "${ECHO_T}no -- some components failed test" >&6
26782	have_xpm='no (failed tests)'
26783    else
26784	LIB_XPM='-lXpm'
26785	LIBS="$LIB_XPM $LIBS"
26786
26787cat >>confdefs.h <<\_ACEOF
26788#define HAVE_LIBXPM 1
26789_ACEOF
26790
26791	echo "$as_me:$LINENO: result: yes" >&5
26792echo "${ECHO_T}yes" >&6
26793	have_xpm='yes'
26794    fi
26795else
26796echo "$as_me:$LINENO: result: no" >&5
26797echo "${ECHO_T}no" >&6
26798fi
26799
26800
26801#
26802# Check for HDF
26803#
26804have_hdf='no'
26805LIB_HDF=''
26806if test "$with_hdf" != 'no'
26807then
26808    { echo "$as_me:$LINENO: checking for HDF components ......" >&5
26809echo "$as_me: checking for HDF components ......" >&6;}
26810    failed=0;
26811    passed=0;
26812
26813
26814for ac_header in dfsd.h hdf/dfsd.h
26815do
26816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26817if eval "test \"\${$as_ac_Header+set}\" = set"; then
26818  echo "$as_me:$LINENO: checking for $ac_header" >&5
26819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26820if eval "test \"\${$as_ac_Header+set}\" = set"; then
26821  echo $ECHO_N "(cached) $ECHO_C" >&6
26822fi
26823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26825else
26826  # Is the header compilable?
26827echo "$as_me:$LINENO: checking $ac_header usability" >&5
26828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26829cat >conftest.$ac_ext <<_ACEOF
26830/* confdefs.h.  */
26831_ACEOF
26832cat confdefs.h >>conftest.$ac_ext
26833cat >>conftest.$ac_ext <<_ACEOF
26834/* end confdefs.h.  */
26835$ac_includes_default
26836#include <$ac_header>
26837_ACEOF
26838rm -f conftest.$ac_objext
26839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26840  (eval $ac_compile) 2>conftest.er1
26841  ac_status=$?
26842  grep -v '^ *+' conftest.er1 >conftest.err
26843  rm -f conftest.er1
26844  cat conftest.err >&5
26845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846  (exit $ac_status); } &&
26847	 { ac_try='test -z "$ac_c_werror_flag"
26848			 || test ! -s conftest.err'
26849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850  (eval $ac_try) 2>&5
26851  ac_status=$?
26852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853  (exit $ac_status); }; } &&
26854	 { ac_try='test -s conftest.$ac_objext'
26855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856  (eval $ac_try) 2>&5
26857  ac_status=$?
26858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859  (exit $ac_status); }; }; then
26860  ac_header_compiler=yes
26861else
26862  echo "$as_me: failed program was:" >&5
26863sed 's/^/| /' conftest.$ac_ext >&5
26864
26865ac_header_compiler=no
26866fi
26867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26868echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26869echo "${ECHO_T}$ac_header_compiler" >&6
26870
26871# Is the header present?
26872echo "$as_me:$LINENO: checking $ac_header presence" >&5
26873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26874cat >conftest.$ac_ext <<_ACEOF
26875/* confdefs.h.  */
26876_ACEOF
26877cat confdefs.h >>conftest.$ac_ext
26878cat >>conftest.$ac_ext <<_ACEOF
26879/* end confdefs.h.  */
26880#include <$ac_header>
26881_ACEOF
26882if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26883  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26884  ac_status=$?
26885  grep -v '^ *+' conftest.er1 >conftest.err
26886  rm -f conftest.er1
26887  cat conftest.err >&5
26888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889  (exit $ac_status); } >/dev/null; then
26890  if test -s conftest.err; then
26891    ac_cpp_err=$ac_c_preproc_warn_flag
26892    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26893  else
26894    ac_cpp_err=
26895  fi
26896else
26897  ac_cpp_err=yes
26898fi
26899if test -z "$ac_cpp_err"; then
26900  ac_header_preproc=yes
26901else
26902  echo "$as_me: failed program was:" >&5
26903sed 's/^/| /' conftest.$ac_ext >&5
26904
26905  ac_header_preproc=no
26906fi
26907rm -f conftest.err conftest.$ac_ext
26908echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26909echo "${ECHO_T}$ac_header_preproc" >&6
26910
26911# So?  What about this header?
26912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26913  yes:no: )
26914    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26915echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26916    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26917echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26918    ac_header_preproc=yes
26919    ;;
26920  no:yes:* )
26921    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26922echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26923    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26924echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26925    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26926echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26927    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26928echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26929    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26931    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26932echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26933    (
26934      cat <<\_ASBOX
26935## ----------------------------- ##
26936## Report this to the dx lists.  ##
26937## ----------------------------- ##
26938_ASBOX
26939    ) |
26940      sed "s/^/$as_me: WARNING:     /" >&2
26941    ;;
26942esac
26943echo "$as_me:$LINENO: checking for $ac_header" >&5
26944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26945if eval "test \"\${$as_ac_Header+set}\" = set"; then
26946  echo $ECHO_N "(cached) $ECHO_C" >&6
26947else
26948  eval "$as_ac_Header=\$ac_header_preproc"
26949fi
26950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26952
26953fi
26954if test `eval echo '${'$as_ac_Header'}'` = yes; then
26955  cat >>confdefs.h <<_ACEOF
26956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26957_ACEOF
26958
26959fi
26960
26961done
26962
26963    if test "$ac_cv_header_dfsd_h" = 'yes' -o "$ac_cv_header_hdf_dfsd_h" = 'yes'
26964    then
26965    	passed=`expr $passed + 1`
26966    else
26967    	failed=`expr $failed + 1`
26968    fi
26969if test "$ARCH" = "intelnt" ; then
26970    echo "$as_me:$LINENO: checking for Hopen in -lhd421m" >&5
26971echo $ECHO_N "checking for Hopen in -lhd421m... $ECHO_C" >&6
26972if test "${ac_cv_lib_hd421m_Hopen+set}" = set; then
26973  echo $ECHO_N "(cached) $ECHO_C" >&6
26974else
26975  ac_check_lib_save_LIBS=$LIBS
26976LIBS="-lhd421m  hm421m.lib  $LIBS"
26977cat >conftest.$ac_ext <<_ACEOF
26978/* confdefs.h.  */
26979_ACEOF
26980cat confdefs.h >>conftest.$ac_ext
26981cat >>conftest.$ac_ext <<_ACEOF
26982/* end confdefs.h.  */
26983
26984/* Override any gcc2 internal prototype to avoid an error.  */
26985#ifdef __cplusplus
26986extern "C"
26987#endif
26988/* We use char because int might match the return type of a gcc2
26989   builtin and then its argument prototype would still apply.  */
26990char Hopen ();
26991int
26992main ()
26993{
26994Hopen ();
26995  ;
26996  return 0;
26997}
26998_ACEOF
26999rm -f conftest.$ac_objext conftest$ac_exeext
27000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27001  (eval $ac_link) 2>conftest.er1
27002  ac_status=$?
27003  grep -v '^ *+' conftest.er1 >conftest.err
27004  rm -f conftest.er1
27005  cat conftest.err >&5
27006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007  (exit $ac_status); } &&
27008	 { ac_try='test -z "$ac_c_werror_flag"
27009			 || test ! -s conftest.err'
27010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27011  (eval $ac_try) 2>&5
27012  ac_status=$?
27013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014  (exit $ac_status); }; } &&
27015	 { ac_try='test -s conftest$ac_exeext'
27016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017  (eval $ac_try) 2>&5
27018  ac_status=$?
27019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020  (exit $ac_status); }; }; then
27021  ac_cv_lib_hd421m_Hopen=yes
27022else
27023  echo "$as_me: failed program was:" >&5
27024sed 's/^/| /' conftest.$ac_ext >&5
27025
27026ac_cv_lib_hd421m_Hopen=no
27027fi
27028rm -f conftest.err conftest.$ac_objext \
27029      conftest$ac_exeext conftest.$ac_ext
27030LIBS=$ac_check_lib_save_LIBS
27031fi
27032echo "$as_me:$LINENO: result: $ac_cv_lib_hd421m_Hopen" >&5
27033echo "${ECHO_T}$ac_cv_lib_hd421m_Hopen" >&6
27034if test $ac_cv_lib_hd421m_Hopen = yes; then
27035  passed=`expr $passed + 1`
27036else
27037  failed=`expr $failed + 1`
27038fi
27039
27040    echo "$as_me:$LINENO: checking if HDF package is complete" >&5
27041echo $ECHO_N "checking if HDF package is complete... $ECHO_C" >&6
27042    if test $passed -gt 0
27043    then
27044    if test $failed -gt 0
27045    then
27046	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
27047echo "${ECHO_T}no -- some components failed test" >&6
27048        have_hdf='no (failed tests)'
27049    else
27050	LIB_HDF='-lhm421m'
27051	LIBS="$LIB_HDF $LIBS"
27052	FMT_LIBS="$FMT_LIBS hm421m.lib"
27053
27054cat >>confdefs.h <<\_ACEOF
27055#define HAVE_LIBDF 1
27056_ACEOF
27057
27058	echo "$as_me:$LINENO: result: yes" >&5
27059echo "${ECHO_T}yes" >&6
27060	have_hdf='yes'
27061    fi
27062    else
27063    echo "$as_me:$LINENO: result: no" >&5
27064echo "${ECHO_T}no" >&6
27065    fi
27066else
27067    echo "$as_me:$LINENO: checking for Hopen in -ldf" >&5
27068echo $ECHO_N "checking for Hopen in -ldf... $ECHO_C" >&6
27069if test "${ac_cv_lib_df_Hopen+set}" = set; then
27070  echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
27072  ac_check_lib_save_LIBS=$LIBS
27073LIBS="-ldf  -lz -ljpeg  $LIBS"
27074cat >conftest.$ac_ext <<_ACEOF
27075/* confdefs.h.  */
27076_ACEOF
27077cat confdefs.h >>conftest.$ac_ext
27078cat >>conftest.$ac_ext <<_ACEOF
27079/* end confdefs.h.  */
27080
27081/* Override any gcc2 internal prototype to avoid an error.  */
27082#ifdef __cplusplus
27083extern "C"
27084#endif
27085/* We use char because int might match the return type of a gcc2
27086   builtin and then its argument prototype would still apply.  */
27087char Hopen ();
27088int
27089main ()
27090{
27091Hopen ();
27092  ;
27093  return 0;
27094}
27095_ACEOF
27096rm -f conftest.$ac_objext conftest$ac_exeext
27097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27098  (eval $ac_link) 2>conftest.er1
27099  ac_status=$?
27100  grep -v '^ *+' conftest.er1 >conftest.err
27101  rm -f conftest.er1
27102  cat conftest.err >&5
27103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104  (exit $ac_status); } &&
27105	 { ac_try='test -z "$ac_c_werror_flag"
27106			 || test ! -s conftest.err'
27107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108  (eval $ac_try) 2>&5
27109  ac_status=$?
27110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111  (exit $ac_status); }; } &&
27112	 { ac_try='test -s conftest$ac_exeext'
27113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114  (eval $ac_try) 2>&5
27115  ac_status=$?
27116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117  (exit $ac_status); }; }; then
27118  ac_cv_lib_df_Hopen=yes
27119else
27120  echo "$as_me: failed program was:" >&5
27121sed 's/^/| /' conftest.$ac_ext >&5
27122
27123ac_cv_lib_df_Hopen=no
27124fi
27125rm -f conftest.err conftest.$ac_objext \
27126      conftest$ac_exeext conftest.$ac_ext
27127LIBS=$ac_check_lib_save_LIBS
27128fi
27129echo "$as_me:$LINENO: result: $ac_cv_lib_df_Hopen" >&5
27130echo "${ECHO_T}$ac_cv_lib_df_Hopen" >&6
27131if test $ac_cv_lib_df_Hopen = yes; then
27132  passed=`expr $passed + 1`
27133else
27134  failed=`expr $failed + 1`
27135fi
27136
27137    echo "$as_me:$LINENO: checking if HDF package is complete" >&5
27138echo $ECHO_N "checking if HDF package is complete... $ECHO_C" >&6
27139    if test $passed -gt 0
27140    then
27141    if test $failed -gt 0
27142    then
27143	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
27144echo "${ECHO_T}no -- some components failed test" >&6
27145        have_hdf='no (failed tests)'
27146    else
27147	LIB_HDF='-ldf'
27148	LIBS="$LIB_HDF $LIBS"
27149	FMT_LIBS="$FMT_LIBS libdf.a"
27150
27151cat >>confdefs.h <<\_ACEOF
27152#define HAVE_LIBDF 1
27153_ACEOF
27154
27155	echo "$as_me:$LINENO: result: yes" >&5
27156echo "${ECHO_T}yes" >&6
27157	have_hdf='yes'
27158    fi
27159    else
27160    echo "$as_me:$LINENO: result: no" >&5
27161echo "${ECHO_T}no" >&6
27162    fi
27163fi
27164fi
27165
27166
27167#
27168# Check for CDF
27169#
27170have_cdf='no'
27171LIB_CDF=''
27172if test "$with_cdf" != 'no'
27173then
27174    { echo "$as_me:$LINENO: checking for CDF support ......" >&5
27175echo "$as_me: checking for CDF support ......" >&6;}
27176    failed=0;
27177    passed=0;
27178    if test "${ac_cv_header_cdf_h+set}" = set; then
27179  echo "$as_me:$LINENO: checking for cdf.h" >&5
27180echo $ECHO_N "checking for cdf.h... $ECHO_C" >&6
27181if test "${ac_cv_header_cdf_h+set}" = set; then
27182  echo $ECHO_N "(cached) $ECHO_C" >&6
27183fi
27184echo "$as_me:$LINENO: result: $ac_cv_header_cdf_h" >&5
27185echo "${ECHO_T}$ac_cv_header_cdf_h" >&6
27186else
27187  # Is the header compilable?
27188echo "$as_me:$LINENO: checking cdf.h usability" >&5
27189echo $ECHO_N "checking cdf.h usability... $ECHO_C" >&6
27190cat >conftest.$ac_ext <<_ACEOF
27191/* confdefs.h.  */
27192_ACEOF
27193cat confdefs.h >>conftest.$ac_ext
27194cat >>conftest.$ac_ext <<_ACEOF
27195/* end confdefs.h.  */
27196$ac_includes_default
27197#include <cdf.h>
27198_ACEOF
27199rm -f conftest.$ac_objext
27200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27201  (eval $ac_compile) 2>conftest.er1
27202  ac_status=$?
27203  grep -v '^ *+' conftest.er1 >conftest.err
27204  rm -f conftest.er1
27205  cat conftest.err >&5
27206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207  (exit $ac_status); } &&
27208	 { ac_try='test -z "$ac_c_werror_flag"
27209			 || test ! -s conftest.err'
27210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211  (eval $ac_try) 2>&5
27212  ac_status=$?
27213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214  (exit $ac_status); }; } &&
27215	 { ac_try='test -s conftest.$ac_objext'
27216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217  (eval $ac_try) 2>&5
27218  ac_status=$?
27219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220  (exit $ac_status); }; }; then
27221  ac_header_compiler=yes
27222else
27223  echo "$as_me: failed program was:" >&5
27224sed 's/^/| /' conftest.$ac_ext >&5
27225
27226ac_header_compiler=no
27227fi
27228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27230echo "${ECHO_T}$ac_header_compiler" >&6
27231
27232# Is the header present?
27233echo "$as_me:$LINENO: checking cdf.h presence" >&5
27234echo $ECHO_N "checking cdf.h presence... $ECHO_C" >&6
27235cat >conftest.$ac_ext <<_ACEOF
27236/* confdefs.h.  */
27237_ACEOF
27238cat confdefs.h >>conftest.$ac_ext
27239cat >>conftest.$ac_ext <<_ACEOF
27240/* end confdefs.h.  */
27241#include <cdf.h>
27242_ACEOF
27243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27245  ac_status=$?
27246  grep -v '^ *+' conftest.er1 >conftest.err
27247  rm -f conftest.er1
27248  cat conftest.err >&5
27249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250  (exit $ac_status); } >/dev/null; then
27251  if test -s conftest.err; then
27252    ac_cpp_err=$ac_c_preproc_warn_flag
27253    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27254  else
27255    ac_cpp_err=
27256  fi
27257else
27258  ac_cpp_err=yes
27259fi
27260if test -z "$ac_cpp_err"; then
27261  ac_header_preproc=yes
27262else
27263  echo "$as_me: failed program was:" >&5
27264sed 's/^/| /' conftest.$ac_ext >&5
27265
27266  ac_header_preproc=no
27267fi
27268rm -f conftest.err conftest.$ac_ext
27269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27270echo "${ECHO_T}$ac_header_preproc" >&6
27271
27272# So?  What about this header?
27273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27274  yes:no: )
27275    { echo "$as_me:$LINENO: WARNING: cdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
27276echo "$as_me: WARNING: cdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27277    { echo "$as_me:$LINENO: WARNING: cdf.h: proceeding with the compiler's result" >&5
27278echo "$as_me: WARNING: cdf.h: proceeding with the compiler's result" >&2;}
27279    ac_header_preproc=yes
27280    ;;
27281  no:yes:* )
27282    { echo "$as_me:$LINENO: WARNING: cdf.h: present but cannot be compiled" >&5
27283echo "$as_me: WARNING: cdf.h: present but cannot be compiled" >&2;}
27284    { echo "$as_me:$LINENO: WARNING: cdf.h:     check for missing prerequisite headers?" >&5
27285echo "$as_me: WARNING: cdf.h:     check for missing prerequisite headers?" >&2;}
27286    { echo "$as_me:$LINENO: WARNING: cdf.h: see the Autoconf documentation" >&5
27287echo "$as_me: WARNING: cdf.h: see the Autoconf documentation" >&2;}
27288    { echo "$as_me:$LINENO: WARNING: cdf.h:     section \"Present But Cannot Be Compiled\"" >&5
27289echo "$as_me: WARNING: cdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27290    { echo "$as_me:$LINENO: WARNING: cdf.h: proceeding with the preprocessor's result" >&5
27291echo "$as_me: WARNING: cdf.h: proceeding with the preprocessor's result" >&2;}
27292    { echo "$as_me:$LINENO: WARNING: cdf.h: in the future, the compiler will take precedence" >&5
27293echo "$as_me: WARNING: cdf.h: in the future, the compiler will take precedence" >&2;}
27294    (
27295      cat <<\_ASBOX
27296## ----------------------------- ##
27297## Report this to the dx lists.  ##
27298## ----------------------------- ##
27299_ASBOX
27300    ) |
27301      sed "s/^/$as_me: WARNING:     /" >&2
27302    ;;
27303esac
27304echo "$as_me:$LINENO: checking for cdf.h" >&5
27305echo $ECHO_N "checking for cdf.h... $ECHO_C" >&6
27306if test "${ac_cv_header_cdf_h+set}" = set; then
27307  echo $ECHO_N "(cached) $ECHO_C" >&6
27308else
27309  ac_cv_header_cdf_h=$ac_header_preproc
27310fi
27311echo "$as_me:$LINENO: result: $ac_cv_header_cdf_h" >&5
27312echo "${ECHO_T}$ac_cv_header_cdf_h" >&6
27313
27314fi
27315if test $ac_cv_header_cdf_h = yes; then
27316  passed=`expr $passed + 1`
27317else
27318  failed=`expr $failed + 1`
27319fi
27320
27321
27322if test "$ARCH" = "intelnt" ; then
27323    echo "$as_me:$LINENO: checking for Hopen in -ldllcdf" >&5
27324echo $ECHO_N "checking for Hopen in -ldllcdf... $ECHO_C" >&6
27325if test "${ac_cv_lib_dllcdf_Hopen+set}" = set; then
27326  echo $ECHO_N "(cached) $ECHO_C" >&6
27327else
27328  ac_check_lib_save_LIBS=$LIBS
27329LIBS="-ldllcdf  $LIBS"
27330cat >conftest.$ac_ext <<_ACEOF
27331/* confdefs.h.  */
27332_ACEOF
27333cat confdefs.h >>conftest.$ac_ext
27334cat >>conftest.$ac_ext <<_ACEOF
27335/* end confdefs.h.  */
27336
27337/* Override any gcc2 internal prototype to avoid an error.  */
27338#ifdef __cplusplus
27339extern "C"
27340#endif
27341/* We use char because int might match the return type of a gcc2
27342   builtin and then its argument prototype would still apply.  */
27343char Hopen ();
27344int
27345main ()
27346{
27347Hopen ();
27348  ;
27349  return 0;
27350}
27351_ACEOF
27352rm -f conftest.$ac_objext conftest$ac_exeext
27353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27354  (eval $ac_link) 2>conftest.er1
27355  ac_status=$?
27356  grep -v '^ *+' conftest.er1 >conftest.err
27357  rm -f conftest.er1
27358  cat conftest.err >&5
27359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360  (exit $ac_status); } &&
27361	 { ac_try='test -z "$ac_c_werror_flag"
27362			 || test ! -s conftest.err'
27363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27364  (eval $ac_try) 2>&5
27365  ac_status=$?
27366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367  (exit $ac_status); }; } &&
27368	 { ac_try='test -s conftest$ac_exeext'
27369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370  (eval $ac_try) 2>&5
27371  ac_status=$?
27372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373  (exit $ac_status); }; }; then
27374  ac_cv_lib_dllcdf_Hopen=yes
27375else
27376  echo "$as_me: failed program was:" >&5
27377sed 's/^/| /' conftest.$ac_ext >&5
27378
27379ac_cv_lib_dllcdf_Hopen=no
27380fi
27381rm -f conftest.err conftest.$ac_objext \
27382      conftest$ac_exeext conftest.$ac_ext
27383LIBS=$ac_check_lib_save_LIBS
27384fi
27385echo "$as_me:$LINENO: result: $ac_cv_lib_dllcdf_Hopen" >&5
27386echo "${ECHO_T}$ac_cv_lib_dllcdf_Hopen" >&6
27387if test $ac_cv_lib_dllcdf_Hopen = yes; then
27388  passed=`expr $passed + 1`
27389else
27390  failed=`expr $failed + 1`
27391fi
27392
27393    echo "$as_me:$LINENO: checking if CDF package is complete" >&5
27394echo $ECHO_N "checking if CDF package is complete... $ECHO_C" >&6
27395    if test $passed -gt 0
27396    then
27397    if test $failed -gt 0
27398    then
27399	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
27400echo "${ECHO_T}no -- some components failed test" >&6
27401        have_cdf='no (failed tests)'
27402    else
27403	LIB_HDF='-ldllcdf'
27404	LIBS="$LIB_HDF $LIBS"
27405	FMT_LIBS="$FMT_LIBS dllcdf.lib"
27406
27407cat >>confdefs.h <<\_ACEOF
27408#define HAVE_LIBCDF 1
27409_ACEOF
27410
27411	echo "$as_me:$LINENO: result: yes" >&5
27412echo "${ECHO_T}yes" >&6
27413	have_cdf='yes'
27414    fi
27415    else
27416    echo "$as_me:$LINENO: result: no" >&5
27417echo "${ECHO_T}no" >&6
27418    fi
27419else
27420    echo "$as_me:$LINENO: checking for CDFlib in -lcdf" >&5
27421echo $ECHO_N "checking for CDFlib in -lcdf... $ECHO_C" >&6
27422if test "${ac_cv_lib_cdf_CDFlib+set}" = set; then
27423  echo $ECHO_N "(cached) $ECHO_C" >&6
27424else
27425  ac_check_lib_save_LIBS=$LIBS
27426LIBS="-lcdf  $LIBS"
27427cat >conftest.$ac_ext <<_ACEOF
27428/* confdefs.h.  */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h.  */
27433
27434/* Override any gcc2 internal prototype to avoid an error.  */
27435#ifdef __cplusplus
27436extern "C"
27437#endif
27438/* We use char because int might match the return type of a gcc2
27439   builtin and then its argument prototype would still apply.  */
27440char CDFlib ();
27441int
27442main ()
27443{
27444CDFlib ();
27445  ;
27446  return 0;
27447}
27448_ACEOF
27449rm -f conftest.$ac_objext conftest$ac_exeext
27450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27451  (eval $ac_link) 2>conftest.er1
27452  ac_status=$?
27453  grep -v '^ *+' conftest.er1 >conftest.err
27454  rm -f conftest.er1
27455  cat conftest.err >&5
27456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457  (exit $ac_status); } &&
27458	 { ac_try='test -z "$ac_c_werror_flag"
27459			 || test ! -s conftest.err'
27460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461  (eval $ac_try) 2>&5
27462  ac_status=$?
27463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464  (exit $ac_status); }; } &&
27465	 { ac_try='test -s conftest$ac_exeext'
27466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467  (eval $ac_try) 2>&5
27468  ac_status=$?
27469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470  (exit $ac_status); }; }; then
27471  ac_cv_lib_cdf_CDFlib=yes
27472else
27473  echo "$as_me: failed program was:" >&5
27474sed 's/^/| /' conftest.$ac_ext >&5
27475
27476ac_cv_lib_cdf_CDFlib=no
27477fi
27478rm -f conftest.err conftest.$ac_objext \
27479      conftest$ac_exeext conftest.$ac_ext
27480LIBS=$ac_check_lib_save_LIBS
27481fi
27482echo "$as_me:$LINENO: result: $ac_cv_lib_cdf_CDFlib" >&5
27483echo "${ECHO_T}$ac_cv_lib_cdf_CDFlib" >&6
27484if test $ac_cv_lib_cdf_CDFlib = yes; then
27485  passed=`expr $passed + 1`
27486else
27487  failed=`expr $failed + 1`
27488fi
27489
27490    echo "$as_me:$LINENO: checking if CDF package is complete" >&5
27491echo $ECHO_N "checking if CDF package is complete... $ECHO_C" >&6
27492    if test $passed -gt 0
27493    then
27494    if test $failed -gt 0
27495    then
27496	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
27497echo "${ECHO_T}no -- some components failed test" >&6
27498        have_cdf='no (failed tests)'
27499    else
27500	LIB_CDF='-lcdf'
27501	LIBS="$LIB_CDF $LIBS"
27502	FMT_LIBS="$FMT_LIBS libcdf.a"
27503
27504cat >>confdefs.h <<\_ACEOF
27505#define HAVE_LIBCDF 1
27506_ACEOF
27507
27508	echo "$as_me:$LINENO: result: yes" >&5
27509echo "${ECHO_T}yes" >&6
27510        have_cdf='yes'
27511    fi
27512    else
27513        echo "$as_me:$LINENO: result: no" >&5
27514echo "${ECHO_T}no" >&6
27515    fi
27516fi
27517fi
27518
27519
27520#
27521# Check for NETCDF
27522#
27523have_netcdf='no'
27524LIB_NETCDF=''
27525if test "$with_netcdf" != 'no'
27526then
27527    { echo "$as_me:$LINENO: checking for NETCDF support ......" >&5
27528echo "$as_me: checking for NETCDF support ......" >&6;}
27529    failed=0;
27530    passed=0;
27531    if test "${ac_cv_header_netcdf_h+set}" = set; then
27532  echo "$as_me:$LINENO: checking for netcdf.h" >&5
27533echo $ECHO_N "checking for netcdf.h... $ECHO_C" >&6
27534if test "${ac_cv_header_netcdf_h+set}" = set; then
27535  echo $ECHO_N "(cached) $ECHO_C" >&6
27536fi
27537echo "$as_me:$LINENO: result: $ac_cv_header_netcdf_h" >&5
27538echo "${ECHO_T}$ac_cv_header_netcdf_h" >&6
27539else
27540  # Is the header compilable?
27541echo "$as_me:$LINENO: checking netcdf.h usability" >&5
27542echo $ECHO_N "checking netcdf.h usability... $ECHO_C" >&6
27543cat >conftest.$ac_ext <<_ACEOF
27544/* confdefs.h.  */
27545_ACEOF
27546cat confdefs.h >>conftest.$ac_ext
27547cat >>conftest.$ac_ext <<_ACEOF
27548/* end confdefs.h.  */
27549$ac_includes_default
27550#include <netcdf.h>
27551_ACEOF
27552rm -f conftest.$ac_objext
27553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27554  (eval $ac_compile) 2>conftest.er1
27555  ac_status=$?
27556  grep -v '^ *+' conftest.er1 >conftest.err
27557  rm -f conftest.er1
27558  cat conftest.err >&5
27559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560  (exit $ac_status); } &&
27561	 { ac_try='test -z "$ac_c_werror_flag"
27562			 || test ! -s conftest.err'
27563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27564  (eval $ac_try) 2>&5
27565  ac_status=$?
27566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567  (exit $ac_status); }; } &&
27568	 { ac_try='test -s conftest.$ac_objext'
27569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570  (eval $ac_try) 2>&5
27571  ac_status=$?
27572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573  (exit $ac_status); }; }; then
27574  ac_header_compiler=yes
27575else
27576  echo "$as_me: failed program was:" >&5
27577sed 's/^/| /' conftest.$ac_ext >&5
27578
27579ac_header_compiler=no
27580fi
27581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27582echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27583echo "${ECHO_T}$ac_header_compiler" >&6
27584
27585# Is the header present?
27586echo "$as_me:$LINENO: checking netcdf.h presence" >&5
27587echo $ECHO_N "checking netcdf.h presence... $ECHO_C" >&6
27588cat >conftest.$ac_ext <<_ACEOF
27589/* confdefs.h.  */
27590_ACEOF
27591cat confdefs.h >>conftest.$ac_ext
27592cat >>conftest.$ac_ext <<_ACEOF
27593/* end confdefs.h.  */
27594#include <netcdf.h>
27595_ACEOF
27596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27597  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27598  ac_status=$?
27599  grep -v '^ *+' conftest.er1 >conftest.err
27600  rm -f conftest.er1
27601  cat conftest.err >&5
27602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603  (exit $ac_status); } >/dev/null; then
27604  if test -s conftest.err; then
27605    ac_cpp_err=$ac_c_preproc_warn_flag
27606    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27607  else
27608    ac_cpp_err=
27609  fi
27610else
27611  ac_cpp_err=yes
27612fi
27613if test -z "$ac_cpp_err"; then
27614  ac_header_preproc=yes
27615else
27616  echo "$as_me: failed program was:" >&5
27617sed 's/^/| /' conftest.$ac_ext >&5
27618
27619  ac_header_preproc=no
27620fi
27621rm -f conftest.err conftest.$ac_ext
27622echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27623echo "${ECHO_T}$ac_header_preproc" >&6
27624
27625# So?  What about this header?
27626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27627  yes:no: )
27628    { echo "$as_me:$LINENO: WARNING: netcdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
27629echo "$as_me: WARNING: netcdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27630    { echo "$as_me:$LINENO: WARNING: netcdf.h: proceeding with the compiler's result" >&5
27631echo "$as_me: WARNING: netcdf.h: proceeding with the compiler's result" >&2;}
27632    ac_header_preproc=yes
27633    ;;
27634  no:yes:* )
27635    { echo "$as_me:$LINENO: WARNING: netcdf.h: present but cannot be compiled" >&5
27636echo "$as_me: WARNING: netcdf.h: present but cannot be compiled" >&2;}
27637    { echo "$as_me:$LINENO: WARNING: netcdf.h:     check for missing prerequisite headers?" >&5
27638echo "$as_me: WARNING: netcdf.h:     check for missing prerequisite headers?" >&2;}
27639    { echo "$as_me:$LINENO: WARNING: netcdf.h: see the Autoconf documentation" >&5
27640echo "$as_me: WARNING: netcdf.h: see the Autoconf documentation" >&2;}
27641    { echo "$as_me:$LINENO: WARNING: netcdf.h:     section \"Present But Cannot Be Compiled\"" >&5
27642echo "$as_me: WARNING: netcdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27643    { echo "$as_me:$LINENO: WARNING: netcdf.h: proceeding with the preprocessor's result" >&5
27644echo "$as_me: WARNING: netcdf.h: proceeding with the preprocessor's result" >&2;}
27645    { echo "$as_me:$LINENO: WARNING: netcdf.h: in the future, the compiler will take precedence" >&5
27646echo "$as_me: WARNING: netcdf.h: in the future, the compiler will take precedence" >&2;}
27647    (
27648      cat <<\_ASBOX
27649## ----------------------------- ##
27650## Report this to the dx lists.  ##
27651## ----------------------------- ##
27652_ASBOX
27653    ) |
27654      sed "s/^/$as_me: WARNING:     /" >&2
27655    ;;
27656esac
27657echo "$as_me:$LINENO: checking for netcdf.h" >&5
27658echo $ECHO_N "checking for netcdf.h... $ECHO_C" >&6
27659if test "${ac_cv_header_netcdf_h+set}" = set; then
27660  echo $ECHO_N "(cached) $ECHO_C" >&6
27661else
27662  ac_cv_header_netcdf_h=$ac_header_preproc
27663fi
27664echo "$as_me:$LINENO: result: $ac_cv_header_netcdf_h" >&5
27665echo "${ECHO_T}$ac_cv_header_netcdf_h" >&6
27666
27667fi
27668if test $ac_cv_header_netcdf_h = yes; then
27669  passed=`expr $passed + 1`
27670else
27671  failed=`expr $failed + 1`
27672fi
27673
27674
27675    echo "$as_me:$LINENO: checking for nc_copy_att in -lnetcdf" >&5
27676echo $ECHO_N "checking for nc_copy_att in -lnetcdf... $ECHO_C" >&6
27677if test "${ac_cv_lib_netcdf_nc_copy_att+set}" = set; then
27678  echo $ECHO_N "(cached) $ECHO_C" >&6
27679else
27680  ac_check_lib_save_LIBS=$LIBS
27681LIBS="-lnetcdf  $LIBS"
27682cat >conftest.$ac_ext <<_ACEOF
27683/* confdefs.h.  */
27684_ACEOF
27685cat confdefs.h >>conftest.$ac_ext
27686cat >>conftest.$ac_ext <<_ACEOF
27687/* end confdefs.h.  */
27688
27689/* Override any gcc2 internal prototype to avoid an error.  */
27690#ifdef __cplusplus
27691extern "C"
27692#endif
27693/* We use char because int might match the return type of a gcc2
27694   builtin and then its argument prototype would still apply.  */
27695char nc_copy_att ();
27696int
27697main ()
27698{
27699nc_copy_att ();
27700  ;
27701  return 0;
27702}
27703_ACEOF
27704rm -f conftest.$ac_objext conftest$ac_exeext
27705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27706  (eval $ac_link) 2>conftest.er1
27707  ac_status=$?
27708  grep -v '^ *+' conftest.er1 >conftest.err
27709  rm -f conftest.er1
27710  cat conftest.err >&5
27711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712  (exit $ac_status); } &&
27713	 { ac_try='test -z "$ac_c_werror_flag"
27714			 || test ! -s conftest.err'
27715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716  (eval $ac_try) 2>&5
27717  ac_status=$?
27718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719  (exit $ac_status); }; } &&
27720	 { ac_try='test -s conftest$ac_exeext'
27721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722  (eval $ac_try) 2>&5
27723  ac_status=$?
27724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725  (exit $ac_status); }; }; then
27726  ac_cv_lib_netcdf_nc_copy_att=yes
27727else
27728  echo "$as_me: failed program was:" >&5
27729sed 's/^/| /' conftest.$ac_ext >&5
27730
27731ac_cv_lib_netcdf_nc_copy_att=no
27732fi
27733rm -f conftest.err conftest.$ac_objext \
27734      conftest$ac_exeext conftest.$ac_ext
27735LIBS=$ac_check_lib_save_LIBS
27736fi
27737echo "$as_me:$LINENO: result: $ac_cv_lib_netcdf_nc_copy_att" >&5
27738echo "${ECHO_T}$ac_cv_lib_netcdf_nc_copy_att" >&6
27739if test $ac_cv_lib_netcdf_nc_copy_att = yes; then
27740  passed=`expr $passed + 1`
27741else
27742  failed=`expr $failed + 1`
27743fi
27744
27745    echo "$as_me:$LINENO: checking if NETCDF package is complete" >&5
27746echo $ECHO_N "checking if NETCDF package is complete... $ECHO_C" >&6
27747    if test $passed -gt 0
27748    then
27749    if test $failed -gt 0
27750    then
27751	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
27752echo "${ECHO_T}no -- some components failed test" >&6
27753        have_netcdf='no (failed tests)'
27754    else
27755	LIB_NETCDF='-lnetcdf'
27756	LIBS="$LIB_NETCDF $LIBS"
27757	FMT_LIBS="$FMT_LIBS libnetcdf.a"
27758
27759cat >>confdefs.h <<\_ACEOF
27760#define HAVE_LIBNETCDF 1
27761_ACEOF
27762
27763	echo "$as_me:$LINENO: result: yes" >&5
27764echo "${ECHO_T}yes" >&6
27765        have_netcdf='yes'
27766    fi
27767    else
27768        echo "$as_me:$LINENO: result: no" >&5
27769echo "${ECHO_T}no" >&6
27770    fi
27771fi
27772
27773
27774#
27775# Check for IMAGEMAGICK
27776#
27777have_magick='no'
27778LIB_MAGICK=''
27779if test "$with_magick" != 'no'
27780then
27781    { echo "$as_me:$LINENO: checking for ImageMagick support ......" >&5
27782echo "$as_me: checking for ImageMagick support ......" >&6;}
27783    # Extract the first word of "Magick-config", so it can be a program name with args.
27784set dummy Magick-config; ac_word=$2
27785echo "$as_me:$LINENO: checking for $ac_word" >&5
27786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27787if test "${ac_cv_prog_HAVE_MC+set}" = set; then
27788  echo $ECHO_N "(cached) $ECHO_C" >&6
27789else
27790  if test -n "$HAVE_MC"; then
27791  ac_cv_prog_HAVE_MC="$HAVE_MC" # Let the user override the test.
27792else
27793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27794for as_dir in $PATH
27795do
27796  IFS=$as_save_IFS
27797  test -z "$as_dir" && as_dir=.
27798  for ac_exec_ext in '' $ac_executable_extensions; do
27799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27800    ac_cv_prog_HAVE_MC="yes"
27801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27802    break 2
27803  fi
27804done
27805done
27806
27807  test -z "$ac_cv_prog_HAVE_MC" && ac_cv_prog_HAVE_MC="no"
27808fi
27809fi
27810HAVE_MC=$ac_cv_prog_HAVE_MC
27811if test -n "$HAVE_MC"; then
27812  echo "$as_me:$LINENO: result: $HAVE_MC" >&5
27813echo "${ECHO_T}$HAVE_MC" >&6
27814else
27815  echo "$as_me:$LINENO: result: no" >&5
27816echo "${ECHO_T}no" >&6
27817fi
27818
27819
27820    failed=0;
27821    passed=0;
27822    if test "${ac_cv_header_magick_api_h+set}" = set; then
27823  echo "$as_me:$LINENO: checking for magick/api.h" >&5
27824echo $ECHO_N "checking for magick/api.h... $ECHO_C" >&6
27825if test "${ac_cv_header_magick_api_h+set}" = set; then
27826  echo $ECHO_N "(cached) $ECHO_C" >&6
27827fi
27828echo "$as_me:$LINENO: result: $ac_cv_header_magick_api_h" >&5
27829echo "${ECHO_T}$ac_cv_header_magick_api_h" >&6
27830else
27831  # Is the header compilable?
27832echo "$as_me:$LINENO: checking magick/api.h usability" >&5
27833echo $ECHO_N "checking magick/api.h usability... $ECHO_C" >&6
27834cat >conftest.$ac_ext <<_ACEOF
27835/* confdefs.h.  */
27836_ACEOF
27837cat confdefs.h >>conftest.$ac_ext
27838cat >>conftest.$ac_ext <<_ACEOF
27839/* end confdefs.h.  */
27840$ac_includes_default
27841#include <magick/api.h>
27842_ACEOF
27843rm -f conftest.$ac_objext
27844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27845  (eval $ac_compile) 2>conftest.er1
27846  ac_status=$?
27847  grep -v '^ *+' conftest.er1 >conftest.err
27848  rm -f conftest.er1
27849  cat conftest.err >&5
27850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851  (exit $ac_status); } &&
27852	 { ac_try='test -z "$ac_c_werror_flag"
27853			 || test ! -s conftest.err'
27854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27855  (eval $ac_try) 2>&5
27856  ac_status=$?
27857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858  (exit $ac_status); }; } &&
27859	 { ac_try='test -s conftest.$ac_objext'
27860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861  (eval $ac_try) 2>&5
27862  ac_status=$?
27863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864  (exit $ac_status); }; }; then
27865  ac_header_compiler=yes
27866else
27867  echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
27870ac_header_compiler=no
27871fi
27872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27874echo "${ECHO_T}$ac_header_compiler" >&6
27875
27876# Is the header present?
27877echo "$as_me:$LINENO: checking magick/api.h presence" >&5
27878echo $ECHO_N "checking magick/api.h presence... $ECHO_C" >&6
27879cat >conftest.$ac_ext <<_ACEOF
27880/* confdefs.h.  */
27881_ACEOF
27882cat confdefs.h >>conftest.$ac_ext
27883cat >>conftest.$ac_ext <<_ACEOF
27884/* end confdefs.h.  */
27885#include <magick/api.h>
27886_ACEOF
27887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27888  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27889  ac_status=$?
27890  grep -v '^ *+' conftest.er1 >conftest.err
27891  rm -f conftest.er1
27892  cat conftest.err >&5
27893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894  (exit $ac_status); } >/dev/null; then
27895  if test -s conftest.err; then
27896    ac_cpp_err=$ac_c_preproc_warn_flag
27897    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27898  else
27899    ac_cpp_err=
27900  fi
27901else
27902  ac_cpp_err=yes
27903fi
27904if test -z "$ac_cpp_err"; then
27905  ac_header_preproc=yes
27906else
27907  echo "$as_me: failed program was:" >&5
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
27910  ac_header_preproc=no
27911fi
27912rm -f conftest.err conftest.$ac_ext
27913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27914echo "${ECHO_T}$ac_header_preproc" >&6
27915
27916# So?  What about this header?
27917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27918  yes:no: )
27919    { echo "$as_me:$LINENO: WARNING: magick/api.h: accepted by the compiler, rejected by the preprocessor!" >&5
27920echo "$as_me: WARNING: magick/api.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27921    { echo "$as_me:$LINENO: WARNING: magick/api.h: proceeding with the compiler's result" >&5
27922echo "$as_me: WARNING: magick/api.h: proceeding with the compiler's result" >&2;}
27923    ac_header_preproc=yes
27924    ;;
27925  no:yes:* )
27926    { echo "$as_me:$LINENO: WARNING: magick/api.h: present but cannot be compiled" >&5
27927echo "$as_me: WARNING: magick/api.h: present but cannot be compiled" >&2;}
27928    { echo "$as_me:$LINENO: WARNING: magick/api.h:     check for missing prerequisite headers?" >&5
27929echo "$as_me: WARNING: magick/api.h:     check for missing prerequisite headers?" >&2;}
27930    { echo "$as_me:$LINENO: WARNING: magick/api.h: see the Autoconf documentation" >&5
27931echo "$as_me: WARNING: magick/api.h: see the Autoconf documentation" >&2;}
27932    { echo "$as_me:$LINENO: WARNING: magick/api.h:     section \"Present But Cannot Be Compiled\"" >&5
27933echo "$as_me: WARNING: magick/api.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27934    { echo "$as_me:$LINENO: WARNING: magick/api.h: proceeding with the preprocessor's result" >&5
27935echo "$as_me: WARNING: magick/api.h: proceeding with the preprocessor's result" >&2;}
27936    { echo "$as_me:$LINENO: WARNING: magick/api.h: in the future, the compiler will take precedence" >&5
27937echo "$as_me: WARNING: magick/api.h: in the future, the compiler will take precedence" >&2;}
27938    (
27939      cat <<\_ASBOX
27940## ----------------------------- ##
27941## Report this to the dx lists.  ##
27942## ----------------------------- ##
27943_ASBOX
27944    ) |
27945      sed "s/^/$as_me: WARNING:     /" >&2
27946    ;;
27947esac
27948echo "$as_me:$LINENO: checking for magick/api.h" >&5
27949echo $ECHO_N "checking for magick/api.h... $ECHO_C" >&6
27950if test "${ac_cv_header_magick_api_h+set}" = set; then
27951  echo $ECHO_N "(cached) $ECHO_C" >&6
27952else
27953  ac_cv_header_magick_api_h=$ac_header_preproc
27954fi
27955echo "$as_me:$LINENO: result: $ac_cv_header_magick_api_h" >&5
27956echo "${ECHO_T}$ac_cv_header_magick_api_h" >&6
27957
27958fi
27959if test $ac_cv_header_magick_api_h = yes; then
27960  passed=`expr $passed + 1`
27961else
27962  failed=`expr $failed + 1`
27963fi
27964
27965
27966if test "$ARCH" = "intelnt" ; then
27967    echo "$as_me:$LINENO: checking for Hopen in -lCORE_RL_magick_" >&5
27968echo $ECHO_N "checking for Hopen in -lCORE_RL_magick_... $ECHO_C" >&6
27969if test "${ac_cv_lib_CORE_RL_magick__Hopen+set}" = set; then
27970  echo $ECHO_N "(cached) $ECHO_C" >&6
27971else
27972  ac_check_lib_save_LIBS=$LIBS
27973LIBS="-lCORE_RL_magick_  $LIBS"
27974cat >conftest.$ac_ext <<_ACEOF
27975/* confdefs.h.  */
27976_ACEOF
27977cat confdefs.h >>conftest.$ac_ext
27978cat >>conftest.$ac_ext <<_ACEOF
27979/* end confdefs.h.  */
27980
27981/* Override any gcc2 internal prototype to avoid an error.  */
27982#ifdef __cplusplus
27983extern "C"
27984#endif
27985/* We use char because int might match the return type of a gcc2
27986   builtin and then its argument prototype would still apply.  */
27987char Hopen ();
27988int
27989main ()
27990{
27991Hopen ();
27992  ;
27993  return 0;
27994}
27995_ACEOF
27996rm -f conftest.$ac_objext conftest$ac_exeext
27997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27998  (eval $ac_link) 2>conftest.er1
27999  ac_status=$?
28000  grep -v '^ *+' conftest.er1 >conftest.err
28001  rm -f conftest.er1
28002  cat conftest.err >&5
28003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004  (exit $ac_status); } &&
28005	 { ac_try='test -z "$ac_c_werror_flag"
28006			 || test ! -s conftest.err'
28007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28008  (eval $ac_try) 2>&5
28009  ac_status=$?
28010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011  (exit $ac_status); }; } &&
28012	 { ac_try='test -s conftest$ac_exeext'
28013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014  (eval $ac_try) 2>&5
28015  ac_status=$?
28016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017  (exit $ac_status); }; }; then
28018  ac_cv_lib_CORE_RL_magick__Hopen=yes
28019else
28020  echo "$as_me: failed program was:" >&5
28021sed 's/^/| /' conftest.$ac_ext >&5
28022
28023ac_cv_lib_CORE_RL_magick__Hopen=no
28024fi
28025rm -f conftest.err conftest.$ac_objext \
28026      conftest$ac_exeext conftest.$ac_ext
28027LIBS=$ac_check_lib_save_LIBS
28028fi
28029echo "$as_me:$LINENO: result: $ac_cv_lib_CORE_RL_magick__Hopen" >&5
28030echo "${ECHO_T}$ac_cv_lib_CORE_RL_magick__Hopen" >&6
28031if test $ac_cv_lib_CORE_RL_magick__Hopen = yes; then
28032  passed=`expr $passed + 1`
28033else
28034  failed=`expr $failed + 1`
28035fi
28036
28037    echo "$as_me:$LINENO: checking if ImageMagick package is complete" >&5
28038echo $ECHO_N "checking if ImageMagick package is complete... $ECHO_C" >&6
28039    if test $passed -gt 0
28040    then
28041    if test $failed -gt 0
28042    then
28043	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
28044echo "${ECHO_T}no -- some components failed test" >&6
28045        have_magick='no (failed tests)'
28046    else
28047	if test "$with_smagick" != 'no'
28048	then
28049	    LIB_MAGICK='-lCORE_RL_magick_ -lCORE_RL_bzlib_ -lCORE_RL_coders_ -lCORE_RL_filters_ -lCORE_RL_jbig_ -lCORE_RL_jbig_ -lCORE_RL_jp2_ -lCORE_RL_jpeg_ -lCORE_RL_lcms_ -lCORE_RL_libxml_ -lCORE_RL_png_ -lCORE_RL_tiff_ -lCORE_RL_ttf_ -lCORE_RL_wand_ -lCORE_RL_wmf_ -lCORE_RL_zlib_'
28050	else
28051	    LIB_MAGICK='-lCORE_RL_magick_'
28052	fi
28053	LIBS="$LIB_MAGICK $LIBS"
28054	FMT_LIBS="$FMT_LIBS CORE_RL_magick_.lib"
28055
28056cat >>confdefs.h <<\_ACEOF
28057#define HAVE_LIBMAGICK 1
28058_ACEOF
28059
28060	echo "$as_me:$LINENO: result: yes" >&5
28061echo "${ECHO_T}yes" >&6
28062	have_magick='yes'
28063    fi
28064    else
28065    echo "$as_me:$LINENO: result: no" >&5
28066echo "${ECHO_T}no" >&6
28067    fi
28068else
28069
28070
28071 if test "$HAVE_MC" = "yes" ; then
28072    LIB_MAGICK="`Magick-config --ldflags` `Magick-config --libs`"
28073    echo "$as_me:$LINENO: checking for GetImageInfo in -lMagick" >&5
28074echo $ECHO_N "checking for GetImageInfo in -lMagick... $ECHO_C" >&6
28075if test "${ac_cv_lib_Magick_GetImageInfo+set}" = set; then
28076  echo $ECHO_N "(cached) $ECHO_C" >&6
28077else
28078  ac_check_lib_save_LIBS=$LIBS
28079LIBS="-lMagick  $LIB_MAGICK  $LIBS"
28080cat >conftest.$ac_ext <<_ACEOF
28081/* confdefs.h.  */
28082_ACEOF
28083cat confdefs.h >>conftest.$ac_ext
28084cat >>conftest.$ac_ext <<_ACEOF
28085/* end confdefs.h.  */
28086
28087/* Override any gcc2 internal prototype to avoid an error.  */
28088#ifdef __cplusplus
28089extern "C"
28090#endif
28091/* We use char because int might match the return type of a gcc2
28092   builtin and then its argument prototype would still apply.  */
28093char GetImageInfo ();
28094int
28095main ()
28096{
28097GetImageInfo ();
28098  ;
28099  return 0;
28100}
28101_ACEOF
28102rm -f conftest.$ac_objext conftest$ac_exeext
28103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28104  (eval $ac_link) 2>conftest.er1
28105  ac_status=$?
28106  grep -v '^ *+' conftest.er1 >conftest.err
28107  rm -f conftest.er1
28108  cat conftest.err >&5
28109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110  (exit $ac_status); } &&
28111	 { ac_try='test -z "$ac_c_werror_flag"
28112			 || test ! -s conftest.err'
28113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28114  (eval $ac_try) 2>&5
28115  ac_status=$?
28116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117  (exit $ac_status); }; } &&
28118	 { ac_try='test -s conftest$ac_exeext'
28119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120  (eval $ac_try) 2>&5
28121  ac_status=$?
28122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123  (exit $ac_status); }; }; then
28124  ac_cv_lib_Magick_GetImageInfo=yes
28125else
28126  echo "$as_me: failed program was:" >&5
28127sed 's/^/| /' conftest.$ac_ext >&5
28128
28129ac_cv_lib_Magick_GetImageInfo=no
28130fi
28131rm -f conftest.err conftest.$ac_objext \
28132      conftest$ac_exeext conftest.$ac_ext
28133LIBS=$ac_check_lib_save_LIBS
28134fi
28135echo "$as_me:$LINENO: result: $ac_cv_lib_Magick_GetImageInfo" >&5
28136echo "${ECHO_T}$ac_cv_lib_Magick_GetImageInfo" >&6
28137if test $ac_cv_lib_Magick_GetImageInfo = yes; then
28138  passed=`expr $passed + 1`
28139else
28140  failed=`expr $failed + 1`
28141fi
28142
28143    echo "$as_me:$LINENO: checking if ImageMagick package is complete" >&5
28144echo $ECHO_N "checking if ImageMagick package is complete... $ECHO_C" >&6
28145    if test $passed -gt 0
28146    then
28147    if test $failed -gt 0
28148    then
28149	echo "$as_me:$LINENO: result: no -- some components failed test" >&5
28150echo "${ECHO_T}no -- some components failed test" >&6
28151        have_magick='no (failed tests)'
28152    else
28153	CPPFLAGS="`Magick-config --cppflags` $CPPFLAGS"
28154	LIB_MAGICK="$LIBS `Magick-config --ldflags` `Magick-config --libs`"
28155
28156ac_u_bar=""
28157for arg in $LIB_MAGICK ; do
28158	x=`echo $arg | tr -dc '[:alnum:]'`
28159	eval test x\${ac_u_$x} = x;
28160	if test $? = 0 ; then
28161		eval ac_u_$x=1
28162		export eval ac_u_$x
28163	else
28164		eval ac_u_$x=\`expr \${ac_u_$x} + 1\`
28165		export eval ac_u_$x
28166	fi
28167done
28168
28169for arg in $LIB_MAGICK ; do
28170	x=`echo $arg | tr -dc '[:alnum:]'`
28171	eval ac_u_${x}=\`expr \${ac_u_$x} - 1\`
28172	eval test \$ac_u_${x} = 0;
28173	if test $? = 0 ; then
28174		ac_u_bar="$ac_u_bar $arg"
28175	fi
28176done
28177LIBS="$ac_u_bar"
28178
28179	FMT_LIBS="$FMT_LIBS libMagick.a"
28180
28181cat >>confdefs.h <<\_ACEOF
28182#define HAVE_LIBMAGICK 1
28183_ACEOF
28184
28185	echo "$as_me:$LINENO: result: yes" >&5
28186echo "${ECHO_T}yes" >&6
28187        have_magick='yes'
28188    fi
28189    else
28190        echo "$as_me:$LINENO: result: no" >&5
28191echo "${ECHO_T}no" >&6
28192    fi
28193  else
28194	echo "$as_me:$LINENO: result: no - Magick-config not found" >&5
28195echo "${ECHO_T}no - Magick-config not found" >&6
28196  fi
28197fi
28198fi
28199
28200ac_ext=cc
28201ac_cpp='$CXXCPP $CPPFLAGS'
28202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28205
28206cat >conftest.$ac_ext <<_ACEOF
28207/* confdefs.h.  */
28208_ACEOF
28209cat confdefs.h >>conftest.$ac_ext
28210cat >>conftest.$ac_ext <<_ACEOF
28211/* end confdefs.h.  */
28212
28213int
28214main ()
28215{
28216int a = true;
28217  ;
28218  return 0;
28219}
28220_ACEOF
28221rm -f conftest.$ac_objext
28222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28223  (eval $ac_compile) 2>conftest.er1
28224  ac_status=$?
28225  grep -v '^ *+' conftest.er1 >conftest.err
28226  rm -f conftest.er1
28227  cat conftest.err >&5
28228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229  (exit $ac_status); } &&
28230	 { ac_try='test -z "$ac_cxx_werror_flag"
28231			 || test ! -s conftest.err'
28232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233  (eval $ac_try) 2>&5
28234  ac_status=$?
28235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236  (exit $ac_status); }; } &&
28237	 { ac_try='test -s conftest.$ac_objext'
28238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239  (eval $ac_try) 2>&5
28240  ac_status=$?
28241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242  (exit $ac_status); }; }; then
28243
28244cat >>confdefs.h <<\_ACEOF
28245#define CXX_HAS_TRUE 1
28246_ACEOF
28247
28248else
28249  echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252cat >>confdefs.h <<\_ACEOF
28253#define CXX_HAS_TRUE 0
28254_ACEOF
28255
28256fi
28257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28258cat >conftest.$ac_ext <<_ACEOF
28259/* confdefs.h.  */
28260_ACEOF
28261cat confdefs.h >>conftest.$ac_ext
28262cat >>conftest.$ac_ext <<_ACEOF
28263/* end confdefs.h.  */
28264
28265int
28266main ()
28267{
28268int a = false;
28269  ;
28270  return 0;
28271}
28272_ACEOF
28273rm -f conftest.$ac_objext
28274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28275  (eval $ac_compile) 2>conftest.er1
28276  ac_status=$?
28277  grep -v '^ *+' conftest.er1 >conftest.err
28278  rm -f conftest.er1
28279  cat conftest.err >&5
28280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281  (exit $ac_status); } &&
28282	 { ac_try='test -z "$ac_cxx_werror_flag"
28283			 || test ! -s conftest.err'
28284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285  (eval $ac_try) 2>&5
28286  ac_status=$?
28287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288  (exit $ac_status); }; } &&
28289	 { ac_try='test -s conftest.$ac_objext'
28290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291  (eval $ac_try) 2>&5
28292  ac_status=$?
28293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294  (exit $ac_status); }; }; then
28295
28296cat >>confdefs.h <<\_ACEOF
28297#define CXX_HAS_FALSE 1
28298_ACEOF
28299
28300else
28301  echo "$as_me: failed program was:" >&5
28302sed 's/^/| /' conftest.$ac_ext >&5
28303
28304cat >>confdefs.h <<\_ACEOF
28305#define CXX_HAS_FALSE 0
28306_ACEOF
28307
28308fi
28309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28310
28311for ac_func in getdtablesize
28312do
28313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28314echo "$as_me:$LINENO: checking for $ac_func" >&5
28315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28316if eval "test \"\${$as_ac_var+set}\" = set"; then
28317  echo $ECHO_N "(cached) $ECHO_C" >&6
28318else
28319  cat >conftest.$ac_ext <<_ACEOF
28320/* confdefs.h.  */
28321_ACEOF
28322cat confdefs.h >>conftest.$ac_ext
28323cat >>conftest.$ac_ext <<_ACEOF
28324/* end confdefs.h.  */
28325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28326   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28327#define $ac_func innocuous_$ac_func
28328
28329/* System header to define __stub macros and hopefully few prototypes,
28330    which can conflict with char $ac_func (); below.
28331    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28332    <limits.h> exists even on freestanding compilers.  */
28333
28334#ifdef __STDC__
28335# include <limits.h>
28336#else
28337# include <assert.h>
28338#endif
28339
28340#undef $ac_func
28341
28342/* Override any gcc2 internal prototype to avoid an error.  */
28343#ifdef __cplusplus
28344extern "C"
28345{
28346#endif
28347/* We use char because int might match the return type of a gcc2
28348   builtin and then its argument prototype would still apply.  */
28349char $ac_func ();
28350/* The GNU C library defines this for functions which it implements
28351    to always fail with ENOSYS.  Some functions are actually named
28352    something starting with __ and the normal name is an alias.  */
28353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28354choke me
28355#else
28356char (*f) () = $ac_func;
28357#endif
28358#ifdef __cplusplus
28359}
28360#endif
28361
28362int
28363main ()
28364{
28365return f != $ac_func;
28366  ;
28367  return 0;
28368}
28369_ACEOF
28370rm -f conftest.$ac_objext conftest$ac_exeext
28371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28372  (eval $ac_link) 2>conftest.er1
28373  ac_status=$?
28374  grep -v '^ *+' conftest.er1 >conftest.err
28375  rm -f conftest.er1
28376  cat conftest.err >&5
28377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378  (exit $ac_status); } &&
28379	 { ac_try='test -z "$ac_cxx_werror_flag"
28380			 || test ! -s conftest.err'
28381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382  (eval $ac_try) 2>&5
28383  ac_status=$?
28384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385  (exit $ac_status); }; } &&
28386	 { ac_try='test -s conftest$ac_exeext'
28387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388  (eval $ac_try) 2>&5
28389  ac_status=$?
28390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391  (exit $ac_status); }; }; then
28392  eval "$as_ac_var=yes"
28393else
28394  echo "$as_me: failed program was:" >&5
28395sed 's/^/| /' conftest.$ac_ext >&5
28396
28397eval "$as_ac_var=no"
28398fi
28399rm -f conftest.err conftest.$ac_objext \
28400      conftest$ac_exeext conftest.$ac_ext
28401fi
28402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28404if test `eval echo '${'$as_ac_var'}'` = yes; then
28405  cat >>confdefs.h <<_ACEOF
28406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28407_ACEOF
28408
28409fi
28410done
28411
28412
28413ac_ext=c
28414ac_cpp='$CPP $CPPFLAGS'
28415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28417ac_compiler_gnu=$ac_cv_c_compiler_gnu
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474for ac_func in getcwd gethostname gettimeofday mkdir mkfifo mktime \
28475	putenv re_comp regcmp select socket strcspn strdup strerror \
28476	strspn strstr strtod strtol strtoul uname trunc \
28477        _Errno spawnvp _spawnvp regcomp sysmp sysconf \
28478        pipe _pipe _popen popen _pclose pclose random rand srandom \
28479	shmat getopt srand opendir _findfirst strrstr strcasecmp \
28480	stricmp getpid _getpid unlink _unlink getlogin isatty _isatty \
28481	setsockopt isnan finite
28482do
28483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28484echo "$as_me:$LINENO: checking for $ac_func" >&5
28485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28486if eval "test \"\${$as_ac_var+set}\" = set"; then
28487  echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489  cat >conftest.$ac_ext <<_ACEOF
28490/* confdefs.h.  */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h.  */
28495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28496   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28497#define $ac_func innocuous_$ac_func
28498
28499/* System header to define __stub macros and hopefully few prototypes,
28500    which can conflict with char $ac_func (); below.
28501    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28502    <limits.h> exists even on freestanding compilers.  */
28503
28504#ifdef __STDC__
28505# include <limits.h>
28506#else
28507# include <assert.h>
28508#endif
28509
28510#undef $ac_func
28511
28512/* Override any gcc2 internal prototype to avoid an error.  */
28513#ifdef __cplusplus
28514extern "C"
28515{
28516#endif
28517/* We use char because int might match the return type of a gcc2
28518   builtin and then its argument prototype would still apply.  */
28519char $ac_func ();
28520/* The GNU C library defines this for functions which it implements
28521    to always fail with ENOSYS.  Some functions are actually named
28522    something starting with __ and the normal name is an alias.  */
28523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28524choke me
28525#else
28526char (*f) () = $ac_func;
28527#endif
28528#ifdef __cplusplus
28529}
28530#endif
28531
28532int
28533main ()
28534{
28535return f != $ac_func;
28536  ;
28537  return 0;
28538}
28539_ACEOF
28540rm -f conftest.$ac_objext conftest$ac_exeext
28541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28542  (eval $ac_link) 2>conftest.er1
28543  ac_status=$?
28544  grep -v '^ *+' conftest.er1 >conftest.err
28545  rm -f conftest.er1
28546  cat conftest.err >&5
28547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548  (exit $ac_status); } &&
28549	 { ac_try='test -z "$ac_c_werror_flag"
28550			 || test ! -s conftest.err'
28551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552  (eval $ac_try) 2>&5
28553  ac_status=$?
28554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555  (exit $ac_status); }; } &&
28556	 { ac_try='test -s conftest$ac_exeext'
28557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558  (eval $ac_try) 2>&5
28559  ac_status=$?
28560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561  (exit $ac_status); }; }; then
28562  eval "$as_ac_var=yes"
28563else
28564  echo "$as_me: failed program was:" >&5
28565sed 's/^/| /' conftest.$ac_ext >&5
28566
28567eval "$as_ac_var=no"
28568fi
28569rm -f conftest.err conftest.$ac_objext \
28570      conftest$ac_exeext conftest.$ac_ext
28571fi
28572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28574if test `eval echo '${'$as_ac_var'}'` = yes; then
28575  cat >>confdefs.h <<_ACEOF
28576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28577_ACEOF
28578
28579fi
28580done
28581
28582
28583echo "$as_me:$LINENO: checking if RAND_MAX defined" >&5
28584echo $ECHO_N "checking if RAND_MAX defined... $ECHO_C" >&6
28585cat >conftest.$ac_ext <<_ACEOF
28586/* confdefs.h.  */
28587_ACEOF
28588cat confdefs.h >>conftest.$ac_ext
28589cat >>conftest.$ac_ext <<_ACEOF
28590/* end confdefs.h.  */
28591#include <stdlib.h>
28592int
28593main ()
28594{
28595 int a = RAND_MAX;
28596  ;
28597  return 0;
28598}
28599_ACEOF
28600rm -f conftest.$ac_objext
28601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28602  (eval $ac_compile) 2>conftest.er1
28603  ac_status=$?
28604  grep -v '^ *+' conftest.er1 >conftest.err
28605  rm -f conftest.er1
28606  cat conftest.err >&5
28607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608  (exit $ac_status); } &&
28609	 { ac_try='test -z "$ac_c_werror_flag"
28610			 || test ! -s conftest.err'
28611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28612  (eval $ac_try) 2>&5
28613  ac_status=$?
28614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615  (exit $ac_status); }; } &&
28616	 { ac_try='test -s conftest.$ac_objext'
28617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28618  (eval $ac_try) 2>&5
28619  ac_status=$?
28620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621  (exit $ac_status); }; }; then
28622
28623cat >>confdefs.h <<\_ACEOF
28624#define HAVE_RAND_MAX 1
28625_ACEOF
28626
28627   echo "$as_me:$LINENO: result: yes" >&5
28628echo "${ECHO_T}yes" >&6
28629else
28630  echo "$as_me: failed program was:" >&5
28631sed 's/^/| /' conftest.$ac_ext >&5
28632
28633 echo "$as_me:$LINENO: result: no" >&5
28634echo "${ECHO_T}no" >&6
28635
28636fi
28637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28638
28639echo "$as_me:$LINENO: checking if signal.h defines SIGBUS" >&5
28640echo $ECHO_N "checking if signal.h defines SIGBUS... $ECHO_C" >&6
28641cat >conftest.$ac_ext <<_ACEOF
28642/* confdefs.h.  */
28643_ACEOF
28644cat confdefs.h >>conftest.$ac_ext
28645cat >>conftest.$ac_ext <<_ACEOF
28646/* end confdefs.h.  */
28647
28648#include <signal.h>
28649#if defined(SIGBUS)
28650xyzzy
28651#endif
28652
28653_ACEOF
28654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28655  $EGREP "xyzzy" >/dev/null 2>&1; then
28656
28657cat >>confdefs.h <<\_ACEOF
28658#define HAVE_SIGBUS 1
28659_ACEOF
28660
28661   echo "$as_me:$LINENO: result: yes" >&5
28662echo "${ECHO_T}yes" >&6
28663else
28664  echo "$as_me:$LINENO: result: no" >&5
28665echo "${ECHO_T}no" >&6
28666
28667fi
28668rm -f conftest*
28669
28670
28671echo "$as_me:$LINENO: checking if signal.h defines SIGKILL" >&5
28672echo $ECHO_N "checking if signal.h defines SIGKILL... $ECHO_C" >&6
28673cat >conftest.$ac_ext <<_ACEOF
28674/* confdefs.h.  */
28675_ACEOF
28676cat confdefs.h >>conftest.$ac_ext
28677cat >>conftest.$ac_ext <<_ACEOF
28678/* end confdefs.h.  */
28679
28680#include <signal.h>
28681#if defined(SIGKILL)
28682xyzzy
28683#endif
28684
28685_ACEOF
28686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28687  $EGREP "xyzzy" >/dev/null 2>&1; then
28688
28689cat >>confdefs.h <<\_ACEOF
28690#define HAVE_SIGKILL 1
28691_ACEOF
28692
28693   echo "$as_me:$LINENO: result: yes" >&5
28694echo "${ECHO_T}yes" >&6
28695else
28696  echo "$as_me:$LINENO: result: no" >&5
28697echo "${ECHO_T}no" >&6
28698fi
28699rm -f conftest*
28700
28701
28702echo "$as_me:$LINENO: checking if signal.h defines SIGDANGER" >&5
28703echo $ECHO_N "checking if signal.h defines SIGDANGER... $ECHO_C" >&6
28704cat >conftest.$ac_ext <<_ACEOF
28705/* confdefs.h.  */
28706_ACEOF
28707cat confdefs.h >>conftest.$ac_ext
28708cat >>conftest.$ac_ext <<_ACEOF
28709/* end confdefs.h.  */
28710
28711#include <signal.h>
28712#if defined(SIGDANGER)
28713xyzzy
28714#endif
28715
28716_ACEOF
28717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28718  $EGREP "xyzzy" >/dev/null 2>&1; then
28719
28720cat >>confdefs.h <<\_ACEOF
28721#define HAVE_SIGDANGER 1
28722_ACEOF
28723
28724   echo "$as_me:$LINENO: result: yes" >&5
28725echo "${ECHO_T}yes" >&6
28726else
28727  echo "$as_me:$LINENO: result: no" >&5
28728echo "${ECHO_T}no" >&6
28729fi
28730rm -f conftest*
28731
28732
28733echo "$as_me:$LINENO: checking if signal.h defines SIGPIPE" >&5
28734echo $ECHO_N "checking if signal.h defines SIGPIPE... $ECHO_C" >&6
28735cat >conftest.$ac_ext <<_ACEOF
28736/* confdefs.h.  */
28737_ACEOF
28738cat confdefs.h >>conftest.$ac_ext
28739cat >>conftest.$ac_ext <<_ACEOF
28740/* end confdefs.h.  */
28741
28742#include <signal.h>
28743#if defined(SIGPIPE)
28744xyzzy
28745#endif
28746
28747_ACEOF
28748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28749  $EGREP "xyzzy" >/dev/null 2>&1; then
28750
28751cat >>confdefs.h <<\_ACEOF
28752#define HAVE_SIGPIPE 1
28753_ACEOF
28754
28755   echo "$as_me:$LINENO: result: yes" >&5
28756echo "${ECHO_T}yes" >&6
28757else
28758  echo "$as_me:$LINENO: result: no" >&5
28759echo "${ECHO_T}no" >&6
28760fi
28761rm -f conftest*
28762
28763
28764echo "$as_me:$LINENO: checking if signal.h defines SIGQUIT" >&5
28765echo $ECHO_N "checking if signal.h defines SIGQUIT... $ECHO_C" >&6
28766cat >conftest.$ac_ext <<_ACEOF
28767/* confdefs.h.  */
28768_ACEOF
28769cat confdefs.h >>conftest.$ac_ext
28770cat >>conftest.$ac_ext <<_ACEOF
28771/* end confdefs.h.  */
28772
28773#include <signal.h>
28774#if defined(SIGQUIT)
28775xyzzy
28776#endif
28777
28778_ACEOF
28779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28780  $EGREP "xyzzy" >/dev/null 2>&1; then
28781
28782cat >>confdefs.h <<\_ACEOF
28783#define HAVE_SIGQUIT 1
28784_ACEOF
28785
28786   echo "$as_me:$LINENO: result: yes" >&5
28787echo "${ECHO_T}yes" >&6
28788else
28789  echo "$as_me:$LINENO: result: no" >&5
28790echo "${ECHO_T}no" >&6
28791fi
28792rm -f conftest*
28793
28794
28795cat >conftest.$ac_ext <<_ACEOF
28796/* confdefs.h.  */
28797_ACEOF
28798cat confdefs.h >>conftest.$ac_ext
28799cat >>conftest.$ac_ext <<_ACEOF
28800/* end confdefs.h.  */
28801
28802int
28803main ()
28804{
28805extern char *getenv(const char *);
28806  ;
28807  return 0;
28808}
28809_ACEOF
28810rm -f conftest.$ac_objext
28811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28812  (eval $ac_compile) 2>conftest.er1
28813  ac_status=$?
28814  grep -v '^ *+' conftest.er1 >conftest.err
28815  rm -f conftest.er1
28816  cat conftest.err >&5
28817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818  (exit $ac_status); } &&
28819	 { ac_try='test -z "$ac_c_werror_flag"
28820			 || test ! -s conftest.err'
28821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822  (eval $ac_try) 2>&5
28823  ac_status=$?
28824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825  (exit $ac_status); }; } &&
28826	 { ac_try='test -s conftest.$ac_objext'
28827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828  (eval $ac_try) 2>&5
28829  ac_status=$?
28830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831  (exit $ac_status); }; }; then
28832
28833cat >>confdefs.h <<_ACEOF
28834#define GETENV_ARG const char *
28835_ACEOF
28836
28837else
28838  echo "$as_me: failed program was:" >&5
28839sed 's/^/| /' conftest.$ac_ext >&5
28840
28841cat >>confdefs.h <<_ACEOF
28842#define GETENV_ARG char *
28843_ACEOF
28844
28845fi
28846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28847
28848cat >conftest.$ac_ext <<_ACEOF
28849/* confdefs.h.  */
28850_ACEOF
28851cat confdefs.h >>conftest.$ac_ext
28852cat >>conftest.$ac_ext <<_ACEOF
28853/* end confdefs.h.  */
28854
28855#include <sys/systemcfg.h>
28856
28857int
28858main ()
28859{
28860
28861int n = _system_configuration.ncpus;
28862
28863  ;
28864  return 0;
28865}
28866_ACEOF
28867rm -f conftest.$ac_objext conftest$ac_exeext
28868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28869  (eval $ac_link) 2>conftest.er1
28870  ac_status=$?
28871  grep -v '^ *+' conftest.er1 >conftest.err
28872  rm -f conftest.er1
28873  cat conftest.err >&5
28874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875  (exit $ac_status); } &&
28876	 { ac_try='test -z "$ac_c_werror_flag"
28877			 || test ! -s conftest.err'
28878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879  (eval $ac_try) 2>&5
28880  ac_status=$?
28881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882  (exit $ac_status); }; } &&
28883	 { ac_try='test -s conftest$ac_exeext'
28884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28885  (eval $ac_try) 2>&5
28886  ac_status=$?
28887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888  (exit $ac_status); }; }; then
28889
28890
28891cat >>confdefs.h <<_ACEOF
28892#define HAVE_SYSCONFIG_NCPUS 1
28893_ACEOF
28894
28895
28896else
28897  echo "$as_me: failed program was:" >&5
28898sed 's/^/| /' conftest.$ac_ext >&5
28899
28900fi
28901rm -f conftest.err conftest.$ac_objext \
28902      conftest$ac_exeext conftest.$ac_ext
28903
28904for ac_prog in flex lex
28905do
28906  # Extract the first word of "$ac_prog", so it can be a program name with args.
28907set dummy $ac_prog; ac_word=$2
28908echo "$as_me:$LINENO: checking for $ac_word" >&5
28909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28910if test "${ac_cv_prog_LEX+set}" = set; then
28911  echo $ECHO_N "(cached) $ECHO_C" >&6
28912else
28913  if test -n "$LEX"; then
28914  ac_cv_prog_LEX="$LEX" # Let the user override the test.
28915else
28916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28917for as_dir in $PATH
28918do
28919  IFS=$as_save_IFS
28920  test -z "$as_dir" && as_dir=.
28921  for ac_exec_ext in '' $ac_executable_extensions; do
28922  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28923    ac_cv_prog_LEX="$ac_prog"
28924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28925    break 2
28926  fi
28927done
28928done
28929
28930fi
28931fi
28932LEX=$ac_cv_prog_LEX
28933if test -n "$LEX"; then
28934  echo "$as_me:$LINENO: result: $LEX" >&5
28935echo "${ECHO_T}$LEX" >&6
28936else
28937  echo "$as_me:$LINENO: result: no" >&5
28938echo "${ECHO_T}no" >&6
28939fi
28940
28941  test -n "$LEX" && break
28942done
28943test -n "$LEX" || LEX=":"
28944
28945if test -z "$LEXLIB"
28946then
28947  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
28948echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
28949if test "${ac_cv_lib_fl_yywrap+set}" = set; then
28950  echo $ECHO_N "(cached) $ECHO_C" >&6
28951else
28952  ac_check_lib_save_LIBS=$LIBS
28953LIBS="-lfl  $LIBS"
28954cat >conftest.$ac_ext <<_ACEOF
28955/* confdefs.h.  */
28956_ACEOF
28957cat confdefs.h >>conftest.$ac_ext
28958cat >>conftest.$ac_ext <<_ACEOF
28959/* end confdefs.h.  */
28960
28961/* Override any gcc2 internal prototype to avoid an error.  */
28962#ifdef __cplusplus
28963extern "C"
28964#endif
28965/* We use char because int might match the return type of a gcc2
28966   builtin and then its argument prototype would still apply.  */
28967char yywrap ();
28968int
28969main ()
28970{
28971yywrap ();
28972  ;
28973  return 0;
28974}
28975_ACEOF
28976rm -f conftest.$ac_objext conftest$ac_exeext
28977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28978  (eval $ac_link) 2>conftest.er1
28979  ac_status=$?
28980  grep -v '^ *+' conftest.er1 >conftest.err
28981  rm -f conftest.er1
28982  cat conftest.err >&5
28983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984  (exit $ac_status); } &&
28985	 { ac_try='test -z "$ac_c_werror_flag"
28986			 || test ! -s conftest.err'
28987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988  (eval $ac_try) 2>&5
28989  ac_status=$?
28990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991  (exit $ac_status); }; } &&
28992	 { ac_try='test -s conftest$ac_exeext'
28993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994  (eval $ac_try) 2>&5
28995  ac_status=$?
28996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997  (exit $ac_status); }; }; then
28998  ac_cv_lib_fl_yywrap=yes
28999else
29000  echo "$as_me: failed program was:" >&5
29001sed 's/^/| /' conftest.$ac_ext >&5
29002
29003ac_cv_lib_fl_yywrap=no
29004fi
29005rm -f conftest.err conftest.$ac_objext \
29006      conftest$ac_exeext conftest.$ac_ext
29007LIBS=$ac_check_lib_save_LIBS
29008fi
29009echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
29010echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
29011if test $ac_cv_lib_fl_yywrap = yes; then
29012  LEXLIB="-lfl"
29013else
29014  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
29015echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
29016if test "${ac_cv_lib_l_yywrap+set}" = set; then
29017  echo $ECHO_N "(cached) $ECHO_C" >&6
29018else
29019  ac_check_lib_save_LIBS=$LIBS
29020LIBS="-ll  $LIBS"
29021cat >conftest.$ac_ext <<_ACEOF
29022/* confdefs.h.  */
29023_ACEOF
29024cat confdefs.h >>conftest.$ac_ext
29025cat >>conftest.$ac_ext <<_ACEOF
29026/* end confdefs.h.  */
29027
29028/* Override any gcc2 internal prototype to avoid an error.  */
29029#ifdef __cplusplus
29030extern "C"
29031#endif
29032/* We use char because int might match the return type of a gcc2
29033   builtin and then its argument prototype would still apply.  */
29034char yywrap ();
29035int
29036main ()
29037{
29038yywrap ();
29039  ;
29040  return 0;
29041}
29042_ACEOF
29043rm -f conftest.$ac_objext conftest$ac_exeext
29044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29045  (eval $ac_link) 2>conftest.er1
29046  ac_status=$?
29047  grep -v '^ *+' conftest.er1 >conftest.err
29048  rm -f conftest.er1
29049  cat conftest.err >&5
29050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051  (exit $ac_status); } &&
29052	 { ac_try='test -z "$ac_c_werror_flag"
29053			 || test ! -s conftest.err'
29054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055  (eval $ac_try) 2>&5
29056  ac_status=$?
29057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058  (exit $ac_status); }; } &&
29059	 { ac_try='test -s conftest$ac_exeext'
29060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061  (eval $ac_try) 2>&5
29062  ac_status=$?
29063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064  (exit $ac_status); }; }; then
29065  ac_cv_lib_l_yywrap=yes
29066else
29067  echo "$as_me: failed program was:" >&5
29068sed 's/^/| /' conftest.$ac_ext >&5
29069
29070ac_cv_lib_l_yywrap=no
29071fi
29072rm -f conftest.err conftest.$ac_objext \
29073      conftest$ac_exeext conftest.$ac_ext
29074LIBS=$ac_check_lib_save_LIBS
29075fi
29076echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
29077echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
29078if test $ac_cv_lib_l_yywrap = yes; then
29079  LEXLIB="-ll"
29080fi
29081
29082fi
29083
29084fi
29085
29086if test "x$LEX" != "x:"; then
29087  echo "$as_me:$LINENO: checking lex output file root" >&5
29088echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
29089if test "${ac_cv_prog_lex_root+set}" = set; then
29090  echo $ECHO_N "(cached) $ECHO_C" >&6
29091else
29092  # The minimal lex program is just a single line: %%.  But some broken lexes
29093# (Solaris, I think it was) want two %% lines, so accommodate them.
29094cat >conftest.l <<_ACEOF
29095%%
29096%%
29097_ACEOF
29098{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
29099  (eval $LEX conftest.l) 2>&5
29100  ac_status=$?
29101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102  (exit $ac_status); }
29103if test -f lex.yy.c; then
29104  ac_cv_prog_lex_root=lex.yy
29105elif test -f lexyy.c; then
29106  ac_cv_prog_lex_root=lexyy
29107else
29108  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
29109echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
29110   { (exit 1); exit 1; }; }
29111fi
29112fi
29113echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
29114echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
29115rm -f conftest.l
29116LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29117
29118echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
29119echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
29120if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
29121  echo $ECHO_N "(cached) $ECHO_C" >&6
29122else
29123  # POSIX says lex can declare yytext either as a pointer or an array; the
29124# default is implementation-dependent. Figure out which it is, since
29125# not all implementations provide the %pointer and %array declarations.
29126ac_cv_prog_lex_yytext_pointer=no
29127echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
29128ac_save_LIBS=$LIBS
29129LIBS="$LIBS $LEXLIB"
29130cat >conftest.$ac_ext <<_ACEOF
29131`cat $LEX_OUTPUT_ROOT.c`
29132_ACEOF
29133rm -f conftest.$ac_objext conftest$ac_exeext
29134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29135  (eval $ac_link) 2>conftest.er1
29136  ac_status=$?
29137  grep -v '^ *+' conftest.er1 >conftest.err
29138  rm -f conftest.er1
29139  cat conftest.err >&5
29140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141  (exit $ac_status); } &&
29142	 { ac_try='test -z "$ac_c_werror_flag"
29143			 || test ! -s conftest.err'
29144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145  (eval $ac_try) 2>&5
29146  ac_status=$?
29147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148  (exit $ac_status); }; } &&
29149	 { ac_try='test -s conftest$ac_exeext'
29150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151  (eval $ac_try) 2>&5
29152  ac_status=$?
29153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154  (exit $ac_status); }; }; then
29155  ac_cv_prog_lex_yytext_pointer=yes
29156else
29157  echo "$as_me: failed program was:" >&5
29158sed 's/^/| /' conftest.$ac_ext >&5
29159
29160fi
29161rm -f conftest.err conftest.$ac_objext \
29162      conftest$ac_exeext conftest.$ac_ext
29163LIBS=$ac_save_LIBS
29164rm -f "${LEX_OUTPUT_ROOT}.c"
29165
29166fi
29167echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
29168echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
29169if test $ac_cv_prog_lex_yytext_pointer = yes; then
29170
29171cat >>confdefs.h <<\_ACEOF
29172#define YYTEXT_POINTER 1
29173_ACEOF
29174
29175fi
29176
29177fi
29178if test "$LEX" = "flex" ; then
29179
29180cat >>confdefs.h <<\_ACEOF
29181#define USING_FLEX 1
29182_ACEOF
29183
29184    LEX="flex -l"
29185fi
29186
29187echo "$as_me:$LINENO: checking lex output file root" >&5
29188echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
29189if test "${ac_cv_prog_lex_root+set}" = set; then
29190  echo $ECHO_N "(cached) $ECHO_C" >&6
29191else
29192  # The minimal lex program is just a single line: %%.  But some broken lexes
29193# (Solaris, I think it was) want two %% lines, so accommodate them.
29194echo '%%
29195%%' | $LEX
29196if test -f lex.yy.c; then
29197  ac_cv_prog_lex_root=lex.yy
29198elif test -f lexyy.c; then
29199  ac_cv_prog_lex_root=lexyy
29200else
29201  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
29202echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
29203   { (exit 1); exit 1; }; }
29204fi
29205fi
29206echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
29207echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
29208LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29209
29210echo "$as_me:$LINENO: checking whether yylineno is defined" >&5
29211echo $ECHO_N "checking whether yylineno is defined... $ECHO_C" >&6
29212cat > conftest.lex <<EOF
29213%%
29214test    printf( "testing for yylineno" );
29215%%
29216int yywrap()
29217{
29218    return (1);
29219}
29220int main()
29221{
29222    yylineno = 1;
29223}
29224EOF
29225$LEX conftest.lex
29226ac_save_LIBS=$LIBS
29227LIBS="$LIBS $LEXLIB"
29228cat >conftest.$ac_ext <<_ACEOF
29229`cat $LEX_OUTPUT_ROOT.c`
29230_ACEOF
29231rm -f conftest.$ac_objext conftest$ac_exeext
29232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29233  (eval $ac_link) 2>conftest.er1
29234  ac_status=$?
29235  grep -v '^ *+' conftest.er1 >conftest.err
29236  rm -f conftest.er1
29237  cat conftest.err >&5
29238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239  (exit $ac_status); } &&
29240	 { ac_try='test -z "$ac_c_werror_flag"
29241			 || test ! -s conftest.err'
29242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243  (eval $ac_try) 2>&5
29244  ac_status=$?
29245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246  (exit $ac_status); }; } &&
29247	 { ac_try='test -s conftest$ac_exeext'
29248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29249  (eval $ac_try) 2>&5
29250  ac_status=$?
29251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252  (exit $ac_status); }; }; then
29253  echo "$as_me:$LINENO: result: yes" >&5
29254echo "${ECHO_T}yes" >&6
29255
29256cat >>confdefs.h <<\_ACEOF
29257#define YYLINENO_DEFINED 1
29258_ACEOF
29259
29260else
29261  echo "$as_me: failed program was:" >&5
29262sed 's/^/| /' conftest.$ac_ext >&5
29263
29264echo "$as_me:$LINENO: result: no" >&5
29265echo "${ECHO_T}no" >&6
29266fi
29267rm -f conftest.err conftest.$ac_objext \
29268      conftest$ac_exeext conftest.$ac_ext
29269LIBS=$ac_save_LIBS
29270rm -f "${LEX_OUTPUT_ROOT}.c"
29271rm -f "conftesst.lex"
29272
29273
29274
29275# Extract the first word of "bison", so it can be a program name with args.
29276set dummy bison; ac_word=$2
29277echo "$as_me:$LINENO: checking for $ac_word" >&5
29278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29279if test "${ac_cv_prog_yakker+set}" = set; then
29280  echo $ECHO_N "(cached) $ECHO_C" >&6
29281else
29282  if test -n "$yakker"; then
29283  ac_cv_prog_yakker="$yakker" # Let the user override the test.
29284else
29285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29286for as_dir in $PATH
29287do
29288  IFS=$as_save_IFS
29289  test -z "$as_dir" && as_dir=.
29290  for ac_exec_ext in '' $ac_executable_extensions; do
29291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29292    ac_cv_prog_yakker=""bison""
29293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29294    break 2
29295  fi
29296done
29297done
29298
29299  test -z "$ac_cv_prog_yakker" && ac_cv_prog_yakker=""yacc""
29300fi
29301fi
29302yakker=$ac_cv_prog_yakker
29303if test -n "$yakker"; then
29304  echo "$as_me:$LINENO: result: $yakker" >&5
29305echo "${ECHO_T}$yakker" >&6
29306else
29307  echo "$as_me:$LINENO: result: no" >&5
29308echo "${ECHO_T}no" >&6
29309fi
29310
29311if test "$yakker" = "bison" ; then
29312
29313cat >>confdefs.h <<\_ACEOF
29314#define USING_BISON 1
29315_ACEOF
29316
29317    YACC="bison -y"
29318else
29319    YACC=yacc
29320fi
29321
29322cat >>confdefs.h <<\_ACEOF
29323#define USING_BISON 1
29324_ACEOF
29325
29326
29327
29328
29329
29330for ac_hdr in \
29331  DPS/XDPSlib.h DPS/dpsXclient.h DPS/psops.h GL/gl.h GL/glx.h Mrm/MrmPublic.h \
29332  X11/Composite.h X11/CompositeP.h X11/Constraint.h X11/CoreP.h X11/Intrinsic.h \
29333  X11/IntrinsicI.h X11/IntrinsicP.h X11/Protocols.h X11/Shell.h X11/StringDefs.h \
29334  X11/X.h X11/XHPlib.h X11/Xatom.h X11/Xlib.h X11/XlibXtra.h \
29335  X11/Xos.h X11/Xutil.h X11/cursorfont.h X11/keysym.h X11/keysymdef.h Xm/ArrowB.h \
29336  Xm/ArrowBG.h Xm/AtomMgr.h Xm/BulletinB.h Xm/BulletinBP.h Xm/CascadeB.h \
29337  Xm/CascadeBG.h Xm/Command.h Xm/CutPaste.h Xm/DialogS.h Xm/DragC.h Xm/DragDrop.h \
29338  Xm/DrawingA.h Xm/DrawingAP.h Xm/DrawnB.h Xm/FileSB.h Xm/Form.h Xm/FormP.h \
29339  Xm/Frame.h Xm/FrameP.h Xm/GadgetP.h Xm/Label.h Xm/LabelG.h Xm/LabelGP.h \
29340  Xm/LabelP.h Xm/List.h Xm/MainW.h Xm/ManagerP.h Xm/MenuShell.h Xm/MessageB.h \
29341  Xm/MwmUtil.h Xm/PanedW.h Xm/PrimitiveP.h Xm/Protocols.h Xm/PushB.h Xm/PushBG.h \
29342  Xm/PushBP.h Xm/RepType.h Xm/RowColumn.h Xm/Scale.h Xm/ScrollBar.h Xm/ScrolledW.h \
29343  Xm/ScrolledWP.h Xm/SelectioB.h Xm/SeparatoG.h Xm/SeparatoGP.h Xm/Separator.h \
29344  Xm/Text.h Xm/TextF.h Xm/ToggleB.h Xm/ToggleBG.h Xm/Xm.h Xm/XmP.h Xm/XmStrDefs.h \
29345  gl.h gl/device.h gl/gl.h invent.h iop/afb.h iop/mov.h iop/pfs.h license.h \
29346  linux/kernel.h linux/sys.h math.h mingw32/dir.h mon.h net/if_arp.h net/route.h \
29347  os2.h setjmp.h starbase.c.h stddef.h stdio.h synch.h sys/access.h \
29348  sys/ipc.h sys/m88kbcs.h sys/mman.h sys/mode.h sys/pstat.h sys/resource.h \
29349  sys/svs.h sys/sysconfig.h sys/syslimits.h sys/sysmacros.h ulocks.h x11/xlibxtra.h \
29350  xgl/xgl.h
29351do
29352ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
29353echo "$as_me:$LINENO: checking for $ac_hdr" >&5
29354echo $ECHO_N "checking for $ac_hdr... $ECHO_C" >&6
29355if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
29356  echo $ECHO_N "(cached) $ECHO_C" >&6
29357else
29358  cat >conftest.$ac_ext <<_ACEOF
29359/* confdefs.h.  */
29360_ACEOF
29361cat confdefs.h >>conftest.$ac_ext
29362cat >>conftest.$ac_ext <<_ACEOF
29363/* end confdefs.h.  */
29364 [#]line 29364 "configure"
29365               #include "confdefs.h"
29366               #include <$ac_hdr>
29367_ACEOF
29368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29369  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29370  ac_status=$?
29371  grep -v '^ *+' conftest.er1 >conftest.err
29372  rm -f conftest.er1
29373  cat conftest.err >&5
29374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375  (exit $ac_status); } >/dev/null; then
29376  if test -s conftest.err; then
29377    ac_cpp_err=$ac_c_preproc_warn_flag
29378    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29379  else
29380    ac_cpp_err=
29381  fi
29382else
29383  ac_cpp_err=yes
29384fi
29385if test -z "$ac_cpp_err"; then
29386   eval "ac_cv_header_$ac_safe=yes"
29387else
29388  echo "$as_me: failed program was:" >&5
29389sed 's/^/| /' conftest.$ac_ext >&5
29390
29391   eval "ac_cv_header_$ac_safe=no"
29392fi
29393rm -f conftest.err conftest.$ac_ext
29394fi
29395if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
29396  echo "$as_me:$LINENO: result: yes" >&5
29397echo "${ECHO_T}yes" >&6
29398    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
29399  cat >>confdefs.h <<_ACEOF
29400#define $ac_tr_hdr 1
29401_ACEOF
29402
29403else
29404  echo "$as_me:$LINENO: result: no" >&5
29405echo "${ECHO_T}no" >&6
29406fi
29407done
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417for ac_header in arpa/inet.h CC/osfcn.h conio.h crypt.h ctype.h cygwin/socket.h
29418do
29419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29420if eval "test \"\${$as_ac_Header+set}\" = set"; then
29421  echo "$as_me:$LINENO: checking for $ac_header" >&5
29422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29423if eval "test \"\${$as_ac_Header+set}\" = set"; then
29424  echo $ECHO_N "(cached) $ECHO_C" >&6
29425fi
29426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29428else
29429  # Is the header compilable?
29430echo "$as_me:$LINENO: checking $ac_header usability" >&5
29431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29432cat >conftest.$ac_ext <<_ACEOF
29433/* confdefs.h.  */
29434_ACEOF
29435cat confdefs.h >>conftest.$ac_ext
29436cat >>conftest.$ac_ext <<_ACEOF
29437/* end confdefs.h.  */
29438$ac_includes_default
29439#include <$ac_header>
29440_ACEOF
29441rm -f conftest.$ac_objext
29442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29443  (eval $ac_compile) 2>conftest.er1
29444  ac_status=$?
29445  grep -v '^ *+' conftest.er1 >conftest.err
29446  rm -f conftest.er1
29447  cat conftest.err >&5
29448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449  (exit $ac_status); } &&
29450	 { ac_try='test -z "$ac_c_werror_flag"
29451			 || test ! -s conftest.err'
29452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453  (eval $ac_try) 2>&5
29454  ac_status=$?
29455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456  (exit $ac_status); }; } &&
29457	 { ac_try='test -s conftest.$ac_objext'
29458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459  (eval $ac_try) 2>&5
29460  ac_status=$?
29461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462  (exit $ac_status); }; }; then
29463  ac_header_compiler=yes
29464else
29465  echo "$as_me: failed program was:" >&5
29466sed 's/^/| /' conftest.$ac_ext >&5
29467
29468ac_header_compiler=no
29469fi
29470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29472echo "${ECHO_T}$ac_header_compiler" >&6
29473
29474# Is the header present?
29475echo "$as_me:$LINENO: checking $ac_header presence" >&5
29476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29477cat >conftest.$ac_ext <<_ACEOF
29478/* confdefs.h.  */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h.  */
29483#include <$ac_header>
29484_ACEOF
29485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29486  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29487  ac_status=$?
29488  grep -v '^ *+' conftest.er1 >conftest.err
29489  rm -f conftest.er1
29490  cat conftest.err >&5
29491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492  (exit $ac_status); } >/dev/null; then
29493  if test -s conftest.err; then
29494    ac_cpp_err=$ac_c_preproc_warn_flag
29495    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29496  else
29497    ac_cpp_err=
29498  fi
29499else
29500  ac_cpp_err=yes
29501fi
29502if test -z "$ac_cpp_err"; then
29503  ac_header_preproc=yes
29504else
29505  echo "$as_me: failed program was:" >&5
29506sed 's/^/| /' conftest.$ac_ext >&5
29507
29508  ac_header_preproc=no
29509fi
29510rm -f conftest.err conftest.$ac_ext
29511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29512echo "${ECHO_T}$ac_header_preproc" >&6
29513
29514# So?  What about this header?
29515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29516  yes:no: )
29517    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29521    ac_header_preproc=yes
29522    ;;
29523  no:yes:* )
29524    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29526    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29527echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29528    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29530    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29531echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29534    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29536    (
29537      cat <<\_ASBOX
29538## ----------------------------- ##
29539## Report this to the dx lists.  ##
29540## ----------------------------- ##
29541_ASBOX
29542    ) |
29543      sed "s/^/$as_me: WARNING:     /" >&2
29544    ;;
29545esac
29546echo "$as_me:$LINENO: checking for $ac_header" >&5
29547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29548if eval "test \"\${$as_ac_Header+set}\" = set"; then
29549  echo $ECHO_N "(cached) $ECHO_C" >&6
29550else
29551  eval "$as_ac_Header=\$ac_header_preproc"
29552fi
29553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29555
29556fi
29557if test `eval echo '${'$as_ac_Header'}'` = yes; then
29558  cat >>confdefs.h <<_ACEOF
29559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29560_ACEOF
29561
29562fi
29563
29564done
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574for ac_header in sys/socket.h dlfcn.h errno.h fcntl.h get.h io.h limits.h malloc.h
29575do
29576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29577if eval "test \"\${$as_ac_Header+set}\" = set"; then
29578  echo "$as_me:$LINENO: checking for $ac_header" >&5
29579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29580if eval "test \"\${$as_ac_Header+set}\" = set"; then
29581  echo $ECHO_N "(cached) $ECHO_C" >&6
29582fi
29583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29585else
29586  # Is the header compilable?
29587echo "$as_me:$LINENO: checking $ac_header usability" >&5
29588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29589cat >conftest.$ac_ext <<_ACEOF
29590/* confdefs.h.  */
29591_ACEOF
29592cat confdefs.h >>conftest.$ac_ext
29593cat >>conftest.$ac_ext <<_ACEOF
29594/* end confdefs.h.  */
29595$ac_includes_default
29596#include <$ac_header>
29597_ACEOF
29598rm -f conftest.$ac_objext
29599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29600  (eval $ac_compile) 2>conftest.er1
29601  ac_status=$?
29602  grep -v '^ *+' conftest.er1 >conftest.err
29603  rm -f conftest.er1
29604  cat conftest.err >&5
29605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606  (exit $ac_status); } &&
29607	 { ac_try='test -z "$ac_c_werror_flag"
29608			 || test ! -s conftest.err'
29609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29610  (eval $ac_try) 2>&5
29611  ac_status=$?
29612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613  (exit $ac_status); }; } &&
29614	 { ac_try='test -s conftest.$ac_objext'
29615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616  (eval $ac_try) 2>&5
29617  ac_status=$?
29618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619  (exit $ac_status); }; }; then
29620  ac_header_compiler=yes
29621else
29622  echo "$as_me: failed program was:" >&5
29623sed 's/^/| /' conftest.$ac_ext >&5
29624
29625ac_header_compiler=no
29626fi
29627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29629echo "${ECHO_T}$ac_header_compiler" >&6
29630
29631# Is the header present?
29632echo "$as_me:$LINENO: checking $ac_header presence" >&5
29633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29634cat >conftest.$ac_ext <<_ACEOF
29635/* confdefs.h.  */
29636_ACEOF
29637cat confdefs.h >>conftest.$ac_ext
29638cat >>conftest.$ac_ext <<_ACEOF
29639/* end confdefs.h.  */
29640#include <$ac_header>
29641_ACEOF
29642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29643  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29644  ac_status=$?
29645  grep -v '^ *+' conftest.er1 >conftest.err
29646  rm -f conftest.er1
29647  cat conftest.err >&5
29648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649  (exit $ac_status); } >/dev/null; then
29650  if test -s conftest.err; then
29651    ac_cpp_err=$ac_c_preproc_warn_flag
29652    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29653  else
29654    ac_cpp_err=
29655  fi
29656else
29657  ac_cpp_err=yes
29658fi
29659if test -z "$ac_cpp_err"; then
29660  ac_header_preproc=yes
29661else
29662  echo "$as_me: failed program was:" >&5
29663sed 's/^/| /' conftest.$ac_ext >&5
29664
29665  ac_header_preproc=no
29666fi
29667rm -f conftest.err conftest.$ac_ext
29668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29669echo "${ECHO_T}$ac_header_preproc" >&6
29670
29671# So?  What about this header?
29672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29673  yes:no: )
29674    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29676    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29678    ac_header_preproc=yes
29679    ;;
29680  no:yes:* )
29681    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29683    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29684echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29685    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29687    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29688echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29689    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29691    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29693    (
29694      cat <<\_ASBOX
29695## ----------------------------- ##
29696## Report this to the dx lists.  ##
29697## ----------------------------- ##
29698_ASBOX
29699    ) |
29700      sed "s/^/$as_me: WARNING:     /" >&2
29701    ;;
29702esac
29703echo "$as_me:$LINENO: checking for $ac_header" >&5
29704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29705if eval "test \"\${$as_ac_Header+set}\" = set"; then
29706  echo $ECHO_N "(cached) $ECHO_C" >&6
29707else
29708  eval "$as_ac_Header=\$ac_header_preproc"
29709fi
29710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29712
29713fi
29714if test `eval echo '${'$as_ac_Header'}'` = yes; then
29715  cat >>confdefs.h <<_ACEOF
29716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29717_ACEOF
29718
29719fi
29720
29721done
29722
29723
29724
29725
29726
29727
29728
29729for ac_header in netdb.h netinet/in.h process.h pwd.h signal.h string.h
29730do
29731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29732if eval "test \"\${$as_ac_Header+set}\" = set"; then
29733  echo "$as_me:$LINENO: checking for $ac_header" >&5
29734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29735if eval "test \"\${$as_ac_Header+set}\" = set"; then
29736  echo $ECHO_N "(cached) $ECHO_C" >&6
29737fi
29738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29740else
29741  # Is the header compilable?
29742echo "$as_me:$LINENO: checking $ac_header usability" >&5
29743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29744cat >conftest.$ac_ext <<_ACEOF
29745/* confdefs.h.  */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h.  */
29750$ac_includes_default
29751#include <$ac_header>
29752_ACEOF
29753rm -f conftest.$ac_objext
29754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29755  (eval $ac_compile) 2>conftest.er1
29756  ac_status=$?
29757  grep -v '^ *+' conftest.er1 >conftest.err
29758  rm -f conftest.er1
29759  cat conftest.err >&5
29760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761  (exit $ac_status); } &&
29762	 { ac_try='test -z "$ac_c_werror_flag"
29763			 || test ! -s conftest.err'
29764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765  (eval $ac_try) 2>&5
29766  ac_status=$?
29767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768  (exit $ac_status); }; } &&
29769	 { ac_try='test -s conftest.$ac_objext'
29770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771  (eval $ac_try) 2>&5
29772  ac_status=$?
29773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774  (exit $ac_status); }; }; then
29775  ac_header_compiler=yes
29776else
29777  echo "$as_me: failed program was:" >&5
29778sed 's/^/| /' conftest.$ac_ext >&5
29779
29780ac_header_compiler=no
29781fi
29782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29784echo "${ECHO_T}$ac_header_compiler" >&6
29785
29786# Is the header present?
29787echo "$as_me:$LINENO: checking $ac_header presence" >&5
29788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29789cat >conftest.$ac_ext <<_ACEOF
29790/* confdefs.h.  */
29791_ACEOF
29792cat confdefs.h >>conftest.$ac_ext
29793cat >>conftest.$ac_ext <<_ACEOF
29794/* end confdefs.h.  */
29795#include <$ac_header>
29796_ACEOF
29797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29798  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29799  ac_status=$?
29800  grep -v '^ *+' conftest.er1 >conftest.err
29801  rm -f conftest.er1
29802  cat conftest.err >&5
29803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804  (exit $ac_status); } >/dev/null; then
29805  if test -s conftest.err; then
29806    ac_cpp_err=$ac_c_preproc_warn_flag
29807    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29808  else
29809    ac_cpp_err=
29810  fi
29811else
29812  ac_cpp_err=yes
29813fi
29814if test -z "$ac_cpp_err"; then
29815  ac_header_preproc=yes
29816else
29817  echo "$as_me: failed program was:" >&5
29818sed 's/^/| /' conftest.$ac_ext >&5
29819
29820  ac_header_preproc=no
29821fi
29822rm -f conftest.err conftest.$ac_ext
29823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29824echo "${ECHO_T}$ac_header_preproc" >&6
29825
29826# So?  What about this header?
29827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29828  yes:no: )
29829    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29831    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29833    ac_header_preproc=yes
29834    ;;
29835  no:yes:* )
29836    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29838    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29839echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29840    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29842    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29843echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29844    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29846    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29848    (
29849      cat <<\_ASBOX
29850## ----------------------------- ##
29851## Report this to the dx lists.  ##
29852## ----------------------------- ##
29853_ASBOX
29854    ) |
29855      sed "s/^/$as_me: WARNING:     /" >&2
29856    ;;
29857esac
29858echo "$as_me:$LINENO: checking for $ac_header" >&5
29859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29860if eval "test \"\${$as_ac_Header+set}\" = set"; then
29861  echo $ECHO_N "(cached) $ECHO_C" >&6
29862else
29863  eval "$as_ac_Header=\$ac_header_preproc"
29864fi
29865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29867
29868fi
29869if test `eval echo '${'$as_ac_Header'}'` = yes; then
29870  cat >>confdefs.h <<_ACEOF
29871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29872_ACEOF
29873
29874fi
29875
29876done
29877
29878
29879
29880
29881
29882
29883for ac_header in strings.h sys/bsd_types.h sys/errno.h sys/file.h sys/filio.h
29884do
29885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29886if eval "test \"\${$as_ac_Header+set}\" = set"; then
29887  echo "$as_me:$LINENO: checking for $ac_header" >&5
29888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29889if eval "test \"\${$as_ac_Header+set}\" = set"; then
29890  echo $ECHO_N "(cached) $ECHO_C" >&6
29891fi
29892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29894else
29895  # Is the header compilable?
29896echo "$as_me:$LINENO: checking $ac_header usability" >&5
29897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29898cat >conftest.$ac_ext <<_ACEOF
29899/* confdefs.h.  */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h.  */
29904$ac_includes_default
29905#include <$ac_header>
29906_ACEOF
29907rm -f conftest.$ac_objext
29908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29909  (eval $ac_compile) 2>conftest.er1
29910  ac_status=$?
29911  grep -v '^ *+' conftest.er1 >conftest.err
29912  rm -f conftest.er1
29913  cat conftest.err >&5
29914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915  (exit $ac_status); } &&
29916	 { ac_try='test -z "$ac_c_werror_flag"
29917			 || test ! -s conftest.err'
29918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29919  (eval $ac_try) 2>&5
29920  ac_status=$?
29921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922  (exit $ac_status); }; } &&
29923	 { ac_try='test -s conftest.$ac_objext'
29924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925  (eval $ac_try) 2>&5
29926  ac_status=$?
29927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928  (exit $ac_status); }; }; then
29929  ac_header_compiler=yes
29930else
29931  echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934ac_header_compiler=no
29935fi
29936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29938echo "${ECHO_T}$ac_header_compiler" >&6
29939
29940# Is the header present?
29941echo "$as_me:$LINENO: checking $ac_header presence" >&5
29942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29943cat >conftest.$ac_ext <<_ACEOF
29944/* confdefs.h.  */
29945_ACEOF
29946cat confdefs.h >>conftest.$ac_ext
29947cat >>conftest.$ac_ext <<_ACEOF
29948/* end confdefs.h.  */
29949#include <$ac_header>
29950_ACEOF
29951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29952  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29953  ac_status=$?
29954  grep -v '^ *+' conftest.er1 >conftest.err
29955  rm -f conftest.er1
29956  cat conftest.err >&5
29957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958  (exit $ac_status); } >/dev/null; then
29959  if test -s conftest.err; then
29960    ac_cpp_err=$ac_c_preproc_warn_flag
29961    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29962  else
29963    ac_cpp_err=
29964  fi
29965else
29966  ac_cpp_err=yes
29967fi
29968if test -z "$ac_cpp_err"; then
29969  ac_header_preproc=yes
29970else
29971  echo "$as_me: failed program was:" >&5
29972sed 's/^/| /' conftest.$ac_ext >&5
29973
29974  ac_header_preproc=no
29975fi
29976rm -f conftest.err conftest.$ac_ext
29977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29978echo "${ECHO_T}$ac_header_preproc" >&6
29979
29980# So?  What about this header?
29981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29982  yes:no: )
29983    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29987    ac_header_preproc=yes
29988    ;;
29989  no:yes:* )
29990    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29992    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29993echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29994    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29996    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29997echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30000    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30002    (
30003      cat <<\_ASBOX
30004## ----------------------------- ##
30005## Report this to the dx lists.  ##
30006## ----------------------------- ##
30007_ASBOX
30008    ) |
30009      sed "s/^/$as_me: WARNING:     /" >&2
30010    ;;
30011esac
30012echo "$as_me:$LINENO: checking for $ac_header" >&5
30013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30014if eval "test \"\${$as_ac_Header+set}\" = set"; then
30015  echo $ECHO_N "(cached) $ECHO_C" >&6
30016else
30017  eval "$as_ac_Header=\$ac_header_preproc"
30018fi
30019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30021
30022fi
30023if test `eval echo '${'$as_ac_Header'}'` = yes; then
30024  cat >>confdefs.h <<_ACEOF
30025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30026_ACEOF
30027
30028fi
30029
30030done
30031
30032
30033
30034
30035
30036
30037for ac_header in sys/ioctl.h sys/ldr.h sys/m_wait.h sys/param.h sys/select.h
30038do
30039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30040if eval "test \"\${$as_ac_Header+set}\" = set"; then
30041  echo "$as_me:$LINENO: checking for $ac_header" >&5
30042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30043if eval "test \"\${$as_ac_Header+set}\" = set"; then
30044  echo $ECHO_N "(cached) $ECHO_C" >&6
30045fi
30046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30048else
30049  # Is the header compilable?
30050echo "$as_me:$LINENO: checking $ac_header usability" >&5
30051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30052cat >conftest.$ac_ext <<_ACEOF
30053/* confdefs.h.  */
30054_ACEOF
30055cat confdefs.h >>conftest.$ac_ext
30056cat >>conftest.$ac_ext <<_ACEOF
30057/* end confdefs.h.  */
30058$ac_includes_default
30059#include <$ac_header>
30060_ACEOF
30061rm -f conftest.$ac_objext
30062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30063  (eval $ac_compile) 2>conftest.er1
30064  ac_status=$?
30065  grep -v '^ *+' conftest.er1 >conftest.err
30066  rm -f conftest.er1
30067  cat conftest.err >&5
30068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069  (exit $ac_status); } &&
30070	 { ac_try='test -z "$ac_c_werror_flag"
30071			 || test ! -s conftest.err'
30072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073  (eval $ac_try) 2>&5
30074  ac_status=$?
30075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076  (exit $ac_status); }; } &&
30077	 { ac_try='test -s conftest.$ac_objext'
30078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30079  (eval $ac_try) 2>&5
30080  ac_status=$?
30081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082  (exit $ac_status); }; }; then
30083  ac_header_compiler=yes
30084else
30085  echo "$as_me: failed program was:" >&5
30086sed 's/^/| /' conftest.$ac_ext >&5
30087
30088ac_header_compiler=no
30089fi
30090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30092echo "${ECHO_T}$ac_header_compiler" >&6
30093
30094# Is the header present?
30095echo "$as_me:$LINENO: checking $ac_header presence" >&5
30096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30097cat >conftest.$ac_ext <<_ACEOF
30098/* confdefs.h.  */
30099_ACEOF
30100cat confdefs.h >>conftest.$ac_ext
30101cat >>conftest.$ac_ext <<_ACEOF
30102/* end confdefs.h.  */
30103#include <$ac_header>
30104_ACEOF
30105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30107  ac_status=$?
30108  grep -v '^ *+' conftest.er1 >conftest.err
30109  rm -f conftest.er1
30110  cat conftest.err >&5
30111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112  (exit $ac_status); } >/dev/null; then
30113  if test -s conftest.err; then
30114    ac_cpp_err=$ac_c_preproc_warn_flag
30115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30116  else
30117    ac_cpp_err=
30118  fi
30119else
30120  ac_cpp_err=yes
30121fi
30122if test -z "$ac_cpp_err"; then
30123  ac_header_preproc=yes
30124else
30125  echo "$as_me: failed program was:" >&5
30126sed 's/^/| /' conftest.$ac_ext >&5
30127
30128  ac_header_preproc=no
30129fi
30130rm -f conftest.err conftest.$ac_ext
30131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30132echo "${ECHO_T}$ac_header_preproc" >&6
30133
30134# So?  What about this header?
30135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30136  yes:no: )
30137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30141    ac_header_preproc=yes
30142    ;;
30143  no:yes:* )
30144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30156    (
30157      cat <<\_ASBOX
30158## ----------------------------- ##
30159## Report this to the dx lists.  ##
30160## ----------------------------- ##
30161_ASBOX
30162    ) |
30163      sed "s/^/$as_me: WARNING:     /" >&2
30164    ;;
30165esac
30166echo "$as_me:$LINENO: checking for $ac_header" >&5
30167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30168if eval "test \"\${$as_ac_Header+set}\" = set"; then
30169  echo $ECHO_N "(cached) $ECHO_C" >&6
30170else
30171  eval "$as_ac_Header=\$ac_header_preproc"
30172fi
30173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30175
30176fi
30177if test `eval echo '${'$as_ac_Header'}'` = yes; then
30178  cat >>confdefs.h <<_ACEOF
30179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30180_ACEOF
30181
30182fi
30183
30184done
30185
30186
30187
30188
30189
30190for ac_header in sys/shm.h sys/signal.h sys/stat.h sys/sysmp.h
30191do
30192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30193if eval "test \"\${$as_ac_Header+set}\" = set"; then
30194  echo "$as_me:$LINENO: checking for $ac_header" >&5
30195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30196if eval "test \"\${$as_ac_Header+set}\" = set"; then
30197  echo $ECHO_N "(cached) $ECHO_C" >&6
30198fi
30199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30201else
30202  # Is the header compilable?
30203echo "$as_me:$LINENO: checking $ac_header usability" >&5
30204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30205cat >conftest.$ac_ext <<_ACEOF
30206/* confdefs.h.  */
30207_ACEOF
30208cat confdefs.h >>conftest.$ac_ext
30209cat >>conftest.$ac_ext <<_ACEOF
30210/* end confdefs.h.  */
30211$ac_includes_default
30212#include <$ac_header>
30213_ACEOF
30214rm -f conftest.$ac_objext
30215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30216  (eval $ac_compile) 2>conftest.er1
30217  ac_status=$?
30218  grep -v '^ *+' conftest.er1 >conftest.err
30219  rm -f conftest.er1
30220  cat conftest.err >&5
30221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222  (exit $ac_status); } &&
30223	 { ac_try='test -z "$ac_c_werror_flag"
30224			 || test ! -s conftest.err'
30225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226  (eval $ac_try) 2>&5
30227  ac_status=$?
30228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229  (exit $ac_status); }; } &&
30230	 { ac_try='test -s conftest.$ac_objext'
30231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232  (eval $ac_try) 2>&5
30233  ac_status=$?
30234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235  (exit $ac_status); }; }; then
30236  ac_header_compiler=yes
30237else
30238  echo "$as_me: failed program was:" >&5
30239sed 's/^/| /' conftest.$ac_ext >&5
30240
30241ac_header_compiler=no
30242fi
30243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30245echo "${ECHO_T}$ac_header_compiler" >&6
30246
30247# Is the header present?
30248echo "$as_me:$LINENO: checking $ac_header presence" >&5
30249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30250cat >conftest.$ac_ext <<_ACEOF
30251/* confdefs.h.  */
30252_ACEOF
30253cat confdefs.h >>conftest.$ac_ext
30254cat >>conftest.$ac_ext <<_ACEOF
30255/* end confdefs.h.  */
30256#include <$ac_header>
30257_ACEOF
30258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30259  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30260  ac_status=$?
30261  grep -v '^ *+' conftest.er1 >conftest.err
30262  rm -f conftest.er1
30263  cat conftest.err >&5
30264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265  (exit $ac_status); } >/dev/null; then
30266  if test -s conftest.err; then
30267    ac_cpp_err=$ac_c_preproc_warn_flag
30268    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30269  else
30270    ac_cpp_err=
30271  fi
30272else
30273  ac_cpp_err=yes
30274fi
30275if test -z "$ac_cpp_err"; then
30276  ac_header_preproc=yes
30277else
30278  echo "$as_me: failed program was:" >&5
30279sed 's/^/| /' conftest.$ac_ext >&5
30280
30281  ac_header_preproc=no
30282fi
30283rm -f conftest.err conftest.$ac_ext
30284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30285echo "${ECHO_T}$ac_header_preproc" >&6
30286
30287# So?  What about this header?
30288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30289  yes:no: )
30290    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30292    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30294    ac_header_preproc=yes
30295    ;;
30296  no:yes:* )
30297    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30299    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30300echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30301    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30303    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30304echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30305    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30307    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30309    (
30310      cat <<\_ASBOX
30311## ----------------------------- ##
30312## Report this to the dx lists.  ##
30313## ----------------------------- ##
30314_ASBOX
30315    ) |
30316      sed "s/^/$as_me: WARNING:     /" >&2
30317    ;;
30318esac
30319echo "$as_me:$LINENO: checking for $ac_header" >&5
30320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30321if eval "test \"\${$as_ac_Header+set}\" = set"; then
30322  echo $ECHO_N "(cached) $ECHO_C" >&6
30323else
30324  eval "$as_ac_Header=\$ac_header_preproc"
30325fi
30326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30328
30329fi
30330if test `eval echo '${'$as_ac_Header'}'` = yes; then
30331  cat >>confdefs.h <<_ACEOF
30332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30333_ACEOF
30334
30335fi
30336
30337done
30338
30339
30340
30341
30342
30343
30344for ac_header in sys/systemcfg.h sys/systeminfo.h sys/timeb.h sys/times.h sys/time.h
30345do
30346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30347if eval "test \"\${$as_ac_Header+set}\" = set"; then
30348  echo "$as_me:$LINENO: checking for $ac_header" >&5
30349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30350if eval "test \"\${$as_ac_Header+set}\" = set"; then
30351  echo $ECHO_N "(cached) $ECHO_C" >&6
30352fi
30353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30355else
30356  # Is the header compilable?
30357echo "$as_me:$LINENO: checking $ac_header usability" >&5
30358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30359cat >conftest.$ac_ext <<_ACEOF
30360/* confdefs.h.  */
30361_ACEOF
30362cat confdefs.h >>conftest.$ac_ext
30363cat >>conftest.$ac_ext <<_ACEOF
30364/* end confdefs.h.  */
30365$ac_includes_default
30366#include <$ac_header>
30367_ACEOF
30368rm -f conftest.$ac_objext
30369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30370  (eval $ac_compile) 2>conftest.er1
30371  ac_status=$?
30372  grep -v '^ *+' conftest.er1 >conftest.err
30373  rm -f conftest.er1
30374  cat conftest.err >&5
30375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376  (exit $ac_status); } &&
30377	 { ac_try='test -z "$ac_c_werror_flag"
30378			 || test ! -s conftest.err'
30379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380  (eval $ac_try) 2>&5
30381  ac_status=$?
30382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383  (exit $ac_status); }; } &&
30384	 { ac_try='test -s conftest.$ac_objext'
30385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30386  (eval $ac_try) 2>&5
30387  ac_status=$?
30388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389  (exit $ac_status); }; }; then
30390  ac_header_compiler=yes
30391else
30392  echo "$as_me: failed program was:" >&5
30393sed 's/^/| /' conftest.$ac_ext >&5
30394
30395ac_header_compiler=no
30396fi
30397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30399echo "${ECHO_T}$ac_header_compiler" >&6
30400
30401# Is the header present?
30402echo "$as_me:$LINENO: checking $ac_header presence" >&5
30403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30404cat >conftest.$ac_ext <<_ACEOF
30405/* confdefs.h.  */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h.  */
30410#include <$ac_header>
30411_ACEOF
30412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30413  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30414  ac_status=$?
30415  grep -v '^ *+' conftest.er1 >conftest.err
30416  rm -f conftest.er1
30417  cat conftest.err >&5
30418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419  (exit $ac_status); } >/dev/null; then
30420  if test -s conftest.err; then
30421    ac_cpp_err=$ac_c_preproc_warn_flag
30422    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30423  else
30424    ac_cpp_err=
30425  fi
30426else
30427  ac_cpp_err=yes
30428fi
30429if test -z "$ac_cpp_err"; then
30430  ac_header_preproc=yes
30431else
30432  echo "$as_me: failed program was:" >&5
30433sed 's/^/| /' conftest.$ac_ext >&5
30434
30435  ac_header_preproc=no
30436fi
30437rm -f conftest.err conftest.$ac_ext
30438echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30439echo "${ECHO_T}$ac_header_preproc" >&6
30440
30441# So?  What about this header?
30442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30443  yes:no: )
30444    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30446    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30448    ac_header_preproc=yes
30449    ;;
30450  no:yes:* )
30451    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30453    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30454echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30455    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30457    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30458echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30459    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30461    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30463    (
30464      cat <<\_ASBOX
30465## ----------------------------- ##
30466## Report this to the dx lists.  ##
30467## ----------------------------- ##
30468_ASBOX
30469    ) |
30470      sed "s/^/$as_me: WARNING:     /" >&2
30471    ;;
30472esac
30473echo "$as_me:$LINENO: checking for $ac_header" >&5
30474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30475if eval "test \"\${$as_ac_Header+set}\" = set"; then
30476  echo $ECHO_N "(cached) $ECHO_C" >&6
30477else
30478  eval "$as_ac_Header=\$ac_header_preproc"
30479fi
30480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30482
30483fi
30484if test `eval echo '${'$as_ac_Header'}'` = yes; then
30485  cat >>confdefs.h <<_ACEOF
30486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30487_ACEOF
30488
30489fi
30490
30491done
30492
30493
30494
30495
30496
30497for ac_header in sys/types.h sys/un.h sys/utsname.h time.h
30498do
30499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30500if eval "test \"\${$as_ac_Header+set}\" = set"; then
30501  echo "$as_me:$LINENO: checking for $ac_header" >&5
30502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30503if eval "test \"\${$as_ac_Header+set}\" = set"; then
30504  echo $ECHO_N "(cached) $ECHO_C" >&6
30505fi
30506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30508else
30509  # Is the header compilable?
30510echo "$as_me:$LINENO: checking $ac_header usability" >&5
30511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30512cat >conftest.$ac_ext <<_ACEOF
30513/* confdefs.h.  */
30514_ACEOF
30515cat confdefs.h >>conftest.$ac_ext
30516cat >>conftest.$ac_ext <<_ACEOF
30517/* end confdefs.h.  */
30518$ac_includes_default
30519#include <$ac_header>
30520_ACEOF
30521rm -f conftest.$ac_objext
30522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30523  (eval $ac_compile) 2>conftest.er1
30524  ac_status=$?
30525  grep -v '^ *+' conftest.er1 >conftest.err
30526  rm -f conftest.er1
30527  cat conftest.err >&5
30528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529  (exit $ac_status); } &&
30530	 { ac_try='test -z "$ac_c_werror_flag"
30531			 || test ! -s conftest.err'
30532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533  (eval $ac_try) 2>&5
30534  ac_status=$?
30535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536  (exit $ac_status); }; } &&
30537	 { ac_try='test -s conftest.$ac_objext'
30538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539  (eval $ac_try) 2>&5
30540  ac_status=$?
30541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542  (exit $ac_status); }; }; then
30543  ac_header_compiler=yes
30544else
30545  echo "$as_me: failed program was:" >&5
30546sed 's/^/| /' conftest.$ac_ext >&5
30547
30548ac_header_compiler=no
30549fi
30550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30552echo "${ECHO_T}$ac_header_compiler" >&6
30553
30554# Is the header present?
30555echo "$as_me:$LINENO: checking $ac_header presence" >&5
30556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30557cat >conftest.$ac_ext <<_ACEOF
30558/* confdefs.h.  */
30559_ACEOF
30560cat confdefs.h >>conftest.$ac_ext
30561cat >>conftest.$ac_ext <<_ACEOF
30562/* end confdefs.h.  */
30563#include <$ac_header>
30564_ACEOF
30565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30567  ac_status=$?
30568  grep -v '^ *+' conftest.er1 >conftest.err
30569  rm -f conftest.er1
30570  cat conftest.err >&5
30571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572  (exit $ac_status); } >/dev/null; then
30573  if test -s conftest.err; then
30574    ac_cpp_err=$ac_c_preproc_warn_flag
30575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30576  else
30577    ac_cpp_err=
30578  fi
30579else
30580  ac_cpp_err=yes
30581fi
30582if test -z "$ac_cpp_err"; then
30583  ac_header_preproc=yes
30584else
30585  echo "$as_me: failed program was:" >&5
30586sed 's/^/| /' conftest.$ac_ext >&5
30587
30588  ac_header_preproc=no
30589fi
30590rm -f conftest.err conftest.$ac_ext
30591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30592echo "${ECHO_T}$ac_header_preproc" >&6
30593
30594# So?  What about this header?
30595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30596  yes:no: )
30597    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30601    ac_header_preproc=yes
30602    ;;
30603  no:yes:* )
30604    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30606    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30607echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30608    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30610    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30611echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30614    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30616    (
30617      cat <<\_ASBOX
30618## ----------------------------- ##
30619## Report this to the dx lists.  ##
30620## ----------------------------- ##
30621_ASBOX
30622    ) |
30623      sed "s/^/$as_me: WARNING:     /" >&2
30624    ;;
30625esac
30626echo "$as_me:$LINENO: checking for $ac_header" >&5
30627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30628if eval "test \"\${$as_ac_Header+set}\" = set"; then
30629  echo $ECHO_N "(cached) $ECHO_C" >&6
30630else
30631  eval "$as_ac_Header=\$ac_header_preproc"
30632fi
30633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30635
30636fi
30637if test `eval echo '${'$as_ac_Header'}'` = yes; then
30638  cat >>confdefs.h <<_ACEOF
30639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30640_ACEOF
30641
30642fi
30643
30644done
30645
30646
30647
30648
30649
30650for ac_header in types.h unistd.h values.h wait.h
30651do
30652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30653if eval "test \"\${$as_ac_Header+set}\" = set"; then
30654  echo "$as_me:$LINENO: checking for $ac_header" >&5
30655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30656if eval "test \"\${$as_ac_Header+set}\" = set"; then
30657  echo $ECHO_N "(cached) $ECHO_C" >&6
30658fi
30659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30661else
30662  # Is the header compilable?
30663echo "$as_me:$LINENO: checking $ac_header usability" >&5
30664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30665cat >conftest.$ac_ext <<_ACEOF
30666/* confdefs.h.  */
30667_ACEOF
30668cat confdefs.h >>conftest.$ac_ext
30669cat >>conftest.$ac_ext <<_ACEOF
30670/* end confdefs.h.  */
30671$ac_includes_default
30672#include <$ac_header>
30673_ACEOF
30674rm -f conftest.$ac_objext
30675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30676  (eval $ac_compile) 2>conftest.er1
30677  ac_status=$?
30678  grep -v '^ *+' conftest.er1 >conftest.err
30679  rm -f conftest.er1
30680  cat conftest.err >&5
30681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682  (exit $ac_status); } &&
30683	 { ac_try='test -z "$ac_c_werror_flag"
30684			 || test ! -s conftest.err'
30685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30686  (eval $ac_try) 2>&5
30687  ac_status=$?
30688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689  (exit $ac_status); }; } &&
30690	 { ac_try='test -s conftest.$ac_objext'
30691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30692  (eval $ac_try) 2>&5
30693  ac_status=$?
30694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695  (exit $ac_status); }; }; then
30696  ac_header_compiler=yes
30697else
30698  echo "$as_me: failed program was:" >&5
30699sed 's/^/| /' conftest.$ac_ext >&5
30700
30701ac_header_compiler=no
30702fi
30703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30705echo "${ECHO_T}$ac_header_compiler" >&6
30706
30707# Is the header present?
30708echo "$as_me:$LINENO: checking $ac_header presence" >&5
30709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30710cat >conftest.$ac_ext <<_ACEOF
30711/* confdefs.h.  */
30712_ACEOF
30713cat confdefs.h >>conftest.$ac_ext
30714cat >>conftest.$ac_ext <<_ACEOF
30715/* end confdefs.h.  */
30716#include <$ac_header>
30717_ACEOF
30718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30719  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30720  ac_status=$?
30721  grep -v '^ *+' conftest.er1 >conftest.err
30722  rm -f conftest.er1
30723  cat conftest.err >&5
30724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725  (exit $ac_status); } >/dev/null; then
30726  if test -s conftest.err; then
30727    ac_cpp_err=$ac_c_preproc_warn_flag
30728    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30729  else
30730    ac_cpp_err=
30731  fi
30732else
30733  ac_cpp_err=yes
30734fi
30735if test -z "$ac_cpp_err"; then
30736  ac_header_preproc=yes
30737else
30738  echo "$as_me: failed program was:" >&5
30739sed 's/^/| /' conftest.$ac_ext >&5
30740
30741  ac_header_preproc=no
30742fi
30743rm -f conftest.err conftest.$ac_ext
30744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30745echo "${ECHO_T}$ac_header_preproc" >&6
30746
30747# So?  What about this header?
30748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30749  yes:no: )
30750    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30752    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30754    ac_header_preproc=yes
30755    ;;
30756  no:yes:* )
30757    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30759    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30760echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30761    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30763    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30764echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30767    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30769    (
30770      cat <<\_ASBOX
30771## ----------------------------- ##
30772## Report this to the dx lists.  ##
30773## ----------------------------- ##
30774_ASBOX
30775    ) |
30776      sed "s/^/$as_me: WARNING:     /" >&2
30777    ;;
30778esac
30779echo "$as_me:$LINENO: checking for $ac_header" >&5
30780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30781if eval "test \"\${$as_ac_Header+set}\" = set"; then
30782  echo $ECHO_N "(cached) $ECHO_C" >&6
30783else
30784  eval "$as_ac_Header=\$ac_header_preproc"
30785fi
30786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30788
30789fi
30790if test `eval echo '${'$as_ac_Header'}'` = yes; then
30791  cat >>confdefs.h <<_ACEOF
30792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30793_ACEOF
30794
30795fi
30796
30797done
30798
30799
30800for ac_header in X11/Xmu/Editres.h
30801do
30802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30803echo "$as_me:$LINENO: checking for $ac_header" >&5
30804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30805if eval "test \"\${$as_ac_Header+set}\" = set"; then
30806  echo $ECHO_N "(cached) $ECHO_C" >&6
30807else
30808  cat >conftest.$ac_ext <<_ACEOF
30809/* confdefs.h.  */
30810_ACEOF
30811cat confdefs.h >>conftest.$ac_ext
30812cat >>conftest.$ac_ext <<_ACEOF
30813/* end confdefs.h.  */
30814#if HAVE_X11_INTRINSIC_H
30815   #include <X11/Intrinsic.h>
30816#endif
30817
30818
30819#include <$ac_header>
30820_ACEOF
30821rm -f conftest.$ac_objext
30822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30823  (eval $ac_compile) 2>conftest.er1
30824  ac_status=$?
30825  grep -v '^ *+' conftest.er1 >conftest.err
30826  rm -f conftest.er1
30827  cat conftest.err >&5
30828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829  (exit $ac_status); } &&
30830	 { ac_try='test -z "$ac_c_werror_flag"
30831			 || test ! -s conftest.err'
30832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30833  (eval $ac_try) 2>&5
30834  ac_status=$?
30835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836  (exit $ac_status); }; } &&
30837	 { ac_try='test -s conftest.$ac_objext'
30838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30839  (eval $ac_try) 2>&5
30840  ac_status=$?
30841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842  (exit $ac_status); }; }; then
30843  eval "$as_ac_Header=yes"
30844else
30845  echo "$as_me: failed program was:" >&5
30846sed 's/^/| /' conftest.$ac_ext >&5
30847
30848eval "$as_ac_Header=no"
30849fi
30850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30851fi
30852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30854if test `eval echo '${'$as_ac_Header'}'` = yes; then
30855  cat >>confdefs.h <<_ACEOF
30856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30857_ACEOF
30858
30859fi
30860
30861done
30862
30863
30864
30865#
30866# Check for XINERAMA
30867#
30868have_xinerama='no'
30869LIB_XINERAMA=''
30870{ echo "$as_me:$LINENO: checking for XINERAMA support ......" >&5
30871echo "$as_me: checking for XINERAMA support ......" >&6;}
30872failed=0;
30873passed=0;
30874
30875for ac_header in X11/extensions/Xinerama.h
30876do
30877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30878echo "$as_me:$LINENO: checking for $ac_header" >&5
30879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30880if eval "test \"\${$as_ac_Header+set}\" = set"; then
30881  echo $ECHO_N "(cached) $ECHO_C" >&6
30882else
30883  cat >conftest.$ac_ext <<_ACEOF
30884/* confdefs.h.  */
30885_ACEOF
30886cat confdefs.h >>conftest.$ac_ext
30887cat >>conftest.$ac_ext <<_ACEOF
30888/* end confdefs.h.  */
30889#if HAVE_X11_INTRINSIC_H
30890   #include <X11/Intrinsic.h>
30891#endif
30892
30893
30894#include <$ac_header>
30895_ACEOF
30896rm -f conftest.$ac_objext
30897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30898  (eval $ac_compile) 2>conftest.er1
30899  ac_status=$?
30900  grep -v '^ *+' conftest.er1 >conftest.err
30901  rm -f conftest.er1
30902  cat conftest.err >&5
30903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904  (exit $ac_status); } &&
30905	 { ac_try='test -z "$ac_c_werror_flag"
30906			 || test ! -s conftest.err'
30907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908  (eval $ac_try) 2>&5
30909  ac_status=$?
30910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911  (exit $ac_status); }; } &&
30912	 { ac_try='test -s conftest.$ac_objext'
30913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914  (eval $ac_try) 2>&5
30915  ac_status=$?
30916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917  (exit $ac_status); }; }; then
30918  eval "$as_ac_Header=yes"
30919else
30920  echo "$as_me: failed program was:" >&5
30921sed 's/^/| /' conftest.$ac_ext >&5
30922
30923eval "$as_ac_Header=no"
30924fi
30925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30926fi
30927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30929if test `eval echo '${'$as_ac_Header'}'` = yes; then
30930  cat >>confdefs.h <<_ACEOF
30931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30932_ACEOF
30933 passed=`expr $passed + 1`
30934else
30935  failed=`expr $failed + 1`
30936fi
30937
30938done
30939
30940echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
30941echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
30942if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
30943  echo $ECHO_N "(cached) $ECHO_C" >&6
30944else
30945  ac_check_lib_save_LIBS=$LIBS
30946LIBS="-lXinerama -lXt $LIBS"
30947cat >conftest.$ac_ext <<_ACEOF
30948/* confdefs.h.  */
30949_ACEOF
30950cat confdefs.h >>conftest.$ac_ext
30951cat >>conftest.$ac_ext <<_ACEOF
30952/* end confdefs.h.  */
30953
30954/* Override any gcc2 internal prototype to avoid an error.  */
30955#ifdef __cplusplus
30956extern "C"
30957#endif
30958/* We use char because int might match the return type of a gcc2
30959   builtin and then its argument prototype would still apply.  */
30960char XineramaQueryExtension ();
30961int
30962main ()
30963{
30964XineramaQueryExtension ();
30965  ;
30966  return 0;
30967}
30968_ACEOF
30969rm -f conftest.$ac_objext conftest$ac_exeext
30970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30971  (eval $ac_link) 2>conftest.er1
30972  ac_status=$?
30973  grep -v '^ *+' conftest.er1 >conftest.err
30974  rm -f conftest.er1
30975  cat conftest.err >&5
30976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977  (exit $ac_status); } &&
30978	 { ac_try='test -z "$ac_c_werror_flag"
30979			 || test ! -s conftest.err'
30980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981  (eval $ac_try) 2>&5
30982  ac_status=$?
30983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984  (exit $ac_status); }; } &&
30985	 { ac_try='test -s conftest$ac_exeext'
30986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987  (eval $ac_try) 2>&5
30988  ac_status=$?
30989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990  (exit $ac_status); }; }; then
30991  ac_cv_lib_Xinerama_XineramaQueryExtension=yes
30992else
30993  echo "$as_me: failed program was:" >&5
30994sed 's/^/| /' conftest.$ac_ext >&5
30995
30996ac_cv_lib_Xinerama_XineramaQueryExtension=no
30997fi
30998rm -f conftest.err conftest.$ac_objext \
30999      conftest$ac_exeext conftest.$ac_ext
31000LIBS=$ac_check_lib_save_LIBS
31001fi
31002echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
31003echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
31004if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
31005  passed=`expr $passed + 1`
31006else
31007  failed=`expr $failed + 1`
31008fi
31009
31010
31011echo "$as_me:$LINENO: checking if Xinerama package is complete" >&5
31012echo $ECHO_N "checking if Xinerama package is complete... $ECHO_C" >&6
31013if test $passed -gt 0
31014	then
31015	if test $failed -gt 0
31016		then
31017			echo "$as_me:$LINENO: result: no -- some components failed test" >&5
31018echo "${ECHO_T}no -- some components failed test" >&6
31019        		have_xinerama='no (failed tests)'
31020    	else
31021			LIB_XINERAMA='-lXinerama'
31022			LIBS="$LIB_XINERAMA $LIBS"
31023
31024cat >>confdefs.h <<\_ACEOF
31025#define HAVE_XINERAMA 1
31026_ACEOF
31027
31028			echo "$as_me:$LINENO: result: yes" >&5
31029echo "${ECHO_T}yes" >&6
31030        	have_xinerama='yes'
31031    fi
31032else
31033    echo "$as_me:$LINENO: result: no" >&5
31034echo "${ECHO_T}no" >&6
31035fi
31036
31037
31038
31039for ac_header in net/if.h
31040do
31041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31042echo "$as_me:$LINENO: checking for $ac_header" >&5
31043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31044if eval "test \"\${$as_ac_Header+set}\" = set"; then
31045  echo $ECHO_N "(cached) $ECHO_C" >&6
31046else
31047  cat >conftest.$ac_ext <<_ACEOF
31048/* confdefs.h.  */
31049_ACEOF
31050cat confdefs.h >>conftest.$ac_ext
31051cat >>conftest.$ac_ext <<_ACEOF
31052/* end confdefs.h.  */
31053#include <stdio.h>
31054  #if HAVE_SYS_TYPES_H
31055  # include <sys/types.h>
31056  #endif
31057  #if HAVE_SYS_STAT_H
31058  # include <sys/stat.h>
31059  #endif
31060  #if STDC_HEADERS
31061  # include <stdlib.h>
31062  # include <stddef.h>
31063  #else
31064  # if HAVE_STDLIB_H
31065  #  include <stdlib.h>
31066  # endif
31067  #endif
31068  #if HAVE_STRING_H
31069  # if !STDC_HEADERS && HAVE_MEMORY_H
31070  #  include <memory.h>
31071  # endif
31072  # include <string.h>
31073  #endif
31074  #if HAVE_STRINGS_H
31075  # include <strings.h>
31076  #endif
31077  #if HAVE_INTTYPES_H
31078  # include <inttypes.h>
31079  #else
31080  # if HAVE_STDINT_H
31081  #  include <stdint.h>
31082  # endif
31083  #endif
31084  #if HAVE_UNISTD_H
31085  # include <unistd.h>
31086  #endif
31087  #if HAVE_SYS_SOCKET_H
31088  # include <sys/socket.h>
31089  #endif
31090
31091
31092#include <$ac_header>
31093_ACEOF
31094rm -f conftest.$ac_objext
31095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31096  (eval $ac_compile) 2>conftest.er1
31097  ac_status=$?
31098  grep -v '^ *+' conftest.er1 >conftest.err
31099  rm -f conftest.er1
31100  cat conftest.err >&5
31101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102  (exit $ac_status); } &&
31103	 { ac_try='test -z "$ac_c_werror_flag"
31104			 || test ! -s conftest.err'
31105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31106  (eval $ac_try) 2>&5
31107  ac_status=$?
31108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109  (exit $ac_status); }; } &&
31110	 { ac_try='test -s conftest.$ac_objext'
31111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31112  (eval $ac_try) 2>&5
31113  ac_status=$?
31114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115  (exit $ac_status); }; }; then
31116  eval "$as_ac_Header=yes"
31117else
31118  echo "$as_me: failed program was:" >&5
31119sed 's/^/| /' conftest.$ac_ext >&5
31120
31121eval "$as_ac_Header=no"
31122fi
31123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31124fi
31125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31127if test `eval echo '${'$as_ac_Header'}'` = yes; then
31128  cat >>confdefs.h <<_ACEOF
31129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31130_ACEOF
31131
31132fi
31133
31134done
31135
31136
31137echo "$as_me:$LINENO: checking for O_RDONLY" >&5
31138echo $ECHO_N "checking for O_RDONLY... $ECHO_C" >&6
31139cat >conftest.$ac_ext <<_ACEOF
31140/* confdefs.h.  */
31141_ACEOF
31142cat confdefs.h >>conftest.$ac_ext
31143cat >>conftest.$ac_ext <<_ACEOF
31144/* end confdefs.h.  */
31145
31146#if defined(HAVE_FCNTL_H)
31147#include <fcntl.h>
31148#endif
31149
31150int
31151main ()
31152{
31153
31154int i = O_RDONLY;
31155
31156  ;
31157  return 0;
31158}
31159_ACEOF
31160rm -f conftest.$ac_objext
31161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31162  (eval $ac_compile) 2>conftest.er1
31163  ac_status=$?
31164  grep -v '^ *+' conftest.er1 >conftest.err
31165  rm -f conftest.er1
31166  cat conftest.err >&5
31167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168  (exit $ac_status); } &&
31169	 { ac_try='test -z "$ac_c_werror_flag"
31170			 || test ! -s conftest.err'
31171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31172  (eval $ac_try) 2>&5
31173  ac_status=$?
31174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175  (exit $ac_status); }; } &&
31176	 { ac_try='test -s conftest.$ac_objext'
31177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31178  (eval $ac_try) 2>&5
31179  ac_status=$?
31180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181  (exit $ac_status); }; }; then
31182
31183echo "$as_me:$LINENO: result: yes" >&5
31184echo "${ECHO_T}yes" >&6
31185
31186else
31187  echo "$as_me: failed program was:" >&5
31188sed 's/^/| /' conftest.$ac_ext >&5
31189
31190
31191echo "$as_me:$LINENO: result: no" >&5
31192echo "${ECHO_T}no" >&6
31193
31194cat >>confdefs.h <<_ACEOF
31195#define O_RDONLY _O_RDONLY
31196_ACEOF
31197
31198
31199fi
31200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31201
31202if test "$ARCH" = "intelnt" ; then
31203
31204
31205
31206
31207for ac_header in winbase.h wingdi.h winioctl.h winsock.h
31208do
31209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31210echo "$as_me:$LINENO: checking for $ac_header" >&5
31211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31212if eval "test \"\${$as_ac_Header+set}\" = set"; then
31213  echo $ECHO_N "(cached) $ECHO_C" >&6
31214else
31215  cat >conftest.$ac_ext <<_ACEOF
31216/* confdefs.h.  */
31217_ACEOF
31218cat confdefs.h >>conftest.$ac_ext
31219cat >>conftest.$ac_ext <<_ACEOF
31220/* end confdefs.h.  */
31221 #if HAVE_WINDOWS_H
31222	  #include <windows.h>
31223	  #endif
31224
31225
31226#include <$ac_header>
31227_ACEOF
31228rm -f conftest.$ac_objext
31229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31230  (eval $ac_compile) 2>conftest.er1
31231  ac_status=$?
31232  grep -v '^ *+' conftest.er1 >conftest.err
31233  rm -f conftest.er1
31234  cat conftest.err >&5
31235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236  (exit $ac_status); } &&
31237	 { ac_try='test -z "$ac_c_werror_flag"
31238			 || test ! -s conftest.err'
31239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31240  (eval $ac_try) 2>&5
31241  ac_status=$?
31242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243  (exit $ac_status); }; } &&
31244	 { ac_try='test -s conftest.$ac_objext'
31245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246  (eval $ac_try) 2>&5
31247  ac_status=$?
31248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249  (exit $ac_status); }; }; then
31250  eval "$as_ac_Header=yes"
31251else
31252  echo "$as_me: failed program was:" >&5
31253sed 's/^/| /' conftest.$ac_ext >&5
31254
31255eval "$as_ac_Header=no"
31256fi
31257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31258fi
31259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31261if test `eval echo '${'$as_ac_Header'}'` = yes; then
31262  cat >>confdefs.h <<_ACEOF
31263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31264_ACEOF
31265
31266fi
31267
31268done
31269
31270fi
31271
31272
31273ac_ext=cc
31274ac_cpp='$CXXCPP $CPPFLAGS'
31275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31278
31279echo "/* */" > statHdrs.h
31280if test "${ac_cv_header_windows_h+set}" = set; then
31281  echo "$as_me:$LINENO: checking for windows.h" >&5
31282echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
31283if test "${ac_cv_header_windows_h+set}" = set; then
31284  echo $ECHO_N "(cached) $ECHO_C" >&6
31285fi
31286echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
31287echo "${ECHO_T}$ac_cv_header_windows_h" >&6
31288else
31289  # Is the header compilable?
31290echo "$as_me:$LINENO: checking windows.h usability" >&5
31291echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
31292cat >conftest.$ac_ext <<_ACEOF
31293/* confdefs.h.  */
31294_ACEOF
31295cat confdefs.h >>conftest.$ac_ext
31296cat >>conftest.$ac_ext <<_ACEOF
31297/* end confdefs.h.  */
31298$ac_includes_default
31299#include <windows.h>
31300_ACEOF
31301rm -f conftest.$ac_objext
31302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31303  (eval $ac_compile) 2>conftest.er1
31304  ac_status=$?
31305  grep -v '^ *+' conftest.er1 >conftest.err
31306  rm -f conftest.er1
31307  cat conftest.err >&5
31308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309  (exit $ac_status); } &&
31310	 { ac_try='test -z "$ac_cxx_werror_flag"
31311			 || test ! -s conftest.err'
31312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31313  (eval $ac_try) 2>&5
31314  ac_status=$?
31315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316  (exit $ac_status); }; } &&
31317	 { ac_try='test -s conftest.$ac_objext'
31318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319  (eval $ac_try) 2>&5
31320  ac_status=$?
31321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322  (exit $ac_status); }; }; then
31323  ac_header_compiler=yes
31324else
31325  echo "$as_me: failed program was:" >&5
31326sed 's/^/| /' conftest.$ac_ext >&5
31327
31328ac_header_compiler=no
31329fi
31330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31332echo "${ECHO_T}$ac_header_compiler" >&6
31333
31334# Is the header present?
31335echo "$as_me:$LINENO: checking windows.h presence" >&5
31336echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
31337cat >conftest.$ac_ext <<_ACEOF
31338/* confdefs.h.  */
31339_ACEOF
31340cat confdefs.h >>conftest.$ac_ext
31341cat >>conftest.$ac_ext <<_ACEOF
31342/* end confdefs.h.  */
31343#include <windows.h>
31344_ACEOF
31345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31346  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31347  ac_status=$?
31348  grep -v '^ *+' conftest.er1 >conftest.err
31349  rm -f conftest.er1
31350  cat conftest.err >&5
31351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352  (exit $ac_status); } >/dev/null; then
31353  if test -s conftest.err; then
31354    ac_cpp_err=$ac_cxx_preproc_warn_flag
31355    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31356  else
31357    ac_cpp_err=
31358  fi
31359else
31360  ac_cpp_err=yes
31361fi
31362if test -z "$ac_cpp_err"; then
31363  ac_header_preproc=yes
31364else
31365  echo "$as_me: failed program was:" >&5
31366sed 's/^/| /' conftest.$ac_ext >&5
31367
31368  ac_header_preproc=no
31369fi
31370rm -f conftest.err conftest.$ac_ext
31371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31372echo "${ECHO_T}$ac_header_preproc" >&6
31373
31374# So?  What about this header?
31375case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31376  yes:no: )
31377    { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
31378echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31379    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
31380echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
31381    ac_header_preproc=yes
31382    ;;
31383  no:yes:* )
31384    { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
31385echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
31386    { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
31387echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
31388    { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
31389echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
31390    { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
31391echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31392    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
31393echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
31394    { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
31395echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
31396    (
31397      cat <<\_ASBOX
31398## ----------------------------- ##
31399## Report this to the dx lists.  ##
31400## ----------------------------- ##
31401_ASBOX
31402    ) |
31403      sed "s/^/$as_me: WARNING:     /" >&2
31404    ;;
31405esac
31406echo "$as_me:$LINENO: checking for windows.h" >&5
31407echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
31408if test "${ac_cv_header_windows_h+set}" = set; then
31409  echo $ECHO_N "(cached) $ECHO_C" >&6
31410else
31411  ac_cv_header_windows_h=$ac_header_preproc
31412fi
31413echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
31414echo "${ECHO_T}$ac_cv_header_windows_h" >&6
31415
31416fi
31417if test $ac_cv_header_windows_h = yes; then
31418   echo "#include <windows.h>" >> statHdrs.h
31419fi
31420
31421
31422if test "${ac_cv_header_unistd_h+set}" = set; then
31423  echo "$as_me:$LINENO: checking for unistd.h" >&5
31424echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
31425if test "${ac_cv_header_unistd_h+set}" = set; then
31426  echo $ECHO_N "(cached) $ECHO_C" >&6
31427fi
31428echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
31429echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
31430else
31431  # Is the header compilable?
31432echo "$as_me:$LINENO: checking unistd.h usability" >&5
31433echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
31434cat >conftest.$ac_ext <<_ACEOF
31435/* confdefs.h.  */
31436_ACEOF
31437cat confdefs.h >>conftest.$ac_ext
31438cat >>conftest.$ac_ext <<_ACEOF
31439/* end confdefs.h.  */
31440$ac_includes_default
31441#include <unistd.h>
31442_ACEOF
31443rm -f conftest.$ac_objext
31444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31445  (eval $ac_compile) 2>conftest.er1
31446  ac_status=$?
31447  grep -v '^ *+' conftest.er1 >conftest.err
31448  rm -f conftest.er1
31449  cat conftest.err >&5
31450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451  (exit $ac_status); } &&
31452	 { ac_try='test -z "$ac_cxx_werror_flag"
31453			 || test ! -s conftest.err'
31454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31455  (eval $ac_try) 2>&5
31456  ac_status=$?
31457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458  (exit $ac_status); }; } &&
31459	 { ac_try='test -s conftest.$ac_objext'
31460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31461  (eval $ac_try) 2>&5
31462  ac_status=$?
31463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464  (exit $ac_status); }; }; then
31465  ac_header_compiler=yes
31466else
31467  echo "$as_me: failed program was:" >&5
31468sed 's/^/| /' conftest.$ac_ext >&5
31469
31470ac_header_compiler=no
31471fi
31472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31474echo "${ECHO_T}$ac_header_compiler" >&6
31475
31476# Is the header present?
31477echo "$as_me:$LINENO: checking unistd.h presence" >&5
31478echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
31479cat >conftest.$ac_ext <<_ACEOF
31480/* confdefs.h.  */
31481_ACEOF
31482cat confdefs.h >>conftest.$ac_ext
31483cat >>conftest.$ac_ext <<_ACEOF
31484/* end confdefs.h.  */
31485#include <unistd.h>
31486_ACEOF
31487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31488  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31489  ac_status=$?
31490  grep -v '^ *+' conftest.er1 >conftest.err
31491  rm -f conftest.er1
31492  cat conftest.err >&5
31493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494  (exit $ac_status); } >/dev/null; then
31495  if test -s conftest.err; then
31496    ac_cpp_err=$ac_cxx_preproc_warn_flag
31497    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31498  else
31499    ac_cpp_err=
31500  fi
31501else
31502  ac_cpp_err=yes
31503fi
31504if test -z "$ac_cpp_err"; then
31505  ac_header_preproc=yes
31506else
31507  echo "$as_me: failed program was:" >&5
31508sed 's/^/| /' conftest.$ac_ext >&5
31509
31510  ac_header_preproc=no
31511fi
31512rm -f conftest.err conftest.$ac_ext
31513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31514echo "${ECHO_T}$ac_header_preproc" >&6
31515
31516# So?  What about this header?
31517case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31518  yes:no: )
31519    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
31520echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31521    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
31522echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
31523    ac_header_preproc=yes
31524    ;;
31525  no:yes:* )
31526    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
31527echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
31528    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
31529echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
31530    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
31531echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
31532    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
31533echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31534    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
31535echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
31536    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
31537echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
31538    (
31539      cat <<\_ASBOX
31540## ----------------------------- ##
31541## Report this to the dx lists.  ##
31542## ----------------------------- ##
31543_ASBOX
31544    ) |
31545      sed "s/^/$as_me: WARNING:     /" >&2
31546    ;;
31547esac
31548echo "$as_me:$LINENO: checking for unistd.h" >&5
31549echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
31550if test "${ac_cv_header_unistd_h+set}" = set; then
31551  echo $ECHO_N "(cached) $ECHO_C" >&6
31552else
31553  ac_cv_header_unistd_h=$ac_header_preproc
31554fi
31555echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
31556echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
31557
31558fi
31559if test $ac_cv_header_unistd_h = yes; then
31560   echo "#include <unistd.h>" >> statHdrs.h
31561fi
31562
31563
31564if test "${ac_cv_header_sys_types_h+set}" = set; then
31565  echo "$as_me:$LINENO: checking for sys/types.h" >&5
31566echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
31567if test "${ac_cv_header_sys_types_h+set}" = set; then
31568  echo $ECHO_N "(cached) $ECHO_C" >&6
31569fi
31570echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
31571echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
31572else
31573  # Is the header compilable?
31574echo "$as_me:$LINENO: checking sys/types.h usability" >&5
31575echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
31576cat >conftest.$ac_ext <<_ACEOF
31577/* confdefs.h.  */
31578_ACEOF
31579cat confdefs.h >>conftest.$ac_ext
31580cat >>conftest.$ac_ext <<_ACEOF
31581/* end confdefs.h.  */
31582$ac_includes_default
31583#include <sys/types.h>
31584_ACEOF
31585rm -f conftest.$ac_objext
31586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31587  (eval $ac_compile) 2>conftest.er1
31588  ac_status=$?
31589  grep -v '^ *+' conftest.er1 >conftest.err
31590  rm -f conftest.er1
31591  cat conftest.err >&5
31592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593  (exit $ac_status); } &&
31594	 { ac_try='test -z "$ac_cxx_werror_flag"
31595			 || test ! -s conftest.err'
31596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597  (eval $ac_try) 2>&5
31598  ac_status=$?
31599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600  (exit $ac_status); }; } &&
31601	 { ac_try='test -s conftest.$ac_objext'
31602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603  (eval $ac_try) 2>&5
31604  ac_status=$?
31605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606  (exit $ac_status); }; }; then
31607  ac_header_compiler=yes
31608else
31609  echo "$as_me: failed program was:" >&5
31610sed 's/^/| /' conftest.$ac_ext >&5
31611
31612ac_header_compiler=no
31613fi
31614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31616echo "${ECHO_T}$ac_header_compiler" >&6
31617
31618# Is the header present?
31619echo "$as_me:$LINENO: checking sys/types.h presence" >&5
31620echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
31621cat >conftest.$ac_ext <<_ACEOF
31622/* confdefs.h.  */
31623_ACEOF
31624cat confdefs.h >>conftest.$ac_ext
31625cat >>conftest.$ac_ext <<_ACEOF
31626/* end confdefs.h.  */
31627#include <sys/types.h>
31628_ACEOF
31629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31631  ac_status=$?
31632  grep -v '^ *+' conftest.er1 >conftest.err
31633  rm -f conftest.er1
31634  cat conftest.err >&5
31635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636  (exit $ac_status); } >/dev/null; then
31637  if test -s conftest.err; then
31638    ac_cpp_err=$ac_cxx_preproc_warn_flag
31639    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31640  else
31641    ac_cpp_err=
31642  fi
31643else
31644  ac_cpp_err=yes
31645fi
31646if test -z "$ac_cpp_err"; then
31647  ac_header_preproc=yes
31648else
31649  echo "$as_me: failed program was:" >&5
31650sed 's/^/| /' conftest.$ac_ext >&5
31651
31652  ac_header_preproc=no
31653fi
31654rm -f conftest.err conftest.$ac_ext
31655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31656echo "${ECHO_T}$ac_header_preproc" >&6
31657
31658# So?  What about this header?
31659case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31660  yes:no: )
31661    { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
31662echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31663    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
31664echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
31665    ac_header_preproc=yes
31666    ;;
31667  no:yes:* )
31668    { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
31669echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
31670    { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
31671echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
31672    { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
31673echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
31674    { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
31675echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31676    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
31677echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
31678    { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
31679echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
31680    (
31681      cat <<\_ASBOX
31682## ----------------------------- ##
31683## Report this to the dx lists.  ##
31684## ----------------------------- ##
31685_ASBOX
31686    ) |
31687      sed "s/^/$as_me: WARNING:     /" >&2
31688    ;;
31689esac
31690echo "$as_me:$LINENO: checking for sys/types.h" >&5
31691echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
31692if test "${ac_cv_header_sys_types_h+set}" = set; then
31693  echo $ECHO_N "(cached) $ECHO_C" >&6
31694else
31695  ac_cv_header_sys_types_h=$ac_header_preproc
31696fi
31697echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
31698echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
31699
31700fi
31701if test $ac_cv_header_sys_types_h = yes; then
31702   echo "#include <sys/types.h>" >> statHdrs.h
31703fi
31704
31705
31706if test "${ac_cv_header_sys_stat_h+set}" = set; then
31707  echo "$as_me:$LINENO: checking for sys/stat.h" >&5
31708echo $ECHO_N "checking for sys/stat.h... $ECHO_C" >&6
31709if test "${ac_cv_header_sys_stat_h+set}" = set; then
31710  echo $ECHO_N "(cached) $ECHO_C" >&6
31711fi
31712echo "$as_me:$LINENO: result: $ac_cv_header_sys_stat_h" >&5
31713echo "${ECHO_T}$ac_cv_header_sys_stat_h" >&6
31714else
31715  # Is the header compilable?
31716echo "$as_me:$LINENO: checking sys/stat.h usability" >&5
31717echo $ECHO_N "checking sys/stat.h usability... $ECHO_C" >&6
31718cat >conftest.$ac_ext <<_ACEOF
31719/* confdefs.h.  */
31720_ACEOF
31721cat confdefs.h >>conftest.$ac_ext
31722cat >>conftest.$ac_ext <<_ACEOF
31723/* end confdefs.h.  */
31724$ac_includes_default
31725#include <sys/stat.h>
31726_ACEOF
31727rm -f conftest.$ac_objext
31728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31729  (eval $ac_compile) 2>conftest.er1
31730  ac_status=$?
31731  grep -v '^ *+' conftest.er1 >conftest.err
31732  rm -f conftest.er1
31733  cat conftest.err >&5
31734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735  (exit $ac_status); } &&
31736	 { ac_try='test -z "$ac_cxx_werror_flag"
31737			 || test ! -s conftest.err'
31738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31739  (eval $ac_try) 2>&5
31740  ac_status=$?
31741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742  (exit $ac_status); }; } &&
31743	 { ac_try='test -s conftest.$ac_objext'
31744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31745  (eval $ac_try) 2>&5
31746  ac_status=$?
31747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748  (exit $ac_status); }; }; then
31749  ac_header_compiler=yes
31750else
31751  echo "$as_me: failed program was:" >&5
31752sed 's/^/| /' conftest.$ac_ext >&5
31753
31754ac_header_compiler=no
31755fi
31756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31758echo "${ECHO_T}$ac_header_compiler" >&6
31759
31760# Is the header present?
31761echo "$as_me:$LINENO: checking sys/stat.h presence" >&5
31762echo $ECHO_N "checking sys/stat.h presence... $ECHO_C" >&6
31763cat >conftest.$ac_ext <<_ACEOF
31764/* confdefs.h.  */
31765_ACEOF
31766cat confdefs.h >>conftest.$ac_ext
31767cat >>conftest.$ac_ext <<_ACEOF
31768/* end confdefs.h.  */
31769#include <sys/stat.h>
31770_ACEOF
31771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31772  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31773  ac_status=$?
31774  grep -v '^ *+' conftest.er1 >conftest.err
31775  rm -f conftest.er1
31776  cat conftest.err >&5
31777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778  (exit $ac_status); } >/dev/null; then
31779  if test -s conftest.err; then
31780    ac_cpp_err=$ac_cxx_preproc_warn_flag
31781    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31782  else
31783    ac_cpp_err=
31784  fi
31785else
31786  ac_cpp_err=yes
31787fi
31788if test -z "$ac_cpp_err"; then
31789  ac_header_preproc=yes
31790else
31791  echo "$as_me: failed program was:" >&5
31792sed 's/^/| /' conftest.$ac_ext >&5
31793
31794  ac_header_preproc=no
31795fi
31796rm -f conftest.err conftest.$ac_ext
31797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31798echo "${ECHO_T}$ac_header_preproc" >&6
31799
31800# So?  What about this header?
31801case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31802  yes:no: )
31803    { echo "$as_me:$LINENO: WARNING: sys/stat.h: accepted by the compiler, rejected by the preprocessor!" >&5
31804echo "$as_me: WARNING: sys/stat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31805    { echo "$as_me:$LINENO: WARNING: sys/stat.h: proceeding with the compiler's result" >&5
31806echo "$as_me: WARNING: sys/stat.h: proceeding with the compiler's result" >&2;}
31807    ac_header_preproc=yes
31808    ;;
31809  no:yes:* )
31810    { echo "$as_me:$LINENO: WARNING: sys/stat.h: present but cannot be compiled" >&5
31811echo "$as_me: WARNING: sys/stat.h: present but cannot be compiled" >&2;}
31812    { echo "$as_me:$LINENO: WARNING: sys/stat.h:     check for missing prerequisite headers?" >&5
31813echo "$as_me: WARNING: sys/stat.h:     check for missing prerequisite headers?" >&2;}
31814    { echo "$as_me:$LINENO: WARNING: sys/stat.h: see the Autoconf documentation" >&5
31815echo "$as_me: WARNING: sys/stat.h: see the Autoconf documentation" >&2;}
31816    { echo "$as_me:$LINENO: WARNING: sys/stat.h:     section \"Present But Cannot Be Compiled\"" >&5
31817echo "$as_me: WARNING: sys/stat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31818    { echo "$as_me:$LINENO: WARNING: sys/stat.h: proceeding with the preprocessor's result" >&5
31819echo "$as_me: WARNING: sys/stat.h: proceeding with the preprocessor's result" >&2;}
31820    { echo "$as_me:$LINENO: WARNING: sys/stat.h: in the future, the compiler will take precedence" >&5
31821echo "$as_me: WARNING: sys/stat.h: in the future, the compiler will take precedence" >&2;}
31822    (
31823      cat <<\_ASBOX
31824## ----------------------------- ##
31825## Report this to the dx lists.  ##
31826## ----------------------------- ##
31827_ASBOX
31828    ) |
31829      sed "s/^/$as_me: WARNING:     /" >&2
31830    ;;
31831esac
31832echo "$as_me:$LINENO: checking for sys/stat.h" >&5
31833echo $ECHO_N "checking for sys/stat.h... $ECHO_C" >&6
31834if test "${ac_cv_header_sys_stat_h+set}" = set; then
31835  echo $ECHO_N "(cached) $ECHO_C" >&6
31836else
31837  ac_cv_header_sys_stat_h=$ac_header_preproc
31838fi
31839echo "$as_me:$LINENO: result: $ac_cv_header_sys_stat_h" >&5
31840echo "${ECHO_T}$ac_cv_header_sys_stat_h" >&6
31841
31842fi
31843if test $ac_cv_header_sys_stat_h = yes; then
31844   echo "#include <sys/stat.h>" >> statHdrs.h
31845fi
31846
31847
31848fnc="X"
31849str="X"
31850for f in stat _stat ; do
31851for s in stat _stat ; do
31852cat >conftest.$ac_ext <<_ACEOF
31853/* confdefs.h.  */
31854_ACEOF
31855cat confdefs.h >>conftest.$ac_ext
31856cat >>conftest.$ac_ext <<_ACEOF
31857/* end confdefs.h.  */
31858 #include <stdlib.h>
31859#include "statHdrs.h"
31860
31861int
31862main ()
31863{
31864
31865$f("foo", (struct $s *)0);
31866
31867  ;
31868  return 0;
31869}
31870_ACEOF
31871rm -f conftest.$ac_objext conftest$ac_exeext
31872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31873  (eval $ac_link) 2>conftest.er1
31874  ac_status=$?
31875  grep -v '^ *+' conftest.er1 >conftest.err
31876  rm -f conftest.er1
31877  cat conftest.err >&5
31878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879  (exit $ac_status); } &&
31880	 { ac_try='test -z "$ac_cxx_werror_flag"
31881			 || test ! -s conftest.err'
31882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31883  (eval $ac_try) 2>&5
31884  ac_status=$?
31885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886  (exit $ac_status); }; } &&
31887	 { ac_try='test -s conftest$ac_exeext'
31888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31889  (eval $ac_try) 2>&5
31890  ac_status=$?
31891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892  (exit $ac_status); }; }; then
31893
31894fnc=$f
31895str=$s
31896
31897else
31898  echo "$as_me: failed program was:" >&5
31899sed 's/^/| /' conftest.$ac_ext >&5
31900
31901fi
31902rm -f conftest.err conftest.$ac_objext \
31903      conftest$ac_exeext conftest.$ac_ext
31904done
31905done
31906if test "$fnc" = "X" -o "$str" = "X" ; then
31907    echo could not find working combination of stat function and structure
31908    exit
31909fi
31910
31911cat >>confdefs.h <<_ACEOF
31912#define STATFUNC $fnc
31913_ACEOF
31914
31915
31916cat >>confdefs.h <<_ACEOF
31917#define STATSTRUCT $str
31918_ACEOF
31919
31920echo stat function is: $fnc
31921echo stat structure is: $str
31922ac_ext=c
31923ac_cpp='$CPP $CPPFLAGS'
31924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31926ac_compiler_gnu=$ac_cv_c_compiler_gnu
31927
31928
31929
31930ac_ext=cc
31931ac_cpp='$CXXCPP $CPPFLAGS'
31932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944for ac_header in CC/libc.h direct.h dirent.h iostream iostream.h regex.h
31945do
31946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31947if eval "test \"\${$as_ac_Header+set}\" = set"; then
31948  echo "$as_me:$LINENO: checking for $ac_header" >&5
31949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31950if eval "test \"\${$as_ac_Header+set}\" = set"; then
31951  echo $ECHO_N "(cached) $ECHO_C" >&6
31952fi
31953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31955else
31956  # Is the header compilable?
31957echo "$as_me:$LINENO: checking $ac_header usability" >&5
31958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31959cat >conftest.$ac_ext <<_ACEOF
31960/* confdefs.h.  */
31961_ACEOF
31962cat confdefs.h >>conftest.$ac_ext
31963cat >>conftest.$ac_ext <<_ACEOF
31964/* end confdefs.h.  */
31965$ac_includes_default
31966#include <$ac_header>
31967_ACEOF
31968rm -f conftest.$ac_objext
31969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31970  (eval $ac_compile) 2>conftest.er1
31971  ac_status=$?
31972  grep -v '^ *+' conftest.er1 >conftest.err
31973  rm -f conftest.er1
31974  cat conftest.err >&5
31975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976  (exit $ac_status); } &&
31977	 { ac_try='test -z "$ac_cxx_werror_flag"
31978			 || test ! -s conftest.err'
31979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980  (eval $ac_try) 2>&5
31981  ac_status=$?
31982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983  (exit $ac_status); }; } &&
31984	 { ac_try='test -s conftest.$ac_objext'
31985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986  (eval $ac_try) 2>&5
31987  ac_status=$?
31988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989  (exit $ac_status); }; }; then
31990  ac_header_compiler=yes
31991else
31992  echo "$as_me: failed program was:" >&5
31993sed 's/^/| /' conftest.$ac_ext >&5
31994
31995ac_header_compiler=no
31996fi
31997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31999echo "${ECHO_T}$ac_header_compiler" >&6
32000
32001# Is the header present?
32002echo "$as_me:$LINENO: checking $ac_header presence" >&5
32003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32004cat >conftest.$ac_ext <<_ACEOF
32005/* confdefs.h.  */
32006_ACEOF
32007cat confdefs.h >>conftest.$ac_ext
32008cat >>conftest.$ac_ext <<_ACEOF
32009/* end confdefs.h.  */
32010#include <$ac_header>
32011_ACEOF
32012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32014  ac_status=$?
32015  grep -v '^ *+' conftest.er1 >conftest.err
32016  rm -f conftest.er1
32017  cat conftest.err >&5
32018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019  (exit $ac_status); } >/dev/null; then
32020  if test -s conftest.err; then
32021    ac_cpp_err=$ac_cxx_preproc_warn_flag
32022    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32023  else
32024    ac_cpp_err=
32025  fi
32026else
32027  ac_cpp_err=yes
32028fi
32029if test -z "$ac_cpp_err"; then
32030  ac_header_preproc=yes
32031else
32032  echo "$as_me: failed program was:" >&5
32033sed 's/^/| /' conftest.$ac_ext >&5
32034
32035  ac_header_preproc=no
32036fi
32037rm -f conftest.err conftest.$ac_ext
32038echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32039echo "${ECHO_T}$ac_header_preproc" >&6
32040
32041# So?  What about this header?
32042case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32043  yes:no: )
32044    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32045echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32046    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32047echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32048    ac_header_preproc=yes
32049    ;;
32050  no:yes:* )
32051    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32052echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32053    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32054echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32055    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32056echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32057    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32058echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32061    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32062echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32063    (
32064      cat <<\_ASBOX
32065## ----------------------------- ##
32066## Report this to the dx lists.  ##
32067## ----------------------------- ##
32068_ASBOX
32069    ) |
32070      sed "s/^/$as_me: WARNING:     /" >&2
32071    ;;
32072esac
32073echo "$as_me:$LINENO: checking for $ac_header" >&5
32074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32075if eval "test \"\${$as_ac_Header+set}\" = set"; then
32076  echo $ECHO_N "(cached) $ECHO_C" >&6
32077else
32078  eval "$as_ac_Header=\$ac_header_preproc"
32079fi
32080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32082
32083fi
32084if test `eval echo '${'$as_ac_Header'}'` = yes; then
32085  cat >>confdefs.h <<_ACEOF
32086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32087_ACEOF
32088
32089fi
32090
32091done
32092
32093
32094
32095for ac_header in stream stream.h
32096do
32097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32098if eval "test \"\${$as_ac_Header+set}\" = set"; then
32099  echo "$as_me:$LINENO: checking for $ac_header" >&5
32100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32101if eval "test \"\${$as_ac_Header+set}\" = set"; then
32102  echo $ECHO_N "(cached) $ECHO_C" >&6
32103fi
32104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32106else
32107  # Is the header compilable?
32108echo "$as_me:$LINENO: checking $ac_header usability" >&5
32109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32110cat >conftest.$ac_ext <<_ACEOF
32111/* confdefs.h.  */
32112_ACEOF
32113cat confdefs.h >>conftest.$ac_ext
32114cat >>conftest.$ac_ext <<_ACEOF
32115/* end confdefs.h.  */
32116$ac_includes_default
32117#include <$ac_header>
32118_ACEOF
32119rm -f conftest.$ac_objext
32120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32121  (eval $ac_compile) 2>conftest.er1
32122  ac_status=$?
32123  grep -v '^ *+' conftest.er1 >conftest.err
32124  rm -f conftest.er1
32125  cat conftest.err >&5
32126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127  (exit $ac_status); } &&
32128	 { ac_try='test -z "$ac_cxx_werror_flag"
32129			 || test ! -s conftest.err'
32130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32131  (eval $ac_try) 2>&5
32132  ac_status=$?
32133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134  (exit $ac_status); }; } &&
32135	 { ac_try='test -s conftest.$ac_objext'
32136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32137  (eval $ac_try) 2>&5
32138  ac_status=$?
32139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140  (exit $ac_status); }; }; then
32141  ac_header_compiler=yes
32142else
32143  echo "$as_me: failed program was:" >&5
32144sed 's/^/| /' conftest.$ac_ext >&5
32145
32146ac_header_compiler=no
32147fi
32148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32150echo "${ECHO_T}$ac_header_compiler" >&6
32151
32152# Is the header present?
32153echo "$as_me:$LINENO: checking $ac_header presence" >&5
32154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32155cat >conftest.$ac_ext <<_ACEOF
32156/* confdefs.h.  */
32157_ACEOF
32158cat confdefs.h >>conftest.$ac_ext
32159cat >>conftest.$ac_ext <<_ACEOF
32160/* end confdefs.h.  */
32161#include <$ac_header>
32162_ACEOF
32163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32164  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32165  ac_status=$?
32166  grep -v '^ *+' conftest.er1 >conftest.err
32167  rm -f conftest.er1
32168  cat conftest.err >&5
32169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170  (exit $ac_status); } >/dev/null; then
32171  if test -s conftest.err; then
32172    ac_cpp_err=$ac_cxx_preproc_warn_flag
32173    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32174  else
32175    ac_cpp_err=
32176  fi
32177else
32178  ac_cpp_err=yes
32179fi
32180if test -z "$ac_cpp_err"; then
32181  ac_header_preproc=yes
32182else
32183  echo "$as_me: failed program was:" >&5
32184sed 's/^/| /' conftest.$ac_ext >&5
32185
32186  ac_header_preproc=no
32187fi
32188rm -f conftest.err conftest.$ac_ext
32189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32190echo "${ECHO_T}$ac_header_preproc" >&6
32191
32192# So?  What about this header?
32193case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32194  yes:no: )
32195    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32197    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32199    ac_header_preproc=yes
32200    ;;
32201  no:yes:* )
32202    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32204    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32205echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32206    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32208    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32209echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32210    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32212    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32214    (
32215      cat <<\_ASBOX
32216## ----------------------------- ##
32217## Report this to the dx lists.  ##
32218## ----------------------------- ##
32219_ASBOX
32220    ) |
32221      sed "s/^/$as_me: WARNING:     /" >&2
32222    ;;
32223esac
32224echo "$as_me:$LINENO: checking for $ac_header" >&5
32225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32226if eval "test \"\${$as_ac_Header+set}\" = set"; then
32227  echo $ECHO_N "(cached) $ECHO_C" >&6
32228else
32229  eval "$as_ac_Header=\$ac_header_preproc"
32230fi
32231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32233
32234fi
32235if test `eval echo '${'$as_ac_Header'}'` = yes; then
32236  cat >>confdefs.h <<_ACEOF
32237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32238_ACEOF
32239
32240fi
32241
32242done
32243
32244
32245
32246
32247
32248for ac_header in sstream strstream.h strstrea.h sysent.h
32249do
32250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32251if eval "test \"\${$as_ac_Header+set}\" = set"; then
32252  echo "$as_me:$LINENO: checking for $ac_header" >&5
32253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32254if eval "test \"\${$as_ac_Header+set}\" = set"; then
32255  echo $ECHO_N "(cached) $ECHO_C" >&6
32256fi
32257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32259else
32260  # Is the header compilable?
32261echo "$as_me:$LINENO: checking $ac_header usability" >&5
32262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32263cat >conftest.$ac_ext <<_ACEOF
32264/* confdefs.h.  */
32265_ACEOF
32266cat confdefs.h >>conftest.$ac_ext
32267cat >>conftest.$ac_ext <<_ACEOF
32268/* end confdefs.h.  */
32269$ac_includes_default
32270#include <$ac_header>
32271_ACEOF
32272rm -f conftest.$ac_objext
32273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32274  (eval $ac_compile) 2>conftest.er1
32275  ac_status=$?
32276  grep -v '^ *+' conftest.er1 >conftest.err
32277  rm -f conftest.er1
32278  cat conftest.err >&5
32279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280  (exit $ac_status); } &&
32281	 { ac_try='test -z "$ac_cxx_werror_flag"
32282			 || test ! -s conftest.err'
32283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284  (eval $ac_try) 2>&5
32285  ac_status=$?
32286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287  (exit $ac_status); }; } &&
32288	 { ac_try='test -s conftest.$ac_objext'
32289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290  (eval $ac_try) 2>&5
32291  ac_status=$?
32292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293  (exit $ac_status); }; }; then
32294  ac_header_compiler=yes
32295else
32296  echo "$as_me: failed program was:" >&5
32297sed 's/^/| /' conftest.$ac_ext >&5
32298
32299ac_header_compiler=no
32300fi
32301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32303echo "${ECHO_T}$ac_header_compiler" >&6
32304
32305# Is the header present?
32306echo "$as_me:$LINENO: checking $ac_header presence" >&5
32307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32308cat >conftest.$ac_ext <<_ACEOF
32309/* confdefs.h.  */
32310_ACEOF
32311cat confdefs.h >>conftest.$ac_ext
32312cat >>conftest.$ac_ext <<_ACEOF
32313/* end confdefs.h.  */
32314#include <$ac_header>
32315_ACEOF
32316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32317  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32318  ac_status=$?
32319  grep -v '^ *+' conftest.er1 >conftest.err
32320  rm -f conftest.er1
32321  cat conftest.err >&5
32322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323  (exit $ac_status); } >/dev/null; then
32324  if test -s conftest.err; then
32325    ac_cpp_err=$ac_cxx_preproc_warn_flag
32326    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32327  else
32328    ac_cpp_err=
32329  fi
32330else
32331  ac_cpp_err=yes
32332fi
32333if test -z "$ac_cpp_err"; then
32334  ac_header_preproc=yes
32335else
32336  echo "$as_me: failed program was:" >&5
32337sed 's/^/| /' conftest.$ac_ext >&5
32338
32339  ac_header_preproc=no
32340fi
32341rm -f conftest.err conftest.$ac_ext
32342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32343echo "${ECHO_T}$ac_header_preproc" >&6
32344
32345# So?  What about this header?
32346case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32347  yes:no: )
32348    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32350    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32352    ac_header_preproc=yes
32353    ;;
32354  no:yes:* )
32355    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32357    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32358echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32359    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32361    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32362echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32363    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32365    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32367    (
32368      cat <<\_ASBOX
32369## ----------------------------- ##
32370## Report this to the dx lists.  ##
32371## ----------------------------- ##
32372_ASBOX
32373    ) |
32374      sed "s/^/$as_me: WARNING:     /" >&2
32375    ;;
32376esac
32377echo "$as_me:$LINENO: checking for $ac_header" >&5
32378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32379if eval "test \"\${$as_ac_Header+set}\" = set"; then
32380  echo $ECHO_N "(cached) $ECHO_C" >&6
32381else
32382  eval "$as_ac_Header=\$ac_header_preproc"
32383fi
32384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32386
32387fi
32388if test `eval echo '${'$as_ac_Header'}'` = yes; then
32389  cat >>confdefs.h <<_ACEOF
32390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32391_ACEOF
32392
32393fi
32394
32395done
32396
32397
32398
32399for ac_header in fstream fstream.h
32400do
32401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32402if eval "test \"\${$as_ac_Header+set}\" = set"; then
32403  echo "$as_me:$LINENO: checking for $ac_header" >&5
32404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32405if eval "test \"\${$as_ac_Header+set}\" = set"; then
32406  echo $ECHO_N "(cached) $ECHO_C" >&6
32407fi
32408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32410else
32411  # Is the header compilable?
32412echo "$as_me:$LINENO: checking $ac_header usability" >&5
32413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32414cat >conftest.$ac_ext <<_ACEOF
32415/* confdefs.h.  */
32416_ACEOF
32417cat confdefs.h >>conftest.$ac_ext
32418cat >>conftest.$ac_ext <<_ACEOF
32419/* end confdefs.h.  */
32420$ac_includes_default
32421#include <$ac_header>
32422_ACEOF
32423rm -f conftest.$ac_objext
32424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32425  (eval $ac_compile) 2>conftest.er1
32426  ac_status=$?
32427  grep -v '^ *+' conftest.er1 >conftest.err
32428  rm -f conftest.er1
32429  cat conftest.err >&5
32430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431  (exit $ac_status); } &&
32432	 { ac_try='test -z "$ac_cxx_werror_flag"
32433			 || test ! -s conftest.err'
32434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435  (eval $ac_try) 2>&5
32436  ac_status=$?
32437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438  (exit $ac_status); }; } &&
32439	 { ac_try='test -s conftest.$ac_objext'
32440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441  (eval $ac_try) 2>&5
32442  ac_status=$?
32443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444  (exit $ac_status); }; }; then
32445  ac_header_compiler=yes
32446else
32447  echo "$as_me: failed program was:" >&5
32448sed 's/^/| /' conftest.$ac_ext >&5
32449
32450ac_header_compiler=no
32451fi
32452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32453echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32454echo "${ECHO_T}$ac_header_compiler" >&6
32455
32456# Is the header present?
32457echo "$as_me:$LINENO: checking $ac_header presence" >&5
32458echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32459cat >conftest.$ac_ext <<_ACEOF
32460/* confdefs.h.  */
32461_ACEOF
32462cat confdefs.h >>conftest.$ac_ext
32463cat >>conftest.$ac_ext <<_ACEOF
32464/* end confdefs.h.  */
32465#include <$ac_header>
32466_ACEOF
32467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32468  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32469  ac_status=$?
32470  grep -v '^ *+' conftest.er1 >conftest.err
32471  rm -f conftest.er1
32472  cat conftest.err >&5
32473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474  (exit $ac_status); } >/dev/null; then
32475  if test -s conftest.err; then
32476    ac_cpp_err=$ac_cxx_preproc_warn_flag
32477    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32478  else
32479    ac_cpp_err=
32480  fi
32481else
32482  ac_cpp_err=yes
32483fi
32484if test -z "$ac_cpp_err"; then
32485  ac_header_preproc=yes
32486else
32487  echo "$as_me: failed program was:" >&5
32488sed 's/^/| /' conftest.$ac_ext >&5
32489
32490  ac_header_preproc=no
32491fi
32492rm -f conftest.err conftest.$ac_ext
32493echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32494echo "${ECHO_T}$ac_header_preproc" >&6
32495
32496# So?  What about this header?
32497case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32498  yes:no: )
32499    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32500echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32501    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32502echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32503    ac_header_preproc=yes
32504    ;;
32505  no:yes:* )
32506    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32507echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32508    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32509echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32510    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32511echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32512    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32513echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32514    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32516    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32517echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32518    (
32519      cat <<\_ASBOX
32520## ----------------------------- ##
32521## Report this to the dx lists.  ##
32522## ----------------------------- ##
32523_ASBOX
32524    ) |
32525      sed "s/^/$as_me: WARNING:     /" >&2
32526    ;;
32527esac
32528echo "$as_me:$LINENO: checking for $ac_header" >&5
32529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32530if eval "test \"\${$as_ac_Header+set}\" = set"; then
32531  echo $ECHO_N "(cached) $ECHO_C" >&6
32532else
32533  eval "$as_ac_Header=\$ac_header_preproc"
32534fi
32535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32537
32538fi
32539if test `eval echo '${'$as_ac_Header'}'` = yes; then
32540  cat >>confdefs.h <<_ACEOF
32541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32542_ACEOF
32543
32544fi
32545
32546done
32547
32548
32549for ac_header in regexp.h
32550do
32551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32552echo "$as_me:$LINENO: checking for $ac_header" >&5
32553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32554if eval "test \"\${$as_ac_Header+set}\" = set"; then
32555  echo $ECHO_N "(cached) $ECHO_C" >&6
32556else
32557  cat >conftest.$ac_ext <<_ACEOF
32558/* confdefs.h.  */
32559_ACEOF
32560cat confdefs.h >>conftest.$ac_ext
32561cat >>conftest.$ac_ext <<_ACEOF
32562/* end confdefs.h.  */
32563  #define INIT      const char *sp = "";
32564   #define GETC()    (*sp++)
32565   #define PEEKC()   (*sp)
32566   #define UNGETC(c)  (--sp)
32567   #define RETURN(pointer) return(pointer);
32568   #define ERROR(val)  /**/
32569
32570
32571#include <$ac_header>
32572_ACEOF
32573rm -f conftest.$ac_objext
32574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32575  (eval $ac_compile) 2>conftest.er1
32576  ac_status=$?
32577  grep -v '^ *+' conftest.er1 >conftest.err
32578  rm -f conftest.er1
32579  cat conftest.err >&5
32580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581  (exit $ac_status); } &&
32582	 { ac_try='test -z "$ac_cxx_werror_flag"
32583			 || test ! -s conftest.err'
32584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585  (eval $ac_try) 2>&5
32586  ac_status=$?
32587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588  (exit $ac_status); }; } &&
32589	 { ac_try='test -s conftest.$ac_objext'
32590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591  (eval $ac_try) 2>&5
32592  ac_status=$?
32593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594  (exit $ac_status); }; }; then
32595  eval "$as_ac_Header=yes"
32596else
32597  echo "$as_me: failed program was:" >&5
32598sed 's/^/| /' conftest.$ac_ext >&5
32599
32600eval "$as_ac_Header=no"
32601fi
32602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32603fi
32604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32606if test `eval echo '${'$as_ac_Header'}'` = yes; then
32607  cat >>confdefs.h <<_ACEOF
32608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32609_ACEOF
32610
32611fi
32612
32613done
32614
32615
32616
32617echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
32618echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
32619if test "${ac_cv_lib_socket_socket+set}" = set; then
32620  echo $ECHO_N "(cached) $ECHO_C" >&6
32621else
32622  ac_check_lib_save_LIBS=$LIBS
32623LIBS="-lsocket  $LIBS"
32624cat >conftest.$ac_ext <<_ACEOF
32625/* confdefs.h.  */
32626_ACEOF
32627cat confdefs.h >>conftest.$ac_ext
32628cat >>conftest.$ac_ext <<_ACEOF
32629/* end confdefs.h.  */
32630
32631/* Override any gcc2 internal prototype to avoid an error.  */
32632#ifdef __cplusplus
32633extern "C"
32634#endif
32635/* We use char because int might match the return type of a gcc2
32636   builtin and then its argument prototype would still apply.  */
32637char socket ();
32638int
32639main ()
32640{
32641socket ();
32642  ;
32643  return 0;
32644}
32645_ACEOF
32646rm -f conftest.$ac_objext conftest$ac_exeext
32647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32648  (eval $ac_link) 2>conftest.er1
32649  ac_status=$?
32650  grep -v '^ *+' conftest.er1 >conftest.err
32651  rm -f conftest.er1
32652  cat conftest.err >&5
32653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654  (exit $ac_status); } &&
32655	 { ac_try='test -z "$ac_cxx_werror_flag"
32656			 || test ! -s conftest.err'
32657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32658  (eval $ac_try) 2>&5
32659  ac_status=$?
32660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661  (exit $ac_status); }; } &&
32662	 { ac_try='test -s conftest$ac_exeext'
32663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32664  (eval $ac_try) 2>&5
32665  ac_status=$?
32666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667  (exit $ac_status); }; }; then
32668  ac_cv_lib_socket_socket=yes
32669else
32670  echo "$as_me: failed program was:" >&5
32671sed 's/^/| /' conftest.$ac_ext >&5
32672
32673ac_cv_lib_socket_socket=no
32674fi
32675rm -f conftest.err conftest.$ac_objext \
32676      conftest$ac_exeext conftest.$ac_ext
32677LIBS=$ac_check_lib_save_LIBS
32678fi
32679echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
32680echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
32681if test $ac_cv_lib_socket_socket = yes; then
32682  cat >>confdefs.h <<_ACEOF
32683#define HAVE_LIBSOCKET 1
32684_ACEOF
32685
32686  LIBS="-lsocket $LIBS"
32687
32688fi
32689
32690
32691echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32692echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32693if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32694  echo $ECHO_N "(cached) $ECHO_C" >&6
32695else
32696  ac_check_lib_save_LIBS=$LIBS
32697LIBS="-lnsl  $LIBS"
32698cat >conftest.$ac_ext <<_ACEOF
32699/* confdefs.h.  */
32700_ACEOF
32701cat confdefs.h >>conftest.$ac_ext
32702cat >>conftest.$ac_ext <<_ACEOF
32703/* end confdefs.h.  */
32704
32705/* Override any gcc2 internal prototype to avoid an error.  */
32706#ifdef __cplusplus
32707extern "C"
32708#endif
32709/* We use char because int might match the return type of a gcc2
32710   builtin and then its argument prototype would still apply.  */
32711char inet_addr ();
32712int
32713main ()
32714{
32715inet_addr ();
32716  ;
32717  return 0;
32718}
32719_ACEOF
32720rm -f conftest.$ac_objext conftest$ac_exeext
32721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32722  (eval $ac_link) 2>conftest.er1
32723  ac_status=$?
32724  grep -v '^ *+' conftest.er1 >conftest.err
32725  rm -f conftest.er1
32726  cat conftest.err >&5
32727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728  (exit $ac_status); } &&
32729	 { ac_try='test -z "$ac_cxx_werror_flag"
32730			 || test ! -s conftest.err'
32731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732  (eval $ac_try) 2>&5
32733  ac_status=$?
32734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735  (exit $ac_status); }; } &&
32736	 { ac_try='test -s conftest$ac_exeext'
32737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738  (eval $ac_try) 2>&5
32739  ac_status=$?
32740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741  (exit $ac_status); }; }; then
32742  ac_cv_lib_nsl_inet_addr=yes
32743else
32744  echo "$as_me: failed program was:" >&5
32745sed 's/^/| /' conftest.$ac_ext >&5
32746
32747ac_cv_lib_nsl_inet_addr=no
32748fi
32749rm -f conftest.err conftest.$ac_objext \
32750      conftest$ac_exeext conftest.$ac_ext
32751LIBS=$ac_check_lib_save_LIBS
32752fi
32753echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32754echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32755if test $ac_cv_lib_nsl_inet_addr = yes; then
32756  cat >>confdefs.h <<_ACEOF
32757#define HAVE_LIBNSL 1
32758_ACEOF
32759
32760  LIBS="-lnsl $LIBS"
32761
32762fi
32763
32764
32765echo "$as_me:$LINENO: checking for regex in -lgen" >&5
32766echo $ECHO_N "checking for regex in -lgen... $ECHO_C" >&6
32767if test "${ac_cv_lib_gen_regex+set}" = set; then
32768  echo $ECHO_N "(cached) $ECHO_C" >&6
32769else
32770  ac_check_lib_save_LIBS=$LIBS
32771LIBS="-lgen  $LIBS"
32772cat >conftest.$ac_ext <<_ACEOF
32773/* confdefs.h.  */
32774_ACEOF
32775cat confdefs.h >>conftest.$ac_ext
32776cat >>conftest.$ac_ext <<_ACEOF
32777/* end confdefs.h.  */
32778
32779/* Override any gcc2 internal prototype to avoid an error.  */
32780#ifdef __cplusplus
32781extern "C"
32782#endif
32783/* We use char because int might match the return type of a gcc2
32784   builtin and then its argument prototype would still apply.  */
32785char regex ();
32786int
32787main ()
32788{
32789regex ();
32790  ;
32791  return 0;
32792}
32793_ACEOF
32794rm -f conftest.$ac_objext conftest$ac_exeext
32795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32796  (eval $ac_link) 2>conftest.er1
32797  ac_status=$?
32798  grep -v '^ *+' conftest.er1 >conftest.err
32799  rm -f conftest.er1
32800  cat conftest.err >&5
32801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802  (exit $ac_status); } &&
32803	 { ac_try='test -z "$ac_cxx_werror_flag"
32804			 || test ! -s conftest.err'
32805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32806  (eval $ac_try) 2>&5
32807  ac_status=$?
32808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809  (exit $ac_status); }; } &&
32810	 { ac_try='test -s conftest$ac_exeext'
32811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812  (eval $ac_try) 2>&5
32813  ac_status=$?
32814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815  (exit $ac_status); }; }; then
32816  ac_cv_lib_gen_regex=yes
32817else
32818  echo "$as_me: failed program was:" >&5
32819sed 's/^/| /' conftest.$ac_ext >&5
32820
32821ac_cv_lib_gen_regex=no
32822fi
32823rm -f conftest.err conftest.$ac_objext \
32824      conftest$ac_exeext conftest.$ac_ext
32825LIBS=$ac_check_lib_save_LIBS
32826fi
32827echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regex" >&5
32828echo "${ECHO_T}$ac_cv_lib_gen_regex" >&6
32829if test $ac_cv_lib_gen_regex = yes; then
32830  cat >>confdefs.h <<_ACEOF
32831#define HAVE_LIBGEN 1
32832_ACEOF
32833
32834  LIBS="-lgen $LIBS"
32835
32836fi
32837
32838
32839echo "$as_me:$LINENO: checking for regcomp in -lregex" >&5
32840echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6
32841if test "${ac_cv_lib_regex_regcomp+set}" = set; then
32842  echo $ECHO_N "(cached) $ECHO_C" >&6
32843else
32844  ac_check_lib_save_LIBS=$LIBS
32845LIBS="-lregex  $LIBS"
32846cat >conftest.$ac_ext <<_ACEOF
32847/* confdefs.h.  */
32848_ACEOF
32849cat confdefs.h >>conftest.$ac_ext
32850cat >>conftest.$ac_ext <<_ACEOF
32851/* end confdefs.h.  */
32852
32853/* Override any gcc2 internal prototype to avoid an error.  */
32854#ifdef __cplusplus
32855extern "C"
32856#endif
32857/* We use char because int might match the return type of a gcc2
32858   builtin and then its argument prototype would still apply.  */
32859char regcomp ();
32860int
32861main ()
32862{
32863regcomp ();
32864  ;
32865  return 0;
32866}
32867_ACEOF
32868rm -f conftest.$ac_objext conftest$ac_exeext
32869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32870  (eval $ac_link) 2>conftest.er1
32871  ac_status=$?
32872  grep -v '^ *+' conftest.er1 >conftest.err
32873  rm -f conftest.er1
32874  cat conftest.err >&5
32875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876  (exit $ac_status); } &&
32877	 { ac_try='test -z "$ac_cxx_werror_flag"
32878			 || test ! -s conftest.err'
32879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880  (eval $ac_try) 2>&5
32881  ac_status=$?
32882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883  (exit $ac_status); }; } &&
32884	 { ac_try='test -s conftest$ac_exeext'
32885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886  (eval $ac_try) 2>&5
32887  ac_status=$?
32888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889  (exit $ac_status); }; }; then
32890  ac_cv_lib_regex_regcomp=yes
32891else
32892  echo "$as_me: failed program was:" >&5
32893sed 's/^/| /' conftest.$ac_ext >&5
32894
32895ac_cv_lib_regex_regcomp=no
32896fi
32897rm -f conftest.err conftest.$ac_objext \
32898      conftest$ac_exeext conftest.$ac_ext
32899LIBS=$ac_check_lib_save_LIBS
32900fi
32901echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regcomp" >&5
32902echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6
32903if test $ac_cv_lib_regex_regcomp = yes; then
32904  cat >>confdefs.h <<_ACEOF
32905#define HAVE_LIBREGEX 1
32906_ACEOF
32907
32908  LIBS="-lregex $LIBS"
32909
32910fi
32911
32912
32913echo "$as_me:$LINENO: checking for regcomp in -lREXP" >&5
32914echo $ECHO_N "checking for regcomp in -lREXP... $ECHO_C" >&6
32915if test "${ac_cv_lib_REXP_regcomp+set}" = set; then
32916  echo $ECHO_N "(cached) $ECHO_C" >&6
32917else
32918  ac_check_lib_save_LIBS=$LIBS
32919LIBS="-lREXP  $LIBS"
32920cat >conftest.$ac_ext <<_ACEOF
32921/* confdefs.h.  */
32922_ACEOF
32923cat confdefs.h >>conftest.$ac_ext
32924cat >>conftest.$ac_ext <<_ACEOF
32925/* end confdefs.h.  */
32926
32927/* Override any gcc2 internal prototype to avoid an error.  */
32928#ifdef __cplusplus
32929extern "C"
32930#endif
32931/* We use char because int might match the return type of a gcc2
32932   builtin and then its argument prototype would still apply.  */
32933char regcomp ();
32934int
32935main ()
32936{
32937regcomp ();
32938  ;
32939  return 0;
32940}
32941_ACEOF
32942rm -f conftest.$ac_objext conftest$ac_exeext
32943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32944  (eval $ac_link) 2>conftest.er1
32945  ac_status=$?
32946  grep -v '^ *+' conftest.er1 >conftest.err
32947  rm -f conftest.er1
32948  cat conftest.err >&5
32949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950  (exit $ac_status); } &&
32951	 { ac_try='test -z "$ac_cxx_werror_flag"
32952			 || test ! -s conftest.err'
32953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954  (eval $ac_try) 2>&5
32955  ac_status=$?
32956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957  (exit $ac_status); }; } &&
32958	 { ac_try='test -s conftest$ac_exeext'
32959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960  (eval $ac_try) 2>&5
32961  ac_status=$?
32962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963  (exit $ac_status); }; }; then
32964  ac_cv_lib_REXP_regcomp=yes
32965else
32966  echo "$as_me: failed program was:" >&5
32967sed 's/^/| /' conftest.$ac_ext >&5
32968
32969ac_cv_lib_REXP_regcomp=no
32970fi
32971rm -f conftest.err conftest.$ac_objext \
32972      conftest$ac_exeext conftest.$ac_ext
32973LIBS=$ac_check_lib_save_LIBS
32974fi
32975echo "$as_me:$LINENO: result: $ac_cv_lib_REXP_regcomp" >&5
32976echo "${ECHO_T}$ac_cv_lib_REXP_regcomp" >&6
32977if test $ac_cv_lib_REXP_regcomp = yes; then
32978  cat >>confdefs.h <<_ACEOF
32979#define HAVE_LIBREXP 1
32980_ACEOF
32981
32982  LIBS="-lREXP $LIBS"
32983
32984fi
32985
32986
32987
32988    echo "$as_me:$LINENO: checking whether -O2 interferes with fstream in C++" >&5
32989echo $ECHO_N "checking whether -O2 interferes with fstream in C++... $ECHO_C" >&6
32990    ac_ext=cc
32991ac_cpp='$CXXCPP $CPPFLAGS'
32992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32995
32996    cat >conftest.$ac_ext <<_ACEOF
32997/* confdefs.h.  */
32998_ACEOF
32999cat confdefs.h >>conftest.$ac_ext
33000cat >>conftest.$ac_ext <<_ACEOF
33001/* end confdefs.h.  */
33002
33003 #include <stdio.h>
33004 #include <stdarg.h>
33005#if HAVE_FSTREAM
33006 #include <fstream>
33007#elif HAVE_FSTREAM_H
33008 #include <fstream.h>
33009#endif
33010using namespace std;
33011
33012int
33013main ()
33014{
33015
33016 ifstream *i = new ifstream("foo");
33017
33018  ;
33019  return 0;
33020}
33021_ACEOF
33022rm -f conftest.$ac_objext conftest$ac_exeext
33023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33024  (eval $ac_link) 2>conftest.er1
33025  ac_status=$?
33026  grep -v '^ *+' conftest.er1 >conftest.err
33027  rm -f conftest.er1
33028  cat conftest.err >&5
33029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030  (exit $ac_status); } &&
33031	 { ac_try='test -z "$ac_cxx_werror_flag"
33032			 || test ! -s conftest.err'
33033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33034  (eval $ac_try) 2>&5
33035  ac_status=$?
33036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037  (exit $ac_status); }; } &&
33038	 { ac_try='test -s conftest$ac_exeext'
33039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33040  (eval $ac_try) 2>&5
33041  ac_status=$?
33042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043  (exit $ac_status); }; }; then
33044  echo "$as_me:$LINENO: result: no" >&5
33045echo "${ECHO_T}no" >&6
33046
33047else
33048  echo "$as_me: failed program was:" >&5
33049sed 's/^/| /' conftest.$ac_ext >&5
33050
33051CXXFLAGS=`echo $CXXFLAGS | sed "s/-O2//"`
33052 echo "$as_me:$LINENO: result: yes" >&5
33053echo "${ECHO_T}yes" >&6
33054
33055fi
33056rm -f conftest.err conftest.$ac_objext \
33057      conftest$ac_exeext conftest.$ac_ext
33058 ac_ext=cc
33059ac_cpp='$CXXCPP $CPPFLAGS'
33060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33063
33064
33065
33066
33067cat >conftest.$ac_ext <<_ACEOF
33068/* confdefs.h.  */
33069_ACEOF
33070cat confdefs.h >>conftest.$ac_ext
33071cat >>conftest.$ac_ext <<_ACEOF
33072/* end confdefs.h.  */
33073
33074#include <unistd.h>
33075
33076int
33077main ()
33078{
33079
33080char buf[32];
33081gethostname(buf, 32);
33082
33083  ;
33084  return 0;
33085}
33086_ACEOF
33087rm -f conftest.$ac_objext conftest$ac_exeext
33088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33089  (eval $ac_link) 2>conftest.er1
33090  ac_status=$?
33091  grep -v '^ *+' conftest.er1 >conftest.err
33092  rm -f conftest.er1
33093  cat conftest.err >&5
33094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095  (exit $ac_status); } &&
33096	 { ac_try='test -z "$ac_cxx_werror_flag"
33097			 || test ! -s conftest.err'
33098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099  (eval $ac_try) 2>&5
33100  ac_status=$?
33101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102  (exit $ac_status); }; } &&
33103	 { ac_try='test -s conftest$ac_exeext'
33104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105  (eval $ac_try) 2>&5
33106  ac_status=$?
33107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108  (exit $ac_status); }; }; then
33109
33110cat >>confdefs.h <<_ACEOF
33111#define REQUIRES_GETHOSTNAME_DECLARATION 0
33112_ACEOF
33113
33114else
33115  echo "$as_me: failed program was:" >&5
33116sed 's/^/| /' conftest.$ac_ext >&5
33117
33118cat >>confdefs.h <<_ACEOF
33119#define REQUIRES_GETHOSTNAME_DECLARATION 1
33120_ACEOF
33121
33122fi
33123rm -f conftest.err conftest.$ac_objext \
33124      conftest$ac_exeext conftest.$ac_ext
33125
33126cat >conftest.$ac_ext <<_ACEOF
33127/* confdefs.h.  */
33128_ACEOF
33129cat confdefs.h >>conftest.$ac_ext
33130cat >>conftest.$ac_ext <<_ACEOF
33131/* end confdefs.h.  */
33132
33133#include <strings.h>
33134
33135int
33136main ()
33137{
33138
33139char buf[32];
33140bzero(buf, (size_t)32);
33141
33142  ;
33143  return 0;
33144}
33145_ACEOF
33146rm -f conftest.$ac_objext conftest$ac_exeext
33147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33148  (eval $ac_link) 2>conftest.er1
33149  ac_status=$?
33150  grep -v '^ *+' conftest.er1 >conftest.err
33151  rm -f conftest.er1
33152  cat conftest.err >&5
33153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154  (exit $ac_status); } &&
33155	 { ac_try='test -z "$ac_cxx_werror_flag"
33156			 || test ! -s conftest.err'
33157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158  (eval $ac_try) 2>&5
33159  ac_status=$?
33160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161  (exit $ac_status); }; } &&
33162	 { ac_try='test -s conftest$ac_exeext'
33163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33164  (eval $ac_try) 2>&5
33165  ac_status=$?
33166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167  (exit $ac_status); }; }; then
33168
33169cat >>confdefs.h <<_ACEOF
33170#define REQUIRES_BZERO_DECLARATION 0
33171_ACEOF
33172
33173else
33174  echo "$as_me: failed program was:" >&5
33175sed 's/^/| /' conftest.$ac_ext >&5
33176
33177cat >>confdefs.h <<_ACEOF
33178#define REQUIRES_BZERO_DECLARATION 1
33179_ACEOF
33180
33181fi
33182rm -f conftest.err conftest.$ac_objext \
33183      conftest$ac_exeext conftest.$ac_ext
33184
33185
33186
33187    echo "$as_me:$LINENO: checking whether header file math.h contains symbol M_PI" >&5
33188echo $ECHO_N "checking whether header file math.h contains symbol M_PI... $ECHO_C" >&6
33189    ac_ext=C
33190    found="no"
33191    for i in math.h
33192    do
33193	cat >conftest.$ac_ext <<_ACEOF
33194/* confdefs.h.  */
33195_ACEOF
33196cat confdefs.h >>conftest.$ac_ext
33197cat >>conftest.$ac_ext <<_ACEOF
33198/* end confdefs.h.  */
33199#include <$i>
33200	    #ifdef M_PI
33201	    yes
33202	    #endif
33203
33204_ACEOF
33205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33206  $EGREP "yes" >/dev/null 2>&1; then
33207  found="yes"
33208fi
33209rm -f conftest*
33210
33211    done
33212    if test $found = "no" ; then
33213	for i in math.h
33214	do
33215	    cat >conftest.$ac_ext <<_ACEOF
33216/* confdefs.h.  */
33217_ACEOF
33218cat confdefs.h >>conftest.$ac_ext
33219cat >>conftest.$ac_ext <<_ACEOF
33220/* end confdefs.h.  */
33221#include <math.h>
33222
33223_ACEOF
33224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33225  $EGREP "M_PI" >/dev/null 2>&1; then
33226  found="yes"
33227fi
33228rm -f conftest*
33229
33230	done
33231    fi
33232    if test $found = "yes" ; then
33233
33234cat >>confdefs.h <<_ACEOF
33235#define HAS_M_PI 1
33236_ACEOF
33237
33238	echo "$as_me:$LINENO: result: \"yes\"" >&5
33239echo "${ECHO_T}\"yes\"" >&6
33240    else
33241	echo "$as_me:$LINENO: result: \"no\"" >&5
33242echo "${ECHO_T}\"no\"" >&6
33243    fi
33244
33245
33246    echo "$as_me:$LINENO: checking whether header file math.h contains symbol M_SQRT2" >&5
33247echo $ECHO_N "checking whether header file math.h contains symbol M_SQRT2... $ECHO_C" >&6
33248    ac_ext=C
33249    found="no"
33250    for i in math.h
33251    do
33252	cat >conftest.$ac_ext <<_ACEOF
33253/* confdefs.h.  */
33254_ACEOF
33255cat confdefs.h >>conftest.$ac_ext
33256cat >>conftest.$ac_ext <<_ACEOF
33257/* end confdefs.h.  */
33258#include <$i>
33259	    #ifdef M_SQRT2
33260	    yes
33261	    #endif
33262
33263_ACEOF
33264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33265  $EGREP "yes" >/dev/null 2>&1; then
33266  found="yes"
33267fi
33268rm -f conftest*
33269
33270    done
33271    if test $found = "no" ; then
33272	for i in math.h
33273	do
33274	    cat >conftest.$ac_ext <<_ACEOF
33275/* confdefs.h.  */
33276_ACEOF
33277cat confdefs.h >>conftest.$ac_ext
33278cat >>conftest.$ac_ext <<_ACEOF
33279/* end confdefs.h.  */
33280#include <math.h>
33281
33282_ACEOF
33283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33284  $EGREP "M_SQRT2" >/dev/null 2>&1; then
33285  found="yes"
33286fi
33287rm -f conftest*
33288
33289	done
33290    fi
33291    if test $found = "yes" ; then
33292
33293cat >>confdefs.h <<_ACEOF
33294#define HAS_M_SQRT2 1
33295_ACEOF
33296
33297	echo "$as_me:$LINENO: result: \"yes\"" >&5
33298echo "${ECHO_T}\"yes\"" >&6
33299    else
33300	echo "$as_me:$LINENO: result: \"no\"" >&5
33301echo "${ECHO_T}\"no\"" >&6
33302    fi
33303
33304
33305    echo "$as_me:$LINENO: checking whether header file sys/stat.h contains symbol S_ISDIR" >&5
33306echo $ECHO_N "checking whether header file sys/stat.h contains symbol S_ISDIR... $ECHO_C" >&6
33307    ac_ext=C
33308    found="no"
33309    for i in sys/stat.h
33310    do
33311	cat >conftest.$ac_ext <<_ACEOF
33312/* confdefs.h.  */
33313_ACEOF
33314cat confdefs.h >>conftest.$ac_ext
33315cat >>conftest.$ac_ext <<_ACEOF
33316/* end confdefs.h.  */
33317#include <$i>
33318	    #ifdef S_ISDIR
33319	    yes
33320	    #endif
33321
33322_ACEOF
33323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33324  $EGREP "yes" >/dev/null 2>&1; then
33325  found="yes"
33326fi
33327rm -f conftest*
33328
33329    done
33330    if test $found = "no" ; then
33331	for i in sys/stat.h
33332	do
33333	    cat >conftest.$ac_ext <<_ACEOF
33334/* confdefs.h.  */
33335_ACEOF
33336cat confdefs.h >>conftest.$ac_ext
33337cat >>conftest.$ac_ext <<_ACEOF
33338/* end confdefs.h.  */
33339#include <sys/stat.h>
33340
33341_ACEOF
33342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33343  $EGREP "S_ISDIR" >/dev/null 2>&1; then
33344  found="yes"
33345fi
33346rm -f conftest*
33347
33348	done
33349    fi
33350    if test $found = "yes" ; then
33351
33352cat >>confdefs.h <<_ACEOF
33353#define HAS_S_ISDIR 1
33354_ACEOF
33355
33356	echo "$as_me:$LINENO: result: \"yes\"" >&5
33357echo "${ECHO_T}\"yes\"" >&6
33358    else
33359	echo "$as_me:$LINENO: result: \"no\"" >&5
33360echo "${ECHO_T}\"no\"" >&6
33361    fi
33362
33363
33364    echo "$as_me:$LINENO: checking whether header file sys/mode.h contains symbol S_ISDIR" >&5
33365echo $ECHO_N "checking whether header file sys/mode.h contains symbol S_ISDIR... $ECHO_C" >&6
33366    ac_ext=C
33367    found="no"
33368    for i in sys/mode.h
33369    do
33370	cat >conftest.$ac_ext <<_ACEOF
33371/* confdefs.h.  */
33372_ACEOF
33373cat confdefs.h >>conftest.$ac_ext
33374cat >>conftest.$ac_ext <<_ACEOF
33375/* end confdefs.h.  */
33376#include <$i>
33377	    #ifdef S_ISDIR
33378	    yes
33379	    #endif
33380
33381_ACEOF
33382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33383  $EGREP "yes" >/dev/null 2>&1; then
33384  found="yes"
33385fi
33386rm -f conftest*
33387
33388    done
33389    if test $found = "no" ; then
33390	for i in sys/mode.h
33391	do
33392	    cat >conftest.$ac_ext <<_ACEOF
33393/* confdefs.h.  */
33394_ACEOF
33395cat confdefs.h >>conftest.$ac_ext
33396cat >>conftest.$ac_ext <<_ACEOF
33397/* end confdefs.h.  */
33398#include <sys/mode.h>
33399
33400_ACEOF
33401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33402  $EGREP "S_ISDIR" >/dev/null 2>&1; then
33403  found="yes"
33404fi
33405rm -f conftest*
33406
33407	done
33408    fi
33409    if test $found = "yes" ; then
33410
33411cat >>confdefs.h <<_ACEOF
33412#define HAS_S_ISDIR 1
33413_ACEOF
33414
33415	echo "$as_me:$LINENO: result: \"yes\"" >&5
33416echo "${ECHO_T}\"yes\"" >&6
33417    else
33418	echo "$as_me:$LINENO: result: \"no\"" >&5
33419echo "${ECHO_T}\"no\"" >&6
33420    fi
33421
33422
33423    echo "$as_me:$LINENO: checking whether header file sys/sysmp.h contains symbol sysmp" >&5
33424echo $ECHO_N "checking whether header file sys/sysmp.h contains symbol sysmp... $ECHO_C" >&6
33425    ac_ext=C
33426    found="no"
33427    for i in sys/sysmp.h
33428    do
33429	cat >conftest.$ac_ext <<_ACEOF
33430/* confdefs.h.  */
33431_ACEOF
33432cat confdefs.h >>conftest.$ac_ext
33433cat >>conftest.$ac_ext <<_ACEOF
33434/* end confdefs.h.  */
33435#include <$i>
33436	    #ifdef sysmp
33437	    yes
33438	    #endif
33439
33440_ACEOF
33441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33442  $EGREP "yes" >/dev/null 2>&1; then
33443  found="yes"
33444fi
33445rm -f conftest*
33446
33447    done
33448    if test $found = "no" ; then
33449	for i in sys/sysmp.h
33450	do
33451	    cat >conftest.$ac_ext <<_ACEOF
33452/* confdefs.h.  */
33453_ACEOF
33454cat confdefs.h >>conftest.$ac_ext
33455cat >>conftest.$ac_ext <<_ACEOF
33456/* end confdefs.h.  */
33457#include <sys/sysmp.h>
33458
33459_ACEOF
33460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33461  $EGREP "sysmp" >/dev/null 2>&1; then
33462  found="yes"
33463fi
33464rm -f conftest*
33465
33466	done
33467    fi
33468    if test $found = "yes" ; then
33469
33470cat >>confdefs.h <<_ACEOF
33471#define HAS_sysmp 1
33472_ACEOF
33473
33474	echo "$as_me:$LINENO: result: \"yes\"" >&5
33475echo "${ECHO_T}\"yes\"" >&6
33476    else
33477	echo "$as_me:$LINENO: result: \"no\"" >&5
33478echo "${ECHO_T}\"no\"" >&6
33479    fi
33480
33481
33482ac_ext=c
33483ac_cpp='$CPP $CPPFLAGS'
33484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33486ac_compiler_gnu=$ac_cv_c_compiler_gnu
33487
33488
33489echo "$as_me:$LINENO: checking for working memcmp" >&5
33490echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
33491if test "${ac_cv_func_memcmp_working+set}" = set; then
33492  echo $ECHO_N "(cached) $ECHO_C" >&6
33493else
33494  if test "$cross_compiling" = yes; then
33495  ac_cv_func_memcmp_working=no
33496else
33497  cat >conftest.$ac_ext <<_ACEOF
33498/* confdefs.h.  */
33499_ACEOF
33500cat confdefs.h >>conftest.$ac_ext
33501cat >>conftest.$ac_ext <<_ACEOF
33502/* end confdefs.h.  */
33503$ac_includes_default
33504int
33505main ()
33506{
33507
33508  /* Some versions of memcmp are not 8-bit clean.  */
33509  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
33510  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
33511    exit (1);
33512
33513  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
33514     or more and with at least one buffer not starting on a 4-byte boundary.
33515     William Lewis provided this test program.   */
33516  {
33517    char foo[21];
33518    char bar[21];
33519    int i;
33520    for (i = 0; i < 4; i++)
33521      {
33522	char *a = foo + i;
33523	char *b = bar + i;
33524	strcpy (a, "--------01111111");
33525	strcpy (b, "--------10000000");
33526	if (memcmp (a, b, 16) >= 0)
33527	  exit (1);
33528      }
33529    exit (0);
33530  }
33531
33532  ;
33533  return 0;
33534}
33535_ACEOF
33536rm -f conftest$ac_exeext
33537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33538  (eval $ac_link) 2>&5
33539  ac_status=$?
33540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543  (eval $ac_try) 2>&5
33544  ac_status=$?
33545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546  (exit $ac_status); }; }; then
33547  ac_cv_func_memcmp_working=yes
33548else
33549  echo "$as_me: program exited with status $ac_status" >&5
33550echo "$as_me: failed program was:" >&5
33551sed 's/^/| /' conftest.$ac_ext >&5
33552
33553( exit $ac_status )
33554ac_cv_func_memcmp_working=no
33555fi
33556rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33557fi
33558fi
33559echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
33560echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
33561test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
33562    "memcmp.$ac_objext"   | \
33563  *" memcmp.$ac_objext"   | \
33564    "memcmp.$ac_objext "* | \
33565  *" memcmp.$ac_objext "* ) ;;
33566  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
33567esac
33568
33569
33570echo "$as_me:$LINENO: checking for function prototypes" >&5
33571echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
33572if test "$ac_cv_prog_cc_stdc" != no; then
33573  echo "$as_me:$LINENO: result: yes" >&5
33574echo "${ECHO_T}yes" >&6
33575
33576cat >>confdefs.h <<\_ACEOF
33577#define PROTOTYPES 1
33578_ACEOF
33579
33580
33581cat >>confdefs.h <<\_ACEOF
33582#define __PROTOTYPES 1
33583_ACEOF
33584
33585else
33586  echo "$as_me:$LINENO: result: no" >&5
33587echo "${ECHO_T}no" >&6
33588fi
33589
33590echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33591echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33592if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33593  echo $ECHO_N "(cached) $ECHO_C" >&6
33594else
33595  ac_cv_func_setvbuf_reversed=no
33596   cat >conftest.$ac_ext <<_ACEOF
33597/* confdefs.h.  */
33598_ACEOF
33599cat confdefs.h >>conftest.$ac_ext
33600cat >>conftest.$ac_ext <<_ACEOF
33601/* end confdefs.h.  */
33602#include <stdio.h>
33603#	  if PROTOTYPES
33604	   int (setvbuf) (FILE *, int, char *, size_t);
33605#	  endif
33606int
33607main ()
33608{
33609char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33610  ;
33611  return 0;
33612}
33613_ACEOF
33614rm -f conftest.$ac_objext conftest$ac_exeext
33615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33616  (eval $ac_link) 2>conftest.er1
33617  ac_status=$?
33618  grep -v '^ *+' conftest.er1 >conftest.err
33619  rm -f conftest.er1
33620  cat conftest.err >&5
33621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622  (exit $ac_status); } &&
33623	 { ac_try='test -z "$ac_c_werror_flag"
33624			 || test ! -s conftest.err'
33625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33626  (eval $ac_try) 2>&5
33627  ac_status=$?
33628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629  (exit $ac_status); }; } &&
33630	 { ac_try='test -s conftest$ac_exeext'
33631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33632  (eval $ac_try) 2>&5
33633  ac_status=$?
33634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635  (exit $ac_status); }; }; then
33636  cat >conftest.$ac_ext <<_ACEOF
33637/* confdefs.h.  */
33638_ACEOF
33639cat confdefs.h >>conftest.$ac_ext
33640cat >>conftest.$ac_ext <<_ACEOF
33641/* end confdefs.h.  */
33642#include <stdio.h>
33643#	     if PROTOTYPES
33644	      int (setvbuf) (FILE *, int, char *, size_t);
33645#	     endif
33646int
33647main ()
33648{
33649char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33650  ;
33651  return 0;
33652}
33653_ACEOF
33654rm -f conftest.$ac_objext conftest$ac_exeext
33655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33656  (eval $ac_link) 2>conftest.er1
33657  ac_status=$?
33658  grep -v '^ *+' conftest.er1 >conftest.err
33659  rm -f conftest.er1
33660  cat conftest.err >&5
33661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662  (exit $ac_status); } &&
33663	 { ac_try='test -z "$ac_c_werror_flag"
33664			 || test ! -s conftest.err'
33665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33666  (eval $ac_try) 2>&5
33667  ac_status=$?
33668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669  (exit $ac_status); }; } &&
33670	 { ac_try='test -s conftest$ac_exeext'
33671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33672  (eval $ac_try) 2>&5
33673  ac_status=$?
33674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675  (exit $ac_status); }; }; then
33676  # It compiles and links either way, so it must not be declared
33677	 # with a prototype and most likely this is a K&R C compiler.
33678	 # Try running it.
33679	 if test "$cross_compiling" = yes; then
33680  : # Assume setvbuf is not reversed when cross-compiling.
33681else
33682  cat >conftest.$ac_ext <<_ACEOF
33683/* confdefs.h.  */
33684_ACEOF
33685cat confdefs.h >>conftest.$ac_ext
33686cat >>conftest.$ac_ext <<_ACEOF
33687/* end confdefs.h.  */
33688#include <stdio.h>
33689int
33690main ()
33691{
33692/* This call has the arguments reversed.
33693		   A reversed system may check and see that the address of buf
33694		   is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
33695		char buf;
33696		if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33697		  exit (1);
33698		putchar ('\r');
33699		exit (0); /* Non-reversed systems SEGV here.  */
33700  ;
33701  return 0;
33702}
33703_ACEOF
33704rm -f conftest$ac_exeext
33705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33706  (eval $ac_link) 2>&5
33707  ac_status=$?
33708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33711  (eval $ac_try) 2>&5
33712  ac_status=$?
33713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714  (exit $ac_status); }; }; then
33715  ac_cv_func_setvbuf_reversed=yes
33716else
33717  echo "$as_me: program exited with status $ac_status" >&5
33718echo "$as_me: failed program was:" >&5
33719sed 's/^/| /' conftest.$ac_ext >&5
33720
33721( exit $ac_status )
33722rm -f core *.core
33723fi
33724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33725fi
33726	ac_cv_func_setvbuf_reversed=yes
33727else
33728  echo "$as_me: failed program was:" >&5
33729sed 's/^/| /' conftest.$ac_ext >&5
33730
33731fi
33732rm -f conftest.err conftest.$ac_objext \
33733      conftest$ac_exeext conftest.$ac_ext
33734else
33735  echo "$as_me: failed program was:" >&5
33736sed 's/^/| /' conftest.$ac_ext >&5
33737
33738fi
33739rm -f conftest.err conftest.$ac_objext \
33740      conftest$ac_exeext conftest.$ac_ext
33741fi
33742echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33743echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33744if test $ac_cv_func_setvbuf_reversed = yes; then
33745
33746cat >>confdefs.h <<\_ACEOF
33747#define SETVBUF_REVERSED 1
33748_ACEOF
33749
33750fi
33751
33752echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33753echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
33754if test "${ac_cv_type_signal+set}" = set; then
33755  echo $ECHO_N "(cached) $ECHO_C" >&6
33756else
33757  cat >conftest.$ac_ext <<_ACEOF
33758/* confdefs.h.  */
33759_ACEOF
33760cat confdefs.h >>conftest.$ac_ext
33761cat >>conftest.$ac_ext <<_ACEOF
33762/* end confdefs.h.  */
33763#include <sys/types.h>
33764#include <signal.h>
33765#ifdef signal
33766# undef signal
33767#endif
33768#ifdef __cplusplus
33769extern "C" void (*signal (int, void (*)(int)))(int);
33770#else
33771void (*signal ()) ();
33772#endif
33773
33774int
33775main ()
33776{
33777int i;
33778  ;
33779  return 0;
33780}
33781_ACEOF
33782rm -f conftest.$ac_objext
33783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33784  (eval $ac_compile) 2>conftest.er1
33785  ac_status=$?
33786  grep -v '^ *+' conftest.er1 >conftest.err
33787  rm -f conftest.er1
33788  cat conftest.err >&5
33789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790  (exit $ac_status); } &&
33791	 { ac_try='test -z "$ac_c_werror_flag"
33792			 || test ! -s conftest.err'
33793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794  (eval $ac_try) 2>&5
33795  ac_status=$?
33796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797  (exit $ac_status); }; } &&
33798	 { ac_try='test -s conftest.$ac_objext'
33799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33800  (eval $ac_try) 2>&5
33801  ac_status=$?
33802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803  (exit $ac_status); }; }; then
33804  ac_cv_type_signal=void
33805else
33806  echo "$as_me: failed program was:" >&5
33807sed 's/^/| /' conftest.$ac_ext >&5
33808
33809ac_cv_type_signal=int
33810fi
33811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33812fi
33813echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33814echo "${ECHO_T}$ac_cv_type_signal" >&6
33815
33816cat >>confdefs.h <<_ACEOF
33817#define RETSIGTYPE $ac_cv_type_signal
33818_ACEOF
33819
33820
33821
33822
33823for ac_header in unistd.h vfork.h
33824do
33825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33826if eval "test \"\${$as_ac_Header+set}\" = set"; then
33827  echo "$as_me:$LINENO: checking for $ac_header" >&5
33828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33829if eval "test \"\${$as_ac_Header+set}\" = set"; then
33830  echo $ECHO_N "(cached) $ECHO_C" >&6
33831fi
33832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33834else
33835  # Is the header compilable?
33836echo "$as_me:$LINENO: checking $ac_header usability" >&5
33837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33838cat >conftest.$ac_ext <<_ACEOF
33839/* confdefs.h.  */
33840_ACEOF
33841cat confdefs.h >>conftest.$ac_ext
33842cat >>conftest.$ac_ext <<_ACEOF
33843/* end confdefs.h.  */
33844$ac_includes_default
33845#include <$ac_header>
33846_ACEOF
33847rm -f conftest.$ac_objext
33848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33849  (eval $ac_compile) 2>conftest.er1
33850  ac_status=$?
33851  grep -v '^ *+' conftest.er1 >conftest.err
33852  rm -f conftest.er1
33853  cat conftest.err >&5
33854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855  (exit $ac_status); } &&
33856	 { ac_try='test -z "$ac_c_werror_flag"
33857			 || test ! -s conftest.err'
33858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33859  (eval $ac_try) 2>&5
33860  ac_status=$?
33861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862  (exit $ac_status); }; } &&
33863	 { ac_try='test -s conftest.$ac_objext'
33864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865  (eval $ac_try) 2>&5
33866  ac_status=$?
33867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868  (exit $ac_status); }; }; then
33869  ac_header_compiler=yes
33870else
33871  echo "$as_me: failed program was:" >&5
33872sed 's/^/| /' conftest.$ac_ext >&5
33873
33874ac_header_compiler=no
33875fi
33876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33878echo "${ECHO_T}$ac_header_compiler" >&6
33879
33880# Is the header present?
33881echo "$as_me:$LINENO: checking $ac_header presence" >&5
33882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33883cat >conftest.$ac_ext <<_ACEOF
33884/* confdefs.h.  */
33885_ACEOF
33886cat confdefs.h >>conftest.$ac_ext
33887cat >>conftest.$ac_ext <<_ACEOF
33888/* end confdefs.h.  */
33889#include <$ac_header>
33890_ACEOF
33891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33892  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33893  ac_status=$?
33894  grep -v '^ *+' conftest.er1 >conftest.err
33895  rm -f conftest.er1
33896  cat conftest.err >&5
33897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898  (exit $ac_status); } >/dev/null; then
33899  if test -s conftest.err; then
33900    ac_cpp_err=$ac_c_preproc_warn_flag
33901    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33902  else
33903    ac_cpp_err=
33904  fi
33905else
33906  ac_cpp_err=yes
33907fi
33908if test -z "$ac_cpp_err"; then
33909  ac_header_preproc=yes
33910else
33911  echo "$as_me: failed program was:" >&5
33912sed 's/^/| /' conftest.$ac_ext >&5
33913
33914  ac_header_preproc=no
33915fi
33916rm -f conftest.err conftest.$ac_ext
33917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33918echo "${ECHO_T}$ac_header_preproc" >&6
33919
33920# So?  What about this header?
33921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33922  yes:no: )
33923    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33925    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33927    ac_header_preproc=yes
33928    ;;
33929  no:yes:* )
33930    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33932    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33933echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33934    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33936    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33937echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33938    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33940    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33942    (
33943      cat <<\_ASBOX
33944## ----------------------------- ##
33945## Report this to the dx lists.  ##
33946## ----------------------------- ##
33947_ASBOX
33948    ) |
33949      sed "s/^/$as_me: WARNING:     /" >&2
33950    ;;
33951esac
33952echo "$as_me:$LINENO: checking for $ac_header" >&5
33953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33954if eval "test \"\${$as_ac_Header+set}\" = set"; then
33955  echo $ECHO_N "(cached) $ECHO_C" >&6
33956else
33957  eval "$as_ac_Header=\$ac_header_preproc"
33958fi
33959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33961
33962fi
33963if test `eval echo '${'$as_ac_Header'}'` = yes; then
33964  cat >>confdefs.h <<_ACEOF
33965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33966_ACEOF
33967
33968fi
33969
33970done
33971
33972
33973
33974for ac_func in fork vfork
33975do
33976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33977echo "$as_me:$LINENO: checking for $ac_func" >&5
33978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33979if eval "test \"\${$as_ac_var+set}\" = set"; then
33980  echo $ECHO_N "(cached) $ECHO_C" >&6
33981else
33982  cat >conftest.$ac_ext <<_ACEOF
33983/* confdefs.h.  */
33984_ACEOF
33985cat confdefs.h >>conftest.$ac_ext
33986cat >>conftest.$ac_ext <<_ACEOF
33987/* end confdefs.h.  */
33988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33989   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33990#define $ac_func innocuous_$ac_func
33991
33992/* System header to define __stub macros and hopefully few prototypes,
33993    which can conflict with char $ac_func (); below.
33994    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33995    <limits.h> exists even on freestanding compilers.  */
33996
33997#ifdef __STDC__
33998# include <limits.h>
33999#else
34000# include <assert.h>
34001#endif
34002
34003#undef $ac_func
34004
34005/* Override any gcc2 internal prototype to avoid an error.  */
34006#ifdef __cplusplus
34007extern "C"
34008{
34009#endif
34010/* We use char because int might match the return type of a gcc2
34011   builtin and then its argument prototype would still apply.  */
34012char $ac_func ();
34013/* The GNU C library defines this for functions which it implements
34014    to always fail with ENOSYS.  Some functions are actually named
34015    something starting with __ and the normal name is an alias.  */
34016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34017choke me
34018#else
34019char (*f) () = $ac_func;
34020#endif
34021#ifdef __cplusplus
34022}
34023#endif
34024
34025int
34026main ()
34027{
34028return f != $ac_func;
34029  ;
34030  return 0;
34031}
34032_ACEOF
34033rm -f conftest.$ac_objext conftest$ac_exeext
34034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34035  (eval $ac_link) 2>conftest.er1
34036  ac_status=$?
34037  grep -v '^ *+' conftest.er1 >conftest.err
34038  rm -f conftest.er1
34039  cat conftest.err >&5
34040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041  (exit $ac_status); } &&
34042	 { ac_try='test -z "$ac_c_werror_flag"
34043			 || test ! -s conftest.err'
34044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045  (eval $ac_try) 2>&5
34046  ac_status=$?
34047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048  (exit $ac_status); }; } &&
34049	 { ac_try='test -s conftest$ac_exeext'
34050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34051  (eval $ac_try) 2>&5
34052  ac_status=$?
34053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054  (exit $ac_status); }; }; then
34055  eval "$as_ac_var=yes"
34056else
34057  echo "$as_me: failed program was:" >&5
34058sed 's/^/| /' conftest.$ac_ext >&5
34059
34060eval "$as_ac_var=no"
34061fi
34062rm -f conftest.err conftest.$ac_objext \
34063      conftest$ac_exeext conftest.$ac_ext
34064fi
34065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34067if test `eval echo '${'$as_ac_var'}'` = yes; then
34068  cat >>confdefs.h <<_ACEOF
34069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34070_ACEOF
34071
34072fi
34073done
34074
34075if test "x$ac_cv_func_fork" = xyes; then
34076  echo "$as_me:$LINENO: checking for working fork" >&5
34077echo $ECHO_N "checking for working fork... $ECHO_C" >&6
34078if test "${ac_cv_func_fork_works+set}" = set; then
34079  echo $ECHO_N "(cached) $ECHO_C" >&6
34080else
34081  if test "$cross_compiling" = yes; then
34082  ac_cv_func_fork_works=cross
34083else
34084  cat >conftest.$ac_ext <<_ACEOF
34085/* By Ruediger Kuhlmann. */
34086      #include <sys/types.h>
34087      #if HAVE_UNISTD_H
34088      # include <unistd.h>
34089      #endif
34090      /* Some systems only have a dummy stub for fork() */
34091      int main ()
34092      {
34093	if (fork() < 0)
34094	  exit (1);
34095	exit (0);
34096      }
34097_ACEOF
34098rm -f conftest$ac_exeext
34099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34100  (eval $ac_link) 2>&5
34101  ac_status=$?
34102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105  (eval $ac_try) 2>&5
34106  ac_status=$?
34107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108  (exit $ac_status); }; }; then
34109  ac_cv_func_fork_works=yes
34110else
34111  echo "$as_me: program exited with status $ac_status" >&5
34112echo "$as_me: failed program was:" >&5
34113sed 's/^/| /' conftest.$ac_ext >&5
34114
34115( exit $ac_status )
34116ac_cv_func_fork_works=no
34117fi
34118rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34119fi
34120fi
34121echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
34122echo "${ECHO_T}$ac_cv_func_fork_works" >&6
34123
34124else
34125  ac_cv_func_fork_works=$ac_cv_func_fork
34126fi
34127if test "x$ac_cv_func_fork_works" = xcross; then
34128  case $host in
34129    *-*-amigaos* | *-*-msdosdjgpp*)
34130      # Override, as these systems have only a dummy fork() stub
34131      ac_cv_func_fork_works=no
34132      ;;
34133    *)
34134      ac_cv_func_fork_works=yes
34135      ;;
34136  esac
34137  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
34138echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
34139fi
34140ac_cv_func_vfork_works=$ac_cv_func_vfork
34141if test "x$ac_cv_func_vfork" = xyes; then
34142  echo "$as_me:$LINENO: checking for working vfork" >&5
34143echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
34144if test "${ac_cv_func_vfork_works+set}" = set; then
34145  echo $ECHO_N "(cached) $ECHO_C" >&6
34146else
34147  if test "$cross_compiling" = yes; then
34148  ac_cv_func_vfork_works=cross
34149else
34150  cat >conftest.$ac_ext <<_ACEOF
34151/* confdefs.h.  */
34152_ACEOF
34153cat confdefs.h >>conftest.$ac_ext
34154cat >>conftest.$ac_ext <<_ACEOF
34155/* end confdefs.h.  */
34156/* Thanks to Paul Eggert for this test.  */
34157#include <stdio.h>
34158#include <stdlib.h>
34159#include <sys/types.h>
34160#include <sys/stat.h>
34161#include <sys/wait.h>
34162#if HAVE_UNISTD_H
34163# include <unistd.h>
34164#endif
34165#if HAVE_VFORK_H
34166# include <vfork.h>
34167#endif
34168/* On some sparc systems, changes by the child to local and incoming
34169   argument registers are propagated back to the parent.  The compiler
34170   is told about this with #include <vfork.h>, but some compilers
34171   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
34172   static variable whose address is put into a register that is
34173   clobbered by the vfork.  */
34174static void
34175#ifdef __cplusplus
34176sparc_address_test (int arg)
34177# else
34178sparc_address_test (arg) int arg;
34179#endif
34180{
34181  static pid_t child;
34182  if (!child) {
34183    child = vfork ();
34184    if (child < 0) {
34185      perror ("vfork");
34186      _exit(2);
34187    }
34188    if (!child) {
34189      arg = getpid();
34190      write(-1, "", 0);
34191      _exit (arg);
34192    }
34193  }
34194}
34195
34196int
34197main ()
34198{
34199  pid_t parent = getpid ();
34200  pid_t child;
34201
34202  sparc_address_test (0);
34203
34204  child = vfork ();
34205
34206  if (child == 0) {
34207    /* Here is another test for sparc vfork register problems.  This
34208       test uses lots of local variables, at least as many local
34209       variables as main has allocated so far including compiler
34210       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
34211       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
34212       reuse the register of parent for one of the local variables,
34213       since it will think that parent can't possibly be used any more
34214       in this routine.  Assigning to the local variable will thus
34215       munge parent in the parent process.  */
34216    pid_t
34217      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
34218      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
34219    /* Convince the compiler that p..p7 are live; otherwise, it might
34220       use the same hardware register for all 8 local variables.  */
34221    if (p != p1 || p != p2 || p != p3 || p != p4
34222	|| p != p5 || p != p6 || p != p7)
34223      _exit(1);
34224
34225    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
34226       from child file descriptors.  If the child closes a descriptor
34227       before it execs or exits, this munges the parent's descriptor
34228       as well.  Test for this by closing stdout in the child.  */
34229    _exit(close(fileno(stdout)) != 0);
34230  } else {
34231    int status;
34232    struct stat st;
34233
34234    while (wait(&status) != child)
34235      ;
34236    exit(
34237	 /* Was there some problem with vforking?  */
34238	 child < 0
34239
34240	 /* Did the child fail?  (This shouldn't happen.)  */
34241	 || status
34242
34243	 /* Did the vfork/compiler bug occur?  */
34244	 || parent != getpid()
34245
34246	 /* Did the file descriptor bug occur?  */
34247	 || fstat(fileno(stdout), &st) != 0
34248	 );
34249  }
34250}
34251_ACEOF
34252rm -f conftest$ac_exeext
34253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34254  (eval $ac_link) 2>&5
34255  ac_status=$?
34256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259  (eval $ac_try) 2>&5
34260  ac_status=$?
34261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262  (exit $ac_status); }; }; then
34263  ac_cv_func_vfork_works=yes
34264else
34265  echo "$as_me: program exited with status $ac_status" >&5
34266echo "$as_me: failed program was:" >&5
34267sed 's/^/| /' conftest.$ac_ext >&5
34268
34269( exit $ac_status )
34270ac_cv_func_vfork_works=no
34271fi
34272rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34273fi
34274fi
34275echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
34276echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
34277
34278fi;
34279if test "x$ac_cv_func_fork_works" = xcross; then
34280  ac_cv_func_vfork_works=$ac_cv_func_vfork
34281  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
34282echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
34283fi
34284
34285if test "x$ac_cv_func_vfork_works" = xyes; then
34286
34287cat >>confdefs.h <<\_ACEOF
34288#define HAVE_WORKING_VFORK 1
34289_ACEOF
34290
34291else
34292
34293cat >>confdefs.h <<\_ACEOF
34294#define vfork fork
34295_ACEOF
34296
34297fi
34298if test "x$ac_cv_func_fork_works" = xyes; then
34299
34300cat >>confdefs.h <<\_ACEOF
34301#define HAVE_WORKING_FORK 1
34302_ACEOF
34303
34304fi
34305
34306
34307for ac_func in vprintf
34308do
34309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34310echo "$as_me:$LINENO: checking for $ac_func" >&5
34311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34312if eval "test \"\${$as_ac_var+set}\" = set"; then
34313  echo $ECHO_N "(cached) $ECHO_C" >&6
34314else
34315  cat >conftest.$ac_ext <<_ACEOF
34316/* confdefs.h.  */
34317_ACEOF
34318cat confdefs.h >>conftest.$ac_ext
34319cat >>conftest.$ac_ext <<_ACEOF
34320/* end confdefs.h.  */
34321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34322   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34323#define $ac_func innocuous_$ac_func
34324
34325/* System header to define __stub macros and hopefully few prototypes,
34326    which can conflict with char $ac_func (); below.
34327    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34328    <limits.h> exists even on freestanding compilers.  */
34329
34330#ifdef __STDC__
34331# include <limits.h>
34332#else
34333# include <assert.h>
34334#endif
34335
34336#undef $ac_func
34337
34338/* Override any gcc2 internal prototype to avoid an error.  */
34339#ifdef __cplusplus
34340extern "C"
34341{
34342#endif
34343/* We use char because int might match the return type of a gcc2
34344   builtin and then its argument prototype would still apply.  */
34345char $ac_func ();
34346/* The GNU C library defines this for functions which it implements
34347    to always fail with ENOSYS.  Some functions are actually named
34348    something starting with __ and the normal name is an alias.  */
34349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34350choke me
34351#else
34352char (*f) () = $ac_func;
34353#endif
34354#ifdef __cplusplus
34355}
34356#endif
34357
34358int
34359main ()
34360{
34361return f != $ac_func;
34362  ;
34363  return 0;
34364}
34365_ACEOF
34366rm -f conftest.$ac_objext conftest$ac_exeext
34367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34368  (eval $ac_link) 2>conftest.er1
34369  ac_status=$?
34370  grep -v '^ *+' conftest.er1 >conftest.err
34371  rm -f conftest.er1
34372  cat conftest.err >&5
34373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374  (exit $ac_status); } &&
34375	 { ac_try='test -z "$ac_c_werror_flag"
34376			 || test ! -s conftest.err'
34377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378  (eval $ac_try) 2>&5
34379  ac_status=$?
34380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381  (exit $ac_status); }; } &&
34382	 { ac_try='test -s conftest$ac_exeext'
34383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34384  (eval $ac_try) 2>&5
34385  ac_status=$?
34386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387  (exit $ac_status); }; }; then
34388  eval "$as_ac_var=yes"
34389else
34390  echo "$as_me: failed program was:" >&5
34391sed 's/^/| /' conftest.$ac_ext >&5
34392
34393eval "$as_ac_var=no"
34394fi
34395rm -f conftest.err conftest.$ac_objext \
34396      conftest$ac_exeext conftest.$ac_ext
34397fi
34398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34399echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34400if test `eval echo '${'$as_ac_var'}'` = yes; then
34401  cat >>confdefs.h <<_ACEOF
34402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34403_ACEOF
34404
34405echo "$as_me:$LINENO: checking for _doprnt" >&5
34406echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
34407if test "${ac_cv_func__doprnt+set}" = set; then
34408  echo $ECHO_N "(cached) $ECHO_C" >&6
34409else
34410  cat >conftest.$ac_ext <<_ACEOF
34411/* confdefs.h.  */
34412_ACEOF
34413cat confdefs.h >>conftest.$ac_ext
34414cat >>conftest.$ac_ext <<_ACEOF
34415/* end confdefs.h.  */
34416/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
34417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34418#define _doprnt innocuous__doprnt
34419
34420/* System header to define __stub macros and hopefully few prototypes,
34421    which can conflict with char _doprnt (); below.
34422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34423    <limits.h> exists even on freestanding compilers.  */
34424
34425#ifdef __STDC__
34426# include <limits.h>
34427#else
34428# include <assert.h>
34429#endif
34430
34431#undef _doprnt
34432
34433/* Override any gcc2 internal prototype to avoid an error.  */
34434#ifdef __cplusplus
34435extern "C"
34436{
34437#endif
34438/* We use char because int might match the return type of a gcc2
34439   builtin and then its argument prototype would still apply.  */
34440char _doprnt ();
34441/* The GNU C library defines this for functions which it implements
34442    to always fail with ENOSYS.  Some functions are actually named
34443    something starting with __ and the normal name is an alias.  */
34444#if defined (__stub__doprnt) || defined (__stub____doprnt)
34445choke me
34446#else
34447char (*f) () = _doprnt;
34448#endif
34449#ifdef __cplusplus
34450}
34451#endif
34452
34453int
34454main ()
34455{
34456return f != _doprnt;
34457  ;
34458  return 0;
34459}
34460_ACEOF
34461rm -f conftest.$ac_objext conftest$ac_exeext
34462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34463  (eval $ac_link) 2>conftest.er1
34464  ac_status=$?
34465  grep -v '^ *+' conftest.er1 >conftest.err
34466  rm -f conftest.er1
34467  cat conftest.err >&5
34468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469  (exit $ac_status); } &&
34470	 { ac_try='test -z "$ac_c_werror_flag"
34471			 || test ! -s conftest.err'
34472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34473  (eval $ac_try) 2>&5
34474  ac_status=$?
34475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476  (exit $ac_status); }; } &&
34477	 { ac_try='test -s conftest$ac_exeext'
34478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479  (eval $ac_try) 2>&5
34480  ac_status=$?
34481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482  (exit $ac_status); }; }; then
34483  ac_cv_func__doprnt=yes
34484else
34485  echo "$as_me: failed program was:" >&5
34486sed 's/^/| /' conftest.$ac_ext >&5
34487
34488ac_cv_func__doprnt=no
34489fi
34490rm -f conftest.err conftest.$ac_objext \
34491      conftest$ac_exeext conftest.$ac_ext
34492fi
34493echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
34494echo "${ECHO_T}$ac_cv_func__doprnt" >&6
34495if test $ac_cv_func__doprnt = yes; then
34496
34497cat >>confdefs.h <<\_ACEOF
34498#define HAVE_DOPRNT 1
34499_ACEOF
34500
34501fi
34502
34503fi
34504done
34505
34506
34507
34508
34509        echo "$as_me:$LINENO: checking for uint" >&5
34510echo $ECHO_N "checking for uint... $ECHO_C" >&6
34511    if test "${ac_cv_type_uint+set}" = set; then
34512  echo $ECHO_N "(cached) $ECHO_C" >&6
34513else
34514
34515	 if test "$ac_cv_header_windows_h" = "yes" ; then
34516	    cat >conftest.$ac_ext <<_ACEOF
34517/* confdefs.h.  */
34518_ACEOF
34519cat confdefs.h >>conftest.$ac_ext
34520cat >>conftest.$ac_ext <<_ACEOF
34521/* end confdefs.h.  */
34522
34523		#include <sys/types.h>
34524		#if STDC_HEADERS
34525		#include <stdlib.h>
34526		#include <stddef.h>
34527		#endif
34528		#include <windows.h>
34529
34530_ACEOF
34531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34532  $EGREP "[^a-zA-Z_0-9]uint[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34533  ac_cv_type_uint=yes
34534else
34535  ac_cv_type_uint=no
34536fi
34537rm -f conftest*
34538
34539	else
34540	    cat >conftest.$ac_ext <<_ACEOF
34541/* confdefs.h.  */
34542_ACEOF
34543cat confdefs.h >>conftest.$ac_ext
34544cat >>conftest.$ac_ext <<_ACEOF
34545/* end confdefs.h.  */
34546
34547		#include <sys/types.h>
34548		#if STDC_HEADERS
34549		#include <stdlib.h>
34550		#include <stddef.h>
34551		#endif
34552
34553_ACEOF
34554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34555  $EGREP "[^a-zA-Z_0-9]uint[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34556  ac_cv_type_uint=yes
34557else
34558  ac_cv_type_uint=no
34559fi
34560rm -f conftest*
34561
34562
34563	fi
34564        if test $ac_cv_type_uint = no; then
34565            cat >conftest.$ac_ext <<_ACEOF
34566/* confdefs.h.  */
34567_ACEOF
34568cat confdefs.h >>conftest.$ac_ext
34569cat >>conftest.$ac_ext <<_ACEOF
34570/* end confdefs.h.  */
34571
34572int
34573main ()
34574{
34575uint foo;
34576  ;
34577  return 0;
34578}
34579_ACEOF
34580rm -f conftest.$ac_objext
34581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34582  (eval $ac_compile) 2>conftest.er1
34583  ac_status=$?
34584  grep -v '^ *+' conftest.er1 >conftest.err
34585  rm -f conftest.er1
34586  cat conftest.err >&5
34587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588  (exit $ac_status); } &&
34589	 { ac_try='test -z "$ac_c_werror_flag"
34590			 || test ! -s conftest.err'
34591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34592  (eval $ac_try) 2>&5
34593  ac_status=$?
34594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595  (exit $ac_status); }; } &&
34596	 { ac_try='test -s conftest.$ac_objext'
34597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34598  (eval $ac_try) 2>&5
34599  ac_status=$?
34600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34601  (exit $ac_status); }; }; then
34602  ac_cv_type_uint=yes
34603else
34604  echo "$as_me: failed program was:" >&5
34605sed 's/^/| /' conftest.$ac_ext >&5
34606
34607ac_cv_type_uint=no
34608fi
34609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34610        fi
34611
34612fi
34613
34614    echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
34615echo "${ECHO_T}$ac_cv_type_uint" >&6
34616    if test $ac_cv_type_uint = no; then
34617
34618cat >>confdefs.h <<\_ACEOF
34619#define uint unsigned int
34620_ACEOF
34621
34622    fi
34623
34624
34625        echo "$as_me:$LINENO: checking for byte" >&5
34626echo $ECHO_N "checking for byte... $ECHO_C" >&6
34627    if test "${ac_cv_type_byte+set}" = set; then
34628  echo $ECHO_N "(cached) $ECHO_C" >&6
34629else
34630
34631	 if test "$ac_cv_header_windows_h" = "yes" ; then
34632	    cat >conftest.$ac_ext <<_ACEOF
34633/* confdefs.h.  */
34634_ACEOF
34635cat confdefs.h >>conftest.$ac_ext
34636cat >>conftest.$ac_ext <<_ACEOF
34637/* end confdefs.h.  */
34638
34639		#include <sys/types.h>
34640		#if STDC_HEADERS
34641		#include <stdlib.h>
34642		#include <stddef.h>
34643		#endif
34644		#include <windows.h>
34645
34646_ACEOF
34647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34648  $EGREP "[^a-zA-Z_0-9]byte[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34649  ac_cv_type_byte=yes
34650else
34651  ac_cv_type_byte=no
34652fi
34653rm -f conftest*
34654
34655	else
34656	    cat >conftest.$ac_ext <<_ACEOF
34657/* confdefs.h.  */
34658_ACEOF
34659cat confdefs.h >>conftest.$ac_ext
34660cat >>conftest.$ac_ext <<_ACEOF
34661/* end confdefs.h.  */
34662
34663		#include <sys/types.h>
34664		#if STDC_HEADERS
34665		#include <stdlib.h>
34666		#include <stddef.h>
34667		#endif
34668
34669_ACEOF
34670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34671  $EGREP "[^a-zA-Z_0-9]byte[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34672  ac_cv_type_byte=yes
34673else
34674  ac_cv_type_byte=no
34675fi
34676rm -f conftest*
34677
34678
34679	fi
34680        if test $ac_cv_type_byte = no; then
34681            cat >conftest.$ac_ext <<_ACEOF
34682/* confdefs.h.  */
34683_ACEOF
34684cat confdefs.h >>conftest.$ac_ext
34685cat >>conftest.$ac_ext <<_ACEOF
34686/* end confdefs.h.  */
34687
34688int
34689main ()
34690{
34691byte foo;
34692  ;
34693  return 0;
34694}
34695_ACEOF
34696rm -f conftest.$ac_objext
34697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34698  (eval $ac_compile) 2>conftest.er1
34699  ac_status=$?
34700  grep -v '^ *+' conftest.er1 >conftest.err
34701  rm -f conftest.er1
34702  cat conftest.err >&5
34703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704  (exit $ac_status); } &&
34705	 { ac_try='test -z "$ac_c_werror_flag"
34706			 || test ! -s conftest.err'
34707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34708  (eval $ac_try) 2>&5
34709  ac_status=$?
34710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34711  (exit $ac_status); }; } &&
34712	 { ac_try='test -s conftest.$ac_objext'
34713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34714  (eval $ac_try) 2>&5
34715  ac_status=$?
34716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717  (exit $ac_status); }; }; then
34718  ac_cv_type_byte=yes
34719else
34720  echo "$as_me: failed program was:" >&5
34721sed 's/^/| /' conftest.$ac_ext >&5
34722
34723ac_cv_type_byte=no
34724fi
34725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34726        fi
34727
34728fi
34729
34730    echo "$as_me:$LINENO: result: $ac_cv_type_byte" >&5
34731echo "${ECHO_T}$ac_cv_type_byte" >&6
34732    if test $ac_cv_type_byte = no; then
34733
34734cat >>confdefs.h <<\_ACEOF
34735#define byte signed char
34736_ACEOF
34737
34738    fi
34739
34740
34741        echo "$as_me:$LINENO: checking for ubyte" >&5
34742echo $ECHO_N "checking for ubyte... $ECHO_C" >&6
34743    if test "${ac_cv_type_ubyte+set}" = set; then
34744  echo $ECHO_N "(cached) $ECHO_C" >&6
34745else
34746
34747	 if test "$ac_cv_header_windows_h" = "yes" ; then
34748	    cat >conftest.$ac_ext <<_ACEOF
34749/* confdefs.h.  */
34750_ACEOF
34751cat confdefs.h >>conftest.$ac_ext
34752cat >>conftest.$ac_ext <<_ACEOF
34753/* end confdefs.h.  */
34754
34755		#include <sys/types.h>
34756		#if STDC_HEADERS
34757		#include <stdlib.h>
34758		#include <stddef.h>
34759		#endif
34760		#include <windows.h>
34761
34762_ACEOF
34763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34764  $EGREP "[^a-zA-Z_0-9]ubyte[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34765  ac_cv_type_ubyte=yes
34766else
34767  ac_cv_type_ubyte=no
34768fi
34769rm -f conftest*
34770
34771	else
34772	    cat >conftest.$ac_ext <<_ACEOF
34773/* confdefs.h.  */
34774_ACEOF
34775cat confdefs.h >>conftest.$ac_ext
34776cat >>conftest.$ac_ext <<_ACEOF
34777/* end confdefs.h.  */
34778
34779		#include <sys/types.h>
34780		#if STDC_HEADERS
34781		#include <stdlib.h>
34782		#include <stddef.h>
34783		#endif
34784
34785_ACEOF
34786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34787  $EGREP "[^a-zA-Z_0-9]ubyte[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34788  ac_cv_type_ubyte=yes
34789else
34790  ac_cv_type_ubyte=no
34791fi
34792rm -f conftest*
34793
34794
34795	fi
34796        if test $ac_cv_type_ubyte = no; then
34797            cat >conftest.$ac_ext <<_ACEOF
34798/* confdefs.h.  */
34799_ACEOF
34800cat confdefs.h >>conftest.$ac_ext
34801cat >>conftest.$ac_ext <<_ACEOF
34802/* end confdefs.h.  */
34803
34804int
34805main ()
34806{
34807ubyte foo;
34808  ;
34809  return 0;
34810}
34811_ACEOF
34812rm -f conftest.$ac_objext
34813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34814  (eval $ac_compile) 2>conftest.er1
34815  ac_status=$?
34816  grep -v '^ *+' conftest.er1 >conftest.err
34817  rm -f conftest.er1
34818  cat conftest.err >&5
34819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820  (exit $ac_status); } &&
34821	 { ac_try='test -z "$ac_c_werror_flag"
34822			 || test ! -s conftest.err'
34823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824  (eval $ac_try) 2>&5
34825  ac_status=$?
34826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827  (exit $ac_status); }; } &&
34828	 { ac_try='test -s conftest.$ac_objext'
34829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830  (eval $ac_try) 2>&5
34831  ac_status=$?
34832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833  (exit $ac_status); }; }; then
34834  ac_cv_type_ubyte=yes
34835else
34836  echo "$as_me: failed program was:" >&5
34837sed 's/^/| /' conftest.$ac_ext >&5
34838
34839ac_cv_type_ubyte=no
34840fi
34841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34842        fi
34843
34844fi
34845
34846    echo "$as_me:$LINENO: result: $ac_cv_type_ubyte" >&5
34847echo "${ECHO_T}$ac_cv_type_ubyte" >&6
34848    if test $ac_cv_type_ubyte = no; then
34849
34850cat >>confdefs.h <<\_ACEOF
34851#define ubyte unsigned char
34852_ACEOF
34853
34854    fi
34855
34856
34857        echo "$as_me:$LINENO: checking for short" >&5
34858echo $ECHO_N "checking for short... $ECHO_C" >&6
34859    if test "${ac_cv_type_short+set}" = set; then
34860  echo $ECHO_N "(cached) $ECHO_C" >&6
34861else
34862
34863	 if test "$ac_cv_header_windows_h" = "yes" ; then
34864	    cat >conftest.$ac_ext <<_ACEOF
34865/* confdefs.h.  */
34866_ACEOF
34867cat confdefs.h >>conftest.$ac_ext
34868cat >>conftest.$ac_ext <<_ACEOF
34869/* end confdefs.h.  */
34870
34871		#include <sys/types.h>
34872		#if STDC_HEADERS
34873		#include <stdlib.h>
34874		#include <stddef.h>
34875		#endif
34876		#include <windows.h>
34877
34878_ACEOF
34879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34880  $EGREP "[^a-zA-Z_0-9]short[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34881  ac_cv_type_short=yes
34882else
34883  ac_cv_type_short=no
34884fi
34885rm -f conftest*
34886
34887	else
34888	    cat >conftest.$ac_ext <<_ACEOF
34889/* confdefs.h.  */
34890_ACEOF
34891cat confdefs.h >>conftest.$ac_ext
34892cat >>conftest.$ac_ext <<_ACEOF
34893/* end confdefs.h.  */
34894
34895		#include <sys/types.h>
34896		#if STDC_HEADERS
34897		#include <stdlib.h>
34898		#include <stddef.h>
34899		#endif
34900
34901_ACEOF
34902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34903  $EGREP "[^a-zA-Z_0-9]short[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34904  ac_cv_type_short=yes
34905else
34906  ac_cv_type_short=no
34907fi
34908rm -f conftest*
34909
34910
34911	fi
34912        if test $ac_cv_type_short = no; then
34913            cat >conftest.$ac_ext <<_ACEOF
34914/* confdefs.h.  */
34915_ACEOF
34916cat confdefs.h >>conftest.$ac_ext
34917cat >>conftest.$ac_ext <<_ACEOF
34918/* end confdefs.h.  */
34919
34920int
34921main ()
34922{
34923short foo;
34924  ;
34925  return 0;
34926}
34927_ACEOF
34928rm -f conftest.$ac_objext
34929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34930  (eval $ac_compile) 2>conftest.er1
34931  ac_status=$?
34932  grep -v '^ *+' conftest.er1 >conftest.err
34933  rm -f conftest.er1
34934  cat conftest.err >&5
34935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936  (exit $ac_status); } &&
34937	 { ac_try='test -z "$ac_c_werror_flag"
34938			 || test ! -s conftest.err'
34939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940  (eval $ac_try) 2>&5
34941  ac_status=$?
34942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943  (exit $ac_status); }; } &&
34944	 { ac_try='test -s conftest.$ac_objext'
34945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34946  (eval $ac_try) 2>&5
34947  ac_status=$?
34948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949  (exit $ac_status); }; }; then
34950  ac_cv_type_short=yes
34951else
34952  echo "$as_me: failed program was:" >&5
34953sed 's/^/| /' conftest.$ac_ext >&5
34954
34955ac_cv_type_short=no
34956fi
34957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34958        fi
34959
34960fi
34961
34962    echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
34963echo "${ECHO_T}$ac_cv_type_short" >&6
34964    if test $ac_cv_type_short = no; then
34965
34966cat >>confdefs.h <<\_ACEOF
34967#define short short
34968_ACEOF
34969
34970    fi
34971
34972
34973        echo "$as_me:$LINENO: checking for ushort" >&5
34974echo $ECHO_N "checking for ushort... $ECHO_C" >&6
34975    if test "${ac_cv_type_ushort+set}" = set; then
34976  echo $ECHO_N "(cached) $ECHO_C" >&6
34977else
34978
34979	 if test "$ac_cv_header_windows_h" = "yes" ; then
34980	    cat >conftest.$ac_ext <<_ACEOF
34981/* confdefs.h.  */
34982_ACEOF
34983cat confdefs.h >>conftest.$ac_ext
34984cat >>conftest.$ac_ext <<_ACEOF
34985/* end confdefs.h.  */
34986
34987		#include <sys/types.h>
34988		#if STDC_HEADERS
34989		#include <stdlib.h>
34990		#include <stddef.h>
34991		#endif
34992		#include <windows.h>
34993
34994_ACEOF
34995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34996  $EGREP "[^a-zA-Z_0-9]ushort[^a-zA-Z_0-9]" >/dev/null 2>&1; then
34997  ac_cv_type_ushort=yes
34998else
34999  ac_cv_type_ushort=no
35000fi
35001rm -f conftest*
35002
35003	else
35004	    cat >conftest.$ac_ext <<_ACEOF
35005/* confdefs.h.  */
35006_ACEOF
35007cat confdefs.h >>conftest.$ac_ext
35008cat >>conftest.$ac_ext <<_ACEOF
35009/* end confdefs.h.  */
35010
35011		#include <sys/types.h>
35012		#if STDC_HEADERS
35013		#include <stdlib.h>
35014		#include <stddef.h>
35015		#endif
35016
35017_ACEOF
35018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35019  $EGREP "[^a-zA-Z_0-9]ushort[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35020  ac_cv_type_ushort=yes
35021else
35022  ac_cv_type_ushort=no
35023fi
35024rm -f conftest*
35025
35026
35027	fi
35028        if test $ac_cv_type_ushort = no; then
35029            cat >conftest.$ac_ext <<_ACEOF
35030/* confdefs.h.  */
35031_ACEOF
35032cat confdefs.h >>conftest.$ac_ext
35033cat >>conftest.$ac_ext <<_ACEOF
35034/* end confdefs.h.  */
35035
35036int
35037main ()
35038{
35039ushort foo;
35040  ;
35041  return 0;
35042}
35043_ACEOF
35044rm -f conftest.$ac_objext
35045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35046  (eval $ac_compile) 2>conftest.er1
35047  ac_status=$?
35048  grep -v '^ *+' conftest.er1 >conftest.err
35049  rm -f conftest.er1
35050  cat conftest.err >&5
35051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052  (exit $ac_status); } &&
35053	 { ac_try='test -z "$ac_c_werror_flag"
35054			 || test ! -s conftest.err'
35055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056  (eval $ac_try) 2>&5
35057  ac_status=$?
35058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059  (exit $ac_status); }; } &&
35060	 { ac_try='test -s conftest.$ac_objext'
35061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062  (eval $ac_try) 2>&5
35063  ac_status=$?
35064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065  (exit $ac_status); }; }; then
35066  ac_cv_type_ushort=yes
35067else
35068  echo "$as_me: failed program was:" >&5
35069sed 's/^/| /' conftest.$ac_ext >&5
35070
35071ac_cv_type_ushort=no
35072fi
35073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35074        fi
35075
35076fi
35077
35078    echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
35079echo "${ECHO_T}$ac_cv_type_ushort" >&6
35080    if test $ac_cv_type_ushort = no; then
35081
35082cat >>confdefs.h <<\_ACEOF
35083#define ushort unsigned short
35084_ACEOF
35085
35086    fi
35087
35088
35089        echo "$as_me:$LINENO: checking for ulong" >&5
35090echo $ECHO_N "checking for ulong... $ECHO_C" >&6
35091    if test "${ac_cv_type_ulong+set}" = set; then
35092  echo $ECHO_N "(cached) $ECHO_C" >&6
35093else
35094
35095	 if test "$ac_cv_header_windows_h" = "yes" ; then
35096	    cat >conftest.$ac_ext <<_ACEOF
35097/* confdefs.h.  */
35098_ACEOF
35099cat confdefs.h >>conftest.$ac_ext
35100cat >>conftest.$ac_ext <<_ACEOF
35101/* end confdefs.h.  */
35102
35103		#include <sys/types.h>
35104		#if STDC_HEADERS
35105		#include <stdlib.h>
35106		#include <stddef.h>
35107		#endif
35108		#include <windows.h>
35109
35110_ACEOF
35111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35112  $EGREP "[^a-zA-Z_0-9]ulong[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35113  ac_cv_type_ulong=yes
35114else
35115  ac_cv_type_ulong=no
35116fi
35117rm -f conftest*
35118
35119	else
35120	    cat >conftest.$ac_ext <<_ACEOF
35121/* confdefs.h.  */
35122_ACEOF
35123cat confdefs.h >>conftest.$ac_ext
35124cat >>conftest.$ac_ext <<_ACEOF
35125/* end confdefs.h.  */
35126
35127		#include <sys/types.h>
35128		#if STDC_HEADERS
35129		#include <stdlib.h>
35130		#include <stddef.h>
35131		#endif
35132
35133_ACEOF
35134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35135  $EGREP "[^a-zA-Z_0-9]ulong[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35136  ac_cv_type_ulong=yes
35137else
35138  ac_cv_type_ulong=no
35139fi
35140rm -f conftest*
35141
35142
35143	fi
35144        if test $ac_cv_type_ulong = no; then
35145            cat >conftest.$ac_ext <<_ACEOF
35146/* confdefs.h.  */
35147_ACEOF
35148cat confdefs.h >>conftest.$ac_ext
35149cat >>conftest.$ac_ext <<_ACEOF
35150/* end confdefs.h.  */
35151
35152int
35153main ()
35154{
35155ulong foo;
35156  ;
35157  return 0;
35158}
35159_ACEOF
35160rm -f conftest.$ac_objext
35161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35162  (eval $ac_compile) 2>conftest.er1
35163  ac_status=$?
35164  grep -v '^ *+' conftest.er1 >conftest.err
35165  rm -f conftest.er1
35166  cat conftest.err >&5
35167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168  (exit $ac_status); } &&
35169	 { ac_try='test -z "$ac_c_werror_flag"
35170			 || test ! -s conftest.err'
35171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35172  (eval $ac_try) 2>&5
35173  ac_status=$?
35174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175  (exit $ac_status); }; } &&
35176	 { ac_try='test -s conftest.$ac_objext'
35177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35178  (eval $ac_try) 2>&5
35179  ac_status=$?
35180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181  (exit $ac_status); }; }; then
35182  ac_cv_type_ulong=yes
35183else
35184  echo "$as_me: failed program was:" >&5
35185sed 's/^/| /' conftest.$ac_ext >&5
35186
35187ac_cv_type_ulong=no
35188fi
35189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35190        fi
35191
35192fi
35193
35194    echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
35195echo "${ECHO_T}$ac_cv_type_ulong" >&6
35196    if test $ac_cv_type_ulong = no; then
35197
35198cat >>confdefs.h <<\_ACEOF
35199#define ulong unsigned long
35200_ACEOF
35201
35202    fi
35203
35204
35205        echo "$as_me:$LINENO: checking for int8" >&5
35206echo $ECHO_N "checking for int8... $ECHO_C" >&6
35207    if test "${ac_cv_type_int8+set}" = set; then
35208  echo $ECHO_N "(cached) $ECHO_C" >&6
35209else
35210
35211	 if test "$ac_cv_header_windows_h" = "yes" ; then
35212	    cat >conftest.$ac_ext <<_ACEOF
35213/* confdefs.h.  */
35214_ACEOF
35215cat confdefs.h >>conftest.$ac_ext
35216cat >>conftest.$ac_ext <<_ACEOF
35217/* end confdefs.h.  */
35218
35219		#include <sys/types.h>
35220		#if STDC_HEADERS
35221		#include <stdlib.h>
35222		#include <stddef.h>
35223		#endif
35224		#include <windows.h>
35225
35226_ACEOF
35227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35228  $EGREP "[^a-zA-Z_0-9]int8[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35229  ac_cv_type_int8=yes
35230else
35231  ac_cv_type_int8=no
35232fi
35233rm -f conftest*
35234
35235	else
35236	    cat >conftest.$ac_ext <<_ACEOF
35237/* confdefs.h.  */
35238_ACEOF
35239cat confdefs.h >>conftest.$ac_ext
35240cat >>conftest.$ac_ext <<_ACEOF
35241/* end confdefs.h.  */
35242
35243		#include <sys/types.h>
35244		#if STDC_HEADERS
35245		#include <stdlib.h>
35246		#include <stddef.h>
35247		#endif
35248
35249_ACEOF
35250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35251  $EGREP "[^a-zA-Z_0-9]int8[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35252  ac_cv_type_int8=yes
35253else
35254  ac_cv_type_int8=no
35255fi
35256rm -f conftest*
35257
35258
35259	fi
35260        if test $ac_cv_type_int8 = no; then
35261            cat >conftest.$ac_ext <<_ACEOF
35262/* confdefs.h.  */
35263_ACEOF
35264cat confdefs.h >>conftest.$ac_ext
35265cat >>conftest.$ac_ext <<_ACEOF
35266/* end confdefs.h.  */
35267
35268int
35269main ()
35270{
35271int8 foo;
35272  ;
35273  return 0;
35274}
35275_ACEOF
35276rm -f conftest.$ac_objext
35277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35278  (eval $ac_compile) 2>conftest.er1
35279  ac_status=$?
35280  grep -v '^ *+' conftest.er1 >conftest.err
35281  rm -f conftest.er1
35282  cat conftest.err >&5
35283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284  (exit $ac_status); } &&
35285	 { ac_try='test -z "$ac_c_werror_flag"
35286			 || test ! -s conftest.err'
35287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288  (eval $ac_try) 2>&5
35289  ac_status=$?
35290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291  (exit $ac_status); }; } &&
35292	 { ac_try='test -s conftest.$ac_objext'
35293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35294  (eval $ac_try) 2>&5
35295  ac_status=$?
35296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297  (exit $ac_status); }; }; then
35298  ac_cv_type_int8=yes
35299else
35300  echo "$as_me: failed program was:" >&5
35301sed 's/^/| /' conftest.$ac_ext >&5
35302
35303ac_cv_type_int8=no
35304fi
35305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35306        fi
35307
35308fi
35309
35310    echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
35311echo "${ECHO_T}$ac_cv_type_int8" >&6
35312    if test $ac_cv_type_int8 = no; then
35313
35314cat >>confdefs.h <<\_ACEOF
35315#define int8 char
35316_ACEOF
35317
35318    fi
35319
35320
35321        echo "$as_me:$LINENO: checking for uint8" >&5
35322echo $ECHO_N "checking for uint8... $ECHO_C" >&6
35323    if test "${ac_cv_type_uint8+set}" = set; then
35324  echo $ECHO_N "(cached) $ECHO_C" >&6
35325else
35326
35327	 if test "$ac_cv_header_windows_h" = "yes" ; then
35328	    cat >conftest.$ac_ext <<_ACEOF
35329/* confdefs.h.  */
35330_ACEOF
35331cat confdefs.h >>conftest.$ac_ext
35332cat >>conftest.$ac_ext <<_ACEOF
35333/* end confdefs.h.  */
35334
35335		#include <sys/types.h>
35336		#if STDC_HEADERS
35337		#include <stdlib.h>
35338		#include <stddef.h>
35339		#endif
35340		#include <windows.h>
35341
35342_ACEOF
35343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35344  $EGREP "[^a-zA-Z_0-9]uint8[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35345  ac_cv_type_uint8=yes
35346else
35347  ac_cv_type_uint8=no
35348fi
35349rm -f conftest*
35350
35351	else
35352	    cat >conftest.$ac_ext <<_ACEOF
35353/* confdefs.h.  */
35354_ACEOF
35355cat confdefs.h >>conftest.$ac_ext
35356cat >>conftest.$ac_ext <<_ACEOF
35357/* end confdefs.h.  */
35358
35359		#include <sys/types.h>
35360		#if STDC_HEADERS
35361		#include <stdlib.h>
35362		#include <stddef.h>
35363		#endif
35364
35365_ACEOF
35366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35367  $EGREP "[^a-zA-Z_0-9]uint8[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35368  ac_cv_type_uint8=yes
35369else
35370  ac_cv_type_uint8=no
35371fi
35372rm -f conftest*
35373
35374
35375	fi
35376        if test $ac_cv_type_uint8 = no; then
35377            cat >conftest.$ac_ext <<_ACEOF
35378/* confdefs.h.  */
35379_ACEOF
35380cat confdefs.h >>conftest.$ac_ext
35381cat >>conftest.$ac_ext <<_ACEOF
35382/* end confdefs.h.  */
35383
35384int
35385main ()
35386{
35387uint8 foo;
35388  ;
35389  return 0;
35390}
35391_ACEOF
35392rm -f conftest.$ac_objext
35393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35394  (eval $ac_compile) 2>conftest.er1
35395  ac_status=$?
35396  grep -v '^ *+' conftest.er1 >conftest.err
35397  rm -f conftest.er1
35398  cat conftest.err >&5
35399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400  (exit $ac_status); } &&
35401	 { ac_try='test -z "$ac_c_werror_flag"
35402			 || test ! -s conftest.err'
35403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404  (eval $ac_try) 2>&5
35405  ac_status=$?
35406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407  (exit $ac_status); }; } &&
35408	 { ac_try='test -s conftest.$ac_objext'
35409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35410  (eval $ac_try) 2>&5
35411  ac_status=$?
35412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413  (exit $ac_status); }; }; then
35414  ac_cv_type_uint8=yes
35415else
35416  echo "$as_me: failed program was:" >&5
35417sed 's/^/| /' conftest.$ac_ext >&5
35418
35419ac_cv_type_uint8=no
35420fi
35421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35422        fi
35423
35424fi
35425
35426    echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
35427echo "${ECHO_T}$ac_cv_type_uint8" >&6
35428    if test $ac_cv_type_uint8 = no; then
35429
35430cat >>confdefs.h <<\_ACEOF
35431#define uint8 unsigned char
35432_ACEOF
35433
35434    fi
35435
35436
35437        echo "$as_me:$LINENO: checking for int16" >&5
35438echo $ECHO_N "checking for int16... $ECHO_C" >&6
35439    if test "${ac_cv_type_int16+set}" = set; then
35440  echo $ECHO_N "(cached) $ECHO_C" >&6
35441else
35442
35443	 if test "$ac_cv_header_windows_h" = "yes" ; then
35444	    cat >conftest.$ac_ext <<_ACEOF
35445/* confdefs.h.  */
35446_ACEOF
35447cat confdefs.h >>conftest.$ac_ext
35448cat >>conftest.$ac_ext <<_ACEOF
35449/* end confdefs.h.  */
35450
35451		#include <sys/types.h>
35452		#if STDC_HEADERS
35453		#include <stdlib.h>
35454		#include <stddef.h>
35455		#endif
35456		#include <windows.h>
35457
35458_ACEOF
35459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35460  $EGREP "[^a-zA-Z_0-9]int16[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35461  ac_cv_type_int16=yes
35462else
35463  ac_cv_type_int16=no
35464fi
35465rm -f conftest*
35466
35467	else
35468	    cat >conftest.$ac_ext <<_ACEOF
35469/* confdefs.h.  */
35470_ACEOF
35471cat confdefs.h >>conftest.$ac_ext
35472cat >>conftest.$ac_ext <<_ACEOF
35473/* end confdefs.h.  */
35474
35475		#include <sys/types.h>
35476		#if STDC_HEADERS
35477		#include <stdlib.h>
35478		#include <stddef.h>
35479		#endif
35480
35481_ACEOF
35482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35483  $EGREP "[^a-zA-Z_0-9]int16[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35484  ac_cv_type_int16=yes
35485else
35486  ac_cv_type_int16=no
35487fi
35488rm -f conftest*
35489
35490
35491	fi
35492        if test $ac_cv_type_int16 = no; then
35493            cat >conftest.$ac_ext <<_ACEOF
35494/* confdefs.h.  */
35495_ACEOF
35496cat confdefs.h >>conftest.$ac_ext
35497cat >>conftest.$ac_ext <<_ACEOF
35498/* end confdefs.h.  */
35499
35500int
35501main ()
35502{
35503int16 foo;
35504  ;
35505  return 0;
35506}
35507_ACEOF
35508rm -f conftest.$ac_objext
35509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35510  (eval $ac_compile) 2>conftest.er1
35511  ac_status=$?
35512  grep -v '^ *+' conftest.er1 >conftest.err
35513  rm -f conftest.er1
35514  cat conftest.err >&5
35515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516  (exit $ac_status); } &&
35517	 { ac_try='test -z "$ac_c_werror_flag"
35518			 || test ! -s conftest.err'
35519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520  (eval $ac_try) 2>&5
35521  ac_status=$?
35522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523  (exit $ac_status); }; } &&
35524	 { ac_try='test -s conftest.$ac_objext'
35525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35526  (eval $ac_try) 2>&5
35527  ac_status=$?
35528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529  (exit $ac_status); }; }; then
35530  ac_cv_type_int16=yes
35531else
35532  echo "$as_me: failed program was:" >&5
35533sed 's/^/| /' conftest.$ac_ext >&5
35534
35535ac_cv_type_int16=no
35536fi
35537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35538        fi
35539
35540fi
35541
35542    echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5
35543echo "${ECHO_T}$ac_cv_type_int16" >&6
35544    if test $ac_cv_type_int16 = no; then
35545
35546cat >>confdefs.h <<\_ACEOF
35547#define int16 short
35548_ACEOF
35549
35550    fi
35551
35552
35553        echo "$as_me:$LINENO: checking for uint16" >&5
35554echo $ECHO_N "checking for uint16... $ECHO_C" >&6
35555    if test "${ac_cv_type_uint16+set}" = set; then
35556  echo $ECHO_N "(cached) $ECHO_C" >&6
35557else
35558
35559	 if test "$ac_cv_header_windows_h" = "yes" ; then
35560	    cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h.  */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h.  */
35566
35567		#include <sys/types.h>
35568		#if STDC_HEADERS
35569		#include <stdlib.h>
35570		#include <stddef.h>
35571		#endif
35572		#include <windows.h>
35573
35574_ACEOF
35575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35576  $EGREP "[^a-zA-Z_0-9]uint16[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35577  ac_cv_type_uint16=yes
35578else
35579  ac_cv_type_uint16=no
35580fi
35581rm -f conftest*
35582
35583	else
35584	    cat >conftest.$ac_ext <<_ACEOF
35585/* confdefs.h.  */
35586_ACEOF
35587cat confdefs.h >>conftest.$ac_ext
35588cat >>conftest.$ac_ext <<_ACEOF
35589/* end confdefs.h.  */
35590
35591		#include <sys/types.h>
35592		#if STDC_HEADERS
35593		#include <stdlib.h>
35594		#include <stddef.h>
35595		#endif
35596
35597_ACEOF
35598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35599  $EGREP "[^a-zA-Z_0-9]uint16[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35600  ac_cv_type_uint16=yes
35601else
35602  ac_cv_type_uint16=no
35603fi
35604rm -f conftest*
35605
35606
35607	fi
35608        if test $ac_cv_type_uint16 = no; then
35609            cat >conftest.$ac_ext <<_ACEOF
35610/* confdefs.h.  */
35611_ACEOF
35612cat confdefs.h >>conftest.$ac_ext
35613cat >>conftest.$ac_ext <<_ACEOF
35614/* end confdefs.h.  */
35615
35616int
35617main ()
35618{
35619uint16 foo;
35620  ;
35621  return 0;
35622}
35623_ACEOF
35624rm -f conftest.$ac_objext
35625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35626  (eval $ac_compile) 2>conftest.er1
35627  ac_status=$?
35628  grep -v '^ *+' conftest.er1 >conftest.err
35629  rm -f conftest.er1
35630  cat conftest.err >&5
35631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632  (exit $ac_status); } &&
35633	 { ac_try='test -z "$ac_c_werror_flag"
35634			 || test ! -s conftest.err'
35635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636  (eval $ac_try) 2>&5
35637  ac_status=$?
35638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639  (exit $ac_status); }; } &&
35640	 { ac_try='test -s conftest.$ac_objext'
35641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642  (eval $ac_try) 2>&5
35643  ac_status=$?
35644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645  (exit $ac_status); }; }; then
35646  ac_cv_type_uint16=yes
35647else
35648  echo "$as_me: failed program was:" >&5
35649sed 's/^/| /' conftest.$ac_ext >&5
35650
35651ac_cv_type_uint16=no
35652fi
35653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35654        fi
35655
35656fi
35657
35658    echo "$as_me:$LINENO: result: $ac_cv_type_uint16" >&5
35659echo "${ECHO_T}$ac_cv_type_uint16" >&6
35660    if test $ac_cv_type_uint16 = no; then
35661
35662cat >>confdefs.h <<\_ACEOF
35663#define uint16 unsigned short
35664_ACEOF
35665
35666    fi
35667
35668
35669        echo "$as_me:$LINENO: checking for int32" >&5
35670echo $ECHO_N "checking for int32... $ECHO_C" >&6
35671    if test "${ac_cv_type_int32+set}" = set; then
35672  echo $ECHO_N "(cached) $ECHO_C" >&6
35673else
35674
35675	 if test "$ac_cv_header_windows_h" = "yes" ; then
35676	    cat >conftest.$ac_ext <<_ACEOF
35677/* confdefs.h.  */
35678_ACEOF
35679cat confdefs.h >>conftest.$ac_ext
35680cat >>conftest.$ac_ext <<_ACEOF
35681/* end confdefs.h.  */
35682
35683		#include <sys/types.h>
35684		#if STDC_HEADERS
35685		#include <stdlib.h>
35686		#include <stddef.h>
35687		#endif
35688		#include <windows.h>
35689
35690_ACEOF
35691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35692  $EGREP "[^a-zA-Z_0-9]int32[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35693  ac_cv_type_int32=yes
35694else
35695  ac_cv_type_int32=no
35696fi
35697rm -f conftest*
35698
35699	else
35700	    cat >conftest.$ac_ext <<_ACEOF
35701/* confdefs.h.  */
35702_ACEOF
35703cat confdefs.h >>conftest.$ac_ext
35704cat >>conftest.$ac_ext <<_ACEOF
35705/* end confdefs.h.  */
35706
35707		#include <sys/types.h>
35708		#if STDC_HEADERS
35709		#include <stdlib.h>
35710		#include <stddef.h>
35711		#endif
35712
35713_ACEOF
35714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35715  $EGREP "[^a-zA-Z_0-9]int32[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35716  ac_cv_type_int32=yes
35717else
35718  ac_cv_type_int32=no
35719fi
35720rm -f conftest*
35721
35722
35723	fi
35724        if test $ac_cv_type_int32 = no; then
35725            cat >conftest.$ac_ext <<_ACEOF
35726/* confdefs.h.  */
35727_ACEOF
35728cat confdefs.h >>conftest.$ac_ext
35729cat >>conftest.$ac_ext <<_ACEOF
35730/* end confdefs.h.  */
35731
35732int
35733main ()
35734{
35735int32 foo;
35736  ;
35737  return 0;
35738}
35739_ACEOF
35740rm -f conftest.$ac_objext
35741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35742  (eval $ac_compile) 2>conftest.er1
35743  ac_status=$?
35744  grep -v '^ *+' conftest.er1 >conftest.err
35745  rm -f conftest.er1
35746  cat conftest.err >&5
35747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748  (exit $ac_status); } &&
35749	 { ac_try='test -z "$ac_c_werror_flag"
35750			 || test ! -s conftest.err'
35751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752  (eval $ac_try) 2>&5
35753  ac_status=$?
35754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755  (exit $ac_status); }; } &&
35756	 { ac_try='test -s conftest.$ac_objext'
35757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35758  (eval $ac_try) 2>&5
35759  ac_status=$?
35760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761  (exit $ac_status); }; }; then
35762  ac_cv_type_int32=yes
35763else
35764  echo "$as_me: failed program was:" >&5
35765sed 's/^/| /' conftest.$ac_ext >&5
35766
35767ac_cv_type_int32=no
35768fi
35769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35770        fi
35771
35772fi
35773
35774    echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5
35775echo "${ECHO_T}$ac_cv_type_int32" >&6
35776    if test $ac_cv_type_int32 = no; then
35777
35778cat >>confdefs.h <<\_ACEOF
35779#define int32 int
35780_ACEOF
35781
35782    fi
35783
35784
35785        echo "$as_me:$LINENO: checking for uint32" >&5
35786echo $ECHO_N "checking for uint32... $ECHO_C" >&6
35787    if test "${ac_cv_type_uint32+set}" = set; then
35788  echo $ECHO_N "(cached) $ECHO_C" >&6
35789else
35790
35791	 if test "$ac_cv_header_windows_h" = "yes" ; then
35792	    cat >conftest.$ac_ext <<_ACEOF
35793/* confdefs.h.  */
35794_ACEOF
35795cat confdefs.h >>conftest.$ac_ext
35796cat >>conftest.$ac_ext <<_ACEOF
35797/* end confdefs.h.  */
35798
35799		#include <sys/types.h>
35800		#if STDC_HEADERS
35801		#include <stdlib.h>
35802		#include <stddef.h>
35803		#endif
35804		#include <windows.h>
35805
35806_ACEOF
35807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35808  $EGREP "[^a-zA-Z_0-9]uint32[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35809  ac_cv_type_uint32=yes
35810else
35811  ac_cv_type_uint32=no
35812fi
35813rm -f conftest*
35814
35815	else
35816	    cat >conftest.$ac_ext <<_ACEOF
35817/* confdefs.h.  */
35818_ACEOF
35819cat confdefs.h >>conftest.$ac_ext
35820cat >>conftest.$ac_ext <<_ACEOF
35821/* end confdefs.h.  */
35822
35823		#include <sys/types.h>
35824		#if STDC_HEADERS
35825		#include <stdlib.h>
35826		#include <stddef.h>
35827		#endif
35828
35829_ACEOF
35830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35831  $EGREP "[^a-zA-Z_0-9]uint32[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35832  ac_cv_type_uint32=yes
35833else
35834  ac_cv_type_uint32=no
35835fi
35836rm -f conftest*
35837
35838
35839	fi
35840        if test $ac_cv_type_uint32 = no; then
35841            cat >conftest.$ac_ext <<_ACEOF
35842/* confdefs.h.  */
35843_ACEOF
35844cat confdefs.h >>conftest.$ac_ext
35845cat >>conftest.$ac_ext <<_ACEOF
35846/* end confdefs.h.  */
35847
35848int
35849main ()
35850{
35851uint32 foo;
35852  ;
35853  return 0;
35854}
35855_ACEOF
35856rm -f conftest.$ac_objext
35857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35858  (eval $ac_compile) 2>conftest.er1
35859  ac_status=$?
35860  grep -v '^ *+' conftest.er1 >conftest.err
35861  rm -f conftest.er1
35862  cat conftest.err >&5
35863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864  (exit $ac_status); } &&
35865	 { ac_try='test -z "$ac_c_werror_flag"
35866			 || test ! -s conftest.err'
35867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35868  (eval $ac_try) 2>&5
35869  ac_status=$?
35870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871  (exit $ac_status); }; } &&
35872	 { ac_try='test -s conftest.$ac_objext'
35873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35874  (eval $ac_try) 2>&5
35875  ac_status=$?
35876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877  (exit $ac_status); }; }; then
35878  ac_cv_type_uint32=yes
35879else
35880  echo "$as_me: failed program was:" >&5
35881sed 's/^/| /' conftest.$ac_ext >&5
35882
35883ac_cv_type_uint32=no
35884fi
35885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35886        fi
35887
35888fi
35889
35890    echo "$as_me:$LINENO: result: $ac_cv_type_uint32" >&5
35891echo "${ECHO_T}$ac_cv_type_uint32" >&6
35892    if test $ac_cv_type_uint32 = no; then
35893
35894cat >>confdefs.h <<\_ACEOF
35895#define uint32 unsigned int
35896_ACEOF
35897
35898    fi
35899
35900
35901        echo "$as_me:$LINENO: checking for int64" >&5
35902echo $ECHO_N "checking for int64... $ECHO_C" >&6
35903    if test "${ac_cv_type_int64+set}" = set; then
35904  echo $ECHO_N "(cached) $ECHO_C" >&6
35905else
35906
35907	 if test "$ac_cv_header_windows_h" = "yes" ; then
35908	    cat >conftest.$ac_ext <<_ACEOF
35909/* confdefs.h.  */
35910_ACEOF
35911cat confdefs.h >>conftest.$ac_ext
35912cat >>conftest.$ac_ext <<_ACEOF
35913/* end confdefs.h.  */
35914
35915		#include <sys/types.h>
35916		#if STDC_HEADERS
35917		#include <stdlib.h>
35918		#include <stddef.h>
35919		#endif
35920		#include <windows.h>
35921
35922_ACEOF
35923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35924  $EGREP "[^a-zA-Z_0-9]int64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35925  ac_cv_type_int64=yes
35926else
35927  ac_cv_type_int64=no
35928fi
35929rm -f conftest*
35930
35931	else
35932	    cat >conftest.$ac_ext <<_ACEOF
35933/* confdefs.h.  */
35934_ACEOF
35935cat confdefs.h >>conftest.$ac_ext
35936cat >>conftest.$ac_ext <<_ACEOF
35937/* end confdefs.h.  */
35938
35939		#include <sys/types.h>
35940		#if STDC_HEADERS
35941		#include <stdlib.h>
35942		#include <stddef.h>
35943		#endif
35944
35945_ACEOF
35946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35947  $EGREP "[^a-zA-Z_0-9]int64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
35948  ac_cv_type_int64=yes
35949else
35950  ac_cv_type_int64=no
35951fi
35952rm -f conftest*
35953
35954
35955	fi
35956        if test $ac_cv_type_int64 = no; then
35957            cat >conftest.$ac_ext <<_ACEOF
35958/* confdefs.h.  */
35959_ACEOF
35960cat confdefs.h >>conftest.$ac_ext
35961cat >>conftest.$ac_ext <<_ACEOF
35962/* end confdefs.h.  */
35963
35964int
35965main ()
35966{
35967int64 foo;
35968  ;
35969  return 0;
35970}
35971_ACEOF
35972rm -f conftest.$ac_objext
35973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35974  (eval $ac_compile) 2>conftest.er1
35975  ac_status=$?
35976  grep -v '^ *+' conftest.er1 >conftest.err
35977  rm -f conftest.er1
35978  cat conftest.err >&5
35979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35980  (exit $ac_status); } &&
35981	 { ac_try='test -z "$ac_c_werror_flag"
35982			 || test ! -s conftest.err'
35983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35984  (eval $ac_try) 2>&5
35985  ac_status=$?
35986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987  (exit $ac_status); }; } &&
35988	 { ac_try='test -s conftest.$ac_objext'
35989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35990  (eval $ac_try) 2>&5
35991  ac_status=$?
35992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993  (exit $ac_status); }; }; then
35994  ac_cv_type_int64=yes
35995else
35996  echo "$as_me: failed program was:" >&5
35997sed 's/^/| /' conftest.$ac_ext >&5
35998
35999ac_cv_type_int64=no
36000fi
36001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36002        fi
36003
36004fi
36005
36006    echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
36007echo "${ECHO_T}$ac_cv_type_int64" >&6
36008    if test $ac_cv_type_int64 = no; then
36009
36010cat >>confdefs.h <<\_ACEOF
36011#define int64 long
36012_ACEOF
36013
36014    fi
36015
36016
36017        echo "$as_me:$LINENO: checking for float64" >&5
36018echo $ECHO_N "checking for float64... $ECHO_C" >&6
36019    if test "${ac_cv_type_float64+set}" = set; then
36020  echo $ECHO_N "(cached) $ECHO_C" >&6
36021else
36022
36023	 if test "$ac_cv_header_windows_h" = "yes" ; then
36024	    cat >conftest.$ac_ext <<_ACEOF
36025/* confdefs.h.  */
36026_ACEOF
36027cat confdefs.h >>conftest.$ac_ext
36028cat >>conftest.$ac_ext <<_ACEOF
36029/* end confdefs.h.  */
36030
36031		#include <sys/types.h>
36032		#if STDC_HEADERS
36033		#include <stdlib.h>
36034		#include <stddef.h>
36035		#endif
36036		#include <windows.h>
36037
36038_ACEOF
36039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36040  $EGREP "[^a-zA-Z_0-9]float64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36041  ac_cv_type_float64=yes
36042else
36043  ac_cv_type_float64=no
36044fi
36045rm -f conftest*
36046
36047	else
36048	    cat >conftest.$ac_ext <<_ACEOF
36049/* confdefs.h.  */
36050_ACEOF
36051cat confdefs.h >>conftest.$ac_ext
36052cat >>conftest.$ac_ext <<_ACEOF
36053/* end confdefs.h.  */
36054
36055		#include <sys/types.h>
36056		#if STDC_HEADERS
36057		#include <stdlib.h>
36058		#include <stddef.h>
36059		#endif
36060
36061_ACEOF
36062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36063  $EGREP "[^a-zA-Z_0-9]float64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36064  ac_cv_type_float64=yes
36065else
36066  ac_cv_type_float64=no
36067fi
36068rm -f conftest*
36069
36070
36071	fi
36072        if test $ac_cv_type_float64 = no; then
36073            cat >conftest.$ac_ext <<_ACEOF
36074/* confdefs.h.  */
36075_ACEOF
36076cat confdefs.h >>conftest.$ac_ext
36077cat >>conftest.$ac_ext <<_ACEOF
36078/* end confdefs.h.  */
36079
36080int
36081main ()
36082{
36083float64 foo;
36084  ;
36085  return 0;
36086}
36087_ACEOF
36088rm -f conftest.$ac_objext
36089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36090  (eval $ac_compile) 2>conftest.er1
36091  ac_status=$?
36092  grep -v '^ *+' conftest.er1 >conftest.err
36093  rm -f conftest.er1
36094  cat conftest.err >&5
36095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096  (exit $ac_status); } &&
36097	 { ac_try='test -z "$ac_c_werror_flag"
36098			 || test ! -s conftest.err'
36099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36100  (eval $ac_try) 2>&5
36101  ac_status=$?
36102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103  (exit $ac_status); }; } &&
36104	 { ac_try='test -s conftest.$ac_objext'
36105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36106  (eval $ac_try) 2>&5
36107  ac_status=$?
36108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109  (exit $ac_status); }; }; then
36110  ac_cv_type_float64=yes
36111else
36112  echo "$as_me: failed program was:" >&5
36113sed 's/^/| /' conftest.$ac_ext >&5
36114
36115ac_cv_type_float64=no
36116fi
36117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36118        fi
36119
36120fi
36121
36122    echo "$as_me:$LINENO: result: $ac_cv_type_float64" >&5
36123echo "${ECHO_T}$ac_cv_type_float64" >&6
36124    if test $ac_cv_type_float64 = no; then
36125
36126cat >>confdefs.h <<\_ACEOF
36127#define float64 double
36128_ACEOF
36129
36130    fi
36131
36132
36133        echo "$as_me:$LINENO: checking for uint64" >&5
36134echo $ECHO_N "checking for uint64... $ECHO_C" >&6
36135    if test "${ac_cv_type_uint64+set}" = set; then
36136  echo $ECHO_N "(cached) $ECHO_C" >&6
36137else
36138
36139	 if test "$ac_cv_header_windows_h" = "yes" ; then
36140	    cat >conftest.$ac_ext <<_ACEOF
36141/* confdefs.h.  */
36142_ACEOF
36143cat confdefs.h >>conftest.$ac_ext
36144cat >>conftest.$ac_ext <<_ACEOF
36145/* end confdefs.h.  */
36146
36147		#include <sys/types.h>
36148		#if STDC_HEADERS
36149		#include <stdlib.h>
36150		#include <stddef.h>
36151		#endif
36152		#include <windows.h>
36153
36154_ACEOF
36155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36156  $EGREP "[^a-zA-Z_0-9]uint64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36157  ac_cv_type_uint64=yes
36158else
36159  ac_cv_type_uint64=no
36160fi
36161rm -f conftest*
36162
36163	else
36164	    cat >conftest.$ac_ext <<_ACEOF
36165/* confdefs.h.  */
36166_ACEOF
36167cat confdefs.h >>conftest.$ac_ext
36168cat >>conftest.$ac_ext <<_ACEOF
36169/* end confdefs.h.  */
36170
36171		#include <sys/types.h>
36172		#if STDC_HEADERS
36173		#include <stdlib.h>
36174		#include <stddef.h>
36175		#endif
36176
36177_ACEOF
36178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36179  $EGREP "[^a-zA-Z_0-9]uint64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36180  ac_cv_type_uint64=yes
36181else
36182  ac_cv_type_uint64=no
36183fi
36184rm -f conftest*
36185
36186
36187	fi
36188        if test $ac_cv_type_uint64 = no; then
36189            cat >conftest.$ac_ext <<_ACEOF
36190/* confdefs.h.  */
36191_ACEOF
36192cat confdefs.h >>conftest.$ac_ext
36193cat >>conftest.$ac_ext <<_ACEOF
36194/* end confdefs.h.  */
36195
36196int
36197main ()
36198{
36199uint64 foo;
36200  ;
36201  return 0;
36202}
36203_ACEOF
36204rm -f conftest.$ac_objext
36205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36206  (eval $ac_compile) 2>conftest.er1
36207  ac_status=$?
36208  grep -v '^ *+' conftest.er1 >conftest.err
36209  rm -f conftest.er1
36210  cat conftest.err >&5
36211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212  (exit $ac_status); } &&
36213	 { ac_try='test -z "$ac_c_werror_flag"
36214			 || test ! -s conftest.err'
36215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36216  (eval $ac_try) 2>&5
36217  ac_status=$?
36218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219  (exit $ac_status); }; } &&
36220	 { ac_try='test -s conftest.$ac_objext'
36221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36222  (eval $ac_try) 2>&5
36223  ac_status=$?
36224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36225  (exit $ac_status); }; }; then
36226  ac_cv_type_uint64=yes
36227else
36228  echo "$as_me: failed program was:" >&5
36229sed 's/^/| /' conftest.$ac_ext >&5
36230
36231ac_cv_type_uint64=no
36232fi
36233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36234        fi
36235
36236fi
36237
36238    echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
36239echo "${ECHO_T}$ac_cv_type_uint64" >&6
36240    if test $ac_cv_type_uint64 = no; then
36241
36242cat >>confdefs.h <<\_ACEOF
36243#define uint64 unsigned long
36244_ACEOF
36245
36246    fi
36247
36248
36249if test "$ARCH" != "intelnt" ; then
36250
36251        echo "$as_me:$LINENO: checking for __int64" >&5
36252echo $ECHO_N "checking for __int64... $ECHO_C" >&6
36253    if test "${ac_cv_type___int64+set}" = set; then
36254  echo $ECHO_N "(cached) $ECHO_C" >&6
36255else
36256
36257	 if test "$ac_cv_header_windows_h" = "yes" ; then
36258	    cat >conftest.$ac_ext <<_ACEOF
36259/* confdefs.h.  */
36260_ACEOF
36261cat confdefs.h >>conftest.$ac_ext
36262cat >>conftest.$ac_ext <<_ACEOF
36263/* end confdefs.h.  */
36264
36265		#include <sys/types.h>
36266		#if STDC_HEADERS
36267		#include <stdlib.h>
36268		#include <stddef.h>
36269		#endif
36270		#include <windows.h>
36271
36272_ACEOF
36273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36274  $EGREP "[^a-zA-Z_0-9]__int64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36275  ac_cv_type___int64=yes
36276else
36277  ac_cv_type___int64=no
36278fi
36279rm -f conftest*
36280
36281	else
36282	    cat >conftest.$ac_ext <<_ACEOF
36283/* confdefs.h.  */
36284_ACEOF
36285cat confdefs.h >>conftest.$ac_ext
36286cat >>conftest.$ac_ext <<_ACEOF
36287/* end confdefs.h.  */
36288
36289		#include <sys/types.h>
36290		#if STDC_HEADERS
36291		#include <stdlib.h>
36292		#include <stddef.h>
36293		#endif
36294
36295_ACEOF
36296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36297  $EGREP "[^a-zA-Z_0-9]__int64[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36298  ac_cv_type___int64=yes
36299else
36300  ac_cv_type___int64=no
36301fi
36302rm -f conftest*
36303
36304
36305	fi
36306        if test $ac_cv_type___int64 = no; then
36307            cat >conftest.$ac_ext <<_ACEOF
36308/* confdefs.h.  */
36309_ACEOF
36310cat confdefs.h >>conftest.$ac_ext
36311cat >>conftest.$ac_ext <<_ACEOF
36312/* end confdefs.h.  */
36313
36314int
36315main ()
36316{
36317__int64 foo;
36318  ;
36319  return 0;
36320}
36321_ACEOF
36322rm -f conftest.$ac_objext
36323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36324  (eval $ac_compile) 2>conftest.er1
36325  ac_status=$?
36326  grep -v '^ *+' conftest.er1 >conftest.err
36327  rm -f conftest.er1
36328  cat conftest.err >&5
36329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330  (exit $ac_status); } &&
36331	 { ac_try='test -z "$ac_c_werror_flag"
36332			 || test ! -s conftest.err'
36333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36334  (eval $ac_try) 2>&5
36335  ac_status=$?
36336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36337  (exit $ac_status); }; } &&
36338	 { ac_try='test -s conftest.$ac_objext'
36339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36340  (eval $ac_try) 2>&5
36341  ac_status=$?
36342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343  (exit $ac_status); }; }; then
36344  ac_cv_type___int64=yes
36345else
36346  echo "$as_me: failed program was:" >&5
36347sed 's/^/| /' conftest.$ac_ext >&5
36348
36349ac_cv_type___int64=no
36350fi
36351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36352        fi
36353
36354fi
36355
36356    echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
36357echo "${ECHO_T}$ac_cv_type___int64" >&6
36358    if test $ac_cv_type___int64 = no; then
36359
36360cat >>confdefs.h <<\_ACEOF
36361#define __int64 long long
36362_ACEOF
36363
36364    fi
36365
36366
36367        echo "$as_me:$LINENO: checking for float32" >&5
36368echo $ECHO_N "checking for float32... $ECHO_C" >&6
36369    if test "${ac_cv_type_float32+set}" = set; then
36370  echo $ECHO_N "(cached) $ECHO_C" >&6
36371else
36372
36373	 if test "$ac_cv_header_windows_h" = "yes" ; then
36374	    cat >conftest.$ac_ext <<_ACEOF
36375/* confdefs.h.  */
36376_ACEOF
36377cat confdefs.h >>conftest.$ac_ext
36378cat >>conftest.$ac_ext <<_ACEOF
36379/* end confdefs.h.  */
36380
36381		#include <sys/types.h>
36382		#if STDC_HEADERS
36383		#include <stdlib.h>
36384		#include <stddef.h>
36385		#endif
36386		#include <windows.h>
36387
36388_ACEOF
36389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36390  $EGREP "[^a-zA-Z_0-9]float32[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36391  ac_cv_type_float32=yes
36392else
36393  ac_cv_type_float32=no
36394fi
36395rm -f conftest*
36396
36397	else
36398	    cat >conftest.$ac_ext <<_ACEOF
36399/* confdefs.h.  */
36400_ACEOF
36401cat confdefs.h >>conftest.$ac_ext
36402cat >>conftest.$ac_ext <<_ACEOF
36403/* end confdefs.h.  */
36404
36405		#include <sys/types.h>
36406		#if STDC_HEADERS
36407		#include <stdlib.h>
36408		#include <stddef.h>
36409		#endif
36410
36411_ACEOF
36412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36413  $EGREP "[^a-zA-Z_0-9]float32[^a-zA-Z_0-9]" >/dev/null 2>&1; then
36414  ac_cv_type_float32=yes
36415else
36416  ac_cv_type_float32=no
36417fi
36418rm -f conftest*
36419
36420
36421	fi
36422        if test $ac_cv_type_float32 = no; then
36423            cat >conftest.$ac_ext <<_ACEOF
36424/* confdefs.h.  */
36425_ACEOF
36426cat confdefs.h >>conftest.$ac_ext
36427cat >>conftest.$ac_ext <<_ACEOF
36428/* end confdefs.h.  */
36429
36430int
36431main ()
36432{
36433float32 foo;
36434  ;
36435  return 0;
36436}
36437_ACEOF
36438rm -f conftest.$ac_objext
36439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36440  (eval $ac_compile) 2>conftest.er1
36441  ac_status=$?
36442  grep -v '^ *+' conftest.er1 >conftest.err
36443  rm -f conftest.er1
36444  cat conftest.err >&5
36445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446  (exit $ac_status); } &&
36447	 { ac_try='test -z "$ac_c_werror_flag"
36448			 || test ! -s conftest.err'
36449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36450  (eval $ac_try) 2>&5
36451  ac_status=$?
36452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453  (exit $ac_status); }; } &&
36454	 { ac_try='test -s conftest.$ac_objext'
36455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36456  (eval $ac_try) 2>&5
36457  ac_status=$?
36458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459  (exit $ac_status); }; }; then
36460  ac_cv_type_float32=yes
36461else
36462  echo "$as_me: failed program was:" >&5
36463sed 's/^/| /' conftest.$ac_ext >&5
36464
36465ac_cv_type_float32=no
36466fi
36467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36468        fi
36469
36470fi
36471
36472    echo "$as_me:$LINENO: result: $ac_cv_type_float32" >&5
36473echo "${ECHO_T}$ac_cv_type_float32" >&6
36474    if test $ac_cv_type_float32 = no; then
36475
36476cat >>confdefs.h <<\_ACEOF
36477#define float32 float
36478_ACEOF
36479
36480    fi
36481
36482fi
36483
36484echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
36485echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
36486if test "${ac_cv_c_bigendian+set}" = set; then
36487  echo $ECHO_N "(cached) $ECHO_C" >&6
36488else
36489  # See if sys/param.h defines the BYTE_ORDER macro.
36490cat >conftest.$ac_ext <<_ACEOF
36491/* confdefs.h.  */
36492_ACEOF
36493cat confdefs.h >>conftest.$ac_ext
36494cat >>conftest.$ac_ext <<_ACEOF
36495/* end confdefs.h.  */
36496#include <sys/types.h>
36497#include <sys/param.h>
36498
36499int
36500main ()
36501{
36502#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
36503 bogus endian macros
36504#endif
36505
36506  ;
36507  return 0;
36508}
36509_ACEOF
36510rm -f conftest.$ac_objext
36511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36512  (eval $ac_compile) 2>conftest.er1
36513  ac_status=$?
36514  grep -v '^ *+' conftest.er1 >conftest.err
36515  rm -f conftest.er1
36516  cat conftest.err >&5
36517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518  (exit $ac_status); } &&
36519	 { ac_try='test -z "$ac_c_werror_flag"
36520			 || test ! -s conftest.err'
36521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36522  (eval $ac_try) 2>&5
36523  ac_status=$?
36524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525  (exit $ac_status); }; } &&
36526	 { ac_try='test -s conftest.$ac_objext'
36527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36528  (eval $ac_try) 2>&5
36529  ac_status=$?
36530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531  (exit $ac_status); }; }; then
36532  # It does; now see whether it defined to BIG_ENDIAN or not.
36533cat >conftest.$ac_ext <<_ACEOF
36534/* confdefs.h.  */
36535_ACEOF
36536cat confdefs.h >>conftest.$ac_ext
36537cat >>conftest.$ac_ext <<_ACEOF
36538/* end confdefs.h.  */
36539#include <sys/types.h>
36540#include <sys/param.h>
36541
36542int
36543main ()
36544{
36545#if BYTE_ORDER != BIG_ENDIAN
36546 not big endian
36547#endif
36548
36549  ;
36550  return 0;
36551}
36552_ACEOF
36553rm -f conftest.$ac_objext
36554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36555  (eval $ac_compile) 2>conftest.er1
36556  ac_status=$?
36557  grep -v '^ *+' conftest.er1 >conftest.err
36558  rm -f conftest.er1
36559  cat conftest.err >&5
36560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561  (exit $ac_status); } &&
36562	 { ac_try='test -z "$ac_c_werror_flag"
36563			 || test ! -s conftest.err'
36564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36565  (eval $ac_try) 2>&5
36566  ac_status=$?
36567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568  (exit $ac_status); }; } &&
36569	 { ac_try='test -s conftest.$ac_objext'
36570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36571  (eval $ac_try) 2>&5
36572  ac_status=$?
36573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574  (exit $ac_status); }; }; then
36575  ac_cv_c_bigendian=yes
36576else
36577  echo "$as_me: failed program was:" >&5
36578sed 's/^/| /' conftest.$ac_ext >&5
36579
36580ac_cv_c_bigendian=no
36581fi
36582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36583else
36584  echo "$as_me: failed program was:" >&5
36585sed 's/^/| /' conftest.$ac_ext >&5
36586
36587# It does not; compile a test program.
36588if test "$cross_compiling" = yes; then
36589  # try to guess the endianness by grepping values into an object file
36590  ac_cv_c_bigendian=unknown
36591  cat >conftest.$ac_ext <<_ACEOF
36592/* confdefs.h.  */
36593_ACEOF
36594cat confdefs.h >>conftest.$ac_ext
36595cat >>conftest.$ac_ext <<_ACEOF
36596/* end confdefs.h.  */
36597short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
36598short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
36599void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
36600short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
36601short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
36602void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
36603int
36604main ()
36605{
36606 _ascii (); _ebcdic ();
36607  ;
36608  return 0;
36609}
36610_ACEOF
36611rm -f conftest.$ac_objext
36612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36613  (eval $ac_compile) 2>conftest.er1
36614  ac_status=$?
36615  grep -v '^ *+' conftest.er1 >conftest.err
36616  rm -f conftest.er1
36617  cat conftest.err >&5
36618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619  (exit $ac_status); } &&
36620	 { ac_try='test -z "$ac_c_werror_flag"
36621			 || test ! -s conftest.err'
36622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623  (eval $ac_try) 2>&5
36624  ac_status=$?
36625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626  (exit $ac_status); }; } &&
36627	 { ac_try='test -s conftest.$ac_objext'
36628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36629  (eval $ac_try) 2>&5
36630  ac_status=$?
36631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632  (exit $ac_status); }; }; then
36633  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
36634  ac_cv_c_bigendian=yes
36635fi
36636if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
36637  if test "$ac_cv_c_bigendian" = unknown; then
36638    ac_cv_c_bigendian=no
36639  else
36640    # finding both strings is unlikely to happen, but who knows?
36641    ac_cv_c_bigendian=unknown
36642  fi
36643fi
36644else
36645  echo "$as_me: failed program was:" >&5
36646sed 's/^/| /' conftest.$ac_ext >&5
36647
36648fi
36649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36650else
36651  cat >conftest.$ac_ext <<_ACEOF
36652/* confdefs.h.  */
36653_ACEOF
36654cat confdefs.h >>conftest.$ac_ext
36655cat >>conftest.$ac_ext <<_ACEOF
36656/* end confdefs.h.  */
36657int
36658main ()
36659{
36660  /* Are we little or big endian?  From Harbison&Steele.  */
36661  union
36662  {
36663    long l;
36664    char c[sizeof (long)];
36665  } u;
36666  u.l = 1;
36667  exit (u.c[sizeof (long) - 1] == 1);
36668}
36669_ACEOF
36670rm -f conftest$ac_exeext
36671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36672  (eval $ac_link) 2>&5
36673  ac_status=$?
36674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36677  (eval $ac_try) 2>&5
36678  ac_status=$?
36679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680  (exit $ac_status); }; }; then
36681  ac_cv_c_bigendian=no
36682else
36683  echo "$as_me: program exited with status $ac_status" >&5
36684echo "$as_me: failed program was:" >&5
36685sed 's/^/| /' conftest.$ac_ext >&5
36686
36687( exit $ac_status )
36688ac_cv_c_bigendian=yes
36689fi
36690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36691fi
36692fi
36693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36694fi
36695echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
36696echo "${ECHO_T}$ac_cv_c_bigendian" >&6
36697case $ac_cv_c_bigendian in
36698  yes)
36699
36700cat >>confdefs.h <<\_ACEOF
36701#define WORDS_BIGENDIAN 1
36702_ACEOF
36703 ;;
36704  no)
36705     ;;
36706  *)
36707    { { echo "$as_me:$LINENO: error: unknown endianness
36708presetting ac_cv_c_bigendian=no (or yes) will help" >&5
36709echo "$as_me: error: unknown endianness
36710presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
36711   { (exit 1); exit 1; }; } ;;
36712esac
36713
36714
36715ac_ext=cc
36716ac_cpp='$CXXCPP $CPPFLAGS'
36717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36720
36721
36722echo "$as_me:$LINENO: checking for signal argument list in C++" >&5
36723echo $ECHO_N "checking for signal argument list in C++... $ECHO_C" >&6
36724cat >conftest.$ac_ext <<_ACEOF
36725/* confdefs.h.  */
36726_ACEOF
36727cat confdefs.h >>conftest.$ac_ext
36728cat >>conftest.$ac_ext <<_ACEOF
36729/* end confdefs.h.  */
36730
36731#include <signal.h>
36732extern "C" void foo(int bar, ...){}
36733
36734int
36735main ()
36736{
36737
36738signal(SIGBUS, foo);
36739
36740  ;
36741  return 0;
36742}
36743_ACEOF
36744rm -f conftest.$ac_objext conftest$ac_exeext
36745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36746  (eval $ac_link) 2>conftest.er1
36747  ac_status=$?
36748  grep -v '^ *+' conftest.er1 >conftest.err
36749  rm -f conftest.er1
36750  cat conftest.err >&5
36751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752  (exit $ac_status); } &&
36753	 { ac_try='test -z "$ac_cxx_werror_flag"
36754			 || test ! -s conftest.err'
36755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36756  (eval $ac_try) 2>&5
36757  ac_status=$?
36758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759  (exit $ac_status); }; } &&
36760	 { ac_try='test -s conftest$ac_exeext'
36761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762  (eval $ac_try) 2>&5
36763  ac_status=$?
36764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765  (exit $ac_status); }; }; then
36766
36767echo "$as_me:$LINENO: result: alternate" >&5
36768echo "${ECHO_T}alternate" >&6
36769
36770cat >>confdefs.h <<_ACEOF
36771#define ALTERNATE_CXX_SIGNAL 1
36772_ACEOF
36773
36774
36775else
36776  echo "$as_me: failed program was:" >&5
36777sed 's/^/| /' conftest.$ac_ext >&5
36778
36779
36780echo "$as_me:$LINENO: result: standard" >&5
36781echo "${ECHO_T}standard" >&6
36782
36783fi
36784rm -f conftest.err conftest.$ac_objext \
36785      conftest$ac_exeext conftest.$ac_ext
36786
36787ac_ext=c
36788ac_cpp='$CPP $CPPFLAGS'
36789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36791ac_compiler_gnu=$ac_cv_c_compiler_gnu
36792
36793
36794
36795ac_ext=cc
36796ac_cpp='$CXXCPP $CPPFLAGS'
36797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36800
36801select_argtype=
36802cat > selectHdrs.h << EOF
36803EOF
36804if test "${ac_cv_header_windows_h+set}" = set; then
36805  echo "$as_me:$LINENO: checking for windows.h" >&5
36806echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
36807if test "${ac_cv_header_windows_h+set}" = set; then
36808  echo $ECHO_N "(cached) $ECHO_C" >&6
36809fi
36810echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
36811echo "${ECHO_T}$ac_cv_header_windows_h" >&6
36812else
36813  # Is the header compilable?
36814echo "$as_me:$LINENO: checking windows.h usability" >&5
36815echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
36816cat >conftest.$ac_ext <<_ACEOF
36817/* confdefs.h.  */
36818_ACEOF
36819cat confdefs.h >>conftest.$ac_ext
36820cat >>conftest.$ac_ext <<_ACEOF
36821/* end confdefs.h.  */
36822$ac_includes_default
36823#include <windows.h>
36824_ACEOF
36825rm -f conftest.$ac_objext
36826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36827  (eval $ac_compile) 2>conftest.er1
36828  ac_status=$?
36829  grep -v '^ *+' conftest.er1 >conftest.err
36830  rm -f conftest.er1
36831  cat conftest.err >&5
36832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833  (exit $ac_status); } &&
36834	 { ac_try='test -z "$ac_cxx_werror_flag"
36835			 || test ! -s conftest.err'
36836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36837  (eval $ac_try) 2>&5
36838  ac_status=$?
36839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840  (exit $ac_status); }; } &&
36841	 { ac_try='test -s conftest.$ac_objext'
36842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36843  (eval $ac_try) 2>&5
36844  ac_status=$?
36845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846  (exit $ac_status); }; }; then
36847  ac_header_compiler=yes
36848else
36849  echo "$as_me: failed program was:" >&5
36850sed 's/^/| /' conftest.$ac_ext >&5
36851
36852ac_header_compiler=no
36853fi
36854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36856echo "${ECHO_T}$ac_header_compiler" >&6
36857
36858# Is the header present?
36859echo "$as_me:$LINENO: checking windows.h presence" >&5
36860echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
36861cat >conftest.$ac_ext <<_ACEOF
36862/* confdefs.h.  */
36863_ACEOF
36864cat confdefs.h >>conftest.$ac_ext
36865cat >>conftest.$ac_ext <<_ACEOF
36866/* end confdefs.h.  */
36867#include <windows.h>
36868_ACEOF
36869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36871  ac_status=$?
36872  grep -v '^ *+' conftest.er1 >conftest.err
36873  rm -f conftest.er1
36874  cat conftest.err >&5
36875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876  (exit $ac_status); } >/dev/null; then
36877  if test -s conftest.err; then
36878    ac_cpp_err=$ac_cxx_preproc_warn_flag
36879    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
36880  else
36881    ac_cpp_err=
36882  fi
36883else
36884  ac_cpp_err=yes
36885fi
36886if test -z "$ac_cpp_err"; then
36887  ac_header_preproc=yes
36888else
36889  echo "$as_me: failed program was:" >&5
36890sed 's/^/| /' conftest.$ac_ext >&5
36891
36892  ac_header_preproc=no
36893fi
36894rm -f conftest.err conftest.$ac_ext
36895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36896echo "${ECHO_T}$ac_header_preproc" >&6
36897
36898# So?  What about this header?
36899case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
36900  yes:no: )
36901    { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
36902echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36903    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
36904echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
36905    ac_header_preproc=yes
36906    ;;
36907  no:yes:* )
36908    { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
36909echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
36910    { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
36911echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
36912    { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
36913echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
36914    { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
36915echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
36916    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
36917echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
36918    { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
36919echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
36920    (
36921      cat <<\_ASBOX
36922## ----------------------------- ##
36923## Report this to the dx lists.  ##
36924## ----------------------------- ##
36925_ASBOX
36926    ) |
36927      sed "s/^/$as_me: WARNING:     /" >&2
36928    ;;
36929esac
36930echo "$as_me:$LINENO: checking for windows.h" >&5
36931echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
36932if test "${ac_cv_header_windows_h+set}" = set; then
36933  echo $ECHO_N "(cached) $ECHO_C" >&6
36934else
36935  ac_cv_header_windows_h=$ac_header_preproc
36936fi
36937echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
36938echo "${ECHO_T}$ac_cv_header_windows_h" >&6
36939
36940fi
36941if test $ac_cv_header_windows_h = yes; then
36942   echo "#include <windows.h>" >> selectHdrs.h
36943fi
36944
36945
36946if test "${ac_cv_header_unistd_h+set}" = set; then
36947  echo "$as_me:$LINENO: checking for unistd.h" >&5
36948echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
36949if test "${ac_cv_header_unistd_h+set}" = set; then
36950  echo $ECHO_N "(cached) $ECHO_C" >&6
36951fi
36952echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
36953echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
36954else
36955  # Is the header compilable?
36956echo "$as_me:$LINENO: checking unistd.h usability" >&5
36957echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
36958cat >conftest.$ac_ext <<_ACEOF
36959/* confdefs.h.  */
36960_ACEOF
36961cat confdefs.h >>conftest.$ac_ext
36962cat >>conftest.$ac_ext <<_ACEOF
36963/* end confdefs.h.  */
36964$ac_includes_default
36965#include <unistd.h>
36966_ACEOF
36967rm -f conftest.$ac_objext
36968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36969  (eval $ac_compile) 2>conftest.er1
36970  ac_status=$?
36971  grep -v '^ *+' conftest.er1 >conftest.err
36972  rm -f conftest.er1
36973  cat conftest.err >&5
36974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975  (exit $ac_status); } &&
36976	 { ac_try='test -z "$ac_cxx_werror_flag"
36977			 || test ! -s conftest.err'
36978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36979  (eval $ac_try) 2>&5
36980  ac_status=$?
36981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982  (exit $ac_status); }; } &&
36983	 { ac_try='test -s conftest.$ac_objext'
36984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36985  (eval $ac_try) 2>&5
36986  ac_status=$?
36987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988  (exit $ac_status); }; }; then
36989  ac_header_compiler=yes
36990else
36991  echo "$as_me: failed program was:" >&5
36992sed 's/^/| /' conftest.$ac_ext >&5
36993
36994ac_header_compiler=no
36995fi
36996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36998echo "${ECHO_T}$ac_header_compiler" >&6
36999
37000# Is the header present?
37001echo "$as_me:$LINENO: checking unistd.h presence" >&5
37002echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
37003cat >conftest.$ac_ext <<_ACEOF
37004/* confdefs.h.  */
37005_ACEOF
37006cat confdefs.h >>conftest.$ac_ext
37007cat >>conftest.$ac_ext <<_ACEOF
37008/* end confdefs.h.  */
37009#include <unistd.h>
37010_ACEOF
37011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37013  ac_status=$?
37014  grep -v '^ *+' conftest.er1 >conftest.err
37015  rm -f conftest.er1
37016  cat conftest.err >&5
37017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018  (exit $ac_status); } >/dev/null; then
37019  if test -s conftest.err; then
37020    ac_cpp_err=$ac_cxx_preproc_warn_flag
37021    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37022  else
37023    ac_cpp_err=
37024  fi
37025else
37026  ac_cpp_err=yes
37027fi
37028if test -z "$ac_cpp_err"; then
37029  ac_header_preproc=yes
37030else
37031  echo "$as_me: failed program was:" >&5
37032sed 's/^/| /' conftest.$ac_ext >&5
37033
37034  ac_header_preproc=no
37035fi
37036rm -f conftest.err conftest.$ac_ext
37037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37038echo "${ECHO_T}$ac_header_preproc" >&6
37039
37040# So?  What about this header?
37041case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37042  yes:no: )
37043    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
37044echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37045    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
37046echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
37047    ac_header_preproc=yes
37048    ;;
37049  no:yes:* )
37050    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
37051echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
37052    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
37053echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
37054    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
37055echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
37056    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
37057echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37058    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
37059echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
37060    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
37061echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
37062    (
37063      cat <<\_ASBOX
37064## ----------------------------- ##
37065## Report this to the dx lists.  ##
37066## ----------------------------- ##
37067_ASBOX
37068    ) |
37069      sed "s/^/$as_me: WARNING:     /" >&2
37070    ;;
37071esac
37072echo "$as_me:$LINENO: checking for unistd.h" >&5
37073echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
37074if test "${ac_cv_header_unistd_h+set}" = set; then
37075  echo $ECHO_N "(cached) $ECHO_C" >&6
37076else
37077  ac_cv_header_unistd_h=$ac_header_preproc
37078fi
37079echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
37080echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
37081
37082fi
37083if test $ac_cv_header_unistd_h = yes; then
37084   echo "#include <unistd.h>" >> selectHdrs.h
37085fi
37086
37087
37088if test "${ac_cv_header_sys_types_h+set}" = set; then
37089  echo "$as_me:$LINENO: checking for sys/types.h" >&5
37090echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
37091if test "${ac_cv_header_sys_types_h+set}" = set; then
37092  echo $ECHO_N "(cached) $ECHO_C" >&6
37093fi
37094echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
37095echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
37096else
37097  # Is the header compilable?
37098echo "$as_me:$LINENO: checking sys/types.h usability" >&5
37099echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
37100cat >conftest.$ac_ext <<_ACEOF
37101/* confdefs.h.  */
37102_ACEOF
37103cat confdefs.h >>conftest.$ac_ext
37104cat >>conftest.$ac_ext <<_ACEOF
37105/* end confdefs.h.  */
37106$ac_includes_default
37107#include <sys/types.h>
37108_ACEOF
37109rm -f conftest.$ac_objext
37110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37111  (eval $ac_compile) 2>conftest.er1
37112  ac_status=$?
37113  grep -v '^ *+' conftest.er1 >conftest.err
37114  rm -f conftest.er1
37115  cat conftest.err >&5
37116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117  (exit $ac_status); } &&
37118	 { ac_try='test -z "$ac_cxx_werror_flag"
37119			 || test ! -s conftest.err'
37120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37121  (eval $ac_try) 2>&5
37122  ac_status=$?
37123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124  (exit $ac_status); }; } &&
37125	 { ac_try='test -s conftest.$ac_objext'
37126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37127  (eval $ac_try) 2>&5
37128  ac_status=$?
37129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130  (exit $ac_status); }; }; then
37131  ac_header_compiler=yes
37132else
37133  echo "$as_me: failed program was:" >&5
37134sed 's/^/| /' conftest.$ac_ext >&5
37135
37136ac_header_compiler=no
37137fi
37138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37140echo "${ECHO_T}$ac_header_compiler" >&6
37141
37142# Is the header present?
37143echo "$as_me:$LINENO: checking sys/types.h presence" >&5
37144echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
37145cat >conftest.$ac_ext <<_ACEOF
37146/* confdefs.h.  */
37147_ACEOF
37148cat confdefs.h >>conftest.$ac_ext
37149cat >>conftest.$ac_ext <<_ACEOF
37150/* end confdefs.h.  */
37151#include <sys/types.h>
37152_ACEOF
37153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37155  ac_status=$?
37156  grep -v '^ *+' conftest.er1 >conftest.err
37157  rm -f conftest.er1
37158  cat conftest.err >&5
37159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37160  (exit $ac_status); } >/dev/null; then
37161  if test -s conftest.err; then
37162    ac_cpp_err=$ac_cxx_preproc_warn_flag
37163    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37164  else
37165    ac_cpp_err=
37166  fi
37167else
37168  ac_cpp_err=yes
37169fi
37170if test -z "$ac_cpp_err"; then
37171  ac_header_preproc=yes
37172else
37173  echo "$as_me: failed program was:" >&5
37174sed 's/^/| /' conftest.$ac_ext >&5
37175
37176  ac_header_preproc=no
37177fi
37178rm -f conftest.err conftest.$ac_ext
37179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37180echo "${ECHO_T}$ac_header_preproc" >&6
37181
37182# So?  What about this header?
37183case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37184  yes:no: )
37185    { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
37186echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37187    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
37188echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
37189    ac_header_preproc=yes
37190    ;;
37191  no:yes:* )
37192    { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
37193echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
37194    { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
37195echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
37196    { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
37197echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
37198    { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
37199echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37200    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
37201echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
37202    { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
37203echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
37204    (
37205      cat <<\_ASBOX
37206## ----------------------------- ##
37207## Report this to the dx lists.  ##
37208## ----------------------------- ##
37209_ASBOX
37210    ) |
37211      sed "s/^/$as_me: WARNING:     /" >&2
37212    ;;
37213esac
37214echo "$as_me:$LINENO: checking for sys/types.h" >&5
37215echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
37216if test "${ac_cv_header_sys_types_h+set}" = set; then
37217  echo $ECHO_N "(cached) $ECHO_C" >&6
37218else
37219  ac_cv_header_sys_types_h=$ac_header_preproc
37220fi
37221echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
37222echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
37223
37224fi
37225if test $ac_cv_header_sys_types_h = yes; then
37226   echo "#include <sys/types.h>" >> selectHdrs.h
37227fi
37228
37229
37230if test "${ac_cv_header_select_h+set}" = set; then
37231  echo "$as_me:$LINENO: checking for select.h" >&5
37232echo $ECHO_N "checking for select.h... $ECHO_C" >&6
37233if test "${ac_cv_header_select_h+set}" = set; then
37234  echo $ECHO_N "(cached) $ECHO_C" >&6
37235fi
37236echo "$as_me:$LINENO: result: $ac_cv_header_select_h" >&5
37237echo "${ECHO_T}$ac_cv_header_select_h" >&6
37238else
37239  # Is the header compilable?
37240echo "$as_me:$LINENO: checking select.h usability" >&5
37241echo $ECHO_N "checking select.h usability... $ECHO_C" >&6
37242cat >conftest.$ac_ext <<_ACEOF
37243/* confdefs.h.  */
37244_ACEOF
37245cat confdefs.h >>conftest.$ac_ext
37246cat >>conftest.$ac_ext <<_ACEOF
37247/* end confdefs.h.  */
37248$ac_includes_default
37249#include <select.h>
37250_ACEOF
37251rm -f conftest.$ac_objext
37252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37253  (eval $ac_compile) 2>conftest.er1
37254  ac_status=$?
37255  grep -v '^ *+' conftest.er1 >conftest.err
37256  rm -f conftest.er1
37257  cat conftest.err >&5
37258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259  (exit $ac_status); } &&
37260	 { ac_try='test -z "$ac_cxx_werror_flag"
37261			 || test ! -s conftest.err'
37262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37263  (eval $ac_try) 2>&5
37264  ac_status=$?
37265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266  (exit $ac_status); }; } &&
37267	 { ac_try='test -s conftest.$ac_objext'
37268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269  (eval $ac_try) 2>&5
37270  ac_status=$?
37271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272  (exit $ac_status); }; }; then
37273  ac_header_compiler=yes
37274else
37275  echo "$as_me: failed program was:" >&5
37276sed 's/^/| /' conftest.$ac_ext >&5
37277
37278ac_header_compiler=no
37279fi
37280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37282echo "${ECHO_T}$ac_header_compiler" >&6
37283
37284# Is the header present?
37285echo "$as_me:$LINENO: checking select.h presence" >&5
37286echo $ECHO_N "checking select.h presence... $ECHO_C" >&6
37287cat >conftest.$ac_ext <<_ACEOF
37288/* confdefs.h.  */
37289_ACEOF
37290cat confdefs.h >>conftest.$ac_ext
37291cat >>conftest.$ac_ext <<_ACEOF
37292/* end confdefs.h.  */
37293#include <select.h>
37294_ACEOF
37295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37296  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37297  ac_status=$?
37298  grep -v '^ *+' conftest.er1 >conftest.err
37299  rm -f conftest.er1
37300  cat conftest.err >&5
37301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302  (exit $ac_status); } >/dev/null; then
37303  if test -s conftest.err; then
37304    ac_cpp_err=$ac_cxx_preproc_warn_flag
37305    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37306  else
37307    ac_cpp_err=
37308  fi
37309else
37310  ac_cpp_err=yes
37311fi
37312if test -z "$ac_cpp_err"; then
37313  ac_header_preproc=yes
37314else
37315  echo "$as_me: failed program was:" >&5
37316sed 's/^/| /' conftest.$ac_ext >&5
37317
37318  ac_header_preproc=no
37319fi
37320rm -f conftest.err conftest.$ac_ext
37321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37322echo "${ECHO_T}$ac_header_preproc" >&6
37323
37324# So?  What about this header?
37325case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37326  yes:no: )
37327    { echo "$as_me:$LINENO: WARNING: select.h: accepted by the compiler, rejected by the preprocessor!" >&5
37328echo "$as_me: WARNING: select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37329    { echo "$as_me:$LINENO: WARNING: select.h: proceeding with the compiler's result" >&5
37330echo "$as_me: WARNING: select.h: proceeding with the compiler's result" >&2;}
37331    ac_header_preproc=yes
37332    ;;
37333  no:yes:* )
37334    { echo "$as_me:$LINENO: WARNING: select.h: present but cannot be compiled" >&5
37335echo "$as_me: WARNING: select.h: present but cannot be compiled" >&2;}
37336    { echo "$as_me:$LINENO: WARNING: select.h:     check for missing prerequisite headers?" >&5
37337echo "$as_me: WARNING: select.h:     check for missing prerequisite headers?" >&2;}
37338    { echo "$as_me:$LINENO: WARNING: select.h: see the Autoconf documentation" >&5
37339echo "$as_me: WARNING: select.h: see the Autoconf documentation" >&2;}
37340    { echo "$as_me:$LINENO: WARNING: select.h:     section \"Present But Cannot Be Compiled\"" >&5
37341echo "$as_me: WARNING: select.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37342    { echo "$as_me:$LINENO: WARNING: select.h: proceeding with the preprocessor's result" >&5
37343echo "$as_me: WARNING: select.h: proceeding with the preprocessor's result" >&2;}
37344    { echo "$as_me:$LINENO: WARNING: select.h: in the future, the compiler will take precedence" >&5
37345echo "$as_me: WARNING: select.h: in the future, the compiler will take precedence" >&2;}
37346    (
37347      cat <<\_ASBOX
37348## ----------------------------- ##
37349## Report this to the dx lists.  ##
37350## ----------------------------- ##
37351_ASBOX
37352    ) |
37353      sed "s/^/$as_me: WARNING:     /" >&2
37354    ;;
37355esac
37356echo "$as_me:$LINENO: checking for select.h" >&5
37357echo $ECHO_N "checking for select.h... $ECHO_C" >&6
37358if test "${ac_cv_header_select_h+set}" = set; then
37359  echo $ECHO_N "(cached) $ECHO_C" >&6
37360else
37361  ac_cv_header_select_h=$ac_header_preproc
37362fi
37363echo "$as_me:$LINENO: result: $ac_cv_header_select_h" >&5
37364echo "${ECHO_T}$ac_cv_header_select_h" >&6
37365
37366fi
37367if test $ac_cv_header_select_h = yes; then
37368   echo "#include <select.h>" >> selectHdrs.h
37369fi
37370
37371
37372if test "${ac_cv_header_sys_select_h+set}" = set; then
37373  echo "$as_me:$LINENO: checking for sys/select.h" >&5
37374echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
37375if test "${ac_cv_header_sys_select_h+set}" = set; then
37376  echo $ECHO_N "(cached) $ECHO_C" >&6
37377fi
37378echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
37379echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
37380else
37381  # Is the header compilable?
37382echo "$as_me:$LINENO: checking sys/select.h usability" >&5
37383echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
37384cat >conftest.$ac_ext <<_ACEOF
37385/* confdefs.h.  */
37386_ACEOF
37387cat confdefs.h >>conftest.$ac_ext
37388cat >>conftest.$ac_ext <<_ACEOF
37389/* end confdefs.h.  */
37390$ac_includes_default
37391#include <sys/select.h>
37392_ACEOF
37393rm -f conftest.$ac_objext
37394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37395  (eval $ac_compile) 2>conftest.er1
37396  ac_status=$?
37397  grep -v '^ *+' conftest.er1 >conftest.err
37398  rm -f conftest.er1
37399  cat conftest.err >&5
37400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401  (exit $ac_status); } &&
37402	 { ac_try='test -z "$ac_cxx_werror_flag"
37403			 || test ! -s conftest.err'
37404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37405  (eval $ac_try) 2>&5
37406  ac_status=$?
37407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408  (exit $ac_status); }; } &&
37409	 { ac_try='test -s conftest.$ac_objext'
37410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37411  (eval $ac_try) 2>&5
37412  ac_status=$?
37413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414  (exit $ac_status); }; }; then
37415  ac_header_compiler=yes
37416else
37417  echo "$as_me: failed program was:" >&5
37418sed 's/^/| /' conftest.$ac_ext >&5
37419
37420ac_header_compiler=no
37421fi
37422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37424echo "${ECHO_T}$ac_header_compiler" >&6
37425
37426# Is the header present?
37427echo "$as_me:$LINENO: checking sys/select.h presence" >&5
37428echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
37429cat >conftest.$ac_ext <<_ACEOF
37430/* confdefs.h.  */
37431_ACEOF
37432cat confdefs.h >>conftest.$ac_ext
37433cat >>conftest.$ac_ext <<_ACEOF
37434/* end confdefs.h.  */
37435#include <sys/select.h>
37436_ACEOF
37437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37438  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37439  ac_status=$?
37440  grep -v '^ *+' conftest.er1 >conftest.err
37441  rm -f conftest.er1
37442  cat conftest.err >&5
37443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444  (exit $ac_status); } >/dev/null; then
37445  if test -s conftest.err; then
37446    ac_cpp_err=$ac_cxx_preproc_warn_flag
37447    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37448  else
37449    ac_cpp_err=
37450  fi
37451else
37452  ac_cpp_err=yes
37453fi
37454if test -z "$ac_cpp_err"; then
37455  ac_header_preproc=yes
37456else
37457  echo "$as_me: failed program was:" >&5
37458sed 's/^/| /' conftest.$ac_ext >&5
37459
37460  ac_header_preproc=no
37461fi
37462rm -f conftest.err conftest.$ac_ext
37463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37464echo "${ECHO_T}$ac_header_preproc" >&6
37465
37466# So?  What about this header?
37467case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37468  yes:no: )
37469    { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
37470echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37471    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
37472echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
37473    ac_header_preproc=yes
37474    ;;
37475  no:yes:* )
37476    { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
37477echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
37478    { echo "$as_me:$LINENO: WARNING: sys/select.h:     check for missing prerequisite headers?" >&5
37479echo "$as_me: WARNING: sys/select.h:     check for missing prerequisite headers?" >&2;}
37480    { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
37481echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
37482    { echo "$as_me:$LINENO: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&5
37483echo "$as_me: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37484    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
37485echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
37486    { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
37487echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
37488    (
37489      cat <<\_ASBOX
37490## ----------------------------- ##
37491## Report this to the dx lists.  ##
37492## ----------------------------- ##
37493_ASBOX
37494    ) |
37495      sed "s/^/$as_me: WARNING:     /" >&2
37496    ;;
37497esac
37498echo "$as_me:$LINENO: checking for sys/select.h" >&5
37499echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
37500if test "${ac_cv_header_sys_select_h+set}" = set; then
37501  echo $ECHO_N "(cached) $ECHO_C" >&6
37502else
37503  ac_cv_header_sys_select_h=$ac_header_preproc
37504fi
37505echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
37506echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
37507
37508fi
37509if test $ac_cv_header_sys_select_h = yes; then
37510   echo "#include <sys/select.h>" >> selectHdrs.h
37511fi
37512
37513
37514ac_ext=c
37515ac_cpp='$CPP $CPPFLAGS'
37516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37518ac_compiler_gnu=$ac_cv_c_compiler_gnu
37519
37520for try in sellist fd_set int void
37521do
37522cat >conftest.$ac_ext <<_ACEOF
37523/* confdefs.h.  */
37524_ACEOF
37525cat confdefs.h >>conftest.$ac_ext
37526cat >>conftest.$ac_ext <<_ACEOF
37527/* end confdefs.h.  */
37528
37529#include <stdio.h>
37530#include "selectHdrs.h"
37531
37532int
37533main ()
37534{
37535
37536int i = select(1, ($try *)NULL, ($try *)NULL, ($try *)NULL, (struct timeval *)NULL)
37537
37538  ;
37539  return 0;
37540}
37541_ACEOF
37542rm -f conftest.$ac_objext conftest$ac_exeext
37543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37544  (eval $ac_link) 2>conftest.er1
37545  ac_status=$?
37546  grep -v '^ *+' conftest.er1 >conftest.err
37547  rm -f conftest.er1
37548  cat conftest.err >&5
37549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550  (exit $ac_status); } &&
37551	 { ac_try='test -z "$ac_c_werror_flag"
37552			 || test ! -s conftest.err'
37553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37554  (eval $ac_try) 2>&5
37555  ac_status=$?
37556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557  (exit $ac_status); }; } &&
37558	 { ac_try='test -s conftest$ac_exeext'
37559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560  (eval $ac_try) 2>&5
37561  ac_status=$?
37562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563  (exit $ac_status); }; }; then
37564
37565select_argtype=$try
37566
37567cat >>confdefs.h <<_ACEOF
37568#define SELECT_ARG_TYPE $try
37569_ACEOF
37570
37571
37572else
37573  echo "$as_me: failed program was:" >&5
37574sed 's/^/| /' conftest.$ac_ext >&5
37575
37576fi
37577rm -f conftest.err conftest.$ac_objext \
37578      conftest$ac_exeext conftest.$ac_ext
37579if test ! -z "$select_argtype" ; then
37580    break
37581fi
37582done
37583echo the second third and fourth args to select are pointers to $select_argtype
37584rm selectHdrs.h
37585
37586
37587ac_ext=c
37588ac_cpp='$CPP $CPPFLAGS'
37589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37591ac_compiler_gnu=$ac_cv_c_compiler_gnu
37592
37593socket_argtype=
37594cat > socketHdrs.h << EOF
37595EOF
37596if test "${ac_cv_header_unistd_h+set}" = set; then
37597  echo "$as_me:$LINENO: checking for unistd.h" >&5
37598echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
37599if test "${ac_cv_header_unistd_h+set}" = set; then
37600  echo $ECHO_N "(cached) $ECHO_C" >&6
37601fi
37602echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
37603echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
37604else
37605  # Is the header compilable?
37606echo "$as_me:$LINENO: checking unistd.h usability" >&5
37607echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
37608cat >conftest.$ac_ext <<_ACEOF
37609/* confdefs.h.  */
37610_ACEOF
37611cat confdefs.h >>conftest.$ac_ext
37612cat >>conftest.$ac_ext <<_ACEOF
37613/* end confdefs.h.  */
37614$ac_includes_default
37615#include <unistd.h>
37616_ACEOF
37617rm -f conftest.$ac_objext
37618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37619  (eval $ac_compile) 2>conftest.er1
37620  ac_status=$?
37621  grep -v '^ *+' conftest.er1 >conftest.err
37622  rm -f conftest.er1
37623  cat conftest.err >&5
37624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625  (exit $ac_status); } &&
37626	 { ac_try='test -z "$ac_c_werror_flag"
37627			 || test ! -s conftest.err'
37628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37629  (eval $ac_try) 2>&5
37630  ac_status=$?
37631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632  (exit $ac_status); }; } &&
37633	 { ac_try='test -s conftest.$ac_objext'
37634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37635  (eval $ac_try) 2>&5
37636  ac_status=$?
37637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37638  (exit $ac_status); }; }; then
37639  ac_header_compiler=yes
37640else
37641  echo "$as_me: failed program was:" >&5
37642sed 's/^/| /' conftest.$ac_ext >&5
37643
37644ac_header_compiler=no
37645fi
37646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37648echo "${ECHO_T}$ac_header_compiler" >&6
37649
37650# Is the header present?
37651echo "$as_me:$LINENO: checking unistd.h presence" >&5
37652echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
37653cat >conftest.$ac_ext <<_ACEOF
37654/* confdefs.h.  */
37655_ACEOF
37656cat confdefs.h >>conftest.$ac_ext
37657cat >>conftest.$ac_ext <<_ACEOF
37658/* end confdefs.h.  */
37659#include <unistd.h>
37660_ACEOF
37661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37662  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37663  ac_status=$?
37664  grep -v '^ *+' conftest.er1 >conftest.err
37665  rm -f conftest.er1
37666  cat conftest.err >&5
37667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668  (exit $ac_status); } >/dev/null; then
37669  if test -s conftest.err; then
37670    ac_cpp_err=$ac_c_preproc_warn_flag
37671    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37672  else
37673    ac_cpp_err=
37674  fi
37675else
37676  ac_cpp_err=yes
37677fi
37678if test -z "$ac_cpp_err"; then
37679  ac_header_preproc=yes
37680else
37681  echo "$as_me: failed program was:" >&5
37682sed 's/^/| /' conftest.$ac_ext >&5
37683
37684  ac_header_preproc=no
37685fi
37686rm -f conftest.err conftest.$ac_ext
37687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37688echo "${ECHO_T}$ac_header_preproc" >&6
37689
37690# So?  What about this header?
37691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37692  yes:no: )
37693    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
37694echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37695    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
37696echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
37697    ac_header_preproc=yes
37698    ;;
37699  no:yes:* )
37700    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
37701echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
37702    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
37703echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
37704    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
37705echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
37706    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
37707echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37708    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
37709echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
37710    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
37711echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
37712    (
37713      cat <<\_ASBOX
37714## ----------------------------- ##
37715## Report this to the dx lists.  ##
37716## ----------------------------- ##
37717_ASBOX
37718    ) |
37719      sed "s/^/$as_me: WARNING:     /" >&2
37720    ;;
37721esac
37722echo "$as_me:$LINENO: checking for unistd.h" >&5
37723echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
37724if test "${ac_cv_header_unistd_h+set}" = set; then
37725  echo $ECHO_N "(cached) $ECHO_C" >&6
37726else
37727  ac_cv_header_unistd_h=$ac_header_preproc
37728fi
37729echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
37730echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
37731
37732fi
37733if test $ac_cv_header_unistd_h = yes; then
37734   echo "#include <unistd.h>" >> socketHdrs.h
37735fi
37736
37737
37738if test "${ac_cv_header_sys_types_h+set}" = set; then
37739  echo "$as_me:$LINENO: checking for sys/types.h" >&5
37740echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
37741if test "${ac_cv_header_sys_types_h+set}" = set; then
37742  echo $ECHO_N "(cached) $ECHO_C" >&6
37743fi
37744echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
37745echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
37746else
37747  # Is the header compilable?
37748echo "$as_me:$LINENO: checking sys/types.h usability" >&5
37749echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
37750cat >conftest.$ac_ext <<_ACEOF
37751/* confdefs.h.  */
37752_ACEOF
37753cat confdefs.h >>conftest.$ac_ext
37754cat >>conftest.$ac_ext <<_ACEOF
37755/* end confdefs.h.  */
37756$ac_includes_default
37757#include <sys/types.h>
37758_ACEOF
37759rm -f conftest.$ac_objext
37760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37761  (eval $ac_compile) 2>conftest.er1
37762  ac_status=$?
37763  grep -v '^ *+' conftest.er1 >conftest.err
37764  rm -f conftest.er1
37765  cat conftest.err >&5
37766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767  (exit $ac_status); } &&
37768	 { ac_try='test -z "$ac_c_werror_flag"
37769			 || test ! -s conftest.err'
37770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771  (eval $ac_try) 2>&5
37772  ac_status=$?
37773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774  (exit $ac_status); }; } &&
37775	 { ac_try='test -s conftest.$ac_objext'
37776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37777  (eval $ac_try) 2>&5
37778  ac_status=$?
37779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780  (exit $ac_status); }; }; then
37781  ac_header_compiler=yes
37782else
37783  echo "$as_me: failed program was:" >&5
37784sed 's/^/| /' conftest.$ac_ext >&5
37785
37786ac_header_compiler=no
37787fi
37788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37790echo "${ECHO_T}$ac_header_compiler" >&6
37791
37792# Is the header present?
37793echo "$as_me:$LINENO: checking sys/types.h presence" >&5
37794echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
37795cat >conftest.$ac_ext <<_ACEOF
37796/* confdefs.h.  */
37797_ACEOF
37798cat confdefs.h >>conftest.$ac_ext
37799cat >>conftest.$ac_ext <<_ACEOF
37800/* end confdefs.h.  */
37801#include <sys/types.h>
37802_ACEOF
37803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37805  ac_status=$?
37806  grep -v '^ *+' conftest.er1 >conftest.err
37807  rm -f conftest.er1
37808  cat conftest.err >&5
37809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810  (exit $ac_status); } >/dev/null; then
37811  if test -s conftest.err; then
37812    ac_cpp_err=$ac_c_preproc_warn_flag
37813    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37814  else
37815    ac_cpp_err=
37816  fi
37817else
37818  ac_cpp_err=yes
37819fi
37820if test -z "$ac_cpp_err"; then
37821  ac_header_preproc=yes
37822else
37823  echo "$as_me: failed program was:" >&5
37824sed 's/^/| /' conftest.$ac_ext >&5
37825
37826  ac_header_preproc=no
37827fi
37828rm -f conftest.err conftest.$ac_ext
37829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37830echo "${ECHO_T}$ac_header_preproc" >&6
37831
37832# So?  What about this header?
37833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37834  yes:no: )
37835    { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
37836echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37837    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
37838echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
37839    ac_header_preproc=yes
37840    ;;
37841  no:yes:* )
37842    { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
37843echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
37844    { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
37845echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
37846    { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
37847echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
37848    { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
37849echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37850    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
37851echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
37852    { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
37853echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
37854    (
37855      cat <<\_ASBOX
37856## ----------------------------- ##
37857## Report this to the dx lists.  ##
37858## ----------------------------- ##
37859_ASBOX
37860    ) |
37861      sed "s/^/$as_me: WARNING:     /" >&2
37862    ;;
37863esac
37864echo "$as_me:$LINENO: checking for sys/types.h" >&5
37865echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
37866if test "${ac_cv_header_sys_types_h+set}" = set; then
37867  echo $ECHO_N "(cached) $ECHO_C" >&6
37868else
37869  ac_cv_header_sys_types_h=$ac_header_preproc
37870fi
37871echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
37872echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
37873
37874fi
37875if test $ac_cv_header_sys_types_h = yes; then
37876   echo "#include <sys/types.h>" >> socketHdrs.h
37877fi
37878
37879
37880if test "${ac_cv_header_sys_socket_h+set}" = set; then
37881  echo "$as_me:$LINENO: checking for sys/socket.h" >&5
37882echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
37883if test "${ac_cv_header_sys_socket_h+set}" = set; then
37884  echo $ECHO_N "(cached) $ECHO_C" >&6
37885fi
37886echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
37887echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
37888else
37889  # Is the header compilable?
37890echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
37891echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
37892cat >conftest.$ac_ext <<_ACEOF
37893/* confdefs.h.  */
37894_ACEOF
37895cat confdefs.h >>conftest.$ac_ext
37896cat >>conftest.$ac_ext <<_ACEOF
37897/* end confdefs.h.  */
37898$ac_includes_default
37899#include <sys/socket.h>
37900_ACEOF
37901rm -f conftest.$ac_objext
37902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37903  (eval $ac_compile) 2>conftest.er1
37904  ac_status=$?
37905  grep -v '^ *+' conftest.er1 >conftest.err
37906  rm -f conftest.er1
37907  cat conftest.err >&5
37908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909  (exit $ac_status); } &&
37910	 { ac_try='test -z "$ac_c_werror_flag"
37911			 || test ! -s conftest.err'
37912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37913  (eval $ac_try) 2>&5
37914  ac_status=$?
37915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916  (exit $ac_status); }; } &&
37917	 { ac_try='test -s conftest.$ac_objext'
37918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919  (eval $ac_try) 2>&5
37920  ac_status=$?
37921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922  (exit $ac_status); }; }; then
37923  ac_header_compiler=yes
37924else
37925  echo "$as_me: failed program was:" >&5
37926sed 's/^/| /' conftest.$ac_ext >&5
37927
37928ac_header_compiler=no
37929fi
37930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37932echo "${ECHO_T}$ac_header_compiler" >&6
37933
37934# Is the header present?
37935echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
37936echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
37937cat >conftest.$ac_ext <<_ACEOF
37938/* confdefs.h.  */
37939_ACEOF
37940cat confdefs.h >>conftest.$ac_ext
37941cat >>conftest.$ac_ext <<_ACEOF
37942/* end confdefs.h.  */
37943#include <sys/socket.h>
37944_ACEOF
37945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37946  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37947  ac_status=$?
37948  grep -v '^ *+' conftest.er1 >conftest.err
37949  rm -f conftest.er1
37950  cat conftest.err >&5
37951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37952  (exit $ac_status); } >/dev/null; then
37953  if test -s conftest.err; then
37954    ac_cpp_err=$ac_c_preproc_warn_flag
37955    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37956  else
37957    ac_cpp_err=
37958  fi
37959else
37960  ac_cpp_err=yes
37961fi
37962if test -z "$ac_cpp_err"; then
37963  ac_header_preproc=yes
37964else
37965  echo "$as_me: failed program was:" >&5
37966sed 's/^/| /' conftest.$ac_ext >&5
37967
37968  ac_header_preproc=no
37969fi
37970rm -f conftest.err conftest.$ac_ext
37971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37972echo "${ECHO_T}$ac_header_preproc" >&6
37973
37974# So?  What about this header?
37975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37976  yes:no: )
37977    { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
37978echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37979    { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
37980echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
37981    ac_header_preproc=yes
37982    ;;
37983  no:yes:* )
37984    { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
37985echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
37986    { echo "$as_me:$LINENO: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&5
37987echo "$as_me: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&2;}
37988    { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
37989echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
37990    { echo "$as_me:$LINENO: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&5
37991echo "$as_me: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37992    { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
37993echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
37994    { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
37995echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
37996    (
37997      cat <<\_ASBOX
37998## ----------------------------- ##
37999## Report this to the dx lists.  ##
38000## ----------------------------- ##
38001_ASBOX
38002    ) |
38003      sed "s/^/$as_me: WARNING:     /" >&2
38004    ;;
38005esac
38006echo "$as_me:$LINENO: checking for sys/socket.h" >&5
38007echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
38008if test "${ac_cv_header_sys_socket_h+set}" = set; then
38009  echo $ECHO_N "(cached) $ECHO_C" >&6
38010else
38011  ac_cv_header_sys_socket_h=$ac_header_preproc
38012fi
38013echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
38014echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
38015
38016fi
38017if test $ac_cv_header_sys_socket_h = yes; then
38018   echo "#include <sys/socket.h>" >> socketHdrs.h
38019fi
38020
38021
38022if test "$ARCH" = "intelnt" ; then
38023	if test "${ac_cv_header_winsock2_h+set}" = set; then
38024  echo "$as_me:$LINENO: checking for winsock2.h" >&5
38025echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
38026if test "${ac_cv_header_winsock2_h+set}" = set; then
38027  echo $ECHO_N "(cached) $ECHO_C" >&6
38028fi
38029echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
38030echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
38031else
38032  # Is the header compilable?
38033echo "$as_me:$LINENO: checking winsock2.h usability" >&5
38034echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
38035cat >conftest.$ac_ext <<_ACEOF
38036/* confdefs.h.  */
38037_ACEOF
38038cat confdefs.h >>conftest.$ac_ext
38039cat >>conftest.$ac_ext <<_ACEOF
38040/* end confdefs.h.  */
38041$ac_includes_default
38042#include <winsock2.h>
38043_ACEOF
38044rm -f conftest.$ac_objext
38045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38046  (eval $ac_compile) 2>conftest.er1
38047  ac_status=$?
38048  grep -v '^ *+' conftest.er1 >conftest.err
38049  rm -f conftest.er1
38050  cat conftest.err >&5
38051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052  (exit $ac_status); } &&
38053	 { ac_try='test -z "$ac_c_werror_flag"
38054			 || test ! -s conftest.err'
38055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38056  (eval $ac_try) 2>&5
38057  ac_status=$?
38058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059  (exit $ac_status); }; } &&
38060	 { ac_try='test -s conftest.$ac_objext'
38061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38062  (eval $ac_try) 2>&5
38063  ac_status=$?
38064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065  (exit $ac_status); }; }; then
38066  ac_header_compiler=yes
38067else
38068  echo "$as_me: failed program was:" >&5
38069sed 's/^/| /' conftest.$ac_ext >&5
38070
38071ac_header_compiler=no
38072fi
38073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38075echo "${ECHO_T}$ac_header_compiler" >&6
38076
38077# Is the header present?
38078echo "$as_me:$LINENO: checking winsock2.h presence" >&5
38079echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
38080cat >conftest.$ac_ext <<_ACEOF
38081/* confdefs.h.  */
38082_ACEOF
38083cat confdefs.h >>conftest.$ac_ext
38084cat >>conftest.$ac_ext <<_ACEOF
38085/* end confdefs.h.  */
38086#include <winsock2.h>
38087_ACEOF
38088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38089  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38090  ac_status=$?
38091  grep -v '^ *+' conftest.er1 >conftest.err
38092  rm -f conftest.er1
38093  cat conftest.err >&5
38094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095  (exit $ac_status); } >/dev/null; then
38096  if test -s conftest.err; then
38097    ac_cpp_err=$ac_c_preproc_warn_flag
38098    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38099  else
38100    ac_cpp_err=
38101  fi
38102else
38103  ac_cpp_err=yes
38104fi
38105if test -z "$ac_cpp_err"; then
38106  ac_header_preproc=yes
38107else
38108  echo "$as_me: failed program was:" >&5
38109sed 's/^/| /' conftest.$ac_ext >&5
38110
38111  ac_header_preproc=no
38112fi
38113rm -f conftest.err conftest.$ac_ext
38114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38115echo "${ECHO_T}$ac_header_preproc" >&6
38116
38117# So?  What about this header?
38118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38119  yes:no: )
38120    { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
38121echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38122    { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
38123echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
38124    ac_header_preproc=yes
38125    ;;
38126  no:yes:* )
38127    { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
38128echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
38129    { echo "$as_me:$LINENO: WARNING: winsock2.h:     check for missing prerequisite headers?" >&5
38130echo "$as_me: WARNING: winsock2.h:     check for missing prerequisite headers?" >&2;}
38131    { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
38132echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
38133    { echo "$as_me:$LINENO: WARNING: winsock2.h:     section \"Present But Cannot Be Compiled\"" >&5
38134echo "$as_me: WARNING: winsock2.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38135    { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
38136echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
38137    { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
38138echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
38139    (
38140      cat <<\_ASBOX
38141## ----------------------------- ##
38142## Report this to the dx lists.  ##
38143## ----------------------------- ##
38144_ASBOX
38145    ) |
38146      sed "s/^/$as_me: WARNING:     /" >&2
38147    ;;
38148esac
38149echo "$as_me:$LINENO: checking for winsock2.h" >&5
38150echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
38151if test "${ac_cv_header_winsock2_h+set}" = set; then
38152  echo $ECHO_N "(cached) $ECHO_C" >&6
38153else
38154  ac_cv_header_winsock2_h=$ac_header_preproc
38155fi
38156echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
38157echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
38158
38159fi
38160if test $ac_cv_header_winsock2_h = yes; then
38161   echo "#include <winsock2.h>" >> socketHdrs.h
38162fi
38163
38164
38165fi
38166ac_ext=c
38167ac_cpp='$CPP $CPPFLAGS'
38168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38170ac_compiler_gnu=$ac_cv_c_compiler_gnu
38171
38172ac_ext=cc
38173ac_cpp='$CXXCPP $CPPFLAGS'
38174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38177
38178for try in socklen_t size_t int "unsigned int"
38179do
38180cat >conftest.$ac_ext <<_ACEOF
38181/* confdefs.h.  */
38182_ACEOF
38183cat confdefs.h >>conftest.$ac_ext
38184cat >>conftest.$ac_ext <<_ACEOF
38185/* end confdefs.h.  */
38186
38187#include <stdio.h>
38188#include "socketHdrs.h"
38189
38190int
38191main ()
38192{
38193
38194$try *foo = NULL;
38195int i = getsockname(1, (struct sockaddr *)NULL, foo);
38196
38197  ;
38198  return 0;
38199}
38200_ACEOF
38201rm -f conftest.$ac_objext conftest$ac_exeext
38202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38203  (eval $ac_link) 2>conftest.er1
38204  ac_status=$?
38205  grep -v '^ *+' conftest.er1 >conftest.err
38206  rm -f conftest.er1
38207  cat conftest.err >&5
38208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209  (exit $ac_status); } &&
38210	 { ac_try='test -z "$ac_cxx_werror_flag"
38211			 || test ! -s conftest.err'
38212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38213  (eval $ac_try) 2>&5
38214  ac_status=$?
38215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216  (exit $ac_status); }; } &&
38217	 { ac_try='test -s conftest$ac_exeext'
38218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38219  (eval $ac_try) 2>&5
38220  ac_status=$?
38221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222  (exit $ac_status); }; }; then
38223
38224socket_argtype=$try
38225
38226cat >>confdefs.h <<_ACEOF
38227#define SOCK_LENGTH_TYPE $try
38228_ACEOF
38229
38230
38231else
38232  echo "$as_me: failed program was:" >&5
38233sed 's/^/| /' conftest.$ac_ext >&5
38234
38235fi
38236rm -f conftest.err conftest.$ac_objext \
38237      conftest$ac_exeext conftest.$ac_ext
38238if test ! -z "$socket_argtype" ; then
38239    break
38240fi
38241done
38242echo the third arg to getsockname is pointer to $socket_argtype
38243rm socketHdrs.h
38244ac_ext=c
38245ac_cpp='$CPP $CPPFLAGS'
38246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38248ac_compiler_gnu=$ac_cv_c_compiler_gnu
38249
38250
38251
38252
38253    echo "$as_me:$LINENO: checking whether -lstdc++ is needed" >&5
38254echo $ECHO_N "checking whether -lstdc++ is needed... $ECHO_C" >&6
38255    tmpLIBS=$LIBS
38256    if test "${ac_cv_requires_lstdcxx+set}" = set; then
38257  echo $ECHO_N "(cached) $ECHO_C" >&6
38258else
38259
38260	ac_ext=cc
38261ac_cpp='$CXXCPP $CPPFLAGS'
38262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38265
38266	cat >conftest.$ac_ext <<_ACEOF
38267/* confdefs.h.  */
38268_ACEOF
38269cat confdefs.h >>conftest.$ac_ext
38270cat >>conftest.$ac_ext <<_ACEOF
38271/* end confdefs.h.  */
38272
38273		#ifdef HAVE_IOSTREAM
38274		#include <iostream>
38275		#elif HAVE_IOSTREAM_H
38276		#include <iostream.h>
38277		#endif
38278
38279int
38280main ()
38281{
38282
38283		std::cout << "foo";
38284
38285  ;
38286  return 0;
38287}
38288_ACEOF
38289rm -f conftest.$ac_objext conftest$ac_exeext
38290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38291  (eval $ac_link) 2>conftest.er1
38292  ac_status=$?
38293  grep -v '^ *+' conftest.er1 >conftest.err
38294  rm -f conftest.er1
38295  cat conftest.err >&5
38296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297  (exit $ac_status); } &&
38298	 { ac_try='test -z "$ac_cxx_werror_flag"
38299			 || test ! -s conftest.err'
38300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38301  (eval $ac_try) 2>&5
38302  ac_status=$?
38303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304  (exit $ac_status); }; } &&
38305	 { ac_try='test -s conftest$ac_exeext'
38306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38307  (eval $ac_try) 2>&5
38308  ac_status=$?
38309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310  (exit $ac_status); }; }; then
38311  ac_cv_requires_lstdcxx="no"
38312else
38313  echo "$as_me: failed program was:" >&5
38314sed 's/^/| /' conftest.$ac_ext >&5
38315
38316
38317		LIBS="$LIBS -lstdc++"
38318		cat >conftest.$ac_ext <<_ACEOF
38319/* confdefs.h.  */
38320_ACEOF
38321cat confdefs.h >>conftest.$ac_ext
38322cat >>conftest.$ac_ext <<_ACEOF
38323/* end confdefs.h.  */
38324
38325			#ifdef HAVE_IOSTREAM
38326			#include <iostream>
38327			#elif HAVE_IOSTREAM_H
38328			#include <iostream.h>
38329			#endif
38330
38331int
38332main ()
38333{
38334
38335			std::cout << "foo";
38336
38337  ;
38338  return 0;
38339}
38340_ACEOF
38341rm -f conftest.$ac_objext conftest$ac_exeext
38342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38343  (eval $ac_link) 2>conftest.er1
38344  ac_status=$?
38345  grep -v '^ *+' conftest.er1 >conftest.err
38346  rm -f conftest.er1
38347  cat conftest.err >&5
38348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349  (exit $ac_status); } &&
38350	 { ac_try='test -z "$ac_cxx_werror_flag"
38351			 || test ! -s conftest.err'
38352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38353  (eval $ac_try) 2>&5
38354  ac_status=$?
38355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356  (exit $ac_status); }; } &&
38357	 { ac_try='test -s conftest$ac_exeext'
38358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359  (eval $ac_try) 2>&5
38360  ac_status=$?
38361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362  (exit $ac_status); }; }; then
38363  ac_cv_requires_lstdcxx="yes"
38364else
38365  echo "$as_me: failed program was:" >&5
38366sed 's/^/| /' conftest.$ac_ext >&5
38367
38368
38369			echo "$as_me:$LINENO: result: failed even with lstdc++" >&5
38370echo "${ECHO_T}failed even with lstdc++" >&6
38371			exit 1
38372
38373
38374fi
38375rm -f conftest.err conftest.$ac_objext \
38376      conftest$ac_exeext conftest.$ac_ext
38377
38378
38379fi
38380rm -f conftest.err conftest.$ac_objext \
38381      conftest$ac_exeext conftest.$ac_ext
38382	ac_ext=c
38383ac_cpp='$CPP $CPPFLAGS'
38384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38386ac_compiler_gnu=$ac_cv_c_compiler_gnu
38387
38388
38389fi
38390
38391    echo "$as_me:$LINENO: result: ${ac_cv_requires_lstdcxx}" >&5
38392echo "${ECHO_T}${ac_cv_requires_lstdcxx}" >&6
38393
38394
38395DX_GL_LINK_LIBS=" -lGL "
38396
38397LOCALMAKE="include local.mk"
38398
38399if test "$with_ddx" = 'yes' ; then
38400
38401cat >>confdefs.h <<\_ACEOF
38402#define DDX 1
38403_ACEOF
38404
38405fi
38406
38407if test "$with_smp_linux" = 'yes' ; then
38408
38409cat >>confdefs.h <<\_ACEOF
38410#define ENABLE_SMP_LINUX 1
38411_ACEOF
38412
38413else
38414    cat >>confdefs.h <<\_ACEOF
38415#define ENABLE_SMP_LINUX 0
38416_ACEOF
38417
38418fi
38419
38420                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ac_config_files="$ac_config_files Makefile bin/Makefile bin/dx bin/mdf2c doc/Makefile fonts/Makefile help/Makefile html/Makefile html/images/Makefile html/pages/Makefile include/Makefile include/dx/Makefile lib/Makefile man/Makefile man/catl/Makefile man/manl/Makefile src/Makefile src/exec/Makefile src/exec/dpexec/Makefile src/exec/dpexec/local.mk src/exec/dxexec/Makefile src/exec/dxmods/Makefile src/exec/dxmods/local.mk src/exec/hwrender/Makefile src/exec/hwrender/gl/Makefile src/exec/hwrender/opengl/Makefile src/exec/hwrender/starbase/Makefile src/exec/hwrender/xgl/Makefile src/exec/libdx/Makefile src/exec/libdx/local.mk src/misc/Makefile src/misc/arch.mak src/uipp/Makefile src/uipp/base/Makefile src/uipp/dxl/Makefile src/uipp/dxui/Makefile src/uipp/dxuilib/Makefile src/uipp/dxuilib/local.mk src/uipp/java/Makefile src/uipp/java/dx/Makefile src/uipp/java/dx/protocol/Makefile src/uipp/java/dx/protocol/server/Makefile src/uipp/java/dx/runtime/Makefile src/uipp/java/layout/Makefile src/uipp/java/server/Makefile src/uipp/java/server/macros/Makefile src/uipp/java/server/dxserver.paths src/uipp/java/server/startserver src/uipp/java/dx/client/Makefile src/uipp/java/dx/net/Makefile src/uipp/mb/Makefile src/uipp/prompter/Makefile src/uipp/startup/Makefile src/uipp/tutor/Makefile src/uipp/ui/Makefile src/uipp/widgets/Makefile windows/Makefile"
38421
38422cat >confcache <<\_ACEOF
38423# This file is a shell script that caches the results of configure
38424# tests run on this system so they can be shared between configure
38425# scripts and configure runs, see configure's option --config-cache.
38426# It is not useful on other systems.  If it contains results you don't
38427# want to keep, you may remove or edit it.
38428#
38429# config.status only pays attention to the cache file if you give it
38430# the --recheck option to rerun configure.
38431#
38432# `ac_cv_env_foo' variables (set or unset) will be overridden when
38433# loading this file, other *unset* `ac_cv_foo' will be assigned the
38434# following values.
38435
38436_ACEOF
38437
38438# The following way of writing the cache mishandles newlines in values,
38439# but we know of no workaround that is simple, portable, and efficient.
38440# So, don't put newlines in cache variables' values.
38441# Ultrix sh set writes to stderr and can't be redirected directly,
38442# and sets the high bit in the cache file unless we assign to the vars.
38443{
38444  (set) 2>&1 |
38445    case `(ac_space=' '; set | grep ac_space) 2>&1` in
38446    *ac_space=\ *)
38447      # `set' does not quote correctly, so add quotes (double-quote
38448      # substitution turns \\\\ into \\, and sed turns \\ into \).
38449      sed -n \
38450	"s/'/'\\\\''/g;
38451	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38452      ;;
38453    *)
38454      # `set' quotes correctly as required by POSIX, so do not add quotes.
38455      sed -n \
38456	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38457      ;;
38458    esac;
38459} |
38460  sed '
38461     t clear
38462     : clear
38463     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38464     t end
38465     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38466     : end' >>confcache
38467if diff $cache_file confcache >/dev/null 2>&1; then :; else
38468  if test -w $cache_file; then
38469    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38470    cat confcache >$cache_file
38471  else
38472    echo "not updating unwritable cache $cache_file"
38473  fi
38474fi
38475rm -f confcache
38476
38477test "x$prefix" = xNONE && prefix=$ac_default_prefix
38478# Let make expand exec_prefix.
38479test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38480
38481# VPATH may cause trouble with some makes, so we remove $(srcdir),
38482# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38483# trailing colons and then remove the whole line if VPATH becomes empty
38484# (actually we leave an empty line to preserve line numbers).
38485if test "x$srcdir" = x.; then
38486  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
38487s/:*\$(srcdir):*/:/;
38488s/:*\${srcdir}:*/:/;
38489s/:*@srcdir@:*/:/;
38490s/^\([^=]*=[	 ]*\):*/\1/;
38491s/:*$//;
38492s/^[^=]*=[	 ]*$//;
38493}'
38494fi
38495
38496DEFS=-DHAVE_CONFIG_H
38497
38498ac_libobjs=
38499ac_ltlibobjs=
38500for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38501  # 1. Remove the extension, and $U if already installed.
38502  ac_i=`echo "$ac_i" |
38503	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
38504  # 2. Add them.
38505  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38506  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38507done
38508LIBOBJS=$ac_libobjs
38509
38510LTLIBOBJS=$ac_ltlibobjs
38511
38512
38513if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38514  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38515Usually this means the macro was only invoked conditionally." >&5
38516echo "$as_me: error: conditional \"AMDEP\" was never defined.
38517Usually this means the macro was only invoked conditionally." >&2;}
38518   { (exit 1); exit 1; }; }
38519fi
38520if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38521  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38522Usually this means the macro was only invoked conditionally." >&5
38523echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38524Usually this means the macro was only invoked conditionally." >&2;}
38525   { (exit 1); exit 1; }; }
38526fi
38527if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
38528  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
38529Usually this means the macro was only invoked conditionally." >&5
38530echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
38531Usually this means the macro was only invoked conditionally." >&2;}
38532   { (exit 1); exit 1; }; }
38533fi
38534if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
38535  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
38536Usually this means the macro was only invoked conditionally." >&5
38537echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
38538Usually this means the macro was only invoked conditionally." >&2;}
38539   { (exit 1); exit 1; }; }
38540fi
38541if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38542  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38543Usually this means the macro was only invoked conditionally." >&5
38544echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38545Usually this means the macro was only invoked conditionally." >&2;}
38546   { (exit 1); exit 1; }; }
38547fi
38548if test -z "${WITH_BUILDLIBDX_TRUE}" && test -z "${WITH_BUILDLIBDX_FALSE}"; then
38549  { { echo "$as_me:$LINENO: error: conditional \"WITH_BUILDLIBDX\" was never defined.
38550Usually this means the macro was only invoked conditionally." >&5
38551echo "$as_me: error: conditional \"WITH_BUILDLIBDX\" was never defined.
38552Usually this means the macro was only invoked conditionally." >&2;}
38553   { (exit 1); exit 1; }; }
38554fi
38555if test -z "${WITH_INSTALLHTML_TRUE}" && test -z "${WITH_INSTALLHTML_FALSE}"; then
38556  { { echo "$as_me:$LINENO: error: conditional \"WITH_INSTALLHTML\" was never defined.
38557Usually this means the macro was only invoked conditionally." >&5
38558echo "$as_me: error: conditional \"WITH_INSTALLHTML\" was never defined.
38559Usually this means the macro was only invoked conditionally." >&2;}
38560   { (exit 1); exit 1; }; }
38561fi
38562
38563: ${CONFIG_STATUS=./config.status}
38564ac_clean_files_save=$ac_clean_files
38565ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38566{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38567echo "$as_me: creating $CONFIG_STATUS" >&6;}
38568cat >$CONFIG_STATUS <<_ACEOF
38569#! $SHELL
38570# Generated by $as_me.
38571# Run this file to recreate the current configuration.
38572# Compiler output produced by configure, useful for debugging
38573# configure, is in config.log if it exists.
38574
38575debug=false
38576ac_cs_recheck=false
38577ac_cs_silent=false
38578SHELL=\${CONFIG_SHELL-$SHELL}
38579_ACEOF
38580
38581cat >>$CONFIG_STATUS <<\_ACEOF
38582## --------------------- ##
38583## M4sh Initialization.  ##
38584## --------------------- ##
38585
38586# Be Bourne compatible
38587if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38588  emulate sh
38589  NULLCMD=:
38590  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38591  # is contrary to our usage.  Disable this feature.
38592  alias -g '${1+"$@"}'='"$@"'
38593elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38594  set -o posix
38595fi
38596DUALCASE=1; export DUALCASE # for MKS sh
38597
38598# Support unset when possible.
38599if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38600  as_unset=unset
38601else
38602  as_unset=false
38603fi
38604
38605
38606# Work around bugs in pre-3.0 UWIN ksh.
38607$as_unset ENV MAIL MAILPATH
38608PS1='$ '
38609PS2='> '
38610PS4='+ '
38611
38612# NLS nuisances.
38613for as_var in \
38614  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38615  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38616  LC_TELEPHONE LC_TIME
38617do
38618  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38619    eval $as_var=C; export $as_var
38620  else
38621    $as_unset $as_var
38622  fi
38623done
38624
38625# Required to use basename.
38626if expr a : '\(a\)' >/dev/null 2>&1; then
38627  as_expr=expr
38628else
38629  as_expr=false
38630fi
38631
38632if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38633  as_basename=basename
38634else
38635  as_basename=false
38636fi
38637
38638
38639# Name of the executable.
38640as_me=`$as_basename "$0" ||
38641$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38642	 X"$0" : 'X\(//\)$' \| \
38643	 X"$0" : 'X\(/\)$' \| \
38644	 .     : '\(.\)' 2>/dev/null ||
38645echo X/"$0" |
38646    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38647  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
38648  	  /^X\/\(\/\).*/{ s//\1/; q; }
38649  	  s/.*/./; q'`
38650
38651
38652# PATH needs CR, and LINENO needs CR and PATH.
38653# Avoid depending upon Character Ranges.
38654as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38655as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38656as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38657as_cr_digits='0123456789'
38658as_cr_alnum=$as_cr_Letters$as_cr_digits
38659
38660# The user is always right.
38661if test "${PATH_SEPARATOR+set}" != set; then
38662  echo "#! /bin/sh" >conf$$.sh
38663  echo  "exit 0"   >>conf$$.sh
38664  chmod +x conf$$.sh
38665  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38666    PATH_SEPARATOR=';'
38667  else
38668    PATH_SEPARATOR=:
38669  fi
38670  rm -f conf$$.sh
38671fi
38672
38673
38674  as_lineno_1=$LINENO
38675  as_lineno_2=$LINENO
38676  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38677  test "x$as_lineno_1" != "x$as_lineno_2" &&
38678  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
38679  # Find who we are.  Look in the path if we contain no path at all
38680  # relative or not.
38681  case $0 in
38682    *[\\/]* ) as_myself=$0 ;;
38683    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38684for as_dir in $PATH
38685do
38686  IFS=$as_save_IFS
38687  test -z "$as_dir" && as_dir=.
38688  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38689done
38690
38691       ;;
38692  esac
38693  # We did not find ourselves, most probably we were run as `sh COMMAND'
38694  # in which case we are not to be found in the path.
38695  if test "x$as_myself" = x; then
38696    as_myself=$0
38697  fi
38698  if test ! -f "$as_myself"; then
38699    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
38700echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
38701   { (exit 1); exit 1; }; }
38702  fi
38703  case $CONFIG_SHELL in
38704  '')
38705    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38706for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
38707do
38708  IFS=$as_save_IFS
38709  test -z "$as_dir" && as_dir=.
38710  for as_base in sh bash ksh sh5; do
38711	 case $as_dir in
38712	 /*)
38713	   if ("$as_dir/$as_base" -c '
38714  as_lineno_1=$LINENO
38715  as_lineno_2=$LINENO
38716  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38717  test "x$as_lineno_1" != "x$as_lineno_2" &&
38718  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
38719	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
38720	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
38721	     CONFIG_SHELL=$as_dir/$as_base
38722	     export CONFIG_SHELL
38723	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
38724	   fi;;
38725	 esac
38726       done
38727done
38728;;
38729  esac
38730
38731  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38732  # uniformly replaced by the line number.  The first 'sed' inserts a
38733  # line-number line before each line; the second 'sed' does the real
38734  # work.  The second script uses 'N' to pair each line-number line
38735  # with the numbered line, and appends trailing '-' during
38736  # substitution so that $LINENO is not a special case at line end.
38737  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38738  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
38739  sed '=' <$as_myself |
38740    sed '
38741      N
38742      s,$,-,
38743      : loop
38744      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
38745      t loop
38746      s,-$,,
38747      s,^['$as_cr_digits']*\n,,
38748    ' >$as_me.lineno &&
38749  chmod +x $as_me.lineno ||
38750    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
38751echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
38752   { (exit 1); exit 1; }; }
38753
38754  # Don't try to exec as it changes $[0], causing all sort of problems
38755  # (the dirname of $[0] is not the place where we might find the
38756  # original and so on.  Autoconf is especially sensible to this).
38757  . ./$as_me.lineno
38758  # Exit status is that of the last command.
38759  exit
38760}
38761
38762
38763case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
38764  *c*,-n*) ECHO_N= ECHO_C='
38765' ECHO_T='	' ;;
38766  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
38767  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
38768esac
38769
38770if expr a : '\(a\)' >/dev/null 2>&1; then
38771  as_expr=expr
38772else
38773  as_expr=false
38774fi
38775
38776rm -f conf$$ conf$$.exe conf$$.file
38777echo >conf$$.file
38778if ln -s conf$$.file conf$$ 2>/dev/null; then
38779  # We could just check for DJGPP; but this test a) works b) is more generic
38780  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
38781  if test -f conf$$.exe; then
38782    # Don't use ln at all; we don't have any links
38783    as_ln_s='cp -p'
38784  else
38785    as_ln_s='ln -s'
38786  fi
38787elif ln conf$$.file conf$$ 2>/dev/null; then
38788  as_ln_s=ln
38789else
38790  as_ln_s='cp -p'
38791fi
38792rm -f conf$$ conf$$.exe conf$$.file
38793
38794if mkdir -p . 2>/dev/null; then
38795  as_mkdir_p=:
38796else
38797  test -d ./-p && rmdir ./-p
38798  as_mkdir_p=false
38799fi
38800
38801as_executable_p="test -f"
38802
38803# Sed expression to map a string onto a valid CPP name.
38804as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38805
38806# Sed expression to map a string onto a valid variable name.
38807as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38808
38809
38810# IFS
38811# We need space, tab and new line, in precisely that order.
38812as_nl='
38813'
38814IFS=" 	$as_nl"
38815
38816# CDPATH.
38817$as_unset CDPATH
38818
38819exec 6>&1
38820
38821# Open the log real soon, to keep \$[0] and so on meaningful, and to
38822# report actual input values of CONFIG_FILES etc. instead of their
38823# values after options handling.  Logging --version etc. is OK.
38824exec 5>>config.log
38825{
38826  echo
38827  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38828## Running $as_me. ##
38829_ASBOX
38830} >&5
38831cat >&5 <<_CSEOF
38832
38833This file was extended by dx $as_me 4.4.4, which was
38834generated by GNU Autoconf 2.59.  Invocation command line was
38835
38836  CONFIG_FILES    = $CONFIG_FILES
38837  CONFIG_HEADERS  = $CONFIG_HEADERS
38838  CONFIG_LINKS    = $CONFIG_LINKS
38839  CONFIG_COMMANDS = $CONFIG_COMMANDS
38840  $ $0 $@
38841
38842_CSEOF
38843echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
38844echo >&5
38845_ACEOF
38846
38847# Files that config.status was made for.
38848if test -n "$ac_config_files"; then
38849  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
38850fi
38851
38852if test -n "$ac_config_headers"; then
38853  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
38854fi
38855
38856if test -n "$ac_config_links"; then
38857  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
38858fi
38859
38860if test -n "$ac_config_commands"; then
38861  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
38862fi
38863
38864cat >>$CONFIG_STATUS <<\_ACEOF
38865
38866ac_cs_usage="\
38867\`$as_me' instantiates files from templates according to the
38868current configuration.
38869
38870Usage: $0 [OPTIONS] [FILE]...
38871
38872  -h, --help       print this help, then exit
38873  -V, --version    print version number, then exit
38874  -q, --quiet      do not print progress messages
38875  -d, --debug      don't remove temporary files
38876      --recheck    update $as_me by reconfiguring in the same conditions
38877  --file=FILE[:TEMPLATE]
38878		   instantiate the configuration file FILE
38879  --header=FILE[:TEMPLATE]
38880		   instantiate the configuration header FILE
38881
38882Configuration files:
38883$config_files
38884
38885Configuration headers:
38886$config_headers
38887
38888Configuration commands:
38889$config_commands
38890
38891Report bugs to <bug-autoconf@gnu.org>."
38892_ACEOF
38893
38894cat >>$CONFIG_STATUS <<_ACEOF
38895ac_cs_version="\\
38896dx config.status 4.4.4
38897configured by $0, generated by GNU Autoconf 2.59,
38898  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
38899
38900Copyright (C) 2003 Free Software Foundation, Inc.
38901This config.status script is free software; the Free Software Foundation
38902gives unlimited permission to copy, distribute and modify it."
38903srcdir=$srcdir
38904INSTALL="$INSTALL"
38905_ACEOF
38906
38907cat >>$CONFIG_STATUS <<\_ACEOF
38908# If no file are specified by the user, then we need to provide default
38909# value.  By we need to know if files were specified by the user.
38910ac_need_defaults=:
38911while test $# != 0
38912do
38913  case $1 in
38914  --*=*)
38915    ac_option=`expr "x$1" : 'x\([^=]*\)='`
38916    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
38917    ac_shift=:
38918    ;;
38919  -*)
38920    ac_option=$1
38921    ac_optarg=$2
38922    ac_shift=shift
38923    ;;
38924  *) # This is not an option, so the user has probably given explicit
38925     # arguments.
38926     ac_option=$1
38927     ac_need_defaults=false;;
38928  esac
38929
38930  case $ac_option in
38931  # Handling of the options.
38932_ACEOF
38933cat >>$CONFIG_STATUS <<\_ACEOF
38934  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38935    ac_cs_recheck=: ;;
38936  --version | --vers* | -V )
38937    echo "$ac_cs_version"; exit 0 ;;
38938  --he | --h)
38939    # Conflict between --help and --header
38940    { { echo "$as_me:$LINENO: error: ambiguous option: $1
38941Try \`$0 --help' for more information." >&5
38942echo "$as_me: error: ambiguous option: $1
38943Try \`$0 --help' for more information." >&2;}
38944   { (exit 1); exit 1; }; };;
38945  --help | --hel | -h )
38946    echo "$ac_cs_usage"; exit 0 ;;
38947  --debug | --d* | -d )
38948    debug=: ;;
38949  --file | --fil | --fi | --f )
38950    $ac_shift
38951    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
38952    ac_need_defaults=false;;
38953  --header | --heade | --head | --hea )
38954    $ac_shift
38955    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
38956    ac_need_defaults=false;;
38957  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38958  | -silent | --silent | --silen | --sile | --sil | --si | --s)
38959    ac_cs_silent=: ;;
38960
38961  # This is an error.
38962  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
38963Try \`$0 --help' for more information." >&5
38964echo "$as_me: error: unrecognized option: $1
38965Try \`$0 --help' for more information." >&2;}
38966   { (exit 1); exit 1; }; } ;;
38967
38968  *) ac_config_targets="$ac_config_targets $1" ;;
38969
38970  esac
38971  shift
38972done
38973
38974ac_configure_extra_args=
38975
38976if $ac_cs_silent; then
38977  exec 6>/dev/null
38978  ac_configure_extra_args="$ac_configure_extra_args --silent"
38979fi
38980
38981_ACEOF
38982cat >>$CONFIG_STATUS <<_ACEOF
38983if \$ac_cs_recheck; then
38984  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
38985  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38986fi
38987
38988_ACEOF
38989
38990cat >>$CONFIG_STATUS <<_ACEOF
38991#
38992# INIT-COMMANDS section.
38993#
38994
38995AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38996
38997_ACEOF
38998
38999
39000
39001cat >>$CONFIG_STATUS <<\_ACEOF
39002for ac_config_target in $ac_config_targets
39003do
39004  case "$ac_config_target" in
39005  # Handling of arguments.
39006  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39007  "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
39008  "bin/dx" ) CONFIG_FILES="$CONFIG_FILES bin/dx" ;;
39009  "bin/mdf2c" ) CONFIG_FILES="$CONFIG_FILES bin/mdf2c" ;;
39010  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
39011  "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
39012  "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
39013  "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
39014  "html/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
39015  "html/pages/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/pages/Makefile" ;;
39016  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
39017  "include/dx/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/dx/Makefile" ;;
39018  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
39019  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
39020  "man/catl/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/catl/Makefile" ;;
39021  "man/manl/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/manl/Makefile" ;;
39022  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39023  "src/exec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/Makefile" ;;
39024  "src/exec/dpexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/dpexec/Makefile" ;;
39025  "src/exec/dpexec/local.mk" ) CONFIG_FILES="$CONFIG_FILES src/exec/dpexec/local.mk" ;;
39026  "src/exec/dxexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/dxexec/Makefile" ;;
39027  "src/exec/dxmods/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/dxmods/Makefile" ;;
39028  "src/exec/dxmods/local.mk" ) CONFIG_FILES="$CONFIG_FILES src/exec/dxmods/local.mk" ;;
39029  "src/exec/hwrender/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/hwrender/Makefile" ;;
39030  "src/exec/hwrender/gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/hwrender/gl/Makefile" ;;
39031  "src/exec/hwrender/opengl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/hwrender/opengl/Makefile" ;;
39032  "src/exec/hwrender/starbase/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/hwrender/starbase/Makefile" ;;
39033  "src/exec/hwrender/xgl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/hwrender/xgl/Makefile" ;;
39034  "src/exec/libdx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/exec/libdx/Makefile" ;;
39035  "src/exec/libdx/local.mk" ) CONFIG_FILES="$CONFIG_FILES src/exec/libdx/local.mk" ;;
39036  "src/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/misc/Makefile" ;;
39037  "src/misc/arch.mak" ) CONFIG_FILES="$CONFIG_FILES src/misc/arch.mak" ;;
39038  "src/uipp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/Makefile" ;;
39039  "src/uipp/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/base/Makefile" ;;
39040  "src/uipp/dxl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/dxl/Makefile" ;;
39041  "src/uipp/dxui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/dxui/Makefile" ;;
39042  "src/uipp/dxuilib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/dxuilib/Makefile" ;;
39043  "src/uipp/dxuilib/local.mk" ) CONFIG_FILES="$CONFIG_FILES src/uipp/dxuilib/local.mk" ;;
39044  "src/uipp/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/Makefile" ;;
39045  "src/uipp/java/dx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/dx/Makefile" ;;
39046  "src/uipp/java/dx/protocol/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/dx/protocol/Makefile" ;;
39047  "src/uipp/java/dx/protocol/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/dx/protocol/server/Makefile" ;;
39048  "src/uipp/java/dx/runtime/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/dx/runtime/Makefile" ;;
39049  "src/uipp/java/layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/layout/Makefile" ;;
39050  "src/uipp/java/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/server/Makefile" ;;
39051  "src/uipp/java/server/macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/server/macros/Makefile" ;;
39052  "src/uipp/java/server/dxserver.paths" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/server/dxserver.paths" ;;
39053  "src/uipp/java/server/startserver" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/server/startserver" ;;
39054  "src/uipp/java/dx/client/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/dx/client/Makefile" ;;
39055  "src/uipp/java/dx/net/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/java/dx/net/Makefile" ;;
39056  "src/uipp/mb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/mb/Makefile" ;;
39057  "src/uipp/prompter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/prompter/Makefile" ;;
39058  "src/uipp/startup/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/startup/Makefile" ;;
39059  "src/uipp/tutor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/tutor/Makefile" ;;
39060  "src/uipp/ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/ui/Makefile" ;;
39061  "src/uipp/widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/uipp/widgets/Makefile" ;;
39062  "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
39063  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39064  "include/dxconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/dxconfig.h" ;;
39065  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39066echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39067   { (exit 1); exit 1; }; };;
39068  esac
39069done
39070
39071# If the user did not use the arguments to specify the items to instantiate,
39072# then the envvar interface is used.  Set only those that are not.
39073# We use the long form for the default assignment because of an extremely
39074# bizarre bug on SunOS 4.1.3.
39075if $ac_need_defaults; then
39076  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39077  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39078  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39079fi
39080
39081# Have a temporary directory for convenience.  Make it in the build tree
39082# simply because there is no reason to put it here, and in addition,
39083# creating and moving files from /tmp can sometimes cause problems.
39084# Create a temporary directory, and hook for its removal unless debugging.
39085$debug ||
39086{
39087  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39088  trap '{ (exit 1); exit 1; }' 1 2 13 15
39089}
39090
39091# Create a (secure) tmp directory for tmp files.
39092
39093{
39094  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39095  test -n "$tmp" && test -d "$tmp"
39096}  ||
39097{
39098  tmp=./confstat$$-$RANDOM
39099  (umask 077 && mkdir $tmp)
39100} ||
39101{
39102   echo "$me: cannot create a temporary directory in ." >&2
39103   { (exit 1); exit 1; }
39104}
39105
39106_ACEOF
39107
39108cat >>$CONFIG_STATUS <<_ACEOF
39109
39110#
39111# CONFIG_FILES section.
39112#
39113
39114# No need to generate the scripts if there are no CONFIG_FILES.
39115# This happens for instance when ./config.status config.h
39116if test -n "\$CONFIG_FILES"; then
39117  # Protect against being on the right side of a sed subst in config.status.
39118  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39119   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39120s,@SHELL@,$SHELL,;t t
39121s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39122s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39123s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39124s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39125s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39126s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39127s,@exec_prefix@,$exec_prefix,;t t
39128s,@prefix@,$prefix,;t t
39129s,@program_transform_name@,$program_transform_name,;t t
39130s,@bindir@,$bindir,;t t
39131s,@sbindir@,$sbindir,;t t
39132s,@libexecdir@,$libexecdir,;t t
39133s,@datadir@,$datadir,;t t
39134s,@sysconfdir@,$sysconfdir,;t t
39135s,@sharedstatedir@,$sharedstatedir,;t t
39136s,@localstatedir@,$localstatedir,;t t
39137s,@libdir@,$libdir,;t t
39138s,@includedir@,$includedir,;t t
39139s,@oldincludedir@,$oldincludedir,;t t
39140s,@infodir@,$infodir,;t t
39141s,@mandir@,$mandir,;t t
39142s,@build_alias@,$build_alias,;t t
39143s,@host_alias@,$host_alias,;t t
39144s,@target_alias@,$target_alias,;t t
39145s,@DEFS@,$DEFS,;t t
39146s,@ECHO_C@,$ECHO_C,;t t
39147s,@ECHO_N@,$ECHO_N,;t t
39148s,@ECHO_T@,$ECHO_T,;t t
39149s,@LIBS@,$LIBS,;t t
39150s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39151s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39152s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39153s,@CYGPATH_W@,$CYGPATH_W,;t t
39154s,@PACKAGE@,$PACKAGE,;t t
39155s,@VERSION@,$VERSION,;t t
39156s,@ACLOCAL@,$ACLOCAL,;t t
39157s,@AUTOCONF@,$AUTOCONF,;t t
39158s,@AUTOMAKE@,$AUTOMAKE,;t t
39159s,@AUTOHEADER@,$AUTOHEADER,;t t
39160s,@MAKEINFO@,$MAKEINFO,;t t
39161s,@install_sh@,$install_sh,;t t
39162s,@STRIP@,$STRIP,;t t
39163s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39164s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39165s,@mkdir_p@,$mkdir_p,;t t
39166s,@AWK@,$AWK,;t t
39167s,@SET_MAKE@,$SET_MAKE,;t t
39168s,@am__leading_dot@,$am__leading_dot,;t t
39169s,@AMTAR@,$AMTAR,;t t
39170s,@am__tar@,$am__tar,;t t
39171s,@am__untar@,$am__untar,;t t
39172s,@build@,$build,;t t
39173s,@build_cpu@,$build_cpu,;t t
39174s,@build_vendor@,$build_vendor,;t t
39175s,@build_os@,$build_os,;t t
39176s,@host@,$host,;t t
39177s,@host_cpu@,$host_cpu,;t t
39178s,@host_vendor@,$host_vendor,;t t
39179s,@host_os@,$host_os,;t t
39180s,@CC@,$CC,;t t
39181s,@CFLAGS@,$CFLAGS,;t t
39182s,@LDFLAGS@,$LDFLAGS,;t t
39183s,@CPPFLAGS@,$CPPFLAGS,;t t
39184s,@ac_ct_CC@,$ac_ct_CC,;t t
39185s,@EXEEXT@,$EXEEXT,;t t
39186s,@OBJEXT@,$OBJEXT,;t t
39187s,@DEPDIR@,$DEPDIR,;t t
39188s,@am__include@,$am__include,;t t
39189s,@am__quote@,$am__quote,;t t
39190s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39191s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39192s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39193s,@CCDEPMODE@,$CCDEPMODE,;t t
39194s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39195s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39196s,@EGREP@,$EGREP,;t t
39197s,@LN_S@,$LN_S,;t t
39198s,@ECHO@,$ECHO,;t t
39199s,@AR@,$AR,;t t
39200s,@ac_ct_AR@,$ac_ct_AR,;t t
39201s,@RANLIB@,$RANLIB,;t t
39202s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39203s,@CPP@,$CPP,;t t
39204s,@CXX@,$CXX,;t t
39205s,@CXXFLAGS@,$CXXFLAGS,;t t
39206s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39207s,@CXXDEPMODE@,$CXXDEPMODE,;t t
39208s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
39209s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
39210s,@CXXCPP@,$CXXCPP,;t t
39211s,@F77@,$F77,;t t
39212s,@FFLAGS@,$FFLAGS,;t t
39213s,@ac_ct_F77@,$ac_ct_F77,;t t
39214s,@LIBTOOL@,$LIBTOOL,;t t
39215s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
39216s,@MINOR_VERSION@,$MINOR_VERSION,;t t
39217s,@MICRO_VERSION@,$MICRO_VERSION,;t t
39218s,@YACC@,$YACC,;t t
39219s,@ARCH@,$ARCH,;t t
39220s,@DOT_EXE_EXT@,$DOT_EXE_EXT,;t t
39221s,@INSTALL_BIN_PROGRAM@,$INSTALL_BIN_PROGRAM,;t t
39222s,@INSTALL_BIN_SCRIPT@,$INSTALL_BIN_SCRIPT,;t t
39223s,@FMT_LIBS@,$FMT_LIBS,;t t
39224s,@JAVABRANCH@,$JAVABRANCH,;t t
39225s,@JAVAC@,$JAVAC,;t t
39226s,@JAR@,$JAR,;t t
39227s,@JAVAH@,$JAVAH,;t t
39228s,@JINC@,$JINC,;t t
39229s,@DX_JAVA_CLASSPATH@,$DX_JAVA_CLASSPATH,;t t
39230s,@JNI_CFLAGS@,$JNI_CFLAGS,;t t
39231s,@BUILDBASE@,$BUILDBASE,;t t
39232s,@DXEXEC_EXP@,$DXEXEC_EXP,;t t
39233s,@DXEXEC_IMP@,$DXEXEC_IMP,;t t
39234s,@DXUI_ALDFLAGS@,$DXUI_ALDFLAGS,;t t
39235s,@VERSION_STRING@,$VERSION_STRING,;t t
39236s,@ANYDX@,$ANYDX,;t t
39237s,@DXABI@,$DXABI,;t t
39238s,@DX_RTL_CFLAGS@,$DX_RTL_CFLAGS,;t t
39239s,@DX_RTL_ALDFLAGS@,$DX_RTL_ALDFLAGS,;t t
39240s,@DX_RTL_SYSLIBS@,$DX_RTL_SYSLIBS,;t t
39241s,@DX_RTL_IMPORTS@,$DX_RTL_IMPORTS,;t t
39242s,@DX_RTL_DXENTRY@,$DX_RTL_DXENTRY,;t t
39243s,@DX_OUTBOARD_LIBS@,$DX_OUTBOARD_LIBS,;t t
39244s,@DX_X_LINK_LIBS@,$DX_X_LINK_LIBS,;t t
39245s,@DX_GL_LINK_LIBS@,$DX_GL_LINK_LIBS,;t t
39246s,@SHARED_LINK@,$SHARED_LINK,;t t
39247s,@MKDEP@,$MKDEP,;t t
39248s,@LOCALMAKE@,$LOCALMAKE,;t t
39249s,@rsh_path@,$rsh_path,;t t
39250s,@bsh_path@,$bsh_path,;t t
39251s,@LIB_LF@,$LIB_LF,;t t
39252s,@JAVA@,$JAVA,;t t
39253s,@WITH_BUILDLIBDX_TRUE@,$WITH_BUILDLIBDX_TRUE,;t t
39254s,@WITH_BUILDLIBDX_FALSE@,$WITH_BUILDLIBDX_FALSE,;t t
39255s,@WITH_INSTALLHTML_TRUE@,$WITH_INSTALLHTML_TRUE,;t t
39256s,@WITH_INSTALLHTML_FALSE@,$WITH_INSTALLHTML_FALSE,;t t
39257s,@HAVE_MC@,$HAVE_MC,;t t
39258s,@LEX@,$LEX,;t t
39259s,@LEXLIB@,$LEXLIB,;t t
39260s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
39261s,@yakker@,$yakker,;t t
39262s,@LIBOBJS@,$LIBOBJS,;t t
39263s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39264CEOF
39265
39266_ACEOF
39267
39268  cat >>$CONFIG_STATUS <<\_ACEOF
39269  # Split the substitutions into bite-sized pieces for seds with
39270  # small command number limits, like on Digital OSF/1 and HP-UX.
39271  ac_max_sed_lines=48
39272  ac_sed_frag=1 # Number of current file.
39273  ac_beg=1 # First line for current file.
39274  ac_end=$ac_max_sed_lines # Line after last line for current file.
39275  ac_more_lines=:
39276  ac_sed_cmds=
39277  while $ac_more_lines; do
39278    if test $ac_beg -gt 1; then
39279      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39280    else
39281      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39282    fi
39283    if test ! -s $tmp/subs.frag; then
39284      ac_more_lines=false
39285    else
39286      # The purpose of the label and of the branching condition is to
39287      # speed up the sed processing (if there are no `@' at all, there
39288      # is no need to browse any of the substitutions).
39289      # These are the two extra sed commands mentioned above.
39290      (echo ':t
39291  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39292      if test -z "$ac_sed_cmds"; then
39293	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39294      else
39295	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39296      fi
39297      ac_sed_frag=`expr $ac_sed_frag + 1`
39298      ac_beg=$ac_end
39299      ac_end=`expr $ac_end + $ac_max_sed_lines`
39300    fi
39301  done
39302  if test -z "$ac_sed_cmds"; then
39303    ac_sed_cmds=cat
39304  fi
39305fi # test -n "$CONFIG_FILES"
39306
39307_ACEOF
39308cat >>$CONFIG_STATUS <<\_ACEOF
39309for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39310  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39311  case $ac_file in
39312  - | *:- | *:-:* ) # input from stdin
39313	cat >$tmp/stdin
39314	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39315	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39316  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39317	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39318  * )   ac_file_in=$ac_file.in ;;
39319  esac
39320
39321  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39322  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39323$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39324	 X"$ac_file" : 'X\(//\)[^/]' \| \
39325	 X"$ac_file" : 'X\(//\)$' \| \
39326	 X"$ac_file" : 'X\(/\)' \| \
39327	 .     : '\(.\)' 2>/dev/null ||
39328echo X"$ac_file" |
39329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39330  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39331  	  /^X\(\/\/\)$/{ s//\1/; q; }
39332  	  /^X\(\/\).*/{ s//\1/; q; }
39333  	  s/.*/./; q'`
39334  { if $as_mkdir_p; then
39335    mkdir -p "$ac_dir"
39336  else
39337    as_dir="$ac_dir"
39338    as_dirs=
39339    while test ! -d "$as_dir"; do
39340      as_dirs="$as_dir $as_dirs"
39341      as_dir=`(dirname "$as_dir") 2>/dev/null ||
39342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39343	 X"$as_dir" : 'X\(//\)[^/]' \| \
39344	 X"$as_dir" : 'X\(//\)$' \| \
39345	 X"$as_dir" : 'X\(/\)' \| \
39346	 .     : '\(.\)' 2>/dev/null ||
39347echo X"$as_dir" |
39348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39349  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39350  	  /^X\(\/\/\)$/{ s//\1/; q; }
39351  	  /^X\(\/\).*/{ s//\1/; q; }
39352  	  s/.*/./; q'`
39353    done
39354    test ! -n "$as_dirs" || mkdir $as_dirs
39355  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39356echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39357   { (exit 1); exit 1; }; }; }
39358
39359  ac_builddir=.
39360
39361if test "$ac_dir" != .; then
39362  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39363  # A "../" for each directory in $ac_dir_suffix.
39364  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39365else
39366  ac_dir_suffix= ac_top_builddir=
39367fi
39368
39369case $srcdir in
39370  .)  # No --srcdir option.  We are building in place.
39371    ac_srcdir=.
39372    if test -z "$ac_top_builddir"; then
39373       ac_top_srcdir=.
39374    else
39375       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39376    fi ;;
39377  [\\/]* | ?:[\\/]* )  # Absolute path.
39378    ac_srcdir=$srcdir$ac_dir_suffix;
39379    ac_top_srcdir=$srcdir ;;
39380  *) # Relative path.
39381    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39382    ac_top_srcdir=$ac_top_builddir$srcdir ;;
39383esac
39384
39385# Do not use `cd foo && pwd` to compute absolute paths, because
39386# the directories may not exist.
39387case `pwd` in
39388.) ac_abs_builddir="$ac_dir";;
39389*)
39390  case "$ac_dir" in
39391  .) ac_abs_builddir=`pwd`;;
39392  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39393  *) ac_abs_builddir=`pwd`/"$ac_dir";;
39394  esac;;
39395esac
39396case $ac_abs_builddir in
39397.) ac_abs_top_builddir=${ac_top_builddir}.;;
39398*)
39399  case ${ac_top_builddir}. in
39400  .) ac_abs_top_builddir=$ac_abs_builddir;;
39401  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39402  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39403  esac;;
39404esac
39405case $ac_abs_builddir in
39406.) ac_abs_srcdir=$ac_srcdir;;
39407*)
39408  case $ac_srcdir in
39409  .) ac_abs_srcdir=$ac_abs_builddir;;
39410  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39411  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39412  esac;;
39413esac
39414case $ac_abs_builddir in
39415.) ac_abs_top_srcdir=$ac_top_srcdir;;
39416*)
39417  case $ac_top_srcdir in
39418  .) ac_abs_top_srcdir=$ac_abs_builddir;;
39419  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39420  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39421  esac;;
39422esac
39423
39424
39425  case $INSTALL in
39426  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39427  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39428  esac
39429
39430  if test x"$ac_file" != x-; then
39431    { echo "$as_me:$LINENO: creating $ac_file" >&5
39432echo "$as_me: creating $ac_file" >&6;}
39433    rm -f "$ac_file"
39434  fi
39435  # Let's still pretend it is `configure' which instantiates (i.e., don't
39436  # use $as_me), people would be surprised to read:
39437  #    /* config.h.  Generated by config.status.  */
39438  if test x"$ac_file" = x-; then
39439    configure_input=
39440  else
39441    configure_input="$ac_file.  "
39442  fi
39443  configure_input=$configure_input"Generated from `echo $ac_file_in |
39444				     sed 's,.*/,,'` by configure."
39445
39446  # First look for the input files in the build tree, otherwise in the
39447  # src tree.
39448  ac_file_inputs=`IFS=:
39449    for f in $ac_file_in; do
39450      case $f in
39451      -) echo $tmp/stdin ;;
39452      [\\/$]*)
39453	 # Absolute (can't be DOS-style, as IFS=:)
39454	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39455echo "$as_me: error: cannot find input file: $f" >&2;}
39456   { (exit 1); exit 1; }; }
39457	 echo "$f";;
39458      *) # Relative
39459	 if test -f "$f"; then
39460	   # Build tree
39461	   echo "$f"
39462	 elif test -f "$srcdir/$f"; then
39463	   # Source tree
39464	   echo "$srcdir/$f"
39465	 else
39466	   # /dev/null tree
39467	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39468echo "$as_me: error: cannot find input file: $f" >&2;}
39469   { (exit 1); exit 1; }; }
39470	 fi;;
39471      esac
39472    done` || { (exit 1); exit 1; }
39473_ACEOF
39474cat >>$CONFIG_STATUS <<_ACEOF
39475  sed "$ac_vpsub
39476$extrasub
39477_ACEOF
39478cat >>$CONFIG_STATUS <<\_ACEOF
39479:t
39480/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39481s,@configure_input@,$configure_input,;t t
39482s,@srcdir@,$ac_srcdir,;t t
39483s,@abs_srcdir@,$ac_abs_srcdir,;t t
39484s,@top_srcdir@,$ac_top_srcdir,;t t
39485s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39486s,@builddir@,$ac_builddir,;t t
39487s,@abs_builddir@,$ac_abs_builddir,;t t
39488s,@top_builddir@,$ac_top_builddir,;t t
39489s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39490s,@INSTALL@,$ac_INSTALL,;t t
39491" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39492  rm -f $tmp/stdin
39493  if test x"$ac_file" != x-; then
39494    mv $tmp/out $ac_file
39495  else
39496    cat $tmp/out
39497    rm -f $tmp/out
39498  fi
39499
39500done
39501_ACEOF
39502cat >>$CONFIG_STATUS <<\_ACEOF
39503
39504#
39505# CONFIG_HEADER section.
39506#
39507
39508# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39509# NAME is the cpp macro being defined and VALUE is the value it is being given.
39510#
39511# ac_d sets the value in "#define NAME VALUE" lines.
39512ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
39513ac_dB='[	 ].*$,\1#\2'
39514ac_dC=' '
39515ac_dD=',;t'
39516# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
39517ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
39518ac_uB='$,\1#\2define\3'
39519ac_uC=' '
39520ac_uD=',;t'
39521
39522for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
39523  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39524  case $ac_file in
39525  - | *:- | *:-:* ) # input from stdin
39526	cat >$tmp/stdin
39527	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39528	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39529  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39530	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39531  * )   ac_file_in=$ac_file.in ;;
39532  esac
39533
39534  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
39535echo "$as_me: creating $ac_file" >&6;}
39536
39537  # First look for the input files in the build tree, otherwise in the
39538  # src tree.
39539  ac_file_inputs=`IFS=:
39540    for f in $ac_file_in; do
39541      case $f in
39542      -) echo $tmp/stdin ;;
39543      [\\/$]*)
39544	 # Absolute (can't be DOS-style, as IFS=:)
39545	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39546echo "$as_me: error: cannot find input file: $f" >&2;}
39547   { (exit 1); exit 1; }; }
39548	 # Do quote $f, to prevent DOS paths from being IFS'd.
39549	 echo "$f";;
39550      *) # Relative
39551	 if test -f "$f"; then
39552	   # Build tree
39553	   echo "$f"
39554	 elif test -f "$srcdir/$f"; then
39555	   # Source tree
39556	   echo "$srcdir/$f"
39557	 else
39558	   # /dev/null tree
39559	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39560echo "$as_me: error: cannot find input file: $f" >&2;}
39561   { (exit 1); exit 1; }; }
39562	 fi;;
39563      esac
39564    done` || { (exit 1); exit 1; }
39565  # Remove the trailing spaces.
39566  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
39567
39568_ACEOF
39569
39570# Transform confdefs.h into two sed scripts, `conftest.defines' and
39571# `conftest.undefs', that substitutes the proper values into
39572# config.h.in to produce config.h.  The first handles `#define'
39573# templates, and the second `#undef' templates.
39574# And first: Protect against being on the right side of a sed subst in
39575# config.status.  Protect against being in an unquoted here document
39576# in config.status.
39577rm -f conftest.defines conftest.undefs
39578# Using a here document instead of a string reduces the quoting nightmare.
39579# Putting comments in sed scripts is not portable.
39580#
39581# `end' is used to avoid that the second main sed command (meant for
39582# 0-ary CPP macros) applies to n-ary macro definitions.
39583# See the Autoconf documentation for `clear'.
39584cat >confdef2sed.sed <<\_ACEOF
39585s/[\\&,]/\\&/g
39586s,[\\$`],\\&,g
39587t clear
39588: clear
39589s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
39590t end
39591s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
39592: end
39593_ACEOF
39594# If some macros were called several times there might be several times
39595# the same #defines, which is useless.  Nevertheless, we may not want to
39596# sort them, since we want the *last* AC-DEFINE to be honored.
39597uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
39598sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
39599rm -f confdef2sed.sed
39600
39601# This sed command replaces #undef with comments.  This is necessary, for
39602# example, in the case of _POSIX_SOURCE, which is predefined and required
39603# on some systems where configure will not decide to define it.
39604cat >>conftest.undefs <<\_ACEOF
39605s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
39606_ACEOF
39607
39608# Break up conftest.defines because some shells have a limit on the size
39609# of here documents, and old seds have small limits too (100 cmds).
39610echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
39611echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
39612echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
39613echo '  :' >>$CONFIG_STATUS
39614rm -f conftest.tail
39615while grep . conftest.defines >/dev/null
39616do
39617  # Write a limited-size here document to $tmp/defines.sed.
39618  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
39619  # Speed up: don't consider the non `#define' lines.
39620  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
39621  # Work around the forget-to-reset-the-flag bug.
39622  echo 't clr' >>$CONFIG_STATUS
39623  echo ': clr' >>$CONFIG_STATUS
39624  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
39625  echo 'CEOF
39626  sed -f $tmp/defines.sed $tmp/in >$tmp/out
39627  rm -f $tmp/in
39628  mv $tmp/out $tmp/in
39629' >>$CONFIG_STATUS
39630  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
39631  rm -f conftest.defines
39632  mv conftest.tail conftest.defines
39633done
39634rm -f conftest.defines
39635echo '  fi # grep' >>$CONFIG_STATUS
39636echo >>$CONFIG_STATUS
39637
39638# Break up conftest.undefs because some shells have a limit on the size
39639# of here documents, and old seds have small limits too (100 cmds).
39640echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
39641rm -f conftest.tail
39642while grep . conftest.undefs >/dev/null
39643do
39644  # Write a limited-size here document to $tmp/undefs.sed.
39645  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
39646  # Speed up: don't consider the non `#undef'
39647  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
39648  # Work around the forget-to-reset-the-flag bug.
39649  echo 't clr' >>$CONFIG_STATUS
39650  echo ': clr' >>$CONFIG_STATUS
39651  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
39652  echo 'CEOF
39653  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
39654  rm -f $tmp/in
39655  mv $tmp/out $tmp/in
39656' >>$CONFIG_STATUS
39657  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
39658  rm -f conftest.undefs
39659  mv conftest.tail conftest.undefs
39660done
39661rm -f conftest.undefs
39662
39663cat >>$CONFIG_STATUS <<\_ACEOF
39664  # Let's still pretend it is `configure' which instantiates (i.e., don't
39665  # use $as_me), people would be surprised to read:
39666  #    /* config.h.  Generated by config.status.  */
39667  if test x"$ac_file" = x-; then
39668    echo "/* Generated by configure.  */" >$tmp/config.h
39669  else
39670    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
39671  fi
39672  cat $tmp/in >>$tmp/config.h
39673  rm -f $tmp/in
39674  if test x"$ac_file" != x-; then
39675    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
39676      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39677echo "$as_me: $ac_file is unchanged" >&6;}
39678    else
39679      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39681	 X"$ac_file" : 'X\(//\)[^/]' \| \
39682	 X"$ac_file" : 'X\(//\)$' \| \
39683	 X"$ac_file" : 'X\(/\)' \| \
39684	 .     : '\(.\)' 2>/dev/null ||
39685echo X"$ac_file" |
39686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39687  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39688  	  /^X\(\/\/\)$/{ s//\1/; q; }
39689  	  /^X\(\/\).*/{ s//\1/; q; }
39690  	  s/.*/./; q'`
39691      { if $as_mkdir_p; then
39692    mkdir -p "$ac_dir"
39693  else
39694    as_dir="$ac_dir"
39695    as_dirs=
39696    while test ! -d "$as_dir"; do
39697      as_dirs="$as_dir $as_dirs"
39698      as_dir=`(dirname "$as_dir") 2>/dev/null ||
39699$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39700	 X"$as_dir" : 'X\(//\)[^/]' \| \
39701	 X"$as_dir" : 'X\(//\)$' \| \
39702	 X"$as_dir" : 'X\(/\)' \| \
39703	 .     : '\(.\)' 2>/dev/null ||
39704echo X"$as_dir" |
39705    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39706  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39707  	  /^X\(\/\/\)$/{ s//\1/; q; }
39708  	  /^X\(\/\).*/{ s//\1/; q; }
39709  	  s/.*/./; q'`
39710    done
39711    test ! -n "$as_dirs" || mkdir $as_dirs
39712  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39713echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39714   { (exit 1); exit 1; }; }; }
39715
39716      rm -f $ac_file
39717      mv $tmp/config.h $ac_file
39718    fi
39719  else
39720    cat $tmp/config.h
39721    rm -f $tmp/config.h
39722  fi
39723# Compute $ac_file's index in $config_headers.
39724_am_stamp_count=1
39725for _am_header in $config_headers :; do
39726  case $_am_header in
39727    $ac_file | $ac_file:* )
39728      break ;;
39729    * )
39730      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39731  esac
39732done
39733echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
39734$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39735	 X$ac_file : 'X\(//\)[^/]' \| \
39736	 X$ac_file : 'X\(//\)$' \| \
39737	 X$ac_file : 'X\(/\)' \| \
39738	 .     : '\(.\)' 2>/dev/null ||
39739echo X$ac_file |
39740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39741  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39742  	  /^X\(\/\/\)$/{ s//\1/; q; }
39743  	  /^X\(\/\).*/{ s//\1/; q; }
39744  	  s/.*/./; q'`/stamp-h$_am_stamp_count
39745done
39746_ACEOF
39747cat >>$CONFIG_STATUS <<\_ACEOF
39748
39749#
39750# CONFIG_COMMANDS section.
39751#
39752for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
39753  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
39754  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
39755  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
39756$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39757	 X"$ac_dest" : 'X\(//\)[^/]' \| \
39758	 X"$ac_dest" : 'X\(//\)$' \| \
39759	 X"$ac_dest" : 'X\(/\)' \| \
39760	 .     : '\(.\)' 2>/dev/null ||
39761echo X"$ac_dest" |
39762    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39763  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39764  	  /^X\(\/\/\)$/{ s//\1/; q; }
39765  	  /^X\(\/\).*/{ s//\1/; q; }
39766  	  s/.*/./; q'`
39767  { if $as_mkdir_p; then
39768    mkdir -p "$ac_dir"
39769  else
39770    as_dir="$ac_dir"
39771    as_dirs=
39772    while test ! -d "$as_dir"; do
39773      as_dirs="$as_dir $as_dirs"
39774      as_dir=`(dirname "$as_dir") 2>/dev/null ||
39775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39776	 X"$as_dir" : 'X\(//\)[^/]' \| \
39777	 X"$as_dir" : 'X\(//\)$' \| \
39778	 X"$as_dir" : 'X\(/\)' \| \
39779	 .     : '\(.\)' 2>/dev/null ||
39780echo X"$as_dir" |
39781    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39782  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39783  	  /^X\(\/\/\)$/{ s//\1/; q; }
39784  	  /^X\(\/\).*/{ s//\1/; q; }
39785  	  s/.*/./; q'`
39786    done
39787    test ! -n "$as_dirs" || mkdir $as_dirs
39788  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39789echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39790   { (exit 1); exit 1; }; }; }
39791
39792  ac_builddir=.
39793
39794if test "$ac_dir" != .; then
39795  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39796  # A "../" for each directory in $ac_dir_suffix.
39797  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39798else
39799  ac_dir_suffix= ac_top_builddir=
39800fi
39801
39802case $srcdir in
39803  .)  # No --srcdir option.  We are building in place.
39804    ac_srcdir=.
39805    if test -z "$ac_top_builddir"; then
39806       ac_top_srcdir=.
39807    else
39808       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39809    fi ;;
39810  [\\/]* | ?:[\\/]* )  # Absolute path.
39811    ac_srcdir=$srcdir$ac_dir_suffix;
39812    ac_top_srcdir=$srcdir ;;
39813  *) # Relative path.
39814    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39815    ac_top_srcdir=$ac_top_builddir$srcdir ;;
39816esac
39817
39818# Do not use `cd foo && pwd` to compute absolute paths, because
39819# the directories may not exist.
39820case `pwd` in
39821.) ac_abs_builddir="$ac_dir";;
39822*)
39823  case "$ac_dir" in
39824  .) ac_abs_builddir=`pwd`;;
39825  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39826  *) ac_abs_builddir=`pwd`/"$ac_dir";;
39827  esac;;
39828esac
39829case $ac_abs_builddir in
39830.) ac_abs_top_builddir=${ac_top_builddir}.;;
39831*)
39832  case ${ac_top_builddir}. in
39833  .) ac_abs_top_builddir=$ac_abs_builddir;;
39834  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39835  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39836  esac;;
39837esac
39838case $ac_abs_builddir in
39839.) ac_abs_srcdir=$ac_srcdir;;
39840*)
39841  case $ac_srcdir in
39842  .) ac_abs_srcdir=$ac_abs_builddir;;
39843  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39844  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39845  esac;;
39846esac
39847case $ac_abs_builddir in
39848.) ac_abs_top_srcdir=$ac_top_srcdir;;
39849*)
39850  case $ac_top_srcdir in
39851  .) ac_abs_top_srcdir=$ac_abs_builddir;;
39852  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39853  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39854  esac;;
39855esac
39856
39857
39858  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
39859echo "$as_me: executing $ac_dest commands" >&6;}
39860  case $ac_dest in
39861    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39862  # Strip MF so we end up with the name of the file.
39863  mf=`echo "$mf" | sed -e 's/:.*$//'`
39864  # Check whether this is an Automake generated Makefile or not.
39865  # We used to match only the files named `Makefile.in', but
39866  # some people rename them; so instead we look at the file content.
39867  # Grep'ing the first line is not enough: some people post-process
39868  # each Makefile.in and add a new line on top of each file to say so.
39869  # So let's grep whole file.
39870  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39871    dirpart=`(dirname "$mf") 2>/dev/null ||
39872$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39873	 X"$mf" : 'X\(//\)[^/]' \| \
39874	 X"$mf" : 'X\(//\)$' \| \
39875	 X"$mf" : 'X\(/\)' \| \
39876	 .     : '\(.\)' 2>/dev/null ||
39877echo X"$mf" |
39878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39879  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39880  	  /^X\(\/\/\)$/{ s//\1/; q; }
39881  	  /^X\(\/\).*/{ s//\1/; q; }
39882  	  s/.*/./; q'`
39883  else
39884    continue
39885  fi
39886  # Extract the definition of DEPDIR, am__include, and am__quote
39887  # from the Makefile without running `make'.
39888  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39889  test -z "$DEPDIR" && continue
39890  am__include=`sed -n 's/^am__include = //p' < "$mf"`
39891  test -z "am__include" && continue
39892  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39893  # When using ansi2knr, U may be empty or an underscore; expand it
39894  U=`sed -n 's/^U = //p' < "$mf"`
39895  # Find all dependency output files, they are included files with
39896  # $(DEPDIR) in their names.  We invoke sed twice because it is the
39897  # simplest approach to changing $(DEPDIR) to its actual value in the
39898  # expansion.
39899  for file in `sed -n "
39900    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39901       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39902    # Make sure the directory exists.
39903    test -f "$dirpart/$file" && continue
39904    fdir=`(dirname "$file") 2>/dev/null ||
39905$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39906	 X"$file" : 'X\(//\)[^/]' \| \
39907	 X"$file" : 'X\(//\)$' \| \
39908	 X"$file" : 'X\(/\)' \| \
39909	 .     : '\(.\)' 2>/dev/null ||
39910echo X"$file" |
39911    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39912  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39913  	  /^X\(\/\/\)$/{ s//\1/; q; }
39914  	  /^X\(\/\).*/{ s//\1/; q; }
39915  	  s/.*/./; q'`
39916    { if $as_mkdir_p; then
39917    mkdir -p $dirpart/$fdir
39918  else
39919    as_dir=$dirpart/$fdir
39920    as_dirs=
39921    while test ! -d "$as_dir"; do
39922      as_dirs="$as_dir $as_dirs"
39923      as_dir=`(dirname "$as_dir") 2>/dev/null ||
39924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39925	 X"$as_dir" : 'X\(//\)[^/]' \| \
39926	 X"$as_dir" : 'X\(//\)$' \| \
39927	 X"$as_dir" : 'X\(/\)' \| \
39928	 .     : '\(.\)' 2>/dev/null ||
39929echo X"$as_dir" |
39930    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39931  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39932  	  /^X\(\/\/\)$/{ s//\1/; q; }
39933  	  /^X\(\/\).*/{ s//\1/; q; }
39934  	  s/.*/./; q'`
39935    done
39936    test ! -n "$as_dirs" || mkdir $as_dirs
39937  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
39938echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
39939   { (exit 1); exit 1; }; }; }
39940
39941    # echo "creating $dirpart/$file"
39942    echo '# dummy' > "$dirpart/$file"
39943  done
39944done
39945 ;;
39946  esac
39947done
39948_ACEOF
39949
39950cat >>$CONFIG_STATUS <<\_ACEOF
39951
39952{ (exit 0); exit 0; }
39953_ACEOF
39954chmod +x $CONFIG_STATUS
39955ac_clean_files=$ac_clean_files_save
39956
39957
39958# configure is writing to config.log, and then calls config.status.
39959# config.status does its own redirection, appending to config.log.
39960# Unfortunately, on DOS this fails, as config.log is still kept open
39961# by configure, so config.status won't be able to write to it; its
39962# output is simply discarded.  So we exec the FD to /dev/null,
39963# effectively closing config.log, so it can be properly (re)opened and
39964# appended to by config.status.  When coming back to configure, we
39965# need to make the FD available again.
39966if test "$no_create" != yes; then
39967  ac_cs_success=:
39968  ac_config_status_args=
39969  test "$silent" = yes &&
39970    ac_config_status_args="$ac_config_status_args --quiet"
39971  exec 5>/dev/null
39972  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39973  exec 5>>config.log
39974  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39975  # would make configure fail if this is the last instruction.
39976  $ac_cs_success || { (exit 1); exit 1; }
39977fi
39978
39979