1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
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=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="include/fx.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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE FOX_MAJOR_VERSION FOX_MINOR_VERSION FOX_PATCH_LEVEL LT_RELEASE LT_CURRENT LT_REVISION LT_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CXX CXXFLAGS ac_ct_CXX build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS FOX_BYTEORDER X_BASE_LIBS GL_LIBS GL_TESTS 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 this package 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
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --enable-shared[=PKGS]
1031                          build shared libraries [default=yes]
1032  --enable-static[=PKGS]
1033                          build static libraries [default=yes]
1034  --enable-fast-install[=PKGS]
1035                          optimize for fast installation [default=yes]
1036  --disable-libtool-lock  avoid locking (might break parallel builds)
1037  --with-shape            enable XShape support
1038  --with-xshm             compile with XShm support
1039  --enable-threadsafe     Thread-safe library calls
1040  --disable-jpeg          compile without JPEG image support
1041  --disable-png           compile without PNG image support
1042  --disable-tiff          compile without TIFF image support
1043  --disable-zlib          compile without zlib support
1044  --disable-bz2lib        compile without bz2lib support
1045  --enable-cups           compile with CUPS support
1046  --enable-debug          compile for debugging
1047  --enable-release        compile for release
1048
1049Optional Packages:
1050  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1053  --with-pic              try to use only PIC/non-PIC objects [default=use
1054                          both]
1055  --with-tags[=TAGS]
1056                          include additional configurations [automatic]
1057  --with-x                use the X Window System
1058  --with-mingw32=DIR    MingW32 installation location
1059  --with-xft              enable Xft support
1060  --with-xcursor          compile with Xcursor support
1061  --with-xrandr           compile with XRandR support
1062  --with-profiling        choices are yes, no, or gprof
1063  --with-opengl           choices are yes, no
1064
1065Some influential environment variables:
1066  CC          C compiler command
1067  CFLAGS      C compiler flags
1068  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1069              nonstandard directory <lib dir>
1070  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071              headers in a nonstandard directory <include dir>
1072  CPP         C preprocessor
1073  CXX         C++ compiler command
1074  CXXFLAGS    C++ compiler flags
1075  CXXCPP      C++ preprocessor
1076  F77         Fortran 77 compiler command
1077  FFLAGS      Fortran 77 compiler flags
1078
1079Use these variables to override the choices made by `configure' or to help
1080it to find libraries and programs with nonstandard names/locations.
1081
1082_ACEOF
1083fi
1084
1085if test "$ac_init_help" = "recursive"; then
1086  # If there are subdirs, report their specific --help.
1087  ac_popdir=`pwd`
1088  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089    test -d $ac_dir || continue
1090    ac_builddir=.
1091
1092if test "$ac_dir" != .; then
1093  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094  # A "../" for each directory in $ac_dir_suffix.
1095  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096else
1097  ac_dir_suffix= ac_top_builddir=
1098fi
1099
1100case $srcdir in
1101  .)  # No --srcdir option.  We are building in place.
1102    ac_srcdir=.
1103    if test -z "$ac_top_builddir"; then
1104       ac_top_srcdir=.
1105    else
1106       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107    fi ;;
1108  [\\/]* | ?:[\\/]* )  # Absolute path.
1109    ac_srcdir=$srcdir$ac_dir_suffix;
1110    ac_top_srcdir=$srcdir ;;
1111  *) # Relative path.
1112    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114esac
1115
1116# Do not use `cd foo && pwd` to compute absolute paths, because
1117# the directories may not exist.
1118case `pwd` in
1119.) ac_abs_builddir="$ac_dir";;
1120*)
1121  case "$ac_dir" in
1122  .) ac_abs_builddir=`pwd`;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_top_builddir=${ac_top_builddir}.;;
1129*)
1130  case ${ac_top_builddir}. in
1131  .) ac_abs_top_builddir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134  esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_srcdir=$ac_srcdir;;
1138*)
1139  case $ac_srcdir in
1140  .) ac_abs_srcdir=$ac_abs_builddir;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143  esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_top_srcdir=$ac_top_srcdir;;
1147*)
1148  case $ac_top_srcdir in
1149  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152  esac;;
1153esac
1154
1155    cd $ac_dir
1156    # Check for guested configure; otherwise get Cygnus style configure.
1157    if test -f $ac_srcdir/configure.gnu; then
1158      echo
1159      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1160    elif test -f $ac_srcdir/configure; then
1161      echo
1162      $SHELL $ac_srcdir/configure  --help=recursive
1163    elif test -f $ac_srcdir/configure.ac ||
1164	   test -f $ac_srcdir/configure.in; then
1165      echo
1166      $ac_configure --help
1167    else
1168      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169    fi
1170    cd $ac_popdir
1171  done
1172fi
1173
1174test -n "$ac_init_help" && exit 0
1175if $ac_init_version; then
1176  cat <<\_ACEOF
1177
1178Copyright (C) 2003 Free Software Foundation, Inc.
1179This configure script is free software; the Free Software Foundation
1180gives unlimited permission to copy, distribute and modify it.
1181_ACEOF
1182  exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
1189It was created by $as_me, which was
1190generated by GNU Autoconf 2.59.  Invocation command line was
1191
1192  $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1209
1210/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1211/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1214/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1215/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1216/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223  IFS=$as_save_IFS
1224  test -z "$as_dir" && as_dir=.
1225  echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
1242# Strip out --silent because we don't want to record it for future runs.
1243# Also quote any args containing shell meta-characters.
1244# Make two passes to allow for proper duplicate-argument suppression.
1245ac_configure_args=
1246ac_configure_args0=
1247ac_configure_args1=
1248ac_sep=
1249ac_must_keep_next=false
1250for ac_pass in 1 2
1251do
1252  for ac_arg
1253  do
1254    case $ac_arg in
1255    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257    | -silent | --silent | --silen | --sile | --sil)
1258      continue ;;
1259    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261    esac
1262    case $ac_pass in
1263    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264    2)
1265      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266      if test $ac_must_keep_next = true; then
1267	ac_must_keep_next=false # Got value, back to normal.
1268      else
1269	case $ac_arg in
1270	  *=* | --config-cache | -C | -disable-* | --disable-* \
1271	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273	  | -with-* | --with-* | -without-* | --without-* | --x)
1274	    case "$ac_configure_args0 " in
1275	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276	    esac
1277	    ;;
1278	  -* ) ac_must_keep_next=true ;;
1279	esac
1280      fi
1281      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282      # Get rid of the leading space.
1283      ac_sep=" "
1284      ;;
1285    esac
1286  done
1287done
1288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log.  We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297  # Save into config.log some information that might help in debugging.
1298  {
1299    echo
1300
1301    cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306    echo
1307    # The following way of writing the cache mishandles newlines in values,
1308{
1309  (set) 2>&1 |
1310    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311    *ac_space=\ *)
1312      sed -n \
1313	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315      ;;
1316    *)
1317      sed -n \
1318	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319      ;;
1320    esac;
1321}
1322    echo
1323
1324    cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329    echo
1330    for ac_var in $ac_subst_vars
1331    do
1332      eval ac_val=$`echo $ac_var`
1333      echo "$ac_var='"'"'$ac_val'"'"'"
1334    done | sort
1335    echo
1336
1337    if test -n "$ac_subst_files"; then
1338      cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343      echo
1344      for ac_var in $ac_subst_files
1345      do
1346	eval ac_val=$`echo $ac_var`
1347	echo "$ac_var='"'"'$ac_val'"'"'"
1348      done | sort
1349      echo
1350    fi
1351
1352    if test -s confdefs.h; then
1353      cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358      echo
1359      sed "/^$/d" confdefs.h | sort
1360      echo
1361    fi
1362    test "$ac_signal" != 0 &&
1363      echo "$as_me: caught signal $ac_signal"
1364    echo "$as_me: exit $exit_status"
1365  } >&5
1366  rm -f core *.core &&
1367  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368    exit $exit_status
1369     ' 0
1370for ac_signal in 1 2 13 15; do
1371  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410  if test "x$prefix" != xNONE; then
1411    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412  else
1413    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414  fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417  if test -r "$ac_site_file"; then
1418    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420    sed 's/^/| /' "$ac_site_file" >&5
1421    . "$ac_site_file"
1422  fi
1423done
1424
1425if test -r "$cache_file"; then
1426  # Some versions of bash will fail to source /dev/null (special
1427  # files actually), so we avoid doing that.
1428  if test -f "$cache_file"; then
1429    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431    case $cache_file in
1432      [\\/]* | ?:[\\/]* ) . $cache_file;;
1433      *)                      . ./$cache_file;;
1434    esac
1435  fi
1436else
1437  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439  >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
1446	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448  eval ac_new_set=\$ac_env_${ac_var}_set
1449  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450  eval ac_new_val="\$ac_env_${ac_var}_value"
1451  case $ac_old_set,$ac_new_set in
1452    set,)
1453      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455      ac_cache_corrupted=: ;;
1456    ,set)
1457      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459      ac_cache_corrupted=: ;;
1460    ,);;
1461    *)
1462      if test "x$ac_old_val" != "x$ac_new_val"; then
1463	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1466echo "$as_me:   former value:  $ac_old_val" >&2;}
1467	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1468echo "$as_me:   current value: $ac_new_val" >&2;}
1469	ac_cache_corrupted=:
1470      fi;;
1471  esac
1472  # Pass precious variables to config.status.
1473  if test "$ac_new_set" = set; then
1474    case $ac_new_val in
1475    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477    *) ac_arg=$ac_var=$ac_new_val ;;
1478    esac
1479    case " $ac_configure_args " in
1480      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1481      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482    esac
1483  fi
1484done
1485if $ac_cache_corrupted; then
1486  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490   { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518FOX_MAJOR_VERSION=1
1519
1520FOX_MINOR_VERSION=4
1521
1522FOX_PATCH_LEVEL=35
1523
1524FOX_INTERFACE_VERSION=0
1525
1526FOX_BINARY_VERSION=0
1527
1528VERSION=$FOX_MAJOR_VERSION.$FOX_MINOR_VERSION.$FOX_PATCH_LEVEL
1529am__api_version="1.4"
1530ac_aux_dir=
1531for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1532  if test -f $ac_dir/install-sh; then
1533    ac_aux_dir=$ac_dir
1534    ac_install_sh="$ac_aux_dir/install-sh -c"
1535    break
1536  elif test -f $ac_dir/install.sh; then
1537    ac_aux_dir=$ac_dir
1538    ac_install_sh="$ac_aux_dir/install.sh -c"
1539    break
1540  elif test -f $ac_dir/shtool; then
1541    ac_aux_dir=$ac_dir
1542    ac_install_sh="$ac_aux_dir/shtool install -c"
1543    break
1544  fi
1545done
1546if test -z "$ac_aux_dir"; then
1547  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1548echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1549   { (exit 1); exit 1; }; }
1550fi
1551ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554
1555# Find a good install program.  We prefer a C program (faster),
1556# so one script is as good as another.  But avoid the broken or
1557# incompatible versions:
1558# SysV /etc/install, /usr/sbin/install
1559# SunOS /usr/etc/install
1560# IRIX /sbin/install
1561# AIX /bin/install
1562# AmigaOS /C/install, which installs bootblocks on floppy discs
1563# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1564# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1565# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1566# OS/2's system install, which has a completely different semantic
1567# ./install, which can be erroneously created by make from ./install.sh.
1568echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1569echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1570if test -z "$INSTALL"; then
1571if test "${ac_cv_path_install+set}" = set; then
1572  echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
1574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575for as_dir in $PATH
1576do
1577  IFS=$as_save_IFS
1578  test -z "$as_dir" && as_dir=.
1579  # Account for people who put trailing slashes in PATH elements.
1580case $as_dir/ in
1581  ./ | .// | /cC/* | \
1582  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1583  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1584  /usr/ucb/* ) ;;
1585  *)
1586    # OSF1 and SCO ODT 3.0 have their own names for install.
1587    # Don't use installbsd from OSF since it installs stuff as root
1588    # by default.
1589    for ac_prog in ginstall scoinst install; do
1590      for ac_exec_ext in '' $ac_executable_extensions; do
1591	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1592	  if test $ac_prog = install &&
1593	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1594	    # AIX install.  It has an incompatible calling convention.
1595	    :
1596	  elif test $ac_prog = install &&
1597	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1598	    # program-specific install script used by HP pwplus--don't use.
1599	    :
1600	  else
1601	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1602	    break 3
1603	  fi
1604	fi
1605      done
1606    done
1607    ;;
1608esac
1609done
1610
1611
1612fi
1613  if test "${ac_cv_path_install+set}" = set; then
1614    INSTALL=$ac_cv_path_install
1615  else
1616    # As a last resort, use the slow shell script.  We don't cache a
1617    # path for INSTALL within a source directory, because that will
1618    # break other packages using the cache if that directory is
1619    # removed, or if the path is relative.
1620    INSTALL=$ac_install_sh
1621  fi
1622fi
1623echo "$as_me:$LINENO: result: $INSTALL" >&5
1624echo "${ECHO_T}$INSTALL" >&6
1625
1626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1627# It thinks the first close brace ends the variable substitution.
1628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1629
1630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1631
1632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1633
1634echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1635echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1636# Just in case
1637sleep 1
1638echo timestamp > conftestfile
1639# Do `set' in a subshell so we don't clobber the current shell's
1640# arguments.  Must try -L first in case configure is actually a
1641# symlink; some systems play weird games with the mod time of symlinks
1642# (eg FreeBSD returns the mod time of the symlink's containing
1643# directory).
1644if (
1645   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1646   if test "$*" = "X"; then
1647      # -L didn't work.
1648      set X `ls -t $srcdir/configure conftestfile`
1649   fi
1650   if test "$*" != "X $srcdir/configure conftestfile" \
1651      && test "$*" != "X conftestfile $srcdir/configure"; then
1652
1653      # If neither matched, then we have a broken ls.  This can happen
1654      # if, for instance, CONFIG_SHELL is bash and it inherits a
1655      # broken ls alias from the environment.  This has actually
1656      # happened.  Such a system could not be considered "sane".
1657      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1658alias in your environment" >&5
1659echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1660alias in your environment" >&2;}
1661   { (exit 1); exit 1; }; }
1662   fi
1663
1664   test "$2" = conftestfile
1665   )
1666then
1667   # Ok.
1668   :
1669else
1670   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1671Check your system clock" >&5
1672echo "$as_me: error: newly created file is older than distributed files!
1673Check your system clock" >&2;}
1674   { (exit 1); exit 1; }; }
1675fi
1676rm -f conftest*
1677echo "$as_me:$LINENO: result: yes" >&5
1678echo "${ECHO_T}yes" >&6
1679test "$program_prefix" != NONE &&
1680  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1681# Use a double $ so make ignores it.
1682test "$program_suffix" != NONE &&
1683  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1684# Double any \ or $.  echo might interpret backslashes.
1685# By default was `s,x,x', remove it if useless.
1686cat <<\_ACEOF >conftest.sed
1687s/[\\$]/&&/g;s/;s,x,x,$//
1688_ACEOF
1689program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1690rm conftest.sed
1691
1692echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1693echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1694set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1695if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1696  echo $ECHO_N "(cached) $ECHO_C" >&6
1697else
1698  cat >conftest.make <<\_ACEOF
1699all:
1700	@echo 'ac_maketemp="$(MAKE)"'
1701_ACEOF
1702# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1703eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1704if test -n "$ac_maketemp"; then
1705  eval ac_cv_prog_make_${ac_make}_set=yes
1706else
1707  eval ac_cv_prog_make_${ac_make}_set=no
1708fi
1709rm -f conftest.make
1710fi
1711if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1712  echo "$as_me:$LINENO: result: yes" >&5
1713echo "${ECHO_T}yes" >&6
1714  SET_MAKE=
1715else
1716  echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718  SET_MAKE="MAKE=${MAKE-make}"
1719fi
1720
1721
1722PACKAGE=fox
1723
1724VERSION=$VERSION
1725
1726if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1727  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1728echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1729   { (exit 1); exit 1; }; }
1730fi
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741
1742
1743missing_dir=`cd $ac_aux_dir && pwd`
1744echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1745echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1746# Run test in a subshell; some versions of sh will print an error if
1747# an executable is not found, even if stderr is redirected.
1748# Redirect stdin to placate older versions of autoconf.  Sigh.
1749if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1750   ACLOCAL=aclocal-${am__api_version}
1751   echo "$as_me:$LINENO: result: found" >&5
1752echo "${ECHO_T}found" >&6
1753else
1754   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1755   echo "$as_me:$LINENO: result: missing" >&5
1756echo "${ECHO_T}missing" >&6
1757fi
1758
1759echo "$as_me:$LINENO: checking for working autoconf" >&5
1760echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1761# Run test in a subshell; some versions of sh will print an error if
1762# an executable is not found, even if stderr is redirected.
1763# Redirect stdin to placate older versions of autoconf.  Sigh.
1764if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1765   AUTOCONF=autoconf
1766   echo "$as_me:$LINENO: result: found" >&5
1767echo "${ECHO_T}found" >&6
1768else
1769   AUTOCONF="$missing_dir/missing autoconf"
1770   echo "$as_me:$LINENO: result: missing" >&5
1771echo "${ECHO_T}missing" >&6
1772fi
1773
1774echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1775echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1776# Run test in a subshell; some versions of sh will print an error if
1777# an executable is not found, even if stderr is redirected.
1778# Redirect stdin to placate older versions of autoconf.  Sigh.
1779if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1780   AUTOMAKE=automake-${am__api_version}
1781   echo "$as_me:$LINENO: result: found" >&5
1782echo "${ECHO_T}found" >&6
1783else
1784   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1785   echo "$as_me:$LINENO: result: missing" >&5
1786echo "${ECHO_T}missing" >&6
1787fi
1788
1789echo "$as_me:$LINENO: checking for working autoheader" >&5
1790echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1791# Run test in a subshell; some versions of sh will print an error if
1792# an executable is not found, even if stderr is redirected.
1793# Redirect stdin to placate older versions of autoconf.  Sigh.
1794if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1795   AUTOHEADER=autoheader
1796   echo "$as_me:$LINENO: result: found" >&5
1797echo "${ECHO_T}found" >&6
1798else
1799   AUTOHEADER="$missing_dir/missing autoheader"
1800   echo "$as_me:$LINENO: result: missing" >&5
1801echo "${ECHO_T}missing" >&6
1802fi
1803
1804echo "$as_me:$LINENO: checking for working makeinfo" >&5
1805echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1806# Run test in a subshell; some versions of sh will print an error if
1807# an executable is not found, even if stderr is redirected.
1808# Redirect stdin to placate older versions of autoconf.  Sigh.
1809if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1810   MAKEINFO=makeinfo
1811   echo "$as_me:$LINENO: result: found" >&5
1812echo "${ECHO_T}found" >&6
1813else
1814   MAKEINFO="$missing_dir/missing makeinfo"
1815   echo "$as_me:$LINENO: result: missing" >&5
1816echo "${ECHO_T}missing" >&6
1817fi
1818
1819
1820
1821echo "$as_me:$LINENO: checking major version" >&5
1822echo $ECHO_N "checking major version... $ECHO_C" >&6
1823echo "$as_me:$LINENO: result: $FOX_MAJOR_VERSION" >&5
1824echo "${ECHO_T}$FOX_MAJOR_VERSION" >&6
1825echo "$as_me:$LINENO: checking minor version" >&5
1826echo $ECHO_N "checking minor version... $ECHO_C" >&6
1827echo "$as_me:$LINENO: result: $FOX_MINOR_VERSION" >&5
1828echo "${ECHO_T}$FOX_MINOR_VERSION" >&6
1829echo "$as_me:$LINENO: checking patchlevel" >&5
1830echo $ECHO_N "checking patchlevel... $ECHO_C" >&6
1831echo "$as_me:$LINENO: result: $FOX_PATCH_LEVEL" >&5
1832echo "${ECHO_T}$FOX_PATCH_LEVEL" >&6
1833
1834
1835
1836
1837
1838LT_RELEASE=$FOX_MAJOR_VERSION.$FOX_MINOR_VERSION
1839LT_CURRENT=$FOX_INTERFACE_VERSION
1840LT_REVISION=`expr $FOX_PATCH_LEVEL - $FOX_INTERFACE_VERSION`
1841LT_AGE=`expr $FOX_INTERFACE_VERSION - $FOX_BINARY_VERSION`
1842
1843
1844
1845
1846
1847
1848CXXFLAGS=""
1849
1850echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1851echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1852set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1853if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1854  echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856  cat >conftest.make <<\_ACEOF
1857all:
1858	@echo 'ac_maketemp="$(MAKE)"'
1859_ACEOF
1860# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1861eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1862if test -n "$ac_maketemp"; then
1863  eval ac_cv_prog_make_${ac_make}_set=yes
1864else
1865  eval ac_cv_prog_make_${ac_make}_set=no
1866fi
1867rm -f conftest.make
1868fi
1869if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1870  echo "$as_me:$LINENO: result: yes" >&5
1871echo "${ECHO_T}yes" >&6
1872  SET_MAKE=
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876  SET_MAKE="MAKE=${MAKE-make}"
1877fi
1878
1879ac_ext=c
1880ac_cpp='$CPP $CPPFLAGS'
1881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884if test -n "$ac_tool_prefix"; then
1885  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1886set dummy ${ac_tool_prefix}gcc; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$CC"; then
1893  ac_cv_prog_CC="$CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911CC=$ac_cv_prog_CC
1912if test -n "$CC"; then
1913  echo "$as_me:$LINENO: result: $CC" >&5
1914echo "${ECHO_T}$CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920fi
1921if test -z "$ac_cv_prog_CC"; then
1922  ac_ct_CC=$CC
1923  # Extract the first word of "gcc", so it can be a program name with args.
1924set dummy gcc; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930  if test -n "$ac_ct_CC"; then
1931  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940    ac_cv_prog_ac_ct_CC="gcc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947fi
1948fi
1949ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950if test -n "$ac_ct_CC"; then
1951  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952echo "${ECHO_T}$ac_ct_CC" >&6
1953else
1954  echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958  CC=$ac_ct_CC
1959else
1960  CC="$ac_cv_prog_CC"
1961fi
1962
1963if test -z "$CC"; then
1964  if test -n "$ac_tool_prefix"; then
1965  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1966set dummy ${ac_tool_prefix}cc; ac_word=$2
1967echo "$as_me:$LINENO: checking for $ac_word" >&5
1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969if test "${ac_cv_prog_CC+set}" = set; then
1970  echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972  if test -n "$CC"; then
1973  ac_cv_prog_CC="$CC" # Let the user override the test.
1974else
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  test -z "$as_dir" && as_dir=.
1980  for ac_exec_ext in '' $ac_executable_extensions; do
1981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982    ac_cv_prog_CC="${ac_tool_prefix}cc"
1983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984    break 2
1985  fi
1986done
1987done
1988
1989fi
1990fi
1991CC=$ac_cv_prog_CC
1992if test -n "$CC"; then
1993  echo "$as_me:$LINENO: result: $CC" >&5
1994echo "${ECHO_T}$CC" >&6
1995else
1996  echo "$as_me:$LINENO: result: no" >&5
1997echo "${ECHO_T}no" >&6
1998fi
1999
2000fi
2001if test -z "$ac_cv_prog_CC"; then
2002  ac_ct_CC=$CC
2003  # Extract the first word of "cc", so it can be a program name with args.
2004set dummy cc; ac_word=$2
2005echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008  echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010  if test -n "$ac_ct_CC"; then
2011  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016  IFS=$as_save_IFS
2017  test -z "$as_dir" && as_dir=.
2018  for ac_exec_ext in '' $ac_executable_extensions; do
2019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020    ac_cv_prog_ac_ct_CC="cc"
2021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022    break 2
2023  fi
2024done
2025done
2026
2027fi
2028fi
2029ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030if test -n "$ac_ct_CC"; then
2031  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032echo "${ECHO_T}$ac_ct_CC" >&6
2033else
2034  echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038  CC=$ac_ct_CC
2039else
2040  CC="$ac_cv_prog_CC"
2041fi
2042
2043fi
2044if test -z "$CC"; then
2045  # Extract the first word of "cc", so it can be a program name with args.
2046set dummy cc; ac_word=$2
2047echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049if test "${ac_cv_prog_CC+set}" = set; then
2050  echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052  if test -n "$CC"; then
2053  ac_cv_prog_CC="$CC" # Let the user override the test.
2054else
2055  ac_prog_rejected=no
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2064       ac_prog_rejected=yes
2065       continue
2066     fi
2067    ac_cv_prog_CC="cc"
2068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069    break 2
2070  fi
2071done
2072done
2073
2074if test $ac_prog_rejected = yes; then
2075  # We found a bogon in the path, so make sure we never use it.
2076  set dummy $ac_cv_prog_CC
2077  shift
2078  if test $# != 0; then
2079    # We chose a different compiler from the bogus one.
2080    # However, it has the same basename, so the bogon will be chosen
2081    # first if we set CC to just the basename; use the full file name.
2082    shift
2083    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2084  fi
2085fi
2086fi
2087fi
2088CC=$ac_cv_prog_CC
2089if test -n "$CC"; then
2090  echo "$as_me:$LINENO: result: $CC" >&5
2091echo "${ECHO_T}$CC" >&6
2092else
2093  echo "$as_me:$LINENO: result: no" >&5
2094echo "${ECHO_T}no" >&6
2095fi
2096
2097fi
2098if test -z "$CC"; then
2099  if test -n "$ac_tool_prefix"; then
2100  for ac_prog in cl
2101  do
2102    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2104echo "$as_me:$LINENO: checking for $ac_word" >&5
2105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106if test "${ac_cv_prog_CC+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  if test -n "$CC"; then
2110  ac_cv_prog_CC="$CC" # Let the user override the test.
2111else
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115  IFS=$as_save_IFS
2116  test -z "$as_dir" && as_dir=.
2117  for ac_exec_ext in '' $ac_executable_extensions; do
2118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121    break 2
2122  fi
2123done
2124done
2125
2126fi
2127fi
2128CC=$ac_cv_prog_CC
2129if test -n "$CC"; then
2130  echo "$as_me:$LINENO: result: $CC" >&5
2131echo "${ECHO_T}$CC" >&6
2132else
2133  echo "$as_me:$LINENO: result: no" >&5
2134echo "${ECHO_T}no" >&6
2135fi
2136
2137    test -n "$CC" && break
2138  done
2139fi
2140if test -z "$CC"; then
2141  ac_ct_CC=$CC
2142  for ac_prog in cl
2143do
2144  # Extract the first word of "$ac_prog", so it can be a program name with args.
2145set dummy $ac_prog; ac_word=$2
2146echo "$as_me:$LINENO: checking for $ac_word" >&5
2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  if test -n "$ac_ct_CC"; then
2152  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153else
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  for ac_exec_ext in '' $ac_executable_extensions; do
2160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161    ac_cv_prog_ac_ct_CC="$ac_prog"
2162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163    break 2
2164  fi
2165done
2166done
2167
2168fi
2169fi
2170ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171if test -n "$ac_ct_CC"; then
2172  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173echo "${ECHO_T}$ac_ct_CC" >&6
2174else
2175  echo "$as_me:$LINENO: result: no" >&5
2176echo "${ECHO_T}no" >&6
2177fi
2178
2179  test -n "$ac_ct_CC" && break
2180done
2181
2182  CC=$ac_ct_CC
2183fi
2184
2185fi
2186
2187
2188test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2189See \`config.log' for more details." >&5
2190echo "$as_me: error: no acceptable C compiler found in \$PATH
2191See \`config.log' for more details." >&2;}
2192   { (exit 1); exit 1; }; }
2193
2194# Provide some information about the compiler.
2195echo "$as_me:$LINENO:" \
2196     "checking for C compiler version" >&5
2197ac_compiler=`set X $ac_compile; echo $2`
2198{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2199  (eval $ac_compiler --version </dev/null >&5) 2>&5
2200  ac_status=$?
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); }
2203{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2204  (eval $ac_compiler -v </dev/null >&5) 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }
2208{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2209  (eval $ac_compiler -V </dev/null >&5) 2>&5
2210  ac_status=$?
2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212  (exit $ac_status); }
2213
2214cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h.  */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h.  */
2220
2221int
2222main ()
2223{
2224
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229ac_clean_files_save=$ac_clean_files
2230ac_clean_files="$ac_clean_files a.out a.exe b.out"
2231# Try to create an executable without -o first, disregard a.out.
2232# It will help us diagnose broken compilers, and finding out an intuition
2233# of exeext.
2234echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2235echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2236ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2238  (eval $ac_link_default) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; then
2242  # Find the output, starting from the most likely.  This scheme is
2243# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2244# resort.
2245
2246# Be careful to initialize this variable, since it used to be cached.
2247# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2248ac_cv_exeext=
2249# b.out is created by i960 compilers.
2250for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2251do
2252  test -f "$ac_file" || continue
2253  case $ac_file in
2254    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2255	;;
2256    conftest.$ac_ext )
2257	# This is the source file.
2258	;;
2259    [ab].out )
2260	# We found the default executable, but exeext='' is most
2261	# certainly right.
2262	break;;
2263    *.* )
2264	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265	# FIXME: I believe we export ac_cv_exeext for Libtool,
2266	# but it would be cool to find out if it's true.  Does anybody
2267	# maintain Libtool? --akim.
2268	export ac_cv_exeext
2269	break;;
2270    * )
2271	break;;
2272  esac
2273done
2274else
2275  echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: C compiler cannot create executables
2281See \`config.log' for more details." >&2;}
2282   { (exit 77); exit 77; }; }
2283fi
2284
2285ac_exeext=$ac_cv_exeext
2286echo "$as_me:$LINENO: result: $ac_file" >&5
2287echo "${ECHO_T}$ac_file" >&6
2288
2289# Check the compiler produces executables we can run.  If not, either
2290# the compiler is broken, or we cross compile.
2291echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2292echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2293# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2294# If not cross compiling, check that we can run a simple program.
2295if test "$cross_compiling" != yes; then
2296  if { ac_try='./$ac_file'
2297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298  (eval $ac_try) 2>&5
2299  ac_status=$?
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); }; }; then
2302    cross_compiling=no
2303  else
2304    if test "$cross_compiling" = maybe; then
2305	cross_compiling=yes
2306    else
2307	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2308If you meant to cross compile, use \`--host'.
2309See \`config.log' for more details." >&5
2310echo "$as_me: error: cannot run C compiled programs.
2311If you meant to cross compile, use \`--host'.
2312See \`config.log' for more details." >&2;}
2313   { (exit 1); exit 1; }; }
2314    fi
2315  fi
2316fi
2317echo "$as_me:$LINENO: result: yes" >&5
2318echo "${ECHO_T}yes" >&6
2319
2320rm -f a.out a.exe conftest$ac_cv_exeext b.out
2321ac_clean_files=$ac_clean_files_save
2322# Check the compiler produces executables we can run.  If not, either
2323# the compiler is broken, or we cross compile.
2324echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2325echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2326echo "$as_me:$LINENO: result: $cross_compiling" >&5
2327echo "${ECHO_T}$cross_compiling" >&6
2328
2329echo "$as_me:$LINENO: checking for suffix of executables" >&5
2330echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2332  (eval $ac_link) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }; then
2336  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2337# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2338# work properly (i.e., refer to `conftest.exe'), while it won't with
2339# `rm'.
2340for ac_file in conftest.exe conftest conftest.*; do
2341  test -f "$ac_file" || continue
2342  case $ac_file in
2343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2344    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345	  export ac_cv_exeext
2346	  break;;
2347    * ) break;;
2348  esac
2349done
2350else
2351  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2352See \`config.log' for more details." >&5
2353echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2354See \`config.log' for more details." >&2;}
2355   { (exit 1); exit 1; }; }
2356fi
2357
2358rm -f conftest$ac_cv_exeext
2359echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2360echo "${ECHO_T}$ac_cv_exeext" >&6
2361
2362rm -f conftest.$ac_ext
2363EXEEXT=$ac_cv_exeext
2364ac_exeext=$EXEEXT
2365echo "$as_me:$LINENO: checking for suffix of object files" >&5
2366echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2367if test "${ac_cv_objext+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h.  */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h.  */
2376
2377int
2378main ()
2379{
2380
2381  ;
2382  return 0;
2383}
2384_ACEOF
2385rm -f conftest.o conftest.obj
2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387  (eval $ac_compile) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; then
2391  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2392  case $ac_file in
2393    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2394    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2395       break;;
2396  esac
2397done
2398else
2399  echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2403See \`config.log' for more details." >&5
2404echo "$as_me: error: cannot compute suffix of object files: cannot compile
2405See \`config.log' for more details." >&2;}
2406   { (exit 1); exit 1; }; }
2407fi
2408
2409rm -f conftest.$ac_cv_objext conftest.$ac_ext
2410fi
2411echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2412echo "${ECHO_T}$ac_cv_objext" >&6
2413OBJEXT=$ac_cv_objext
2414ac_objext=$OBJEXT
2415echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2416echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2417if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418  echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420  cat >conftest.$ac_ext <<_ACEOF
2421/* confdefs.h.  */
2422_ACEOF
2423cat confdefs.h >>conftest.$ac_ext
2424cat >>conftest.$ac_ext <<_ACEOF
2425/* end confdefs.h.  */
2426
2427int
2428main ()
2429{
2430#ifndef __GNUC__
2431       choke me
2432#endif
2433
2434  ;
2435  return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440  (eval $ac_compile) 2>conftest.er1
2441  ac_status=$?
2442  grep -v '^ *+' conftest.er1 >conftest.err
2443  rm -f conftest.er1
2444  cat conftest.err >&5
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); } &&
2447	 { ac_try='test -z "$ac_c_werror_flag"
2448			 || test ! -s conftest.err'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; } &&
2454	 { ac_try='test -s conftest.$ac_objext'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; }; then
2460  ac_compiler_gnu=yes
2461else
2462  echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465ac_compiler_gnu=no
2466fi
2467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468ac_cv_c_compiler_gnu=$ac_compiler_gnu
2469
2470fi
2471echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2473GCC=`test $ac_compiler_gnu = yes && echo yes`
2474ac_test_CFLAGS=${CFLAGS+set}
2475ac_save_CFLAGS=$CFLAGS
2476CFLAGS="-g"
2477echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2478echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2479if test "${ac_cv_prog_cc_g+set}" = set; then
2480  echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482  cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h.  */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h.  */
2488
2489int
2490main ()
2491{
2492
2493  ;
2494  return 0;
2495}
2496_ACEOF
2497rm -f conftest.$ac_objext
2498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499  (eval $ac_compile) 2>conftest.er1
2500  ac_status=$?
2501  grep -v '^ *+' conftest.er1 >conftest.err
2502  rm -f conftest.er1
2503  cat conftest.err >&5
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); } &&
2506	 { ac_try='test -z "$ac_c_werror_flag"
2507			 || test ! -s conftest.err'
2508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509  (eval $ac_try) 2>&5
2510  ac_status=$?
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); }; } &&
2513	 { ac_try='test -s conftest.$ac_objext'
2514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515  (eval $ac_try) 2>&5
2516  ac_status=$?
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); }; }; then
2519  ac_cv_prog_cc_g=yes
2520else
2521  echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524ac_cv_prog_cc_g=no
2525fi
2526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527fi
2528echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2529echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2530if test "$ac_test_CFLAGS" = set; then
2531  CFLAGS=$ac_save_CFLAGS
2532elif test $ac_cv_prog_cc_g = yes; then
2533  if test "$GCC" = yes; then
2534    CFLAGS="-g  -pipe -O2 -fno-strict-aliasing "
2535  else
2536    CFLAGS="-g"
2537  fi
2538else
2539  if test "$GCC" = yes; then
2540    CFLAGS=" -pipe -O2 -fno-strict-aliasing "
2541  else
2542    CFLAGS=
2543  fi
2544fi
2545echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2546echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2547if test "${ac_cv_prog_cc_stdc+set}" = set; then
2548  echo $ECHO_N "(cached) $ECHO_C" >&6
2549else
2550  ac_cv_prog_cc_stdc=no
2551ac_save_CC=$CC
2552cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h.  */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h.  */
2558#include <stdarg.h>
2559#include <stdio.h>
2560#include <sys/types.h>
2561#include <sys/stat.h>
2562/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2563struct buf { int x; };
2564FILE * (*rcsopen) (struct buf *, struct stat *, int);
2565static char *e (p, i)
2566     char **p;
2567     int i;
2568{
2569  return p[i];
2570}
2571static char *f (char * (*g) (char **, int), char **p, ...)
2572{
2573  char *s;
2574  va_list v;
2575  va_start (v,p);
2576  s = g (p, va_arg (v,int));
2577  va_end (v);
2578  return s;
2579}
2580
2581/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2582   function prototypes and stuff, but not '\xHH' hex character constants.
2583   These don't provoke an error unfortunately, instead are silently treated
2584   as 'x'.  The following induces an error, until -std1 is added to get
2585   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2586   array size at least.  It's necessary to write '\x00'==0 to get something
2587   that's true only with -std1.  */
2588int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2589
2590int test (int i, double x);
2591struct s1 {int (*f) (int a);};
2592struct s2 {int (*f) (double a);};
2593int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2594int argc;
2595char **argv;
2596int
2597main ()
2598{
2599return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604# Don't try gcc -ansi; that turns off useful extensions and
2605# breaks some systems' header files.
2606# AIX			-qlanglvl=ansi
2607# Ultrix and OSF/1	-std1
2608# HP-UX 10.20 and later	-Ae
2609# HP-UX older versions	-Aa -D_HPUX_SOURCE
2610# SVR4			-Xc -D__EXTENSIONS__
2611for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2612do
2613  CC="$ac_save_CC $ac_arg"
2614  rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616  (eval $ac_compile) 2>conftest.er1
2617  ac_status=$?
2618  grep -v '^ *+' conftest.er1 >conftest.err
2619  rm -f conftest.er1
2620  cat conftest.err >&5
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); } &&
2623	 { ac_try='test -z "$ac_c_werror_flag"
2624			 || test ! -s conftest.err'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; } &&
2630	 { ac_try='test -s conftest.$ac_objext'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; }; then
2636  ac_cv_prog_cc_stdc=$ac_arg
2637break
2638else
2639  echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
2641
2642fi
2643rm -f conftest.err conftest.$ac_objext
2644done
2645rm -f conftest.$ac_ext conftest.$ac_objext
2646CC=$ac_save_CC
2647
2648fi
2649
2650case "x$ac_cv_prog_cc_stdc" in
2651  x|xno)
2652    echo "$as_me:$LINENO: result: none needed" >&5
2653echo "${ECHO_T}none needed" >&6 ;;
2654  *)
2655    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2656echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2657    CC="$CC $ac_cv_prog_cc_stdc" ;;
2658esac
2659
2660# Some people use a C++ compiler to compile C.  Since we use `exit',
2661# in C++ we need to declare it.  In case someone uses the same compiler
2662# for both compiling C and C++ we need to have the C++ compiler decide
2663# the declaration of exit, since it's the most demanding environment.
2664cat >conftest.$ac_ext <<_ACEOF
2665#ifndef __cplusplus
2666  choke me
2667#endif
2668_ACEOF
2669rm -f conftest.$ac_objext
2670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671  (eval $ac_compile) 2>conftest.er1
2672  ac_status=$?
2673  grep -v '^ *+' conftest.er1 >conftest.err
2674  rm -f conftest.er1
2675  cat conftest.err >&5
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); } &&
2678	 { ac_try='test -z "$ac_c_werror_flag"
2679			 || test ! -s conftest.err'
2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681  (eval $ac_try) 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }; } &&
2685	 { ac_try='test -s conftest.$ac_objext'
2686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687  (eval $ac_try) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; }; then
2691  for ac_declaration in \
2692   '' \
2693   'extern "C" void std::exit (int) throw (); using std::exit;' \
2694   'extern "C" void std::exit (int); using std::exit;' \
2695   'extern "C" void exit (int) throw ();' \
2696   'extern "C" void exit (int);' \
2697   'void exit (int);'
2698do
2699  cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h.  */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h.  */
2705$ac_declaration
2706#include <stdlib.h>
2707int
2708main ()
2709{
2710exit (42);
2711  ;
2712  return 0;
2713}
2714_ACEOF
2715rm -f conftest.$ac_objext
2716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717  (eval $ac_compile) 2>conftest.er1
2718  ac_status=$?
2719  grep -v '^ *+' conftest.er1 >conftest.err
2720  rm -f conftest.er1
2721  cat conftest.err >&5
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); } &&
2724	 { ac_try='test -z "$ac_c_werror_flag"
2725			 || test ! -s conftest.err'
2726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727  (eval $ac_try) 2>&5
2728  ac_status=$?
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); }; } &&
2731	 { ac_try='test -s conftest.$ac_objext'
2732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733  (eval $ac_try) 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; }; then
2737  :
2738else
2739  echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742continue
2743fi
2744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745  cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h.  */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h.  */
2751$ac_declaration
2752int
2753main ()
2754{
2755exit (42);
2756  ;
2757  return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
2761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762  (eval $ac_compile) 2>conftest.er1
2763  ac_status=$?
2764  grep -v '^ *+' conftest.er1 >conftest.err
2765  rm -f conftest.er1
2766  cat conftest.err >&5
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); } &&
2769	 { ac_try='test -z "$ac_c_werror_flag"
2770			 || test ! -s conftest.err'
2771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772  (eval $ac_try) 2>&5
2773  ac_status=$?
2774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775  (exit $ac_status); }; } &&
2776	 { ac_try='test -s conftest.$ac_objext'
2777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778  (eval $ac_try) 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; }; then
2782  break
2783else
2784  echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787fi
2788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789done
2790rm -f conftest*
2791if test -n "$ac_declaration"; then
2792  echo '#ifdef __cplusplus' >>confdefs.h
2793  echo $ac_declaration      >>confdefs.h
2794  echo '#endif'             >>confdefs.h
2795fi
2796
2797else
2798  echo "$as_me: failed program was:" >&5
2799sed 's/^/| /' conftest.$ac_ext >&5
2800
2801fi
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803ac_ext=c
2804ac_cpp='$CPP $CPPFLAGS'
2805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809ac_ext=c
2810ac_cpp='$CPP $CPPFLAGS'
2811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2815echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2816# On Suns, sometimes $CPP names a directory.
2817if test -n "$CPP" && test -d "$CPP"; then
2818  CPP=
2819fi
2820if test -z "$CPP"; then
2821  if test "${ac_cv_prog_CPP+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824      # Double quotes because CPP needs to be expanded
2825    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2826    do
2827      ac_preproc_ok=false
2828for ac_c_preproc_warn_flag in '' yes
2829do
2830  # Use a header file that comes with gcc, so configuring glibc
2831  # with a fresh cross-compiler works.
2832  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2833  # <limits.h> exists even on freestanding compilers.
2834  # On the NeXT, cc -E runs the code through the compiler's parser,
2835  # not just through cpp. "Syntax error" is here to catch this case.
2836  cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842#ifdef __STDC__
2843# include <limits.h>
2844#else
2845# include <assert.h>
2846#endif
2847		     Syntax error
2848_ACEOF
2849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2850  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2851  ac_status=$?
2852  grep -v '^ *+' conftest.er1 >conftest.err
2853  rm -f conftest.er1
2854  cat conftest.err >&5
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); } >/dev/null; then
2857  if test -s conftest.err; then
2858    ac_cpp_err=$ac_c_preproc_warn_flag
2859    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2860  else
2861    ac_cpp_err=
2862  fi
2863else
2864  ac_cpp_err=yes
2865fi
2866if test -z "$ac_cpp_err"; then
2867  :
2868else
2869  echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872  # Broken: fails on valid input.
2873continue
2874fi
2875rm -f conftest.err conftest.$ac_ext
2876
2877  # OK, works on sane cases.  Now check whether non-existent headers
2878  # can be detected and how.
2879  cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885#include <ac_nonexistent.h>
2886_ACEOF
2887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2888  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2889  ac_status=$?
2890  grep -v '^ *+' conftest.er1 >conftest.err
2891  rm -f conftest.er1
2892  cat conftest.err >&5
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); } >/dev/null; then
2895  if test -s conftest.err; then
2896    ac_cpp_err=$ac_c_preproc_warn_flag
2897    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2898  else
2899    ac_cpp_err=
2900  fi
2901else
2902  ac_cpp_err=yes
2903fi
2904if test -z "$ac_cpp_err"; then
2905  # Broken: success on invalid input.
2906continue
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911  # Passes both tests.
2912ac_preproc_ok=:
2913break
2914fi
2915rm -f conftest.err conftest.$ac_ext
2916
2917done
2918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2919rm -f conftest.err conftest.$ac_ext
2920if $ac_preproc_ok; then
2921  break
2922fi
2923
2924    done
2925    ac_cv_prog_CPP=$CPP
2926
2927fi
2928  CPP=$ac_cv_prog_CPP
2929else
2930  ac_cv_prog_CPP=$CPP
2931fi
2932echo "$as_me:$LINENO: result: $CPP" >&5
2933echo "${ECHO_T}$CPP" >&6
2934ac_preproc_ok=false
2935for ac_c_preproc_warn_flag in '' yes
2936do
2937  # Use a header file that comes with gcc, so configuring glibc
2938  # with a fresh cross-compiler works.
2939  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940  # <limits.h> exists even on freestanding compilers.
2941  # On the NeXT, cc -E runs the code through the compiler's parser,
2942  # not just through cpp. "Syntax error" is here to catch this case.
2943  cat >conftest.$ac_ext <<_ACEOF
2944/* confdefs.h.  */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h.  */
2949#ifdef __STDC__
2950# include <limits.h>
2951#else
2952# include <assert.h>
2953#endif
2954		     Syntax error
2955_ACEOF
2956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } >/dev/null; then
2964  if test -s conftest.err; then
2965    ac_cpp_err=$ac_c_preproc_warn_flag
2966    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2967  else
2968    ac_cpp_err=
2969  fi
2970else
2971  ac_cpp_err=yes
2972fi
2973if test -z "$ac_cpp_err"; then
2974  :
2975else
2976  echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979  # Broken: fails on valid input.
2980continue
2981fi
2982rm -f conftest.err conftest.$ac_ext
2983
2984  # OK, works on sane cases.  Now check whether non-existent headers
2985  # can be detected and how.
2986  cat >conftest.$ac_ext <<_ACEOF
2987/* confdefs.h.  */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h.  */
2992#include <ac_nonexistent.h>
2993_ACEOF
2994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996  ac_status=$?
2997  grep -v '^ *+' conftest.er1 >conftest.err
2998  rm -f conftest.er1
2999  cat conftest.err >&5
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); } >/dev/null; then
3002  if test -s conftest.err; then
3003    ac_cpp_err=$ac_c_preproc_warn_flag
3004    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005  else
3006    ac_cpp_err=
3007  fi
3008else
3009  ac_cpp_err=yes
3010fi
3011if test -z "$ac_cpp_err"; then
3012  # Broken: success on invalid input.
3013continue
3014else
3015  echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018  # Passes both tests.
3019ac_preproc_ok=:
3020break
3021fi
3022rm -f conftest.err conftest.$ac_ext
3023
3024done
3025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026rm -f conftest.err conftest.$ac_ext
3027if $ac_preproc_ok; then
3028  :
3029else
3030  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3031See \`config.log' for more details." >&5
3032echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3033See \`config.log' for more details." >&2;}
3034   { (exit 1); exit 1; }; }
3035fi
3036
3037ac_ext=c
3038ac_cpp='$CPP $CPPFLAGS'
3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042
3043ac_ext=cc
3044ac_cpp='$CXXCPP $CPPFLAGS'
3045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3048if test -n "$ac_tool_prefix"; then
3049  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3050  do
3051    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053echo "$as_me:$LINENO: checking for $ac_word" >&5
3054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055if test "${ac_cv_prog_CXX+set}" = set; then
3056  echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058  if test -n "$CXX"; then
3059  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064  IFS=$as_save_IFS
3065  test -z "$as_dir" && as_dir=.
3066  for ac_exec_ext in '' $ac_executable_extensions; do
3067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070    break 2
3071  fi
3072done
3073done
3074
3075fi
3076fi
3077CXX=$ac_cv_prog_CXX
3078if test -n "$CXX"; then
3079  echo "$as_me:$LINENO: result: $CXX" >&5
3080echo "${ECHO_T}$CXX" >&6
3081else
3082  echo "$as_me:$LINENO: result: no" >&5
3083echo "${ECHO_T}no" >&6
3084fi
3085
3086    test -n "$CXX" && break
3087  done
3088fi
3089if test -z "$CXX"; then
3090  ac_ct_CXX=$CXX
3091  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3092do
3093  # Extract the first word of "$ac_prog", so it can be a program name with args.
3094set dummy $ac_prog; ac_word=$2
3095echo "$as_me:$LINENO: checking for $ac_word" >&5
3096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3098  echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100  if test -n "$ac_ct_CXX"; then
3101  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108  for ac_exec_ext in '' $ac_executable_extensions; do
3109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110    ac_cv_prog_ac_ct_CXX="$ac_prog"
3111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115done
3116
3117fi
3118fi
3119ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3120if test -n "$ac_ct_CXX"; then
3121  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3122echo "${ECHO_T}$ac_ct_CXX" >&6
3123else
3124  echo "$as_me:$LINENO: result: no" >&5
3125echo "${ECHO_T}no" >&6
3126fi
3127
3128  test -n "$ac_ct_CXX" && break
3129done
3130test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3131
3132  CXX=$ac_ct_CXX
3133fi
3134
3135
3136# Provide some information about the compiler.
3137echo "$as_me:$LINENO:" \
3138     "checking for C++ compiler version" >&5
3139ac_compiler=`set X $ac_compile; echo $2`
3140{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3141  (eval $ac_compiler --version </dev/null >&5) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }
3145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3146  (eval $ac_compiler -v </dev/null >&5) 2>&5
3147  ac_status=$?
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); }
3150{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3151  (eval $ac_compiler -V </dev/null >&5) 2>&5
3152  ac_status=$?
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }
3155
3156echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3157echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3158if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h.  */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h.  */
3167
3168int
3169main ()
3170{
3171#ifndef __GNUC__
3172       choke me
3173#endif
3174
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
3180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3181  (eval $ac_compile) 2>conftest.er1
3182  ac_status=$?
3183  grep -v '^ *+' conftest.er1 >conftest.err
3184  rm -f conftest.er1
3185  cat conftest.err >&5
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); } &&
3188	 { ac_try='test -z "$ac_cxx_werror_flag"
3189			 || test ! -s conftest.err'
3190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191  (eval $ac_try) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }; } &&
3195	 { ac_try='test -s conftest.$ac_objext'
3196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197  (eval $ac_try) 2>&5
3198  ac_status=$?
3199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200  (exit $ac_status); }; }; then
3201  ac_compiler_gnu=yes
3202else
3203  echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206ac_compiler_gnu=no
3207fi
3208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3209ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3210
3211fi
3212echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3213echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3214GXX=`test $ac_compiler_gnu = yes && echo yes`
3215ac_test_CXXFLAGS=${CXXFLAGS+set}
3216ac_save_CXXFLAGS=$CXXFLAGS
3217CXXFLAGS="-g"
3218echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3219echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3220if test "${ac_cv_prog_cxx_g+set}" = set; then
3221  echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223  cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h.  */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext
3239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3240  (eval $ac_compile) 2>conftest.er1
3241  ac_status=$?
3242  grep -v '^ *+' conftest.er1 >conftest.err
3243  rm -f conftest.er1
3244  cat conftest.err >&5
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); } &&
3247	 { ac_try='test -z "$ac_cxx_werror_flag"
3248			 || test ! -s conftest.err'
3249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250  (eval $ac_try) 2>&5
3251  ac_status=$?
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); }; } &&
3254	 { ac_try='test -s conftest.$ac_objext'
3255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256  (eval $ac_try) 2>&5
3257  ac_status=$?
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }; }; then
3260  ac_cv_prog_cxx_g=yes
3261else
3262  echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265ac_cv_prog_cxx_g=no
3266fi
3267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3270echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3271if test "$ac_test_CXXFLAGS" = set; then
3272  CXXFLAGS=$ac_save_CXXFLAGS
3273elif test $ac_cv_prog_cxx_g = yes; then
3274  if test "$GXX" = yes; then
3275    CXXFLAGS="-g  -pipe -O2 -fno-strict-aliasing "
3276  else
3277    CXXFLAGS="-g"
3278  fi
3279else
3280  if test "$GXX" = yes; then
3281    CXXFLAGS=" -pipe -O2 -fno-strict-aliasing "
3282  else
3283    CXXFLAGS=
3284  fi
3285fi
3286for ac_declaration in \
3287   '' \
3288   'extern "C" void std::exit (int) throw (); using std::exit;' \
3289   'extern "C" void std::exit (int); using std::exit;' \
3290   'extern "C" void exit (int) throw ();' \
3291   'extern "C" void exit (int);' \
3292   'void exit (int);'
3293do
3294  cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h.  */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h.  */
3300$ac_declaration
3301#include <stdlib.h>
3302int
3303main ()
3304{
3305exit (42);
3306  ;
3307  return 0;
3308}
3309_ACEOF
3310rm -f conftest.$ac_objext
3311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312  (eval $ac_compile) 2>conftest.er1
3313  ac_status=$?
3314  grep -v '^ *+' conftest.er1 >conftest.err
3315  rm -f conftest.er1
3316  cat conftest.err >&5
3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); } &&
3319	 { ac_try='test -z "$ac_cxx_werror_flag"
3320			 || test ! -s conftest.err'
3321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322  (eval $ac_try) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }; } &&
3326	 { ac_try='test -s conftest.$ac_objext'
3327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328  (eval $ac_try) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }; }; then
3332  :
3333else
3334  echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337continue
3338fi
3339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340  cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h.  */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h.  */
3346$ac_declaration
3347int
3348main ()
3349{
3350exit (42);
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext
3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357  (eval $ac_compile) 2>conftest.er1
3358  ac_status=$?
3359  grep -v '^ *+' conftest.er1 >conftest.err
3360  rm -f conftest.er1
3361  cat conftest.err >&5
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); } &&
3364	 { ac_try='test -z "$ac_cxx_werror_flag"
3365			 || test ! -s conftest.err'
3366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367  (eval $ac_try) 2>&5
3368  ac_status=$?
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); }; } &&
3371	 { ac_try='test -s conftest.$ac_objext'
3372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373  (eval $ac_try) 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); }; }; then
3377  break
3378else
3379  echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382fi
3383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3384done
3385rm -f conftest*
3386if test -n "$ac_declaration"; then
3387  echo '#ifdef __cplusplus' >>confdefs.h
3388  echo $ac_declaration      >>confdefs.h
3389  echo '#endif'             >>confdefs.h
3390fi
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398# Check whether --enable-shared or --disable-shared was given.
3399if test "${enable_shared+set}" = set; then
3400  enableval="$enable_shared"
3401  p=${PACKAGE-default}
3402    case $enableval in
3403    yes) enable_shared=yes ;;
3404    no) enable_shared=no ;;
3405    *)
3406      enable_shared=no
3407      # Look at the argument we got.  We use all the common list separators.
3408      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3409      for pkg in $enableval; do
3410	IFS="$lt_save_ifs"
3411	if test "X$pkg" = "X$p"; then
3412	  enable_shared=yes
3413	fi
3414      done
3415      IFS="$lt_save_ifs"
3416      ;;
3417    esac
3418else
3419  enable_shared=yes
3420fi;
3421
3422# Check whether --enable-static or --disable-static was given.
3423if test "${enable_static+set}" = set; then
3424  enableval="$enable_static"
3425  p=${PACKAGE-default}
3426    case $enableval in
3427    yes) enable_static=yes ;;
3428    no) enable_static=no ;;
3429    *)
3430     enable_static=no
3431      # Look at the argument we got.  We use all the common list separators.
3432      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3433      for pkg in $enableval; do
3434	IFS="$lt_save_ifs"
3435	if test "X$pkg" = "X$p"; then
3436	  enable_static=yes
3437	fi
3438      done
3439      IFS="$lt_save_ifs"
3440      ;;
3441    esac
3442else
3443  enable_static=yes
3444fi;
3445
3446# Check whether --enable-fast-install or --disable-fast-install was given.
3447if test "${enable_fast_install+set}" = set; then
3448  enableval="$enable_fast_install"
3449  p=${PACKAGE-default}
3450    case $enableval in
3451    yes) enable_fast_install=yes ;;
3452    no) enable_fast_install=no ;;
3453    *)
3454      enable_fast_install=no
3455      # Look at the argument we got.  We use all the common list separators.
3456      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3457      for pkg in $enableval; do
3458	IFS="$lt_save_ifs"
3459	if test "X$pkg" = "X$p"; then
3460	  enable_fast_install=yes
3461	fi
3462      done
3463      IFS="$lt_save_ifs"
3464      ;;
3465    esac
3466else
3467  enable_fast_install=yes
3468fi;
3469
3470# Make sure we can run config.sub.
3471$ac_config_sub sun4 >/dev/null 2>&1 ||
3472  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3473echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3474   { (exit 1); exit 1; }; }
3475
3476echo "$as_me:$LINENO: checking build system type" >&5
3477echo $ECHO_N "checking build system type... $ECHO_C" >&6
3478if test "${ac_cv_build+set}" = set; then
3479  echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481  ac_cv_build_alias=$build_alias
3482test -z "$ac_cv_build_alias" &&
3483  ac_cv_build_alias=`$ac_config_guess`
3484test -z "$ac_cv_build_alias" &&
3485  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3486echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3487   { (exit 1); exit 1; }; }
3488ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3489  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3490echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3491   { (exit 1); exit 1; }; }
3492
3493fi
3494echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3495echo "${ECHO_T}$ac_cv_build" >&6
3496build=$ac_cv_build
3497build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3498build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3499build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3500
3501
3502echo "$as_me:$LINENO: checking host system type" >&5
3503echo $ECHO_N "checking host system type... $ECHO_C" >&6
3504if test "${ac_cv_host+set}" = set; then
3505  echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507  ac_cv_host_alias=$host_alias
3508test -z "$ac_cv_host_alias" &&
3509  ac_cv_host_alias=$ac_cv_build_alias
3510ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3511  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3512echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3513   { (exit 1); exit 1; }; }
3514
3515fi
3516echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3517echo "${ECHO_T}$ac_cv_host" >&6
3518host=$ac_cv_host
3519host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3520host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3521host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3522
3523
3524echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3525echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3526if test "${lt_cv_path_SED+set}" = set; then
3527  echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529  # Loop through the user's path and test for sed and gsed.
3530# Then use that list of sed's as ones to test for truncation.
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534  IFS=$as_save_IFS
3535  test -z "$as_dir" && as_dir=.
3536  for lt_ac_prog in sed gsed; do
3537    for ac_exec_ext in '' $ac_executable_extensions; do
3538      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3539        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3540      fi
3541    done
3542  done
3543done
3544lt_ac_max=0
3545lt_ac_count=0
3546# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3547# along with /bin/sed that truncates output.
3548for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3549  test ! -f $lt_ac_sed && continue
3550  cat /dev/null > conftest.in
3551  lt_ac_count=0
3552  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3553  # Check for GNU sed and select it if it is found.
3554  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3555    lt_cv_path_SED=$lt_ac_sed
3556    break
3557  fi
3558  while true; do
3559    cat conftest.in conftest.in >conftest.tmp
3560    mv conftest.tmp conftest.in
3561    cp conftest.in conftest.nl
3562    echo >>conftest.nl
3563    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3564    cmp -s conftest.out conftest.nl || break
3565    # 10000 chars as input seems more than enough
3566    test $lt_ac_count -gt 10 && break
3567    lt_ac_count=`expr $lt_ac_count + 1`
3568    if test $lt_ac_count -gt $lt_ac_max; then
3569      lt_ac_max=$lt_ac_count
3570      lt_cv_path_SED=$lt_ac_sed
3571    fi
3572  done
3573done
3574
3575fi
3576
3577SED=$lt_cv_path_SED
3578echo "$as_me:$LINENO: result: $SED" >&5
3579echo "${ECHO_T}$SED" >&6
3580
3581echo "$as_me:$LINENO: checking for egrep" >&5
3582echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3583if test "${ac_cv_prog_egrep+set}" = set; then
3584  echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3587    then ac_cv_prog_egrep='grep -E'
3588    else ac_cv_prog_egrep='egrep'
3589    fi
3590fi
3591echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3592echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3593 EGREP=$ac_cv_prog_egrep
3594
3595
3596
3597# Check whether --with-gnu-ld or --without-gnu-ld was given.
3598if test "${with_gnu_ld+set}" = set; then
3599  withval="$with_gnu_ld"
3600  test "$withval" = no || with_gnu_ld=yes
3601else
3602  with_gnu_ld=no
3603fi;
3604ac_prog=ld
3605if test "$GCC" = yes; then
3606  # Check if gcc -print-prog-name=ld gives a path.
3607  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3608echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3609  case $host in
3610  *-*-mingw*)
3611    # gcc leaves a trailing carriage return which upsets mingw
3612    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3613  *)
3614    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3615  esac
3616  case $ac_prog in
3617    # Accept absolute paths.
3618    [\\/]* | ?:[\\/]*)
3619      re_direlt='/[^/][^/]*/\.\./'
3620      # Canonicalize the pathname of ld
3621      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3622      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3623	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3624      done
3625      test -z "$LD" && LD="$ac_prog"
3626      ;;
3627  "")
3628    # If it fails, then pretend we aren't using GCC.
3629    ac_prog=ld
3630    ;;
3631  *)
3632    # If it is relative, then search for the first ld in PATH.
3633    with_gnu_ld=unknown
3634    ;;
3635  esac
3636elif test "$with_gnu_ld" = yes; then
3637  echo "$as_me:$LINENO: checking for GNU ld" >&5
3638echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3639else
3640  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3641echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3642fi
3643if test "${lt_cv_path_LD+set}" = set; then
3644  echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646  if test -z "$LD"; then
3647  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3648  for ac_dir in $PATH; do
3649    IFS="$lt_save_ifs"
3650    test -z "$ac_dir" && ac_dir=.
3651    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3652      lt_cv_path_LD="$ac_dir/$ac_prog"
3653      # Check to see if the program is GNU ld.  I'd rather use --version,
3654      # but apparently some variants of GNU ld only accept -v.
3655      # Break only if it was the GNU/non-GNU ld that we prefer.
3656      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3657      *GNU* | *'with BFD'*)
3658	test "$with_gnu_ld" != no && break
3659	;;
3660      *)
3661	test "$with_gnu_ld" != yes && break
3662	;;
3663      esac
3664    fi
3665  done
3666  IFS="$lt_save_ifs"
3667else
3668  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3669fi
3670fi
3671
3672LD="$lt_cv_path_LD"
3673if test -n "$LD"; then
3674  echo "$as_me:$LINENO: result: $LD" >&5
3675echo "${ECHO_T}$LD" >&6
3676else
3677  echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
3679fi
3680test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3681echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3682   { (exit 1); exit 1; }; }
3683echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3684echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3685if test "${lt_cv_prog_gnu_ld+set}" = set; then
3686  echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3689case `$LD -v 2>&1 </dev/null` in
3690*GNU* | *'with BFD'*)
3691  lt_cv_prog_gnu_ld=yes
3692  ;;
3693*)
3694  lt_cv_prog_gnu_ld=no
3695  ;;
3696esac
3697fi
3698echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3699echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3700with_gnu_ld=$lt_cv_prog_gnu_ld
3701
3702
3703echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3704echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3705if test "${lt_cv_ld_reload_flag+set}" = set; then
3706  echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708  lt_cv_ld_reload_flag='-r'
3709fi
3710echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3711echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3712reload_flag=$lt_cv_ld_reload_flag
3713case $reload_flag in
3714"" | " "*) ;;
3715*) reload_flag=" $reload_flag" ;;
3716esac
3717reload_cmds='$LD$reload_flag -o $output$reload_objs'
3718case $host_os in
3719  darwin*)
3720    if test "$GCC" = yes; then
3721      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3722    else
3723      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3724    fi
3725    ;;
3726esac
3727
3728echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3729echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3730if test "${lt_cv_path_NM+set}" = set; then
3731  echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733  if test -n "$NM"; then
3734  # Let the user override the test.
3735  lt_cv_path_NM="$NM"
3736else
3737  lt_nm_to_check="${ac_tool_prefix}nm"
3738  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3739    lt_nm_to_check="$lt_nm_to_check nm"
3740  fi
3741  for lt_tmp_nm in $lt_nm_to_check; do
3742    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3743    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3744      IFS="$lt_save_ifs"
3745      test -z "$ac_dir" && ac_dir=.
3746      tmp_nm="$ac_dir/$lt_tmp_nm"
3747      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3748	# Check to see if the nm accepts a BSD-compat flag.
3749	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3750	#   nm: unknown option "B" ignored
3751	# Tru64's nm complains that /dev/null is an invalid object file
3752	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3753	*/dev/null* | *'Invalid file or object type'*)
3754	  lt_cv_path_NM="$tmp_nm -B"
3755	  break
3756	  ;;
3757	*)
3758	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3759	  */dev/null*)
3760	    lt_cv_path_NM="$tmp_nm -p"
3761	    break
3762	    ;;
3763	  *)
3764	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3765	    continue # so that we can try to find one that supports BSD flags
3766	    ;;
3767	  esac
3768	  ;;
3769	esac
3770      fi
3771    done
3772    IFS="$lt_save_ifs"
3773  done
3774  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3775fi
3776fi
3777echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3778echo "${ECHO_T}$lt_cv_path_NM" >&6
3779NM="$lt_cv_path_NM"
3780
3781echo "$as_me:$LINENO: checking whether ln -s works" >&5
3782echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3783LN_S=$as_ln_s
3784if test "$LN_S" = "ln -s"; then
3785  echo "$as_me:$LINENO: result: yes" >&5
3786echo "${ECHO_T}yes" >&6
3787else
3788  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3789echo "${ECHO_T}no, using $LN_S" >&6
3790fi
3791
3792echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3793echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3794if test "${lt_cv_deplibs_check_method+set}" = set; then
3795  echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797  lt_cv_file_magic_cmd='$MAGIC_CMD'
3798lt_cv_file_magic_test_file=
3799lt_cv_deplibs_check_method='unknown'
3800# Need to set the preceding variable on all platforms that support
3801# interlibrary dependencies.
3802# 'none' -- dependencies not supported.
3803# `unknown' -- same as none, but documents that we really don't know.
3804# 'pass_all' -- all dependencies passed with no checks.
3805# 'test_compile' -- check by making test program.
3806# 'file_magic [[regex]]' -- check by looking for files in library path
3807# which responds to the $file_magic_cmd with a given extended regex.
3808# If you have `file' or equivalent on your system and you're not sure
3809# whether `pass_all' will *always* work, you probably want this one.
3810
3811case $host_os in
3812aix4* | aix5*)
3813  lt_cv_deplibs_check_method=pass_all
3814  ;;
3815
3816beos*)
3817  lt_cv_deplibs_check_method=pass_all
3818  ;;
3819
3820bsdi[45]*)
3821  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3822  lt_cv_file_magic_cmd='/usr/bin/file -L'
3823  lt_cv_file_magic_test_file=/shlib/libc.so
3824  ;;
3825
3826cygwin*)
3827  # func_win32_libid is a shell function defined in ltmain.sh
3828  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3829  lt_cv_file_magic_cmd='func_win32_libid'
3830  ;;
3831
3832mingw* | pw32*)
3833  # Base MSYS/MinGW do not provide the 'file' command needed by
3834  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3835  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3836  lt_cv_file_magic_cmd='$OBJDUMP -f'
3837  ;;
3838
3839darwin* | rhapsody*)
3840  lt_cv_deplibs_check_method=pass_all
3841  ;;
3842
3843freebsd* | kfreebsd*-gnu | dragonfly*)
3844  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3845    case $host_cpu in
3846    i*86 )
3847      # Not sure whether the presence of OpenBSD here was a mistake.
3848      # Let's accept both of them until this is cleared up.
3849      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3850      lt_cv_file_magic_cmd=/usr/bin/file
3851      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3852      ;;
3853    esac
3854  else
3855    lt_cv_deplibs_check_method=pass_all
3856  fi
3857  ;;
3858
3859gnu*)
3860  lt_cv_deplibs_check_method=pass_all
3861  ;;
3862
3863hpux10.20* | hpux11*)
3864  lt_cv_file_magic_cmd=/usr/bin/file
3865  case $host_cpu in
3866  ia64*)
3867    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3868    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3869    ;;
3870  hppa*64*)
3871    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]'
3872    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3873    ;;
3874  *)
3875    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3876    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3877    ;;
3878  esac
3879  ;;
3880
3881interix3*)
3882  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3883  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3884  ;;
3885
3886irix5* | irix6* | nonstopux*)
3887  case $LD in
3888  *-32|*"-32 ") libmagic=32-bit;;
3889  *-n32|*"-n32 ") libmagic=N32;;
3890  *-64|*"-64 ") libmagic=64-bit;;
3891  *) libmagic=never-match;;
3892  esac
3893  lt_cv_deplibs_check_method=pass_all
3894  ;;
3895
3896# This must be Linux ELF.
3897linux*)
3898  lt_cv_deplibs_check_method=pass_all
3899  ;;
3900
3901netbsd*)
3902  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3903    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3904  else
3905    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3906  fi
3907  ;;
3908
3909newos6*)
3910  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3911  lt_cv_file_magic_cmd=/usr/bin/file
3912  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3913  ;;
3914
3915nto-qnx*)
3916  lt_cv_deplibs_check_method=unknown
3917  ;;
3918
3919openbsd*)
3920  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3921    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3922  else
3923    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3924  fi
3925  ;;
3926
3927osf3* | osf4* | osf5*)
3928  lt_cv_deplibs_check_method=pass_all
3929  ;;
3930
3931solaris*)
3932  lt_cv_deplibs_check_method=pass_all
3933  ;;
3934
3935sysv4 | sysv4.3*)
3936  case $host_vendor in
3937  motorola)
3938    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]'
3939    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3940    ;;
3941  ncr)
3942    lt_cv_deplibs_check_method=pass_all
3943    ;;
3944  sequent)
3945    lt_cv_file_magic_cmd='/bin/file'
3946    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3947    ;;
3948  sni)
3949    lt_cv_file_magic_cmd='/bin/file'
3950    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3951    lt_cv_file_magic_test_file=/lib/libc.so
3952    ;;
3953  siemens)
3954    lt_cv_deplibs_check_method=pass_all
3955    ;;
3956  pc)
3957    lt_cv_deplibs_check_method=pass_all
3958    ;;
3959  esac
3960  ;;
3961
3962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3963  lt_cv_deplibs_check_method=pass_all
3964  ;;
3965esac
3966
3967fi
3968echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3969echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3970file_magic_cmd=$lt_cv_file_magic_cmd
3971deplibs_check_method=$lt_cv_deplibs_check_method
3972test -z "$deplibs_check_method" && deplibs_check_method=unknown
3973
3974
3975
3976
3977# If no C compiler was specified, use CC.
3978LTCC=${LTCC-"$CC"}
3979
3980# If no C compiler flags were specified, use CFLAGS.
3981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3982
3983# Allow CC to be a program name with arguments.
3984compiler=$CC
3985
3986
3987# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3988if test "${enable_libtool_lock+set}" = set; then
3989  enableval="$enable_libtool_lock"
3990
3991fi;
3992test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3993
3994# Some flags need to be propagated to the compiler or linker for good
3995# libtool support.
3996case $host in
3997ia64-*-hpux*)
3998  # Find out which ABI we are using.
3999  echo 'int i;' > conftest.$ac_ext
4000  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001  (eval $ac_compile) 2>&5
4002  ac_status=$?
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); }; then
4005    case `/usr/bin/file conftest.$ac_objext` in
4006    *ELF-32*)
4007      HPUX_IA64_MODE="32"
4008      ;;
4009    *ELF-64*)
4010      HPUX_IA64_MODE="64"
4011      ;;
4012    esac
4013  fi
4014  rm -rf conftest*
4015  ;;
4016*-*-irix6*)
4017  # Find out which ABI we are using.
4018  echo '#line 4018 "configure"' > conftest.$ac_ext
4019  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020  (eval $ac_compile) 2>&5
4021  ac_status=$?
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); }; then
4024   if test "$lt_cv_prog_gnu_ld" = yes; then
4025    case `/usr/bin/file conftest.$ac_objext` in
4026    *32-bit*)
4027      LD="${LD-ld} -melf32bsmip"
4028      ;;
4029    *N32*)
4030      LD="${LD-ld} -melf32bmipn32"
4031      ;;
4032    *64-bit*)
4033      LD="${LD-ld} -melf64bmip"
4034      ;;
4035    esac
4036   else
4037    case `/usr/bin/file conftest.$ac_objext` in
4038    *32-bit*)
4039      LD="${LD-ld} -32"
4040      ;;
4041    *N32*)
4042      LD="${LD-ld} -n32"
4043      ;;
4044    *64-bit*)
4045      LD="${LD-ld} -64"
4046      ;;
4047    esac
4048   fi
4049  fi
4050  rm -rf conftest*
4051  ;;
4052
4053x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4054  # Find out which ABI we are using.
4055  echo 'int i;' > conftest.$ac_ext
4056  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057  (eval $ac_compile) 2>&5
4058  ac_status=$?
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; then
4061    case `/usr/bin/file conftest.o` in
4062    *32-bit*)
4063      case $host in
4064        x86_64-*linux*)
4065          LD="${LD-ld} -m elf_i386"
4066          ;;
4067        ppc64-*linux*|powerpc64-*linux*)
4068          LD="${LD-ld} -m elf32ppclinux"
4069          ;;
4070        s390x-*linux*)
4071          LD="${LD-ld} -m elf_s390"
4072          ;;
4073        sparc64-*linux*)
4074          LD="${LD-ld} -m elf32_sparc"
4075          ;;
4076      esac
4077      ;;
4078    *64-bit*)
4079      case $host in
4080        x86_64-*linux*)
4081          LD="${LD-ld} -m elf_x86_64"
4082          ;;
4083        ppc*-*linux*|powerpc*-*linux*)
4084          LD="${LD-ld} -m elf64ppc"
4085          ;;
4086        s390*-*linux*)
4087          LD="${LD-ld} -m elf64_s390"
4088          ;;
4089        sparc*-*linux*)
4090          LD="${LD-ld} -m elf64_sparc"
4091          ;;
4092      esac
4093      ;;
4094    esac
4095  fi
4096  rm -rf conftest*
4097  ;;
4098
4099*-*-sco3.2v5*)
4100  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4101  SAVE_CFLAGS="$CFLAGS"
4102  CFLAGS="$CFLAGS -belf"
4103  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4104echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4105if test "${lt_cv_cc_needs_belf+set}" = set; then
4106  echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108  ac_ext=c
4109ac_cpp='$CPP $CPPFLAGS'
4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114     cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h.  */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h.  */
4120
4121int
4122main ()
4123{
4124
4125  ;
4126  return 0;
4127}
4128_ACEOF
4129rm -f conftest.$ac_objext conftest$ac_exeext
4130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4131  (eval $ac_link) 2>conftest.er1
4132  ac_status=$?
4133  grep -v '^ *+' conftest.er1 >conftest.err
4134  rm -f conftest.er1
4135  cat conftest.err >&5
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); } &&
4138	 { ac_try='test -z "$ac_c_werror_flag"
4139			 || test ! -s conftest.err'
4140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141  (eval $ac_try) 2>&5
4142  ac_status=$?
4143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144  (exit $ac_status); }; } &&
4145	 { ac_try='test -s conftest$ac_exeext'
4146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147  (eval $ac_try) 2>&5
4148  ac_status=$?
4149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150  (exit $ac_status); }; }; then
4151  lt_cv_cc_needs_belf=yes
4152else
4153  echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
4156lt_cv_cc_needs_belf=no
4157fi
4158rm -f conftest.err conftest.$ac_objext \
4159      conftest$ac_exeext conftest.$ac_ext
4160     ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166fi
4167echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4168echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4169  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4170    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4171    CFLAGS="$SAVE_CFLAGS"
4172  fi
4173  ;;
4174sparc*-*solaris*)
4175  # Find out which ABI we are using.
4176  echo 'int i;' > conftest.$ac_ext
4177  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178  (eval $ac_compile) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; then
4182    case `/usr/bin/file conftest.o` in
4183    *64-bit*)
4184      case $lt_cv_prog_gnu_ld in
4185      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4186      *)    LD="${LD-ld} -64" ;;
4187      esac
4188      ;;
4189    esac
4190  fi
4191  rm -rf conftest*
4192  ;;
4193
4194
4195esac
4196
4197need_locks="$enable_libtool_lock"
4198
4199
4200
4201echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4202echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4203if test "${ac_cv_header_stdc+set}" = set; then
4204  echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206  cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h.  */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h.  */
4212#include <stdlib.h>
4213#include <stdarg.h>
4214#include <string.h>
4215#include <float.h>
4216
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext
4226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227  (eval $ac_compile) 2>conftest.er1
4228  ac_status=$?
4229  grep -v '^ *+' conftest.er1 >conftest.err
4230  rm -f conftest.er1
4231  cat conftest.err >&5
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); } &&
4234	 { ac_try='test -z "$ac_c_werror_flag"
4235			 || test ! -s conftest.err'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; } &&
4241	 { ac_try='test -s conftest.$ac_objext'
4242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243  (eval $ac_try) 2>&5
4244  ac_status=$?
4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); }; }; then
4247  ac_cv_header_stdc=yes
4248else
4249  echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252ac_cv_header_stdc=no
4253fi
4254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255
4256if test $ac_cv_header_stdc = yes; then
4257  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4258  cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h.  */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h.  */
4264#include <string.h>
4265
4266_ACEOF
4267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268  $EGREP "memchr" >/dev/null 2>&1; then
4269  :
4270else
4271  ac_cv_header_stdc=no
4272fi
4273rm -f conftest*
4274
4275fi
4276
4277if test $ac_cv_header_stdc = yes; then
4278  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4279  cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h.  */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h.  */
4285#include <stdlib.h>
4286
4287_ACEOF
4288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289  $EGREP "free" >/dev/null 2>&1; then
4290  :
4291else
4292  ac_cv_header_stdc=no
4293fi
4294rm -f conftest*
4295
4296fi
4297
4298if test $ac_cv_header_stdc = yes; then
4299  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300  if test "$cross_compiling" = yes; then
4301  :
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#include <ctype.h>
4310#if ((' ' & 0x0FF) == 0x020)
4311# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4313#else
4314# define ISLOWER(c) \
4315		   (('a' <= (c) && (c) <= 'i') \
4316		     || ('j' <= (c) && (c) <= 'r') \
4317		     || ('s' <= (c) && (c) <= 'z'))
4318# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4319#endif
4320
4321#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4322int
4323main ()
4324{
4325  int i;
4326  for (i = 0; i < 256; i++)
4327    if (XOR (islower (i), ISLOWER (i))
4328	|| toupper (i) != TOUPPER (i))
4329      exit(2);
4330  exit (0);
4331}
4332_ACEOF
4333rm -f conftest$ac_exeext
4334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335  (eval $ac_link) 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340  (eval $ac_try) 2>&5
4341  ac_status=$?
4342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343  (exit $ac_status); }; }; then
4344  :
4345else
4346  echo "$as_me: program exited with status $ac_status" >&5
4347echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350( exit $ac_status )
4351ac_cv_header_stdc=no
4352fi
4353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4354fi
4355fi
4356fi
4357echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4358echo "${ECHO_T}$ac_cv_header_stdc" >&6
4359if test $ac_cv_header_stdc = yes; then
4360
4361cat >>confdefs.h <<\_ACEOF
4362#define STDC_HEADERS 1
4363_ACEOF
4364
4365fi
4366
4367# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4378		  inttypes.h stdint.h unistd.h
4379do
4380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381echo "$as_me:$LINENO: checking for $ac_header" >&5
4382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384  echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386  cat >conftest.$ac_ext <<_ACEOF
4387/* confdefs.h.  */
4388_ACEOF
4389cat confdefs.h >>conftest.$ac_ext
4390cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h.  */
4392$ac_includes_default
4393
4394#include <$ac_header>
4395_ACEOF
4396rm -f conftest.$ac_objext
4397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398  (eval $ac_compile) 2>conftest.er1
4399  ac_status=$?
4400  grep -v '^ *+' conftest.er1 >conftest.err
4401  rm -f conftest.er1
4402  cat conftest.err >&5
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); } &&
4405	 { ac_try='test -z "$ac_c_werror_flag"
4406			 || test ! -s conftest.err'
4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408  (eval $ac_try) 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; } &&
4412	 { ac_try='test -s conftest.$ac_objext'
4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414  (eval $ac_try) 2>&5
4415  ac_status=$?
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); }; }; then
4418  eval "$as_ac_Header=yes"
4419else
4420  echo "$as_me: failed program was:" >&5
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423eval "$as_ac_Header=no"
4424fi
4425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426fi
4427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4429if test `eval echo '${'$as_ac_Header'}'` = yes; then
4430  cat >>confdefs.h <<_ACEOF
4431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4432_ACEOF
4433
4434fi
4435
4436done
4437
4438
4439
4440for ac_header in dlfcn.h
4441do
4442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444  echo "$as_me:$LINENO: checking for $ac_header" >&5
4445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4446if eval "test \"\${$as_ac_Header+set}\" = set"; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448fi
4449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4451else
4452  # Is the header compilable?
4453echo "$as_me:$LINENO: checking $ac_header usability" >&5
4454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4455cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h.  */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h.  */
4461$ac_includes_default
4462#include <$ac_header>
4463_ACEOF
4464rm -f conftest.$ac_objext
4465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466  (eval $ac_compile) 2>conftest.er1
4467  ac_status=$?
4468  grep -v '^ *+' conftest.er1 >conftest.err
4469  rm -f conftest.er1
4470  cat conftest.err >&5
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); } &&
4473	 { ac_try='test -z "$ac_c_werror_flag"
4474			 || test ! -s conftest.err'
4475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476  (eval $ac_try) 2>&5
4477  ac_status=$?
4478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479  (exit $ac_status); }; } &&
4480	 { ac_try='test -s conftest.$ac_objext'
4481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482  (eval $ac_try) 2>&5
4483  ac_status=$?
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); }; }; then
4486  ac_header_compiler=yes
4487else
4488  echo "$as_me: failed program was:" >&5
4489sed 's/^/| /' conftest.$ac_ext >&5
4490
4491ac_header_compiler=no
4492fi
4493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4495echo "${ECHO_T}$ac_header_compiler" >&6
4496
4497# Is the header present?
4498echo "$as_me:$LINENO: checking $ac_header presence" >&5
4499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4500cat >conftest.$ac_ext <<_ACEOF
4501/* confdefs.h.  */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h.  */
4506#include <$ac_header>
4507_ACEOF
4508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4509  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4510  ac_status=$?
4511  grep -v '^ *+' conftest.er1 >conftest.err
4512  rm -f conftest.er1
4513  cat conftest.err >&5
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); } >/dev/null; then
4516  if test -s conftest.err; then
4517    ac_cpp_err=$ac_c_preproc_warn_flag
4518    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4519  else
4520    ac_cpp_err=
4521  fi
4522else
4523  ac_cpp_err=yes
4524fi
4525if test -z "$ac_cpp_err"; then
4526  ac_header_preproc=yes
4527else
4528  echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531  ac_header_preproc=no
4532fi
4533rm -f conftest.err conftest.$ac_ext
4534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4535echo "${ECHO_T}$ac_header_preproc" >&6
4536
4537# So?  What about this header?
4538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4539  yes:no: )
4540    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4542    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4544    ac_header_preproc=yes
4545    ;;
4546  no:yes:* )
4547    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4549    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4550echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4551    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4553    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4554echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4555    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4557    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4559    (
4560      cat <<\_ASBOX
4561## ------------------------------------------ ##
4562## Report this to the AC_PACKAGE_NAME lists.  ##
4563## ------------------------------------------ ##
4564_ASBOX
4565    ) |
4566      sed "s/^/$as_me: WARNING:     /" >&2
4567    ;;
4568esac
4569echo "$as_me:$LINENO: checking for $ac_header" >&5
4570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4571if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574  eval "$as_ac_Header=\$ac_header_preproc"
4575fi
4576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4578
4579fi
4580if test `eval echo '${'$as_ac_Header'}'` = yes; then
4581  cat >>confdefs.h <<_ACEOF
4582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4583_ACEOF
4584
4585fi
4586
4587done
4588
4589
4590
4591if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4592    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4593    (test "X$CXX" != "Xg++"))) ; then
4594  ac_ext=cc
4595ac_cpp='$CXXCPP $CPPFLAGS'
4596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4599echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4600echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4601if test -z "$CXXCPP"; then
4602  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605      # Double quotes because CXXCPP needs to be expanded
4606    for CXXCPP in "$CXX -E" "/lib/cpp"
4607    do
4608      ac_preproc_ok=false
4609for ac_cxx_preproc_warn_flag in '' yes
4610do
4611  # Use a header file that comes with gcc, so configuring glibc
4612  # with a fresh cross-compiler works.
4613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4614  # <limits.h> exists even on freestanding compilers.
4615  # On the NeXT, cc -E runs the code through the compiler's parser,
4616  # not just through cpp. "Syntax error" is here to catch this case.
4617  cat >conftest.$ac_ext <<_ACEOF
4618/* confdefs.h.  */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h.  */
4623#ifdef __STDC__
4624# include <limits.h>
4625#else
4626# include <assert.h>
4627#endif
4628		     Syntax error
4629_ACEOF
4630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4632  ac_status=$?
4633  grep -v '^ *+' conftest.er1 >conftest.err
4634  rm -f conftest.er1
4635  cat conftest.err >&5
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); } >/dev/null; then
4638  if test -s conftest.err; then
4639    ac_cpp_err=$ac_cxx_preproc_warn_flag
4640    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4641  else
4642    ac_cpp_err=
4643  fi
4644else
4645  ac_cpp_err=yes
4646fi
4647if test -z "$ac_cpp_err"; then
4648  :
4649else
4650  echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653  # Broken: fails on valid input.
4654continue
4655fi
4656rm -f conftest.err conftest.$ac_ext
4657
4658  # OK, works on sane cases.  Now check whether non-existent headers
4659  # can be detected and how.
4660  cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h.  */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h.  */
4666#include <ac_nonexistent.h>
4667_ACEOF
4668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4670  ac_status=$?
4671  grep -v '^ *+' conftest.er1 >conftest.err
4672  rm -f conftest.er1
4673  cat conftest.err >&5
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); } >/dev/null; then
4676  if test -s conftest.err; then
4677    ac_cpp_err=$ac_cxx_preproc_warn_flag
4678    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4679  else
4680    ac_cpp_err=
4681  fi
4682else
4683  ac_cpp_err=yes
4684fi
4685if test -z "$ac_cpp_err"; then
4686  # Broken: success on invalid input.
4687continue
4688else
4689  echo "$as_me: failed program was:" >&5
4690sed 's/^/| /' conftest.$ac_ext >&5
4691
4692  # Passes both tests.
4693ac_preproc_ok=:
4694break
4695fi
4696rm -f conftest.err conftest.$ac_ext
4697
4698done
4699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700rm -f conftest.err conftest.$ac_ext
4701if $ac_preproc_ok; then
4702  break
4703fi
4704
4705    done
4706    ac_cv_prog_CXXCPP=$CXXCPP
4707
4708fi
4709  CXXCPP=$ac_cv_prog_CXXCPP
4710else
4711  ac_cv_prog_CXXCPP=$CXXCPP
4712fi
4713echo "$as_me:$LINENO: result: $CXXCPP" >&5
4714echo "${ECHO_T}$CXXCPP" >&6
4715ac_preproc_ok=false
4716for ac_cxx_preproc_warn_flag in '' yes
4717do
4718  # Use a header file that comes with gcc, so configuring glibc
4719  # with a fresh cross-compiler works.
4720  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721  # <limits.h> exists even on freestanding compilers.
4722  # On the NeXT, cc -E runs the code through the compiler's parser,
4723  # not just through cpp. "Syntax error" is here to catch this case.
4724  cat >conftest.$ac_ext <<_ACEOF
4725/* confdefs.h.  */
4726_ACEOF
4727cat confdefs.h >>conftest.$ac_ext
4728cat >>conftest.$ac_ext <<_ACEOF
4729/* end confdefs.h.  */
4730#ifdef __STDC__
4731# include <limits.h>
4732#else
4733# include <assert.h>
4734#endif
4735		     Syntax error
4736_ACEOF
4737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739  ac_status=$?
4740  grep -v '^ *+' conftest.er1 >conftest.err
4741  rm -f conftest.er1
4742  cat conftest.err >&5
4743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744  (exit $ac_status); } >/dev/null; then
4745  if test -s conftest.err; then
4746    ac_cpp_err=$ac_cxx_preproc_warn_flag
4747    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4748  else
4749    ac_cpp_err=
4750  fi
4751else
4752  ac_cpp_err=yes
4753fi
4754if test -z "$ac_cpp_err"; then
4755  :
4756else
4757  echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760  # Broken: fails on valid input.
4761continue
4762fi
4763rm -f conftest.err conftest.$ac_ext
4764
4765  # OK, works on sane cases.  Now check whether non-existent headers
4766  # can be detected and how.
4767  cat >conftest.$ac_ext <<_ACEOF
4768/* confdefs.h.  */
4769_ACEOF
4770cat confdefs.h >>conftest.$ac_ext
4771cat >>conftest.$ac_ext <<_ACEOF
4772/* end confdefs.h.  */
4773#include <ac_nonexistent.h>
4774_ACEOF
4775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777  ac_status=$?
4778  grep -v '^ *+' conftest.er1 >conftest.err
4779  rm -f conftest.er1
4780  cat conftest.err >&5
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); } >/dev/null; then
4783  if test -s conftest.err; then
4784    ac_cpp_err=$ac_cxx_preproc_warn_flag
4785    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4786  else
4787    ac_cpp_err=
4788  fi
4789else
4790  ac_cpp_err=yes
4791fi
4792if test -z "$ac_cpp_err"; then
4793  # Broken: success on invalid input.
4794continue
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799  # Passes both tests.
4800ac_preproc_ok=:
4801break
4802fi
4803rm -f conftest.err conftest.$ac_ext
4804
4805done
4806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807rm -f conftest.err conftest.$ac_ext
4808if $ac_preproc_ok; then
4809  :
4810else
4811  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4812See \`config.log' for more details." >&5
4813echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4814See \`config.log' for more details." >&2;}
4815   { (exit 1); exit 1; }; }
4816fi
4817
4818ac_ext=cc
4819ac_cpp='$CXXCPP $CPPFLAGS'
4820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4823
4824fi
4825
4826
4827ac_ext=f
4828ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4829ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4831if test -n "$ac_tool_prefix"; then
4832  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4833  do
4834    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4836echo "$as_me:$LINENO: checking for $ac_word" >&5
4837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838if test "${ac_cv_prog_F77+set}" = set; then
4839  echo $ECHO_N "(cached) $ECHO_C" >&6
4840else
4841  if test -n "$F77"; then
4842  ac_cv_prog_F77="$F77" # Let the user override the test.
4843else
4844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH
4846do
4847  IFS=$as_save_IFS
4848  test -z "$as_dir" && as_dir=.
4849  for ac_exec_ext in '' $ac_executable_extensions; do
4850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853    break 2
4854  fi
4855done
4856done
4857
4858fi
4859fi
4860F77=$ac_cv_prog_F77
4861if test -n "$F77"; then
4862  echo "$as_me:$LINENO: result: $F77" >&5
4863echo "${ECHO_T}$F77" >&6
4864else
4865  echo "$as_me:$LINENO: result: no" >&5
4866echo "${ECHO_T}no" >&6
4867fi
4868
4869    test -n "$F77" && break
4870  done
4871fi
4872if test -z "$F77"; then
4873  ac_ct_F77=$F77
4874  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4875do
4876  # Extract the first word of "$ac_prog", so it can be a program name with args.
4877set dummy $ac_prog; ac_word=$2
4878echo "$as_me:$LINENO: checking for $ac_word" >&5
4879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4880if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4881  echo $ECHO_N "(cached) $ECHO_C" >&6
4882else
4883  if test -n "$ac_ct_F77"; then
4884  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889  IFS=$as_save_IFS
4890  test -z "$as_dir" && as_dir=.
4891  for ac_exec_ext in '' $ac_executable_extensions; do
4892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893    ac_cv_prog_ac_ct_F77="$ac_prog"
4894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895    break 2
4896  fi
4897done
4898done
4899
4900fi
4901fi
4902ac_ct_F77=$ac_cv_prog_ac_ct_F77
4903if test -n "$ac_ct_F77"; then
4904  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4905echo "${ECHO_T}$ac_ct_F77" >&6
4906else
4907  echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909fi
4910
4911  test -n "$ac_ct_F77" && break
4912done
4913
4914  F77=$ac_ct_F77
4915fi
4916
4917
4918# Provide some information about the compiler.
4919echo "$as_me:4919:" \
4920     "checking for Fortran 77 compiler version" >&5
4921ac_compiler=`set X $ac_compile; echo $2`
4922{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4923  (eval $ac_compiler --version </dev/null >&5) 2>&5
4924  ac_status=$?
4925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); }
4927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4928  (eval $ac_compiler -v </dev/null >&5) 2>&5
4929  ac_status=$?
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); }
4932{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4933  (eval $ac_compiler -V </dev/null >&5) 2>&5
4934  ac_status=$?
4935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936  (exit $ac_status); }
4937rm -f a.out
4938
4939# If we don't use `.F' as extension, the preprocessor is not run on the
4940# input file.  (Note that this only needs to work for GNU compilers.)
4941ac_save_ext=$ac_ext
4942ac_ext=F
4943echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4944echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4945if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4946  echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948  cat >conftest.$ac_ext <<_ACEOF
4949      program main
4950#ifndef __GNUC__
4951       choke me
4952#endif
4953
4954      end
4955_ACEOF
4956rm -f conftest.$ac_objext
4957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958  (eval $ac_compile) 2>conftest.er1
4959  ac_status=$?
4960  grep -v '^ *+' conftest.er1 >conftest.err
4961  rm -f conftest.er1
4962  cat conftest.err >&5
4963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964  (exit $ac_status); } &&
4965	 { ac_try='test -z "$ac_f77_werror_flag"
4966			 || test ! -s conftest.err'
4967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968  (eval $ac_try) 2>&5
4969  ac_status=$?
4970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971  (exit $ac_status); }; } &&
4972	 { ac_try='test -s conftest.$ac_objext'
4973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974  (eval $ac_try) 2>&5
4975  ac_status=$?
4976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977  (exit $ac_status); }; }; then
4978  ac_compiler_gnu=yes
4979else
4980  echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983ac_compiler_gnu=no
4984fi
4985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4987
4988fi
4989echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4990echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4991ac_ext=$ac_save_ext
4992ac_test_FFLAGS=${FFLAGS+set}
4993ac_save_FFLAGS=$FFLAGS
4994FFLAGS=
4995echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4996echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4997if test "${ac_cv_prog_f77_g+set}" = set; then
4998  echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000  FFLAGS=-g
5001cat >conftest.$ac_ext <<_ACEOF
5002      program main
5003
5004      end
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008  (eval $ac_compile) 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } &&
5015	 { ac_try='test -z "$ac_f77_werror_flag"
5016			 || test ! -s conftest.err'
5017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018  (eval $ac_try) 2>&5
5019  ac_status=$?
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); }; } &&
5022	 { ac_try='test -s conftest.$ac_objext'
5023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024  (eval $ac_try) 2>&5
5025  ac_status=$?
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); }; }; then
5028  ac_cv_prog_f77_g=yes
5029else
5030  echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033ac_cv_prog_f77_g=no
5034fi
5035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036
5037fi
5038echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5039echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5040if test "$ac_test_FFLAGS" = set; then
5041  FFLAGS=$ac_save_FFLAGS
5042elif test $ac_cv_prog_f77_g = yes; then
5043  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5044    FFLAGS="-g  -pipe -O2 -fno-strict-aliasing "
5045  else
5046    FFLAGS="-g"
5047  fi
5048else
5049  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5050    FFLAGS=" -pipe -O2 -fno-strict-aliasing "
5051  else
5052    FFLAGS=
5053  fi
5054fi
5055
5056G77=`test $ac_compiler_gnu = yes && echo yes`
5057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063
5064
5065# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5066
5067# find the maximum length of command line arguments
5068echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5069echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5070if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5071  echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073    i=0
5074  teststring="ABCD"
5075
5076  case $build_os in
5077  msdosdjgpp*)
5078    # On DJGPP, this test can blow up pretty badly due to problems in libc
5079    # (any single argument exceeding 2000 bytes causes a buffer overrun
5080    # during glob expansion).  Even if it were fixed, the result of this
5081    # check would be larger than it should be.
5082    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5083    ;;
5084
5085  gnu*)
5086    # Under GNU Hurd, this test is not required because there is
5087    # no limit to the length of command line arguments.
5088    # Libtool will interpret -1 as no limit whatsoever
5089    lt_cv_sys_max_cmd_len=-1;
5090    ;;
5091
5092  cygwin* | mingw*)
5093    # On Win9x/ME, this test blows up -- it succeeds, but takes
5094    # about 5 minutes as the teststring grows exponentially.
5095    # Worse, since 9x/ME are not pre-emptively multitasking,
5096    # you end up with a "frozen" computer, even though with patience
5097    # the test eventually succeeds (with a max line length of 256k).
5098    # Instead, let's just punt: use the minimum linelength reported by
5099    # all of the supported platforms: 8192 (on NT/2K/XP).
5100    lt_cv_sys_max_cmd_len=8192;
5101    ;;
5102
5103  amigaos*)
5104    # On AmigaOS with pdksh, this test takes hours, literally.
5105    # So we just punt and use a minimum line length of 8192.
5106    lt_cv_sys_max_cmd_len=8192;
5107    ;;
5108
5109  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5110    # This has been around since 386BSD, at least.  Likely further.
5111    if test -x /sbin/sysctl; then
5112      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5113    elif test -x /usr/sbin/sysctl; then
5114      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5115    else
5116      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5117    fi
5118    # And add a safety zone
5119    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5120    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5121    ;;
5122
5123  interix*)
5124    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5125    lt_cv_sys_max_cmd_len=196608
5126    ;;
5127
5128  osf*)
5129    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5130    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5131    # nice to cause kernel panics so lets avoid the loop below.
5132    # First set a reasonable default.
5133    lt_cv_sys_max_cmd_len=16384
5134    #
5135    if test -x /sbin/sysconfig; then
5136      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5137        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5138      esac
5139    fi
5140    ;;
5141  sco3.2v5*)
5142    lt_cv_sys_max_cmd_len=102400
5143    ;;
5144  sysv5* | sco5v6* | sysv4.2uw2*)
5145    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5146    if test -n "$kargmax"; then
5147      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5148    else
5149      lt_cv_sys_max_cmd_len=32768
5150    fi
5151    ;;
5152  *)
5153    # If test is not a shell built-in, we'll probably end up computing a
5154    # maximum length that is only half of the actual maximum length, but
5155    # we can't tell.
5156    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5157    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5158	       = "XX$teststring") >/dev/null 2>&1 &&
5159	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5160	    lt_cv_sys_max_cmd_len=$new_result &&
5161	    test $i != 17 # 1/2 MB should be enough
5162    do
5163      i=`expr $i + 1`
5164      teststring=$teststring$teststring
5165    done
5166    teststring=
5167    # Add a significant safety factor because C++ compilers can tack on massive
5168    # amounts of additional arguments before passing them to the linker.
5169    # It appears as though 1/2 is a usable value.
5170    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5171    ;;
5172  esac
5173
5174fi
5175
5176if test -n $lt_cv_sys_max_cmd_len ; then
5177  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5178echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5179else
5180  echo "$as_me:$LINENO: result: none" >&5
5181echo "${ECHO_T}none" >&6
5182fi
5183
5184
5185
5186
5187# Check for command to grab the raw symbol name followed by C symbol from nm.
5188echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5189echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5190if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5191  echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193
5194# These are sane defaults that work on at least a few old systems.
5195# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5196
5197# Character class describing NM global symbol codes.
5198symcode='[BCDEGRST]'
5199
5200# Regexp to match symbols that can be accessed directly from C.
5201sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5202
5203# Transform an extracted symbol line into a proper C declaration
5204lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5205
5206# Transform an extracted symbol line into symbol name and symbol address
5207lt_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'"
5208
5209# Define system-specific variables.
5210case $host_os in
5211aix*)
5212  symcode='[BCDT]'
5213  ;;
5214cygwin* | mingw* | pw32*)
5215  symcode='[ABCDGISTW]'
5216  ;;
5217hpux*) # Its linker distinguishes data from code symbols
5218  if test "$host_cpu" = ia64; then
5219    symcode='[ABCDEGRST]'
5220  fi
5221  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5222  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'"
5223  ;;
5224linux*)
5225  if test "$host_cpu" = ia64; then
5226    symcode='[ABCDGIRSTW]'
5227    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5228    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'"
5229  fi
5230  ;;
5231irix* | nonstopux*)
5232  symcode='[BCDEGRST]'
5233  ;;
5234osf*)
5235  symcode='[BCDEGQRST]'
5236  ;;
5237solaris*)
5238  symcode='[BDRT]'
5239  ;;
5240sco3.2v5*)
5241  symcode='[DT]'
5242  ;;
5243sysv4.2uw2*)
5244  symcode='[DT]'
5245  ;;
5246sysv5* | sco5v6* | unixware* | OpenUNIX*)
5247  symcode='[ABDT]'
5248  ;;
5249sysv4)
5250  symcode='[DFNSTU]'
5251  ;;
5252esac
5253
5254# Handle CRLF in mingw tool chain
5255opt_cr=
5256case $build_os in
5257mingw*)
5258  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5259  ;;
5260esac
5261
5262# If we're using GNU nm, then use its standard symbol codes.
5263case `$NM -V 2>&1` in
5264*GNU* | *'with BFD'*)
5265  symcode='[ABCDGIRSTW]' ;;
5266esac
5267
5268# Try without a prefix undercore, then with it.
5269for ac_symprfx in "" "_"; do
5270
5271  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5272  symxfrm="\\1 $ac_symprfx\\2 \\2"
5273
5274  # Write the raw and C identifiers.
5275  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5276
5277  # Check to see that the pipe works correctly.
5278  pipe_works=no
5279
5280  rm -f conftest*
5281  cat > conftest.$ac_ext <<EOF
5282#ifdef __cplusplus
5283extern "C" {
5284#endif
5285char nm_test_var;
5286void nm_test_func(){}
5287#ifdef __cplusplus
5288}
5289#endif
5290int main(){nm_test_var='a';nm_test_func();return(0);}
5291EOF
5292
5293  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294  (eval $ac_compile) 2>&5
5295  ac_status=$?
5296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297  (exit $ac_status); }; then
5298    # Now try to grab the symbols.
5299    nlist=conftest.nm
5300    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5301  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); } && test -s "$nlist"; then
5305      # Try sorting and uniquifying the output.
5306      if sort "$nlist" | uniq > "$nlist"T; then
5307	mv -f "$nlist"T "$nlist"
5308      else
5309	rm -f "$nlist"T
5310      fi
5311
5312      # Make sure that we snagged all the symbols we need.
5313      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5314	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5315	  cat <<EOF > conftest.$ac_ext
5316#ifdef __cplusplus
5317extern "C" {
5318#endif
5319
5320EOF
5321	  # Now generate the symbol file.
5322	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5323
5324	  cat <<EOF >> conftest.$ac_ext
5325#if defined (__STDC__) && __STDC__
5326# define lt_ptr_t void *
5327#else
5328# define lt_ptr_t char *
5329# define const
5330#endif
5331
5332/* The mapping between symbol names and symbols. */
5333const struct {
5334  const char *name;
5335  lt_ptr_t address;
5336}
5337lt_preloaded_symbols[] =
5338{
5339EOF
5340	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5341	  cat <<\EOF >> conftest.$ac_ext
5342  {0, (lt_ptr_t) 0}
5343};
5344
5345#ifdef __cplusplus
5346}
5347#endif
5348EOF
5349	  # Now try linking the two files.
5350	  mv conftest.$ac_objext conftstm.$ac_objext
5351	  lt_save_LIBS="$LIBS"
5352	  lt_save_CFLAGS="$CFLAGS"
5353	  LIBS="conftstm.$ac_objext"
5354	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5355	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356  (eval $ac_link) 2>&5
5357  ac_status=$?
5358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5360	    pipe_works=yes
5361	  fi
5362	  LIBS="$lt_save_LIBS"
5363	  CFLAGS="$lt_save_CFLAGS"
5364	else
5365	  echo "cannot find nm_test_func in $nlist" >&5
5366	fi
5367      else
5368	echo "cannot find nm_test_var in $nlist" >&5
5369      fi
5370    else
5371      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5372    fi
5373  else
5374    echo "$progname: failed program was:" >&5
5375    cat conftest.$ac_ext >&5
5376  fi
5377  rm -f conftest* conftst*
5378
5379  # Do not use the global_symbol_pipe unless it works.
5380  if test "$pipe_works" = yes; then
5381    break
5382  else
5383    lt_cv_sys_global_symbol_pipe=
5384  fi
5385done
5386
5387fi
5388
5389if test -z "$lt_cv_sys_global_symbol_pipe"; then
5390  lt_cv_sys_global_symbol_to_cdecl=
5391fi
5392if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5393  echo "$as_me:$LINENO: result: failed" >&5
5394echo "${ECHO_T}failed" >&6
5395else
5396  echo "$as_me:$LINENO: result: ok" >&5
5397echo "${ECHO_T}ok" >&6
5398fi
5399
5400echo "$as_me:$LINENO: checking for objdir" >&5
5401echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5402if test "${lt_cv_objdir+set}" = set; then
5403  echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405  rm -f .libs 2>/dev/null
5406mkdir .libs 2>/dev/null
5407if test -d .libs; then
5408  lt_cv_objdir=.libs
5409else
5410  # MS-DOS does not allow filenames that begin with a dot.
5411  lt_cv_objdir=_libs
5412fi
5413rmdir .libs 2>/dev/null
5414fi
5415echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5416echo "${ECHO_T}$lt_cv_objdir" >&6
5417objdir=$lt_cv_objdir
5418
5419
5420
5421
5422
5423case $host_os in
5424aix3*)
5425  # AIX sometimes has problems with the GCC collect2 program.  For some
5426  # reason, if we set the COLLECT_NAMES environment variable, the problems
5427  # vanish in a puff of smoke.
5428  if test "X${COLLECT_NAMES+set}" != Xset; then
5429    COLLECT_NAMES=
5430    export COLLECT_NAMES
5431  fi
5432  ;;
5433esac
5434
5435# Sed substitution that helps us do robust quoting.  It backslashifies
5436# metacharacters that are still active within double-quoted strings.
5437Xsed='sed -e 1s/^X//'
5438sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5439
5440# Same as above, but do not quote variable references.
5441double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5442
5443# Sed substitution to delay expansion of an escaped shell variable in a
5444# double_quote_subst'ed string.
5445delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5446
5447# Sed substitution to avoid accidental globbing in evaled expressions
5448no_glob_subst='s/\*/\\\*/g'
5449
5450# Constants:
5451rm="rm -f"
5452
5453# Global variables:
5454default_ofile=libtool
5455can_build_shared=yes
5456
5457# All known linkers require a `.a' archive for static linking (except MSVC,
5458# which needs '.lib').
5459libext=a
5460ltmain="$ac_aux_dir/ltmain.sh"
5461ofile="$default_ofile"
5462with_gnu_ld="$lt_cv_prog_gnu_ld"
5463
5464if test -n "$ac_tool_prefix"; then
5465  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5466set dummy ${ac_tool_prefix}ar; ac_word=$2
5467echo "$as_me:$LINENO: checking for $ac_word" >&5
5468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469if test "${ac_cv_prog_AR+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  if test -n "$AR"; then
5473  ac_cv_prog_AR="$AR" # Let the user override the test.
5474else
5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478  IFS=$as_save_IFS
5479  test -z "$as_dir" && as_dir=.
5480  for ac_exec_ext in '' $ac_executable_extensions; do
5481  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482    ac_cv_prog_AR="${ac_tool_prefix}ar"
5483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484    break 2
5485  fi
5486done
5487done
5488
5489fi
5490fi
5491AR=$ac_cv_prog_AR
5492if test -n "$AR"; then
5493  echo "$as_me:$LINENO: result: $AR" >&5
5494echo "${ECHO_T}$AR" >&6
5495else
5496  echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6
5498fi
5499
5500fi
5501if test -z "$ac_cv_prog_AR"; then
5502  ac_ct_AR=$AR
5503  # Extract the first word of "ar", so it can be a program name with args.
5504set dummy ar; ac_word=$2
5505echo "$as_me:$LINENO: checking for $ac_word" >&5
5506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5508  echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510  if test -n "$ac_ct_AR"; then
5511  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516  IFS=$as_save_IFS
5517  test -z "$as_dir" && as_dir=.
5518  for ac_exec_ext in '' $ac_executable_extensions; do
5519  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520    ac_cv_prog_ac_ct_AR="ar"
5521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522    break 2
5523  fi
5524done
5525done
5526
5527  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5528fi
5529fi
5530ac_ct_AR=$ac_cv_prog_ac_ct_AR
5531if test -n "$ac_ct_AR"; then
5532  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5533echo "${ECHO_T}$ac_ct_AR" >&6
5534else
5535  echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
5537fi
5538
5539  AR=$ac_ct_AR
5540else
5541  AR="$ac_cv_prog_AR"
5542fi
5543
5544if test -n "$ac_tool_prefix"; then
5545  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5546set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5547echo "$as_me:$LINENO: checking for $ac_word" >&5
5548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549if test "${ac_cv_prog_RANLIB+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  if test -n "$RANLIB"; then
5553  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558  IFS=$as_save_IFS
5559  test -z "$as_dir" && as_dir=.
5560  for ac_exec_ext in '' $ac_executable_extensions; do
5561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564    break 2
5565  fi
5566done
5567done
5568
5569fi
5570fi
5571RANLIB=$ac_cv_prog_RANLIB
5572if test -n "$RANLIB"; then
5573  echo "$as_me:$LINENO: result: $RANLIB" >&5
5574echo "${ECHO_T}$RANLIB" >&6
5575else
5576  echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6
5578fi
5579
5580fi
5581if test -z "$ac_cv_prog_RANLIB"; then
5582  ac_ct_RANLIB=$RANLIB
5583  # Extract the first word of "ranlib", so it can be a program name with args.
5584set dummy ranlib; ac_word=$2
5585echo "$as_me:$LINENO: checking for $ac_word" >&5
5586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590  if test -n "$ac_ct_RANLIB"; then
5591  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596  IFS=$as_save_IFS
5597  test -z "$as_dir" && as_dir=.
5598  for ac_exec_ext in '' $ac_executable_extensions; do
5599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600    ac_cv_prog_ac_ct_RANLIB="ranlib"
5601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602    break 2
5603  fi
5604done
5605done
5606
5607  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5608fi
5609fi
5610ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5611if test -n "$ac_ct_RANLIB"; then
5612  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5613echo "${ECHO_T}$ac_ct_RANLIB" >&6
5614else
5615  echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617fi
5618
5619  RANLIB=$ac_ct_RANLIB
5620else
5621  RANLIB="$ac_cv_prog_RANLIB"
5622fi
5623
5624if test -n "$ac_tool_prefix"; then
5625  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5626set dummy ${ac_tool_prefix}strip; ac_word=$2
5627echo "$as_me:$LINENO: checking for $ac_word" >&5
5628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629if test "${ac_cv_prog_STRIP+set}" = set; then
5630  echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632  if test -n "$STRIP"; then
5633  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5634else
5635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH
5637do
5638  IFS=$as_save_IFS
5639  test -z "$as_dir" && as_dir=.
5640  for ac_exec_ext in '' $ac_executable_extensions; do
5641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644    break 2
5645  fi
5646done
5647done
5648
5649fi
5650fi
5651STRIP=$ac_cv_prog_STRIP
5652if test -n "$STRIP"; then
5653  echo "$as_me:$LINENO: result: $STRIP" >&5
5654echo "${ECHO_T}$STRIP" >&6
5655else
5656  echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658fi
5659
5660fi
5661if test -z "$ac_cv_prog_STRIP"; then
5662  ac_ct_STRIP=$STRIP
5663  # Extract the first word of "strip", so it can be a program name with args.
5664set dummy strip; ac_word=$2
5665echo "$as_me:$LINENO: checking for $ac_word" >&5
5666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5668  echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670  if test -n "$ac_ct_STRIP"; then
5671  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676  IFS=$as_save_IFS
5677  test -z "$as_dir" && as_dir=.
5678  for ac_exec_ext in '' $ac_executable_extensions; do
5679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680    ac_cv_prog_ac_ct_STRIP="strip"
5681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682    break 2
5683  fi
5684done
5685done
5686
5687  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5688fi
5689fi
5690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691if test -n "$ac_ct_STRIP"; then
5692  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5693echo "${ECHO_T}$ac_ct_STRIP" >&6
5694else
5695  echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697fi
5698
5699  STRIP=$ac_ct_STRIP
5700else
5701  STRIP="$ac_cv_prog_STRIP"
5702fi
5703
5704
5705old_CC="$CC"
5706old_CFLAGS="$CFLAGS"
5707
5708# Set sane defaults for various variables
5709test -z "$AR" && AR=ar
5710test -z "$AR_FLAGS" && AR_FLAGS=cru
5711test -z "$AS" && AS=as
5712test -z "$CC" && CC=cc
5713test -z "$LTCC" && LTCC=$CC
5714test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5715test -z "$DLLTOOL" && DLLTOOL=dlltool
5716test -z "$LD" && LD=ld
5717test -z "$LN_S" && LN_S="ln -s"
5718test -z "$MAGIC_CMD" && MAGIC_CMD=file
5719test -z "$NM" && NM=nm
5720test -z "$SED" && SED=sed
5721test -z "$OBJDUMP" && OBJDUMP=objdump
5722test -z "$RANLIB" && RANLIB=:
5723test -z "$STRIP" && STRIP=:
5724test -z "$ac_objext" && ac_objext=o
5725
5726# Determine commands to create old-style static archives.
5727old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5728old_postinstall_cmds='chmod 644 $oldlib'
5729old_postuninstall_cmds=
5730
5731if test -n "$RANLIB"; then
5732  case $host_os in
5733  openbsd*)
5734    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5735    ;;
5736  *)
5737    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5738    ;;
5739  esac
5740  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5741fi
5742
5743for cc_temp in $compiler""; do
5744  case $cc_temp in
5745    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5746    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5747    \-*) ;;
5748    *) break;;
5749  esac
5750done
5751cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5752
5753
5754# Only perform the check for file, if the check method requires it
5755case $deplibs_check_method in
5756file_magic*)
5757  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5758    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5759echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5760if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5761  echo $ECHO_N "(cached) $ECHO_C" >&6
5762else
5763  case $MAGIC_CMD in
5764[\\/*] |  ?:[\\/]*)
5765  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5766  ;;
5767*)
5768  lt_save_MAGIC_CMD="$MAGIC_CMD"
5769  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5770  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5771  for ac_dir in $ac_dummy; do
5772    IFS="$lt_save_ifs"
5773    test -z "$ac_dir" && ac_dir=.
5774    if test -f $ac_dir/${ac_tool_prefix}file; then
5775      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5776      if test -n "$file_magic_test_file"; then
5777	case $deplibs_check_method in
5778	"file_magic "*)
5779	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5780	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5781	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5782	    $EGREP "$file_magic_regex" > /dev/null; then
5783	    :
5784	  else
5785	    cat <<EOF 1>&2
5786
5787*** Warning: the command libtool uses to detect shared libraries,
5788*** $file_magic_cmd, produces output that libtool cannot recognize.
5789*** The result is that libtool may fail to recognize shared libraries
5790*** as such.  This will affect the creation of libtool libraries that
5791*** depend on shared libraries, but programs linked with such libtool
5792*** libraries will work regardless of this problem.  Nevertheless, you
5793*** may want to report the problem to your system manager and/or to
5794*** bug-libtool@gnu.org
5795
5796EOF
5797	  fi ;;
5798	esac
5799      fi
5800      break
5801    fi
5802  done
5803  IFS="$lt_save_ifs"
5804  MAGIC_CMD="$lt_save_MAGIC_CMD"
5805  ;;
5806esac
5807fi
5808
5809MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5810if test -n "$MAGIC_CMD"; then
5811  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5812echo "${ECHO_T}$MAGIC_CMD" >&6
5813else
5814  echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816fi
5817
5818if test -z "$lt_cv_path_MAGIC_CMD"; then
5819  if test -n "$ac_tool_prefix"; then
5820    echo "$as_me:$LINENO: checking for file" >&5
5821echo $ECHO_N "checking for file... $ECHO_C" >&6
5822if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825  case $MAGIC_CMD in
5826[\\/*] |  ?:[\\/]*)
5827  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5828  ;;
5829*)
5830  lt_save_MAGIC_CMD="$MAGIC_CMD"
5831  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5833  for ac_dir in $ac_dummy; do
5834    IFS="$lt_save_ifs"
5835    test -z "$ac_dir" && ac_dir=.
5836    if test -f $ac_dir/file; then
5837      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5838      if test -n "$file_magic_test_file"; then
5839	case $deplibs_check_method in
5840	"file_magic "*)
5841	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5842	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5843	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5844	    $EGREP "$file_magic_regex" > /dev/null; then
5845	    :
5846	  else
5847	    cat <<EOF 1>&2
5848
5849*** Warning: the command libtool uses to detect shared libraries,
5850*** $file_magic_cmd, produces output that libtool cannot recognize.
5851*** The result is that libtool may fail to recognize shared libraries
5852*** as such.  This will affect the creation of libtool libraries that
5853*** depend on shared libraries, but programs linked with such libtool
5854*** libraries will work regardless of this problem.  Nevertheless, you
5855*** may want to report the problem to your system manager and/or to
5856*** bug-libtool@gnu.org
5857
5858EOF
5859	  fi ;;
5860	esac
5861      fi
5862      break
5863    fi
5864  done
5865  IFS="$lt_save_ifs"
5866  MAGIC_CMD="$lt_save_MAGIC_CMD"
5867  ;;
5868esac
5869fi
5870
5871MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5872if test -n "$MAGIC_CMD"; then
5873  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5874echo "${ECHO_T}$MAGIC_CMD" >&6
5875else
5876  echo "$as_me:$LINENO: result: no" >&5
5877echo "${ECHO_T}no" >&6
5878fi
5879
5880  else
5881    MAGIC_CMD=:
5882  fi
5883fi
5884
5885  fi
5886  ;;
5887esac
5888
5889enable_dlopen=no
5890enable_win32_dll=no
5891
5892# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5893if test "${enable_libtool_lock+set}" = set; then
5894  enableval="$enable_libtool_lock"
5895
5896fi;
5897test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5898
5899
5900# Check whether --with-pic or --without-pic was given.
5901if test "${with_pic+set}" = set; then
5902  withval="$with_pic"
5903  pic_mode="$withval"
5904else
5905  pic_mode=default
5906fi;
5907test -z "$pic_mode" && pic_mode=default
5908
5909# Use C for the default configuration in the libtool script
5910tagname=
5911lt_save_CC="$CC"
5912ac_ext=c
5913ac_cpp='$CPP $CPPFLAGS'
5914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917
5918
5919# Source file extension for C test sources.
5920ac_ext=c
5921
5922# Object file extension for compiled C test sources.
5923objext=o
5924objext=$objext
5925
5926# Code to be used in simple compile tests
5927lt_simple_compile_test_code="int some_variable = 0;\n"
5928
5929# Code to be used in simple link tests
5930lt_simple_link_test_code='int main(){return(0);}\n'
5931
5932
5933# If no C compiler was specified, use CC.
5934LTCC=${LTCC-"$CC"}
5935
5936# If no C compiler flags were specified, use CFLAGS.
5937LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5938
5939# Allow CC to be a program name with arguments.
5940compiler=$CC
5941
5942
5943# save warnings/boilerplate of simple test code
5944ac_outfile=conftest.$ac_objext
5945printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5946eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5947_lt_compiler_boilerplate=`cat conftest.err`
5948$rm conftest*
5949
5950ac_outfile=conftest.$ac_objext
5951printf "$lt_simple_link_test_code" >conftest.$ac_ext
5952eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5953_lt_linker_boilerplate=`cat conftest.err`
5954$rm conftest*
5955
5956
5957
5958lt_prog_compiler_no_builtin_flag=
5959
5960if test "$GCC" = yes; then
5961  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5962
5963
5964echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5965echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5966if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  lt_cv_prog_compiler_rtti_exceptions=no
5970  ac_outfile=conftest.$ac_objext
5971   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5972   lt_compiler_flag="-fno-rtti -fno-exceptions"
5973   # Insert the option either (1) after the last *FLAGS variable, or
5974   # (2) before a word containing "conftest.", or (3) at the end.
5975   # Note that $ac_compile itself does not contain backslashes and begins
5976   # with a dollar sign (not a hyphen), so the echo should work correctly.
5977   # The option is referenced via a variable to avoid confusing sed.
5978   lt_compile=`echo "$ac_compile" | $SED \
5979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5981   -e 's:$: $lt_compiler_flag:'`
5982   (eval echo "\"\$as_me:5982: $lt_compile\"" >&5)
5983   (eval "$lt_compile" 2>conftest.err)
5984   ac_status=$?
5985   cat conftest.err >&5
5986   echo "$as_me:5986: \$? = $ac_status" >&5
5987   if (exit $ac_status) && test -s "$ac_outfile"; then
5988     # The compiler can only warn and ignore the option if not recognized
5989     # So say no if there are warnings other than the usual output.
5990     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5991     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5992     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5993       lt_cv_prog_compiler_rtti_exceptions=yes
5994     fi
5995   fi
5996   $rm conftest*
5997
5998fi
5999echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6000echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6001
6002if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6003    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6004else
6005    :
6006fi
6007
6008fi
6009
6010lt_prog_compiler_wl=
6011lt_prog_compiler_pic=
6012lt_prog_compiler_static=
6013
6014echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6015echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6016
6017  if test "$GCC" = yes; then
6018    lt_prog_compiler_wl='-Wl,'
6019    lt_prog_compiler_static='-static'
6020
6021    case $host_os in
6022      aix*)
6023      # All AIX code is PIC.
6024      if test "$host_cpu" = ia64; then
6025	# AIX 5 now supports IA64 processor
6026	lt_prog_compiler_static='-Bstatic'
6027      fi
6028      ;;
6029
6030    amigaos*)
6031      # FIXME: we need at least 68020 code to build shared libraries, but
6032      # adding the `-m68020' flag to GCC prevents building anything better,
6033      # like `-m68040'.
6034      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6035      ;;
6036
6037    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6038      # PIC is the default for these OSes.
6039      ;;
6040
6041    mingw* | pw32* | os2*)
6042      # This hack is so that the source file can tell whether it is being
6043      # built for inclusion in a dll (and should export symbols for example).
6044      lt_prog_compiler_pic='-DDLL_EXPORT'
6045      ;;
6046
6047    darwin* | rhapsody*)
6048      # PIC is the default on this platform
6049      # Common symbols not allowed in MH_DYLIB files
6050      lt_prog_compiler_pic='-fno-common'
6051      ;;
6052
6053    interix3*)
6054      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6055      # Instead, we relocate shared libraries at runtime.
6056      ;;
6057
6058    msdosdjgpp*)
6059      # Just because we use GCC doesn't mean we suddenly get shared libraries
6060      # on systems that don't support them.
6061      lt_prog_compiler_can_build_shared=no
6062      enable_shared=no
6063      ;;
6064
6065    sysv4*MP*)
6066      if test -d /usr/nec; then
6067	lt_prog_compiler_pic=-Kconform_pic
6068      fi
6069      ;;
6070
6071    hpux*)
6072      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6073      # not for PA HP-UX.
6074      case $host_cpu in
6075      hppa*64*|ia64*)
6076	# +Z the default
6077	;;
6078      *)
6079	lt_prog_compiler_pic='-fPIC'
6080	;;
6081      esac
6082      ;;
6083
6084    *)
6085      lt_prog_compiler_pic='-fPIC'
6086      ;;
6087    esac
6088  else
6089    # PORTME Check for flag to pass linker flags through the system compiler.
6090    case $host_os in
6091    aix*)
6092      lt_prog_compiler_wl='-Wl,'
6093      if test "$host_cpu" = ia64; then
6094	# AIX 5 now supports IA64 processor
6095	lt_prog_compiler_static='-Bstatic'
6096      else
6097	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6098      fi
6099      ;;
6100      darwin*)
6101        # PIC is the default on this platform
6102        # Common symbols not allowed in MH_DYLIB files
6103       case $cc_basename in
6104         xlc*)
6105         lt_prog_compiler_pic='-qnocommon'
6106         lt_prog_compiler_wl='-Wl,'
6107         ;;
6108       esac
6109       ;;
6110
6111    mingw* | pw32* | os2*)
6112      # This hack is so that the source file can tell whether it is being
6113      # built for inclusion in a dll (and should export symbols for example).
6114      lt_prog_compiler_pic='-DDLL_EXPORT'
6115      ;;
6116
6117    hpux9* | hpux10* | hpux11*)
6118      lt_prog_compiler_wl='-Wl,'
6119      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6120      # not for PA HP-UX.
6121      case $host_cpu in
6122      hppa*64*|ia64*)
6123	# +Z the default
6124	;;
6125      *)
6126	lt_prog_compiler_pic='+Z'
6127	;;
6128      esac
6129      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6130      lt_prog_compiler_static='${wl}-a ${wl}archive'
6131      ;;
6132
6133    irix5* | irix6* | nonstopux*)
6134      lt_prog_compiler_wl='-Wl,'
6135      # PIC (with -KPIC) is the default.
6136      lt_prog_compiler_static='-non_shared'
6137      ;;
6138
6139    newsos6)
6140      lt_prog_compiler_pic='-KPIC'
6141      lt_prog_compiler_static='-Bstatic'
6142      ;;
6143
6144    linux*)
6145      case $cc_basename in
6146      icc* | ecc*)
6147	lt_prog_compiler_wl='-Wl,'
6148	lt_prog_compiler_pic='-KPIC'
6149	lt_prog_compiler_static='-static'
6150        ;;
6151      pgcc* | pgf77* | pgf90* | pgf95*)
6152        # Portland Group compilers (*not* the Pentium gcc compiler,
6153	# which looks to be a dead project)
6154	lt_prog_compiler_wl='-Wl,'
6155	lt_prog_compiler_pic='-fpic'
6156	lt_prog_compiler_static='-Bstatic'
6157        ;;
6158      ccc*)
6159        lt_prog_compiler_wl='-Wl,'
6160        # All Alpha code is PIC.
6161        lt_prog_compiler_static='-non_shared'
6162        ;;
6163      esac
6164      ;;
6165
6166    osf3* | osf4* | osf5*)
6167      lt_prog_compiler_wl='-Wl,'
6168      # All OSF/1 code is PIC.
6169      lt_prog_compiler_static='-non_shared'
6170      ;;
6171
6172    solaris*)
6173      lt_prog_compiler_pic='-KPIC'
6174      lt_prog_compiler_static='-Bstatic'
6175      case $cc_basename in
6176      f77* | f90* | f95*)
6177	lt_prog_compiler_wl='-Qoption ld ';;
6178      *)
6179	lt_prog_compiler_wl='-Wl,';;
6180      esac
6181      ;;
6182
6183    sunos4*)
6184      lt_prog_compiler_wl='-Qoption ld '
6185      lt_prog_compiler_pic='-PIC'
6186      lt_prog_compiler_static='-Bstatic'
6187      ;;
6188
6189    sysv4 | sysv4.2uw2* | sysv4.3*)
6190      lt_prog_compiler_wl='-Wl,'
6191      lt_prog_compiler_pic='-KPIC'
6192      lt_prog_compiler_static='-Bstatic'
6193      ;;
6194
6195    sysv4*MP*)
6196      if test -d /usr/nec ;then
6197	lt_prog_compiler_pic='-Kconform_pic'
6198	lt_prog_compiler_static='-Bstatic'
6199      fi
6200      ;;
6201
6202    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6203      lt_prog_compiler_wl='-Wl,'
6204      lt_prog_compiler_pic='-KPIC'
6205      lt_prog_compiler_static='-Bstatic'
6206      ;;
6207
6208    unicos*)
6209      lt_prog_compiler_wl='-Wl,'
6210      lt_prog_compiler_can_build_shared=no
6211      ;;
6212
6213    uts4*)
6214      lt_prog_compiler_pic='-pic'
6215      lt_prog_compiler_static='-Bstatic'
6216      ;;
6217
6218    *)
6219      lt_prog_compiler_can_build_shared=no
6220      ;;
6221    esac
6222  fi
6223
6224echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6225echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6226
6227#
6228# Check to make sure the PIC flag actually works.
6229#
6230if test -n "$lt_prog_compiler_pic"; then
6231
6232echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6234if test "${lt_prog_compiler_pic_works+set}" = set; then
6235  echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237  lt_prog_compiler_pic_works=no
6238  ac_outfile=conftest.$ac_objext
6239   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6240   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6241   # Insert the option either (1) after the last *FLAGS variable, or
6242   # (2) before a word containing "conftest.", or (3) at the end.
6243   # Note that $ac_compile itself does not contain backslashes and begins
6244   # with a dollar sign (not a hyphen), so the echo should work correctly.
6245   # The option is referenced via a variable to avoid confusing sed.
6246   lt_compile=`echo "$ac_compile" | $SED \
6247   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6249   -e 's:$: $lt_compiler_flag:'`
6250   (eval echo "\"\$as_me:6250: $lt_compile\"" >&5)
6251   (eval "$lt_compile" 2>conftest.err)
6252   ac_status=$?
6253   cat conftest.err >&5
6254   echo "$as_me:6254: \$? = $ac_status" >&5
6255   if (exit $ac_status) && test -s "$ac_outfile"; then
6256     # The compiler can only warn and ignore the option if not recognized
6257     # So say no if there are warnings other than the usual output.
6258     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6259     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6260     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6261       lt_prog_compiler_pic_works=yes
6262     fi
6263   fi
6264   $rm conftest*
6265
6266fi
6267echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6268echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6269
6270if test x"$lt_prog_compiler_pic_works" = xyes; then
6271    case $lt_prog_compiler_pic in
6272     "" | " "*) ;;
6273     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6274     esac
6275else
6276    lt_prog_compiler_pic=
6277     lt_prog_compiler_can_build_shared=no
6278fi
6279
6280fi
6281case $host_os in
6282  # For platforms which do not support PIC, -DPIC is meaningless:
6283  *djgpp*)
6284    lt_prog_compiler_pic=
6285    ;;
6286  *)
6287    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6288    ;;
6289esac
6290
6291#
6292# Check to make sure the static flag actually works.
6293#
6294wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6295echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6296echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6297if test "${lt_prog_compiler_static_works+set}" = set; then
6298  echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300  lt_prog_compiler_static_works=no
6301   save_LDFLAGS="$LDFLAGS"
6302   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6303   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6305     # The linker can only warn and ignore the option if not recognized
6306     # So say no if there are warnings
6307     if test -s conftest.err; then
6308       # Append any errors to the config.log.
6309       cat conftest.err 1>&5
6310       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6312       if diff conftest.exp conftest.er2 >/dev/null; then
6313         lt_prog_compiler_static_works=yes
6314       fi
6315     else
6316       lt_prog_compiler_static_works=yes
6317     fi
6318   fi
6319   $rm conftest*
6320   LDFLAGS="$save_LDFLAGS"
6321
6322fi
6323echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6324echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6325
6326if test x"$lt_prog_compiler_static_works" = xyes; then
6327    :
6328else
6329    lt_prog_compiler_static=
6330fi
6331
6332
6333echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6334echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6335if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  lt_cv_prog_compiler_c_o=no
6339   $rm -r conftest 2>/dev/null
6340   mkdir conftest
6341   cd conftest
6342   mkdir out
6343   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6344
6345   lt_compiler_flag="-o out/conftest2.$ac_objext"
6346   # Insert the option either (1) after the last *FLAGS variable, or
6347   # (2) before a word containing "conftest.", or (3) at the end.
6348   # Note that $ac_compile itself does not contain backslashes and begins
6349   # with a dollar sign (not a hyphen), so the echo should work correctly.
6350   lt_compile=`echo "$ac_compile" | $SED \
6351   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6353   -e 's:$: $lt_compiler_flag:'`
6354   (eval echo "\"\$as_me:6354: $lt_compile\"" >&5)
6355   (eval "$lt_compile" 2>out/conftest.err)
6356   ac_status=$?
6357   cat out/conftest.err >&5
6358   echo "$as_me:6358: \$? = $ac_status" >&5
6359   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6360   then
6361     # The compiler can only warn and ignore the option if not recognized
6362     # So say no if there are warnings
6363     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6364     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6365     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6366       lt_cv_prog_compiler_c_o=yes
6367     fi
6368   fi
6369   chmod u+w . 2>&5
6370   $rm conftest*
6371   # SGI C++ compiler will create directory out/ii_files/ for
6372   # template instantiation
6373   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6374   $rm out/* && rmdir out
6375   cd ..
6376   rmdir conftest
6377   $rm conftest*
6378
6379fi
6380echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6381echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6382
6383
6384hard_links="nottested"
6385if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6386  # do not overwrite the value of need_locks provided by the user
6387  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6388echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6389  hard_links=yes
6390  $rm conftest*
6391  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6392  touch conftest.a
6393  ln conftest.a conftest.b 2>&5 || hard_links=no
6394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6395  echo "$as_me:$LINENO: result: $hard_links" >&5
6396echo "${ECHO_T}$hard_links" >&6
6397  if test "$hard_links" = no; then
6398    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6399echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6400    need_locks=warn
6401  fi
6402else
6403  need_locks=no
6404fi
6405
6406echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6407echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6408
6409  runpath_var=
6410  allow_undefined_flag=
6411  enable_shared_with_static_runtimes=no
6412  archive_cmds=
6413  archive_expsym_cmds=
6414  old_archive_From_new_cmds=
6415  old_archive_from_expsyms_cmds=
6416  export_dynamic_flag_spec=
6417  whole_archive_flag_spec=
6418  thread_safe_flag_spec=
6419  hardcode_libdir_flag_spec=
6420  hardcode_libdir_flag_spec_ld=
6421  hardcode_libdir_separator=
6422  hardcode_direct=no
6423  hardcode_minus_L=no
6424  hardcode_shlibpath_var=unsupported
6425  link_all_deplibs=unknown
6426  hardcode_automatic=no
6427  module_cmds=
6428  module_expsym_cmds=
6429  always_export_symbols=no
6430  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6431  # include_expsyms should be a list of space-separated symbols to be *always*
6432  # included in the symbol list
6433  include_expsyms=
6434  # exclude_expsyms can be an extended regexp of symbols to exclude
6435  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6436  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6437  # as well as any symbol that contains `d'.
6438  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6439  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6440  # platforms (ab)use it in PIC code, but their linkers get confused if
6441  # the symbol is explicitly referenced.  Since portable code cannot
6442  # rely on this symbol name, it's probably fine to never include it in
6443  # preloaded symbol tables.
6444  extract_expsyms_cmds=
6445  # Just being paranoid about ensuring that cc_basename is set.
6446  for cc_temp in $compiler""; do
6447  case $cc_temp in
6448    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6449    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6450    \-*) ;;
6451    *) break;;
6452  esac
6453done
6454cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6455
6456  case $host_os in
6457  cygwin* | mingw* | pw32*)
6458    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6459    # When not using gcc, we currently assume that we are using
6460    # Microsoft Visual C++.
6461    if test "$GCC" != yes; then
6462      with_gnu_ld=no
6463    fi
6464    ;;
6465  interix*)
6466    # we just hope/assume this is gcc and not c89 (= MSVC++)
6467    with_gnu_ld=yes
6468    ;;
6469  openbsd*)
6470    with_gnu_ld=no
6471    ;;
6472  esac
6473
6474  ld_shlibs=yes
6475  if test "$with_gnu_ld" = yes; then
6476    # If archive_cmds runs LD, not CC, wlarc should be empty
6477    wlarc='${wl}'
6478
6479    # Set some defaults for GNU ld with shared library support. These
6480    # are reset later if shared libraries are not supported. Putting them
6481    # here allows them to be overridden if necessary.
6482    runpath_var=LD_RUN_PATH
6483    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6484    export_dynamic_flag_spec='${wl}--export-dynamic'
6485    # ancient GNU ld didn't support --whole-archive et. al.
6486    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6487	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6488      else
6489  	whole_archive_flag_spec=
6490    fi
6491    supports_anon_versioning=no
6492    case `$LD -v 2>/dev/null` in
6493      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6494      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6495      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6496      *\ 2.11.*) ;; # other 2.11 versions
6497      *) supports_anon_versioning=yes ;;
6498    esac
6499
6500    # See if GNU ld supports shared libraries.
6501    case $host_os in
6502    aix3* | aix4* | aix5*)
6503      # On AIX/PPC, the GNU linker is very broken
6504      if test "$host_cpu" != ia64; then
6505	ld_shlibs=no
6506	cat <<EOF 1>&2
6507
6508*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6509*** to be unable to reliably create shared libraries on AIX.
6510*** Therefore, libtool is disabling shared libraries support.  If you
6511*** really care for shared libraries, you may want to modify your PATH
6512*** so that a non-GNU linker is found, and then restart.
6513
6514EOF
6515      fi
6516      ;;
6517
6518    amigaos*)
6519      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)'
6520      hardcode_libdir_flag_spec='-L$libdir'
6521      hardcode_minus_L=yes
6522
6523      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6524      # that the semantics of dynamic libraries on AmigaOS, at least up
6525      # to version 4, is to share data among multiple programs linked
6526      # with the same dynamic library.  Since this doesn't match the
6527      # behavior of shared libraries on other platforms, we can't use
6528      # them.
6529      ld_shlibs=no
6530      ;;
6531
6532    beos*)
6533      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6534	allow_undefined_flag=unsupported
6535	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6536	# support --undefined.  This deserves some investigation.  FIXME
6537	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6538      else
6539	ld_shlibs=no
6540      fi
6541      ;;
6542
6543    cygwin* | mingw* | pw32*)
6544      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6545      # as there is no search path for DLLs.
6546      hardcode_libdir_flag_spec='-L$libdir'
6547      allow_undefined_flag=unsupported
6548      always_export_symbols=no
6549      enable_shared_with_static_runtimes=yes
6550      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6551
6552      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6553        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6554	# If the export-symbols file already is a .def file (1st line
6555	# is EXPORTS), use it as is; otherwise, prepend...
6556	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6557	  cp $export_symbols $output_objdir/$soname.def;
6558	else
6559	  echo EXPORTS > $output_objdir/$soname.def;
6560	  cat $export_symbols >> $output_objdir/$soname.def;
6561	fi~
6562	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6563      else
6564	ld_shlibs=no
6565      fi
6566      ;;
6567
6568    interix3*)
6569      hardcode_direct=no
6570      hardcode_shlibpath_var=no
6571      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6572      export_dynamic_flag_spec='${wl}-E'
6573      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6574      # Instead, shared libraries are loaded at an image base (0x10000000 by
6575      # default) and relocated if they conflict, which is a slow very memory
6576      # consuming and fragmenting process.  To avoid this, we pick a random,
6577      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6578      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6579      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6580      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'
6581      ;;
6582
6583    linux*)
6584      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6585	tmp_addflag=
6586	case $cc_basename,$host_cpu in
6587	pgcc*)				# Portland Group C compiler
6588	  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'
6589	  tmp_addflag=' $pic_flag'
6590	  ;;
6591	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6592	  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'
6593	  tmp_addflag=' $pic_flag -Mnomain' ;;
6594	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6595	  tmp_addflag=' -i_dynamic' ;;
6596	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6597	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6598	ifc* | ifort*)			# Intel Fortran compiler
6599	  tmp_addflag=' -nofor_main' ;;
6600	esac
6601	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6602
6603	if test $supports_anon_versioning = yes; then
6604	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6605  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6606  $echo "local: *; };" >> $output_objdir/$libname.ver~
6607	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6608	fi
6609      else
6610	ld_shlibs=no
6611      fi
6612      ;;
6613
6614    netbsd*)
6615      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6616	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6617	wlarc=
6618      else
6619	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6620	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6621      fi
6622      ;;
6623
6624    solaris*)
6625      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6626	ld_shlibs=no
6627	cat <<EOF 1>&2
6628
6629*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6630*** create shared libraries on Solaris systems.  Therefore, libtool
6631*** is disabling shared libraries support.  We urge you to upgrade GNU
6632*** binutils to release 2.9.1 or newer.  Another option is to modify
6633*** your PATH or compiler configuration so that the native linker is
6634*** used, and then restart.
6635
6636EOF
6637      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6638	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6639	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6640      else
6641	ld_shlibs=no
6642      fi
6643      ;;
6644
6645    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6646      case `$LD -v 2>&1` in
6647        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6648	ld_shlibs=no
6649	cat <<_LT_EOF 1>&2
6650
6651*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6652*** reliably create shared libraries on SCO systems.  Therefore, libtool
6653*** is disabling shared libraries support.  We urge you to upgrade GNU
6654*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6655*** your PATH or compiler configuration so that the native linker is
6656*** used, and then restart.
6657
6658_LT_EOF
6659	;;
6660	*)
6661	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6662	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6663	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6664	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6665	  else
6666	    ld_shlibs=no
6667	  fi
6668	;;
6669      esac
6670      ;;
6671
6672    sunos4*)
6673      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6674      wlarc=
6675      hardcode_direct=yes
6676      hardcode_shlibpath_var=no
6677      ;;
6678
6679    *)
6680      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6681	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6683      else
6684	ld_shlibs=no
6685      fi
6686      ;;
6687    esac
6688
6689    if test "$ld_shlibs" = no; then
6690      runpath_var=
6691      hardcode_libdir_flag_spec=
6692      export_dynamic_flag_spec=
6693      whole_archive_flag_spec=
6694    fi
6695  else
6696    # PORTME fill in a description of your system's linker (not GNU ld)
6697    case $host_os in
6698    aix3*)
6699      allow_undefined_flag=unsupported
6700      always_export_symbols=yes
6701      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'
6702      # Note: this linker hardcodes the directories in LIBPATH if there
6703      # are no directories specified by -L.
6704      hardcode_minus_L=yes
6705      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6706	# Neither direct hardcoding nor static linking is supported with a
6707	# broken collect2.
6708	hardcode_direct=unsupported
6709      fi
6710      ;;
6711
6712    aix4* | aix5*)
6713      if test "$host_cpu" = ia64; then
6714	# On IA64, the linker does run time linking by default, so we don't
6715	# have to do anything special.
6716	aix_use_runtimelinking=no
6717	exp_sym_flag='-Bexport'
6718	no_entry_flag=""
6719      else
6720	# If we're using GNU nm, then we don't want the "-C" option.
6721	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6722	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6723	  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'
6724	else
6725	  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'
6726	fi
6727	aix_use_runtimelinking=no
6728
6729	# Test if we are trying to use run time linking or normal
6730	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6731	# need to do runtime linking.
6732	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6733	  for ld_flag in $LDFLAGS; do
6734  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6735  	    aix_use_runtimelinking=yes
6736  	    break
6737  	  fi
6738	  done
6739	  ;;
6740	esac
6741
6742	exp_sym_flag='-bexport'
6743	no_entry_flag='-bnoentry'
6744      fi
6745
6746      # When large executables or shared objects are built, AIX ld can
6747      # have problems creating the table of contents.  If linking a library
6748      # or program results in "error TOC overflow" add -mminimal-toc to
6749      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6750      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6751
6752      archive_cmds=''
6753      hardcode_direct=yes
6754      hardcode_libdir_separator=':'
6755      link_all_deplibs=yes
6756
6757      if test "$GCC" = yes; then
6758	case $host_os in aix4.[012]|aix4.[012].*)
6759	# We only want to do this on AIX 4.2 and lower, the check
6760	# below for broken collect2 doesn't work under 4.3+
6761	  collect2name=`${CC} -print-prog-name=collect2`
6762	  if test -f "$collect2name" && \
6763  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6764	  then
6765  	  # We have reworked collect2
6766  	  hardcode_direct=yes
6767	  else
6768  	  # We have old collect2
6769  	  hardcode_direct=unsupported
6770  	  # It fails to find uninstalled libraries when the uninstalled
6771  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6772  	  # to unsupported forces relinking
6773  	  hardcode_minus_L=yes
6774  	  hardcode_libdir_flag_spec='-L$libdir'
6775  	  hardcode_libdir_separator=
6776	  fi
6777	  ;;
6778	esac
6779	shared_flag='-shared'
6780	if test "$aix_use_runtimelinking" = yes; then
6781	  shared_flag="$shared_flag "'${wl}-G'
6782	fi
6783      else
6784	# not using gcc
6785	if test "$host_cpu" = ia64; then
6786  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6787  	# chokes on -Wl,-G. The following line is correct:
6788	  shared_flag='-G'
6789	else
6790	  if test "$aix_use_runtimelinking" = yes; then
6791	    shared_flag='${wl}-G'
6792	  else
6793	    shared_flag='${wl}-bM:SRE'
6794	  fi
6795	fi
6796      fi
6797
6798      # It seems that -bexpall does not export symbols beginning with
6799      # underscore (_), so it is better to generate a list of symbols to export.
6800      always_export_symbols=yes
6801      if test "$aix_use_runtimelinking" = yes; then
6802	# Warning - without using the other runtime loading flags (-brtl),
6803	# -berok will link without error, but may produce a broken library.
6804	allow_undefined_flag='-berok'
6805       # Determine the default libpath from the value encoded in an empty executable.
6806       cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h.  */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h.  */
6812
6813int
6814main ()
6815{
6816
6817  ;
6818  return 0;
6819}
6820_ACEOF
6821rm -f conftest.$ac_objext conftest$ac_exeext
6822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823  (eval $ac_link) 2>conftest.er1
6824  ac_status=$?
6825  grep -v '^ *+' conftest.er1 >conftest.err
6826  rm -f conftest.er1
6827  cat conftest.err >&5
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); } &&
6830	 { ac_try='test -z "$ac_c_werror_flag"
6831			 || test ! -s conftest.err'
6832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833  (eval $ac_try) 2>&5
6834  ac_status=$?
6835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836  (exit $ac_status); }; } &&
6837	 { ac_try='test -s conftest$ac_exeext'
6838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839  (eval $ac_try) 2>&5
6840  ac_status=$?
6841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842  (exit $ac_status); }; }; then
6843
6844aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6845}'`
6846# Check for a 64-bit object if we didn't find anything.
6847if 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; }
6848}'`; fi
6849else
6850  echo "$as_me: failed program was:" >&5
6851sed 's/^/| /' conftest.$ac_ext >&5
6852
6853fi
6854rm -f conftest.err conftest.$ac_objext \
6855      conftest$ac_exeext conftest.$ac_ext
6856if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6857
6858       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6859	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"
6860       else
6861	if test "$host_cpu" = ia64; then
6862	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6863	  allow_undefined_flag="-z nodefs"
6864	  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"
6865	else
6866	 # Determine the default libpath from the value encoded in an empty executable.
6867	 cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h.  */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h.  */
6873
6874int
6875main ()
6876{
6877
6878  ;
6879  return 0;
6880}
6881_ACEOF
6882rm -f conftest.$ac_objext conftest$ac_exeext
6883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884  (eval $ac_link) 2>conftest.er1
6885  ac_status=$?
6886  grep -v '^ *+' conftest.er1 >conftest.err
6887  rm -f conftest.er1
6888  cat conftest.err >&5
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } &&
6891	 { ac_try='test -z "$ac_c_werror_flag"
6892			 || test ! -s conftest.err'
6893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894  (eval $ac_try) 2>&5
6895  ac_status=$?
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); }; } &&
6898	 { ac_try='test -s conftest$ac_exeext'
6899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900  (eval $ac_try) 2>&5
6901  ac_status=$?
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); }; }; then
6904
6905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6906}'`
6907# Check for a 64-bit object if we didn't find anything.
6908if 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; }
6909}'`; fi
6910else
6911  echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
6914fi
6915rm -f conftest.err conftest.$ac_objext \
6916      conftest$ac_exeext conftest.$ac_ext
6917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6918
6919	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6920	  # Warning - without using the other run time loading flags,
6921	  # -berok will link without error, but may produce a broken library.
6922	  no_undefined_flag=' ${wl}-bernotok'
6923	  allow_undefined_flag=' ${wl}-berok'
6924	  # Exported symbols can be pulled into shared objects from archives
6925	  whole_archive_flag_spec='$convenience'
6926	  archive_cmds_need_lc=yes
6927	  # This is similar to how AIX traditionally builds its shared libraries.
6928	  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'
6929	fi
6930      fi
6931      ;;
6932
6933    amigaos*)
6934      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)'
6935      hardcode_libdir_flag_spec='-L$libdir'
6936      hardcode_minus_L=yes
6937      # see comment about different semantics on the GNU ld section
6938      ld_shlibs=no
6939      ;;
6940
6941    bsdi[45]*)
6942      export_dynamic_flag_spec=-rdynamic
6943      ;;
6944
6945    cygwin* | mingw* | pw32*)
6946      # When not using gcc, we currently assume that we are using
6947      # Microsoft Visual C++.
6948      # hardcode_libdir_flag_spec is actually meaningless, as there is
6949      # no search path for DLLs.
6950      hardcode_libdir_flag_spec=' '
6951      allow_undefined_flag=unsupported
6952      # Tell ltmain to make .lib files, not .a files.
6953      libext=lib
6954      # Tell ltmain to make .dll files, not .so files.
6955      shrext_cmds=".dll"
6956      # FIXME: Setting linknames here is a bad hack.
6957      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6958      # The linker will automatically build a .lib file if we build a DLL.
6959      old_archive_From_new_cmds='true'
6960      # FIXME: Should let the user specify the lib program.
6961      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6962      fix_srcfile_path='`cygpath -w "$srcfile"`'
6963      enable_shared_with_static_runtimes=yes
6964      ;;
6965
6966    darwin* | rhapsody*)
6967      case $host_os in
6968        rhapsody* | darwin1.[012])
6969         allow_undefined_flag='${wl}-undefined ${wl}suppress'
6970         ;;
6971       *) # Darwin 1.3 on
6972         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6973           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6974         else
6975           case ${MACOSX_DEPLOYMENT_TARGET} in
6976             10.[012])
6977               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6978               ;;
6979             10.*)
6980               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6981               ;;
6982           esac
6983         fi
6984         ;;
6985      esac
6986      archive_cmds_need_lc=no
6987      hardcode_direct=no
6988      hardcode_automatic=yes
6989      hardcode_shlibpath_var=unsupported
6990      whole_archive_flag_spec=''
6991      link_all_deplibs=yes
6992    if test "$GCC" = yes ; then
6993    	output_verbose_link_cmd='echo'
6994        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6995      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6996      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6997      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}'
6998      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}'
6999    else
7000      case $cc_basename in
7001        xlc*)
7002         output_verbose_link_cmd='echo'
7003         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7004         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7005          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7006         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}'
7007          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}'
7008          ;;
7009       *)
7010         ld_shlibs=no
7011          ;;
7012      esac
7013    fi
7014      ;;
7015
7016    dgux*)
7017      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018      hardcode_libdir_flag_spec='-L$libdir'
7019      hardcode_shlibpath_var=no
7020      ;;
7021
7022    freebsd1*)
7023      ld_shlibs=no
7024      ;;
7025
7026    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7027    # support.  Future versions do this automatically, but an explicit c++rt0.o
7028    # does not break anything, and helps significantly (at the cost of a little
7029    # extra space).
7030    freebsd2.2*)
7031      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7032      hardcode_libdir_flag_spec='-R$libdir'
7033      hardcode_direct=yes
7034      hardcode_shlibpath_var=no
7035      ;;
7036
7037    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7038    freebsd2*)
7039      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7040      hardcode_direct=yes
7041      hardcode_minus_L=yes
7042      hardcode_shlibpath_var=no
7043      ;;
7044
7045    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7046    freebsd* | kfreebsd*-gnu | dragonfly*)
7047      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7048      hardcode_libdir_flag_spec='-R$libdir'
7049      hardcode_direct=yes
7050      hardcode_shlibpath_var=no
7051      ;;
7052
7053    hpux9*)
7054      if test "$GCC" = yes; then
7055	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'
7056      else
7057	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'
7058      fi
7059      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7060      hardcode_libdir_separator=:
7061      hardcode_direct=yes
7062
7063      # hardcode_minus_L: Not really in the search PATH,
7064      # but as the default location of the library.
7065      hardcode_minus_L=yes
7066      export_dynamic_flag_spec='${wl}-E'
7067      ;;
7068
7069    hpux10*)
7070      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7071	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7072      else
7073	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7074      fi
7075      if test "$with_gnu_ld" = no; then
7076	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7077	hardcode_libdir_separator=:
7078
7079	hardcode_direct=yes
7080	export_dynamic_flag_spec='${wl}-E'
7081
7082	# hardcode_minus_L: Not really in the search PATH,
7083	# but as the default location of the library.
7084	hardcode_minus_L=yes
7085      fi
7086      ;;
7087
7088    hpux11*)
7089      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7090	case $host_cpu in
7091	hppa*64*)
7092	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7093	  ;;
7094	ia64*)
7095	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7096	  ;;
7097	*)
7098	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7099	  ;;
7100	esac
7101      else
7102	case $host_cpu in
7103	hppa*64*)
7104	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7105	  ;;
7106	ia64*)
7107	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7108	  ;;
7109	*)
7110	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7111	  ;;
7112	esac
7113      fi
7114      if test "$with_gnu_ld" = no; then
7115	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7116	hardcode_libdir_separator=:
7117
7118	case $host_cpu in
7119	hppa*64*|ia64*)
7120	  hardcode_libdir_flag_spec_ld='+b $libdir'
7121	  hardcode_direct=no
7122	  hardcode_shlibpath_var=no
7123	  ;;
7124	*)
7125	  hardcode_direct=yes
7126	  export_dynamic_flag_spec='${wl}-E'
7127
7128	  # hardcode_minus_L: Not really in the search PATH,
7129	  # but as the default location of the library.
7130	  hardcode_minus_L=yes
7131	  ;;
7132	esac
7133      fi
7134      ;;
7135
7136    irix5* | irix6* | nonstopux*)
7137      if test "$GCC" = yes; then
7138	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'
7139      else
7140	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'
7141	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7142      fi
7143      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7144      hardcode_libdir_separator=:
7145      link_all_deplibs=yes
7146      ;;
7147
7148    netbsd*)
7149      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7150	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7151      else
7152	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7153      fi
7154      hardcode_libdir_flag_spec='-R$libdir'
7155      hardcode_direct=yes
7156      hardcode_shlibpath_var=no
7157      ;;
7158
7159    newsos6)
7160      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7161      hardcode_direct=yes
7162      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7163      hardcode_libdir_separator=:
7164      hardcode_shlibpath_var=no
7165      ;;
7166
7167    openbsd*)
7168      hardcode_direct=yes
7169      hardcode_shlibpath_var=no
7170      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7171	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7172	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7173	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7174	export_dynamic_flag_spec='${wl}-E'
7175      else
7176       case $host_os in
7177	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7178	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7179	   hardcode_libdir_flag_spec='-R$libdir'
7180	   ;;
7181	 *)
7182	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7183	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7184	   ;;
7185       esac
7186      fi
7187      ;;
7188
7189    os2*)
7190      hardcode_libdir_flag_spec='-L$libdir'
7191      hardcode_minus_L=yes
7192      allow_undefined_flag=unsupported
7193      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'
7194      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7195      ;;
7196
7197    osf3*)
7198      if test "$GCC" = yes; then
7199	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7200	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'
7201      else
7202	allow_undefined_flag=' -expect_unresolved \*'
7203	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'
7204      fi
7205      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7206      hardcode_libdir_separator=:
7207      ;;
7208
7209    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7210      if test "$GCC" = yes; then
7211	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7212	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'
7213	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7214      else
7215	allow_undefined_flag=' -expect_unresolved \*'
7216	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'
7217	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7218	$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'
7219
7220	# Both c and cxx compiler support -rpath directly
7221	hardcode_libdir_flag_spec='-rpath $libdir'
7222      fi
7223      hardcode_libdir_separator=:
7224      ;;
7225
7226    solaris*)
7227      no_undefined_flag=' -z text'
7228      if test "$GCC" = yes; then
7229	wlarc='${wl}'
7230	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7231	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7232	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7233      else
7234	wlarc=''
7235	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7237  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7238      fi
7239      hardcode_libdir_flag_spec='-R$libdir'
7240      hardcode_shlibpath_var=no
7241      case $host_os in
7242      solaris2.[0-5] | solaris2.[0-5].*) ;;
7243      *)
7244 	# The compiler driver will combine linker options so we
7245 	# cannot just pass the convience library names through
7246 	# without $wl, iff we do not link with $LD.
7247 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7248 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7249 	case $wlarc in
7250 	'')
7251 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7252 	*)
7253 	  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' ;;
7254 	esac ;;
7255      esac
7256      link_all_deplibs=yes
7257      ;;
7258
7259    sunos4*)
7260      if test "x$host_vendor" = xsequent; then
7261	# Use $CC to link under sequent, because it throws in some extra .o
7262	# files that make .init and .fini sections work.
7263	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7264      else
7265	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7266      fi
7267      hardcode_libdir_flag_spec='-L$libdir'
7268      hardcode_direct=yes
7269      hardcode_minus_L=yes
7270      hardcode_shlibpath_var=no
7271      ;;
7272
7273    sysv4)
7274      case $host_vendor in
7275	sni)
7276	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277	  hardcode_direct=yes # is this really true???
7278	;;
7279	siemens)
7280	  ## LD is ld it makes a PLAMLIB
7281	  ## CC just makes a GrossModule.
7282	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7283	  reload_cmds='$CC -r -o $output$reload_objs'
7284	  hardcode_direct=no
7285        ;;
7286	motorola)
7287	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7288	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7289	;;
7290      esac
7291      runpath_var='LD_RUN_PATH'
7292      hardcode_shlibpath_var=no
7293      ;;
7294
7295    sysv4.3*)
7296      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297      hardcode_shlibpath_var=no
7298      export_dynamic_flag_spec='-Bexport'
7299      ;;
7300
7301    sysv4*MP*)
7302      if test -d /usr/nec; then
7303	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304	hardcode_shlibpath_var=no
7305	runpath_var=LD_RUN_PATH
7306	hardcode_runpath_var=yes
7307	ld_shlibs=yes
7308      fi
7309      ;;
7310
7311    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7312      no_undefined_flag='${wl}-z,text'
7313      archive_cmds_need_lc=no
7314      hardcode_shlibpath_var=no
7315      runpath_var='LD_RUN_PATH'
7316
7317      if test "$GCC" = yes; then
7318	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7319	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7320      else
7321	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7322	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7323      fi
7324      ;;
7325
7326    sysv5* | sco3.2v5* | sco5v6*)
7327      # Note: We can NOT use -z defs as we might desire, because we do not
7328      # link with -lc, and that would cause any symbols used from libc to
7329      # always be unresolved, which means just about no library would
7330      # ever link correctly.  If we're not using GNU ld we use -z text
7331      # though, which does catch some bad symbols but isn't as heavy-handed
7332      # as -z defs.
7333      no_undefined_flag='${wl}-z,text'
7334      allow_undefined_flag='${wl}-z,nodefs'
7335      archive_cmds_need_lc=no
7336      hardcode_shlibpath_var=no
7337      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7338      hardcode_libdir_separator=':'
7339      link_all_deplibs=yes
7340      export_dynamic_flag_spec='${wl}-Bexport'
7341      runpath_var='LD_RUN_PATH'
7342
7343      if test "$GCC" = yes; then
7344	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7345	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7346      else
7347	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7348	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7349      fi
7350      ;;
7351
7352    uts4*)
7353      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7354      hardcode_libdir_flag_spec='-L$libdir'
7355      hardcode_shlibpath_var=no
7356      ;;
7357
7358    *)
7359      ld_shlibs=no
7360      ;;
7361    esac
7362  fi
7363
7364echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7365echo "${ECHO_T}$ld_shlibs" >&6
7366test "$ld_shlibs" = no && can_build_shared=no
7367
7368#
7369# Do we need to explicitly link libc?
7370#
7371case "x$archive_cmds_need_lc" in
7372x|xyes)
7373  # Assume -lc should be added
7374  archive_cmds_need_lc=yes
7375
7376  if test "$enable_shared" = yes && test "$GCC" = yes; then
7377    case $archive_cmds in
7378    *'~'*)
7379      # FIXME: we may have to deal with multi-command sequences.
7380      ;;
7381    '$CC '*)
7382      # Test whether the compiler implicitly links with -lc since on some
7383      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7384      # to ld, don't add -lc before -lgcc.
7385      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7386echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7387      $rm conftest*
7388      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7389
7390      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391  (eval $ac_compile) 2>&5
7392  ac_status=$?
7393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394  (exit $ac_status); } 2>conftest.err; then
7395        soname=conftest
7396        lib=conftest
7397        libobjs=conftest.$ac_objext
7398        deplibs=
7399        wl=$lt_prog_compiler_wl
7400	pic_flag=$lt_prog_compiler_pic
7401        compiler_flags=-v
7402        linker_flags=-v
7403        verstring=
7404        output_objdir=.
7405        libname=conftest
7406        lt_save_allow_undefined_flag=$allow_undefined_flag
7407        allow_undefined_flag=
7408        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7409  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7410  ac_status=$?
7411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412  (exit $ac_status); }
7413        then
7414	  archive_cmds_need_lc=no
7415        else
7416	  archive_cmds_need_lc=yes
7417        fi
7418        allow_undefined_flag=$lt_save_allow_undefined_flag
7419      else
7420        cat conftest.err 1>&5
7421      fi
7422      $rm conftest*
7423      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7424echo "${ECHO_T}$archive_cmds_need_lc" >&6
7425      ;;
7426    esac
7427  fi
7428  ;;
7429esac
7430
7431echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7432echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7433library_names_spec=
7434libname_spec='lib$name'
7435soname_spec=
7436shrext_cmds=".so"
7437postinstall_cmds=
7438postuninstall_cmds=
7439finish_cmds=
7440finish_eval=
7441shlibpath_var=
7442shlibpath_overrides_runpath=unknown
7443version_type=none
7444dynamic_linker="$host_os ld.so"
7445sys_lib_dlsearch_path_spec="/lib /usr/lib"
7446if test "$GCC" = yes; then
7447  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7448  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7449    # if the path contains ";" then we assume it to be the separator
7450    # otherwise default to the standard path separator (i.e. ":") - it is
7451    # assumed that no part of a normal pathname contains ";" but that should
7452    # okay in the real world where ";" in dirpaths is itself problematic.
7453    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7454  else
7455    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7456  fi
7457else
7458  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7459fi
7460need_lib_prefix=unknown
7461hardcode_into_libs=no
7462
7463# when you set need_version to no, make sure it does not cause -set_version
7464# flags to be left without arguments
7465need_version=unknown
7466
7467case $host_os in
7468aix3*)
7469  version_type=linux
7470  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7471  shlibpath_var=LIBPATH
7472
7473  # AIX 3 has no versioning support, so we append a major version to the name.
7474  soname_spec='${libname}${release}${shared_ext}$major'
7475  ;;
7476
7477aix4* | aix5*)
7478  version_type=linux
7479  need_lib_prefix=no
7480  need_version=no
7481  hardcode_into_libs=yes
7482  if test "$host_cpu" = ia64; then
7483    # AIX 5 supports IA64
7484    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7485    shlibpath_var=LD_LIBRARY_PATH
7486  else
7487    # With GCC up to 2.95.x, collect2 would create an import file
7488    # for dependence libraries.  The import file would start with
7489    # the line `#! .'.  This would cause the generated library to
7490    # depend on `.', always an invalid library.  This was fixed in
7491    # development snapshots of GCC prior to 3.0.
7492    case $host_os in
7493      aix4 | aix4.[01] | aix4.[01].*)
7494      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7495	   echo ' yes '
7496	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7497	:
7498      else
7499	can_build_shared=no
7500      fi
7501      ;;
7502    esac
7503    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7504    # soname into executable. Probably we can add versioning support to
7505    # collect2, so additional links can be useful in future.
7506    if test "$aix_use_runtimelinking" = yes; then
7507      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7508      # instead of lib<name>.a to let people know that these are not
7509      # typical AIX shared libraries.
7510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7511    else
7512      # We preserve .a as extension for shared libraries through AIX4.2
7513      # and later when we are not doing run time linking.
7514      library_names_spec='${libname}${release}.a $libname.a'
7515      soname_spec='${libname}${release}${shared_ext}$major'
7516    fi
7517    shlibpath_var=LIBPATH
7518  fi
7519  ;;
7520
7521amigaos*)
7522  library_names_spec='$libname.ixlibrary $libname.a'
7523  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7524  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'
7525  ;;
7526
7527beos*)
7528  library_names_spec='${libname}${shared_ext}'
7529  dynamic_linker="$host_os ld.so"
7530  shlibpath_var=LIBRARY_PATH
7531  ;;
7532
7533bsdi[45]*)
7534  version_type=linux
7535  need_version=no
7536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7537  soname_spec='${libname}${release}${shared_ext}$major'
7538  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7539  shlibpath_var=LD_LIBRARY_PATH
7540  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7541  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7542  # the default ld.so.conf also contains /usr/contrib/lib and
7543  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7544  # libtool to hard-code these into programs
7545  ;;
7546
7547cygwin* | mingw* | pw32*)
7548  version_type=windows
7549  shrext_cmds=".dll"
7550  need_version=no
7551  need_lib_prefix=no
7552
7553  case $GCC,$host_os in
7554  yes,cygwin* | yes,mingw* | yes,pw32*)
7555    library_names_spec='$libname.dll.a'
7556    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7557    postinstall_cmds='base_file=`basename \${file}`~
7558      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7559      dldir=$destdir/`dirname \$dlpath`~
7560      test -d \$dldir || mkdir -p \$dldir~
7561      $install_prog $dir/$dlname \$dldir/$dlname~
7562      chmod a+x \$dldir/$dlname'
7563    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7564      dlpath=$dir/\$dldll~
7565       $rm \$dlpath'
7566    shlibpath_overrides_runpath=yes
7567
7568    case $host_os in
7569    cygwin*)
7570      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7571      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7572      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7573      ;;
7574    mingw*)
7575      # MinGW DLLs use traditional 'lib' prefix
7576      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7577      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7578      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7579        # It is most probably a Windows format PATH printed by
7580        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7581        # path with ; separators, and with drive letters. We can handle the
7582        # drive letters (cygwin fileutils understands them), so leave them,
7583        # especially as we might pass files found there to a mingw objdump,
7584        # which wouldn't understand a cygwinified path. Ahh.
7585        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7586      else
7587        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7588      fi
7589      ;;
7590    pw32*)
7591      # pw32 DLLs use 'pw' prefix rather than 'lib'
7592      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7593      ;;
7594    esac
7595    ;;
7596
7597  *)
7598    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7599    ;;
7600  esac
7601  dynamic_linker='Win32 ld.exe'
7602  # FIXME: first we should search . and the directory the executable is in
7603  shlibpath_var=PATH
7604  ;;
7605
7606darwin* | rhapsody*)
7607  dynamic_linker="$host_os dyld"
7608  version_type=darwin
7609  need_lib_prefix=no
7610  need_version=no
7611  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7612  soname_spec='${libname}${release}${major}$shared_ext'
7613  shlibpath_overrides_runpath=yes
7614  shlibpath_var=DYLD_LIBRARY_PATH
7615  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7616  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7617  if test "$GCC" = yes; then
7618    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"`
7619  else
7620    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7621  fi
7622  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7623  ;;
7624
7625dgux*)
7626  version_type=linux
7627  need_lib_prefix=no
7628  need_version=no
7629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7630  soname_spec='${libname}${release}${shared_ext}$major'
7631  shlibpath_var=LD_LIBRARY_PATH
7632  ;;
7633
7634freebsd1*)
7635  dynamic_linker=no
7636  ;;
7637
7638kfreebsd*-gnu)
7639  version_type=linux
7640  need_lib_prefix=no
7641  need_version=no
7642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7643  soname_spec='${libname}${release}${shared_ext}$major'
7644  shlibpath_var=LD_LIBRARY_PATH
7645  shlibpath_overrides_runpath=no
7646  hardcode_into_libs=yes
7647  dynamic_linker='GNU ld.so'
7648  ;;
7649
7650freebsd* | dragonfly*)
7651  # DragonFly does not have aout.  When/if they implement a new
7652  # versioning mechanism, adjust this.
7653  if test -x /usr/bin/objformat; then
7654    objformat=`/usr/bin/objformat`
7655  else
7656    case $host_os in
7657    freebsd[123]*) objformat=aout ;;
7658    *) objformat=elf ;;
7659    esac
7660  fi
7661  version_type=freebsd-$objformat
7662  case $version_type in
7663    freebsd-elf*)
7664      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7665      need_version=no
7666      need_lib_prefix=no
7667      ;;
7668    freebsd-*)
7669      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7670      need_version=yes
7671      ;;
7672  esac
7673  shlibpath_var=LD_LIBRARY_PATH
7674  case $host_os in
7675  freebsd2*)
7676    shlibpath_overrides_runpath=yes
7677    ;;
7678  freebsd3.[01]* | freebsdelf3.[01]*)
7679    shlibpath_overrides_runpath=yes
7680    hardcode_into_libs=yes
7681    ;;
7682  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7683  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7684    shlibpath_overrides_runpath=no
7685    hardcode_into_libs=yes
7686    ;;
7687  freebsd*) # from 4.6 on
7688    shlibpath_overrides_runpath=yes
7689    hardcode_into_libs=yes
7690    ;;
7691  esac
7692  ;;
7693
7694gnu*)
7695  version_type=linux
7696  need_lib_prefix=no
7697  need_version=no
7698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7699  soname_spec='${libname}${release}${shared_ext}$major'
7700  shlibpath_var=LD_LIBRARY_PATH
7701  hardcode_into_libs=yes
7702  ;;
7703
7704hpux9* | hpux10* | hpux11*)
7705  # Give a soname corresponding to the major version so that dld.sl refuses to
7706  # link against other versions.
7707  version_type=sunos
7708  need_lib_prefix=no
7709  need_version=no
7710  case $host_cpu in
7711  ia64*)
7712    shrext_cmds='.so'
7713    hardcode_into_libs=yes
7714    dynamic_linker="$host_os dld.so"
7715    shlibpath_var=LD_LIBRARY_PATH
7716    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7717    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7718    soname_spec='${libname}${release}${shared_ext}$major'
7719    if test "X$HPUX_IA64_MODE" = X32; then
7720      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7721    else
7722      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7723    fi
7724    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7725    ;;
7726   hppa*64*)
7727     shrext_cmds='.sl'
7728     hardcode_into_libs=yes
7729     dynamic_linker="$host_os dld.sl"
7730     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7731     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7733     soname_spec='${libname}${release}${shared_ext}$major'
7734     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7735     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7736     ;;
7737   *)
7738    shrext_cmds='.sl'
7739    dynamic_linker="$host_os dld.sl"
7740    shlibpath_var=SHLIB_PATH
7741    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7742    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7743    soname_spec='${libname}${release}${shared_ext}$major'
7744    ;;
7745  esac
7746  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7747  postinstall_cmds='chmod 555 $lib'
7748  ;;
7749
7750interix3*)
7751  version_type=linux
7752  need_lib_prefix=no
7753  need_version=no
7754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7755  soname_spec='${libname}${release}${shared_ext}$major'
7756  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7757  shlibpath_var=LD_LIBRARY_PATH
7758  shlibpath_overrides_runpath=no
7759  hardcode_into_libs=yes
7760  ;;
7761
7762irix5* | irix6* | nonstopux*)
7763  case $host_os in
7764    nonstopux*) version_type=nonstopux ;;
7765    *)
7766	if test "$lt_cv_prog_gnu_ld" = yes; then
7767		version_type=linux
7768	else
7769		version_type=irix
7770	fi ;;
7771  esac
7772  need_lib_prefix=no
7773  need_version=no
7774  soname_spec='${libname}${release}${shared_ext}$major'
7775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7776  case $host_os in
7777  irix5* | nonstopux*)
7778    libsuff= shlibsuff=
7779    ;;
7780  *)
7781    case $LD in # libtool.m4 will add one of these switches to LD
7782    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7783      libsuff= shlibsuff= libmagic=32-bit;;
7784    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7785      libsuff=32 shlibsuff=N32 libmagic=N32;;
7786    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7787      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7788    *) libsuff= shlibsuff= libmagic=never-match;;
7789    esac
7790    ;;
7791  esac
7792  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7793  shlibpath_overrides_runpath=no
7794  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7795  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7796  hardcode_into_libs=yes
7797  ;;
7798
7799# No shared lib support for Linux oldld, aout, or coff.
7800linux*oldld* | linux*aout* | linux*coff*)
7801  dynamic_linker=no
7802  ;;
7803
7804# This must be Linux ELF.
7805linux*)
7806  version_type=linux
7807  need_lib_prefix=no
7808  need_version=no
7809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810  soname_spec='${libname}${release}${shared_ext}$major'
7811  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7812  shlibpath_var=LD_LIBRARY_PATH
7813  shlibpath_overrides_runpath=no
7814  # This implies no fast_install, which is unacceptable.
7815  # Some rework will be needed to allow for fast_install
7816  # before this can be enabled.
7817  hardcode_into_libs=yes
7818
7819  # find out which ABI we are using
7820  libsuff=
7821  case "$host_cpu" in
7822  x86_64*|s390x*|powerpc64*)
7823    echo '#line 7823 "configure"' > conftest.$ac_ext
7824    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825  (eval $ac_compile) 2>&5
7826  ac_status=$?
7827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828  (exit $ac_status); }; then
7829      case `/usr/bin/file conftest.$ac_objext` in
7830      *64-bit*)
7831        libsuff=64
7832        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7833        ;;
7834      esac
7835    fi
7836    rm -rf conftest*
7837    ;;
7838  esac
7839
7840  # Append ld.so.conf contents to the search path
7841  if test -f /etc/ld.so.conf; then
7842    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' ' '`
7843    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7844  fi
7845
7846  # We used to test for /lib/ld.so.1 and disable shared libraries on
7847  # powerpc, because MkLinux only supported shared libraries with the
7848  # GNU dynamic linker.  Since this was broken with cross compilers,
7849  # most powerpc-linux boxes support dynamic linking these days and
7850  # people can always --disable-shared, the test was removed, and we
7851  # assume the GNU/Linux dynamic linker is in use.
7852  dynamic_linker='GNU/Linux ld.so'
7853  ;;
7854
7855knetbsd*-gnu)
7856  version_type=linux
7857  need_lib_prefix=no
7858  need_version=no
7859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7860  soname_spec='${libname}${release}${shared_ext}$major'
7861  shlibpath_var=LD_LIBRARY_PATH
7862  shlibpath_overrides_runpath=no
7863  hardcode_into_libs=yes
7864  dynamic_linker='GNU ld.so'
7865  ;;
7866
7867netbsd*)
7868  version_type=sunos
7869  need_lib_prefix=no
7870  need_version=no
7871  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7872    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7873    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7874    dynamic_linker='NetBSD (a.out) ld.so'
7875  else
7876    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7877    soname_spec='${libname}${release}${shared_ext}$major'
7878    dynamic_linker='NetBSD ld.elf_so'
7879  fi
7880  shlibpath_var=LD_LIBRARY_PATH
7881  shlibpath_overrides_runpath=yes
7882  hardcode_into_libs=yes
7883  ;;
7884
7885newsos6)
7886  version_type=linux
7887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888  shlibpath_var=LD_LIBRARY_PATH
7889  shlibpath_overrides_runpath=yes
7890  ;;
7891
7892nto-qnx*)
7893  version_type=linux
7894  need_lib_prefix=no
7895  need_version=no
7896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897  soname_spec='${libname}${release}${shared_ext}$major'
7898  shlibpath_var=LD_LIBRARY_PATH
7899  shlibpath_overrides_runpath=yes
7900  ;;
7901
7902openbsd*)
7903  version_type=sunos
7904  sys_lib_dlsearch_path_spec="/usr/lib"
7905  need_lib_prefix=no
7906  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7907  case $host_os in
7908    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7909    *)                         need_version=no  ;;
7910  esac
7911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7912  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7913  shlibpath_var=LD_LIBRARY_PATH
7914  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7915    case $host_os in
7916      openbsd2.[89] | openbsd2.[89].*)
7917	shlibpath_overrides_runpath=no
7918	;;
7919      *)
7920	shlibpath_overrides_runpath=yes
7921	;;
7922      esac
7923  else
7924    shlibpath_overrides_runpath=yes
7925  fi
7926  ;;
7927
7928os2*)
7929  libname_spec='$name'
7930  shrext_cmds=".dll"
7931  need_lib_prefix=no
7932  library_names_spec='$libname${shared_ext} $libname.a'
7933  dynamic_linker='OS/2 ld.exe'
7934  shlibpath_var=LIBPATH
7935  ;;
7936
7937osf3* | osf4* | osf5*)
7938  version_type=osf
7939  need_lib_prefix=no
7940  need_version=no
7941  soname_spec='${libname}${release}${shared_ext}$major'
7942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7943  shlibpath_var=LD_LIBRARY_PATH
7944  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7945  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7946  ;;
7947
7948solaris*)
7949  version_type=linux
7950  need_lib_prefix=no
7951  need_version=no
7952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7953  soname_spec='${libname}${release}${shared_ext}$major'
7954  shlibpath_var=LD_LIBRARY_PATH
7955  shlibpath_overrides_runpath=yes
7956  hardcode_into_libs=yes
7957  # ldd complains unless libraries are executable
7958  postinstall_cmds='chmod +x $lib'
7959  ;;
7960
7961sunos4*)
7962  version_type=sunos
7963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7964  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7965  shlibpath_var=LD_LIBRARY_PATH
7966  shlibpath_overrides_runpath=yes
7967  if test "$with_gnu_ld" = yes; then
7968    need_lib_prefix=no
7969  fi
7970  need_version=yes
7971  ;;
7972
7973sysv4 | sysv4.3*)
7974  version_type=linux
7975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7976  soname_spec='${libname}${release}${shared_ext}$major'
7977  shlibpath_var=LD_LIBRARY_PATH
7978  case $host_vendor in
7979    sni)
7980      shlibpath_overrides_runpath=no
7981      need_lib_prefix=no
7982      export_dynamic_flag_spec='${wl}-Blargedynsym'
7983      runpath_var=LD_RUN_PATH
7984      ;;
7985    siemens)
7986      need_lib_prefix=no
7987      ;;
7988    motorola)
7989      need_lib_prefix=no
7990      need_version=no
7991      shlibpath_overrides_runpath=no
7992      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7993      ;;
7994  esac
7995  ;;
7996
7997sysv4*MP*)
7998  if test -d /usr/nec ;then
7999    version_type=linux
8000    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8001    soname_spec='$libname${shared_ext}.$major'
8002    shlibpath_var=LD_LIBRARY_PATH
8003  fi
8004  ;;
8005
8006sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8007  version_type=freebsd-elf
8008  need_lib_prefix=no
8009  need_version=no
8010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8011  soname_spec='${libname}${release}${shared_ext}$major'
8012  shlibpath_var=LD_LIBRARY_PATH
8013  hardcode_into_libs=yes
8014  if test "$with_gnu_ld" = yes; then
8015    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8016    shlibpath_overrides_runpath=no
8017  else
8018    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8019    shlibpath_overrides_runpath=yes
8020    case $host_os in
8021      sco3.2v5*)
8022        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8023	;;
8024    esac
8025  fi
8026  sys_lib_dlsearch_path_spec='/usr/lib'
8027  ;;
8028
8029uts4*)
8030  version_type=linux
8031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032  soname_spec='${libname}${release}${shared_ext}$major'
8033  shlibpath_var=LD_LIBRARY_PATH
8034  ;;
8035
8036*)
8037  dynamic_linker=no
8038  ;;
8039esac
8040echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8041echo "${ECHO_T}$dynamic_linker" >&6
8042test "$dynamic_linker" = no && can_build_shared=no
8043
8044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8045if test "$GCC" = yes; then
8046  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8047fi
8048
8049echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8050echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8051hardcode_action=
8052if test -n "$hardcode_libdir_flag_spec" || \
8053   test -n "$runpath_var" || \
8054   test "X$hardcode_automatic" = "Xyes" ; then
8055
8056  # We can hardcode non-existant directories.
8057  if test "$hardcode_direct" != no &&
8058     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8059     # have to relink, otherwise we might link with an installed library
8060     # when we should be linking with a yet-to-be-installed one
8061     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8062     test "$hardcode_minus_L" != no; then
8063    # Linking always hardcodes the temporary library directory.
8064    hardcode_action=relink
8065  else
8066    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8067    hardcode_action=immediate
8068  fi
8069else
8070  # We cannot hardcode anything, or else we can only hardcode existing
8071  # directories.
8072  hardcode_action=unsupported
8073fi
8074echo "$as_me:$LINENO: result: $hardcode_action" >&5
8075echo "${ECHO_T}$hardcode_action" >&6
8076
8077if test "$hardcode_action" = relink; then
8078  # Fast installation is not supported
8079  enable_fast_install=no
8080elif test "$shlibpath_overrides_runpath" = yes ||
8081     test "$enable_shared" = no; then
8082  # Fast installation is not necessary
8083  enable_fast_install=needless
8084fi
8085
8086striplib=
8087old_striplib=
8088echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8089echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8090if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8091  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8092  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8093  echo "$as_me:$LINENO: result: yes" >&5
8094echo "${ECHO_T}yes" >&6
8095else
8096# FIXME - insert some real tests, host_os isn't really good enough
8097  case $host_os in
8098   darwin*)
8099       if test -n "$STRIP" ; then
8100         striplib="$STRIP -x"
8101         echo "$as_me:$LINENO: result: yes" >&5
8102echo "${ECHO_T}yes" >&6
8103       else
8104  echo "$as_me:$LINENO: result: no" >&5
8105echo "${ECHO_T}no" >&6
8106fi
8107       ;;
8108   *)
8109  echo "$as_me:$LINENO: result: no" >&5
8110echo "${ECHO_T}no" >&6
8111    ;;
8112  esac
8113fi
8114
8115if test "x$enable_dlopen" != xyes; then
8116  enable_dlopen=unknown
8117  enable_dlopen_self=unknown
8118  enable_dlopen_self_static=unknown
8119else
8120  lt_cv_dlopen=no
8121  lt_cv_dlopen_libs=
8122
8123  case $host_os in
8124  beos*)
8125    lt_cv_dlopen="load_add_on"
8126    lt_cv_dlopen_libs=
8127    lt_cv_dlopen_self=yes
8128    ;;
8129
8130  mingw* | pw32*)
8131    lt_cv_dlopen="LoadLibrary"
8132    lt_cv_dlopen_libs=
8133   ;;
8134
8135  cygwin*)
8136    lt_cv_dlopen="dlopen"
8137    lt_cv_dlopen_libs=
8138   ;;
8139
8140  darwin*)
8141  # if libdl is installed we need to link against it
8142    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8143echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8144if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8145  echo $ECHO_N "(cached) $ECHO_C" >&6
8146else
8147  ac_check_lib_save_LIBS=$LIBS
8148LIBS="-ldl  $LIBS"
8149cat >conftest.$ac_ext <<_ACEOF
8150/* confdefs.h.  */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h.  */
8155
8156/* Override any gcc2 internal prototype to avoid an error.  */
8157#ifdef __cplusplus
8158extern "C"
8159#endif
8160/* We use char because int might match the return type of a gcc2
8161   builtin and then its argument prototype would still apply.  */
8162char dlopen ();
8163int
8164main ()
8165{
8166dlopen ();
8167  ;
8168  return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
8172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173  (eval $ac_link) 2>conftest.er1
8174  ac_status=$?
8175  grep -v '^ *+' conftest.er1 >conftest.err
8176  rm -f conftest.er1
8177  cat conftest.err >&5
8178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179  (exit $ac_status); } &&
8180	 { ac_try='test -z "$ac_c_werror_flag"
8181			 || test ! -s conftest.err'
8182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183  (eval $ac_try) 2>&5
8184  ac_status=$?
8185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186  (exit $ac_status); }; } &&
8187	 { ac_try='test -s conftest$ac_exeext'
8188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189  (eval $ac_try) 2>&5
8190  ac_status=$?
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); }; }; then
8193  ac_cv_lib_dl_dlopen=yes
8194else
8195  echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
8198ac_cv_lib_dl_dlopen=no
8199fi
8200rm -f conftest.err conftest.$ac_objext \
8201      conftest$ac_exeext conftest.$ac_ext
8202LIBS=$ac_check_lib_save_LIBS
8203fi
8204echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8205echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8206if test $ac_cv_lib_dl_dlopen = yes; then
8207  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8208else
8209
8210    lt_cv_dlopen="dyld"
8211    lt_cv_dlopen_libs=
8212    lt_cv_dlopen_self=yes
8213
8214fi
8215
8216   ;;
8217
8218  *)
8219    echo "$as_me:$LINENO: checking for shl_load" >&5
8220echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8221if test "${ac_cv_func_shl_load+set}" = set; then
8222  echo $ECHO_N "(cached) $ECHO_C" >&6
8223else
8224  cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h.  */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h.  */
8230/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8231   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8232#define shl_load innocuous_shl_load
8233
8234/* System header to define __stub macros and hopefully few prototypes,
8235    which can conflict with char shl_load (); below.
8236    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8237    <limits.h> exists even on freestanding compilers.  */
8238
8239#ifdef __STDC__
8240# include <limits.h>
8241#else
8242# include <assert.h>
8243#endif
8244
8245#undef shl_load
8246
8247/* Override any gcc2 internal prototype to avoid an error.  */
8248#ifdef __cplusplus
8249extern "C"
8250{
8251#endif
8252/* We use char because int might match the return type of a gcc2
8253   builtin and then its argument prototype would still apply.  */
8254char shl_load ();
8255/* The GNU C library defines this for functions which it implements
8256    to always fail with ENOSYS.  Some functions are actually named
8257    something starting with __ and the normal name is an alias.  */
8258#if defined (__stub_shl_load) || defined (__stub___shl_load)
8259choke me
8260#else
8261char (*f) () = shl_load;
8262#endif
8263#ifdef __cplusplus
8264}
8265#endif
8266
8267int
8268main ()
8269{
8270return f != shl_load;
8271  ;
8272  return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext conftest$ac_exeext
8276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8277  (eval $ac_link) 2>conftest.er1
8278  ac_status=$?
8279  grep -v '^ *+' conftest.er1 >conftest.err
8280  rm -f conftest.er1
8281  cat conftest.err >&5
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); } &&
8284	 { ac_try='test -z "$ac_c_werror_flag"
8285			 || test ! -s conftest.err'
8286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287  (eval $ac_try) 2>&5
8288  ac_status=$?
8289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290  (exit $ac_status); }; } &&
8291	 { ac_try='test -s conftest$ac_exeext'
8292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293  (eval $ac_try) 2>&5
8294  ac_status=$?
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); }; }; then
8297  ac_cv_func_shl_load=yes
8298else
8299  echo "$as_me: failed program was:" >&5
8300sed 's/^/| /' conftest.$ac_ext >&5
8301
8302ac_cv_func_shl_load=no
8303fi
8304rm -f conftest.err conftest.$ac_objext \
8305      conftest$ac_exeext conftest.$ac_ext
8306fi
8307echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8308echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8309if test $ac_cv_func_shl_load = yes; then
8310  lt_cv_dlopen="shl_load"
8311else
8312  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8313echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8314if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8315  echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317  ac_check_lib_save_LIBS=$LIBS
8318LIBS="-ldld  $LIBS"
8319cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h.  */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h.  */
8325
8326/* Override any gcc2 internal prototype to avoid an error.  */
8327#ifdef __cplusplus
8328extern "C"
8329#endif
8330/* We use char because int might match the return type of a gcc2
8331   builtin and then its argument prototype would still apply.  */
8332char shl_load ();
8333int
8334main ()
8335{
8336shl_load ();
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341rm -f conftest.$ac_objext conftest$ac_exeext
8342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343  (eval $ac_link) 2>conftest.er1
8344  ac_status=$?
8345  grep -v '^ *+' conftest.er1 >conftest.err
8346  rm -f conftest.er1
8347  cat conftest.err >&5
8348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349  (exit $ac_status); } &&
8350	 { ac_try='test -z "$ac_c_werror_flag"
8351			 || test ! -s conftest.err'
8352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353  (eval $ac_try) 2>&5
8354  ac_status=$?
8355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356  (exit $ac_status); }; } &&
8357	 { ac_try='test -s conftest$ac_exeext'
8358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359  (eval $ac_try) 2>&5
8360  ac_status=$?
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); }; }; then
8363  ac_cv_lib_dld_shl_load=yes
8364else
8365  echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
8368ac_cv_lib_dld_shl_load=no
8369fi
8370rm -f conftest.err conftest.$ac_objext \
8371      conftest$ac_exeext conftest.$ac_ext
8372LIBS=$ac_check_lib_save_LIBS
8373fi
8374echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8375echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8376if test $ac_cv_lib_dld_shl_load = yes; then
8377  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8378else
8379  echo "$as_me:$LINENO: checking for dlopen" >&5
8380echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8381if test "${ac_cv_func_dlopen+set}" = set; then
8382  echo $ECHO_N "(cached) $ECHO_C" >&6
8383else
8384  cat >conftest.$ac_ext <<_ACEOF
8385/* confdefs.h.  */
8386_ACEOF
8387cat confdefs.h >>conftest.$ac_ext
8388cat >>conftest.$ac_ext <<_ACEOF
8389/* end confdefs.h.  */
8390/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8391   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8392#define dlopen innocuous_dlopen
8393
8394/* System header to define __stub macros and hopefully few prototypes,
8395    which can conflict with char dlopen (); below.
8396    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397    <limits.h> exists even on freestanding compilers.  */
8398
8399#ifdef __STDC__
8400# include <limits.h>
8401#else
8402# include <assert.h>
8403#endif
8404
8405#undef dlopen
8406
8407/* Override any gcc2 internal prototype to avoid an error.  */
8408#ifdef __cplusplus
8409extern "C"
8410{
8411#endif
8412/* We use char because int might match the return type of a gcc2
8413   builtin and then its argument prototype would still apply.  */
8414char dlopen ();
8415/* The GNU C library defines this for functions which it implements
8416    to always fail with ENOSYS.  Some functions are actually named
8417    something starting with __ and the normal name is an alias.  */
8418#if defined (__stub_dlopen) || defined (__stub___dlopen)
8419choke me
8420#else
8421char (*f) () = dlopen;
8422#endif
8423#ifdef __cplusplus
8424}
8425#endif
8426
8427int
8428main ()
8429{
8430return f != dlopen;
8431  ;
8432  return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext conftest$ac_exeext
8436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437  (eval $ac_link) 2>conftest.er1
8438  ac_status=$?
8439  grep -v '^ *+' conftest.er1 >conftest.err
8440  rm -f conftest.er1
8441  cat conftest.err >&5
8442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); } &&
8444	 { ac_try='test -z "$ac_c_werror_flag"
8445			 || test ! -s conftest.err'
8446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447  (eval $ac_try) 2>&5
8448  ac_status=$?
8449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450  (exit $ac_status); }; } &&
8451	 { ac_try='test -s conftest$ac_exeext'
8452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453  (eval $ac_try) 2>&5
8454  ac_status=$?
8455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456  (exit $ac_status); }; }; then
8457  ac_cv_func_dlopen=yes
8458else
8459  echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
8461
8462ac_cv_func_dlopen=no
8463fi
8464rm -f conftest.err conftest.$ac_objext \
8465      conftest$ac_exeext conftest.$ac_ext
8466fi
8467echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8468echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8469if test $ac_cv_func_dlopen = yes; then
8470  lt_cv_dlopen="dlopen"
8471else
8472  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8473echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8474if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8475  echo $ECHO_N "(cached) $ECHO_C" >&6
8476else
8477  ac_check_lib_save_LIBS=$LIBS
8478LIBS="-ldl  $LIBS"
8479cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h.  */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h.  */
8485
8486/* Override any gcc2 internal prototype to avoid an error.  */
8487#ifdef __cplusplus
8488extern "C"
8489#endif
8490/* We use char because int might match the return type of a gcc2
8491   builtin and then its argument prototype would still apply.  */
8492char dlopen ();
8493int
8494main ()
8495{
8496dlopen ();
8497  ;
8498  return 0;
8499}
8500_ACEOF
8501rm -f conftest.$ac_objext conftest$ac_exeext
8502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503  (eval $ac_link) 2>conftest.er1
8504  ac_status=$?
8505  grep -v '^ *+' conftest.er1 >conftest.err
8506  rm -f conftest.er1
8507  cat conftest.err >&5
8508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509  (exit $ac_status); } &&
8510	 { ac_try='test -z "$ac_c_werror_flag"
8511			 || test ! -s conftest.err'
8512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513  (eval $ac_try) 2>&5
8514  ac_status=$?
8515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516  (exit $ac_status); }; } &&
8517	 { ac_try='test -s conftest$ac_exeext'
8518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519  (eval $ac_try) 2>&5
8520  ac_status=$?
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); }; }; then
8523  ac_cv_lib_dl_dlopen=yes
8524else
8525  echo "$as_me: failed program was:" >&5
8526sed 's/^/| /' conftest.$ac_ext >&5
8527
8528ac_cv_lib_dl_dlopen=no
8529fi
8530rm -f conftest.err conftest.$ac_objext \
8531      conftest$ac_exeext conftest.$ac_ext
8532LIBS=$ac_check_lib_save_LIBS
8533fi
8534echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8535echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8536if test $ac_cv_lib_dl_dlopen = yes; then
8537  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8538else
8539  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8540echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8541if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8542  echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544  ac_check_lib_save_LIBS=$LIBS
8545LIBS="-lsvld  $LIBS"
8546cat >conftest.$ac_ext <<_ACEOF
8547/* confdefs.h.  */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h.  */
8552
8553/* Override any gcc2 internal prototype to avoid an error.  */
8554#ifdef __cplusplus
8555extern "C"
8556#endif
8557/* We use char because int might match the return type of a gcc2
8558   builtin and then its argument prototype would still apply.  */
8559char dlopen ();
8560int
8561main ()
8562{
8563dlopen ();
8564  ;
8565  return 0;
8566}
8567_ACEOF
8568rm -f conftest.$ac_objext conftest$ac_exeext
8569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570  (eval $ac_link) 2>conftest.er1
8571  ac_status=$?
8572  grep -v '^ *+' conftest.er1 >conftest.err
8573  rm -f conftest.er1
8574  cat conftest.err >&5
8575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576  (exit $ac_status); } &&
8577	 { ac_try='test -z "$ac_c_werror_flag"
8578			 || test ! -s conftest.err'
8579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580  (eval $ac_try) 2>&5
8581  ac_status=$?
8582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583  (exit $ac_status); }; } &&
8584	 { ac_try='test -s conftest$ac_exeext'
8585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586  (eval $ac_try) 2>&5
8587  ac_status=$?
8588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589  (exit $ac_status); }; }; then
8590  ac_cv_lib_svld_dlopen=yes
8591else
8592  echo "$as_me: failed program was:" >&5
8593sed 's/^/| /' conftest.$ac_ext >&5
8594
8595ac_cv_lib_svld_dlopen=no
8596fi
8597rm -f conftest.err conftest.$ac_objext \
8598      conftest$ac_exeext conftest.$ac_ext
8599LIBS=$ac_check_lib_save_LIBS
8600fi
8601echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8602echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8603if test $ac_cv_lib_svld_dlopen = yes; then
8604  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8605else
8606  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8607echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8608if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8609  echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611  ac_check_lib_save_LIBS=$LIBS
8612LIBS="-ldld  $LIBS"
8613cat >conftest.$ac_ext <<_ACEOF
8614/* confdefs.h.  */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h.  */
8619
8620/* Override any gcc2 internal prototype to avoid an error.  */
8621#ifdef __cplusplus
8622extern "C"
8623#endif
8624/* We use char because int might match the return type of a gcc2
8625   builtin and then its argument prototype would still apply.  */
8626char dld_link ();
8627int
8628main ()
8629{
8630dld_link ();
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_lib_dld_dld_link=yes
8658else
8659  echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
8662ac_cv_lib_dld_dld_link=no
8663fi
8664rm -f conftest.err conftest.$ac_objext \
8665      conftest$ac_exeext conftest.$ac_ext
8666LIBS=$ac_check_lib_save_LIBS
8667fi
8668echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8669echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8670if test $ac_cv_lib_dld_dld_link = yes; then
8671  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8672fi
8673
8674
8675fi
8676
8677
8678fi
8679
8680
8681fi
8682
8683
8684fi
8685
8686
8687fi
8688
8689    ;;
8690  esac
8691
8692  if test "x$lt_cv_dlopen" != xno; then
8693    enable_dlopen=yes
8694  else
8695    enable_dlopen=no
8696  fi
8697
8698  case $lt_cv_dlopen in
8699  dlopen)
8700    save_CPPFLAGS="$CPPFLAGS"
8701    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8702
8703    save_LDFLAGS="$LDFLAGS"
8704    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8705
8706    save_LIBS="$LIBS"
8707    LIBS="$lt_cv_dlopen_libs $LIBS"
8708
8709    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8710echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8711if test "${lt_cv_dlopen_self+set}" = set; then
8712  echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714  	  if test "$cross_compiling" = yes; then :
8715  lt_cv_dlopen_self=cross
8716else
8717  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8718  lt_status=$lt_dlunknown
8719  cat > conftest.$ac_ext <<EOF
8720#line 8720 "configure"
8721#include "confdefs.h"
8722
8723#if HAVE_DLFCN_H
8724#include <dlfcn.h>
8725#endif
8726
8727#include <stdio.h>
8728
8729#ifdef RTLD_GLOBAL
8730#  define LT_DLGLOBAL		RTLD_GLOBAL
8731#else
8732#  ifdef DL_GLOBAL
8733#    define LT_DLGLOBAL		DL_GLOBAL
8734#  else
8735#    define LT_DLGLOBAL		0
8736#  endif
8737#endif
8738
8739/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8740   find out it does not work in some platform. */
8741#ifndef LT_DLLAZY_OR_NOW
8742#  ifdef RTLD_LAZY
8743#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8744#  else
8745#    ifdef DL_LAZY
8746#      define LT_DLLAZY_OR_NOW		DL_LAZY
8747#    else
8748#      ifdef RTLD_NOW
8749#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8750#      else
8751#        ifdef DL_NOW
8752#          define LT_DLLAZY_OR_NOW	DL_NOW
8753#        else
8754#          define LT_DLLAZY_OR_NOW	0
8755#        endif
8756#      endif
8757#    endif
8758#  endif
8759#endif
8760
8761#ifdef __cplusplus
8762extern "C" void exit (int);
8763#endif
8764
8765void fnord() { int i=42;}
8766int main ()
8767{
8768  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8769  int status = $lt_dlunknown;
8770
8771  if (self)
8772    {
8773      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8774      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8775      /* dlclose (self); */
8776    }
8777  else
8778    puts (dlerror ());
8779
8780    exit (status);
8781}
8782EOF
8783  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784  (eval $ac_link) 2>&5
8785  ac_status=$?
8786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8788    (./conftest; exit; ) >&5 2>/dev/null
8789    lt_status=$?
8790    case x$lt_status in
8791      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8792      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8793      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8794    esac
8795  else :
8796    # compilation failed
8797    lt_cv_dlopen_self=no
8798  fi
8799fi
8800rm -fr conftest*
8801
8802
8803fi
8804echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8805echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8806
8807    if test "x$lt_cv_dlopen_self" = xyes; then
8808      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8809      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8810echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8811if test "${lt_cv_dlopen_self_static+set}" = set; then
8812  echo $ECHO_N "(cached) $ECHO_C" >&6
8813else
8814  	  if test "$cross_compiling" = yes; then :
8815  lt_cv_dlopen_self_static=cross
8816else
8817  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8818  lt_status=$lt_dlunknown
8819  cat > conftest.$ac_ext <<EOF
8820#line 8820 "configure"
8821#include "confdefs.h"
8822
8823#if HAVE_DLFCN_H
8824#include <dlfcn.h>
8825#endif
8826
8827#include <stdio.h>
8828
8829#ifdef RTLD_GLOBAL
8830#  define LT_DLGLOBAL		RTLD_GLOBAL
8831#else
8832#  ifdef DL_GLOBAL
8833#    define LT_DLGLOBAL		DL_GLOBAL
8834#  else
8835#    define LT_DLGLOBAL		0
8836#  endif
8837#endif
8838
8839/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8840   find out it does not work in some platform. */
8841#ifndef LT_DLLAZY_OR_NOW
8842#  ifdef RTLD_LAZY
8843#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8844#  else
8845#    ifdef DL_LAZY
8846#      define LT_DLLAZY_OR_NOW		DL_LAZY
8847#    else
8848#      ifdef RTLD_NOW
8849#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8850#      else
8851#        ifdef DL_NOW
8852#          define LT_DLLAZY_OR_NOW	DL_NOW
8853#        else
8854#          define LT_DLLAZY_OR_NOW	0
8855#        endif
8856#      endif
8857#    endif
8858#  endif
8859#endif
8860
8861#ifdef __cplusplus
8862extern "C" void exit (int);
8863#endif
8864
8865void fnord() { int i=42;}
8866int main ()
8867{
8868  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8869  int status = $lt_dlunknown;
8870
8871  if (self)
8872    {
8873      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8874      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8875      /* dlclose (self); */
8876    }
8877  else
8878    puts (dlerror ());
8879
8880    exit (status);
8881}
8882EOF
8883  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884  (eval $ac_link) 2>&5
8885  ac_status=$?
8886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8888    (./conftest; exit; ) >&5 2>/dev/null
8889    lt_status=$?
8890    case x$lt_status in
8891      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8892      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8893      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8894    esac
8895  else :
8896    # compilation failed
8897    lt_cv_dlopen_self_static=no
8898  fi
8899fi
8900rm -fr conftest*
8901
8902
8903fi
8904echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8905echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8906    fi
8907
8908    CPPFLAGS="$save_CPPFLAGS"
8909    LDFLAGS="$save_LDFLAGS"
8910    LIBS="$save_LIBS"
8911    ;;
8912  esac
8913
8914  case $lt_cv_dlopen_self in
8915  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8916  *) enable_dlopen_self=unknown ;;
8917  esac
8918
8919  case $lt_cv_dlopen_self_static in
8920  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8921  *) enable_dlopen_self_static=unknown ;;
8922  esac
8923fi
8924
8925
8926# Report which library types will actually be built
8927echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8928echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8929echo "$as_me:$LINENO: result: $can_build_shared" >&5
8930echo "${ECHO_T}$can_build_shared" >&6
8931
8932echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8933echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8934test "$can_build_shared" = "no" && enable_shared=no
8935
8936# On AIX, shared libraries and static libraries use the same namespace, and
8937# are all built from PIC.
8938case $host_os in
8939aix3*)
8940  test "$enable_shared" = yes && enable_static=no
8941  if test -n "$RANLIB"; then
8942    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8943    postinstall_cmds='$RANLIB $lib'
8944  fi
8945  ;;
8946
8947aix4* | aix5*)
8948  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8949    test "$enable_shared" = yes && enable_static=no
8950  fi
8951    ;;
8952esac
8953echo "$as_me:$LINENO: result: $enable_shared" >&5
8954echo "${ECHO_T}$enable_shared" >&6
8955
8956echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8957echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8958# Make sure either enable_shared or enable_static is yes.
8959test "$enable_shared" = yes || enable_static=yes
8960echo "$as_me:$LINENO: result: $enable_static" >&5
8961echo "${ECHO_T}$enable_static" >&6
8962
8963# The else clause should only fire when bootstrapping the
8964# libtool distribution, otherwise you forgot to ship ltmain.sh
8965# with your package, and you will get complaints that there are
8966# no rules to generate ltmain.sh.
8967if test -f "$ltmain"; then
8968  # See if we are running on zsh, and set the options which allow our commands through
8969  # without removal of \ escapes.
8970  if test -n "${ZSH_VERSION+set}" ; then
8971    setopt NO_GLOB_SUBST
8972  fi
8973  # Now quote all the things that may contain metacharacters while being
8974  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8975  # variables and quote the copies for generation of the libtool script.
8976  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
8977    SED SHELL STRIP \
8978    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8979    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8980    deplibs_check_method reload_flag reload_cmds need_locks \
8981    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8982    lt_cv_sys_global_symbol_to_c_name_address \
8983    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8984    old_postinstall_cmds old_postuninstall_cmds \
8985    compiler \
8986    CC \
8987    LD \
8988    lt_prog_compiler_wl \
8989    lt_prog_compiler_pic \
8990    lt_prog_compiler_static \
8991    lt_prog_compiler_no_builtin_flag \
8992    export_dynamic_flag_spec \
8993    thread_safe_flag_spec \
8994    whole_archive_flag_spec \
8995    enable_shared_with_static_runtimes \
8996    old_archive_cmds \
8997    old_archive_from_new_cmds \
8998    predep_objects \
8999    postdep_objects \
9000    predeps \
9001    postdeps \
9002    compiler_lib_search_path \
9003    archive_cmds \
9004    archive_expsym_cmds \
9005    postinstall_cmds \
9006    postuninstall_cmds \
9007    old_archive_from_expsyms_cmds \
9008    allow_undefined_flag \
9009    no_undefined_flag \
9010    export_symbols_cmds \
9011    hardcode_libdir_flag_spec \
9012    hardcode_libdir_flag_spec_ld \
9013    hardcode_libdir_separator \
9014    hardcode_automatic \
9015    module_cmds \
9016    module_expsym_cmds \
9017    lt_cv_prog_compiler_c_o \
9018    exclude_expsyms \
9019    include_expsyms; do
9020
9021    case $var in
9022    old_archive_cmds | \
9023    old_archive_from_new_cmds | \
9024    archive_cmds | \
9025    archive_expsym_cmds | \
9026    module_cmds | \
9027    module_expsym_cmds | \
9028    old_archive_from_expsyms_cmds | \
9029    export_symbols_cmds | \
9030    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9031    postinstall_cmds | postuninstall_cmds | \
9032    old_postinstall_cmds | old_postuninstall_cmds | \
9033    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9034      # Double-quote double-evaled strings.
9035      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9036      ;;
9037    *)
9038      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9039      ;;
9040    esac
9041  done
9042
9043  case $lt_echo in
9044  *'\$0 --fallback-echo"')
9045    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9046    ;;
9047  esac
9048
9049cfgfile="${ofile}T"
9050  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9051  $rm -f "$cfgfile"
9052  { echo "$as_me:$LINENO: creating $ofile" >&5
9053echo "$as_me: creating $ofile" >&6;}
9054
9055  cat <<__EOF__ >> "$cfgfile"
9056#! $SHELL
9057
9058# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9059# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9060# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9061#
9062# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9063# Free Software Foundation, Inc.
9064#
9065# This file is part of GNU Libtool:
9066# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9067#
9068# This program is free software; you can redistribute it and/or modify
9069# it under the terms of the GNU General Public License as published by
9070# the Free Software Foundation; either version 2 of the License, or
9071# (at your option) any later version.
9072#
9073# This program is distributed in the hope that it will be useful, but
9074# WITHOUT ANY WARRANTY; without even the implied warranty of
9075# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9076# General Public License for more details.
9077#
9078# You should have received a copy of the GNU General Public License
9079# along with this program; if not, write to the Free Software
9080# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9081#
9082# As a special exception to the GNU General Public License, if you
9083# distribute this file as part of a program that contains a
9084# configuration script generated by Autoconf, you may include it under
9085# the same distribution terms that you use for the rest of that program.
9086
9087# A sed program that does not truncate output.
9088SED=$lt_SED
9089
9090# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9091Xsed="$SED -e 1s/^X//"
9092
9093# The HP-UX ksh and POSIX shell print the target directory to stdout
9094# if CDPATH is set.
9095(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9096
9097# The names of the tagged configurations supported by this script.
9098available_tags=
9099
9100# ### BEGIN LIBTOOL CONFIG
9101
9102# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9103
9104# Shell to use when invoking shell scripts.
9105SHELL=$lt_SHELL
9106
9107# Whether or not to build shared libraries.
9108build_libtool_libs=$enable_shared
9109
9110# Whether or not to build static libraries.
9111build_old_libs=$enable_static
9112
9113# Whether or not to add -lc for building shared libraries.
9114build_libtool_need_lc=$archive_cmds_need_lc
9115
9116# Whether or not to disallow shared libs when runtime libs are static
9117allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9118
9119# Whether or not to optimize for fast installation.
9120fast_install=$enable_fast_install
9121
9122# The host system.
9123host_alias=$host_alias
9124host=$host
9125host_os=$host_os
9126
9127# The build system.
9128build_alias=$build_alias
9129build=$build
9130build_os=$build_os
9131
9132# An echo program that does not interpret backslashes.
9133echo=$lt_echo
9134
9135# The archiver.
9136AR=$lt_AR
9137AR_FLAGS=$lt_AR_FLAGS
9138
9139# A C compiler.
9140LTCC=$lt_LTCC
9141
9142# LTCC compiler flags.
9143LTCFLAGS=$lt_LTCFLAGS
9144
9145# A language-specific compiler.
9146CC=$lt_compiler
9147
9148# Is the compiler the GNU C compiler?
9149with_gcc=$GCC
9150
9151# An ERE matcher.
9152EGREP=$lt_EGREP
9153
9154# The linker used to build libraries.
9155LD=$lt_LD
9156
9157# Whether we need hard or soft links.
9158LN_S=$lt_LN_S
9159
9160# A BSD-compatible nm program.
9161NM=$lt_NM
9162
9163# A symbol stripping program
9164STRIP=$lt_STRIP
9165
9166# Used to examine libraries when file_magic_cmd begins "file"
9167MAGIC_CMD=$MAGIC_CMD
9168
9169# Used on cygwin: DLL creation program.
9170DLLTOOL="$DLLTOOL"
9171
9172# Used on cygwin: object dumper.
9173OBJDUMP="$OBJDUMP"
9174
9175# Used on cygwin: assembler.
9176AS="$AS"
9177
9178# The name of the directory that contains temporary libtool files.
9179objdir=$objdir
9180
9181# How to create reloadable object files.
9182reload_flag=$lt_reload_flag
9183reload_cmds=$lt_reload_cmds
9184
9185# How to pass a linker flag through the compiler.
9186wl=$lt_lt_prog_compiler_wl
9187
9188# Object file suffix (normally "o").
9189objext="$ac_objext"
9190
9191# Old archive suffix (normally "a").
9192libext="$libext"
9193
9194# Shared library suffix (normally ".so").
9195shrext_cmds='$shrext_cmds'
9196
9197# Executable file suffix (normally "").
9198exeext="$exeext"
9199
9200# Additional compiler flags for building library objects.
9201pic_flag=$lt_lt_prog_compiler_pic
9202pic_mode=$pic_mode
9203
9204# What is the maximum length of a command?
9205max_cmd_len=$lt_cv_sys_max_cmd_len
9206
9207# Does compiler simultaneously support -c and -o options?
9208compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9209
9210# Must we lock files when doing compilation?
9211need_locks=$lt_need_locks
9212
9213# Do we need the lib prefix for modules?
9214need_lib_prefix=$need_lib_prefix
9215
9216# Do we need a version for libraries?
9217need_version=$need_version
9218
9219# Whether dlopen is supported.
9220dlopen_support=$enable_dlopen
9221
9222# Whether dlopen of programs is supported.
9223dlopen_self=$enable_dlopen_self
9224
9225# Whether dlopen of statically linked programs is supported.
9226dlopen_self_static=$enable_dlopen_self_static
9227
9228# Compiler flag to prevent dynamic linking.
9229link_static_flag=$lt_lt_prog_compiler_static
9230
9231# Compiler flag to turn off builtin functions.
9232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9233
9234# Compiler flag to allow reflexive dlopens.
9235export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9236
9237# Compiler flag to generate shared objects directly from archives.
9238whole_archive_flag_spec=$lt_whole_archive_flag_spec
9239
9240# Compiler flag to generate thread-safe objects.
9241thread_safe_flag_spec=$lt_thread_safe_flag_spec
9242
9243# Library versioning type.
9244version_type=$version_type
9245
9246# Format of library name prefix.
9247libname_spec=$lt_libname_spec
9248
9249# List of archive names.  First name is the real one, the rest are links.
9250# The last name is the one that the linker finds with -lNAME.
9251library_names_spec=$lt_library_names_spec
9252
9253# The coded name of the library, if different from the real name.
9254soname_spec=$lt_soname_spec
9255
9256# Commands used to build and install an old-style archive.
9257RANLIB=$lt_RANLIB
9258old_archive_cmds=$lt_old_archive_cmds
9259old_postinstall_cmds=$lt_old_postinstall_cmds
9260old_postuninstall_cmds=$lt_old_postuninstall_cmds
9261
9262# Create an old-style archive from a shared archive.
9263old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9264
9265# Create a temporary old-style archive to link instead of a shared archive.
9266old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9267
9268# Commands used to build and install a shared archive.
9269archive_cmds=$lt_archive_cmds
9270archive_expsym_cmds=$lt_archive_expsym_cmds
9271postinstall_cmds=$lt_postinstall_cmds
9272postuninstall_cmds=$lt_postuninstall_cmds
9273
9274# Commands used to build a loadable module (assumed same as above if empty)
9275module_cmds=$lt_module_cmds
9276module_expsym_cmds=$lt_module_expsym_cmds
9277
9278# Commands to strip libraries.
9279old_striplib=$lt_old_striplib
9280striplib=$lt_striplib
9281
9282# Dependencies to place before the objects being linked to create a
9283# shared library.
9284predep_objects=$lt_predep_objects
9285
9286# Dependencies to place after the objects being linked to create a
9287# shared library.
9288postdep_objects=$lt_postdep_objects
9289
9290# Dependencies to place before the objects being linked to create a
9291# shared library.
9292predeps=$lt_predeps
9293
9294# Dependencies to place after the objects being linked to create a
9295# shared library.
9296postdeps=$lt_postdeps
9297
9298# The library search path used internally by the compiler when linking
9299# a shared library.
9300compiler_lib_search_path=$lt_compiler_lib_search_path
9301
9302# Method to check whether dependent libraries are shared objects.
9303deplibs_check_method=$lt_deplibs_check_method
9304
9305# Command to use when deplibs_check_method == file_magic.
9306file_magic_cmd=$lt_file_magic_cmd
9307
9308# Flag that allows shared libraries with undefined symbols to be built.
9309allow_undefined_flag=$lt_allow_undefined_flag
9310
9311# Flag that forces no undefined symbols.
9312no_undefined_flag=$lt_no_undefined_flag
9313
9314# Commands used to finish a libtool library installation in a directory.
9315finish_cmds=$lt_finish_cmds
9316
9317# Same as above, but a single script fragment to be evaled but not shown.
9318finish_eval=$lt_finish_eval
9319
9320# Take the output of nm and produce a listing of raw symbols and C names.
9321global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9322
9323# Transform the output of nm in a proper C declaration
9324global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9325
9326# Transform the output of nm in a C name address pair
9327global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9328
9329# This is the shared library runtime path variable.
9330runpath_var=$runpath_var
9331
9332# This is the shared library path variable.
9333shlibpath_var=$shlibpath_var
9334
9335# Is shlibpath searched before the hard-coded library search path?
9336shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9337
9338# How to hardcode a shared library path into an executable.
9339hardcode_action=$hardcode_action
9340
9341# Whether we should hardcode library paths into libraries.
9342hardcode_into_libs=$hardcode_into_libs
9343
9344# Flag to hardcode \$libdir into a binary during linking.
9345# This must work even if \$libdir does not exist.
9346hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9347
9348# If ld is used when linking, flag to hardcode \$libdir into
9349# a binary during linking. This must work even if \$libdir does
9350# not exist.
9351hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9352
9353# Whether we need a single -rpath flag with a separated argument.
9354hardcode_libdir_separator=$lt_hardcode_libdir_separator
9355
9356# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9357# resulting binary.
9358hardcode_direct=$hardcode_direct
9359
9360# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9361# resulting binary.
9362hardcode_minus_L=$hardcode_minus_L
9363
9364# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9365# the resulting binary.
9366hardcode_shlibpath_var=$hardcode_shlibpath_var
9367
9368# Set to yes if building a shared library automatically hardcodes DIR into the library
9369# and all subsequent libraries and executables linked against it.
9370hardcode_automatic=$hardcode_automatic
9371
9372# Variables whose values should be saved in libtool wrapper scripts and
9373# restored at relink time.
9374variables_saved_for_relink="$variables_saved_for_relink"
9375
9376# Whether libtool must link a program against all its dependency libraries.
9377link_all_deplibs=$link_all_deplibs
9378
9379# Compile-time system search path for libraries
9380sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9381
9382# Run-time system search path for libraries
9383sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9384
9385# Fix the shell variable \$srcfile for the compiler.
9386fix_srcfile_path="$fix_srcfile_path"
9387
9388# Set to yes if exported symbols are required.
9389always_export_symbols=$always_export_symbols
9390
9391# The commands to list exported symbols.
9392export_symbols_cmds=$lt_export_symbols_cmds
9393
9394# The commands to extract the exported symbol list from a shared archive.
9395extract_expsyms_cmds=$lt_extract_expsyms_cmds
9396
9397# Symbols that should not be listed in the preloaded symbols.
9398exclude_expsyms=$lt_exclude_expsyms
9399
9400# Symbols that must always be exported.
9401include_expsyms=$lt_include_expsyms
9402
9403# ### END LIBTOOL CONFIG
9404
9405__EOF__
9406
9407
9408  case $host_os in
9409  aix3*)
9410    cat <<\EOF >> "$cfgfile"
9411
9412# AIX sometimes has problems with the GCC collect2 program.  For some
9413# reason, if we set the COLLECT_NAMES environment variable, the problems
9414# vanish in a puff of smoke.
9415if test "X${COLLECT_NAMES+set}" != Xset; then
9416  COLLECT_NAMES=
9417  export COLLECT_NAMES
9418fi
9419EOF
9420    ;;
9421  esac
9422
9423  # We use sed instead of cat because bash on DJGPP gets confused if
9424  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9425  # text mode, it properly converts lines to CR/LF.  This bash problem
9426  # is reportedly fixed, but why not run on old versions too?
9427  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9428
9429  mv -f "$cfgfile" "$ofile" || \
9430    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9431  chmod +x "$ofile"
9432
9433else
9434  # If there is no Makefile yet, we rely on a make rule to execute
9435  # `config.status --recheck' to rerun these tests and create the
9436  # libtool script then.
9437  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9438  if test -f "$ltmain_in"; then
9439    test -f Makefile && make "$ltmain"
9440  fi
9441fi
9442
9443
9444ac_ext=c
9445ac_cpp='$CPP $CPPFLAGS'
9446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9448ac_compiler_gnu=$ac_cv_c_compiler_gnu
9449
9450CC="$lt_save_CC"
9451
9452
9453# Check whether --with-tags or --without-tags was given.
9454if test "${with_tags+set}" = set; then
9455  withval="$with_tags"
9456  tagnames="$withval"
9457fi;
9458
9459if test -f "$ltmain" && test -n "$tagnames"; then
9460  if test ! -f "${ofile}"; then
9461    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9462echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9463  fi
9464
9465  if test -z "$LTCC"; then
9466    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9467    if test -z "$LTCC"; then
9468      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9469echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9470    else
9471      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9472echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9473    fi
9474  fi
9475  if test -z "$LTCFLAGS"; then
9476    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9477  fi
9478
9479  # Extract list of available tagged configurations in $ofile.
9480  # Note that this assumes the entire list is on one line.
9481  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9482
9483  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9484  for tagname in $tagnames; do
9485    IFS="$lt_save_ifs"
9486    # Check whether tagname contains only valid characters
9487    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9488    "") ;;
9489    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9490echo "$as_me: error: invalid tag name: $tagname" >&2;}
9491   { (exit 1); exit 1; }; }
9492	;;
9493    esac
9494
9495    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9496    then
9497      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9498echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9499   { (exit 1); exit 1; }; }
9500    fi
9501
9502    # Update the list of available tags.
9503    if test -n "$tagname"; then
9504      echo appending configuration tag \"$tagname\" to $ofile
9505
9506      case $tagname in
9507      CXX)
9508	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9509	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9510	    (test "X$CXX" != "Xg++"))) ; then
9511	  ac_ext=cc
9512ac_cpp='$CXXCPP $CPPFLAGS'
9513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9516
9517
9518
9519
9520archive_cmds_need_lc_CXX=no
9521allow_undefined_flag_CXX=
9522always_export_symbols_CXX=no
9523archive_expsym_cmds_CXX=
9524export_dynamic_flag_spec_CXX=
9525hardcode_direct_CXX=no
9526hardcode_libdir_flag_spec_CXX=
9527hardcode_libdir_flag_spec_ld_CXX=
9528hardcode_libdir_separator_CXX=
9529hardcode_minus_L_CXX=no
9530hardcode_shlibpath_var_CXX=unsupported
9531hardcode_automatic_CXX=no
9532module_cmds_CXX=
9533module_expsym_cmds_CXX=
9534link_all_deplibs_CXX=unknown
9535old_archive_cmds_CXX=$old_archive_cmds
9536no_undefined_flag_CXX=
9537whole_archive_flag_spec_CXX=
9538enable_shared_with_static_runtimes_CXX=no
9539
9540# Dependencies to place before and after the object being linked:
9541predep_objects_CXX=
9542postdep_objects_CXX=
9543predeps_CXX=
9544postdeps_CXX=
9545compiler_lib_search_path_CXX=
9546
9547# Source file extension for C++ test sources.
9548ac_ext=cpp
9549
9550# Object file extension for compiled C++ test sources.
9551objext=o
9552objext_CXX=$objext
9553
9554# Code to be used in simple compile tests
9555lt_simple_compile_test_code="int some_variable = 0;\n"
9556
9557# Code to be used in simple link tests
9558lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9559
9560# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9561
9562# If no C compiler was specified, use CC.
9563LTCC=${LTCC-"$CC"}
9564
9565# If no C compiler flags were specified, use CFLAGS.
9566LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9567
9568# Allow CC to be a program name with arguments.
9569compiler=$CC
9570
9571
9572# save warnings/boilerplate of simple test code
9573ac_outfile=conftest.$ac_objext
9574printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9575eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9576_lt_compiler_boilerplate=`cat conftest.err`
9577$rm conftest*
9578
9579ac_outfile=conftest.$ac_objext
9580printf "$lt_simple_link_test_code" >conftest.$ac_ext
9581eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9582_lt_linker_boilerplate=`cat conftest.err`
9583$rm conftest*
9584
9585
9586# Allow CC to be a program name with arguments.
9587lt_save_CC=$CC
9588lt_save_LD=$LD
9589lt_save_GCC=$GCC
9590GCC=$GXX
9591lt_save_with_gnu_ld=$with_gnu_ld
9592lt_save_path_LD=$lt_cv_path_LD
9593if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9594  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9595else
9596  $as_unset lt_cv_prog_gnu_ld
9597fi
9598if test -n "${lt_cv_path_LDCXX+set}"; then
9599  lt_cv_path_LD=$lt_cv_path_LDCXX
9600else
9601  $as_unset lt_cv_path_LD
9602fi
9603test -z "${LDCXX+set}" || LD=$LDCXX
9604CC=${CXX-"c++"}
9605compiler=$CC
9606compiler_CXX=$CC
9607for cc_temp in $compiler""; do
9608  case $cc_temp in
9609    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9610    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9611    \-*) ;;
9612    *) break;;
9613  esac
9614done
9615cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9616
9617
9618# We don't want -fno-exception wen compiling C++ code, so set the
9619# no_builtin_flag separately
9620if test "$GXX" = yes; then
9621  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9622else
9623  lt_prog_compiler_no_builtin_flag_CXX=
9624fi
9625
9626if test "$GXX" = yes; then
9627  # Set up default GNU C++ configuration
9628
9629
9630# Check whether --with-gnu-ld or --without-gnu-ld was given.
9631if test "${with_gnu_ld+set}" = set; then
9632  withval="$with_gnu_ld"
9633  test "$withval" = no || with_gnu_ld=yes
9634else
9635  with_gnu_ld=no
9636fi;
9637ac_prog=ld
9638if test "$GCC" = yes; then
9639  # Check if gcc -print-prog-name=ld gives a path.
9640  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9641echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9642  case $host in
9643  *-*-mingw*)
9644    # gcc leaves a trailing carriage return which upsets mingw
9645    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9646  *)
9647    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9648  esac
9649  case $ac_prog in
9650    # Accept absolute paths.
9651    [\\/]* | ?:[\\/]*)
9652      re_direlt='/[^/][^/]*/\.\./'
9653      # Canonicalize the pathname of ld
9654      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9655      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9656	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9657      done
9658      test -z "$LD" && LD="$ac_prog"
9659      ;;
9660  "")
9661    # If it fails, then pretend we aren't using GCC.
9662    ac_prog=ld
9663    ;;
9664  *)
9665    # If it is relative, then search for the first ld in PATH.
9666    with_gnu_ld=unknown
9667    ;;
9668  esac
9669elif test "$with_gnu_ld" = yes; then
9670  echo "$as_me:$LINENO: checking for GNU ld" >&5
9671echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9672else
9673  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9674echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9675fi
9676if test "${lt_cv_path_LD+set}" = set; then
9677  echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679  if test -z "$LD"; then
9680  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9681  for ac_dir in $PATH; do
9682    IFS="$lt_save_ifs"
9683    test -z "$ac_dir" && ac_dir=.
9684    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9685      lt_cv_path_LD="$ac_dir/$ac_prog"
9686      # Check to see if the program is GNU ld.  I'd rather use --version,
9687      # but apparently some variants of GNU ld only accept -v.
9688      # Break only if it was the GNU/non-GNU ld that we prefer.
9689      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9690      *GNU* | *'with BFD'*)
9691	test "$with_gnu_ld" != no && break
9692	;;
9693      *)
9694	test "$with_gnu_ld" != yes && break
9695	;;
9696      esac
9697    fi
9698  done
9699  IFS="$lt_save_ifs"
9700else
9701  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9702fi
9703fi
9704
9705LD="$lt_cv_path_LD"
9706if test -n "$LD"; then
9707  echo "$as_me:$LINENO: result: $LD" >&5
9708echo "${ECHO_T}$LD" >&6
9709else
9710  echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
9712fi
9713test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9714echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9715   { (exit 1); exit 1; }; }
9716echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9717echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9718if test "${lt_cv_prog_gnu_ld+set}" = set; then
9719  echo $ECHO_N "(cached) $ECHO_C" >&6
9720else
9721  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9722case `$LD -v 2>&1 </dev/null` in
9723*GNU* | *'with BFD'*)
9724  lt_cv_prog_gnu_ld=yes
9725  ;;
9726*)
9727  lt_cv_prog_gnu_ld=no
9728  ;;
9729esac
9730fi
9731echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9732echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9733with_gnu_ld=$lt_cv_prog_gnu_ld
9734
9735
9736
9737  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9738  # archiving commands below assume that GNU ld is being used.
9739  if test "$with_gnu_ld" = yes; then
9740    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9741    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'
9742
9743    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9744    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9745
9746    # If archive_cmds runs LD, not CC, wlarc should be empty
9747    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9748    #     investigate it a little bit more. (MM)
9749    wlarc='${wl}'
9750
9751    # ancient GNU ld didn't support --whole-archive et. al.
9752    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9753	grep 'no-whole-archive' > /dev/null; then
9754      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9755    else
9756      whole_archive_flag_spec_CXX=
9757    fi
9758  else
9759    with_gnu_ld=no
9760    wlarc=
9761
9762    # A generic and very simple default shared library creation
9763    # command for GNU C++ for the case where it uses the native
9764    # linker, instead of GNU ld.  If possible, this setting should
9765    # overridden to take advantage of the native linker features on
9766    # the platform it is being used on.
9767    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9768  fi
9769
9770  # Commands to make compiler produce verbose output that lists
9771  # what "hidden" libraries, object files and flags are used when
9772  # linking a shared library.
9773  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9774
9775else
9776  GXX=no
9777  with_gnu_ld=no
9778  wlarc=
9779fi
9780
9781# PORTME: fill in a description of your system's C++ link characteristics
9782echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9783echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9784ld_shlibs_CXX=yes
9785case $host_os in
9786  aix3*)
9787    # FIXME: insert proper C++ library support
9788    ld_shlibs_CXX=no
9789    ;;
9790  aix4* | aix5*)
9791    if test "$host_cpu" = ia64; then
9792      # On IA64, the linker does run time linking by default, so we don't
9793      # have to do anything special.
9794      aix_use_runtimelinking=no
9795      exp_sym_flag='-Bexport'
9796      no_entry_flag=""
9797    else
9798      aix_use_runtimelinking=no
9799
9800      # Test if we are trying to use run time linking or normal
9801      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9802      # need to do runtime linking.
9803      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9804	for ld_flag in $LDFLAGS; do
9805	  case $ld_flag in
9806	  *-brtl*)
9807	    aix_use_runtimelinking=yes
9808	    break
9809	    ;;
9810	  esac
9811	done
9812	;;
9813      esac
9814
9815      exp_sym_flag='-bexport'
9816      no_entry_flag='-bnoentry'
9817    fi
9818
9819    # When large executables or shared objects are built, AIX ld can
9820    # have problems creating the table of contents.  If linking a library
9821    # or program results in "error TOC overflow" add -mminimal-toc to
9822    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9823    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9824
9825    archive_cmds_CXX=''
9826    hardcode_direct_CXX=yes
9827    hardcode_libdir_separator_CXX=':'
9828    link_all_deplibs_CXX=yes
9829
9830    if test "$GXX" = yes; then
9831      case $host_os in aix4.[012]|aix4.[012].*)
9832      # We only want to do this on AIX 4.2 and lower, the check
9833      # below for broken collect2 doesn't work under 4.3+
9834	collect2name=`${CC} -print-prog-name=collect2`
9835	if test -f "$collect2name" && \
9836	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9837	then
9838	  # We have reworked collect2
9839	  hardcode_direct_CXX=yes
9840	else
9841	  # We have old collect2
9842	  hardcode_direct_CXX=unsupported
9843	  # It fails to find uninstalled libraries when the uninstalled
9844	  # path is not listed in the libpath.  Setting hardcode_minus_L
9845	  # to unsupported forces relinking
9846	  hardcode_minus_L_CXX=yes
9847	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9848	  hardcode_libdir_separator_CXX=
9849	fi
9850	;;
9851      esac
9852      shared_flag='-shared'
9853      if test "$aix_use_runtimelinking" = yes; then
9854	shared_flag="$shared_flag "'${wl}-G'
9855      fi
9856    else
9857      # not using gcc
9858      if test "$host_cpu" = ia64; then
9859	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9860	# chokes on -Wl,-G. The following line is correct:
9861	shared_flag='-G'
9862      else
9863	if test "$aix_use_runtimelinking" = yes; then
9864	  shared_flag='${wl}-G'
9865	else
9866	  shared_flag='${wl}-bM:SRE'
9867	fi
9868      fi
9869    fi
9870
9871    # It seems that -bexpall does not export symbols beginning with
9872    # underscore (_), so it is better to generate a list of symbols to export.
9873    always_export_symbols_CXX=yes
9874    if test "$aix_use_runtimelinking" = yes; then
9875      # Warning - without using the other runtime loading flags (-brtl),
9876      # -berok will link without error, but may produce a broken library.
9877      allow_undefined_flag_CXX='-berok'
9878      # Determine the default libpath from the value encoded in an empty executable.
9879      cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h.  */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h.  */
9885
9886int
9887main ()
9888{
9889
9890  ;
9891  return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext conftest$ac_exeext
9895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896  (eval $ac_link) 2>conftest.er1
9897  ac_status=$?
9898  grep -v '^ *+' conftest.er1 >conftest.err
9899  rm -f conftest.er1
9900  cat conftest.err >&5
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); } &&
9903	 { ac_try='test -z "$ac_cxx_werror_flag"
9904			 || test ! -s conftest.err'
9905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906  (eval $ac_try) 2>&5
9907  ac_status=$?
9908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909  (exit $ac_status); }; } &&
9910	 { ac_try='test -s conftest$ac_exeext'
9911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912  (eval $ac_try) 2>&5
9913  ac_status=$?
9914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915  (exit $ac_status); }; }; then
9916
9917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9918}'`
9919# Check for a 64-bit object if we didn't find anything.
9920if 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; }
9921}'`; fi
9922else
9923  echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926fi
9927rm -f conftest.err conftest.$ac_objext \
9928      conftest$ac_exeext conftest.$ac_ext
9929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9930
9931      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9932
9933      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"
9934     else
9935      if test "$host_cpu" = ia64; then
9936	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9937	allow_undefined_flag_CXX="-z nodefs"
9938	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"
9939      else
9940	# Determine the default libpath from the value encoded in an empty executable.
9941	cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h.  */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h.  */
9947
9948int
9949main ()
9950{
9951
9952  ;
9953  return 0;
9954}
9955_ACEOF
9956rm -f conftest.$ac_objext conftest$ac_exeext
9957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958  (eval $ac_link) 2>conftest.er1
9959  ac_status=$?
9960  grep -v '^ *+' conftest.er1 >conftest.err
9961  rm -f conftest.er1
9962  cat conftest.err >&5
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); } &&
9965	 { ac_try='test -z "$ac_cxx_werror_flag"
9966			 || test ! -s conftest.err'
9967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968  (eval $ac_try) 2>&5
9969  ac_status=$?
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); }; } &&
9972	 { ac_try='test -s conftest$ac_exeext'
9973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974  (eval $ac_try) 2>&5
9975  ac_status=$?
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); }; }; then
9978
9979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9980}'`
9981# Check for a 64-bit object if we didn't find anything.
9982if 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; }
9983}'`; fi
9984else
9985  echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988fi
9989rm -f conftest.err conftest.$ac_objext \
9990      conftest$ac_exeext conftest.$ac_ext
9991if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9992
9993	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9994	# Warning - without using the other run time loading flags,
9995	# -berok will link without error, but may produce a broken library.
9996	no_undefined_flag_CXX=' ${wl}-bernotok'
9997	allow_undefined_flag_CXX=' ${wl}-berok'
9998	# Exported symbols can be pulled into shared objects from archives
9999	whole_archive_flag_spec_CXX='$convenience'
10000	archive_cmds_need_lc_CXX=yes
10001	# This is similar to how AIX traditionally builds its shared libraries.
10002	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'
10003      fi
10004    fi
10005    ;;
10006
10007  beos*)
10008    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10009      allow_undefined_flag_CXX=unsupported
10010      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10011      # support --undefined.  This deserves some investigation.  FIXME
10012      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013    else
10014      ld_shlibs_CXX=no
10015    fi
10016    ;;
10017
10018  chorus*)
10019    case $cc_basename in
10020      *)
10021	# FIXME: insert proper C++ library support
10022	ld_shlibs_CXX=no
10023	;;
10024    esac
10025    ;;
10026
10027  cygwin* | mingw* | pw32*)
10028    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10029    # as there is no search path for DLLs.
10030    hardcode_libdir_flag_spec_CXX='-L$libdir'
10031    allow_undefined_flag_CXX=unsupported
10032    always_export_symbols_CXX=no
10033    enable_shared_with_static_runtimes_CXX=yes
10034
10035    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10036      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'
10037      # If the export-symbols file already is a .def file (1st line
10038      # is EXPORTS), use it as is; otherwise, prepend...
10039      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10040	cp $export_symbols $output_objdir/$soname.def;
10041      else
10042	echo EXPORTS > $output_objdir/$soname.def;
10043	cat $export_symbols >> $output_objdir/$soname.def;
10044      fi~
10045      $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'
10046    else
10047      ld_shlibs_CXX=no
10048    fi
10049  ;;
10050      darwin* | rhapsody*)
10051        case $host_os in
10052        rhapsody* | darwin1.[012])
10053         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10054         ;;
10055       *) # Darwin 1.3 on
10056         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10057           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10058         else
10059           case ${MACOSX_DEPLOYMENT_TARGET} in
10060             10.[012])
10061               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10062               ;;
10063             10.*)
10064               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10065               ;;
10066           esac
10067         fi
10068         ;;
10069        esac
10070      archive_cmds_need_lc_CXX=no
10071      hardcode_direct_CXX=no
10072      hardcode_automatic_CXX=yes
10073      hardcode_shlibpath_var_CXX=unsupported
10074      whole_archive_flag_spec_CXX=''
10075      link_all_deplibs_CXX=yes
10076
10077    if test "$GXX" = yes ; then
10078      lt_int_apple_cc_single_mod=no
10079      output_verbose_link_cmd='echo'
10080      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10081       lt_int_apple_cc_single_mod=yes
10082      fi
10083      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10084       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10085      else
10086          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'
10087        fi
10088        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10089        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10090          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10091            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}'
10092          else
10093            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}'
10094          fi
10095            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}'
10096      else
10097      case $cc_basename in
10098        xlc*)
10099         output_verbose_link_cmd='echo'
10100          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'
10101          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10102          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10103          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}'
10104          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}'
10105          ;;
10106       *)
10107         ld_shlibs_CXX=no
10108          ;;
10109      esac
10110      fi
10111        ;;
10112
10113  dgux*)
10114    case $cc_basename in
10115      ec++*)
10116	# FIXME: insert proper C++ library support
10117	ld_shlibs_CXX=no
10118	;;
10119      ghcx*)
10120	# Green Hills C++ Compiler
10121	# FIXME: insert proper C++ library support
10122	ld_shlibs_CXX=no
10123	;;
10124      *)
10125	# FIXME: insert proper C++ library support
10126	ld_shlibs_CXX=no
10127	;;
10128    esac
10129    ;;
10130  freebsd[12]*)
10131    # C++ shared libraries reported to be fairly broken before switch to ELF
10132    ld_shlibs_CXX=no
10133    ;;
10134  freebsd-elf*)
10135    archive_cmds_need_lc_CXX=no
10136    ;;
10137  freebsd* | kfreebsd*-gnu | dragonfly*)
10138    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10139    # conventions
10140    ld_shlibs_CXX=yes
10141    ;;
10142  gnu*)
10143    ;;
10144  hpux9*)
10145    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10146    hardcode_libdir_separator_CXX=:
10147    export_dynamic_flag_spec_CXX='${wl}-E'
10148    hardcode_direct_CXX=yes
10149    hardcode_minus_L_CXX=yes # Not in the search PATH,
10150				# but as the default
10151				# location of the library.
10152
10153    case $cc_basename in
10154    CC*)
10155      # FIXME: insert proper C++ library support
10156      ld_shlibs_CXX=no
10157      ;;
10158    aCC*)
10159      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'
10160      # Commands to make compiler produce verbose output that lists
10161      # what "hidden" libraries, object files and flags are used when
10162      # linking a shared library.
10163      #
10164      # There doesn't appear to be a way to prevent this compiler from
10165      # explicitly linking system object files so we need to strip them
10166      # from the output so that they don't get included in the library
10167      # dependencies.
10168      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'
10169      ;;
10170    *)
10171      if test "$GXX" = yes; then
10172        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'
10173      else
10174        # FIXME: insert proper C++ library support
10175        ld_shlibs_CXX=no
10176      fi
10177      ;;
10178    esac
10179    ;;
10180  hpux10*|hpux11*)
10181    if test $with_gnu_ld = no; then
10182      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10183      hardcode_libdir_separator_CXX=:
10184
10185      case $host_cpu in
10186      hppa*64*|ia64*)
10187	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10188        ;;
10189      *)
10190	export_dynamic_flag_spec_CXX='${wl}-E'
10191        ;;
10192      esac
10193    fi
10194    case $host_cpu in
10195    hppa*64*|ia64*)
10196      hardcode_direct_CXX=no
10197      hardcode_shlibpath_var_CXX=no
10198      ;;
10199    *)
10200      hardcode_direct_CXX=yes
10201      hardcode_minus_L_CXX=yes # Not in the search PATH,
10202					      # but as the default
10203					      # location of the library.
10204      ;;
10205    esac
10206
10207    case $cc_basename in
10208      CC*)
10209	# FIXME: insert proper C++ library support
10210	ld_shlibs_CXX=no
10211	;;
10212      aCC*)
10213	case $host_cpu in
10214	hppa*64*)
10215	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10216	  ;;
10217	ia64*)
10218	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10219	  ;;
10220	*)
10221	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10222	  ;;
10223	esac
10224	# Commands to make compiler produce verbose output that lists
10225	# what "hidden" libraries, object files and flags are used when
10226	# linking a shared library.
10227	#
10228	# There doesn't appear to be a way to prevent this compiler from
10229	# explicitly linking system object files so we need to strip them
10230	# from the output so that they don't get included in the library
10231	# dependencies.
10232	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'
10233	;;
10234      *)
10235	if test "$GXX" = yes; then
10236	  if test $with_gnu_ld = no; then
10237	    case $host_cpu in
10238	    hppa*64*)
10239	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10240	      ;;
10241	    ia64*)
10242	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10243	      ;;
10244	    *)
10245	      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'
10246	      ;;
10247	    esac
10248	  fi
10249	else
10250	  # FIXME: insert proper C++ library support
10251	  ld_shlibs_CXX=no
10252	fi
10253	;;
10254    esac
10255    ;;
10256  interix3*)
10257    hardcode_direct_CXX=no
10258    hardcode_shlibpath_var_CXX=no
10259    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10260    export_dynamic_flag_spec_CXX='${wl}-E'
10261    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10262    # Instead, shared libraries are loaded at an image base (0x10000000 by
10263    # default) and relocated if they conflict, which is a slow very memory
10264    # consuming and fragmenting process.  To avoid this, we pick a random,
10265    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10266    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10267    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'
10268    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'
10269    ;;
10270  irix5* | irix6*)
10271    case $cc_basename in
10272      CC*)
10273	# SGI C++
10274	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'
10275
10276	# Archives containing C++ object files must be created using
10277	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10278	# necessary to make sure instantiated templates are included
10279	# in the archive.
10280	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10281	;;
10282      *)
10283	if test "$GXX" = yes; then
10284	  if test "$with_gnu_ld" = no; then
10285	    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'
10286	  else
10287	    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'
10288	  fi
10289	fi
10290	link_all_deplibs_CXX=yes
10291	;;
10292    esac
10293    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10294    hardcode_libdir_separator_CXX=:
10295    ;;
10296  linux*)
10297    case $cc_basename in
10298      KCC*)
10299	# Kuck and Associates, Inc. (KAI) C++ Compiler
10300
10301	# KCC will only create a shared library if the output file
10302	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10303	# to its proper name (with version) after linking.
10304	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'
10305	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'
10306	# Commands to make compiler produce verbose output that lists
10307	# what "hidden" libraries, object files and flags are used when
10308	# linking a shared library.
10309	#
10310	# There doesn't appear to be a way to prevent this compiler from
10311	# explicitly linking system object files so we need to strip them
10312	# from the output so that they don't get included in the library
10313	# dependencies.
10314	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'
10315
10316	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10317	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10318
10319	# Archives containing C++ object files must be created using
10320	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10321	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10322	;;
10323      icpc*)
10324	# Intel C++
10325	with_gnu_ld=yes
10326	# version 8.0 and above of icpc choke on multiply defined symbols
10327	# if we add $predep_objects and $postdep_objects, however 7.1 and
10328	# earlier do not add the objects themselves.
10329	case `$CC -V 2>&1` in
10330	*"Version 7."*)
10331  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10332  	  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'
10333	  ;;
10334	*)  # Version 8.0 or newer
10335	  tmp_idyn=
10336	  case $host_cpu in
10337	    ia64*) tmp_idyn=' -i_dynamic';;
10338	  esac
10339  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10340	  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'
10341	  ;;
10342	esac
10343	archive_cmds_need_lc_CXX=no
10344	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10345	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10346	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10347	;;
10348      pgCC*)
10349        # Portland Group C++ compiler
10350	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10351  	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'
10352
10353	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10354	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10355	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'
10356        ;;
10357      cxx*)
10358	# Compaq C++
10359	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10360	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'
10361
10362	runpath_var=LD_RUN_PATH
10363	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10364	hardcode_libdir_separator_CXX=:
10365
10366	# Commands to make compiler produce verbose output that lists
10367	# what "hidden" libraries, object files and flags are used when
10368	# linking a shared library.
10369	#
10370	# There doesn't appear to be a way to prevent this compiler from
10371	# explicitly linking system object files so we need to strip them
10372	# from the output so that they don't get included in the library
10373	# dependencies.
10374	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'
10375	;;
10376    esac
10377    ;;
10378  lynxos*)
10379    # FIXME: insert proper C++ library support
10380    ld_shlibs_CXX=no
10381    ;;
10382  m88k*)
10383    # FIXME: insert proper C++ library support
10384    ld_shlibs_CXX=no
10385    ;;
10386  mvs*)
10387    case $cc_basename in
10388      cxx*)
10389	# FIXME: insert proper C++ library support
10390	ld_shlibs_CXX=no
10391	;;
10392      *)
10393	# FIXME: insert proper C++ library support
10394	ld_shlibs_CXX=no
10395	;;
10396    esac
10397    ;;
10398  netbsd*)
10399    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10400      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10401      wlarc=
10402      hardcode_libdir_flag_spec_CXX='-R$libdir'
10403      hardcode_direct_CXX=yes
10404      hardcode_shlibpath_var_CXX=no
10405    fi
10406    # Workaround some broken pre-1.5 toolchains
10407    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10408    ;;
10409  openbsd2*)
10410    # C++ shared libraries are fairly broken
10411    ld_shlibs_CXX=no
10412    ;;
10413  openbsd*)
10414    hardcode_direct_CXX=yes
10415    hardcode_shlibpath_var_CXX=no
10416    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10417    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10418    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10419      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10420      export_dynamic_flag_spec_CXX='${wl}-E'
10421      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10422    fi
10423    output_verbose_link_cmd='echo'
10424    ;;
10425  osf3*)
10426    case $cc_basename in
10427      KCC*)
10428	# Kuck and Associates, Inc. (KAI) C++ Compiler
10429
10430	# KCC will only create a shared library if the output file
10431	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10432	# to its proper name (with version) after linking.
10433	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'
10434
10435	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10436	hardcode_libdir_separator_CXX=:
10437
10438	# Archives containing C++ object files must be created using
10439	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10440	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10441
10442	;;
10443      RCC*)
10444	# Rational C++ 2.4.1
10445	# FIXME: insert proper C++ library support
10446	ld_shlibs_CXX=no
10447	;;
10448      cxx*)
10449	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10450	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'
10451
10452	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10453	hardcode_libdir_separator_CXX=:
10454
10455	# Commands to make compiler produce verbose output that lists
10456	# what "hidden" libraries, object files and flags are used when
10457	# linking a shared library.
10458	#
10459	# There doesn't appear to be a way to prevent this compiler from
10460	# explicitly linking system object files so we need to strip them
10461	# from the output so that they don't get included in the library
10462	# dependencies.
10463	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'
10464	;;
10465      *)
10466	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10467	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10468	  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'
10469
10470	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10471	  hardcode_libdir_separator_CXX=:
10472
10473	  # Commands to make compiler produce verbose output that lists
10474	  # what "hidden" libraries, object files and flags are used when
10475	  # linking a shared library.
10476	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10477
10478	else
10479	  # FIXME: insert proper C++ library support
10480	  ld_shlibs_CXX=no
10481	fi
10482	;;
10483    esac
10484    ;;
10485  osf4* | osf5*)
10486    case $cc_basename in
10487      KCC*)
10488	# Kuck and Associates, Inc. (KAI) C++ Compiler
10489
10490	# KCC will only create a shared library if the output file
10491	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10492	# to its proper name (with version) after linking.
10493	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'
10494
10495	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10496	hardcode_libdir_separator_CXX=:
10497
10498	# Archives containing C++ object files must be created using
10499	# the KAI C++ compiler.
10500	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10501	;;
10502      RCC*)
10503	# Rational C++ 2.4.1
10504	# FIXME: insert proper C++ library support
10505	ld_shlibs_CXX=no
10506	;;
10507      cxx*)
10508	allow_undefined_flag_CXX=' -expect_unresolved \*'
10509	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'
10510	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10511	  echo "-hidden">> $lib.exp~
10512	  $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~
10513	  $rm $lib.exp'
10514
10515	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10516	hardcode_libdir_separator_CXX=:
10517
10518	# Commands to make compiler produce verbose output that lists
10519	# what "hidden" libraries, object files and flags are used when
10520	# linking a shared library.
10521	#
10522	# There doesn't appear to be a way to prevent this compiler from
10523	# explicitly linking system object files so we need to strip them
10524	# from the output so that they don't get included in the library
10525	# dependencies.
10526	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'
10527	;;
10528      *)
10529	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10530	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10531	 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'
10532
10533	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10534	  hardcode_libdir_separator_CXX=:
10535
10536	  # Commands to make compiler produce verbose output that lists
10537	  # what "hidden" libraries, object files and flags are used when
10538	  # linking a shared library.
10539	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10540
10541	else
10542	  # FIXME: insert proper C++ library support
10543	  ld_shlibs_CXX=no
10544	fi
10545	;;
10546    esac
10547    ;;
10548  psos*)
10549    # FIXME: insert proper C++ library support
10550    ld_shlibs_CXX=no
10551    ;;
10552  sunos4*)
10553    case $cc_basename in
10554      CC*)
10555	# Sun C++ 4.x
10556	# FIXME: insert proper C++ library support
10557	ld_shlibs_CXX=no
10558	;;
10559      lcc*)
10560	# Lucid
10561	# FIXME: insert proper C++ library support
10562	ld_shlibs_CXX=no
10563	;;
10564      *)
10565	# FIXME: insert proper C++ library support
10566	ld_shlibs_CXX=no
10567	;;
10568    esac
10569    ;;
10570  solaris*)
10571    case $cc_basename in
10572      CC*)
10573	# Sun C++ 4.2, 5.x and Centerline C++
10574        archive_cmds_need_lc_CXX=yes
10575	no_undefined_flag_CXX=' -zdefs'
10576	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10577	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10578	$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'
10579
10580	hardcode_libdir_flag_spec_CXX='-R$libdir'
10581	hardcode_shlibpath_var_CXX=no
10582	case $host_os in
10583	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10584	  *)
10585	    # The C++ compiler is used as linker so we must use $wl
10586	    # flag to pass the commands to the underlying system
10587	    # linker. We must also pass each convience library through
10588	    # to the system linker between allextract/defaultextract.
10589	    # The C++ compiler will combine linker options so we
10590	    # cannot just pass the convience library names through
10591	    # without $wl.
10592	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10593	    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'
10594	    ;;
10595	esac
10596	link_all_deplibs_CXX=yes
10597
10598	output_verbose_link_cmd='echo'
10599
10600	# Archives containing C++ object files must be created using
10601	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10602	# necessary to make sure instantiated templates are included
10603	# in the archive.
10604	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10605	;;
10606      gcx*)
10607	# Green Hills C++ Compiler
10608	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10609
10610	# The C++ compiler must be used to create the archive.
10611	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10612	;;
10613      *)
10614	# GNU C++ compiler with Solaris linker
10615	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10616	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10617	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10618	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10619	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10620		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10621
10622	    # Commands to make compiler produce verbose output that lists
10623	    # what "hidden" libraries, object files and flags are used when
10624	    # linking a shared library.
10625	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10626	  else
10627	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10628	    # platform.
10629	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10630	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10631		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10632
10633	    # Commands to make compiler produce verbose output that lists
10634	    # what "hidden" libraries, object files and flags are used when
10635	    # linking a shared library.
10636	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10637	  fi
10638
10639	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10640	fi
10641	;;
10642    esac
10643    ;;
10644  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10645    no_undefined_flag_CXX='${wl}-z,text'
10646    archive_cmds_need_lc_CXX=no
10647    hardcode_shlibpath_var_CXX=no
10648    runpath_var='LD_RUN_PATH'
10649
10650    case $cc_basename in
10651      CC*)
10652	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654	;;
10655      *)
10656	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10658	;;
10659    esac
10660    ;;
10661  sysv5* | sco3.2v5* | sco5v6*)
10662    # Note: We can NOT use -z defs as we might desire, because we do not
10663    # link with -lc, and that would cause any symbols used from libc to
10664    # always be unresolved, which means just about no library would
10665    # ever link correctly.  If we're not using GNU ld we use -z text
10666    # though, which does catch some bad symbols but isn't as heavy-handed
10667    # as -z defs.
10668    # For security reasons, it is highly recommended that you always
10669    # use absolute paths for naming shared libraries, and exclude the
10670    # DT_RUNPATH tag from executables and libraries.  But doing so
10671    # requires that you compile everything twice, which is a pain.
10672    # So that behaviour is only enabled if SCOABSPATH is set to a
10673    # non-empty value in the environment.  Most likely only useful for
10674    # creating official distributions of packages.
10675    # This is a hack until libtool officially supports absolute path
10676    # names for shared libraries.
10677    no_undefined_flag_CXX='${wl}-z,text'
10678    allow_undefined_flag_CXX='${wl}-z,nodefs'
10679    archive_cmds_need_lc_CXX=no
10680    hardcode_shlibpath_var_CXX=no
10681    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10682    hardcode_libdir_separator_CXX=':'
10683    link_all_deplibs_CXX=yes
10684    export_dynamic_flag_spec_CXX='${wl}-Bexport'
10685    runpath_var='LD_RUN_PATH'
10686
10687    case $cc_basename in
10688      CC*)
10689	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10690	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10691	;;
10692      *)
10693	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10694	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10695	;;
10696    esac
10697    ;;
10698  tandem*)
10699    case $cc_basename in
10700      NCC*)
10701	# NonStop-UX NCC 3.20
10702	# FIXME: insert proper C++ library support
10703	ld_shlibs_CXX=no
10704	;;
10705      *)
10706	# FIXME: insert proper C++ library support
10707	ld_shlibs_CXX=no
10708	;;
10709    esac
10710    ;;
10711  vxworks*)
10712    # FIXME: insert proper C++ library support
10713    ld_shlibs_CXX=no
10714    ;;
10715  *)
10716    # FIXME: insert proper C++ library support
10717    ld_shlibs_CXX=no
10718    ;;
10719esac
10720echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10721echo "${ECHO_T}$ld_shlibs_CXX" >&6
10722test "$ld_shlibs_CXX" = no && can_build_shared=no
10723
10724GCC_CXX="$GXX"
10725LD_CXX="$LD"
10726
10727
10728cat > conftest.$ac_ext <<EOF
10729class Foo
10730{
10731public:
10732  Foo (void) { a = 0; }
10733private:
10734  int a;
10735};
10736EOF
10737
10738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739  (eval $ac_compile) 2>&5
10740  ac_status=$?
10741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742  (exit $ac_status); }; then
10743  # Parse the compiler output and extract the necessary
10744  # objects, libraries and library flags.
10745
10746  # Sentinel used to keep track of whether or not we are before
10747  # the conftest object file.
10748  pre_test_object_deps_done=no
10749
10750  # The `*' in the case matches for architectures that use `case' in
10751  # $output_verbose_cmd can trigger glob expansion during the loop
10752  # eval without this substitution.
10753  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10754
10755  for p in `eval $output_verbose_link_cmd`; do
10756    case $p in
10757
10758    -L* | -R* | -l*)
10759       # Some compilers place space between "-{L,R}" and the path.
10760       # Remove the space.
10761       if test $p = "-L" \
10762	  || test $p = "-R"; then
10763	 prev=$p
10764	 continue
10765       else
10766	 prev=
10767       fi
10768
10769       if test "$pre_test_object_deps_done" = no; then
10770	 case $p in
10771	 -L* | -R*)
10772	   # Internal compiler library paths should come after those
10773	   # provided the user.  The postdeps already come after the
10774	   # user supplied libs so there is no need to process them.
10775	   if test -z "$compiler_lib_search_path_CXX"; then
10776	     compiler_lib_search_path_CXX="${prev}${p}"
10777	   else
10778	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10779	   fi
10780	   ;;
10781	 # The "-l" case would never come before the object being
10782	 # linked, so don't bother handling this case.
10783	 esac
10784       else
10785	 if test -z "$postdeps_CXX"; then
10786	   postdeps_CXX="${prev}${p}"
10787	 else
10788	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10789	 fi
10790       fi
10791       ;;
10792
10793    *.$objext)
10794       # This assumes that the test object file only shows up
10795       # once in the compiler output.
10796       if test "$p" = "conftest.$objext"; then
10797	 pre_test_object_deps_done=yes
10798	 continue
10799       fi
10800
10801       if test "$pre_test_object_deps_done" = no; then
10802	 if test -z "$predep_objects_CXX"; then
10803	   predep_objects_CXX="$p"
10804	 else
10805	   predep_objects_CXX="$predep_objects_CXX $p"
10806	 fi
10807       else
10808	 if test -z "$postdep_objects_CXX"; then
10809	   postdep_objects_CXX="$p"
10810	 else
10811	   postdep_objects_CXX="$postdep_objects_CXX $p"
10812	 fi
10813       fi
10814       ;;
10815
10816    *) ;; # Ignore the rest.
10817
10818    esac
10819  done
10820
10821  # Clean up.
10822  rm -f a.out a.exe
10823else
10824  echo "libtool.m4: error: problem compiling CXX test program"
10825fi
10826
10827$rm -f confest.$objext
10828
10829# PORTME: override above test on systems where it is broken
10830case $host_os in
10831interix3*)
10832  # Interix 3.5 installs completely hosed .la files for C++, so rather than
10833  # hack all around it, let's just trust "g++" to DTRT.
10834  predep_objects_CXX=
10835  postdep_objects_CXX=
10836  postdeps_CXX=
10837  ;;
10838
10839solaris*)
10840  case $cc_basename in
10841  CC*)
10842    # Adding this requires a known-good setup of shared libraries for
10843    # Sun compiler versions before 5.6, else PIC objects from an old
10844    # archive will be linked into the output, leading to subtle bugs.
10845    postdeps_CXX='-lCstd -lCrun'
10846    ;;
10847  esac
10848  ;;
10849esac
10850
10851
10852case " $postdeps_CXX " in
10853*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10854esac
10855
10856lt_prog_compiler_wl_CXX=
10857lt_prog_compiler_pic_CXX=
10858lt_prog_compiler_static_CXX=
10859
10860echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10861echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10862
10863  # C++ specific cases for pic, static, wl, etc.
10864  if test "$GXX" = yes; then
10865    lt_prog_compiler_wl_CXX='-Wl,'
10866    lt_prog_compiler_static_CXX='-static'
10867
10868    case $host_os in
10869    aix*)
10870      # All AIX code is PIC.
10871      if test "$host_cpu" = ia64; then
10872	# AIX 5 now supports IA64 processor
10873	lt_prog_compiler_static_CXX='-Bstatic'
10874      fi
10875      ;;
10876    amigaos*)
10877      # FIXME: we need at least 68020 code to build shared libraries, but
10878      # adding the `-m68020' flag to GCC prevents building anything better,
10879      # like `-m68040'.
10880      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10881      ;;
10882    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10883      # PIC is the default for these OSes.
10884      ;;
10885    mingw* | os2* | pw32*)
10886      # This hack is so that the source file can tell whether it is being
10887      # built for inclusion in a dll (and should export symbols for example).
10888      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10889      ;;
10890    darwin* | rhapsody*)
10891      # PIC is the default on this platform
10892      # Common symbols not allowed in MH_DYLIB files
10893      lt_prog_compiler_pic_CXX='-fno-common'
10894      ;;
10895    *djgpp*)
10896      # DJGPP does not support shared libraries at all
10897      lt_prog_compiler_pic_CXX=
10898      ;;
10899    interix3*)
10900      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10901      # Instead, we relocate shared libraries at runtime.
10902      ;;
10903    sysv4*MP*)
10904      if test -d /usr/nec; then
10905	lt_prog_compiler_pic_CXX=-Kconform_pic
10906      fi
10907      ;;
10908    hpux*)
10909      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10910      # not for PA HP-UX.
10911      case $host_cpu in
10912      hppa*64*|ia64*)
10913	;;
10914      *)
10915	lt_prog_compiler_pic_CXX='-fPIC'
10916	;;
10917      esac
10918      ;;
10919    *)
10920      lt_prog_compiler_pic_CXX='-fPIC'
10921      ;;
10922    esac
10923  else
10924    case $host_os in
10925      aix4* | aix5*)
10926	# All AIX code is PIC.
10927	if test "$host_cpu" = ia64; then
10928	  # AIX 5 now supports IA64 processor
10929	  lt_prog_compiler_static_CXX='-Bstatic'
10930	else
10931	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10932	fi
10933	;;
10934      chorus*)
10935	case $cc_basename in
10936	cxch68*)
10937	  # Green Hills C++ Compiler
10938	  # _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"
10939	  ;;
10940	esac
10941	;;
10942       darwin*)
10943         # PIC is the default on this platform
10944         # Common symbols not allowed in MH_DYLIB files
10945         case $cc_basename in
10946           xlc*)
10947           lt_prog_compiler_pic_CXX='-qnocommon'
10948           lt_prog_compiler_wl_CXX='-Wl,'
10949           ;;
10950         esac
10951       ;;
10952      dgux*)
10953	case $cc_basename in
10954	  ec++*)
10955	    lt_prog_compiler_pic_CXX='-KPIC'
10956	    ;;
10957	  ghcx*)
10958	    # Green Hills C++ Compiler
10959	    lt_prog_compiler_pic_CXX='-pic'
10960	    ;;
10961	  *)
10962	    ;;
10963	esac
10964	;;
10965      freebsd* | kfreebsd*-gnu | dragonfly*)
10966	# FreeBSD uses GNU C++
10967	;;
10968      hpux9* | hpux10* | hpux11*)
10969	case $cc_basename in
10970	  CC*)
10971	    lt_prog_compiler_wl_CXX='-Wl,'
10972	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10973	    if test "$host_cpu" != ia64; then
10974	      lt_prog_compiler_pic_CXX='+Z'
10975	    fi
10976	    ;;
10977	  aCC*)
10978	    lt_prog_compiler_wl_CXX='-Wl,'
10979	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10980	    case $host_cpu in
10981	    hppa*64*|ia64*)
10982	      # +Z the default
10983	      ;;
10984	    *)
10985	      lt_prog_compiler_pic_CXX='+Z'
10986	      ;;
10987	    esac
10988	    ;;
10989	  *)
10990	    ;;
10991	esac
10992	;;
10993      interix*)
10994	# This is c89, which is MS Visual C++ (no shared libs)
10995	# Anyone wants to do a port?
10996	;;
10997      irix5* | irix6* | nonstopux*)
10998	case $cc_basename in
10999	  CC*)
11000	    lt_prog_compiler_wl_CXX='-Wl,'
11001	    lt_prog_compiler_static_CXX='-non_shared'
11002	    # CC pic flag -KPIC is the default.
11003	    ;;
11004	  *)
11005	    ;;
11006	esac
11007	;;
11008      linux*)
11009	case $cc_basename in
11010	  KCC*)
11011	    # KAI C++ Compiler
11012	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11013	    lt_prog_compiler_pic_CXX='-fPIC'
11014	    ;;
11015	  icpc* | ecpc*)
11016	    # Intel C++
11017	    lt_prog_compiler_wl_CXX='-Wl,'
11018	    lt_prog_compiler_pic_CXX='-KPIC'
11019	    lt_prog_compiler_static_CXX='-static'
11020	    ;;
11021	  pgCC*)
11022	    # Portland Group C++ compiler.
11023	    lt_prog_compiler_wl_CXX='-Wl,'
11024	    lt_prog_compiler_pic_CXX='-fpic'
11025	    lt_prog_compiler_static_CXX='-Bstatic'
11026	    ;;
11027	  cxx*)
11028	    # Compaq C++
11029	    # Make sure the PIC flag is empty.  It appears that all Alpha
11030	    # Linux and Compaq Tru64 Unix objects are PIC.
11031	    lt_prog_compiler_pic_CXX=
11032	    lt_prog_compiler_static_CXX='-non_shared'
11033	    ;;
11034	  *)
11035	    ;;
11036	esac
11037	;;
11038      lynxos*)
11039	;;
11040      m88k*)
11041	;;
11042      mvs*)
11043	case $cc_basename in
11044	  cxx*)
11045	    lt_prog_compiler_pic_CXX='-W c,exportall'
11046	    ;;
11047	  *)
11048	    ;;
11049	esac
11050	;;
11051      netbsd*)
11052	;;
11053      osf3* | osf4* | osf5*)
11054	case $cc_basename in
11055	  KCC*)
11056	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11057	    ;;
11058	  RCC*)
11059	    # Rational C++ 2.4.1
11060	    lt_prog_compiler_pic_CXX='-pic'
11061	    ;;
11062	  cxx*)
11063	    # Digital/Compaq C++
11064	    lt_prog_compiler_wl_CXX='-Wl,'
11065	    # Make sure the PIC flag is empty.  It appears that all Alpha
11066	    # Linux and Compaq Tru64 Unix objects are PIC.
11067	    lt_prog_compiler_pic_CXX=
11068	    lt_prog_compiler_static_CXX='-non_shared'
11069	    ;;
11070	  *)
11071	    ;;
11072	esac
11073	;;
11074      psos*)
11075	;;
11076      solaris*)
11077	case $cc_basename in
11078	  CC*)
11079	    # Sun C++ 4.2, 5.x and Centerline C++
11080	    lt_prog_compiler_pic_CXX='-KPIC'
11081	    lt_prog_compiler_static_CXX='-Bstatic'
11082	    lt_prog_compiler_wl_CXX='-Qoption ld '
11083	    ;;
11084	  gcx*)
11085	    # Green Hills C++ Compiler
11086	    lt_prog_compiler_pic_CXX='-PIC'
11087	    ;;
11088	  *)
11089	    ;;
11090	esac
11091	;;
11092      sunos4*)
11093	case $cc_basename in
11094	  CC*)
11095	    # Sun C++ 4.x
11096	    lt_prog_compiler_pic_CXX='-pic'
11097	    lt_prog_compiler_static_CXX='-Bstatic'
11098	    ;;
11099	  lcc*)
11100	    # Lucid
11101	    lt_prog_compiler_pic_CXX='-pic'
11102	    ;;
11103	  *)
11104	    ;;
11105	esac
11106	;;
11107      tandem*)
11108	case $cc_basename in
11109	  NCC*)
11110	    # NonStop-UX NCC 3.20
11111	    lt_prog_compiler_pic_CXX='-KPIC'
11112	    ;;
11113	  *)
11114	    ;;
11115	esac
11116	;;
11117      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11118	case $cc_basename in
11119	  CC*)
11120	    lt_prog_compiler_wl_CXX='-Wl,'
11121	    lt_prog_compiler_pic_CXX='-KPIC'
11122	    lt_prog_compiler_static_CXX='-Bstatic'
11123	    ;;
11124	esac
11125	;;
11126      vxworks*)
11127	;;
11128      *)
11129	lt_prog_compiler_can_build_shared_CXX=no
11130	;;
11131    esac
11132  fi
11133
11134echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11135echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11136
11137#
11138# Check to make sure the PIC flag actually works.
11139#
11140if test -n "$lt_prog_compiler_pic_CXX"; then
11141
11142echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11143echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11144if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11145  echo $ECHO_N "(cached) $ECHO_C" >&6
11146else
11147  lt_prog_compiler_pic_works_CXX=no
11148  ac_outfile=conftest.$ac_objext
11149   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11150   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11151   # Insert the option either (1) after the last *FLAGS variable, or
11152   # (2) before a word containing "conftest.", or (3) at the end.
11153   # Note that $ac_compile itself does not contain backslashes and begins
11154   # with a dollar sign (not a hyphen), so the echo should work correctly.
11155   # The option is referenced via a variable to avoid confusing sed.
11156   lt_compile=`echo "$ac_compile" | $SED \
11157   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11158   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11159   -e 's:$: $lt_compiler_flag:'`
11160   (eval echo "\"\$as_me:11160: $lt_compile\"" >&5)
11161   (eval "$lt_compile" 2>conftest.err)
11162   ac_status=$?
11163   cat conftest.err >&5
11164   echo "$as_me:11164: \$? = $ac_status" >&5
11165   if (exit $ac_status) && test -s "$ac_outfile"; then
11166     # The compiler can only warn and ignore the option if not recognized
11167     # So say no if there are warnings other than the usual output.
11168     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11169     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11170     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11171       lt_prog_compiler_pic_works_CXX=yes
11172     fi
11173   fi
11174   $rm conftest*
11175
11176fi
11177echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11178echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11179
11180if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11181    case $lt_prog_compiler_pic_CXX in
11182     "" | " "*) ;;
11183     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11184     esac
11185else
11186    lt_prog_compiler_pic_CXX=
11187     lt_prog_compiler_can_build_shared_CXX=no
11188fi
11189
11190fi
11191case $host_os in
11192  # For platforms which do not support PIC, -DPIC is meaningless:
11193  *djgpp*)
11194    lt_prog_compiler_pic_CXX=
11195    ;;
11196  *)
11197    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11198    ;;
11199esac
11200
11201#
11202# Check to make sure the static flag actually works.
11203#
11204wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11205echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11206echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11207if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11208  echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210  lt_prog_compiler_static_works_CXX=no
11211   save_LDFLAGS="$LDFLAGS"
11212   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11213   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11214   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11215     # The linker can only warn and ignore the option if not recognized
11216     # So say no if there are warnings
11217     if test -s conftest.err; then
11218       # Append any errors to the config.log.
11219       cat conftest.err 1>&5
11220       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11221       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11222       if diff conftest.exp conftest.er2 >/dev/null; then
11223         lt_prog_compiler_static_works_CXX=yes
11224       fi
11225     else
11226       lt_prog_compiler_static_works_CXX=yes
11227     fi
11228   fi
11229   $rm conftest*
11230   LDFLAGS="$save_LDFLAGS"
11231
11232fi
11233echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11234echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11235
11236if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11237    :
11238else
11239    lt_prog_compiler_static_CXX=
11240fi
11241
11242
11243echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11244echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11245if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11246  echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248  lt_cv_prog_compiler_c_o_CXX=no
11249   $rm -r conftest 2>/dev/null
11250   mkdir conftest
11251   cd conftest
11252   mkdir out
11253   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11254
11255   lt_compiler_flag="-o out/conftest2.$ac_objext"
11256   # Insert the option either (1) after the last *FLAGS variable, or
11257   # (2) before a word containing "conftest.", or (3) at the end.
11258   # Note that $ac_compile itself does not contain backslashes and begins
11259   # with a dollar sign (not a hyphen), so the echo should work correctly.
11260   lt_compile=`echo "$ac_compile" | $SED \
11261   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11263   -e 's:$: $lt_compiler_flag:'`
11264   (eval echo "\"\$as_me:11264: $lt_compile\"" >&5)
11265   (eval "$lt_compile" 2>out/conftest.err)
11266   ac_status=$?
11267   cat out/conftest.err >&5
11268   echo "$as_me:11268: \$? = $ac_status" >&5
11269   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11270   then
11271     # The compiler can only warn and ignore the option if not recognized
11272     # So say no if there are warnings
11273     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11274     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11275     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11276       lt_cv_prog_compiler_c_o_CXX=yes
11277     fi
11278   fi
11279   chmod u+w . 2>&5
11280   $rm conftest*
11281   # SGI C++ compiler will create directory out/ii_files/ for
11282   # template instantiation
11283   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11284   $rm out/* && rmdir out
11285   cd ..
11286   rmdir conftest
11287   $rm conftest*
11288
11289fi
11290echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11291echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11292
11293
11294hard_links="nottested"
11295if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11296  # do not overwrite the value of need_locks provided by the user
11297  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11298echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11299  hard_links=yes
11300  $rm conftest*
11301  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11302  touch conftest.a
11303  ln conftest.a conftest.b 2>&5 || hard_links=no
11304  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11305  echo "$as_me:$LINENO: result: $hard_links" >&5
11306echo "${ECHO_T}$hard_links" >&6
11307  if test "$hard_links" = no; then
11308    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11309echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11310    need_locks=warn
11311  fi
11312else
11313  need_locks=no
11314fi
11315
11316echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11317echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11318
11319  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11320  case $host_os in
11321  aix4* | aix5*)
11322    # If we're using GNU nm, then we don't want the "-C" option.
11323    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11324    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11325      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'
11326    else
11327      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'
11328    fi
11329    ;;
11330  pw32*)
11331    export_symbols_cmds_CXX="$ltdll_cmds"
11332  ;;
11333  cygwin* | mingw*)
11334    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'
11335  ;;
11336  *)
11337    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11338  ;;
11339  esac
11340
11341echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11342echo "${ECHO_T}$ld_shlibs_CXX" >&6
11343test "$ld_shlibs_CXX" = no && can_build_shared=no
11344
11345#
11346# Do we need to explicitly link libc?
11347#
11348case "x$archive_cmds_need_lc_CXX" in
11349x|xyes)
11350  # Assume -lc should be added
11351  archive_cmds_need_lc_CXX=yes
11352
11353  if test "$enable_shared" = yes && test "$GCC" = yes; then
11354    case $archive_cmds_CXX in
11355    *'~'*)
11356      # FIXME: we may have to deal with multi-command sequences.
11357      ;;
11358    '$CC '*)
11359      # Test whether the compiler implicitly links with -lc since on some
11360      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11361      # to ld, don't add -lc before -lgcc.
11362      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11363echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11364      $rm conftest*
11365      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11366
11367      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368  (eval $ac_compile) 2>&5
11369  ac_status=$?
11370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371  (exit $ac_status); } 2>conftest.err; then
11372        soname=conftest
11373        lib=conftest
11374        libobjs=conftest.$ac_objext
11375        deplibs=
11376        wl=$lt_prog_compiler_wl_CXX
11377	pic_flag=$lt_prog_compiler_pic_CXX
11378        compiler_flags=-v
11379        linker_flags=-v
11380        verstring=
11381        output_objdir=.
11382        libname=conftest
11383        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11384        allow_undefined_flag_CXX=
11385        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11386  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11387  ac_status=$?
11388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389  (exit $ac_status); }
11390        then
11391	  archive_cmds_need_lc_CXX=no
11392        else
11393	  archive_cmds_need_lc_CXX=yes
11394        fi
11395        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11396      else
11397        cat conftest.err 1>&5
11398      fi
11399      $rm conftest*
11400      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11401echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11402      ;;
11403    esac
11404  fi
11405  ;;
11406esac
11407
11408echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11409echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11410library_names_spec=
11411libname_spec='lib$name'
11412soname_spec=
11413shrext_cmds=".so"
11414postinstall_cmds=
11415postuninstall_cmds=
11416finish_cmds=
11417finish_eval=
11418shlibpath_var=
11419shlibpath_overrides_runpath=unknown
11420version_type=none
11421dynamic_linker="$host_os ld.so"
11422sys_lib_dlsearch_path_spec="/lib /usr/lib"
11423if test "$GCC" = yes; then
11424  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11425  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11426    # if the path contains ";" then we assume it to be the separator
11427    # otherwise default to the standard path separator (i.e. ":") - it is
11428    # assumed that no part of a normal pathname contains ";" but that should
11429    # okay in the real world where ";" in dirpaths is itself problematic.
11430    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11431  else
11432    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11433  fi
11434else
11435  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11436fi
11437need_lib_prefix=unknown
11438hardcode_into_libs=no
11439
11440# when you set need_version to no, make sure it does not cause -set_version
11441# flags to be left without arguments
11442need_version=unknown
11443
11444case $host_os in
11445aix3*)
11446  version_type=linux
11447  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11448  shlibpath_var=LIBPATH
11449
11450  # AIX 3 has no versioning support, so we append a major version to the name.
11451  soname_spec='${libname}${release}${shared_ext}$major'
11452  ;;
11453
11454aix4* | aix5*)
11455  version_type=linux
11456  need_lib_prefix=no
11457  need_version=no
11458  hardcode_into_libs=yes
11459  if test "$host_cpu" = ia64; then
11460    # AIX 5 supports IA64
11461    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11462    shlibpath_var=LD_LIBRARY_PATH
11463  else
11464    # With GCC up to 2.95.x, collect2 would create an import file
11465    # for dependence libraries.  The import file would start with
11466    # the line `#! .'.  This would cause the generated library to
11467    # depend on `.', always an invalid library.  This was fixed in
11468    # development snapshots of GCC prior to 3.0.
11469    case $host_os in
11470      aix4 | aix4.[01] | aix4.[01].*)
11471      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11472	   echo ' yes '
11473	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11474	:
11475      else
11476	can_build_shared=no
11477      fi
11478      ;;
11479    esac
11480    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11481    # soname into executable. Probably we can add versioning support to
11482    # collect2, so additional links can be useful in future.
11483    if test "$aix_use_runtimelinking" = yes; then
11484      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11485      # instead of lib<name>.a to let people know that these are not
11486      # typical AIX shared libraries.
11487      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488    else
11489      # We preserve .a as extension for shared libraries through AIX4.2
11490      # and later when we are not doing run time linking.
11491      library_names_spec='${libname}${release}.a $libname.a'
11492      soname_spec='${libname}${release}${shared_ext}$major'
11493    fi
11494    shlibpath_var=LIBPATH
11495  fi
11496  ;;
11497
11498amigaos*)
11499  library_names_spec='$libname.ixlibrary $libname.a'
11500  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11501  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'
11502  ;;
11503
11504beos*)
11505  library_names_spec='${libname}${shared_ext}'
11506  dynamic_linker="$host_os ld.so"
11507  shlibpath_var=LIBRARY_PATH
11508  ;;
11509
11510bsdi[45]*)
11511  version_type=linux
11512  need_version=no
11513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514  soname_spec='${libname}${release}${shared_ext}$major'
11515  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11516  shlibpath_var=LD_LIBRARY_PATH
11517  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11518  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11519  # the default ld.so.conf also contains /usr/contrib/lib and
11520  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11521  # libtool to hard-code these into programs
11522  ;;
11523
11524cygwin* | mingw* | pw32*)
11525  version_type=windows
11526  shrext_cmds=".dll"
11527  need_version=no
11528  need_lib_prefix=no
11529
11530  case $GCC,$host_os in
11531  yes,cygwin* | yes,mingw* | yes,pw32*)
11532    library_names_spec='$libname.dll.a'
11533    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11534    postinstall_cmds='base_file=`basename \${file}`~
11535      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11536      dldir=$destdir/`dirname \$dlpath`~
11537      test -d \$dldir || mkdir -p \$dldir~
11538      $install_prog $dir/$dlname \$dldir/$dlname~
11539      chmod a+x \$dldir/$dlname'
11540    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11541      dlpath=$dir/\$dldll~
11542       $rm \$dlpath'
11543    shlibpath_overrides_runpath=yes
11544
11545    case $host_os in
11546    cygwin*)
11547      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11548      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11549      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11550      ;;
11551    mingw*)
11552      # MinGW DLLs use traditional 'lib' prefix
11553      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11554      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11555      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11556        # It is most probably a Windows format PATH printed by
11557        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11558        # path with ; separators, and with drive letters. We can handle the
11559        # drive letters (cygwin fileutils understands them), so leave them,
11560        # especially as we might pass files found there to a mingw objdump,
11561        # which wouldn't understand a cygwinified path. Ahh.
11562        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11563      else
11564        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11565      fi
11566      ;;
11567    pw32*)
11568      # pw32 DLLs use 'pw' prefix rather than 'lib'
11569      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11570      ;;
11571    esac
11572    ;;
11573
11574  *)
11575    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11576    ;;
11577  esac
11578  dynamic_linker='Win32 ld.exe'
11579  # FIXME: first we should search . and the directory the executable is in
11580  shlibpath_var=PATH
11581  ;;
11582
11583darwin* | rhapsody*)
11584  dynamic_linker="$host_os dyld"
11585  version_type=darwin
11586  need_lib_prefix=no
11587  need_version=no
11588  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11589  soname_spec='${libname}${release}${major}$shared_ext'
11590  shlibpath_overrides_runpath=yes
11591  shlibpath_var=DYLD_LIBRARY_PATH
11592  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11593  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11594  if test "$GCC" = yes; then
11595    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"`
11596  else
11597    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11598  fi
11599  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11600  ;;
11601
11602dgux*)
11603  version_type=linux
11604  need_lib_prefix=no
11605  need_version=no
11606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11607  soname_spec='${libname}${release}${shared_ext}$major'
11608  shlibpath_var=LD_LIBRARY_PATH
11609  ;;
11610
11611freebsd1*)
11612  dynamic_linker=no
11613  ;;
11614
11615kfreebsd*-gnu)
11616  version_type=linux
11617  need_lib_prefix=no
11618  need_version=no
11619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11620  soname_spec='${libname}${release}${shared_ext}$major'
11621  shlibpath_var=LD_LIBRARY_PATH
11622  shlibpath_overrides_runpath=no
11623  hardcode_into_libs=yes
11624  dynamic_linker='GNU ld.so'
11625  ;;
11626
11627freebsd* | dragonfly*)
11628  # DragonFly does not have aout.  When/if they implement a new
11629  # versioning mechanism, adjust this.
11630  if test -x /usr/bin/objformat; then
11631    objformat=`/usr/bin/objformat`
11632  else
11633    case $host_os in
11634    freebsd[123]*) objformat=aout ;;
11635    *) objformat=elf ;;
11636    esac
11637  fi
11638  version_type=freebsd-$objformat
11639  case $version_type in
11640    freebsd-elf*)
11641      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11642      need_version=no
11643      need_lib_prefix=no
11644      ;;
11645    freebsd-*)
11646      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11647      need_version=yes
11648      ;;
11649  esac
11650  shlibpath_var=LD_LIBRARY_PATH
11651  case $host_os in
11652  freebsd2*)
11653    shlibpath_overrides_runpath=yes
11654    ;;
11655  freebsd3.[01]* | freebsdelf3.[01]*)
11656    shlibpath_overrides_runpath=yes
11657    hardcode_into_libs=yes
11658    ;;
11659  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11660  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11661    shlibpath_overrides_runpath=no
11662    hardcode_into_libs=yes
11663    ;;
11664  freebsd*) # from 4.6 on
11665    shlibpath_overrides_runpath=yes
11666    hardcode_into_libs=yes
11667    ;;
11668  esac
11669  ;;
11670
11671gnu*)
11672  version_type=linux
11673  need_lib_prefix=no
11674  need_version=no
11675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11676  soname_spec='${libname}${release}${shared_ext}$major'
11677  shlibpath_var=LD_LIBRARY_PATH
11678  hardcode_into_libs=yes
11679  ;;
11680
11681hpux9* | hpux10* | hpux11*)
11682  # Give a soname corresponding to the major version so that dld.sl refuses to
11683  # link against other versions.
11684  version_type=sunos
11685  need_lib_prefix=no
11686  need_version=no
11687  case $host_cpu in
11688  ia64*)
11689    shrext_cmds='.so'
11690    hardcode_into_libs=yes
11691    dynamic_linker="$host_os dld.so"
11692    shlibpath_var=LD_LIBRARY_PATH
11693    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11694    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695    soname_spec='${libname}${release}${shared_ext}$major'
11696    if test "X$HPUX_IA64_MODE" = X32; then
11697      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11698    else
11699      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11700    fi
11701    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11702    ;;
11703   hppa*64*)
11704     shrext_cmds='.sl'
11705     hardcode_into_libs=yes
11706     dynamic_linker="$host_os dld.sl"
11707     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11708     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710     soname_spec='${libname}${release}${shared_ext}$major'
11711     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11712     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11713     ;;
11714   *)
11715    shrext_cmds='.sl'
11716    dynamic_linker="$host_os dld.sl"
11717    shlibpath_var=SHLIB_PATH
11718    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11719    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720    soname_spec='${libname}${release}${shared_ext}$major'
11721    ;;
11722  esac
11723  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11724  postinstall_cmds='chmod 555 $lib'
11725  ;;
11726
11727interix3*)
11728  version_type=linux
11729  need_lib_prefix=no
11730  need_version=no
11731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11732  soname_spec='${libname}${release}${shared_ext}$major'
11733  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11734  shlibpath_var=LD_LIBRARY_PATH
11735  shlibpath_overrides_runpath=no
11736  hardcode_into_libs=yes
11737  ;;
11738
11739irix5* | irix6* | nonstopux*)
11740  case $host_os in
11741    nonstopux*) version_type=nonstopux ;;
11742    *)
11743	if test "$lt_cv_prog_gnu_ld" = yes; then
11744		version_type=linux
11745	else
11746		version_type=irix
11747	fi ;;
11748  esac
11749  need_lib_prefix=no
11750  need_version=no
11751  soname_spec='${libname}${release}${shared_ext}$major'
11752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11753  case $host_os in
11754  irix5* | nonstopux*)
11755    libsuff= shlibsuff=
11756    ;;
11757  *)
11758    case $LD in # libtool.m4 will add one of these switches to LD
11759    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11760      libsuff= shlibsuff= libmagic=32-bit;;
11761    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11762      libsuff=32 shlibsuff=N32 libmagic=N32;;
11763    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11764      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11765    *) libsuff= shlibsuff= libmagic=never-match;;
11766    esac
11767    ;;
11768  esac
11769  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11770  shlibpath_overrides_runpath=no
11771  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11772  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11773  hardcode_into_libs=yes
11774  ;;
11775
11776# No shared lib support for Linux oldld, aout, or coff.
11777linux*oldld* | linux*aout* | linux*coff*)
11778  dynamic_linker=no
11779  ;;
11780
11781# This must be Linux ELF.
11782linux*)
11783  version_type=linux
11784  need_lib_prefix=no
11785  need_version=no
11786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787  soname_spec='${libname}${release}${shared_ext}$major'
11788  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11789  shlibpath_var=LD_LIBRARY_PATH
11790  shlibpath_overrides_runpath=no
11791  # This implies no fast_install, which is unacceptable.
11792  # Some rework will be needed to allow for fast_install
11793  # before this can be enabled.
11794  hardcode_into_libs=yes
11795
11796  # find out which ABI we are using
11797  libsuff=
11798  case "$host_cpu" in
11799  x86_64*|s390x*|powerpc64*)
11800    echo '#line 11800 "configure"' > conftest.$ac_ext
11801    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802  (eval $ac_compile) 2>&5
11803  ac_status=$?
11804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805  (exit $ac_status); }; then
11806      case `/usr/bin/file conftest.$ac_objext` in
11807      *64-bit*)
11808        libsuff=64
11809        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11810        ;;
11811      esac
11812    fi
11813    rm -rf conftest*
11814    ;;
11815  esac
11816
11817  # Append ld.so.conf contents to the search path
11818  if test -f /etc/ld.so.conf; then
11819    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' ' '`
11820    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11821  fi
11822
11823  # We used to test for /lib/ld.so.1 and disable shared libraries on
11824  # powerpc, because MkLinux only supported shared libraries with the
11825  # GNU dynamic linker.  Since this was broken with cross compilers,
11826  # most powerpc-linux boxes support dynamic linking these days and
11827  # people can always --disable-shared, the test was removed, and we
11828  # assume the GNU/Linux dynamic linker is in use.
11829  dynamic_linker='GNU/Linux ld.so'
11830  ;;
11831
11832knetbsd*-gnu)
11833  version_type=linux
11834  need_lib_prefix=no
11835  need_version=no
11836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11837  soname_spec='${libname}${release}${shared_ext}$major'
11838  shlibpath_var=LD_LIBRARY_PATH
11839  shlibpath_overrides_runpath=no
11840  hardcode_into_libs=yes
11841  dynamic_linker='GNU ld.so'
11842  ;;
11843
11844netbsd*)
11845  version_type=sunos
11846  need_lib_prefix=no
11847  need_version=no
11848  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11850    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11851    dynamic_linker='NetBSD (a.out) ld.so'
11852  else
11853    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11854    soname_spec='${libname}${release}${shared_ext}$major'
11855    dynamic_linker='NetBSD ld.elf_so'
11856  fi
11857  shlibpath_var=LD_LIBRARY_PATH
11858  shlibpath_overrides_runpath=yes
11859  hardcode_into_libs=yes
11860  ;;
11861
11862newsos6)
11863  version_type=linux
11864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865  shlibpath_var=LD_LIBRARY_PATH
11866  shlibpath_overrides_runpath=yes
11867  ;;
11868
11869nto-qnx*)
11870  version_type=linux
11871  need_lib_prefix=no
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  shlibpath_var=LD_LIBRARY_PATH
11876  shlibpath_overrides_runpath=yes
11877  ;;
11878
11879openbsd*)
11880  version_type=sunos
11881  sys_lib_dlsearch_path_spec="/usr/lib"
11882  need_lib_prefix=no
11883  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11884  case $host_os in
11885    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11886    *)                         need_version=no  ;;
11887  esac
11888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11889  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11890  shlibpath_var=LD_LIBRARY_PATH
11891  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11892    case $host_os in
11893      openbsd2.[89] | openbsd2.[89].*)
11894	shlibpath_overrides_runpath=no
11895	;;
11896      *)
11897	shlibpath_overrides_runpath=yes
11898	;;
11899      esac
11900  else
11901    shlibpath_overrides_runpath=yes
11902  fi
11903  ;;
11904
11905os2*)
11906  libname_spec='$name'
11907  shrext_cmds=".dll"
11908  need_lib_prefix=no
11909  library_names_spec='$libname${shared_ext} $libname.a'
11910  dynamic_linker='OS/2 ld.exe'
11911  shlibpath_var=LIBPATH
11912  ;;
11913
11914osf3* | osf4* | osf5*)
11915  version_type=osf
11916  need_lib_prefix=no
11917  need_version=no
11918  soname_spec='${libname}${release}${shared_ext}$major'
11919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11920  shlibpath_var=LD_LIBRARY_PATH
11921  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11922  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11923  ;;
11924
11925solaris*)
11926  version_type=linux
11927  need_lib_prefix=no
11928  need_version=no
11929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930  soname_spec='${libname}${release}${shared_ext}$major'
11931  shlibpath_var=LD_LIBRARY_PATH
11932  shlibpath_overrides_runpath=yes
11933  hardcode_into_libs=yes
11934  # ldd complains unless libraries are executable
11935  postinstall_cmds='chmod +x $lib'
11936  ;;
11937
11938sunos4*)
11939  version_type=sunos
11940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11941  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11942  shlibpath_var=LD_LIBRARY_PATH
11943  shlibpath_overrides_runpath=yes
11944  if test "$with_gnu_ld" = yes; then
11945    need_lib_prefix=no
11946  fi
11947  need_version=yes
11948  ;;
11949
11950sysv4 | sysv4.3*)
11951  version_type=linux
11952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953  soname_spec='${libname}${release}${shared_ext}$major'
11954  shlibpath_var=LD_LIBRARY_PATH
11955  case $host_vendor in
11956    sni)
11957      shlibpath_overrides_runpath=no
11958      need_lib_prefix=no
11959      export_dynamic_flag_spec='${wl}-Blargedynsym'
11960      runpath_var=LD_RUN_PATH
11961      ;;
11962    siemens)
11963      need_lib_prefix=no
11964      ;;
11965    motorola)
11966      need_lib_prefix=no
11967      need_version=no
11968      shlibpath_overrides_runpath=no
11969      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11970      ;;
11971  esac
11972  ;;
11973
11974sysv4*MP*)
11975  if test -d /usr/nec ;then
11976    version_type=linux
11977    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11978    soname_spec='$libname${shared_ext}.$major'
11979    shlibpath_var=LD_LIBRARY_PATH
11980  fi
11981  ;;
11982
11983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11984  version_type=freebsd-elf
11985  need_lib_prefix=no
11986  need_version=no
11987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11988  soname_spec='${libname}${release}${shared_ext}$major'
11989  shlibpath_var=LD_LIBRARY_PATH
11990  hardcode_into_libs=yes
11991  if test "$with_gnu_ld" = yes; then
11992    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11993    shlibpath_overrides_runpath=no
11994  else
11995    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11996    shlibpath_overrides_runpath=yes
11997    case $host_os in
11998      sco3.2v5*)
11999        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12000	;;
12001    esac
12002  fi
12003  sys_lib_dlsearch_path_spec='/usr/lib'
12004  ;;
12005
12006uts4*)
12007  version_type=linux
12008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12009  soname_spec='${libname}${release}${shared_ext}$major'
12010  shlibpath_var=LD_LIBRARY_PATH
12011  ;;
12012
12013*)
12014  dynamic_linker=no
12015  ;;
12016esac
12017echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12018echo "${ECHO_T}$dynamic_linker" >&6
12019test "$dynamic_linker" = no && can_build_shared=no
12020
12021variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12022if test "$GCC" = yes; then
12023  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12024fi
12025
12026echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12027echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12028hardcode_action_CXX=
12029if test -n "$hardcode_libdir_flag_spec_CXX" || \
12030   test -n "$runpath_var_CXX" || \
12031   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12032
12033  # We can hardcode non-existant directories.
12034  if test "$hardcode_direct_CXX" != no &&
12035     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12036     # have to relink, otherwise we might link with an installed library
12037     # when we should be linking with a yet-to-be-installed one
12038     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12039     test "$hardcode_minus_L_CXX" != no; then
12040    # Linking always hardcodes the temporary library directory.
12041    hardcode_action_CXX=relink
12042  else
12043    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12044    hardcode_action_CXX=immediate
12045  fi
12046else
12047  # We cannot hardcode anything, or else we can only hardcode existing
12048  # directories.
12049  hardcode_action_CXX=unsupported
12050fi
12051echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12052echo "${ECHO_T}$hardcode_action_CXX" >&6
12053
12054if test "$hardcode_action_CXX" = relink; then
12055  # Fast installation is not supported
12056  enable_fast_install=no
12057elif test "$shlibpath_overrides_runpath" = yes ||
12058     test "$enable_shared" = no; then
12059  # Fast installation is not necessary
12060  enable_fast_install=needless
12061fi
12062
12063
12064# The else clause should only fire when bootstrapping the
12065# libtool distribution, otherwise you forgot to ship ltmain.sh
12066# with your package, and you will get complaints that there are
12067# no rules to generate ltmain.sh.
12068if test -f "$ltmain"; then
12069  # See if we are running on zsh, and set the options which allow our commands through
12070  # without removal of \ escapes.
12071  if test -n "${ZSH_VERSION+set}" ; then
12072    setopt NO_GLOB_SUBST
12073  fi
12074  # Now quote all the things that may contain metacharacters while being
12075  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12076  # variables and quote the copies for generation of the libtool script.
12077  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12078    SED SHELL STRIP \
12079    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12080    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12081    deplibs_check_method reload_flag reload_cmds need_locks \
12082    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12083    lt_cv_sys_global_symbol_to_c_name_address \
12084    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12085    old_postinstall_cmds old_postuninstall_cmds \
12086    compiler_CXX \
12087    CC_CXX \
12088    LD_CXX \
12089    lt_prog_compiler_wl_CXX \
12090    lt_prog_compiler_pic_CXX \
12091    lt_prog_compiler_static_CXX \
12092    lt_prog_compiler_no_builtin_flag_CXX \
12093    export_dynamic_flag_spec_CXX \
12094    thread_safe_flag_spec_CXX \
12095    whole_archive_flag_spec_CXX \
12096    enable_shared_with_static_runtimes_CXX \
12097    old_archive_cmds_CXX \
12098    old_archive_from_new_cmds_CXX \
12099    predep_objects_CXX \
12100    postdep_objects_CXX \
12101    predeps_CXX \
12102    postdeps_CXX \
12103    compiler_lib_search_path_CXX \
12104    archive_cmds_CXX \
12105    archive_expsym_cmds_CXX \
12106    postinstall_cmds_CXX \
12107    postuninstall_cmds_CXX \
12108    old_archive_from_expsyms_cmds_CXX \
12109    allow_undefined_flag_CXX \
12110    no_undefined_flag_CXX \
12111    export_symbols_cmds_CXX \
12112    hardcode_libdir_flag_spec_CXX \
12113    hardcode_libdir_flag_spec_ld_CXX \
12114    hardcode_libdir_separator_CXX \
12115    hardcode_automatic_CXX \
12116    module_cmds_CXX \
12117    module_expsym_cmds_CXX \
12118    lt_cv_prog_compiler_c_o_CXX \
12119    exclude_expsyms_CXX \
12120    include_expsyms_CXX; do
12121
12122    case $var in
12123    old_archive_cmds_CXX | \
12124    old_archive_from_new_cmds_CXX | \
12125    archive_cmds_CXX | \
12126    archive_expsym_cmds_CXX | \
12127    module_cmds_CXX | \
12128    module_expsym_cmds_CXX | \
12129    old_archive_from_expsyms_cmds_CXX | \
12130    export_symbols_cmds_CXX | \
12131    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12132    postinstall_cmds | postuninstall_cmds | \
12133    old_postinstall_cmds | old_postuninstall_cmds | \
12134    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12135      # Double-quote double-evaled strings.
12136      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12137      ;;
12138    *)
12139      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12140      ;;
12141    esac
12142  done
12143
12144  case $lt_echo in
12145  *'\$0 --fallback-echo"')
12146    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12147    ;;
12148  esac
12149
12150cfgfile="$ofile"
12151
12152  cat <<__EOF__ >> "$cfgfile"
12153# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12154
12155# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12156
12157# Shell to use when invoking shell scripts.
12158SHELL=$lt_SHELL
12159
12160# Whether or not to build shared libraries.
12161build_libtool_libs=$enable_shared
12162
12163# Whether or not to build static libraries.
12164build_old_libs=$enable_static
12165
12166# Whether or not to add -lc for building shared libraries.
12167build_libtool_need_lc=$archive_cmds_need_lc_CXX
12168
12169# Whether or not to disallow shared libs when runtime libs are static
12170allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12171
12172# Whether or not to optimize for fast installation.
12173fast_install=$enable_fast_install
12174
12175# The host system.
12176host_alias=$host_alias
12177host=$host
12178host_os=$host_os
12179
12180# The build system.
12181build_alias=$build_alias
12182build=$build
12183build_os=$build_os
12184
12185# An echo program that does not interpret backslashes.
12186echo=$lt_echo
12187
12188# The archiver.
12189AR=$lt_AR
12190AR_FLAGS=$lt_AR_FLAGS
12191
12192# A C compiler.
12193LTCC=$lt_LTCC
12194
12195# LTCC compiler flags.
12196LTCFLAGS=$lt_LTCFLAGS
12197
12198# A language-specific compiler.
12199CC=$lt_compiler_CXX
12200
12201# Is the compiler the GNU C compiler?
12202with_gcc=$GCC_CXX
12203
12204# An ERE matcher.
12205EGREP=$lt_EGREP
12206
12207# The linker used to build libraries.
12208LD=$lt_LD_CXX
12209
12210# Whether we need hard or soft links.
12211LN_S=$lt_LN_S
12212
12213# A BSD-compatible nm program.
12214NM=$lt_NM
12215
12216# A symbol stripping program
12217STRIP=$lt_STRIP
12218
12219# Used to examine libraries when file_magic_cmd begins "file"
12220MAGIC_CMD=$MAGIC_CMD
12221
12222# Used on cygwin: DLL creation program.
12223DLLTOOL="$DLLTOOL"
12224
12225# Used on cygwin: object dumper.
12226OBJDUMP="$OBJDUMP"
12227
12228# Used on cygwin: assembler.
12229AS="$AS"
12230
12231# The name of the directory that contains temporary libtool files.
12232objdir=$objdir
12233
12234# How to create reloadable object files.
12235reload_flag=$lt_reload_flag
12236reload_cmds=$lt_reload_cmds
12237
12238# How to pass a linker flag through the compiler.
12239wl=$lt_lt_prog_compiler_wl_CXX
12240
12241# Object file suffix (normally "o").
12242objext="$ac_objext"
12243
12244# Old archive suffix (normally "a").
12245libext="$libext"
12246
12247# Shared library suffix (normally ".so").
12248shrext_cmds='$shrext_cmds'
12249
12250# Executable file suffix (normally "").
12251exeext="$exeext"
12252
12253# Additional compiler flags for building library objects.
12254pic_flag=$lt_lt_prog_compiler_pic_CXX
12255pic_mode=$pic_mode
12256
12257# What is the maximum length of a command?
12258max_cmd_len=$lt_cv_sys_max_cmd_len
12259
12260# Does compiler simultaneously support -c and -o options?
12261compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12262
12263# Must we lock files when doing compilation?
12264need_locks=$lt_need_locks
12265
12266# Do we need the lib prefix for modules?
12267need_lib_prefix=$need_lib_prefix
12268
12269# Do we need a version for libraries?
12270need_version=$need_version
12271
12272# Whether dlopen is supported.
12273dlopen_support=$enable_dlopen
12274
12275# Whether dlopen of programs is supported.
12276dlopen_self=$enable_dlopen_self
12277
12278# Whether dlopen of statically linked programs is supported.
12279dlopen_self_static=$enable_dlopen_self_static
12280
12281# Compiler flag to prevent dynamic linking.
12282link_static_flag=$lt_lt_prog_compiler_static_CXX
12283
12284# Compiler flag to turn off builtin functions.
12285no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12286
12287# Compiler flag to allow reflexive dlopens.
12288export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12289
12290# Compiler flag to generate shared objects directly from archives.
12291whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12292
12293# Compiler flag to generate thread-safe objects.
12294thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12295
12296# Library versioning type.
12297version_type=$version_type
12298
12299# Format of library name prefix.
12300libname_spec=$lt_libname_spec
12301
12302# List of archive names.  First name is the real one, the rest are links.
12303# The last name is the one that the linker finds with -lNAME.
12304library_names_spec=$lt_library_names_spec
12305
12306# The coded name of the library, if different from the real name.
12307soname_spec=$lt_soname_spec
12308
12309# Commands used to build and install an old-style archive.
12310RANLIB=$lt_RANLIB
12311old_archive_cmds=$lt_old_archive_cmds_CXX
12312old_postinstall_cmds=$lt_old_postinstall_cmds
12313old_postuninstall_cmds=$lt_old_postuninstall_cmds
12314
12315# Create an old-style archive from a shared archive.
12316old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12317
12318# Create a temporary old-style archive to link instead of a shared archive.
12319old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12320
12321# Commands used to build and install a shared archive.
12322archive_cmds=$lt_archive_cmds_CXX
12323archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12324postinstall_cmds=$lt_postinstall_cmds
12325postuninstall_cmds=$lt_postuninstall_cmds
12326
12327# Commands used to build a loadable module (assumed same as above if empty)
12328module_cmds=$lt_module_cmds_CXX
12329module_expsym_cmds=$lt_module_expsym_cmds_CXX
12330
12331# Commands to strip libraries.
12332old_striplib=$lt_old_striplib
12333striplib=$lt_striplib
12334
12335# Dependencies to place before the objects being linked to create a
12336# shared library.
12337predep_objects=$lt_predep_objects_CXX
12338
12339# Dependencies to place after the objects being linked to create a
12340# shared library.
12341postdep_objects=$lt_postdep_objects_CXX
12342
12343# Dependencies to place before the objects being linked to create a
12344# shared library.
12345predeps=$lt_predeps_CXX
12346
12347# Dependencies to place after the objects being linked to create a
12348# shared library.
12349postdeps=$lt_postdeps_CXX
12350
12351# The library search path used internally by the compiler when linking
12352# a shared library.
12353compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12354
12355# Method to check whether dependent libraries are shared objects.
12356deplibs_check_method=$lt_deplibs_check_method
12357
12358# Command to use when deplibs_check_method == file_magic.
12359file_magic_cmd=$lt_file_magic_cmd
12360
12361# Flag that allows shared libraries with undefined symbols to be built.
12362allow_undefined_flag=$lt_allow_undefined_flag_CXX
12363
12364# Flag that forces no undefined symbols.
12365no_undefined_flag=$lt_no_undefined_flag_CXX
12366
12367# Commands used to finish a libtool library installation in a directory.
12368finish_cmds=$lt_finish_cmds
12369
12370# Same as above, but a single script fragment to be evaled but not shown.
12371finish_eval=$lt_finish_eval
12372
12373# Take the output of nm and produce a listing of raw symbols and C names.
12374global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12375
12376# Transform the output of nm in a proper C declaration
12377global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12378
12379# Transform the output of nm in a C name address pair
12380global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12381
12382# This is the shared library runtime path variable.
12383runpath_var=$runpath_var
12384
12385# This is the shared library path variable.
12386shlibpath_var=$shlibpath_var
12387
12388# Is shlibpath searched before the hard-coded library search path?
12389shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12390
12391# How to hardcode a shared library path into an executable.
12392hardcode_action=$hardcode_action_CXX
12393
12394# Whether we should hardcode library paths into libraries.
12395hardcode_into_libs=$hardcode_into_libs
12396
12397# Flag to hardcode \$libdir into a binary during linking.
12398# This must work even if \$libdir does not exist.
12399hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12400
12401# If ld is used when linking, flag to hardcode \$libdir into
12402# a binary during linking. This must work even if \$libdir does
12403# not exist.
12404hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12405
12406# Whether we need a single -rpath flag with a separated argument.
12407hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12408
12409# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12410# resulting binary.
12411hardcode_direct=$hardcode_direct_CXX
12412
12413# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12414# resulting binary.
12415hardcode_minus_L=$hardcode_minus_L_CXX
12416
12417# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12418# the resulting binary.
12419hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12420
12421# Set to yes if building a shared library automatically hardcodes DIR into the library
12422# and all subsequent libraries and executables linked against it.
12423hardcode_automatic=$hardcode_automatic_CXX
12424
12425# Variables whose values should be saved in libtool wrapper scripts and
12426# restored at relink time.
12427variables_saved_for_relink="$variables_saved_for_relink"
12428
12429# Whether libtool must link a program against all its dependency libraries.
12430link_all_deplibs=$link_all_deplibs_CXX
12431
12432# Compile-time system search path for libraries
12433sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12434
12435# Run-time system search path for libraries
12436sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12437
12438# Fix the shell variable \$srcfile for the compiler.
12439fix_srcfile_path="$fix_srcfile_path_CXX"
12440
12441# Set to yes if exported symbols are required.
12442always_export_symbols=$always_export_symbols_CXX
12443
12444# The commands to list exported symbols.
12445export_symbols_cmds=$lt_export_symbols_cmds_CXX
12446
12447# The commands to extract the exported symbol list from a shared archive.
12448extract_expsyms_cmds=$lt_extract_expsyms_cmds
12449
12450# Symbols that should not be listed in the preloaded symbols.
12451exclude_expsyms=$lt_exclude_expsyms_CXX
12452
12453# Symbols that must always be exported.
12454include_expsyms=$lt_include_expsyms_CXX
12455
12456# ### END LIBTOOL TAG CONFIG: $tagname
12457
12458__EOF__
12459
12460
12461else
12462  # If there is no Makefile yet, we rely on a make rule to execute
12463  # `config.status --recheck' to rerun these tests and create the
12464  # libtool script then.
12465  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12466  if test -f "$ltmain_in"; then
12467    test -f Makefile && make "$ltmain"
12468  fi
12469fi
12470
12471
12472ac_ext=c
12473ac_cpp='$CPP $CPPFLAGS'
12474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476ac_compiler_gnu=$ac_cv_c_compiler_gnu
12477
12478CC=$lt_save_CC
12479LDCXX=$LD
12480LD=$lt_save_LD
12481GCC=$lt_save_GCC
12482with_gnu_ldcxx=$with_gnu_ld
12483with_gnu_ld=$lt_save_with_gnu_ld
12484lt_cv_path_LDCXX=$lt_cv_path_LD
12485lt_cv_path_LD=$lt_save_path_LD
12486lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12487lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12488
12489	else
12490	  tagname=""
12491	fi
12492	;;
12493
12494      F77)
12495	if test -n "$F77" && test "X$F77" != "Xno"; then
12496
12497ac_ext=f
12498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12501
12502
12503archive_cmds_need_lc_F77=no
12504allow_undefined_flag_F77=
12505always_export_symbols_F77=no
12506archive_expsym_cmds_F77=
12507export_dynamic_flag_spec_F77=
12508hardcode_direct_F77=no
12509hardcode_libdir_flag_spec_F77=
12510hardcode_libdir_flag_spec_ld_F77=
12511hardcode_libdir_separator_F77=
12512hardcode_minus_L_F77=no
12513hardcode_automatic_F77=no
12514module_cmds_F77=
12515module_expsym_cmds_F77=
12516link_all_deplibs_F77=unknown
12517old_archive_cmds_F77=$old_archive_cmds
12518no_undefined_flag_F77=
12519whole_archive_flag_spec_F77=
12520enable_shared_with_static_runtimes_F77=no
12521
12522# Source file extension for f77 test sources.
12523ac_ext=f
12524
12525# Object file extension for compiled f77 test sources.
12526objext=o
12527objext_F77=$objext
12528
12529# Code to be used in simple compile tests
12530lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12531
12532# Code to be used in simple link tests
12533lt_simple_link_test_code="      program t\n      end\n"
12534
12535# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12536
12537# If no C compiler was specified, use CC.
12538LTCC=${LTCC-"$CC"}
12539
12540# If no C compiler flags were specified, use CFLAGS.
12541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12542
12543# Allow CC to be a program name with arguments.
12544compiler=$CC
12545
12546
12547# save warnings/boilerplate of simple test code
12548ac_outfile=conftest.$ac_objext
12549printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12551_lt_compiler_boilerplate=`cat conftest.err`
12552$rm conftest*
12553
12554ac_outfile=conftest.$ac_objext
12555printf "$lt_simple_link_test_code" >conftest.$ac_ext
12556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12557_lt_linker_boilerplate=`cat conftest.err`
12558$rm conftest*
12559
12560
12561# Allow CC to be a program name with arguments.
12562lt_save_CC="$CC"
12563CC=${F77-"f77"}
12564compiler=$CC
12565compiler_F77=$CC
12566for cc_temp in $compiler""; do
12567  case $cc_temp in
12568    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12569    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12570    \-*) ;;
12571    *) break;;
12572  esac
12573done
12574cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12575
12576
12577echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12578echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12579echo "$as_me:$LINENO: result: $can_build_shared" >&5
12580echo "${ECHO_T}$can_build_shared" >&6
12581
12582echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12583echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12584test "$can_build_shared" = "no" && enable_shared=no
12585
12586# On AIX, shared libraries and static libraries use the same namespace, and
12587# are all built from PIC.
12588case $host_os in
12589aix3*)
12590  test "$enable_shared" = yes && enable_static=no
12591  if test -n "$RANLIB"; then
12592    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12593    postinstall_cmds='$RANLIB $lib'
12594  fi
12595  ;;
12596aix4* | aix5*)
12597  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12598    test "$enable_shared" = yes && enable_static=no
12599  fi
12600  ;;
12601esac
12602echo "$as_me:$LINENO: result: $enable_shared" >&5
12603echo "${ECHO_T}$enable_shared" >&6
12604
12605echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12606echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12607# Make sure either enable_shared or enable_static is yes.
12608test "$enable_shared" = yes || enable_static=yes
12609echo "$as_me:$LINENO: result: $enable_static" >&5
12610echo "${ECHO_T}$enable_static" >&6
12611
12612GCC_F77="$G77"
12613LD_F77="$LD"
12614
12615lt_prog_compiler_wl_F77=
12616lt_prog_compiler_pic_F77=
12617lt_prog_compiler_static_F77=
12618
12619echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12620echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12621
12622  if test "$GCC" = yes; then
12623    lt_prog_compiler_wl_F77='-Wl,'
12624    lt_prog_compiler_static_F77='-static'
12625
12626    case $host_os in
12627      aix*)
12628      # All AIX code is PIC.
12629      if test "$host_cpu" = ia64; then
12630	# AIX 5 now supports IA64 processor
12631	lt_prog_compiler_static_F77='-Bstatic'
12632      fi
12633      ;;
12634
12635    amigaos*)
12636      # FIXME: we need at least 68020 code to build shared libraries, but
12637      # adding the `-m68020' flag to GCC prevents building anything better,
12638      # like `-m68040'.
12639      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12640      ;;
12641
12642    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12643      # PIC is the default for these OSes.
12644      ;;
12645
12646    mingw* | pw32* | os2*)
12647      # This hack is so that the source file can tell whether it is being
12648      # built for inclusion in a dll (and should export symbols for example).
12649      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12650      ;;
12651
12652    darwin* | rhapsody*)
12653      # PIC is the default on this platform
12654      # Common symbols not allowed in MH_DYLIB files
12655      lt_prog_compiler_pic_F77='-fno-common'
12656      ;;
12657
12658    interix3*)
12659      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12660      # Instead, we relocate shared libraries at runtime.
12661      ;;
12662
12663    msdosdjgpp*)
12664      # Just because we use GCC doesn't mean we suddenly get shared libraries
12665      # on systems that don't support them.
12666      lt_prog_compiler_can_build_shared_F77=no
12667      enable_shared=no
12668      ;;
12669
12670    sysv4*MP*)
12671      if test -d /usr/nec; then
12672	lt_prog_compiler_pic_F77=-Kconform_pic
12673      fi
12674      ;;
12675
12676    hpux*)
12677      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12678      # not for PA HP-UX.
12679      case $host_cpu in
12680      hppa*64*|ia64*)
12681	# +Z the default
12682	;;
12683      *)
12684	lt_prog_compiler_pic_F77='-fPIC'
12685	;;
12686      esac
12687      ;;
12688
12689    *)
12690      lt_prog_compiler_pic_F77='-fPIC'
12691      ;;
12692    esac
12693  else
12694    # PORTME Check for flag to pass linker flags through the system compiler.
12695    case $host_os in
12696    aix*)
12697      lt_prog_compiler_wl_F77='-Wl,'
12698      if test "$host_cpu" = ia64; then
12699	# AIX 5 now supports IA64 processor
12700	lt_prog_compiler_static_F77='-Bstatic'
12701      else
12702	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12703      fi
12704      ;;
12705      darwin*)
12706        # PIC is the default on this platform
12707        # Common symbols not allowed in MH_DYLIB files
12708       case $cc_basename in
12709         xlc*)
12710         lt_prog_compiler_pic_F77='-qnocommon'
12711         lt_prog_compiler_wl_F77='-Wl,'
12712         ;;
12713       esac
12714       ;;
12715
12716    mingw* | pw32* | os2*)
12717      # This hack is so that the source file can tell whether it is being
12718      # built for inclusion in a dll (and should export symbols for example).
12719      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12720      ;;
12721
12722    hpux9* | hpux10* | hpux11*)
12723      lt_prog_compiler_wl_F77='-Wl,'
12724      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12725      # not for PA HP-UX.
12726      case $host_cpu in
12727      hppa*64*|ia64*)
12728	# +Z the default
12729	;;
12730      *)
12731	lt_prog_compiler_pic_F77='+Z'
12732	;;
12733      esac
12734      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12735      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12736      ;;
12737
12738    irix5* | irix6* | nonstopux*)
12739      lt_prog_compiler_wl_F77='-Wl,'
12740      # PIC (with -KPIC) is the default.
12741      lt_prog_compiler_static_F77='-non_shared'
12742      ;;
12743
12744    newsos6)
12745      lt_prog_compiler_pic_F77='-KPIC'
12746      lt_prog_compiler_static_F77='-Bstatic'
12747      ;;
12748
12749    linux*)
12750      case $cc_basename in
12751      icc* | ecc*)
12752	lt_prog_compiler_wl_F77='-Wl,'
12753	lt_prog_compiler_pic_F77='-KPIC'
12754	lt_prog_compiler_static_F77='-static'
12755        ;;
12756      pgcc* | pgf77* | pgf90* | pgf95*)
12757        # Portland Group compilers (*not* the Pentium gcc compiler,
12758	# which looks to be a dead project)
12759	lt_prog_compiler_wl_F77='-Wl,'
12760	lt_prog_compiler_pic_F77='-fpic'
12761	lt_prog_compiler_static_F77='-Bstatic'
12762        ;;
12763      ccc*)
12764        lt_prog_compiler_wl_F77='-Wl,'
12765        # All Alpha code is PIC.
12766        lt_prog_compiler_static_F77='-non_shared'
12767        ;;
12768      esac
12769      ;;
12770
12771    osf3* | osf4* | osf5*)
12772      lt_prog_compiler_wl_F77='-Wl,'
12773      # All OSF/1 code is PIC.
12774      lt_prog_compiler_static_F77='-non_shared'
12775      ;;
12776
12777    solaris*)
12778      lt_prog_compiler_pic_F77='-KPIC'
12779      lt_prog_compiler_static_F77='-Bstatic'
12780      case $cc_basename in
12781      f77* | f90* | f95*)
12782	lt_prog_compiler_wl_F77='-Qoption ld ';;
12783      *)
12784	lt_prog_compiler_wl_F77='-Wl,';;
12785      esac
12786      ;;
12787
12788    sunos4*)
12789      lt_prog_compiler_wl_F77='-Qoption ld '
12790      lt_prog_compiler_pic_F77='-PIC'
12791      lt_prog_compiler_static_F77='-Bstatic'
12792      ;;
12793
12794    sysv4 | sysv4.2uw2* | sysv4.3*)
12795      lt_prog_compiler_wl_F77='-Wl,'
12796      lt_prog_compiler_pic_F77='-KPIC'
12797      lt_prog_compiler_static_F77='-Bstatic'
12798      ;;
12799
12800    sysv4*MP*)
12801      if test -d /usr/nec ;then
12802	lt_prog_compiler_pic_F77='-Kconform_pic'
12803	lt_prog_compiler_static_F77='-Bstatic'
12804      fi
12805      ;;
12806
12807    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12808      lt_prog_compiler_wl_F77='-Wl,'
12809      lt_prog_compiler_pic_F77='-KPIC'
12810      lt_prog_compiler_static_F77='-Bstatic'
12811      ;;
12812
12813    unicos*)
12814      lt_prog_compiler_wl_F77='-Wl,'
12815      lt_prog_compiler_can_build_shared_F77=no
12816      ;;
12817
12818    uts4*)
12819      lt_prog_compiler_pic_F77='-pic'
12820      lt_prog_compiler_static_F77='-Bstatic'
12821      ;;
12822
12823    *)
12824      lt_prog_compiler_can_build_shared_F77=no
12825      ;;
12826    esac
12827  fi
12828
12829echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12830echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12831
12832#
12833# Check to make sure the PIC flag actually works.
12834#
12835if test -n "$lt_prog_compiler_pic_F77"; then
12836
12837echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12838echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12839if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12840  echo $ECHO_N "(cached) $ECHO_C" >&6
12841else
12842  lt_prog_compiler_pic_works_F77=no
12843  ac_outfile=conftest.$ac_objext
12844   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12845   lt_compiler_flag="$lt_prog_compiler_pic_F77"
12846   # Insert the option either (1) after the last *FLAGS variable, or
12847   # (2) before a word containing "conftest.", or (3) at the end.
12848   # Note that $ac_compile itself does not contain backslashes and begins
12849   # with a dollar sign (not a hyphen), so the echo should work correctly.
12850   # The option is referenced via a variable to avoid confusing sed.
12851   lt_compile=`echo "$ac_compile" | $SED \
12852   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12854   -e 's:$: $lt_compiler_flag:'`
12855   (eval echo "\"\$as_me:12855: $lt_compile\"" >&5)
12856   (eval "$lt_compile" 2>conftest.err)
12857   ac_status=$?
12858   cat conftest.err >&5
12859   echo "$as_me:12859: \$? = $ac_status" >&5
12860   if (exit $ac_status) && test -s "$ac_outfile"; then
12861     # The compiler can only warn and ignore the option if not recognized
12862     # So say no if there are warnings other than the usual output.
12863     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12864     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12865     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12866       lt_prog_compiler_pic_works_F77=yes
12867     fi
12868   fi
12869   $rm conftest*
12870
12871fi
12872echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12873echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12874
12875if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12876    case $lt_prog_compiler_pic_F77 in
12877     "" | " "*) ;;
12878     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12879     esac
12880else
12881    lt_prog_compiler_pic_F77=
12882     lt_prog_compiler_can_build_shared_F77=no
12883fi
12884
12885fi
12886case $host_os in
12887  # For platforms which do not support PIC, -DPIC is meaningless:
12888  *djgpp*)
12889    lt_prog_compiler_pic_F77=
12890    ;;
12891  *)
12892    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12893    ;;
12894esac
12895
12896#
12897# Check to make sure the static flag actually works.
12898#
12899wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12900echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12901echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12902if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12903  echo $ECHO_N "(cached) $ECHO_C" >&6
12904else
12905  lt_prog_compiler_static_works_F77=no
12906   save_LDFLAGS="$LDFLAGS"
12907   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12908   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12909   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12910     # The linker can only warn and ignore the option if not recognized
12911     # So say no if there are warnings
12912     if test -s conftest.err; then
12913       # Append any errors to the config.log.
12914       cat conftest.err 1>&5
12915       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12916       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12917       if diff conftest.exp conftest.er2 >/dev/null; then
12918         lt_prog_compiler_static_works_F77=yes
12919       fi
12920     else
12921       lt_prog_compiler_static_works_F77=yes
12922     fi
12923   fi
12924   $rm conftest*
12925   LDFLAGS="$save_LDFLAGS"
12926
12927fi
12928echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12929echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
12930
12931if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12932    :
12933else
12934    lt_prog_compiler_static_F77=
12935fi
12936
12937
12938echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12939echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12940if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12941  echo $ECHO_N "(cached) $ECHO_C" >&6
12942else
12943  lt_cv_prog_compiler_c_o_F77=no
12944   $rm -r conftest 2>/dev/null
12945   mkdir conftest
12946   cd conftest
12947   mkdir out
12948   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12949
12950   lt_compiler_flag="-o out/conftest2.$ac_objext"
12951   # Insert the option either (1) after the last *FLAGS variable, or
12952   # (2) before a word containing "conftest.", or (3) at the end.
12953   # Note that $ac_compile itself does not contain backslashes and begins
12954   # with a dollar sign (not a hyphen), so the echo should work correctly.
12955   lt_compile=`echo "$ac_compile" | $SED \
12956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12958   -e 's:$: $lt_compiler_flag:'`
12959   (eval echo "\"\$as_me:12959: $lt_compile\"" >&5)
12960   (eval "$lt_compile" 2>out/conftest.err)
12961   ac_status=$?
12962   cat out/conftest.err >&5
12963   echo "$as_me:12963: \$? = $ac_status" >&5
12964   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12965   then
12966     # The compiler can only warn and ignore the option if not recognized
12967     # So say no if there are warnings
12968     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12969     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12970     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12971       lt_cv_prog_compiler_c_o_F77=yes
12972     fi
12973   fi
12974   chmod u+w . 2>&5
12975   $rm conftest*
12976   # SGI C++ compiler will create directory out/ii_files/ for
12977   # template instantiation
12978   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12979   $rm out/* && rmdir out
12980   cd ..
12981   rmdir conftest
12982   $rm conftest*
12983
12984fi
12985echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12986echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12987
12988
12989hard_links="nottested"
12990if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12991  # do not overwrite the value of need_locks provided by the user
12992  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12993echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12994  hard_links=yes
12995  $rm conftest*
12996  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12997  touch conftest.a
12998  ln conftest.a conftest.b 2>&5 || hard_links=no
12999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13000  echo "$as_me:$LINENO: result: $hard_links" >&5
13001echo "${ECHO_T}$hard_links" >&6
13002  if test "$hard_links" = no; then
13003    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13004echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13005    need_locks=warn
13006  fi
13007else
13008  need_locks=no
13009fi
13010
13011echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13012echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13013
13014  runpath_var=
13015  allow_undefined_flag_F77=
13016  enable_shared_with_static_runtimes_F77=no
13017  archive_cmds_F77=
13018  archive_expsym_cmds_F77=
13019  old_archive_From_new_cmds_F77=
13020  old_archive_from_expsyms_cmds_F77=
13021  export_dynamic_flag_spec_F77=
13022  whole_archive_flag_spec_F77=
13023  thread_safe_flag_spec_F77=
13024  hardcode_libdir_flag_spec_F77=
13025  hardcode_libdir_flag_spec_ld_F77=
13026  hardcode_libdir_separator_F77=
13027  hardcode_direct_F77=no
13028  hardcode_minus_L_F77=no
13029  hardcode_shlibpath_var_F77=unsupported
13030  link_all_deplibs_F77=unknown
13031  hardcode_automatic_F77=no
13032  module_cmds_F77=
13033  module_expsym_cmds_F77=
13034  always_export_symbols_F77=no
13035  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13036  # include_expsyms should be a list of space-separated symbols to be *always*
13037  # included in the symbol list
13038  include_expsyms_F77=
13039  # exclude_expsyms can be an extended regexp of symbols to exclude
13040  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13041  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13042  # as well as any symbol that contains `d'.
13043  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13044  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13045  # platforms (ab)use it in PIC code, but their linkers get confused if
13046  # the symbol is explicitly referenced.  Since portable code cannot
13047  # rely on this symbol name, it's probably fine to never include it in
13048  # preloaded symbol tables.
13049  extract_expsyms_cmds=
13050  # Just being paranoid about ensuring that cc_basename is set.
13051  for cc_temp in $compiler""; do
13052  case $cc_temp in
13053    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13054    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13055    \-*) ;;
13056    *) break;;
13057  esac
13058done
13059cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13060
13061  case $host_os in
13062  cygwin* | mingw* | pw32*)
13063    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13064    # When not using gcc, we currently assume that we are using
13065    # Microsoft Visual C++.
13066    if test "$GCC" != yes; then
13067      with_gnu_ld=no
13068    fi
13069    ;;
13070  interix*)
13071    # we just hope/assume this is gcc and not c89 (= MSVC++)
13072    with_gnu_ld=yes
13073    ;;
13074  openbsd*)
13075    with_gnu_ld=no
13076    ;;
13077  esac
13078
13079  ld_shlibs_F77=yes
13080  if test "$with_gnu_ld" = yes; then
13081    # If archive_cmds runs LD, not CC, wlarc should be empty
13082    wlarc='${wl}'
13083
13084    # Set some defaults for GNU ld with shared library support. These
13085    # are reset later if shared libraries are not supported. Putting them
13086    # here allows them to be overridden if necessary.
13087    runpath_var=LD_RUN_PATH
13088    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13089    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13090    # ancient GNU ld didn't support --whole-archive et. al.
13091    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13092	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13093      else
13094  	whole_archive_flag_spec_F77=
13095    fi
13096    supports_anon_versioning=no
13097    case `$LD -v 2>/dev/null` in
13098      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13099      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13100      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13101      *\ 2.11.*) ;; # other 2.11 versions
13102      *) supports_anon_versioning=yes ;;
13103    esac
13104
13105    # See if GNU ld supports shared libraries.
13106    case $host_os in
13107    aix3* | aix4* | aix5*)
13108      # On AIX/PPC, the GNU linker is very broken
13109      if test "$host_cpu" != ia64; then
13110	ld_shlibs_F77=no
13111	cat <<EOF 1>&2
13112
13113*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13114*** to be unable to reliably create shared libraries on AIX.
13115*** Therefore, libtool is disabling shared libraries support.  If you
13116*** really care for shared libraries, you may want to modify your PATH
13117*** so that a non-GNU linker is found, and then restart.
13118
13119EOF
13120      fi
13121      ;;
13122
13123    amigaos*)
13124      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)'
13125      hardcode_libdir_flag_spec_F77='-L$libdir'
13126      hardcode_minus_L_F77=yes
13127
13128      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13129      # that the semantics of dynamic libraries on AmigaOS, at least up
13130      # to version 4, is to share data among multiple programs linked
13131      # with the same dynamic library.  Since this doesn't match the
13132      # behavior of shared libraries on other platforms, we can't use
13133      # them.
13134      ld_shlibs_F77=no
13135      ;;
13136
13137    beos*)
13138      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13139	allow_undefined_flag_F77=unsupported
13140	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13141	# support --undefined.  This deserves some investigation.  FIXME
13142	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143      else
13144	ld_shlibs_F77=no
13145      fi
13146      ;;
13147
13148    cygwin* | mingw* | pw32*)
13149      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13150      # as there is no search path for DLLs.
13151      hardcode_libdir_flag_spec_F77='-L$libdir'
13152      allow_undefined_flag_F77=unsupported
13153      always_export_symbols_F77=no
13154      enable_shared_with_static_runtimes_F77=yes
13155      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13156
13157      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13158        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13159	# If the export-symbols file already is a .def file (1st line
13160	# is EXPORTS), use it as is; otherwise, prepend...
13161	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13162	  cp $export_symbols $output_objdir/$soname.def;
13163	else
13164	  echo EXPORTS > $output_objdir/$soname.def;
13165	  cat $export_symbols >> $output_objdir/$soname.def;
13166	fi~
13167	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13168      else
13169	ld_shlibs_F77=no
13170      fi
13171      ;;
13172
13173    interix3*)
13174      hardcode_direct_F77=no
13175      hardcode_shlibpath_var_F77=no
13176      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13177      export_dynamic_flag_spec_F77='${wl}-E'
13178      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13179      # Instead, shared libraries are loaded at an image base (0x10000000 by
13180      # default) and relocated if they conflict, which is a slow very memory
13181      # consuming and fragmenting process.  To avoid this, we pick a random,
13182      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13183      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13184      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'
13185      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'
13186      ;;
13187
13188    linux*)
13189      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13190	tmp_addflag=
13191	case $cc_basename,$host_cpu in
13192	pgcc*)				# Portland Group C compiler
13193	  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'
13194	  tmp_addflag=' $pic_flag'
13195	  ;;
13196	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13197	  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'
13198	  tmp_addflag=' $pic_flag -Mnomain' ;;
13199	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13200	  tmp_addflag=' -i_dynamic' ;;
13201	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13202	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13203	ifc* | ifort*)			# Intel Fortran compiler
13204	  tmp_addflag=' -nofor_main' ;;
13205	esac
13206	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13207
13208	if test $supports_anon_versioning = yes; then
13209	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13210  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13211  $echo "local: *; };" >> $output_objdir/$libname.ver~
13212	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13213	fi
13214      else
13215	ld_shlibs_F77=no
13216      fi
13217      ;;
13218
13219    netbsd*)
13220      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13221	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13222	wlarc=
13223      else
13224	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13225	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13226      fi
13227      ;;
13228
13229    solaris*)
13230      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13231	ld_shlibs_F77=no
13232	cat <<EOF 1>&2
13233
13234*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13235*** create shared libraries on Solaris systems.  Therefore, libtool
13236*** is disabling shared libraries support.  We urge you to upgrade GNU
13237*** binutils to release 2.9.1 or newer.  Another option is to modify
13238*** your PATH or compiler configuration so that the native linker is
13239*** used, and then restart.
13240
13241EOF
13242      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13243	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13244	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13245      else
13246	ld_shlibs_F77=no
13247      fi
13248      ;;
13249
13250    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13251      case `$LD -v 2>&1` in
13252        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13253	ld_shlibs_F77=no
13254	cat <<_LT_EOF 1>&2
13255
13256*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13257*** reliably create shared libraries on SCO systems.  Therefore, libtool
13258*** is disabling shared libraries support.  We urge you to upgrade GNU
13259*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13260*** your PATH or compiler configuration so that the native linker is
13261*** used, and then restart.
13262
13263_LT_EOF
13264	;;
13265	*)
13266	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13267	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13268	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13269	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13270	  else
13271	    ld_shlibs_F77=no
13272	  fi
13273	;;
13274      esac
13275      ;;
13276
13277    sunos4*)
13278      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13279      wlarc=
13280      hardcode_direct_F77=yes
13281      hardcode_shlibpath_var_F77=no
13282      ;;
13283
13284    *)
13285      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13286	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13288      else
13289	ld_shlibs_F77=no
13290      fi
13291      ;;
13292    esac
13293
13294    if test "$ld_shlibs_F77" = no; then
13295      runpath_var=
13296      hardcode_libdir_flag_spec_F77=
13297      export_dynamic_flag_spec_F77=
13298      whole_archive_flag_spec_F77=
13299    fi
13300  else
13301    # PORTME fill in a description of your system's linker (not GNU ld)
13302    case $host_os in
13303    aix3*)
13304      allow_undefined_flag_F77=unsupported
13305      always_export_symbols_F77=yes
13306      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'
13307      # Note: this linker hardcodes the directories in LIBPATH if there
13308      # are no directories specified by -L.
13309      hardcode_minus_L_F77=yes
13310      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13311	# Neither direct hardcoding nor static linking is supported with a
13312	# broken collect2.
13313	hardcode_direct_F77=unsupported
13314      fi
13315      ;;
13316
13317    aix4* | aix5*)
13318      if test "$host_cpu" = ia64; then
13319	# On IA64, the linker does run time linking by default, so we don't
13320	# have to do anything special.
13321	aix_use_runtimelinking=no
13322	exp_sym_flag='-Bexport'
13323	no_entry_flag=""
13324      else
13325	# If we're using GNU nm, then we don't want the "-C" option.
13326	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13327	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13328	  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'
13329	else
13330	  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'
13331	fi
13332	aix_use_runtimelinking=no
13333
13334	# Test if we are trying to use run time linking or normal
13335	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13336	# need to do runtime linking.
13337	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13338	  for ld_flag in $LDFLAGS; do
13339  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13340  	    aix_use_runtimelinking=yes
13341  	    break
13342  	  fi
13343	  done
13344	  ;;
13345	esac
13346
13347	exp_sym_flag='-bexport'
13348	no_entry_flag='-bnoentry'
13349      fi
13350
13351      # When large executables or shared objects are built, AIX ld can
13352      # have problems creating the table of contents.  If linking a library
13353      # or program results in "error TOC overflow" add -mminimal-toc to
13354      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13355      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13356
13357      archive_cmds_F77=''
13358      hardcode_direct_F77=yes
13359      hardcode_libdir_separator_F77=':'
13360      link_all_deplibs_F77=yes
13361
13362      if test "$GCC" = yes; then
13363	case $host_os in aix4.[012]|aix4.[012].*)
13364	# We only want to do this on AIX 4.2 and lower, the check
13365	# below for broken collect2 doesn't work under 4.3+
13366	  collect2name=`${CC} -print-prog-name=collect2`
13367	  if test -f "$collect2name" && \
13368  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13369	  then
13370  	  # We have reworked collect2
13371  	  hardcode_direct_F77=yes
13372	  else
13373  	  # We have old collect2
13374  	  hardcode_direct_F77=unsupported
13375  	  # It fails to find uninstalled libraries when the uninstalled
13376  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13377  	  # to unsupported forces relinking
13378  	  hardcode_minus_L_F77=yes
13379  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13380  	  hardcode_libdir_separator_F77=
13381	  fi
13382	  ;;
13383	esac
13384	shared_flag='-shared'
13385	if test "$aix_use_runtimelinking" = yes; then
13386	  shared_flag="$shared_flag "'${wl}-G'
13387	fi
13388      else
13389	# not using gcc
13390	if test "$host_cpu" = ia64; then
13391  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13392  	# chokes on -Wl,-G. The following line is correct:
13393	  shared_flag='-G'
13394	else
13395	  if test "$aix_use_runtimelinking" = yes; then
13396	    shared_flag='${wl}-G'
13397	  else
13398	    shared_flag='${wl}-bM:SRE'
13399	  fi
13400	fi
13401      fi
13402
13403      # It seems that -bexpall does not export symbols beginning with
13404      # underscore (_), so it is better to generate a list of symbols to export.
13405      always_export_symbols_F77=yes
13406      if test "$aix_use_runtimelinking" = yes; then
13407	# Warning - without using the other runtime loading flags (-brtl),
13408	# -berok will link without error, but may produce a broken library.
13409	allow_undefined_flag_F77='-berok'
13410       # Determine the default libpath from the value encoded in an empty executable.
13411       cat >conftest.$ac_ext <<_ACEOF
13412      program main
13413
13414      end
13415_ACEOF
13416rm -f conftest.$ac_objext conftest$ac_exeext
13417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418  (eval $ac_link) 2>conftest.er1
13419  ac_status=$?
13420  grep -v '^ *+' conftest.er1 >conftest.err
13421  rm -f conftest.er1
13422  cat conftest.err >&5
13423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424  (exit $ac_status); } &&
13425	 { ac_try='test -z "$ac_f77_werror_flag"
13426			 || test ! -s conftest.err'
13427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428  (eval $ac_try) 2>&5
13429  ac_status=$?
13430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431  (exit $ac_status); }; } &&
13432	 { ac_try='test -s conftest$ac_exeext'
13433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434  (eval $ac_try) 2>&5
13435  ac_status=$?
13436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437  (exit $ac_status); }; }; then
13438
13439aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13440}'`
13441# Check for a 64-bit object if we didn't find anything.
13442if 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; }
13443}'`; fi
13444else
13445  echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448fi
13449rm -f conftest.err conftest.$ac_objext \
13450      conftest$ac_exeext conftest.$ac_ext
13451if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13452
13453       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13454	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"
13455       else
13456	if test "$host_cpu" = ia64; then
13457	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13458	  allow_undefined_flag_F77="-z nodefs"
13459	  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"
13460	else
13461	 # Determine the default libpath from the value encoded in an empty executable.
13462	 cat >conftest.$ac_ext <<_ACEOF
13463      program main
13464
13465      end
13466_ACEOF
13467rm -f conftest.$ac_objext conftest$ac_exeext
13468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469  (eval $ac_link) 2>conftest.er1
13470  ac_status=$?
13471  grep -v '^ *+' conftest.er1 >conftest.err
13472  rm -f conftest.er1
13473  cat conftest.err >&5
13474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475  (exit $ac_status); } &&
13476	 { ac_try='test -z "$ac_f77_werror_flag"
13477			 || test ! -s conftest.err'
13478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479  (eval $ac_try) 2>&5
13480  ac_status=$?
13481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482  (exit $ac_status); }; } &&
13483	 { ac_try='test -s conftest$ac_exeext'
13484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485  (eval $ac_try) 2>&5
13486  ac_status=$?
13487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488  (exit $ac_status); }; }; then
13489
13490aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13491}'`
13492# Check for a 64-bit object if we didn't find anything.
13493if 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; }
13494}'`; fi
13495else
13496  echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499fi
13500rm -f conftest.err conftest.$ac_objext \
13501      conftest$ac_exeext conftest.$ac_ext
13502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13503
13504	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13505	  # Warning - without using the other run time loading flags,
13506	  # -berok will link without error, but may produce a broken library.
13507	  no_undefined_flag_F77=' ${wl}-bernotok'
13508	  allow_undefined_flag_F77=' ${wl}-berok'
13509	  # Exported symbols can be pulled into shared objects from archives
13510	  whole_archive_flag_spec_F77='$convenience'
13511	  archive_cmds_need_lc_F77=yes
13512	  # This is similar to how AIX traditionally builds its shared libraries.
13513	  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'
13514	fi
13515      fi
13516      ;;
13517
13518    amigaos*)
13519      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)'
13520      hardcode_libdir_flag_spec_F77='-L$libdir'
13521      hardcode_minus_L_F77=yes
13522      # see comment about different semantics on the GNU ld section
13523      ld_shlibs_F77=no
13524      ;;
13525
13526    bsdi[45]*)
13527      export_dynamic_flag_spec_F77=-rdynamic
13528      ;;
13529
13530    cygwin* | mingw* | pw32*)
13531      # When not using gcc, we currently assume that we are using
13532      # Microsoft Visual C++.
13533      # hardcode_libdir_flag_spec is actually meaningless, as there is
13534      # no search path for DLLs.
13535      hardcode_libdir_flag_spec_F77=' '
13536      allow_undefined_flag_F77=unsupported
13537      # Tell ltmain to make .lib files, not .a files.
13538      libext=lib
13539      # Tell ltmain to make .dll files, not .so files.
13540      shrext_cmds=".dll"
13541      # FIXME: Setting linknames here is a bad hack.
13542      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13543      # The linker will automatically build a .lib file if we build a DLL.
13544      old_archive_From_new_cmds_F77='true'
13545      # FIXME: Should let the user specify the lib program.
13546      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13547      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13548      enable_shared_with_static_runtimes_F77=yes
13549      ;;
13550
13551    darwin* | rhapsody*)
13552      case $host_os in
13553        rhapsody* | darwin1.[012])
13554         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13555         ;;
13556       *) # Darwin 1.3 on
13557         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13558           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13559         else
13560           case ${MACOSX_DEPLOYMENT_TARGET} in
13561             10.[012])
13562               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13563               ;;
13564             10.*)
13565               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13566               ;;
13567           esac
13568         fi
13569         ;;
13570      esac
13571      archive_cmds_need_lc_F77=no
13572      hardcode_direct_F77=no
13573      hardcode_automatic_F77=yes
13574      hardcode_shlibpath_var_F77=unsupported
13575      whole_archive_flag_spec_F77=''
13576      link_all_deplibs_F77=yes
13577    if test "$GCC" = yes ; then
13578    	output_verbose_link_cmd='echo'
13579        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13580      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13581      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13582      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}'
13583      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}'
13584    else
13585      case $cc_basename in
13586        xlc*)
13587         output_verbose_link_cmd='echo'
13588         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13589         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13590          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13591         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}'
13592          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}'
13593          ;;
13594       *)
13595         ld_shlibs_F77=no
13596          ;;
13597      esac
13598    fi
13599      ;;
13600
13601    dgux*)
13602      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13603      hardcode_libdir_flag_spec_F77='-L$libdir'
13604      hardcode_shlibpath_var_F77=no
13605      ;;
13606
13607    freebsd1*)
13608      ld_shlibs_F77=no
13609      ;;
13610
13611    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13612    # support.  Future versions do this automatically, but an explicit c++rt0.o
13613    # does not break anything, and helps significantly (at the cost of a little
13614    # extra space).
13615    freebsd2.2*)
13616      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13617      hardcode_libdir_flag_spec_F77='-R$libdir'
13618      hardcode_direct_F77=yes
13619      hardcode_shlibpath_var_F77=no
13620      ;;
13621
13622    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13623    freebsd2*)
13624      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13625      hardcode_direct_F77=yes
13626      hardcode_minus_L_F77=yes
13627      hardcode_shlibpath_var_F77=no
13628      ;;
13629
13630    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13631    freebsd* | kfreebsd*-gnu | dragonfly*)
13632      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13633      hardcode_libdir_flag_spec_F77='-R$libdir'
13634      hardcode_direct_F77=yes
13635      hardcode_shlibpath_var_F77=no
13636      ;;
13637
13638    hpux9*)
13639      if test "$GCC" = yes; then
13640	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'
13641      else
13642	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'
13643      fi
13644      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13645      hardcode_libdir_separator_F77=:
13646      hardcode_direct_F77=yes
13647
13648      # hardcode_minus_L: Not really in the search PATH,
13649      # but as the default location of the library.
13650      hardcode_minus_L_F77=yes
13651      export_dynamic_flag_spec_F77='${wl}-E'
13652      ;;
13653
13654    hpux10*)
13655      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13656	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13657      else
13658	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13659      fi
13660      if test "$with_gnu_ld" = no; then
13661	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13662	hardcode_libdir_separator_F77=:
13663
13664	hardcode_direct_F77=yes
13665	export_dynamic_flag_spec_F77='${wl}-E'
13666
13667	# hardcode_minus_L: Not really in the search PATH,
13668	# but as the default location of the library.
13669	hardcode_minus_L_F77=yes
13670      fi
13671      ;;
13672
13673    hpux11*)
13674      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13675	case $host_cpu in
13676	hppa*64*)
13677	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13678	  ;;
13679	ia64*)
13680	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13681	  ;;
13682	*)
13683	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13684	  ;;
13685	esac
13686      else
13687	case $host_cpu in
13688	hppa*64*)
13689	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13690	  ;;
13691	ia64*)
13692	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13693	  ;;
13694	*)
13695	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13696	  ;;
13697	esac
13698      fi
13699      if test "$with_gnu_ld" = no; then
13700	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13701	hardcode_libdir_separator_F77=:
13702
13703	case $host_cpu in
13704	hppa*64*|ia64*)
13705	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13706	  hardcode_direct_F77=no
13707	  hardcode_shlibpath_var_F77=no
13708	  ;;
13709	*)
13710	  hardcode_direct_F77=yes
13711	  export_dynamic_flag_spec_F77='${wl}-E'
13712
13713	  # hardcode_minus_L: Not really in the search PATH,
13714	  # but as the default location of the library.
13715	  hardcode_minus_L_F77=yes
13716	  ;;
13717	esac
13718      fi
13719      ;;
13720
13721    irix5* | irix6* | nonstopux*)
13722      if test "$GCC" = yes; then
13723	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'
13724      else
13725	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'
13726	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13727      fi
13728      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13729      hardcode_libdir_separator_F77=:
13730      link_all_deplibs_F77=yes
13731      ;;
13732
13733    netbsd*)
13734      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13735	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13736      else
13737	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13738      fi
13739      hardcode_libdir_flag_spec_F77='-R$libdir'
13740      hardcode_direct_F77=yes
13741      hardcode_shlibpath_var_F77=no
13742      ;;
13743
13744    newsos6)
13745      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13746      hardcode_direct_F77=yes
13747      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13748      hardcode_libdir_separator_F77=:
13749      hardcode_shlibpath_var_F77=no
13750      ;;
13751
13752    openbsd*)
13753      hardcode_direct_F77=yes
13754      hardcode_shlibpath_var_F77=no
13755      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13756	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13757	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13758	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13759	export_dynamic_flag_spec_F77='${wl}-E'
13760      else
13761       case $host_os in
13762	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13763	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13764	   hardcode_libdir_flag_spec_F77='-R$libdir'
13765	   ;;
13766	 *)
13767	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13768	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13769	   ;;
13770       esac
13771      fi
13772      ;;
13773
13774    os2*)
13775      hardcode_libdir_flag_spec_F77='-L$libdir'
13776      hardcode_minus_L_F77=yes
13777      allow_undefined_flag_F77=unsupported
13778      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'
13779      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13780      ;;
13781
13782    osf3*)
13783      if test "$GCC" = yes; then
13784	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13785	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'
13786      else
13787	allow_undefined_flag_F77=' -expect_unresolved \*'
13788	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'
13789      fi
13790      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13791      hardcode_libdir_separator_F77=:
13792      ;;
13793
13794    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13795      if test "$GCC" = yes; then
13796	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13797	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'
13798	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13799      else
13800	allow_undefined_flag_F77=' -expect_unresolved \*'
13801	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'
13802	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~
13803	$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'
13804
13805	# Both c and cxx compiler support -rpath directly
13806	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13807      fi
13808      hardcode_libdir_separator_F77=:
13809      ;;
13810
13811    solaris*)
13812      no_undefined_flag_F77=' -z text'
13813      if test "$GCC" = yes; then
13814	wlarc='${wl}'
13815	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13816	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13817	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13818      else
13819	wlarc=''
13820	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13821	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13822  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13823      fi
13824      hardcode_libdir_flag_spec_F77='-R$libdir'
13825      hardcode_shlibpath_var_F77=no
13826      case $host_os in
13827      solaris2.[0-5] | solaris2.[0-5].*) ;;
13828      *)
13829 	# The compiler driver will combine linker options so we
13830 	# cannot just pass the convience library names through
13831 	# without $wl, iff we do not link with $LD.
13832 	# Luckily, gcc supports the same syntax we need for Sun Studio.
13833 	# Supported since Solaris 2.6 (maybe 2.5.1?)
13834 	case $wlarc in
13835 	'')
13836 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13837 	*)
13838 	  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' ;;
13839 	esac ;;
13840      esac
13841      link_all_deplibs_F77=yes
13842      ;;
13843
13844    sunos4*)
13845      if test "x$host_vendor" = xsequent; then
13846	# Use $CC to link under sequent, because it throws in some extra .o
13847	# files that make .init and .fini sections work.
13848	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13849      else
13850	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13851      fi
13852      hardcode_libdir_flag_spec_F77='-L$libdir'
13853      hardcode_direct_F77=yes
13854      hardcode_minus_L_F77=yes
13855      hardcode_shlibpath_var_F77=no
13856      ;;
13857
13858    sysv4)
13859      case $host_vendor in
13860	sni)
13861	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862	  hardcode_direct_F77=yes # is this really true???
13863	;;
13864	siemens)
13865	  ## LD is ld it makes a PLAMLIB
13866	  ## CC just makes a GrossModule.
13867	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13868	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13869	  hardcode_direct_F77=no
13870        ;;
13871	motorola)
13872	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13874	;;
13875      esac
13876      runpath_var='LD_RUN_PATH'
13877      hardcode_shlibpath_var_F77=no
13878      ;;
13879
13880    sysv4.3*)
13881      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882      hardcode_shlibpath_var_F77=no
13883      export_dynamic_flag_spec_F77='-Bexport'
13884      ;;
13885
13886    sysv4*MP*)
13887      if test -d /usr/nec; then
13888	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13889	hardcode_shlibpath_var_F77=no
13890	runpath_var=LD_RUN_PATH
13891	hardcode_runpath_var=yes
13892	ld_shlibs_F77=yes
13893      fi
13894      ;;
13895
13896    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13897      no_undefined_flag_F77='${wl}-z,text'
13898      archive_cmds_need_lc_F77=no
13899      hardcode_shlibpath_var_F77=no
13900      runpath_var='LD_RUN_PATH'
13901
13902      if test "$GCC" = yes; then
13903	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13904	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13905      else
13906	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13907	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13908      fi
13909      ;;
13910
13911    sysv5* | sco3.2v5* | sco5v6*)
13912      # Note: We can NOT use -z defs as we might desire, because we do not
13913      # link with -lc, and that would cause any symbols used from libc to
13914      # always be unresolved, which means just about no library would
13915      # ever link correctly.  If we're not using GNU ld we use -z text
13916      # though, which does catch some bad symbols but isn't as heavy-handed
13917      # as -z defs.
13918      no_undefined_flag_F77='${wl}-z,text'
13919      allow_undefined_flag_F77='${wl}-z,nodefs'
13920      archive_cmds_need_lc_F77=no
13921      hardcode_shlibpath_var_F77=no
13922      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13923      hardcode_libdir_separator_F77=':'
13924      link_all_deplibs_F77=yes
13925      export_dynamic_flag_spec_F77='${wl}-Bexport'
13926      runpath_var='LD_RUN_PATH'
13927
13928      if test "$GCC" = yes; then
13929	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13930	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13931      else
13932	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13933	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13934      fi
13935      ;;
13936
13937    uts4*)
13938      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13939      hardcode_libdir_flag_spec_F77='-L$libdir'
13940      hardcode_shlibpath_var_F77=no
13941      ;;
13942
13943    *)
13944      ld_shlibs_F77=no
13945      ;;
13946    esac
13947  fi
13948
13949echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13950echo "${ECHO_T}$ld_shlibs_F77" >&6
13951test "$ld_shlibs_F77" = no && can_build_shared=no
13952
13953#
13954# Do we need to explicitly link libc?
13955#
13956case "x$archive_cmds_need_lc_F77" in
13957x|xyes)
13958  # Assume -lc should be added
13959  archive_cmds_need_lc_F77=yes
13960
13961  if test "$enable_shared" = yes && test "$GCC" = yes; then
13962    case $archive_cmds_F77 in
13963    *'~'*)
13964      # FIXME: we may have to deal with multi-command sequences.
13965      ;;
13966    '$CC '*)
13967      # Test whether the compiler implicitly links with -lc since on some
13968      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13969      # to ld, don't add -lc before -lgcc.
13970      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13971echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13972      $rm conftest*
13973      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13974
13975      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976  (eval $ac_compile) 2>&5
13977  ac_status=$?
13978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979  (exit $ac_status); } 2>conftest.err; then
13980        soname=conftest
13981        lib=conftest
13982        libobjs=conftest.$ac_objext
13983        deplibs=
13984        wl=$lt_prog_compiler_wl_F77
13985	pic_flag=$lt_prog_compiler_pic_F77
13986        compiler_flags=-v
13987        linker_flags=-v
13988        verstring=
13989        output_objdir=.
13990        libname=conftest
13991        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13992        allow_undefined_flag_F77=
13993        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13994  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13995  ac_status=$?
13996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997  (exit $ac_status); }
13998        then
13999	  archive_cmds_need_lc_F77=no
14000        else
14001	  archive_cmds_need_lc_F77=yes
14002        fi
14003        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14004      else
14005        cat conftest.err 1>&5
14006      fi
14007      $rm conftest*
14008      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14009echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14010      ;;
14011    esac
14012  fi
14013  ;;
14014esac
14015
14016echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14017echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14018library_names_spec=
14019libname_spec='lib$name'
14020soname_spec=
14021shrext_cmds=".so"
14022postinstall_cmds=
14023postuninstall_cmds=
14024finish_cmds=
14025finish_eval=
14026shlibpath_var=
14027shlibpath_overrides_runpath=unknown
14028version_type=none
14029dynamic_linker="$host_os ld.so"
14030sys_lib_dlsearch_path_spec="/lib /usr/lib"
14031if test "$GCC" = yes; then
14032  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14033  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14034    # if the path contains ";" then we assume it to be the separator
14035    # otherwise default to the standard path separator (i.e. ":") - it is
14036    # assumed that no part of a normal pathname contains ";" but that should
14037    # okay in the real world where ";" in dirpaths is itself problematic.
14038    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14039  else
14040    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14041  fi
14042else
14043  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14044fi
14045need_lib_prefix=unknown
14046hardcode_into_libs=no
14047
14048# when you set need_version to no, make sure it does not cause -set_version
14049# flags to be left without arguments
14050need_version=unknown
14051
14052case $host_os in
14053aix3*)
14054  version_type=linux
14055  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14056  shlibpath_var=LIBPATH
14057
14058  # AIX 3 has no versioning support, so we append a major version to the name.
14059  soname_spec='${libname}${release}${shared_ext}$major'
14060  ;;
14061
14062aix4* | aix5*)
14063  version_type=linux
14064  need_lib_prefix=no
14065  need_version=no
14066  hardcode_into_libs=yes
14067  if test "$host_cpu" = ia64; then
14068    # AIX 5 supports IA64
14069    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14070    shlibpath_var=LD_LIBRARY_PATH
14071  else
14072    # With GCC up to 2.95.x, collect2 would create an import file
14073    # for dependence libraries.  The import file would start with
14074    # the line `#! .'.  This would cause the generated library to
14075    # depend on `.', always an invalid library.  This was fixed in
14076    # development snapshots of GCC prior to 3.0.
14077    case $host_os in
14078      aix4 | aix4.[01] | aix4.[01].*)
14079      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14080	   echo ' yes '
14081	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14082	:
14083      else
14084	can_build_shared=no
14085      fi
14086      ;;
14087    esac
14088    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14089    # soname into executable. Probably we can add versioning support to
14090    # collect2, so additional links can be useful in future.
14091    if test "$aix_use_runtimelinking" = yes; then
14092      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14093      # instead of lib<name>.a to let people know that these are not
14094      # typical AIX shared libraries.
14095      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096    else
14097      # We preserve .a as extension for shared libraries through AIX4.2
14098      # and later when we are not doing run time linking.
14099      library_names_spec='${libname}${release}.a $libname.a'
14100      soname_spec='${libname}${release}${shared_ext}$major'
14101    fi
14102    shlibpath_var=LIBPATH
14103  fi
14104  ;;
14105
14106amigaos*)
14107  library_names_spec='$libname.ixlibrary $libname.a'
14108  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14109  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'
14110  ;;
14111
14112beos*)
14113  library_names_spec='${libname}${shared_ext}'
14114  dynamic_linker="$host_os ld.so"
14115  shlibpath_var=LIBRARY_PATH
14116  ;;
14117
14118bsdi[45]*)
14119  version_type=linux
14120  need_version=no
14121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122  soname_spec='${libname}${release}${shared_ext}$major'
14123  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14124  shlibpath_var=LD_LIBRARY_PATH
14125  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14126  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14127  # the default ld.so.conf also contains /usr/contrib/lib and
14128  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14129  # libtool to hard-code these into programs
14130  ;;
14131
14132cygwin* | mingw* | pw32*)
14133  version_type=windows
14134  shrext_cmds=".dll"
14135  need_version=no
14136  need_lib_prefix=no
14137
14138  case $GCC,$host_os in
14139  yes,cygwin* | yes,mingw* | yes,pw32*)
14140    library_names_spec='$libname.dll.a'
14141    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14142    postinstall_cmds='base_file=`basename \${file}`~
14143      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14144      dldir=$destdir/`dirname \$dlpath`~
14145      test -d \$dldir || mkdir -p \$dldir~
14146      $install_prog $dir/$dlname \$dldir/$dlname~
14147      chmod a+x \$dldir/$dlname'
14148    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14149      dlpath=$dir/\$dldll~
14150       $rm \$dlpath'
14151    shlibpath_overrides_runpath=yes
14152
14153    case $host_os in
14154    cygwin*)
14155      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14156      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14157      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14158      ;;
14159    mingw*)
14160      # MinGW DLLs use traditional 'lib' prefix
14161      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14162      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14163      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14164        # It is most probably a Windows format PATH printed by
14165        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14166        # path with ; separators, and with drive letters. We can handle the
14167        # drive letters (cygwin fileutils understands them), so leave them,
14168        # especially as we might pass files found there to a mingw objdump,
14169        # which wouldn't understand a cygwinified path. Ahh.
14170        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14171      else
14172        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14173      fi
14174      ;;
14175    pw32*)
14176      # pw32 DLLs use 'pw' prefix rather than 'lib'
14177      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178      ;;
14179    esac
14180    ;;
14181
14182  *)
14183    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14184    ;;
14185  esac
14186  dynamic_linker='Win32 ld.exe'
14187  # FIXME: first we should search . and the directory the executable is in
14188  shlibpath_var=PATH
14189  ;;
14190
14191darwin* | rhapsody*)
14192  dynamic_linker="$host_os dyld"
14193  version_type=darwin
14194  need_lib_prefix=no
14195  need_version=no
14196  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14197  soname_spec='${libname}${release}${major}$shared_ext'
14198  shlibpath_overrides_runpath=yes
14199  shlibpath_var=DYLD_LIBRARY_PATH
14200  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14201  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14202  if test "$GCC" = yes; then
14203    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"`
14204  else
14205    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14206  fi
14207  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14208  ;;
14209
14210dgux*)
14211  version_type=linux
14212  need_lib_prefix=no
14213  need_version=no
14214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14215  soname_spec='${libname}${release}${shared_ext}$major'
14216  shlibpath_var=LD_LIBRARY_PATH
14217  ;;
14218
14219freebsd1*)
14220  dynamic_linker=no
14221  ;;
14222
14223kfreebsd*-gnu)
14224  version_type=linux
14225  need_lib_prefix=no
14226  need_version=no
14227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14228  soname_spec='${libname}${release}${shared_ext}$major'
14229  shlibpath_var=LD_LIBRARY_PATH
14230  shlibpath_overrides_runpath=no
14231  hardcode_into_libs=yes
14232  dynamic_linker='GNU ld.so'
14233  ;;
14234
14235freebsd* | dragonfly*)
14236  # DragonFly does not have aout.  When/if they implement a new
14237  # versioning mechanism, adjust this.
14238  if test -x /usr/bin/objformat; then
14239    objformat=`/usr/bin/objformat`
14240  else
14241    case $host_os in
14242    freebsd[123]*) objformat=aout ;;
14243    *) objformat=elf ;;
14244    esac
14245  fi
14246  version_type=freebsd-$objformat
14247  case $version_type in
14248    freebsd-elf*)
14249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14250      need_version=no
14251      need_lib_prefix=no
14252      ;;
14253    freebsd-*)
14254      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14255      need_version=yes
14256      ;;
14257  esac
14258  shlibpath_var=LD_LIBRARY_PATH
14259  case $host_os in
14260  freebsd2*)
14261    shlibpath_overrides_runpath=yes
14262    ;;
14263  freebsd3.[01]* | freebsdelf3.[01]*)
14264    shlibpath_overrides_runpath=yes
14265    hardcode_into_libs=yes
14266    ;;
14267  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14268  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14269    shlibpath_overrides_runpath=no
14270    hardcode_into_libs=yes
14271    ;;
14272  freebsd*) # from 4.6 on
14273    shlibpath_overrides_runpath=yes
14274    hardcode_into_libs=yes
14275    ;;
14276  esac
14277  ;;
14278
14279gnu*)
14280  version_type=linux
14281  need_lib_prefix=no
14282  need_version=no
14283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14284  soname_spec='${libname}${release}${shared_ext}$major'
14285  shlibpath_var=LD_LIBRARY_PATH
14286  hardcode_into_libs=yes
14287  ;;
14288
14289hpux9* | hpux10* | hpux11*)
14290  # Give a soname corresponding to the major version so that dld.sl refuses to
14291  # link against other versions.
14292  version_type=sunos
14293  need_lib_prefix=no
14294  need_version=no
14295  case $host_cpu in
14296  ia64*)
14297    shrext_cmds='.so'
14298    hardcode_into_libs=yes
14299    dynamic_linker="$host_os dld.so"
14300    shlibpath_var=LD_LIBRARY_PATH
14301    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303    soname_spec='${libname}${release}${shared_ext}$major'
14304    if test "X$HPUX_IA64_MODE" = X32; then
14305      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14306    else
14307      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14308    fi
14309    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14310    ;;
14311   hppa*64*)
14312     shrext_cmds='.sl'
14313     hardcode_into_libs=yes
14314     dynamic_linker="$host_os dld.sl"
14315     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14316     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318     soname_spec='${libname}${release}${shared_ext}$major'
14319     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14320     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14321     ;;
14322   *)
14323    shrext_cmds='.sl'
14324    dynamic_linker="$host_os dld.sl"
14325    shlibpath_var=SHLIB_PATH
14326    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328    soname_spec='${libname}${release}${shared_ext}$major'
14329    ;;
14330  esac
14331  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14332  postinstall_cmds='chmod 555 $lib'
14333  ;;
14334
14335interix3*)
14336  version_type=linux
14337  need_lib_prefix=no
14338  need_version=no
14339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14340  soname_spec='${libname}${release}${shared_ext}$major'
14341  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14342  shlibpath_var=LD_LIBRARY_PATH
14343  shlibpath_overrides_runpath=no
14344  hardcode_into_libs=yes
14345  ;;
14346
14347irix5* | irix6* | nonstopux*)
14348  case $host_os in
14349    nonstopux*) version_type=nonstopux ;;
14350    *)
14351	if test "$lt_cv_prog_gnu_ld" = yes; then
14352		version_type=linux
14353	else
14354		version_type=irix
14355	fi ;;
14356  esac
14357  need_lib_prefix=no
14358  need_version=no
14359  soname_spec='${libname}${release}${shared_ext}$major'
14360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14361  case $host_os in
14362  irix5* | nonstopux*)
14363    libsuff= shlibsuff=
14364    ;;
14365  *)
14366    case $LD in # libtool.m4 will add one of these switches to LD
14367    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14368      libsuff= shlibsuff= libmagic=32-bit;;
14369    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14370      libsuff=32 shlibsuff=N32 libmagic=N32;;
14371    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14372      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14373    *) libsuff= shlibsuff= libmagic=never-match;;
14374    esac
14375    ;;
14376  esac
14377  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14378  shlibpath_overrides_runpath=no
14379  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14380  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14381  hardcode_into_libs=yes
14382  ;;
14383
14384# No shared lib support for Linux oldld, aout, or coff.
14385linux*oldld* | linux*aout* | linux*coff*)
14386  dynamic_linker=no
14387  ;;
14388
14389# This must be Linux ELF.
14390linux*)
14391  version_type=linux
14392  need_lib_prefix=no
14393  need_version=no
14394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395  soname_spec='${libname}${release}${shared_ext}$major'
14396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14397  shlibpath_var=LD_LIBRARY_PATH
14398  shlibpath_overrides_runpath=no
14399  # This implies no fast_install, which is unacceptable.
14400  # Some rework will be needed to allow for fast_install
14401  # before this can be enabled.
14402  hardcode_into_libs=yes
14403
14404  # find out which ABI we are using
14405  libsuff=
14406  case "$host_cpu" in
14407  x86_64*|s390x*|powerpc64*)
14408    echo '#line 14408 "configure"' > conftest.$ac_ext
14409    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14410  (eval $ac_compile) 2>&5
14411  ac_status=$?
14412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413  (exit $ac_status); }; then
14414      case `/usr/bin/file conftest.$ac_objext` in
14415      *64-bit*)
14416        libsuff=64
14417        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14418        ;;
14419      esac
14420    fi
14421    rm -rf conftest*
14422    ;;
14423  esac
14424
14425  # Append ld.so.conf contents to the search path
14426  if test -f /etc/ld.so.conf; then
14427    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' ' '`
14428    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14429  fi
14430
14431  # We used to test for /lib/ld.so.1 and disable shared libraries on
14432  # powerpc, because MkLinux only supported shared libraries with the
14433  # GNU dynamic linker.  Since this was broken with cross compilers,
14434  # most powerpc-linux boxes support dynamic linking these days and
14435  # people can always --disable-shared, the test was removed, and we
14436  # assume the GNU/Linux dynamic linker is in use.
14437  dynamic_linker='GNU/Linux ld.so'
14438  ;;
14439
14440knetbsd*-gnu)
14441  version_type=linux
14442  need_lib_prefix=no
14443  need_version=no
14444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14445  soname_spec='${libname}${release}${shared_ext}$major'
14446  shlibpath_var=LD_LIBRARY_PATH
14447  shlibpath_overrides_runpath=no
14448  hardcode_into_libs=yes
14449  dynamic_linker='GNU ld.so'
14450  ;;
14451
14452netbsd*)
14453  version_type=sunos
14454  need_lib_prefix=no
14455  need_version=no
14456  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459    dynamic_linker='NetBSD (a.out) ld.so'
14460  else
14461    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462    soname_spec='${libname}${release}${shared_ext}$major'
14463    dynamic_linker='NetBSD ld.elf_so'
14464  fi
14465  shlibpath_var=LD_LIBRARY_PATH
14466  shlibpath_overrides_runpath=yes
14467  hardcode_into_libs=yes
14468  ;;
14469
14470newsos6)
14471  version_type=linux
14472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473  shlibpath_var=LD_LIBRARY_PATH
14474  shlibpath_overrides_runpath=yes
14475  ;;
14476
14477nto-qnx*)
14478  version_type=linux
14479  need_lib_prefix=no
14480  need_version=no
14481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482  soname_spec='${libname}${release}${shared_ext}$major'
14483  shlibpath_var=LD_LIBRARY_PATH
14484  shlibpath_overrides_runpath=yes
14485  ;;
14486
14487openbsd*)
14488  version_type=sunos
14489  sys_lib_dlsearch_path_spec="/usr/lib"
14490  need_lib_prefix=no
14491  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14492  case $host_os in
14493    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14494    *)                         need_version=no  ;;
14495  esac
14496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14498  shlibpath_var=LD_LIBRARY_PATH
14499  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14500    case $host_os in
14501      openbsd2.[89] | openbsd2.[89].*)
14502	shlibpath_overrides_runpath=no
14503	;;
14504      *)
14505	shlibpath_overrides_runpath=yes
14506	;;
14507      esac
14508  else
14509    shlibpath_overrides_runpath=yes
14510  fi
14511  ;;
14512
14513os2*)
14514  libname_spec='$name'
14515  shrext_cmds=".dll"
14516  need_lib_prefix=no
14517  library_names_spec='$libname${shared_ext} $libname.a'
14518  dynamic_linker='OS/2 ld.exe'
14519  shlibpath_var=LIBPATH
14520  ;;
14521
14522osf3* | osf4* | osf5*)
14523  version_type=osf
14524  need_lib_prefix=no
14525  need_version=no
14526  soname_spec='${libname}${release}${shared_ext}$major'
14527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528  shlibpath_var=LD_LIBRARY_PATH
14529  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14530  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14531  ;;
14532
14533solaris*)
14534  version_type=linux
14535  need_lib_prefix=no
14536  need_version=no
14537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538  soname_spec='${libname}${release}${shared_ext}$major'
14539  shlibpath_var=LD_LIBRARY_PATH
14540  shlibpath_overrides_runpath=yes
14541  hardcode_into_libs=yes
14542  # ldd complains unless libraries are executable
14543  postinstall_cmds='chmod +x $lib'
14544  ;;
14545
14546sunos4*)
14547  version_type=sunos
14548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14549  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14550  shlibpath_var=LD_LIBRARY_PATH
14551  shlibpath_overrides_runpath=yes
14552  if test "$with_gnu_ld" = yes; then
14553    need_lib_prefix=no
14554  fi
14555  need_version=yes
14556  ;;
14557
14558sysv4 | sysv4.3*)
14559  version_type=linux
14560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561  soname_spec='${libname}${release}${shared_ext}$major'
14562  shlibpath_var=LD_LIBRARY_PATH
14563  case $host_vendor in
14564    sni)
14565      shlibpath_overrides_runpath=no
14566      need_lib_prefix=no
14567      export_dynamic_flag_spec='${wl}-Blargedynsym'
14568      runpath_var=LD_RUN_PATH
14569      ;;
14570    siemens)
14571      need_lib_prefix=no
14572      ;;
14573    motorola)
14574      need_lib_prefix=no
14575      need_version=no
14576      shlibpath_overrides_runpath=no
14577      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14578      ;;
14579  esac
14580  ;;
14581
14582sysv4*MP*)
14583  if test -d /usr/nec ;then
14584    version_type=linux
14585    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14586    soname_spec='$libname${shared_ext}.$major'
14587    shlibpath_var=LD_LIBRARY_PATH
14588  fi
14589  ;;
14590
14591sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14592  version_type=freebsd-elf
14593  need_lib_prefix=no
14594  need_version=no
14595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14596  soname_spec='${libname}${release}${shared_ext}$major'
14597  shlibpath_var=LD_LIBRARY_PATH
14598  hardcode_into_libs=yes
14599  if test "$with_gnu_ld" = yes; then
14600    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14601    shlibpath_overrides_runpath=no
14602  else
14603    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14604    shlibpath_overrides_runpath=yes
14605    case $host_os in
14606      sco3.2v5*)
14607        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14608	;;
14609    esac
14610  fi
14611  sys_lib_dlsearch_path_spec='/usr/lib'
14612  ;;
14613
14614uts4*)
14615  version_type=linux
14616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617  soname_spec='${libname}${release}${shared_ext}$major'
14618  shlibpath_var=LD_LIBRARY_PATH
14619  ;;
14620
14621*)
14622  dynamic_linker=no
14623  ;;
14624esac
14625echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14626echo "${ECHO_T}$dynamic_linker" >&6
14627test "$dynamic_linker" = no && can_build_shared=no
14628
14629variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14630if test "$GCC" = yes; then
14631  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14632fi
14633
14634echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14635echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14636hardcode_action_F77=
14637if test -n "$hardcode_libdir_flag_spec_F77" || \
14638   test -n "$runpath_var_F77" || \
14639   test "X$hardcode_automatic_F77" = "Xyes" ; then
14640
14641  # We can hardcode non-existant directories.
14642  if test "$hardcode_direct_F77" != no &&
14643     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14644     # have to relink, otherwise we might link with an installed library
14645     # when we should be linking with a yet-to-be-installed one
14646     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14647     test "$hardcode_minus_L_F77" != no; then
14648    # Linking always hardcodes the temporary library directory.
14649    hardcode_action_F77=relink
14650  else
14651    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14652    hardcode_action_F77=immediate
14653  fi
14654else
14655  # We cannot hardcode anything, or else we can only hardcode existing
14656  # directories.
14657  hardcode_action_F77=unsupported
14658fi
14659echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14660echo "${ECHO_T}$hardcode_action_F77" >&6
14661
14662if test "$hardcode_action_F77" = relink; then
14663  # Fast installation is not supported
14664  enable_fast_install=no
14665elif test "$shlibpath_overrides_runpath" = yes ||
14666     test "$enable_shared" = no; then
14667  # Fast installation is not necessary
14668  enable_fast_install=needless
14669fi
14670
14671
14672# The else clause should only fire when bootstrapping the
14673# libtool distribution, otherwise you forgot to ship ltmain.sh
14674# with your package, and you will get complaints that there are
14675# no rules to generate ltmain.sh.
14676if test -f "$ltmain"; then
14677  # See if we are running on zsh, and set the options which allow our commands through
14678  # without removal of \ escapes.
14679  if test -n "${ZSH_VERSION+set}" ; then
14680    setopt NO_GLOB_SUBST
14681  fi
14682  # Now quote all the things that may contain metacharacters while being
14683  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14684  # variables and quote the copies for generation of the libtool script.
14685  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14686    SED SHELL STRIP \
14687    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14688    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14689    deplibs_check_method reload_flag reload_cmds need_locks \
14690    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14691    lt_cv_sys_global_symbol_to_c_name_address \
14692    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14693    old_postinstall_cmds old_postuninstall_cmds \
14694    compiler_F77 \
14695    CC_F77 \
14696    LD_F77 \
14697    lt_prog_compiler_wl_F77 \
14698    lt_prog_compiler_pic_F77 \
14699    lt_prog_compiler_static_F77 \
14700    lt_prog_compiler_no_builtin_flag_F77 \
14701    export_dynamic_flag_spec_F77 \
14702    thread_safe_flag_spec_F77 \
14703    whole_archive_flag_spec_F77 \
14704    enable_shared_with_static_runtimes_F77 \
14705    old_archive_cmds_F77 \
14706    old_archive_from_new_cmds_F77 \
14707    predep_objects_F77 \
14708    postdep_objects_F77 \
14709    predeps_F77 \
14710    postdeps_F77 \
14711    compiler_lib_search_path_F77 \
14712    archive_cmds_F77 \
14713    archive_expsym_cmds_F77 \
14714    postinstall_cmds_F77 \
14715    postuninstall_cmds_F77 \
14716    old_archive_from_expsyms_cmds_F77 \
14717    allow_undefined_flag_F77 \
14718    no_undefined_flag_F77 \
14719    export_symbols_cmds_F77 \
14720    hardcode_libdir_flag_spec_F77 \
14721    hardcode_libdir_flag_spec_ld_F77 \
14722    hardcode_libdir_separator_F77 \
14723    hardcode_automatic_F77 \
14724    module_cmds_F77 \
14725    module_expsym_cmds_F77 \
14726    lt_cv_prog_compiler_c_o_F77 \
14727    exclude_expsyms_F77 \
14728    include_expsyms_F77; do
14729
14730    case $var in
14731    old_archive_cmds_F77 | \
14732    old_archive_from_new_cmds_F77 | \
14733    archive_cmds_F77 | \
14734    archive_expsym_cmds_F77 | \
14735    module_cmds_F77 | \
14736    module_expsym_cmds_F77 | \
14737    old_archive_from_expsyms_cmds_F77 | \
14738    export_symbols_cmds_F77 | \
14739    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14740    postinstall_cmds | postuninstall_cmds | \
14741    old_postinstall_cmds | old_postuninstall_cmds | \
14742    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14743      # Double-quote double-evaled strings.
14744      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14745      ;;
14746    *)
14747      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14748      ;;
14749    esac
14750  done
14751
14752  case $lt_echo in
14753  *'\$0 --fallback-echo"')
14754    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14755    ;;
14756  esac
14757
14758cfgfile="$ofile"
14759
14760  cat <<__EOF__ >> "$cfgfile"
14761# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14762
14763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14764
14765# Shell to use when invoking shell scripts.
14766SHELL=$lt_SHELL
14767
14768# Whether or not to build shared libraries.
14769build_libtool_libs=$enable_shared
14770
14771# Whether or not to build static libraries.
14772build_old_libs=$enable_static
14773
14774# Whether or not to add -lc for building shared libraries.
14775build_libtool_need_lc=$archive_cmds_need_lc_F77
14776
14777# Whether or not to disallow shared libs when runtime libs are static
14778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14779
14780# Whether or not to optimize for fast installation.
14781fast_install=$enable_fast_install
14782
14783# The host system.
14784host_alias=$host_alias
14785host=$host
14786host_os=$host_os
14787
14788# The build system.
14789build_alias=$build_alias
14790build=$build
14791build_os=$build_os
14792
14793# An echo program that does not interpret backslashes.
14794echo=$lt_echo
14795
14796# The archiver.
14797AR=$lt_AR
14798AR_FLAGS=$lt_AR_FLAGS
14799
14800# A C compiler.
14801LTCC=$lt_LTCC
14802
14803# LTCC compiler flags.
14804LTCFLAGS=$lt_LTCFLAGS
14805
14806# A language-specific compiler.
14807CC=$lt_compiler_F77
14808
14809# Is the compiler the GNU C compiler?
14810with_gcc=$GCC_F77
14811
14812# An ERE matcher.
14813EGREP=$lt_EGREP
14814
14815# The linker used to build libraries.
14816LD=$lt_LD_F77
14817
14818# Whether we need hard or soft links.
14819LN_S=$lt_LN_S
14820
14821# A BSD-compatible nm program.
14822NM=$lt_NM
14823
14824# A symbol stripping program
14825STRIP=$lt_STRIP
14826
14827# Used to examine libraries when file_magic_cmd begins "file"
14828MAGIC_CMD=$MAGIC_CMD
14829
14830# Used on cygwin: DLL creation program.
14831DLLTOOL="$DLLTOOL"
14832
14833# Used on cygwin: object dumper.
14834OBJDUMP="$OBJDUMP"
14835
14836# Used on cygwin: assembler.
14837AS="$AS"
14838
14839# The name of the directory that contains temporary libtool files.
14840objdir=$objdir
14841
14842# How to create reloadable object files.
14843reload_flag=$lt_reload_flag
14844reload_cmds=$lt_reload_cmds
14845
14846# How to pass a linker flag through the compiler.
14847wl=$lt_lt_prog_compiler_wl_F77
14848
14849# Object file suffix (normally "o").
14850objext="$ac_objext"
14851
14852# Old archive suffix (normally "a").
14853libext="$libext"
14854
14855# Shared library suffix (normally ".so").
14856shrext_cmds='$shrext_cmds'
14857
14858# Executable file suffix (normally "").
14859exeext="$exeext"
14860
14861# Additional compiler flags for building library objects.
14862pic_flag=$lt_lt_prog_compiler_pic_F77
14863pic_mode=$pic_mode
14864
14865# What is the maximum length of a command?
14866max_cmd_len=$lt_cv_sys_max_cmd_len
14867
14868# Does compiler simultaneously support -c and -o options?
14869compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14870
14871# Must we lock files when doing compilation?
14872need_locks=$lt_need_locks
14873
14874# Do we need the lib prefix for modules?
14875need_lib_prefix=$need_lib_prefix
14876
14877# Do we need a version for libraries?
14878need_version=$need_version
14879
14880# Whether dlopen is supported.
14881dlopen_support=$enable_dlopen
14882
14883# Whether dlopen of programs is supported.
14884dlopen_self=$enable_dlopen_self
14885
14886# Whether dlopen of statically linked programs is supported.
14887dlopen_self_static=$enable_dlopen_self_static
14888
14889# Compiler flag to prevent dynamic linking.
14890link_static_flag=$lt_lt_prog_compiler_static_F77
14891
14892# Compiler flag to turn off builtin functions.
14893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14894
14895# Compiler flag to allow reflexive dlopens.
14896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14897
14898# Compiler flag to generate shared objects directly from archives.
14899whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14900
14901# Compiler flag to generate thread-safe objects.
14902thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14903
14904# Library versioning type.
14905version_type=$version_type
14906
14907# Format of library name prefix.
14908libname_spec=$lt_libname_spec
14909
14910# List of archive names.  First name is the real one, the rest are links.
14911# The last name is the one that the linker finds with -lNAME.
14912library_names_spec=$lt_library_names_spec
14913
14914# The coded name of the library, if different from the real name.
14915soname_spec=$lt_soname_spec
14916
14917# Commands used to build and install an old-style archive.
14918RANLIB=$lt_RANLIB
14919old_archive_cmds=$lt_old_archive_cmds_F77
14920old_postinstall_cmds=$lt_old_postinstall_cmds
14921old_postuninstall_cmds=$lt_old_postuninstall_cmds
14922
14923# Create an old-style archive from a shared archive.
14924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14925
14926# Create a temporary old-style archive to link instead of a shared archive.
14927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14928
14929# Commands used to build and install a shared archive.
14930archive_cmds=$lt_archive_cmds_F77
14931archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14932postinstall_cmds=$lt_postinstall_cmds
14933postuninstall_cmds=$lt_postuninstall_cmds
14934
14935# Commands used to build a loadable module (assumed same as above if empty)
14936module_cmds=$lt_module_cmds_F77
14937module_expsym_cmds=$lt_module_expsym_cmds_F77
14938
14939# Commands to strip libraries.
14940old_striplib=$lt_old_striplib
14941striplib=$lt_striplib
14942
14943# Dependencies to place before the objects being linked to create a
14944# shared library.
14945predep_objects=$lt_predep_objects_F77
14946
14947# Dependencies to place after the objects being linked to create a
14948# shared library.
14949postdep_objects=$lt_postdep_objects_F77
14950
14951# Dependencies to place before the objects being linked to create a
14952# shared library.
14953predeps=$lt_predeps_F77
14954
14955# Dependencies to place after the objects being linked to create a
14956# shared library.
14957postdeps=$lt_postdeps_F77
14958
14959# The library search path used internally by the compiler when linking
14960# a shared library.
14961compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14962
14963# Method to check whether dependent libraries are shared objects.
14964deplibs_check_method=$lt_deplibs_check_method
14965
14966# Command to use when deplibs_check_method == file_magic.
14967file_magic_cmd=$lt_file_magic_cmd
14968
14969# Flag that allows shared libraries with undefined symbols to be built.
14970allow_undefined_flag=$lt_allow_undefined_flag_F77
14971
14972# Flag that forces no undefined symbols.
14973no_undefined_flag=$lt_no_undefined_flag_F77
14974
14975# Commands used to finish a libtool library installation in a directory.
14976finish_cmds=$lt_finish_cmds
14977
14978# Same as above, but a single script fragment to be evaled but not shown.
14979finish_eval=$lt_finish_eval
14980
14981# Take the output of nm and produce a listing of raw symbols and C names.
14982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14983
14984# Transform the output of nm in a proper C declaration
14985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14986
14987# Transform the output of nm in a C name address pair
14988global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14989
14990# This is the shared library runtime path variable.
14991runpath_var=$runpath_var
14992
14993# This is the shared library path variable.
14994shlibpath_var=$shlibpath_var
14995
14996# Is shlibpath searched before the hard-coded library search path?
14997shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14998
14999# How to hardcode a shared library path into an executable.
15000hardcode_action=$hardcode_action_F77
15001
15002# Whether we should hardcode library paths into libraries.
15003hardcode_into_libs=$hardcode_into_libs
15004
15005# Flag to hardcode \$libdir into a binary during linking.
15006# This must work even if \$libdir does not exist.
15007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15008
15009# If ld is used when linking, flag to hardcode \$libdir into
15010# a binary during linking. This must work even if \$libdir does
15011# not exist.
15012hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15013
15014# Whether we need a single -rpath flag with a separated argument.
15015hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15016
15017# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15018# resulting binary.
15019hardcode_direct=$hardcode_direct_F77
15020
15021# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15022# resulting binary.
15023hardcode_minus_L=$hardcode_minus_L_F77
15024
15025# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15026# the resulting binary.
15027hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15028
15029# Set to yes if building a shared library automatically hardcodes DIR into the library
15030# and all subsequent libraries and executables linked against it.
15031hardcode_automatic=$hardcode_automatic_F77
15032
15033# Variables whose values should be saved in libtool wrapper scripts and
15034# restored at relink time.
15035variables_saved_for_relink="$variables_saved_for_relink"
15036
15037# Whether libtool must link a program against all its dependency libraries.
15038link_all_deplibs=$link_all_deplibs_F77
15039
15040# Compile-time system search path for libraries
15041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15042
15043# Run-time system search path for libraries
15044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15045
15046# Fix the shell variable \$srcfile for the compiler.
15047fix_srcfile_path="$fix_srcfile_path_F77"
15048
15049# Set to yes if exported symbols are required.
15050always_export_symbols=$always_export_symbols_F77
15051
15052# The commands to list exported symbols.
15053export_symbols_cmds=$lt_export_symbols_cmds_F77
15054
15055# The commands to extract the exported symbol list from a shared archive.
15056extract_expsyms_cmds=$lt_extract_expsyms_cmds
15057
15058# Symbols that should not be listed in the preloaded symbols.
15059exclude_expsyms=$lt_exclude_expsyms_F77
15060
15061# Symbols that must always be exported.
15062include_expsyms=$lt_include_expsyms_F77
15063
15064# ### END LIBTOOL TAG CONFIG: $tagname
15065
15066__EOF__
15067
15068
15069else
15070  # If there is no Makefile yet, we rely on a make rule to execute
15071  # `config.status --recheck' to rerun these tests and create the
15072  # libtool script then.
15073  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15074  if test -f "$ltmain_in"; then
15075    test -f Makefile && make "$ltmain"
15076  fi
15077fi
15078
15079
15080ac_ext=c
15081ac_cpp='$CPP $CPPFLAGS'
15082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084ac_compiler_gnu=$ac_cv_c_compiler_gnu
15085
15086CC="$lt_save_CC"
15087
15088	else
15089	  tagname=""
15090	fi
15091	;;
15092
15093      GCJ)
15094	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15095
15096
15097
15098# Source file extension for Java test sources.
15099ac_ext=java
15100
15101# Object file extension for compiled Java test sources.
15102objext=o
15103objext_GCJ=$objext
15104
15105# Code to be used in simple compile tests
15106lt_simple_compile_test_code="class foo {}\n"
15107
15108# Code to be used in simple link tests
15109lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15110
15111# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15112
15113# If no C compiler was specified, use CC.
15114LTCC=${LTCC-"$CC"}
15115
15116# If no C compiler flags were specified, use CFLAGS.
15117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15118
15119# Allow CC to be a program name with arguments.
15120compiler=$CC
15121
15122
15123# save warnings/boilerplate of simple test code
15124ac_outfile=conftest.$ac_objext
15125printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15126eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15127_lt_compiler_boilerplate=`cat conftest.err`
15128$rm conftest*
15129
15130ac_outfile=conftest.$ac_objext
15131printf "$lt_simple_link_test_code" >conftest.$ac_ext
15132eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15133_lt_linker_boilerplate=`cat conftest.err`
15134$rm conftest*
15135
15136
15137# Allow CC to be a program name with arguments.
15138lt_save_CC="$CC"
15139CC=${GCJ-"gcj"}
15140compiler=$CC
15141compiler_GCJ=$CC
15142for cc_temp in $compiler""; do
15143  case $cc_temp in
15144    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15145    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15146    \-*) ;;
15147    *) break;;
15148  esac
15149done
15150cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15151
15152
15153# GCJ did not exist at the time GCC didn't implicitly link libc in.
15154archive_cmds_need_lc_GCJ=no
15155
15156old_archive_cmds_GCJ=$old_archive_cmds
15157
15158
15159lt_prog_compiler_no_builtin_flag_GCJ=
15160
15161if test "$GCC" = yes; then
15162  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15163
15164
15165echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15166echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15167if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15168  echo $ECHO_N "(cached) $ECHO_C" >&6
15169else
15170  lt_cv_prog_compiler_rtti_exceptions=no
15171  ac_outfile=conftest.$ac_objext
15172   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15173   lt_compiler_flag="-fno-rtti -fno-exceptions"
15174   # Insert the option either (1) after the last *FLAGS variable, or
15175   # (2) before a word containing "conftest.", or (3) at the end.
15176   # Note that $ac_compile itself does not contain backslashes and begins
15177   # with a dollar sign (not a hyphen), so the echo should work correctly.
15178   # The option is referenced via a variable to avoid confusing sed.
15179   lt_compile=`echo "$ac_compile" | $SED \
15180   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15181   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15182   -e 's:$: $lt_compiler_flag:'`
15183   (eval echo "\"\$as_me:15183: $lt_compile\"" >&5)
15184   (eval "$lt_compile" 2>conftest.err)
15185   ac_status=$?
15186   cat conftest.err >&5
15187   echo "$as_me:15187: \$? = $ac_status" >&5
15188   if (exit $ac_status) && test -s "$ac_outfile"; then
15189     # The compiler can only warn and ignore the option if not recognized
15190     # So say no if there are warnings other than the usual output.
15191     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15192     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15193     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15194       lt_cv_prog_compiler_rtti_exceptions=yes
15195     fi
15196   fi
15197   $rm conftest*
15198
15199fi
15200echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15201echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15202
15203if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15204    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15205else
15206    :
15207fi
15208
15209fi
15210
15211lt_prog_compiler_wl_GCJ=
15212lt_prog_compiler_pic_GCJ=
15213lt_prog_compiler_static_GCJ=
15214
15215echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15216echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15217
15218  if test "$GCC" = yes; then
15219    lt_prog_compiler_wl_GCJ='-Wl,'
15220    lt_prog_compiler_static_GCJ='-static'
15221
15222    case $host_os in
15223      aix*)
15224      # All AIX code is PIC.
15225      if test "$host_cpu" = ia64; then
15226	# AIX 5 now supports IA64 processor
15227	lt_prog_compiler_static_GCJ='-Bstatic'
15228      fi
15229      ;;
15230
15231    amigaos*)
15232      # FIXME: we need at least 68020 code to build shared libraries, but
15233      # adding the `-m68020' flag to GCC prevents building anything better,
15234      # like `-m68040'.
15235      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15236      ;;
15237
15238    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15239      # PIC is the default for these OSes.
15240      ;;
15241
15242    mingw* | pw32* | os2*)
15243      # This hack is so that the source file can tell whether it is being
15244      # built for inclusion in a dll (and should export symbols for example).
15245      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15246      ;;
15247
15248    darwin* | rhapsody*)
15249      # PIC is the default on this platform
15250      # Common symbols not allowed in MH_DYLIB files
15251      lt_prog_compiler_pic_GCJ='-fno-common'
15252      ;;
15253
15254    interix3*)
15255      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15256      # Instead, we relocate shared libraries at runtime.
15257      ;;
15258
15259    msdosdjgpp*)
15260      # Just because we use GCC doesn't mean we suddenly get shared libraries
15261      # on systems that don't support them.
15262      lt_prog_compiler_can_build_shared_GCJ=no
15263      enable_shared=no
15264      ;;
15265
15266    sysv4*MP*)
15267      if test -d /usr/nec; then
15268	lt_prog_compiler_pic_GCJ=-Kconform_pic
15269      fi
15270      ;;
15271
15272    hpux*)
15273      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15274      # not for PA HP-UX.
15275      case $host_cpu in
15276      hppa*64*|ia64*)
15277	# +Z the default
15278	;;
15279      *)
15280	lt_prog_compiler_pic_GCJ='-fPIC'
15281	;;
15282      esac
15283      ;;
15284
15285    *)
15286      lt_prog_compiler_pic_GCJ='-fPIC'
15287      ;;
15288    esac
15289  else
15290    # PORTME Check for flag to pass linker flags through the system compiler.
15291    case $host_os in
15292    aix*)
15293      lt_prog_compiler_wl_GCJ='-Wl,'
15294      if test "$host_cpu" = ia64; then
15295	# AIX 5 now supports IA64 processor
15296	lt_prog_compiler_static_GCJ='-Bstatic'
15297      else
15298	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15299      fi
15300      ;;
15301      darwin*)
15302        # PIC is the default on this platform
15303        # Common symbols not allowed in MH_DYLIB files
15304       case $cc_basename in
15305         xlc*)
15306         lt_prog_compiler_pic_GCJ='-qnocommon'
15307         lt_prog_compiler_wl_GCJ='-Wl,'
15308         ;;
15309       esac
15310       ;;
15311
15312    mingw* | pw32* | os2*)
15313      # This hack is so that the source file can tell whether it is being
15314      # built for inclusion in a dll (and should export symbols for example).
15315      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15316      ;;
15317
15318    hpux9* | hpux10* | hpux11*)
15319      lt_prog_compiler_wl_GCJ='-Wl,'
15320      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15321      # not for PA HP-UX.
15322      case $host_cpu in
15323      hppa*64*|ia64*)
15324	# +Z the default
15325	;;
15326      *)
15327	lt_prog_compiler_pic_GCJ='+Z'
15328	;;
15329      esac
15330      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15331      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15332      ;;
15333
15334    irix5* | irix6* | nonstopux*)
15335      lt_prog_compiler_wl_GCJ='-Wl,'
15336      # PIC (with -KPIC) is the default.
15337      lt_prog_compiler_static_GCJ='-non_shared'
15338      ;;
15339
15340    newsos6)
15341      lt_prog_compiler_pic_GCJ='-KPIC'
15342      lt_prog_compiler_static_GCJ='-Bstatic'
15343      ;;
15344
15345    linux*)
15346      case $cc_basename in
15347      icc* | ecc*)
15348	lt_prog_compiler_wl_GCJ='-Wl,'
15349	lt_prog_compiler_pic_GCJ='-KPIC'
15350	lt_prog_compiler_static_GCJ='-static'
15351        ;;
15352      pgcc* | pgf77* | pgf90* | pgf95*)
15353        # Portland Group compilers (*not* the Pentium gcc compiler,
15354	# which looks to be a dead project)
15355	lt_prog_compiler_wl_GCJ='-Wl,'
15356	lt_prog_compiler_pic_GCJ='-fpic'
15357	lt_prog_compiler_static_GCJ='-Bstatic'
15358        ;;
15359      ccc*)
15360        lt_prog_compiler_wl_GCJ='-Wl,'
15361        # All Alpha code is PIC.
15362        lt_prog_compiler_static_GCJ='-non_shared'
15363        ;;
15364      esac
15365      ;;
15366
15367    osf3* | osf4* | osf5*)
15368      lt_prog_compiler_wl_GCJ='-Wl,'
15369      # All OSF/1 code is PIC.
15370      lt_prog_compiler_static_GCJ='-non_shared'
15371      ;;
15372
15373    solaris*)
15374      lt_prog_compiler_pic_GCJ='-KPIC'
15375      lt_prog_compiler_static_GCJ='-Bstatic'
15376      case $cc_basename in
15377      f77* | f90* | f95*)
15378	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15379      *)
15380	lt_prog_compiler_wl_GCJ='-Wl,';;
15381      esac
15382      ;;
15383
15384    sunos4*)
15385      lt_prog_compiler_wl_GCJ='-Qoption ld '
15386      lt_prog_compiler_pic_GCJ='-PIC'
15387      lt_prog_compiler_static_GCJ='-Bstatic'
15388      ;;
15389
15390    sysv4 | sysv4.2uw2* | sysv4.3*)
15391      lt_prog_compiler_wl_GCJ='-Wl,'
15392      lt_prog_compiler_pic_GCJ='-KPIC'
15393      lt_prog_compiler_static_GCJ='-Bstatic'
15394      ;;
15395
15396    sysv4*MP*)
15397      if test -d /usr/nec ;then
15398	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15399	lt_prog_compiler_static_GCJ='-Bstatic'
15400      fi
15401      ;;
15402
15403    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15404      lt_prog_compiler_wl_GCJ='-Wl,'
15405      lt_prog_compiler_pic_GCJ='-KPIC'
15406      lt_prog_compiler_static_GCJ='-Bstatic'
15407      ;;
15408
15409    unicos*)
15410      lt_prog_compiler_wl_GCJ='-Wl,'
15411      lt_prog_compiler_can_build_shared_GCJ=no
15412      ;;
15413
15414    uts4*)
15415      lt_prog_compiler_pic_GCJ='-pic'
15416      lt_prog_compiler_static_GCJ='-Bstatic'
15417      ;;
15418
15419    *)
15420      lt_prog_compiler_can_build_shared_GCJ=no
15421      ;;
15422    esac
15423  fi
15424
15425echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15426echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15427
15428#
15429# Check to make sure the PIC flag actually works.
15430#
15431if test -n "$lt_prog_compiler_pic_GCJ"; then
15432
15433echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15434echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15435if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15436  echo $ECHO_N "(cached) $ECHO_C" >&6
15437else
15438  lt_prog_compiler_pic_works_GCJ=no
15439  ac_outfile=conftest.$ac_objext
15440   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15441   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15442   # Insert the option either (1) after the last *FLAGS variable, or
15443   # (2) before a word containing "conftest.", or (3) at the end.
15444   # Note that $ac_compile itself does not contain backslashes and begins
15445   # with a dollar sign (not a hyphen), so the echo should work correctly.
15446   # The option is referenced via a variable to avoid confusing sed.
15447   lt_compile=`echo "$ac_compile" | $SED \
15448   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15449   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15450   -e 's:$: $lt_compiler_flag:'`
15451   (eval echo "\"\$as_me:15451: $lt_compile\"" >&5)
15452   (eval "$lt_compile" 2>conftest.err)
15453   ac_status=$?
15454   cat conftest.err >&5
15455   echo "$as_me:15455: \$? = $ac_status" >&5
15456   if (exit $ac_status) && test -s "$ac_outfile"; then
15457     # The compiler can only warn and ignore the option if not recognized
15458     # So say no if there are warnings other than the usual output.
15459     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15460     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15462       lt_prog_compiler_pic_works_GCJ=yes
15463     fi
15464   fi
15465   $rm conftest*
15466
15467fi
15468echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15469echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15470
15471if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15472    case $lt_prog_compiler_pic_GCJ in
15473     "" | " "*) ;;
15474     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15475     esac
15476else
15477    lt_prog_compiler_pic_GCJ=
15478     lt_prog_compiler_can_build_shared_GCJ=no
15479fi
15480
15481fi
15482case $host_os in
15483  # For platforms which do not support PIC, -DPIC is meaningless:
15484  *djgpp*)
15485    lt_prog_compiler_pic_GCJ=
15486    ;;
15487  *)
15488    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15489    ;;
15490esac
15491
15492#
15493# Check to make sure the static flag actually works.
15494#
15495wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15496echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15497echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15498if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15499  echo $ECHO_N "(cached) $ECHO_C" >&6
15500else
15501  lt_prog_compiler_static_works_GCJ=no
15502   save_LDFLAGS="$LDFLAGS"
15503   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15504   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15505   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15506     # The linker can only warn and ignore the option if not recognized
15507     # So say no if there are warnings
15508     if test -s conftest.err; then
15509       # Append any errors to the config.log.
15510       cat conftest.err 1>&5
15511       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15512       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15513       if diff conftest.exp conftest.er2 >/dev/null; then
15514         lt_prog_compiler_static_works_GCJ=yes
15515       fi
15516     else
15517       lt_prog_compiler_static_works_GCJ=yes
15518     fi
15519   fi
15520   $rm conftest*
15521   LDFLAGS="$save_LDFLAGS"
15522
15523fi
15524echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15525echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15526
15527if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15528    :
15529else
15530    lt_prog_compiler_static_GCJ=
15531fi
15532
15533
15534echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15535echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15536if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15537  echo $ECHO_N "(cached) $ECHO_C" >&6
15538else
15539  lt_cv_prog_compiler_c_o_GCJ=no
15540   $rm -r conftest 2>/dev/null
15541   mkdir conftest
15542   cd conftest
15543   mkdir out
15544   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15545
15546   lt_compiler_flag="-o out/conftest2.$ac_objext"
15547   # Insert the option either (1) after the last *FLAGS variable, or
15548   # (2) before a word containing "conftest.", or (3) at the end.
15549   # Note that $ac_compile itself does not contain backslashes and begins
15550   # with a dollar sign (not a hyphen), so the echo should work correctly.
15551   lt_compile=`echo "$ac_compile" | $SED \
15552   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15553   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15554   -e 's:$: $lt_compiler_flag:'`
15555   (eval echo "\"\$as_me:15555: $lt_compile\"" >&5)
15556   (eval "$lt_compile" 2>out/conftest.err)
15557   ac_status=$?
15558   cat out/conftest.err >&5
15559   echo "$as_me:15559: \$? = $ac_status" >&5
15560   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15561   then
15562     # The compiler can only warn and ignore the option if not recognized
15563     # So say no if there are warnings
15564     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15565     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15566     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15567       lt_cv_prog_compiler_c_o_GCJ=yes
15568     fi
15569   fi
15570   chmod u+w . 2>&5
15571   $rm conftest*
15572   # SGI C++ compiler will create directory out/ii_files/ for
15573   # template instantiation
15574   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15575   $rm out/* && rmdir out
15576   cd ..
15577   rmdir conftest
15578   $rm conftest*
15579
15580fi
15581echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15582echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15583
15584
15585hard_links="nottested"
15586if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15587  # do not overwrite the value of need_locks provided by the user
15588  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15589echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15590  hard_links=yes
15591  $rm conftest*
15592  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15593  touch conftest.a
15594  ln conftest.a conftest.b 2>&5 || hard_links=no
15595  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15596  echo "$as_me:$LINENO: result: $hard_links" >&5
15597echo "${ECHO_T}$hard_links" >&6
15598  if test "$hard_links" = no; then
15599    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15600echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15601    need_locks=warn
15602  fi
15603else
15604  need_locks=no
15605fi
15606
15607echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15608echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15609
15610  runpath_var=
15611  allow_undefined_flag_GCJ=
15612  enable_shared_with_static_runtimes_GCJ=no
15613  archive_cmds_GCJ=
15614  archive_expsym_cmds_GCJ=
15615  old_archive_From_new_cmds_GCJ=
15616  old_archive_from_expsyms_cmds_GCJ=
15617  export_dynamic_flag_spec_GCJ=
15618  whole_archive_flag_spec_GCJ=
15619  thread_safe_flag_spec_GCJ=
15620  hardcode_libdir_flag_spec_GCJ=
15621  hardcode_libdir_flag_spec_ld_GCJ=
15622  hardcode_libdir_separator_GCJ=
15623  hardcode_direct_GCJ=no
15624  hardcode_minus_L_GCJ=no
15625  hardcode_shlibpath_var_GCJ=unsupported
15626  link_all_deplibs_GCJ=unknown
15627  hardcode_automatic_GCJ=no
15628  module_cmds_GCJ=
15629  module_expsym_cmds_GCJ=
15630  always_export_symbols_GCJ=no
15631  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15632  # include_expsyms should be a list of space-separated symbols to be *always*
15633  # included in the symbol list
15634  include_expsyms_GCJ=
15635  # exclude_expsyms can be an extended regexp of symbols to exclude
15636  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15637  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15638  # as well as any symbol that contains `d'.
15639  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15640  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15641  # platforms (ab)use it in PIC code, but their linkers get confused if
15642  # the symbol is explicitly referenced.  Since portable code cannot
15643  # rely on this symbol name, it's probably fine to never include it in
15644  # preloaded symbol tables.
15645  extract_expsyms_cmds=
15646  # Just being paranoid about ensuring that cc_basename is set.
15647  for cc_temp in $compiler""; do
15648  case $cc_temp in
15649    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15650    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15651    \-*) ;;
15652    *) break;;
15653  esac
15654done
15655cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15656
15657  case $host_os in
15658  cygwin* | mingw* | pw32*)
15659    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15660    # When not using gcc, we currently assume that we are using
15661    # Microsoft Visual C++.
15662    if test "$GCC" != yes; then
15663      with_gnu_ld=no
15664    fi
15665    ;;
15666  interix*)
15667    # we just hope/assume this is gcc and not c89 (= MSVC++)
15668    with_gnu_ld=yes
15669    ;;
15670  openbsd*)
15671    with_gnu_ld=no
15672    ;;
15673  esac
15674
15675  ld_shlibs_GCJ=yes
15676  if test "$with_gnu_ld" = yes; then
15677    # If archive_cmds runs LD, not CC, wlarc should be empty
15678    wlarc='${wl}'
15679
15680    # Set some defaults for GNU ld with shared library support. These
15681    # are reset later if shared libraries are not supported. Putting them
15682    # here allows them to be overridden if necessary.
15683    runpath_var=LD_RUN_PATH
15684    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15685    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15686    # ancient GNU ld didn't support --whole-archive et. al.
15687    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15688	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15689      else
15690  	whole_archive_flag_spec_GCJ=
15691    fi
15692    supports_anon_versioning=no
15693    case `$LD -v 2>/dev/null` in
15694      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15695      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15696      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15697      *\ 2.11.*) ;; # other 2.11 versions
15698      *) supports_anon_versioning=yes ;;
15699    esac
15700
15701    # See if GNU ld supports shared libraries.
15702    case $host_os in
15703    aix3* | aix4* | aix5*)
15704      # On AIX/PPC, the GNU linker is very broken
15705      if test "$host_cpu" != ia64; then
15706	ld_shlibs_GCJ=no
15707	cat <<EOF 1>&2
15708
15709*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15710*** to be unable to reliably create shared libraries on AIX.
15711*** Therefore, libtool is disabling shared libraries support.  If you
15712*** really care for shared libraries, you may want to modify your PATH
15713*** so that a non-GNU linker is found, and then restart.
15714
15715EOF
15716      fi
15717      ;;
15718
15719    amigaos*)
15720      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)'
15721      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15722      hardcode_minus_L_GCJ=yes
15723
15724      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15725      # that the semantics of dynamic libraries on AmigaOS, at least up
15726      # to version 4, is to share data among multiple programs linked
15727      # with the same dynamic library.  Since this doesn't match the
15728      # behavior of shared libraries on other platforms, we can't use
15729      # them.
15730      ld_shlibs_GCJ=no
15731      ;;
15732
15733    beos*)
15734      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15735	allow_undefined_flag_GCJ=unsupported
15736	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15737	# support --undefined.  This deserves some investigation.  FIXME
15738	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15739      else
15740	ld_shlibs_GCJ=no
15741      fi
15742      ;;
15743
15744    cygwin* | mingw* | pw32*)
15745      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15746      # as there is no search path for DLLs.
15747      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15748      allow_undefined_flag_GCJ=unsupported
15749      always_export_symbols_GCJ=no
15750      enable_shared_with_static_runtimes_GCJ=yes
15751      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15752
15753      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15754        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15755	# If the export-symbols file already is a .def file (1st line
15756	# is EXPORTS), use it as is; otherwise, prepend...
15757	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15758	  cp $export_symbols $output_objdir/$soname.def;
15759	else
15760	  echo EXPORTS > $output_objdir/$soname.def;
15761	  cat $export_symbols >> $output_objdir/$soname.def;
15762	fi~
15763	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15764      else
15765	ld_shlibs_GCJ=no
15766      fi
15767      ;;
15768
15769    interix3*)
15770      hardcode_direct_GCJ=no
15771      hardcode_shlibpath_var_GCJ=no
15772      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15773      export_dynamic_flag_spec_GCJ='${wl}-E'
15774      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15775      # Instead, shared libraries are loaded at an image base (0x10000000 by
15776      # default) and relocated if they conflict, which is a slow very memory
15777      # consuming and fragmenting process.  To avoid this, we pick a random,
15778      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15779      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15780      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'
15781      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'
15782      ;;
15783
15784    linux*)
15785      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15786	tmp_addflag=
15787	case $cc_basename,$host_cpu in
15788	pgcc*)				# Portland Group C compiler
15789	  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'
15790	  tmp_addflag=' $pic_flag'
15791	  ;;
15792	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15793	  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'
15794	  tmp_addflag=' $pic_flag -Mnomain' ;;
15795	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15796	  tmp_addflag=' -i_dynamic' ;;
15797	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15798	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15799	ifc* | ifort*)			# Intel Fortran compiler
15800	  tmp_addflag=' -nofor_main' ;;
15801	esac
15802	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803
15804	if test $supports_anon_versioning = yes; then
15805	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15806  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15807  $echo "local: *; };" >> $output_objdir/$libname.ver~
15808	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15809	fi
15810      else
15811	ld_shlibs_GCJ=no
15812      fi
15813      ;;
15814
15815    netbsd*)
15816      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15817	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15818	wlarc=
15819      else
15820	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15821	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15822      fi
15823      ;;
15824
15825    solaris*)
15826      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15827	ld_shlibs_GCJ=no
15828	cat <<EOF 1>&2
15829
15830*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15831*** create shared libraries on Solaris systems.  Therefore, libtool
15832*** is disabling shared libraries support.  We urge you to upgrade GNU
15833*** binutils to release 2.9.1 or newer.  Another option is to modify
15834*** your PATH or compiler configuration so that the native linker is
15835*** used, and then restart.
15836
15837EOF
15838      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15839	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15840	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15841      else
15842	ld_shlibs_GCJ=no
15843      fi
15844      ;;
15845
15846    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15847      case `$LD -v 2>&1` in
15848        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15849	ld_shlibs_GCJ=no
15850	cat <<_LT_EOF 1>&2
15851
15852*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15853*** reliably create shared libraries on SCO systems.  Therefore, libtool
15854*** is disabling shared libraries support.  We urge you to upgrade GNU
15855*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15856*** your PATH or compiler configuration so that the native linker is
15857*** used, and then restart.
15858
15859_LT_EOF
15860	;;
15861	*)
15862	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15863	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15864	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15865	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15866	  else
15867	    ld_shlibs_GCJ=no
15868	  fi
15869	;;
15870      esac
15871      ;;
15872
15873    sunos4*)
15874      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15875      wlarc=
15876      hardcode_direct_GCJ=yes
15877      hardcode_shlibpath_var_GCJ=no
15878      ;;
15879
15880    *)
15881      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15882	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15884      else
15885	ld_shlibs_GCJ=no
15886      fi
15887      ;;
15888    esac
15889
15890    if test "$ld_shlibs_GCJ" = no; then
15891      runpath_var=
15892      hardcode_libdir_flag_spec_GCJ=
15893      export_dynamic_flag_spec_GCJ=
15894      whole_archive_flag_spec_GCJ=
15895    fi
15896  else
15897    # PORTME fill in a description of your system's linker (not GNU ld)
15898    case $host_os in
15899    aix3*)
15900      allow_undefined_flag_GCJ=unsupported
15901      always_export_symbols_GCJ=yes
15902      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'
15903      # Note: this linker hardcodes the directories in LIBPATH if there
15904      # are no directories specified by -L.
15905      hardcode_minus_L_GCJ=yes
15906      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15907	# Neither direct hardcoding nor static linking is supported with a
15908	# broken collect2.
15909	hardcode_direct_GCJ=unsupported
15910      fi
15911      ;;
15912
15913    aix4* | aix5*)
15914      if test "$host_cpu" = ia64; then
15915	# On IA64, the linker does run time linking by default, so we don't
15916	# have to do anything special.
15917	aix_use_runtimelinking=no
15918	exp_sym_flag='-Bexport'
15919	no_entry_flag=""
15920      else
15921	# If we're using GNU nm, then we don't want the "-C" option.
15922	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15923	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15924	  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'
15925	else
15926	  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'
15927	fi
15928	aix_use_runtimelinking=no
15929
15930	# Test if we are trying to use run time linking or normal
15931	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15932	# need to do runtime linking.
15933	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15934	  for ld_flag in $LDFLAGS; do
15935  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15936  	    aix_use_runtimelinking=yes
15937  	    break
15938  	  fi
15939	  done
15940	  ;;
15941	esac
15942
15943	exp_sym_flag='-bexport'
15944	no_entry_flag='-bnoentry'
15945      fi
15946
15947      # When large executables or shared objects are built, AIX ld can
15948      # have problems creating the table of contents.  If linking a library
15949      # or program results in "error TOC overflow" add -mminimal-toc to
15950      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15951      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15952
15953      archive_cmds_GCJ=''
15954      hardcode_direct_GCJ=yes
15955      hardcode_libdir_separator_GCJ=':'
15956      link_all_deplibs_GCJ=yes
15957
15958      if test "$GCC" = yes; then
15959	case $host_os in aix4.[012]|aix4.[012].*)
15960	# We only want to do this on AIX 4.2 and lower, the check
15961	# below for broken collect2 doesn't work under 4.3+
15962	  collect2name=`${CC} -print-prog-name=collect2`
15963	  if test -f "$collect2name" && \
15964  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15965	  then
15966  	  # We have reworked collect2
15967  	  hardcode_direct_GCJ=yes
15968	  else
15969  	  # We have old collect2
15970  	  hardcode_direct_GCJ=unsupported
15971  	  # It fails to find uninstalled libraries when the uninstalled
15972  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15973  	  # to unsupported forces relinking
15974  	  hardcode_minus_L_GCJ=yes
15975  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15976  	  hardcode_libdir_separator_GCJ=
15977	  fi
15978	  ;;
15979	esac
15980	shared_flag='-shared'
15981	if test "$aix_use_runtimelinking" = yes; then
15982	  shared_flag="$shared_flag "'${wl}-G'
15983	fi
15984      else
15985	# not using gcc
15986	if test "$host_cpu" = ia64; then
15987  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15988  	# chokes on -Wl,-G. The following line is correct:
15989	  shared_flag='-G'
15990	else
15991	  if test "$aix_use_runtimelinking" = yes; then
15992	    shared_flag='${wl}-G'
15993	  else
15994	    shared_flag='${wl}-bM:SRE'
15995	  fi
15996	fi
15997      fi
15998
15999      # It seems that -bexpall does not export symbols beginning with
16000      # underscore (_), so it is better to generate a list of symbols to export.
16001      always_export_symbols_GCJ=yes
16002      if test "$aix_use_runtimelinking" = yes; then
16003	# Warning - without using the other runtime loading flags (-brtl),
16004	# -berok will link without error, but may produce a broken library.
16005	allow_undefined_flag_GCJ='-berok'
16006       # Determine the default libpath from the value encoded in an empty executable.
16007       cat >conftest.$ac_ext <<_ACEOF
16008/* confdefs.h.  */
16009_ACEOF
16010cat confdefs.h >>conftest.$ac_ext
16011cat >>conftest.$ac_ext <<_ACEOF
16012/* end confdefs.h.  */
16013
16014int
16015main ()
16016{
16017
16018  ;
16019  return 0;
16020}
16021_ACEOF
16022rm -f conftest.$ac_objext conftest$ac_exeext
16023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16024  (eval $ac_link) 2>conftest.er1
16025  ac_status=$?
16026  grep -v '^ *+' conftest.er1 >conftest.err
16027  rm -f conftest.er1
16028  cat conftest.err >&5
16029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030  (exit $ac_status); } &&
16031	 { ac_try='test -z "$ac_c_werror_flag"
16032			 || test ! -s conftest.err'
16033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034  (eval $ac_try) 2>&5
16035  ac_status=$?
16036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037  (exit $ac_status); }; } &&
16038	 { ac_try='test -s conftest$ac_exeext'
16039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040  (eval $ac_try) 2>&5
16041  ac_status=$?
16042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043  (exit $ac_status); }; }; then
16044
16045aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16046}'`
16047# Check for a 64-bit object if we didn't find anything.
16048if 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; }
16049}'`; fi
16050else
16051  echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
16054fi
16055rm -f conftest.err conftest.$ac_objext \
16056      conftest$ac_exeext conftest.$ac_ext
16057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16058
16059       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16060	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"
16061       else
16062	if test "$host_cpu" = ia64; then
16063	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16064	  allow_undefined_flag_GCJ="-z nodefs"
16065	  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"
16066	else
16067	 # Determine the default libpath from the value encoded in an empty executable.
16068	 cat >conftest.$ac_ext <<_ACEOF
16069/* confdefs.h.  */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h.  */
16074
16075int
16076main ()
16077{
16078
16079  ;
16080  return 0;
16081}
16082_ACEOF
16083rm -f conftest.$ac_objext conftest$ac_exeext
16084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085  (eval $ac_link) 2>conftest.er1
16086  ac_status=$?
16087  grep -v '^ *+' conftest.er1 >conftest.err
16088  rm -f conftest.er1
16089  cat conftest.err >&5
16090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091  (exit $ac_status); } &&
16092	 { ac_try='test -z "$ac_c_werror_flag"
16093			 || test ! -s conftest.err'
16094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095  (eval $ac_try) 2>&5
16096  ac_status=$?
16097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098  (exit $ac_status); }; } &&
16099	 { ac_try='test -s conftest$ac_exeext'
16100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101  (eval $ac_try) 2>&5
16102  ac_status=$?
16103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104  (exit $ac_status); }; }; then
16105
16106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16107}'`
16108# Check for a 64-bit object if we didn't find anything.
16109if 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; }
16110}'`; fi
16111else
16112  echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115fi
16116rm -f conftest.err conftest.$ac_objext \
16117      conftest$ac_exeext conftest.$ac_ext
16118if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16119
16120	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16121	  # Warning - without using the other run time loading flags,
16122	  # -berok will link without error, but may produce a broken library.
16123	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16124	  allow_undefined_flag_GCJ=' ${wl}-berok'
16125	  # Exported symbols can be pulled into shared objects from archives
16126	  whole_archive_flag_spec_GCJ='$convenience'
16127	  archive_cmds_need_lc_GCJ=yes
16128	  # This is similar to how AIX traditionally builds its shared libraries.
16129	  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'
16130	fi
16131      fi
16132      ;;
16133
16134    amigaos*)
16135      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)'
16136      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16137      hardcode_minus_L_GCJ=yes
16138      # see comment about different semantics on the GNU ld section
16139      ld_shlibs_GCJ=no
16140      ;;
16141
16142    bsdi[45]*)
16143      export_dynamic_flag_spec_GCJ=-rdynamic
16144      ;;
16145
16146    cygwin* | mingw* | pw32*)
16147      # When not using gcc, we currently assume that we are using
16148      # Microsoft Visual C++.
16149      # hardcode_libdir_flag_spec is actually meaningless, as there is
16150      # no search path for DLLs.
16151      hardcode_libdir_flag_spec_GCJ=' '
16152      allow_undefined_flag_GCJ=unsupported
16153      # Tell ltmain to make .lib files, not .a files.
16154      libext=lib
16155      # Tell ltmain to make .dll files, not .so files.
16156      shrext_cmds=".dll"
16157      # FIXME: Setting linknames here is a bad hack.
16158      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16159      # The linker will automatically build a .lib file if we build a DLL.
16160      old_archive_From_new_cmds_GCJ='true'
16161      # FIXME: Should let the user specify the lib program.
16162      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16163      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16164      enable_shared_with_static_runtimes_GCJ=yes
16165      ;;
16166
16167    darwin* | rhapsody*)
16168      case $host_os in
16169        rhapsody* | darwin1.[012])
16170         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16171         ;;
16172       *) # Darwin 1.3 on
16173         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16174           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16175         else
16176           case ${MACOSX_DEPLOYMENT_TARGET} in
16177             10.[012])
16178               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16179               ;;
16180             10.*)
16181               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16182               ;;
16183           esac
16184         fi
16185         ;;
16186      esac
16187      archive_cmds_need_lc_GCJ=no
16188      hardcode_direct_GCJ=no
16189      hardcode_automatic_GCJ=yes
16190      hardcode_shlibpath_var_GCJ=unsupported
16191      whole_archive_flag_spec_GCJ=''
16192      link_all_deplibs_GCJ=yes
16193    if test "$GCC" = yes ; then
16194    	output_verbose_link_cmd='echo'
16195        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16196      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16197      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16198      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}'
16199      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}'
16200    else
16201      case $cc_basename in
16202        xlc*)
16203         output_verbose_link_cmd='echo'
16204         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16205         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16206          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16207         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}'
16208          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}'
16209          ;;
16210       *)
16211         ld_shlibs_GCJ=no
16212          ;;
16213      esac
16214    fi
16215      ;;
16216
16217    dgux*)
16218      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16219      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220      hardcode_shlibpath_var_GCJ=no
16221      ;;
16222
16223    freebsd1*)
16224      ld_shlibs_GCJ=no
16225      ;;
16226
16227    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16228    # support.  Future versions do this automatically, but an explicit c++rt0.o
16229    # does not break anything, and helps significantly (at the cost of a little
16230    # extra space).
16231    freebsd2.2*)
16232      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16233      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16234      hardcode_direct_GCJ=yes
16235      hardcode_shlibpath_var_GCJ=no
16236      ;;
16237
16238    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16239    freebsd2*)
16240      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16241      hardcode_direct_GCJ=yes
16242      hardcode_minus_L_GCJ=yes
16243      hardcode_shlibpath_var_GCJ=no
16244      ;;
16245
16246    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16247    freebsd* | kfreebsd*-gnu | dragonfly*)
16248      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16249      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16250      hardcode_direct_GCJ=yes
16251      hardcode_shlibpath_var_GCJ=no
16252      ;;
16253
16254    hpux9*)
16255      if test "$GCC" = yes; then
16256	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'
16257      else
16258	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'
16259      fi
16260      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16261      hardcode_libdir_separator_GCJ=:
16262      hardcode_direct_GCJ=yes
16263
16264      # hardcode_minus_L: Not really in the search PATH,
16265      # but as the default location of the library.
16266      hardcode_minus_L_GCJ=yes
16267      export_dynamic_flag_spec_GCJ='${wl}-E'
16268      ;;
16269
16270    hpux10*)
16271      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16272	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16273      else
16274	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16275      fi
16276      if test "$with_gnu_ld" = no; then
16277	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16278	hardcode_libdir_separator_GCJ=:
16279
16280	hardcode_direct_GCJ=yes
16281	export_dynamic_flag_spec_GCJ='${wl}-E'
16282
16283	# hardcode_minus_L: Not really in the search PATH,
16284	# but as the default location of the library.
16285	hardcode_minus_L_GCJ=yes
16286      fi
16287      ;;
16288
16289    hpux11*)
16290      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16291	case $host_cpu in
16292	hppa*64*)
16293	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294	  ;;
16295	ia64*)
16296	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16297	  ;;
16298	*)
16299	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16300	  ;;
16301	esac
16302      else
16303	case $host_cpu in
16304	hppa*64*)
16305	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16306	  ;;
16307	ia64*)
16308	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16309	  ;;
16310	*)
16311	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16312	  ;;
16313	esac
16314      fi
16315      if test "$with_gnu_ld" = no; then
16316	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16317	hardcode_libdir_separator_GCJ=:
16318
16319	case $host_cpu in
16320	hppa*64*|ia64*)
16321	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16322	  hardcode_direct_GCJ=no
16323	  hardcode_shlibpath_var_GCJ=no
16324	  ;;
16325	*)
16326	  hardcode_direct_GCJ=yes
16327	  export_dynamic_flag_spec_GCJ='${wl}-E'
16328
16329	  # hardcode_minus_L: Not really in the search PATH,
16330	  # but as the default location of the library.
16331	  hardcode_minus_L_GCJ=yes
16332	  ;;
16333	esac
16334      fi
16335      ;;
16336
16337    irix5* | irix6* | nonstopux*)
16338      if test "$GCC" = yes; then
16339	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'
16340      else
16341	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'
16342	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16343      fi
16344      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16345      hardcode_libdir_separator_GCJ=:
16346      link_all_deplibs_GCJ=yes
16347      ;;
16348
16349    netbsd*)
16350      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16351	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16352      else
16353	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16354      fi
16355      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16356      hardcode_direct_GCJ=yes
16357      hardcode_shlibpath_var_GCJ=no
16358      ;;
16359
16360    newsos6)
16361      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16362      hardcode_direct_GCJ=yes
16363      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16364      hardcode_libdir_separator_GCJ=:
16365      hardcode_shlibpath_var_GCJ=no
16366      ;;
16367
16368    openbsd*)
16369      hardcode_direct_GCJ=yes
16370      hardcode_shlibpath_var_GCJ=no
16371      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16372	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16373	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16374	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16375	export_dynamic_flag_spec_GCJ='${wl}-E'
16376      else
16377       case $host_os in
16378	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16379	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16380	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16381	   ;;
16382	 *)
16383	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16384	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16385	   ;;
16386       esac
16387      fi
16388      ;;
16389
16390    os2*)
16391      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16392      hardcode_minus_L_GCJ=yes
16393      allow_undefined_flag_GCJ=unsupported
16394      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'
16395      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16396      ;;
16397
16398    osf3*)
16399      if test "$GCC" = yes; then
16400	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16401	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'
16402      else
16403	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16404	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'
16405      fi
16406      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16407      hardcode_libdir_separator_GCJ=:
16408      ;;
16409
16410    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16411      if test "$GCC" = yes; then
16412	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16413	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'
16414	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16415      else
16416	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16417	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'
16418	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~
16419	$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'
16420
16421	# Both c and cxx compiler support -rpath directly
16422	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16423      fi
16424      hardcode_libdir_separator_GCJ=:
16425      ;;
16426
16427    solaris*)
16428      no_undefined_flag_GCJ=' -z text'
16429      if test "$GCC" = yes; then
16430	wlarc='${wl}'
16431	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16432	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16433	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16434      else
16435	wlarc=''
16436	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16437	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16438  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16439      fi
16440      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16441      hardcode_shlibpath_var_GCJ=no
16442      case $host_os in
16443      solaris2.[0-5] | solaris2.[0-5].*) ;;
16444      *)
16445 	# The compiler driver will combine linker options so we
16446 	# cannot just pass the convience library names through
16447 	# without $wl, iff we do not link with $LD.
16448 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16449 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16450 	case $wlarc in
16451 	'')
16452 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16453 	*)
16454 	  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' ;;
16455 	esac ;;
16456      esac
16457      link_all_deplibs_GCJ=yes
16458      ;;
16459
16460    sunos4*)
16461      if test "x$host_vendor" = xsequent; then
16462	# Use $CC to link under sequent, because it throws in some extra .o
16463	# files that make .init and .fini sections work.
16464	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16465      else
16466	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16467      fi
16468      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16469      hardcode_direct_GCJ=yes
16470      hardcode_minus_L_GCJ=yes
16471      hardcode_shlibpath_var_GCJ=no
16472      ;;
16473
16474    sysv4)
16475      case $host_vendor in
16476	sni)
16477	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16478	  hardcode_direct_GCJ=yes # is this really true???
16479	;;
16480	siemens)
16481	  ## LD is ld it makes a PLAMLIB
16482	  ## CC just makes a GrossModule.
16483	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16484	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16485	  hardcode_direct_GCJ=no
16486        ;;
16487	motorola)
16488	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16490	;;
16491      esac
16492      runpath_var='LD_RUN_PATH'
16493      hardcode_shlibpath_var_GCJ=no
16494      ;;
16495
16496    sysv4.3*)
16497      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16498      hardcode_shlibpath_var_GCJ=no
16499      export_dynamic_flag_spec_GCJ='-Bexport'
16500      ;;
16501
16502    sysv4*MP*)
16503      if test -d /usr/nec; then
16504	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505	hardcode_shlibpath_var_GCJ=no
16506	runpath_var=LD_RUN_PATH
16507	hardcode_runpath_var=yes
16508	ld_shlibs_GCJ=yes
16509      fi
16510      ;;
16511
16512    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16513      no_undefined_flag_GCJ='${wl}-z,text'
16514      archive_cmds_need_lc_GCJ=no
16515      hardcode_shlibpath_var_GCJ=no
16516      runpath_var='LD_RUN_PATH'
16517
16518      if test "$GCC" = yes; then
16519	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16520	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521      else
16522	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16523	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16524      fi
16525      ;;
16526
16527    sysv5* | sco3.2v5* | sco5v6*)
16528      # Note: We can NOT use -z defs as we might desire, because we do not
16529      # link with -lc, and that would cause any symbols used from libc to
16530      # always be unresolved, which means just about no library would
16531      # ever link correctly.  If we're not using GNU ld we use -z text
16532      # though, which does catch some bad symbols but isn't as heavy-handed
16533      # as -z defs.
16534      no_undefined_flag_GCJ='${wl}-z,text'
16535      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16536      archive_cmds_need_lc_GCJ=no
16537      hardcode_shlibpath_var_GCJ=no
16538      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16539      hardcode_libdir_separator_GCJ=':'
16540      link_all_deplibs_GCJ=yes
16541      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16542      runpath_var='LD_RUN_PATH'
16543
16544      if test "$GCC" = yes; then
16545	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16546	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16547      else
16548	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16549	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16550      fi
16551      ;;
16552
16553    uts4*)
16554      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16555      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16556      hardcode_shlibpath_var_GCJ=no
16557      ;;
16558
16559    *)
16560      ld_shlibs_GCJ=no
16561      ;;
16562    esac
16563  fi
16564
16565echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16566echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16567test "$ld_shlibs_GCJ" = no && can_build_shared=no
16568
16569#
16570# Do we need to explicitly link libc?
16571#
16572case "x$archive_cmds_need_lc_GCJ" in
16573x|xyes)
16574  # Assume -lc should be added
16575  archive_cmds_need_lc_GCJ=yes
16576
16577  if test "$enable_shared" = yes && test "$GCC" = yes; then
16578    case $archive_cmds_GCJ in
16579    *'~'*)
16580      # FIXME: we may have to deal with multi-command sequences.
16581      ;;
16582    '$CC '*)
16583      # Test whether the compiler implicitly links with -lc since on some
16584      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16585      # to ld, don't add -lc before -lgcc.
16586      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16587echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16588      $rm conftest*
16589      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16590
16591      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592  (eval $ac_compile) 2>&5
16593  ac_status=$?
16594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595  (exit $ac_status); } 2>conftest.err; then
16596        soname=conftest
16597        lib=conftest
16598        libobjs=conftest.$ac_objext
16599        deplibs=
16600        wl=$lt_prog_compiler_wl_GCJ
16601	pic_flag=$lt_prog_compiler_pic_GCJ
16602        compiler_flags=-v
16603        linker_flags=-v
16604        verstring=
16605        output_objdir=.
16606        libname=conftest
16607        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16608        allow_undefined_flag_GCJ=
16609        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16610  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16611  ac_status=$?
16612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613  (exit $ac_status); }
16614        then
16615	  archive_cmds_need_lc_GCJ=no
16616        else
16617	  archive_cmds_need_lc_GCJ=yes
16618        fi
16619        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16620      else
16621        cat conftest.err 1>&5
16622      fi
16623      $rm conftest*
16624      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16625echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16626      ;;
16627    esac
16628  fi
16629  ;;
16630esac
16631
16632echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16633echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16634library_names_spec=
16635libname_spec='lib$name'
16636soname_spec=
16637shrext_cmds=".so"
16638postinstall_cmds=
16639postuninstall_cmds=
16640finish_cmds=
16641finish_eval=
16642shlibpath_var=
16643shlibpath_overrides_runpath=unknown
16644version_type=none
16645dynamic_linker="$host_os ld.so"
16646sys_lib_dlsearch_path_spec="/lib /usr/lib"
16647if test "$GCC" = yes; then
16648  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16649  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16650    # if the path contains ";" then we assume it to be the separator
16651    # otherwise default to the standard path separator (i.e. ":") - it is
16652    # assumed that no part of a normal pathname contains ";" but that should
16653    # okay in the real world where ";" in dirpaths is itself problematic.
16654    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16655  else
16656    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16657  fi
16658else
16659  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16660fi
16661need_lib_prefix=unknown
16662hardcode_into_libs=no
16663
16664# when you set need_version to no, make sure it does not cause -set_version
16665# flags to be left without arguments
16666need_version=unknown
16667
16668case $host_os in
16669aix3*)
16670  version_type=linux
16671  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16672  shlibpath_var=LIBPATH
16673
16674  # AIX 3 has no versioning support, so we append a major version to the name.
16675  soname_spec='${libname}${release}${shared_ext}$major'
16676  ;;
16677
16678aix4* | aix5*)
16679  version_type=linux
16680  need_lib_prefix=no
16681  need_version=no
16682  hardcode_into_libs=yes
16683  if test "$host_cpu" = ia64; then
16684    # AIX 5 supports IA64
16685    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16686    shlibpath_var=LD_LIBRARY_PATH
16687  else
16688    # With GCC up to 2.95.x, collect2 would create an import file
16689    # for dependence libraries.  The import file would start with
16690    # the line `#! .'.  This would cause the generated library to
16691    # depend on `.', always an invalid library.  This was fixed in
16692    # development snapshots of GCC prior to 3.0.
16693    case $host_os in
16694      aix4 | aix4.[01] | aix4.[01].*)
16695      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16696	   echo ' yes '
16697	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16698	:
16699      else
16700	can_build_shared=no
16701      fi
16702      ;;
16703    esac
16704    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16705    # soname into executable. Probably we can add versioning support to
16706    # collect2, so additional links can be useful in future.
16707    if test "$aix_use_runtimelinking" = yes; then
16708      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16709      # instead of lib<name>.a to let people know that these are not
16710      # typical AIX shared libraries.
16711      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712    else
16713      # We preserve .a as extension for shared libraries through AIX4.2
16714      # and later when we are not doing run time linking.
16715      library_names_spec='${libname}${release}.a $libname.a'
16716      soname_spec='${libname}${release}${shared_ext}$major'
16717    fi
16718    shlibpath_var=LIBPATH
16719  fi
16720  ;;
16721
16722amigaos*)
16723  library_names_spec='$libname.ixlibrary $libname.a'
16724  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16725  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'
16726  ;;
16727
16728beos*)
16729  library_names_spec='${libname}${shared_ext}'
16730  dynamic_linker="$host_os ld.so"
16731  shlibpath_var=LIBRARY_PATH
16732  ;;
16733
16734bsdi[45]*)
16735  version_type=linux
16736  need_version=no
16737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738  soname_spec='${libname}${release}${shared_ext}$major'
16739  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16740  shlibpath_var=LD_LIBRARY_PATH
16741  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16742  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16743  # the default ld.so.conf also contains /usr/contrib/lib and
16744  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16745  # libtool to hard-code these into programs
16746  ;;
16747
16748cygwin* | mingw* | pw32*)
16749  version_type=windows
16750  shrext_cmds=".dll"
16751  need_version=no
16752  need_lib_prefix=no
16753
16754  case $GCC,$host_os in
16755  yes,cygwin* | yes,mingw* | yes,pw32*)
16756    library_names_spec='$libname.dll.a'
16757    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16758    postinstall_cmds='base_file=`basename \${file}`~
16759      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16760      dldir=$destdir/`dirname \$dlpath`~
16761      test -d \$dldir || mkdir -p \$dldir~
16762      $install_prog $dir/$dlname \$dldir/$dlname~
16763      chmod a+x \$dldir/$dlname'
16764    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16765      dlpath=$dir/\$dldll~
16766       $rm \$dlpath'
16767    shlibpath_overrides_runpath=yes
16768
16769    case $host_os in
16770    cygwin*)
16771      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16772      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16773      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16774      ;;
16775    mingw*)
16776      # MinGW DLLs use traditional 'lib' prefix
16777      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16778      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16779      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16780        # It is most probably a Windows format PATH printed by
16781        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16782        # path with ; separators, and with drive letters. We can handle the
16783        # drive letters (cygwin fileutils understands them), so leave them,
16784        # especially as we might pass files found there to a mingw objdump,
16785        # which wouldn't understand a cygwinified path. Ahh.
16786        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16787      else
16788        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16789      fi
16790      ;;
16791    pw32*)
16792      # pw32 DLLs use 'pw' prefix rather than 'lib'
16793      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16794      ;;
16795    esac
16796    ;;
16797
16798  *)
16799    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16800    ;;
16801  esac
16802  dynamic_linker='Win32 ld.exe'
16803  # FIXME: first we should search . and the directory the executable is in
16804  shlibpath_var=PATH
16805  ;;
16806
16807darwin* | rhapsody*)
16808  dynamic_linker="$host_os dyld"
16809  version_type=darwin
16810  need_lib_prefix=no
16811  need_version=no
16812  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16813  soname_spec='${libname}${release}${major}$shared_ext'
16814  shlibpath_overrides_runpath=yes
16815  shlibpath_var=DYLD_LIBRARY_PATH
16816  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16817  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16818  if test "$GCC" = yes; then
16819    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"`
16820  else
16821    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16822  fi
16823  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16824  ;;
16825
16826dgux*)
16827  version_type=linux
16828  need_lib_prefix=no
16829  need_version=no
16830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16831  soname_spec='${libname}${release}${shared_ext}$major'
16832  shlibpath_var=LD_LIBRARY_PATH
16833  ;;
16834
16835freebsd1*)
16836  dynamic_linker=no
16837  ;;
16838
16839kfreebsd*-gnu)
16840  version_type=linux
16841  need_lib_prefix=no
16842  need_version=no
16843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16844  soname_spec='${libname}${release}${shared_ext}$major'
16845  shlibpath_var=LD_LIBRARY_PATH
16846  shlibpath_overrides_runpath=no
16847  hardcode_into_libs=yes
16848  dynamic_linker='GNU ld.so'
16849  ;;
16850
16851freebsd* | dragonfly*)
16852  # DragonFly does not have aout.  When/if they implement a new
16853  # versioning mechanism, adjust this.
16854  if test -x /usr/bin/objformat; then
16855    objformat=`/usr/bin/objformat`
16856  else
16857    case $host_os in
16858    freebsd[123]*) objformat=aout ;;
16859    *) objformat=elf ;;
16860    esac
16861  fi
16862  version_type=freebsd-$objformat
16863  case $version_type in
16864    freebsd-elf*)
16865      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16866      need_version=no
16867      need_lib_prefix=no
16868      ;;
16869    freebsd-*)
16870      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16871      need_version=yes
16872      ;;
16873  esac
16874  shlibpath_var=LD_LIBRARY_PATH
16875  case $host_os in
16876  freebsd2*)
16877    shlibpath_overrides_runpath=yes
16878    ;;
16879  freebsd3.[01]* | freebsdelf3.[01]*)
16880    shlibpath_overrides_runpath=yes
16881    hardcode_into_libs=yes
16882    ;;
16883  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16884  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16885    shlibpath_overrides_runpath=no
16886    hardcode_into_libs=yes
16887    ;;
16888  freebsd*) # from 4.6 on
16889    shlibpath_overrides_runpath=yes
16890    hardcode_into_libs=yes
16891    ;;
16892  esac
16893  ;;
16894
16895gnu*)
16896  version_type=linux
16897  need_lib_prefix=no
16898  need_version=no
16899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16900  soname_spec='${libname}${release}${shared_ext}$major'
16901  shlibpath_var=LD_LIBRARY_PATH
16902  hardcode_into_libs=yes
16903  ;;
16904
16905hpux9* | hpux10* | hpux11*)
16906  # Give a soname corresponding to the major version so that dld.sl refuses to
16907  # link against other versions.
16908  version_type=sunos
16909  need_lib_prefix=no
16910  need_version=no
16911  case $host_cpu in
16912  ia64*)
16913    shrext_cmds='.so'
16914    hardcode_into_libs=yes
16915    dynamic_linker="$host_os dld.so"
16916    shlibpath_var=LD_LIBRARY_PATH
16917    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16918    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919    soname_spec='${libname}${release}${shared_ext}$major'
16920    if test "X$HPUX_IA64_MODE" = X32; then
16921      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16922    else
16923      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16924    fi
16925    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16926    ;;
16927   hppa*64*)
16928     shrext_cmds='.sl'
16929     hardcode_into_libs=yes
16930     dynamic_linker="$host_os dld.sl"
16931     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16932     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934     soname_spec='${libname}${release}${shared_ext}$major'
16935     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16936     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16937     ;;
16938   *)
16939    shrext_cmds='.sl'
16940    dynamic_linker="$host_os dld.sl"
16941    shlibpath_var=SHLIB_PATH
16942    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16943    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944    soname_spec='${libname}${release}${shared_ext}$major'
16945    ;;
16946  esac
16947  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16948  postinstall_cmds='chmod 555 $lib'
16949  ;;
16950
16951interix3*)
16952  version_type=linux
16953  need_lib_prefix=no
16954  need_version=no
16955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16956  soname_spec='${libname}${release}${shared_ext}$major'
16957  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16958  shlibpath_var=LD_LIBRARY_PATH
16959  shlibpath_overrides_runpath=no
16960  hardcode_into_libs=yes
16961  ;;
16962
16963irix5* | irix6* | nonstopux*)
16964  case $host_os in
16965    nonstopux*) version_type=nonstopux ;;
16966    *)
16967	if test "$lt_cv_prog_gnu_ld" = yes; then
16968		version_type=linux
16969	else
16970		version_type=irix
16971	fi ;;
16972  esac
16973  need_lib_prefix=no
16974  need_version=no
16975  soname_spec='${libname}${release}${shared_ext}$major'
16976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16977  case $host_os in
16978  irix5* | nonstopux*)
16979    libsuff= shlibsuff=
16980    ;;
16981  *)
16982    case $LD in # libtool.m4 will add one of these switches to LD
16983    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16984      libsuff= shlibsuff= libmagic=32-bit;;
16985    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16986      libsuff=32 shlibsuff=N32 libmagic=N32;;
16987    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16988      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16989    *) libsuff= shlibsuff= libmagic=never-match;;
16990    esac
16991    ;;
16992  esac
16993  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16994  shlibpath_overrides_runpath=no
16995  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16996  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16997  hardcode_into_libs=yes
16998  ;;
16999
17000# No shared lib support for Linux oldld, aout, or coff.
17001linux*oldld* | linux*aout* | linux*coff*)
17002  dynamic_linker=no
17003  ;;
17004
17005# This must be Linux ELF.
17006linux*)
17007  version_type=linux
17008  need_lib_prefix=no
17009  need_version=no
17010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011  soname_spec='${libname}${release}${shared_ext}$major'
17012  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17013  shlibpath_var=LD_LIBRARY_PATH
17014  shlibpath_overrides_runpath=no
17015  # This implies no fast_install, which is unacceptable.
17016  # Some rework will be needed to allow for fast_install
17017  # before this can be enabled.
17018  hardcode_into_libs=yes
17019
17020  # find out which ABI we are using
17021  libsuff=
17022  case "$host_cpu" in
17023  x86_64*|s390x*|powerpc64*)
17024    echo '#line 17024 "configure"' > conftest.$ac_ext
17025    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17026  (eval $ac_compile) 2>&5
17027  ac_status=$?
17028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029  (exit $ac_status); }; then
17030      case `/usr/bin/file conftest.$ac_objext` in
17031      *64-bit*)
17032        libsuff=64
17033        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17034        ;;
17035      esac
17036    fi
17037    rm -rf conftest*
17038    ;;
17039  esac
17040
17041  # Append ld.so.conf contents to the search path
17042  if test -f /etc/ld.so.conf; then
17043    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' ' '`
17044    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17045  fi
17046
17047  # We used to test for /lib/ld.so.1 and disable shared libraries on
17048  # powerpc, because MkLinux only supported shared libraries with the
17049  # GNU dynamic linker.  Since this was broken with cross compilers,
17050  # most powerpc-linux boxes support dynamic linking these days and
17051  # people can always --disable-shared, the test was removed, and we
17052  # assume the GNU/Linux dynamic linker is in use.
17053  dynamic_linker='GNU/Linux ld.so'
17054  ;;
17055
17056knetbsd*-gnu)
17057  version_type=linux
17058  need_lib_prefix=no
17059  need_version=no
17060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17061  soname_spec='${libname}${release}${shared_ext}$major'
17062  shlibpath_var=LD_LIBRARY_PATH
17063  shlibpath_overrides_runpath=no
17064  hardcode_into_libs=yes
17065  dynamic_linker='GNU ld.so'
17066  ;;
17067
17068netbsd*)
17069  version_type=sunos
17070  need_lib_prefix=no
17071  need_version=no
17072  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17073    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17074    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17075    dynamic_linker='NetBSD (a.out) ld.so'
17076  else
17077    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17078    soname_spec='${libname}${release}${shared_ext}$major'
17079    dynamic_linker='NetBSD ld.elf_so'
17080  fi
17081  shlibpath_var=LD_LIBRARY_PATH
17082  shlibpath_overrides_runpath=yes
17083  hardcode_into_libs=yes
17084  ;;
17085
17086newsos6)
17087  version_type=linux
17088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089  shlibpath_var=LD_LIBRARY_PATH
17090  shlibpath_overrides_runpath=yes
17091  ;;
17092
17093nto-qnx*)
17094  version_type=linux
17095  need_lib_prefix=no
17096  need_version=no
17097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098  soname_spec='${libname}${release}${shared_ext}$major'
17099  shlibpath_var=LD_LIBRARY_PATH
17100  shlibpath_overrides_runpath=yes
17101  ;;
17102
17103openbsd*)
17104  version_type=sunos
17105  sys_lib_dlsearch_path_spec="/usr/lib"
17106  need_lib_prefix=no
17107  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17108  case $host_os in
17109    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17110    *)                         need_version=no  ;;
17111  esac
17112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17113  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17114  shlibpath_var=LD_LIBRARY_PATH
17115  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17116    case $host_os in
17117      openbsd2.[89] | openbsd2.[89].*)
17118	shlibpath_overrides_runpath=no
17119	;;
17120      *)
17121	shlibpath_overrides_runpath=yes
17122	;;
17123      esac
17124  else
17125    shlibpath_overrides_runpath=yes
17126  fi
17127  ;;
17128
17129os2*)
17130  libname_spec='$name'
17131  shrext_cmds=".dll"
17132  need_lib_prefix=no
17133  library_names_spec='$libname${shared_ext} $libname.a'
17134  dynamic_linker='OS/2 ld.exe'
17135  shlibpath_var=LIBPATH
17136  ;;
17137
17138osf3* | osf4* | osf5*)
17139  version_type=osf
17140  need_lib_prefix=no
17141  need_version=no
17142  soname_spec='${libname}${release}${shared_ext}$major'
17143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144  shlibpath_var=LD_LIBRARY_PATH
17145  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17146  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17147  ;;
17148
17149solaris*)
17150  version_type=linux
17151  need_lib_prefix=no
17152  need_version=no
17153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154  soname_spec='${libname}${release}${shared_ext}$major'
17155  shlibpath_var=LD_LIBRARY_PATH
17156  shlibpath_overrides_runpath=yes
17157  hardcode_into_libs=yes
17158  # ldd complains unless libraries are executable
17159  postinstall_cmds='chmod +x $lib'
17160  ;;
17161
17162sunos4*)
17163  version_type=sunos
17164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17165  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17166  shlibpath_var=LD_LIBRARY_PATH
17167  shlibpath_overrides_runpath=yes
17168  if test "$with_gnu_ld" = yes; then
17169    need_lib_prefix=no
17170  fi
17171  need_version=yes
17172  ;;
17173
17174sysv4 | sysv4.3*)
17175  version_type=linux
17176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177  soname_spec='${libname}${release}${shared_ext}$major'
17178  shlibpath_var=LD_LIBRARY_PATH
17179  case $host_vendor in
17180    sni)
17181      shlibpath_overrides_runpath=no
17182      need_lib_prefix=no
17183      export_dynamic_flag_spec='${wl}-Blargedynsym'
17184      runpath_var=LD_RUN_PATH
17185      ;;
17186    siemens)
17187      need_lib_prefix=no
17188      ;;
17189    motorola)
17190      need_lib_prefix=no
17191      need_version=no
17192      shlibpath_overrides_runpath=no
17193      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17194      ;;
17195  esac
17196  ;;
17197
17198sysv4*MP*)
17199  if test -d /usr/nec ;then
17200    version_type=linux
17201    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17202    soname_spec='$libname${shared_ext}.$major'
17203    shlibpath_var=LD_LIBRARY_PATH
17204  fi
17205  ;;
17206
17207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17208  version_type=freebsd-elf
17209  need_lib_prefix=no
17210  need_version=no
17211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17212  soname_spec='${libname}${release}${shared_ext}$major'
17213  shlibpath_var=LD_LIBRARY_PATH
17214  hardcode_into_libs=yes
17215  if test "$with_gnu_ld" = yes; then
17216    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17217    shlibpath_overrides_runpath=no
17218  else
17219    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17220    shlibpath_overrides_runpath=yes
17221    case $host_os in
17222      sco3.2v5*)
17223        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17224	;;
17225    esac
17226  fi
17227  sys_lib_dlsearch_path_spec='/usr/lib'
17228  ;;
17229
17230uts4*)
17231  version_type=linux
17232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233  soname_spec='${libname}${release}${shared_ext}$major'
17234  shlibpath_var=LD_LIBRARY_PATH
17235  ;;
17236
17237*)
17238  dynamic_linker=no
17239  ;;
17240esac
17241echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17242echo "${ECHO_T}$dynamic_linker" >&6
17243test "$dynamic_linker" = no && can_build_shared=no
17244
17245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17246if test "$GCC" = yes; then
17247  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17248fi
17249
17250echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17251echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17252hardcode_action_GCJ=
17253if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17254   test -n "$runpath_var_GCJ" || \
17255   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17256
17257  # We can hardcode non-existant directories.
17258  if test "$hardcode_direct_GCJ" != no &&
17259     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17260     # have to relink, otherwise we might link with an installed library
17261     # when we should be linking with a yet-to-be-installed one
17262     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17263     test "$hardcode_minus_L_GCJ" != no; then
17264    # Linking always hardcodes the temporary library directory.
17265    hardcode_action_GCJ=relink
17266  else
17267    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17268    hardcode_action_GCJ=immediate
17269  fi
17270else
17271  # We cannot hardcode anything, or else we can only hardcode existing
17272  # directories.
17273  hardcode_action_GCJ=unsupported
17274fi
17275echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17276echo "${ECHO_T}$hardcode_action_GCJ" >&6
17277
17278if test "$hardcode_action_GCJ" = relink; then
17279  # Fast installation is not supported
17280  enable_fast_install=no
17281elif test "$shlibpath_overrides_runpath" = yes ||
17282     test "$enable_shared" = no; then
17283  # Fast installation is not necessary
17284  enable_fast_install=needless
17285fi
17286
17287
17288# The else clause should only fire when bootstrapping the
17289# libtool distribution, otherwise you forgot to ship ltmain.sh
17290# with your package, and you will get complaints that there are
17291# no rules to generate ltmain.sh.
17292if test -f "$ltmain"; then
17293  # See if we are running on zsh, and set the options which allow our commands through
17294  # without removal of \ escapes.
17295  if test -n "${ZSH_VERSION+set}" ; then
17296    setopt NO_GLOB_SUBST
17297  fi
17298  # Now quote all the things that may contain metacharacters while being
17299  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17300  # variables and quote the copies for generation of the libtool script.
17301  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17302    SED SHELL STRIP \
17303    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17304    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17305    deplibs_check_method reload_flag reload_cmds need_locks \
17306    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17307    lt_cv_sys_global_symbol_to_c_name_address \
17308    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17309    old_postinstall_cmds old_postuninstall_cmds \
17310    compiler_GCJ \
17311    CC_GCJ \
17312    LD_GCJ \
17313    lt_prog_compiler_wl_GCJ \
17314    lt_prog_compiler_pic_GCJ \
17315    lt_prog_compiler_static_GCJ \
17316    lt_prog_compiler_no_builtin_flag_GCJ \
17317    export_dynamic_flag_spec_GCJ \
17318    thread_safe_flag_spec_GCJ \
17319    whole_archive_flag_spec_GCJ \
17320    enable_shared_with_static_runtimes_GCJ \
17321    old_archive_cmds_GCJ \
17322    old_archive_from_new_cmds_GCJ \
17323    predep_objects_GCJ \
17324    postdep_objects_GCJ \
17325    predeps_GCJ \
17326    postdeps_GCJ \
17327    compiler_lib_search_path_GCJ \
17328    archive_cmds_GCJ \
17329    archive_expsym_cmds_GCJ \
17330    postinstall_cmds_GCJ \
17331    postuninstall_cmds_GCJ \
17332    old_archive_from_expsyms_cmds_GCJ \
17333    allow_undefined_flag_GCJ \
17334    no_undefined_flag_GCJ \
17335    export_symbols_cmds_GCJ \
17336    hardcode_libdir_flag_spec_GCJ \
17337    hardcode_libdir_flag_spec_ld_GCJ \
17338    hardcode_libdir_separator_GCJ \
17339    hardcode_automatic_GCJ \
17340    module_cmds_GCJ \
17341    module_expsym_cmds_GCJ \
17342    lt_cv_prog_compiler_c_o_GCJ \
17343    exclude_expsyms_GCJ \
17344    include_expsyms_GCJ; do
17345
17346    case $var in
17347    old_archive_cmds_GCJ | \
17348    old_archive_from_new_cmds_GCJ | \
17349    archive_cmds_GCJ | \
17350    archive_expsym_cmds_GCJ | \
17351    module_cmds_GCJ | \
17352    module_expsym_cmds_GCJ | \
17353    old_archive_from_expsyms_cmds_GCJ | \
17354    export_symbols_cmds_GCJ | \
17355    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17356    postinstall_cmds | postuninstall_cmds | \
17357    old_postinstall_cmds | old_postuninstall_cmds | \
17358    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17359      # Double-quote double-evaled strings.
17360      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17361      ;;
17362    *)
17363      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17364      ;;
17365    esac
17366  done
17367
17368  case $lt_echo in
17369  *'\$0 --fallback-echo"')
17370    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17371    ;;
17372  esac
17373
17374cfgfile="$ofile"
17375
17376  cat <<__EOF__ >> "$cfgfile"
17377# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17378
17379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17380
17381# Shell to use when invoking shell scripts.
17382SHELL=$lt_SHELL
17383
17384# Whether or not to build shared libraries.
17385build_libtool_libs=$enable_shared
17386
17387# Whether or not to build static libraries.
17388build_old_libs=$enable_static
17389
17390# Whether or not to add -lc for building shared libraries.
17391build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17392
17393# Whether or not to disallow shared libs when runtime libs are static
17394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17395
17396# Whether or not to optimize for fast installation.
17397fast_install=$enable_fast_install
17398
17399# The host system.
17400host_alias=$host_alias
17401host=$host
17402host_os=$host_os
17403
17404# The build system.
17405build_alias=$build_alias
17406build=$build
17407build_os=$build_os
17408
17409# An echo program that does not interpret backslashes.
17410echo=$lt_echo
17411
17412# The archiver.
17413AR=$lt_AR
17414AR_FLAGS=$lt_AR_FLAGS
17415
17416# A C compiler.
17417LTCC=$lt_LTCC
17418
17419# LTCC compiler flags.
17420LTCFLAGS=$lt_LTCFLAGS
17421
17422# A language-specific compiler.
17423CC=$lt_compiler_GCJ
17424
17425# Is the compiler the GNU C compiler?
17426with_gcc=$GCC_GCJ
17427
17428# An ERE matcher.
17429EGREP=$lt_EGREP
17430
17431# The linker used to build libraries.
17432LD=$lt_LD_GCJ
17433
17434# Whether we need hard or soft links.
17435LN_S=$lt_LN_S
17436
17437# A BSD-compatible nm program.
17438NM=$lt_NM
17439
17440# A symbol stripping program
17441STRIP=$lt_STRIP
17442
17443# Used to examine libraries when file_magic_cmd begins "file"
17444MAGIC_CMD=$MAGIC_CMD
17445
17446# Used on cygwin: DLL creation program.
17447DLLTOOL="$DLLTOOL"
17448
17449# Used on cygwin: object dumper.
17450OBJDUMP="$OBJDUMP"
17451
17452# Used on cygwin: assembler.
17453AS="$AS"
17454
17455# The name of the directory that contains temporary libtool files.
17456objdir=$objdir
17457
17458# How to create reloadable object files.
17459reload_flag=$lt_reload_flag
17460reload_cmds=$lt_reload_cmds
17461
17462# How to pass a linker flag through the compiler.
17463wl=$lt_lt_prog_compiler_wl_GCJ
17464
17465# Object file suffix (normally "o").
17466objext="$ac_objext"
17467
17468# Old archive suffix (normally "a").
17469libext="$libext"
17470
17471# Shared library suffix (normally ".so").
17472shrext_cmds='$shrext_cmds'
17473
17474# Executable file suffix (normally "").
17475exeext="$exeext"
17476
17477# Additional compiler flags for building library objects.
17478pic_flag=$lt_lt_prog_compiler_pic_GCJ
17479pic_mode=$pic_mode
17480
17481# What is the maximum length of a command?
17482max_cmd_len=$lt_cv_sys_max_cmd_len
17483
17484# Does compiler simultaneously support -c and -o options?
17485compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17486
17487# Must we lock files when doing compilation?
17488need_locks=$lt_need_locks
17489
17490# Do we need the lib prefix for modules?
17491need_lib_prefix=$need_lib_prefix
17492
17493# Do we need a version for libraries?
17494need_version=$need_version
17495
17496# Whether dlopen is supported.
17497dlopen_support=$enable_dlopen
17498
17499# Whether dlopen of programs is supported.
17500dlopen_self=$enable_dlopen_self
17501
17502# Whether dlopen of statically linked programs is supported.
17503dlopen_self_static=$enable_dlopen_self_static
17504
17505# Compiler flag to prevent dynamic linking.
17506link_static_flag=$lt_lt_prog_compiler_static_GCJ
17507
17508# Compiler flag to turn off builtin functions.
17509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17510
17511# Compiler flag to allow reflexive dlopens.
17512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17513
17514# Compiler flag to generate shared objects directly from archives.
17515whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17516
17517# Compiler flag to generate thread-safe objects.
17518thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17519
17520# Library versioning type.
17521version_type=$version_type
17522
17523# Format of library name prefix.
17524libname_spec=$lt_libname_spec
17525
17526# List of archive names.  First name is the real one, the rest are links.
17527# The last name is the one that the linker finds with -lNAME.
17528library_names_spec=$lt_library_names_spec
17529
17530# The coded name of the library, if different from the real name.
17531soname_spec=$lt_soname_spec
17532
17533# Commands used to build and install an old-style archive.
17534RANLIB=$lt_RANLIB
17535old_archive_cmds=$lt_old_archive_cmds_GCJ
17536old_postinstall_cmds=$lt_old_postinstall_cmds
17537old_postuninstall_cmds=$lt_old_postuninstall_cmds
17538
17539# Create an old-style archive from a shared archive.
17540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17541
17542# Create a temporary old-style archive to link instead of a shared archive.
17543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17544
17545# Commands used to build and install a shared archive.
17546archive_cmds=$lt_archive_cmds_GCJ
17547archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17548postinstall_cmds=$lt_postinstall_cmds
17549postuninstall_cmds=$lt_postuninstall_cmds
17550
17551# Commands used to build a loadable module (assumed same as above if empty)
17552module_cmds=$lt_module_cmds_GCJ
17553module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17554
17555# Commands to strip libraries.
17556old_striplib=$lt_old_striplib
17557striplib=$lt_striplib
17558
17559# Dependencies to place before the objects being linked to create a
17560# shared library.
17561predep_objects=$lt_predep_objects_GCJ
17562
17563# Dependencies to place after the objects being linked to create a
17564# shared library.
17565postdep_objects=$lt_postdep_objects_GCJ
17566
17567# Dependencies to place before the objects being linked to create a
17568# shared library.
17569predeps=$lt_predeps_GCJ
17570
17571# Dependencies to place after the objects being linked to create a
17572# shared library.
17573postdeps=$lt_postdeps_GCJ
17574
17575# The library search path used internally by the compiler when linking
17576# a shared library.
17577compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17578
17579# Method to check whether dependent libraries are shared objects.
17580deplibs_check_method=$lt_deplibs_check_method
17581
17582# Command to use when deplibs_check_method == file_magic.
17583file_magic_cmd=$lt_file_magic_cmd
17584
17585# Flag that allows shared libraries with undefined symbols to be built.
17586allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17587
17588# Flag that forces no undefined symbols.
17589no_undefined_flag=$lt_no_undefined_flag_GCJ
17590
17591# Commands used to finish a libtool library installation in a directory.
17592finish_cmds=$lt_finish_cmds
17593
17594# Same as above, but a single script fragment to be evaled but not shown.
17595finish_eval=$lt_finish_eval
17596
17597# Take the output of nm and produce a listing of raw symbols and C names.
17598global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17599
17600# Transform the output of nm in a proper C declaration
17601global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17602
17603# Transform the output of nm in a C name address pair
17604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17605
17606# This is the shared library runtime path variable.
17607runpath_var=$runpath_var
17608
17609# This is the shared library path variable.
17610shlibpath_var=$shlibpath_var
17611
17612# Is shlibpath searched before the hard-coded library search path?
17613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17614
17615# How to hardcode a shared library path into an executable.
17616hardcode_action=$hardcode_action_GCJ
17617
17618# Whether we should hardcode library paths into libraries.
17619hardcode_into_libs=$hardcode_into_libs
17620
17621# Flag to hardcode \$libdir into a binary during linking.
17622# This must work even if \$libdir does not exist.
17623hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17624
17625# If ld is used when linking, flag to hardcode \$libdir into
17626# a binary during linking. This must work even if \$libdir does
17627# not exist.
17628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17629
17630# Whether we need a single -rpath flag with a separated argument.
17631hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17632
17633# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17634# resulting binary.
17635hardcode_direct=$hardcode_direct_GCJ
17636
17637# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17638# resulting binary.
17639hardcode_minus_L=$hardcode_minus_L_GCJ
17640
17641# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17642# the resulting binary.
17643hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17644
17645# Set to yes if building a shared library automatically hardcodes DIR into the library
17646# and all subsequent libraries and executables linked against it.
17647hardcode_automatic=$hardcode_automatic_GCJ
17648
17649# Variables whose values should be saved in libtool wrapper scripts and
17650# restored at relink time.
17651variables_saved_for_relink="$variables_saved_for_relink"
17652
17653# Whether libtool must link a program against all its dependency libraries.
17654link_all_deplibs=$link_all_deplibs_GCJ
17655
17656# Compile-time system search path for libraries
17657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17658
17659# Run-time system search path for libraries
17660sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17661
17662# Fix the shell variable \$srcfile for the compiler.
17663fix_srcfile_path="$fix_srcfile_path_GCJ"
17664
17665# Set to yes if exported symbols are required.
17666always_export_symbols=$always_export_symbols_GCJ
17667
17668# The commands to list exported symbols.
17669export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17670
17671# The commands to extract the exported symbol list from a shared archive.
17672extract_expsyms_cmds=$lt_extract_expsyms_cmds
17673
17674# Symbols that should not be listed in the preloaded symbols.
17675exclude_expsyms=$lt_exclude_expsyms_GCJ
17676
17677# Symbols that must always be exported.
17678include_expsyms=$lt_include_expsyms_GCJ
17679
17680# ### END LIBTOOL TAG CONFIG: $tagname
17681
17682__EOF__
17683
17684
17685else
17686  # If there is no Makefile yet, we rely on a make rule to execute
17687  # `config.status --recheck' to rerun these tests and create the
17688  # libtool script then.
17689  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17690  if test -f "$ltmain_in"; then
17691    test -f Makefile && make "$ltmain"
17692  fi
17693fi
17694
17695
17696ac_ext=c
17697ac_cpp='$CPP $CPPFLAGS'
17698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17700ac_compiler_gnu=$ac_cv_c_compiler_gnu
17701
17702CC="$lt_save_CC"
17703
17704	else
17705	  tagname=""
17706	fi
17707	;;
17708
17709      RC)
17710
17711
17712
17713# Source file extension for RC test sources.
17714ac_ext=rc
17715
17716# Object file extension for compiled RC test sources.
17717objext=o
17718objext_RC=$objext
17719
17720# Code to be used in simple compile tests
17721lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17722
17723# Code to be used in simple link tests
17724lt_simple_link_test_code="$lt_simple_compile_test_code"
17725
17726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17727
17728# If no C compiler was specified, use CC.
17729LTCC=${LTCC-"$CC"}
17730
17731# If no C compiler flags were specified, use CFLAGS.
17732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17733
17734# Allow CC to be a program name with arguments.
17735compiler=$CC
17736
17737
17738# save warnings/boilerplate of simple test code
17739ac_outfile=conftest.$ac_objext
17740printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17742_lt_compiler_boilerplate=`cat conftest.err`
17743$rm conftest*
17744
17745ac_outfile=conftest.$ac_objext
17746printf "$lt_simple_link_test_code" >conftest.$ac_ext
17747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17748_lt_linker_boilerplate=`cat conftest.err`
17749$rm conftest*
17750
17751
17752# Allow CC to be a program name with arguments.
17753lt_save_CC="$CC"
17754CC=${RC-"windres"}
17755compiler=$CC
17756compiler_RC=$CC
17757for cc_temp in $compiler""; do
17758  case $cc_temp in
17759    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17760    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17761    \-*) ;;
17762    *) break;;
17763  esac
17764done
17765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17766
17767lt_cv_prog_compiler_c_o_RC=yes
17768
17769# The else clause should only fire when bootstrapping the
17770# libtool distribution, otherwise you forgot to ship ltmain.sh
17771# with your package, and you will get complaints that there are
17772# no rules to generate ltmain.sh.
17773if test -f "$ltmain"; then
17774  # See if we are running on zsh, and set the options which allow our commands through
17775  # without removal of \ escapes.
17776  if test -n "${ZSH_VERSION+set}" ; then
17777    setopt NO_GLOB_SUBST
17778  fi
17779  # Now quote all the things that may contain metacharacters while being
17780  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17781  # variables and quote the copies for generation of the libtool script.
17782  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17783    SED SHELL STRIP \
17784    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17785    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17786    deplibs_check_method reload_flag reload_cmds need_locks \
17787    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17788    lt_cv_sys_global_symbol_to_c_name_address \
17789    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17790    old_postinstall_cmds old_postuninstall_cmds \
17791    compiler_RC \
17792    CC_RC \
17793    LD_RC \
17794    lt_prog_compiler_wl_RC \
17795    lt_prog_compiler_pic_RC \
17796    lt_prog_compiler_static_RC \
17797    lt_prog_compiler_no_builtin_flag_RC \
17798    export_dynamic_flag_spec_RC \
17799    thread_safe_flag_spec_RC \
17800    whole_archive_flag_spec_RC \
17801    enable_shared_with_static_runtimes_RC \
17802    old_archive_cmds_RC \
17803    old_archive_from_new_cmds_RC \
17804    predep_objects_RC \
17805    postdep_objects_RC \
17806    predeps_RC \
17807    postdeps_RC \
17808    compiler_lib_search_path_RC \
17809    archive_cmds_RC \
17810    archive_expsym_cmds_RC \
17811    postinstall_cmds_RC \
17812    postuninstall_cmds_RC \
17813    old_archive_from_expsyms_cmds_RC \
17814    allow_undefined_flag_RC \
17815    no_undefined_flag_RC \
17816    export_symbols_cmds_RC \
17817    hardcode_libdir_flag_spec_RC \
17818    hardcode_libdir_flag_spec_ld_RC \
17819    hardcode_libdir_separator_RC \
17820    hardcode_automatic_RC \
17821    module_cmds_RC \
17822    module_expsym_cmds_RC \
17823    lt_cv_prog_compiler_c_o_RC \
17824    exclude_expsyms_RC \
17825    include_expsyms_RC; do
17826
17827    case $var in
17828    old_archive_cmds_RC | \
17829    old_archive_from_new_cmds_RC | \
17830    archive_cmds_RC | \
17831    archive_expsym_cmds_RC | \
17832    module_cmds_RC | \
17833    module_expsym_cmds_RC | \
17834    old_archive_from_expsyms_cmds_RC | \
17835    export_symbols_cmds_RC | \
17836    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17837    postinstall_cmds | postuninstall_cmds | \
17838    old_postinstall_cmds | old_postuninstall_cmds | \
17839    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17840      # Double-quote double-evaled strings.
17841      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17842      ;;
17843    *)
17844      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17845      ;;
17846    esac
17847  done
17848
17849  case $lt_echo in
17850  *'\$0 --fallback-echo"')
17851    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17852    ;;
17853  esac
17854
17855cfgfile="$ofile"
17856
17857  cat <<__EOF__ >> "$cfgfile"
17858# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17859
17860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17861
17862# Shell to use when invoking shell scripts.
17863SHELL=$lt_SHELL
17864
17865# Whether or not to build shared libraries.
17866build_libtool_libs=$enable_shared
17867
17868# Whether or not to build static libraries.
17869build_old_libs=$enable_static
17870
17871# Whether or not to add -lc for building shared libraries.
17872build_libtool_need_lc=$archive_cmds_need_lc_RC
17873
17874# Whether or not to disallow shared libs when runtime libs are static
17875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17876
17877# Whether or not to optimize for fast installation.
17878fast_install=$enable_fast_install
17879
17880# The host system.
17881host_alias=$host_alias
17882host=$host
17883host_os=$host_os
17884
17885# The build system.
17886build_alias=$build_alias
17887build=$build
17888build_os=$build_os
17889
17890# An echo program that does not interpret backslashes.
17891echo=$lt_echo
17892
17893# The archiver.
17894AR=$lt_AR
17895AR_FLAGS=$lt_AR_FLAGS
17896
17897# A C compiler.
17898LTCC=$lt_LTCC
17899
17900# LTCC compiler flags.
17901LTCFLAGS=$lt_LTCFLAGS
17902
17903# A language-specific compiler.
17904CC=$lt_compiler_RC
17905
17906# Is the compiler the GNU C compiler?
17907with_gcc=$GCC_RC
17908
17909# An ERE matcher.
17910EGREP=$lt_EGREP
17911
17912# The linker used to build libraries.
17913LD=$lt_LD_RC
17914
17915# Whether we need hard or soft links.
17916LN_S=$lt_LN_S
17917
17918# A BSD-compatible nm program.
17919NM=$lt_NM
17920
17921# A symbol stripping program
17922STRIP=$lt_STRIP
17923
17924# Used to examine libraries when file_magic_cmd begins "file"
17925MAGIC_CMD=$MAGIC_CMD
17926
17927# Used on cygwin: DLL creation program.
17928DLLTOOL="$DLLTOOL"
17929
17930# Used on cygwin: object dumper.
17931OBJDUMP="$OBJDUMP"
17932
17933# Used on cygwin: assembler.
17934AS="$AS"
17935
17936# The name of the directory that contains temporary libtool files.
17937objdir=$objdir
17938
17939# How to create reloadable object files.
17940reload_flag=$lt_reload_flag
17941reload_cmds=$lt_reload_cmds
17942
17943# How to pass a linker flag through the compiler.
17944wl=$lt_lt_prog_compiler_wl_RC
17945
17946# Object file suffix (normally "o").
17947objext="$ac_objext"
17948
17949# Old archive suffix (normally "a").
17950libext="$libext"
17951
17952# Shared library suffix (normally ".so").
17953shrext_cmds='$shrext_cmds'
17954
17955# Executable file suffix (normally "").
17956exeext="$exeext"
17957
17958# Additional compiler flags for building library objects.
17959pic_flag=$lt_lt_prog_compiler_pic_RC
17960pic_mode=$pic_mode
17961
17962# What is the maximum length of a command?
17963max_cmd_len=$lt_cv_sys_max_cmd_len
17964
17965# Does compiler simultaneously support -c and -o options?
17966compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17967
17968# Must we lock files when doing compilation?
17969need_locks=$lt_need_locks
17970
17971# Do we need the lib prefix for modules?
17972need_lib_prefix=$need_lib_prefix
17973
17974# Do we need a version for libraries?
17975need_version=$need_version
17976
17977# Whether dlopen is supported.
17978dlopen_support=$enable_dlopen
17979
17980# Whether dlopen of programs is supported.
17981dlopen_self=$enable_dlopen_self
17982
17983# Whether dlopen of statically linked programs is supported.
17984dlopen_self_static=$enable_dlopen_self_static
17985
17986# Compiler flag to prevent dynamic linking.
17987link_static_flag=$lt_lt_prog_compiler_static_RC
17988
17989# Compiler flag to turn off builtin functions.
17990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17991
17992# Compiler flag to allow reflexive dlopens.
17993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17994
17995# Compiler flag to generate shared objects directly from archives.
17996whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17997
17998# Compiler flag to generate thread-safe objects.
17999thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18000
18001# Library versioning type.
18002version_type=$version_type
18003
18004# Format of library name prefix.
18005libname_spec=$lt_libname_spec
18006
18007# List of archive names.  First name is the real one, the rest are links.
18008# The last name is the one that the linker finds with -lNAME.
18009library_names_spec=$lt_library_names_spec
18010
18011# The coded name of the library, if different from the real name.
18012soname_spec=$lt_soname_spec
18013
18014# Commands used to build and install an old-style archive.
18015RANLIB=$lt_RANLIB
18016old_archive_cmds=$lt_old_archive_cmds_RC
18017old_postinstall_cmds=$lt_old_postinstall_cmds
18018old_postuninstall_cmds=$lt_old_postuninstall_cmds
18019
18020# Create an old-style archive from a shared archive.
18021old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18022
18023# Create a temporary old-style archive to link instead of a shared archive.
18024old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18025
18026# Commands used to build and install a shared archive.
18027archive_cmds=$lt_archive_cmds_RC
18028archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18029postinstall_cmds=$lt_postinstall_cmds
18030postuninstall_cmds=$lt_postuninstall_cmds
18031
18032# Commands used to build a loadable module (assumed same as above if empty)
18033module_cmds=$lt_module_cmds_RC
18034module_expsym_cmds=$lt_module_expsym_cmds_RC
18035
18036# Commands to strip libraries.
18037old_striplib=$lt_old_striplib
18038striplib=$lt_striplib
18039
18040# Dependencies to place before the objects being linked to create a
18041# shared library.
18042predep_objects=$lt_predep_objects_RC
18043
18044# Dependencies to place after the objects being linked to create a
18045# shared library.
18046postdep_objects=$lt_postdep_objects_RC
18047
18048# Dependencies to place before the objects being linked to create a
18049# shared library.
18050predeps=$lt_predeps_RC
18051
18052# Dependencies to place after the objects being linked to create a
18053# shared library.
18054postdeps=$lt_postdeps_RC
18055
18056# The library search path used internally by the compiler when linking
18057# a shared library.
18058compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18059
18060# Method to check whether dependent libraries are shared objects.
18061deplibs_check_method=$lt_deplibs_check_method
18062
18063# Command to use when deplibs_check_method == file_magic.
18064file_magic_cmd=$lt_file_magic_cmd
18065
18066# Flag that allows shared libraries with undefined symbols to be built.
18067allow_undefined_flag=$lt_allow_undefined_flag_RC
18068
18069# Flag that forces no undefined symbols.
18070no_undefined_flag=$lt_no_undefined_flag_RC
18071
18072# Commands used to finish a libtool library installation in a directory.
18073finish_cmds=$lt_finish_cmds
18074
18075# Same as above, but a single script fragment to be evaled but not shown.
18076finish_eval=$lt_finish_eval
18077
18078# Take the output of nm and produce a listing of raw symbols and C names.
18079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18080
18081# Transform the output of nm in a proper C declaration
18082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18083
18084# Transform the output of nm in a C name address pair
18085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18086
18087# This is the shared library runtime path variable.
18088runpath_var=$runpath_var
18089
18090# This is the shared library path variable.
18091shlibpath_var=$shlibpath_var
18092
18093# Is shlibpath searched before the hard-coded library search path?
18094shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18095
18096# How to hardcode a shared library path into an executable.
18097hardcode_action=$hardcode_action_RC
18098
18099# Whether we should hardcode library paths into libraries.
18100hardcode_into_libs=$hardcode_into_libs
18101
18102# Flag to hardcode \$libdir into a binary during linking.
18103# This must work even if \$libdir does not exist.
18104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18105
18106# If ld is used when linking, flag to hardcode \$libdir into
18107# a binary during linking. This must work even if \$libdir does
18108# not exist.
18109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18110
18111# Whether we need a single -rpath flag with a separated argument.
18112hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18113
18114# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18115# resulting binary.
18116hardcode_direct=$hardcode_direct_RC
18117
18118# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18119# resulting binary.
18120hardcode_minus_L=$hardcode_minus_L_RC
18121
18122# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18123# the resulting binary.
18124hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18125
18126# Set to yes if building a shared library automatically hardcodes DIR into the library
18127# and all subsequent libraries and executables linked against it.
18128hardcode_automatic=$hardcode_automatic_RC
18129
18130# Variables whose values should be saved in libtool wrapper scripts and
18131# restored at relink time.
18132variables_saved_for_relink="$variables_saved_for_relink"
18133
18134# Whether libtool must link a program against all its dependency libraries.
18135link_all_deplibs=$link_all_deplibs_RC
18136
18137# Compile-time system search path for libraries
18138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18139
18140# Run-time system search path for libraries
18141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18142
18143# Fix the shell variable \$srcfile for the compiler.
18144fix_srcfile_path="$fix_srcfile_path_RC"
18145
18146# Set to yes if exported symbols are required.
18147always_export_symbols=$always_export_symbols_RC
18148
18149# The commands to list exported symbols.
18150export_symbols_cmds=$lt_export_symbols_cmds_RC
18151
18152# The commands to extract the exported symbol list from a shared archive.
18153extract_expsyms_cmds=$lt_extract_expsyms_cmds
18154
18155# Symbols that should not be listed in the preloaded symbols.
18156exclude_expsyms=$lt_exclude_expsyms_RC
18157
18158# Symbols that must always be exported.
18159include_expsyms=$lt_include_expsyms_RC
18160
18161# ### END LIBTOOL TAG CONFIG: $tagname
18162
18163__EOF__
18164
18165
18166else
18167  # If there is no Makefile yet, we rely on a make rule to execute
18168  # `config.status --recheck' to rerun these tests and create the
18169  # libtool script then.
18170  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18171  if test -f "$ltmain_in"; then
18172    test -f Makefile && make "$ltmain"
18173  fi
18174fi
18175
18176
18177ac_ext=c
18178ac_cpp='$CPP $CPPFLAGS'
18179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18181ac_compiler_gnu=$ac_cv_c_compiler_gnu
18182
18183CC="$lt_save_CC"
18184
18185	;;
18186
18187      *)
18188	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18189echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18190   { (exit 1); exit 1; }; }
18191	;;
18192      esac
18193
18194      # Append the new tag name to the list of available tags.
18195      if test -n "$tagname" ; then
18196      available_tags="$available_tags $tagname"
18197    fi
18198    fi
18199  done
18200  IFS="$lt_save_ifs"
18201
18202  # Now substitute the updated list of available tags.
18203  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18204    mv "${ofile}T" "$ofile"
18205    chmod +x "$ofile"
18206  else
18207    rm -f "${ofile}T"
18208    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18209echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18210   { (exit 1); exit 1; }; }
18211  fi
18212fi
18213
18214
18215
18216# This can be used to rebuild libtool when needed
18217LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18218
18219# Always use our own libtool.
18220LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18221
18222# Prevent multiple expansion
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246echo "$as_me:$LINENO: checking for X" >&5
18247echo $ECHO_N "checking for X... $ECHO_C" >&6
18248
18249
18250# Check whether --with-x or --without-x was given.
18251if test "${with_x+set}" = set; then
18252  withval="$with_x"
18253
18254fi;
18255# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18256if test "x$with_x" = xno; then
18257  # The user explicitly disabled X.
18258  have_x=disabled
18259else
18260  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18261    # Both variables are already set.
18262    have_x=yes
18263  else
18264    if test "${ac_cv_have_x+set}" = set; then
18265  echo $ECHO_N "(cached) $ECHO_C" >&6
18266else
18267  # One or both of the vars are not set, and there is no cached value.
18268ac_x_includes=no ac_x_libraries=no
18269rm -fr conftest.dir
18270if mkdir conftest.dir; then
18271  cd conftest.dir
18272  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18273  cat >Imakefile <<'_ACEOF'
18274acfindx:
18275	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18276_ACEOF
18277  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18278    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18279    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18280    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18281    for ac_extension in a so sl; do
18282      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18283	 test -f $ac_im_libdir/libX11.$ac_extension; then
18284	ac_im_usrlibdir=$ac_im_libdir; break
18285      fi
18286    done
18287    # Screen out bogus values from the imake configuration.  They are
18288    # bogus both because they are the default anyway, and because
18289    # using them would break gcc on systems where it needs fixed includes.
18290    case $ac_im_incroot in
18291	/usr/include) ;;
18292	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18293    esac
18294    case $ac_im_usrlibdir in
18295	/usr/lib | /lib) ;;
18296	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18297    esac
18298  fi
18299  cd ..
18300  rm -fr conftest.dir
18301fi
18302
18303# Standard set of common directories for X headers.
18304# Check X11 before X11Rn because it is often a symlink to the current release.
18305ac_x_header_dirs='
18306/usr/X11/include
18307/usr/X11R6/include
18308/usr/X11R5/include
18309/usr/X11R4/include
18310
18311/usr/include/X11
18312/usr/include/X11R6
18313/usr/include/X11R5
18314/usr/include/X11R4
18315
18316/usr/local/X11/include
18317/usr/local/X11R6/include
18318/usr/local/X11R5/include
18319/usr/local/X11R4/include
18320
18321/usr/local/include/X11
18322/usr/local/include/X11R6
18323/usr/local/include/X11R5
18324/usr/local/include/X11R4
18325
18326/usr/X386/include
18327/usr/x386/include
18328/usr/XFree86/include/X11
18329
18330/usr/include
18331/usr/local/include
18332/usr/unsupported/include
18333/usr/athena/include
18334/usr/local/x11r5/include
18335/usr/lpp/Xamples/include
18336
18337/usr/openwin/include
18338/usr/openwin/share/include'
18339
18340if test "$ac_x_includes" = no; then
18341  # Guess where to find include files, by looking for Xlib.h.
18342  # First, try using that file with no special directory specified.
18343  cat >conftest.$ac_ext <<_ACEOF
18344/* confdefs.h.  */
18345_ACEOF
18346cat confdefs.h >>conftest.$ac_ext
18347cat >>conftest.$ac_ext <<_ACEOF
18348/* end confdefs.h.  */
18349#include <X11/Xlib.h>
18350_ACEOF
18351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18352  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18353  ac_status=$?
18354  grep -v '^ *+' conftest.er1 >conftest.err
18355  rm -f conftest.er1
18356  cat conftest.err >&5
18357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358  (exit $ac_status); } >/dev/null; then
18359  if test -s conftest.err; then
18360    ac_cpp_err=$ac_c_preproc_warn_flag
18361    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18362  else
18363    ac_cpp_err=
18364  fi
18365else
18366  ac_cpp_err=yes
18367fi
18368if test -z "$ac_cpp_err"; then
18369  # We can compile using X headers with no special include directory.
18370ac_x_includes=
18371else
18372  echo "$as_me: failed program was:" >&5
18373sed 's/^/| /' conftest.$ac_ext >&5
18374
18375  for ac_dir in $ac_x_header_dirs; do
18376  if test -r "$ac_dir/X11/Xlib.h"; then
18377    ac_x_includes=$ac_dir
18378    break
18379  fi
18380done
18381fi
18382rm -f conftest.err conftest.$ac_ext
18383fi # $ac_x_includes = no
18384
18385if test "$ac_x_libraries" = no; then
18386  # Check for the libraries.
18387  # See if we find them without any special options.
18388  # Don't add to $LIBS permanently.
18389  ac_save_LIBS=$LIBS
18390  LIBS="-lXt $LIBS"
18391  cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h.  */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h.  */
18397#include <X11/Xlib.h>
18398int
18399main ()
18400{
18401XrmInitialize ()
18402  ;
18403  return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext conftest$ac_exeext
18407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18408  (eval $ac_link) 2>conftest.er1
18409  ac_status=$?
18410  grep -v '^ *+' conftest.er1 >conftest.err
18411  rm -f conftest.er1
18412  cat conftest.err >&5
18413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414  (exit $ac_status); } &&
18415	 { ac_try='test -z "$ac_c_werror_flag"
18416			 || test ! -s conftest.err'
18417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418  (eval $ac_try) 2>&5
18419  ac_status=$?
18420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421  (exit $ac_status); }; } &&
18422	 { ac_try='test -s conftest$ac_exeext'
18423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424  (eval $ac_try) 2>&5
18425  ac_status=$?
18426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427  (exit $ac_status); }; }; then
18428  LIBS=$ac_save_LIBS
18429# We can link X programs with no special library path.
18430ac_x_libraries=
18431else
18432  echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435LIBS=$ac_save_LIBS
18436for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18437do
18438  # Don't even attempt the hair of trying to link an X program!
18439  for ac_extension in a so sl; do
18440    if test -r $ac_dir/libXt.$ac_extension; then
18441      ac_x_libraries=$ac_dir
18442      break 2
18443    fi
18444  done
18445done
18446fi
18447rm -f conftest.err conftest.$ac_objext \
18448      conftest$ac_exeext conftest.$ac_ext
18449fi # $ac_x_libraries = no
18450
18451if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18452  # Didn't find X anywhere.  Cache the known absence of X.
18453  ac_cv_have_x="have_x=no"
18454else
18455  # Record where we found X for the cache.
18456  ac_cv_have_x="have_x=yes \
18457		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18458fi
18459fi
18460
18461  fi
18462  eval "$ac_cv_have_x"
18463fi # $with_x != no
18464
18465if test "$have_x" != yes; then
18466  echo "$as_me:$LINENO: result: $have_x" >&5
18467echo "${ECHO_T}$have_x" >&6
18468  no_x=yes
18469else
18470  # If each of the values was on the command line, it overrides each guess.
18471  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18472  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18473  # Update the cache value to reflect the command line values.
18474  ac_cv_have_x="have_x=yes \
18475		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18476  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18477echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18478fi
18479
18480if test "$no_x" = yes; then
18481  # Not all programs may use this symbol, but it does not hurt to define it.
18482
18483cat >>confdefs.h <<\_ACEOF
18484#define X_DISPLAY_MISSING 1
18485_ACEOF
18486
18487  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18488else
18489  if test -n "$x_includes"; then
18490    X_CFLAGS="$X_CFLAGS -I$x_includes"
18491  fi
18492
18493  # It would also be nice to do this for all -L options, not just this one.
18494  if test -n "$x_libraries"; then
18495    X_LIBS="$X_LIBS -L$x_libraries"
18496    # For Solaris; some versions of Sun CC require a space after -R and
18497    # others require no space.  Words are not sufficient . . . .
18498    case `(uname -sr) 2>/dev/null` in
18499    "SunOS 5"*)
18500      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18501echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18502      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18503      cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h.  */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h.  */
18509
18510int
18511main ()
18512{
18513
18514  ;
18515  return 0;
18516}
18517_ACEOF
18518rm -f conftest.$ac_objext conftest$ac_exeext
18519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18520  (eval $ac_link) 2>conftest.er1
18521  ac_status=$?
18522  grep -v '^ *+' conftest.er1 >conftest.err
18523  rm -f conftest.er1
18524  cat conftest.err >&5
18525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526  (exit $ac_status); } &&
18527	 { ac_try='test -z "$ac_c_werror_flag"
18528			 || test ! -s conftest.err'
18529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530  (eval $ac_try) 2>&5
18531  ac_status=$?
18532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533  (exit $ac_status); }; } &&
18534	 { ac_try='test -s conftest$ac_exeext'
18535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536  (eval $ac_try) 2>&5
18537  ac_status=$?
18538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539  (exit $ac_status); }; }; then
18540  ac_R_nospace=yes
18541else
18542  echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545ac_R_nospace=no
18546fi
18547rm -f conftest.err conftest.$ac_objext \
18548      conftest$ac_exeext conftest.$ac_ext
18549      if test $ac_R_nospace = yes; then
18550	echo "$as_me:$LINENO: result: no" >&5
18551echo "${ECHO_T}no" >&6
18552	X_LIBS="$X_LIBS -R$x_libraries"
18553      else
18554	LIBS="$ac_xsave_LIBS -R $x_libraries"
18555	cat >conftest.$ac_ext <<_ACEOF
18556/* confdefs.h.  */
18557_ACEOF
18558cat confdefs.h >>conftest.$ac_ext
18559cat >>conftest.$ac_ext <<_ACEOF
18560/* end confdefs.h.  */
18561
18562int
18563main ()
18564{
18565
18566  ;
18567  return 0;
18568}
18569_ACEOF
18570rm -f conftest.$ac_objext conftest$ac_exeext
18571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18572  (eval $ac_link) 2>conftest.er1
18573  ac_status=$?
18574  grep -v '^ *+' conftest.er1 >conftest.err
18575  rm -f conftest.er1
18576  cat conftest.err >&5
18577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578  (exit $ac_status); } &&
18579	 { ac_try='test -z "$ac_c_werror_flag"
18580			 || test ! -s conftest.err'
18581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582  (eval $ac_try) 2>&5
18583  ac_status=$?
18584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585  (exit $ac_status); }; } &&
18586	 { ac_try='test -s conftest$ac_exeext'
18587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588  (eval $ac_try) 2>&5
18589  ac_status=$?
18590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591  (exit $ac_status); }; }; then
18592  ac_R_space=yes
18593else
18594  echo "$as_me: failed program was:" >&5
18595sed 's/^/| /' conftest.$ac_ext >&5
18596
18597ac_R_space=no
18598fi
18599rm -f conftest.err conftest.$ac_objext \
18600      conftest$ac_exeext conftest.$ac_ext
18601	if test $ac_R_space = yes; then
18602	  echo "$as_me:$LINENO: result: yes" >&5
18603echo "${ECHO_T}yes" >&6
18604	  X_LIBS="$X_LIBS -R $x_libraries"
18605	else
18606	  echo "$as_me:$LINENO: result: neither works" >&5
18607echo "${ECHO_T}neither works" >&6
18608	fi
18609      fi
18610      LIBS=$ac_xsave_LIBS
18611    esac
18612  fi
18613
18614  # Check for system-dependent libraries X programs must link with.
18615  # Do this before checking for the system-independent R6 libraries
18616  # (-lICE), since we may need -lsocket or whatever for X linking.
18617
18618  if test "$ISC" = yes; then
18619    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18620  else
18621    # Martyn Johnson says this is needed for Ultrix, if the X
18622    # libraries were built with DECnet support.  And Karl Berry says
18623    # the Alpha needs dnet_stub (dnet does not exist).
18624    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18625    cat >conftest.$ac_ext <<_ACEOF
18626/* confdefs.h.  */
18627_ACEOF
18628cat confdefs.h >>conftest.$ac_ext
18629cat >>conftest.$ac_ext <<_ACEOF
18630/* end confdefs.h.  */
18631
18632/* Override any gcc2 internal prototype to avoid an error.  */
18633#ifdef __cplusplus
18634extern "C"
18635#endif
18636/* We use char because int might match the return type of a gcc2
18637   builtin and then its argument prototype would still apply.  */
18638char XOpenDisplay ();
18639int
18640main ()
18641{
18642XOpenDisplay ();
18643  ;
18644  return 0;
18645}
18646_ACEOF
18647rm -f conftest.$ac_objext conftest$ac_exeext
18648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18649  (eval $ac_link) 2>conftest.er1
18650  ac_status=$?
18651  grep -v '^ *+' conftest.er1 >conftest.err
18652  rm -f conftest.er1
18653  cat conftest.err >&5
18654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655  (exit $ac_status); } &&
18656	 { ac_try='test -z "$ac_c_werror_flag"
18657			 || test ! -s conftest.err'
18658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659  (eval $ac_try) 2>&5
18660  ac_status=$?
18661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662  (exit $ac_status); }; } &&
18663	 { ac_try='test -s conftest$ac_exeext'
18664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665  (eval $ac_try) 2>&5
18666  ac_status=$?
18667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668  (exit $ac_status); }; }; then
18669  :
18670else
18671  echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18675echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18676if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18677  echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679  ac_check_lib_save_LIBS=$LIBS
18680LIBS="-ldnet  $LIBS"
18681cat >conftest.$ac_ext <<_ACEOF
18682/* confdefs.h.  */
18683_ACEOF
18684cat confdefs.h >>conftest.$ac_ext
18685cat >>conftest.$ac_ext <<_ACEOF
18686/* end confdefs.h.  */
18687
18688/* Override any gcc2 internal prototype to avoid an error.  */
18689#ifdef __cplusplus
18690extern "C"
18691#endif
18692/* We use char because int might match the return type of a gcc2
18693   builtin and then its argument prototype would still apply.  */
18694char dnet_ntoa ();
18695int
18696main ()
18697{
18698dnet_ntoa ();
18699  ;
18700  return 0;
18701}
18702_ACEOF
18703rm -f conftest.$ac_objext conftest$ac_exeext
18704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18705  (eval $ac_link) 2>conftest.er1
18706  ac_status=$?
18707  grep -v '^ *+' conftest.er1 >conftest.err
18708  rm -f conftest.er1
18709  cat conftest.err >&5
18710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711  (exit $ac_status); } &&
18712	 { ac_try='test -z "$ac_c_werror_flag"
18713			 || test ! -s conftest.err'
18714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715  (eval $ac_try) 2>&5
18716  ac_status=$?
18717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718  (exit $ac_status); }; } &&
18719	 { ac_try='test -s conftest$ac_exeext'
18720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721  (eval $ac_try) 2>&5
18722  ac_status=$?
18723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724  (exit $ac_status); }; }; then
18725  ac_cv_lib_dnet_dnet_ntoa=yes
18726else
18727  echo "$as_me: failed program was:" >&5
18728sed 's/^/| /' conftest.$ac_ext >&5
18729
18730ac_cv_lib_dnet_dnet_ntoa=no
18731fi
18732rm -f conftest.err conftest.$ac_objext \
18733      conftest$ac_exeext conftest.$ac_ext
18734LIBS=$ac_check_lib_save_LIBS
18735fi
18736echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18737echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18738if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18739  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18740fi
18741
18742    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18743      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18744echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18745if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18746  echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748  ac_check_lib_save_LIBS=$LIBS
18749LIBS="-ldnet_stub  $LIBS"
18750cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h.  */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h.  */
18756
18757/* Override any gcc2 internal prototype to avoid an error.  */
18758#ifdef __cplusplus
18759extern "C"
18760#endif
18761/* We use char because int might match the return type of a gcc2
18762   builtin and then its argument prototype would still apply.  */
18763char dnet_ntoa ();
18764int
18765main ()
18766{
18767dnet_ntoa ();
18768  ;
18769  return 0;
18770}
18771_ACEOF
18772rm -f conftest.$ac_objext conftest$ac_exeext
18773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774  (eval $ac_link) 2>conftest.er1
18775  ac_status=$?
18776  grep -v '^ *+' conftest.er1 >conftest.err
18777  rm -f conftest.er1
18778  cat conftest.err >&5
18779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780  (exit $ac_status); } &&
18781	 { ac_try='test -z "$ac_c_werror_flag"
18782			 || test ! -s conftest.err'
18783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784  (eval $ac_try) 2>&5
18785  ac_status=$?
18786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787  (exit $ac_status); }; } &&
18788	 { ac_try='test -s conftest$ac_exeext'
18789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790  (eval $ac_try) 2>&5
18791  ac_status=$?
18792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793  (exit $ac_status); }; }; then
18794  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18795else
18796  echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799ac_cv_lib_dnet_stub_dnet_ntoa=no
18800fi
18801rm -f conftest.err conftest.$ac_objext \
18802      conftest$ac_exeext conftest.$ac_ext
18803LIBS=$ac_check_lib_save_LIBS
18804fi
18805echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18806echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18807if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18808  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18809fi
18810
18811    fi
18812fi
18813rm -f conftest.err conftest.$ac_objext \
18814      conftest$ac_exeext conftest.$ac_ext
18815    LIBS="$ac_xsave_LIBS"
18816
18817    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18818    # to get the SysV transport functions.
18819    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18820    # needs -lnsl.
18821    # The nsl library prevents programs from opening the X display
18822    # on Irix 5.2, according to T.E. Dickey.
18823    # The functions gethostbyname, getservbyname, and inet_addr are
18824    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18825    echo "$as_me:$LINENO: checking for gethostbyname" >&5
18826echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18827if test "${ac_cv_func_gethostbyname+set}" = set; then
18828  echo $ECHO_N "(cached) $ECHO_C" >&6
18829else
18830  cat >conftest.$ac_ext <<_ACEOF
18831/* confdefs.h.  */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h.  */
18836/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18837   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18838#define gethostbyname innocuous_gethostbyname
18839
18840/* System header to define __stub macros and hopefully few prototypes,
18841    which can conflict with char gethostbyname (); below.
18842    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18843    <limits.h> exists even on freestanding compilers.  */
18844
18845#ifdef __STDC__
18846# include <limits.h>
18847#else
18848# include <assert.h>
18849#endif
18850
18851#undef gethostbyname
18852
18853/* Override any gcc2 internal prototype to avoid an error.  */
18854#ifdef __cplusplus
18855extern "C"
18856{
18857#endif
18858/* We use char because int might match the return type of a gcc2
18859   builtin and then its argument prototype would still apply.  */
18860char gethostbyname ();
18861/* The GNU C library defines this for functions which it implements
18862    to always fail with ENOSYS.  Some functions are actually named
18863    something starting with __ and the normal name is an alias.  */
18864#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18865choke me
18866#else
18867char (*f) () = gethostbyname;
18868#endif
18869#ifdef __cplusplus
18870}
18871#endif
18872
18873int
18874main ()
18875{
18876return f != gethostbyname;
18877  ;
18878  return 0;
18879}
18880_ACEOF
18881rm -f conftest.$ac_objext conftest$ac_exeext
18882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883  (eval $ac_link) 2>conftest.er1
18884  ac_status=$?
18885  grep -v '^ *+' conftest.er1 >conftest.err
18886  rm -f conftest.er1
18887  cat conftest.err >&5
18888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889  (exit $ac_status); } &&
18890	 { ac_try='test -z "$ac_c_werror_flag"
18891			 || test ! -s conftest.err'
18892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893  (eval $ac_try) 2>&5
18894  ac_status=$?
18895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896  (exit $ac_status); }; } &&
18897	 { ac_try='test -s conftest$ac_exeext'
18898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899  (eval $ac_try) 2>&5
18900  ac_status=$?
18901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902  (exit $ac_status); }; }; then
18903  ac_cv_func_gethostbyname=yes
18904else
18905  echo "$as_me: failed program was:" >&5
18906sed 's/^/| /' conftest.$ac_ext >&5
18907
18908ac_cv_func_gethostbyname=no
18909fi
18910rm -f conftest.err conftest.$ac_objext \
18911      conftest$ac_exeext conftest.$ac_ext
18912fi
18913echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18914echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18915
18916    if test $ac_cv_func_gethostbyname = no; then
18917      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18918echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18919if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18920  echo $ECHO_N "(cached) $ECHO_C" >&6
18921else
18922  ac_check_lib_save_LIBS=$LIBS
18923LIBS="-lnsl  $LIBS"
18924cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h.  */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h.  */
18930
18931/* Override any gcc2 internal prototype to avoid an error.  */
18932#ifdef __cplusplus
18933extern "C"
18934#endif
18935/* We use char because int might match the return type of a gcc2
18936   builtin and then its argument prototype would still apply.  */
18937char gethostbyname ();
18938int
18939main ()
18940{
18941gethostbyname ();
18942  ;
18943  return 0;
18944}
18945_ACEOF
18946rm -f conftest.$ac_objext conftest$ac_exeext
18947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948  (eval $ac_link) 2>conftest.er1
18949  ac_status=$?
18950  grep -v '^ *+' conftest.er1 >conftest.err
18951  rm -f conftest.er1
18952  cat conftest.err >&5
18953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954  (exit $ac_status); } &&
18955	 { ac_try='test -z "$ac_c_werror_flag"
18956			 || test ! -s conftest.err'
18957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958  (eval $ac_try) 2>&5
18959  ac_status=$?
18960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961  (exit $ac_status); }; } &&
18962	 { ac_try='test -s conftest$ac_exeext'
18963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964  (eval $ac_try) 2>&5
18965  ac_status=$?
18966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967  (exit $ac_status); }; }; then
18968  ac_cv_lib_nsl_gethostbyname=yes
18969else
18970  echo "$as_me: failed program was:" >&5
18971sed 's/^/| /' conftest.$ac_ext >&5
18972
18973ac_cv_lib_nsl_gethostbyname=no
18974fi
18975rm -f conftest.err conftest.$ac_objext \
18976      conftest$ac_exeext conftest.$ac_ext
18977LIBS=$ac_check_lib_save_LIBS
18978fi
18979echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18980echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18981if test $ac_cv_lib_nsl_gethostbyname = yes; then
18982  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18983fi
18984
18985      if test $ac_cv_lib_nsl_gethostbyname = no; then
18986	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18987echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18988if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18989  echo $ECHO_N "(cached) $ECHO_C" >&6
18990else
18991  ac_check_lib_save_LIBS=$LIBS
18992LIBS="-lbsd  $LIBS"
18993cat >conftest.$ac_ext <<_ACEOF
18994/* confdefs.h.  */
18995_ACEOF
18996cat confdefs.h >>conftest.$ac_ext
18997cat >>conftest.$ac_ext <<_ACEOF
18998/* end confdefs.h.  */
18999
19000/* Override any gcc2 internal prototype to avoid an error.  */
19001#ifdef __cplusplus
19002extern "C"
19003#endif
19004/* We use char because int might match the return type of a gcc2
19005   builtin and then its argument prototype would still apply.  */
19006char gethostbyname ();
19007int
19008main ()
19009{
19010gethostbyname ();
19011  ;
19012  return 0;
19013}
19014_ACEOF
19015rm -f conftest.$ac_objext conftest$ac_exeext
19016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19017  (eval $ac_link) 2>conftest.er1
19018  ac_status=$?
19019  grep -v '^ *+' conftest.er1 >conftest.err
19020  rm -f conftest.er1
19021  cat conftest.err >&5
19022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023  (exit $ac_status); } &&
19024	 { ac_try='test -z "$ac_c_werror_flag"
19025			 || test ! -s conftest.err'
19026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027  (eval $ac_try) 2>&5
19028  ac_status=$?
19029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030  (exit $ac_status); }; } &&
19031	 { ac_try='test -s conftest$ac_exeext'
19032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033  (eval $ac_try) 2>&5
19034  ac_status=$?
19035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036  (exit $ac_status); }; }; then
19037  ac_cv_lib_bsd_gethostbyname=yes
19038else
19039  echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
19042ac_cv_lib_bsd_gethostbyname=no
19043fi
19044rm -f conftest.err conftest.$ac_objext \
19045      conftest$ac_exeext conftest.$ac_ext
19046LIBS=$ac_check_lib_save_LIBS
19047fi
19048echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19049echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19050if test $ac_cv_lib_bsd_gethostbyname = yes; then
19051  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19052fi
19053
19054      fi
19055    fi
19056
19057    # lieder@skyler.mavd.honeywell.com says without -lsocket,
19058    # socket/setsockopt and other routines are undefined under SCO ODT
19059    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19060    # on later versions), says Simon Leinen: it contains gethostby*
19061    # variants that don't use the name server (or something).  -lsocket
19062    # must be given before -lnsl if both are needed.  We assume that
19063    # if connect needs -lnsl, so does gethostbyname.
19064    echo "$as_me:$LINENO: checking for connect" >&5
19065echo $ECHO_N "checking for connect... $ECHO_C" >&6
19066if test "${ac_cv_func_connect+set}" = set; then
19067  echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069  cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h.  */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h.  */
19075/* Define connect to an innocuous variant, in case <limits.h> declares connect.
19076   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19077#define connect innocuous_connect
19078
19079/* System header to define __stub macros and hopefully few prototypes,
19080    which can conflict with char connect (); below.
19081    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19082    <limits.h> exists even on freestanding compilers.  */
19083
19084#ifdef __STDC__
19085# include <limits.h>
19086#else
19087# include <assert.h>
19088#endif
19089
19090#undef connect
19091
19092/* Override any gcc2 internal prototype to avoid an error.  */
19093#ifdef __cplusplus
19094extern "C"
19095{
19096#endif
19097/* We use char because int might match the return type of a gcc2
19098   builtin and then its argument prototype would still apply.  */
19099char connect ();
19100/* The GNU C library defines this for functions which it implements
19101    to always fail with ENOSYS.  Some functions are actually named
19102    something starting with __ and the normal name is an alias.  */
19103#if defined (__stub_connect) || defined (__stub___connect)
19104choke me
19105#else
19106char (*f) () = connect;
19107#endif
19108#ifdef __cplusplus
19109}
19110#endif
19111
19112int
19113main ()
19114{
19115return f != connect;
19116  ;
19117  return 0;
19118}
19119_ACEOF
19120rm -f conftest.$ac_objext conftest$ac_exeext
19121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19122  (eval $ac_link) 2>conftest.er1
19123  ac_status=$?
19124  grep -v '^ *+' conftest.er1 >conftest.err
19125  rm -f conftest.er1
19126  cat conftest.err >&5
19127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128  (exit $ac_status); } &&
19129	 { ac_try='test -z "$ac_c_werror_flag"
19130			 || test ! -s conftest.err'
19131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132  (eval $ac_try) 2>&5
19133  ac_status=$?
19134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135  (exit $ac_status); }; } &&
19136	 { ac_try='test -s conftest$ac_exeext'
19137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138  (eval $ac_try) 2>&5
19139  ac_status=$?
19140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141  (exit $ac_status); }; }; then
19142  ac_cv_func_connect=yes
19143else
19144  echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147ac_cv_func_connect=no
19148fi
19149rm -f conftest.err conftest.$ac_objext \
19150      conftest$ac_exeext conftest.$ac_ext
19151fi
19152echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19153echo "${ECHO_T}$ac_cv_func_connect" >&6
19154
19155    if test $ac_cv_func_connect = no; then
19156      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19157echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19158if test "${ac_cv_lib_socket_connect+set}" = set; then
19159  echo $ECHO_N "(cached) $ECHO_C" >&6
19160else
19161  ac_check_lib_save_LIBS=$LIBS
19162LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19163cat >conftest.$ac_ext <<_ACEOF
19164/* confdefs.h.  */
19165_ACEOF
19166cat confdefs.h >>conftest.$ac_ext
19167cat >>conftest.$ac_ext <<_ACEOF
19168/* end confdefs.h.  */
19169
19170/* Override any gcc2 internal prototype to avoid an error.  */
19171#ifdef __cplusplus
19172extern "C"
19173#endif
19174/* We use char because int might match the return type of a gcc2
19175   builtin and then its argument prototype would still apply.  */
19176char connect ();
19177int
19178main ()
19179{
19180connect ();
19181  ;
19182  return 0;
19183}
19184_ACEOF
19185rm -f conftest.$ac_objext conftest$ac_exeext
19186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187  (eval $ac_link) 2>conftest.er1
19188  ac_status=$?
19189  grep -v '^ *+' conftest.er1 >conftest.err
19190  rm -f conftest.er1
19191  cat conftest.err >&5
19192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193  (exit $ac_status); } &&
19194	 { ac_try='test -z "$ac_c_werror_flag"
19195			 || test ! -s conftest.err'
19196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197  (eval $ac_try) 2>&5
19198  ac_status=$?
19199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200  (exit $ac_status); }; } &&
19201	 { ac_try='test -s conftest$ac_exeext'
19202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203  (eval $ac_try) 2>&5
19204  ac_status=$?
19205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206  (exit $ac_status); }; }; then
19207  ac_cv_lib_socket_connect=yes
19208else
19209  echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212ac_cv_lib_socket_connect=no
19213fi
19214rm -f conftest.err conftest.$ac_objext \
19215      conftest$ac_exeext conftest.$ac_ext
19216LIBS=$ac_check_lib_save_LIBS
19217fi
19218echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19219echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19220if test $ac_cv_lib_socket_connect = yes; then
19221  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19222fi
19223
19224    fi
19225
19226    # Guillermo Gomez says -lposix is necessary on A/UX.
19227    echo "$as_me:$LINENO: checking for remove" >&5
19228echo $ECHO_N "checking for remove... $ECHO_C" >&6
19229if test "${ac_cv_func_remove+set}" = set; then
19230  echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232  cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h.  */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h.  */
19238/* Define remove to an innocuous variant, in case <limits.h> declares remove.
19239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19240#define remove innocuous_remove
19241
19242/* System header to define __stub macros and hopefully few prototypes,
19243    which can conflict with char remove (); below.
19244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19245    <limits.h> exists even on freestanding compilers.  */
19246
19247#ifdef __STDC__
19248# include <limits.h>
19249#else
19250# include <assert.h>
19251#endif
19252
19253#undef remove
19254
19255/* Override any gcc2 internal prototype to avoid an error.  */
19256#ifdef __cplusplus
19257extern "C"
19258{
19259#endif
19260/* We use char because int might match the return type of a gcc2
19261   builtin and then its argument prototype would still apply.  */
19262char remove ();
19263/* The GNU C library defines this for functions which it implements
19264    to always fail with ENOSYS.  Some functions are actually named
19265    something starting with __ and the normal name is an alias.  */
19266#if defined (__stub_remove) || defined (__stub___remove)
19267choke me
19268#else
19269char (*f) () = remove;
19270#endif
19271#ifdef __cplusplus
19272}
19273#endif
19274
19275int
19276main ()
19277{
19278return f != remove;
19279  ;
19280  return 0;
19281}
19282_ACEOF
19283rm -f conftest.$ac_objext conftest$ac_exeext
19284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19285  (eval $ac_link) 2>conftest.er1
19286  ac_status=$?
19287  grep -v '^ *+' conftest.er1 >conftest.err
19288  rm -f conftest.er1
19289  cat conftest.err >&5
19290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291  (exit $ac_status); } &&
19292	 { ac_try='test -z "$ac_c_werror_flag"
19293			 || test ! -s conftest.err'
19294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295  (eval $ac_try) 2>&5
19296  ac_status=$?
19297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298  (exit $ac_status); }; } &&
19299	 { ac_try='test -s conftest$ac_exeext'
19300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301  (eval $ac_try) 2>&5
19302  ac_status=$?
19303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304  (exit $ac_status); }; }; then
19305  ac_cv_func_remove=yes
19306else
19307  echo "$as_me: failed program was:" >&5
19308sed 's/^/| /' conftest.$ac_ext >&5
19309
19310ac_cv_func_remove=no
19311fi
19312rm -f conftest.err conftest.$ac_objext \
19313      conftest$ac_exeext conftest.$ac_ext
19314fi
19315echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19316echo "${ECHO_T}$ac_cv_func_remove" >&6
19317
19318    if test $ac_cv_func_remove = no; then
19319      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19320echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19321if test "${ac_cv_lib_posix_remove+set}" = set; then
19322  echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324  ac_check_lib_save_LIBS=$LIBS
19325LIBS="-lposix  $LIBS"
19326cat >conftest.$ac_ext <<_ACEOF
19327/* confdefs.h.  */
19328_ACEOF
19329cat confdefs.h >>conftest.$ac_ext
19330cat >>conftest.$ac_ext <<_ACEOF
19331/* end confdefs.h.  */
19332
19333/* Override any gcc2 internal prototype to avoid an error.  */
19334#ifdef __cplusplus
19335extern "C"
19336#endif
19337/* We use char because int might match the return type of a gcc2
19338   builtin and then its argument prototype would still apply.  */
19339char remove ();
19340int
19341main ()
19342{
19343remove ();
19344  ;
19345  return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext conftest$ac_exeext
19349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19350  (eval $ac_link) 2>conftest.er1
19351  ac_status=$?
19352  grep -v '^ *+' conftest.er1 >conftest.err
19353  rm -f conftest.er1
19354  cat conftest.err >&5
19355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356  (exit $ac_status); } &&
19357	 { ac_try='test -z "$ac_c_werror_flag"
19358			 || test ! -s conftest.err'
19359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360  (eval $ac_try) 2>&5
19361  ac_status=$?
19362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363  (exit $ac_status); }; } &&
19364	 { ac_try='test -s conftest$ac_exeext'
19365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366  (eval $ac_try) 2>&5
19367  ac_status=$?
19368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369  (exit $ac_status); }; }; then
19370  ac_cv_lib_posix_remove=yes
19371else
19372  echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375ac_cv_lib_posix_remove=no
19376fi
19377rm -f conftest.err conftest.$ac_objext \
19378      conftest$ac_exeext conftest.$ac_ext
19379LIBS=$ac_check_lib_save_LIBS
19380fi
19381echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19382echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
19383if test $ac_cv_lib_posix_remove = yes; then
19384  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19385fi
19386
19387    fi
19388
19389    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19390    echo "$as_me:$LINENO: checking for shmat" >&5
19391echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19392if test "${ac_cv_func_shmat+set}" = set; then
19393  echo $ECHO_N "(cached) $ECHO_C" >&6
19394else
19395  cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h.  */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h.  */
19401/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19402   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19403#define shmat innocuous_shmat
19404
19405/* System header to define __stub macros and hopefully few prototypes,
19406    which can conflict with char shmat (); below.
19407    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408    <limits.h> exists even on freestanding compilers.  */
19409
19410#ifdef __STDC__
19411# include <limits.h>
19412#else
19413# include <assert.h>
19414#endif
19415
19416#undef shmat
19417
19418/* Override any gcc2 internal prototype to avoid an error.  */
19419#ifdef __cplusplus
19420extern "C"
19421{
19422#endif
19423/* We use char because int might match the return type of a gcc2
19424   builtin and then its argument prototype would still apply.  */
19425char shmat ();
19426/* The GNU C library defines this for functions which it implements
19427    to always fail with ENOSYS.  Some functions are actually named
19428    something starting with __ and the normal name is an alias.  */
19429#if defined (__stub_shmat) || defined (__stub___shmat)
19430choke me
19431#else
19432char (*f) () = shmat;
19433#endif
19434#ifdef __cplusplus
19435}
19436#endif
19437
19438int
19439main ()
19440{
19441return f != shmat;
19442  ;
19443  return 0;
19444}
19445_ACEOF
19446rm -f conftest.$ac_objext conftest$ac_exeext
19447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19448  (eval $ac_link) 2>conftest.er1
19449  ac_status=$?
19450  grep -v '^ *+' conftest.er1 >conftest.err
19451  rm -f conftest.er1
19452  cat conftest.err >&5
19453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454  (exit $ac_status); } &&
19455	 { ac_try='test -z "$ac_c_werror_flag"
19456			 || test ! -s conftest.err'
19457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458  (eval $ac_try) 2>&5
19459  ac_status=$?
19460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461  (exit $ac_status); }; } &&
19462	 { ac_try='test -s conftest$ac_exeext'
19463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464  (eval $ac_try) 2>&5
19465  ac_status=$?
19466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467  (exit $ac_status); }; }; then
19468  ac_cv_func_shmat=yes
19469else
19470  echo "$as_me: failed program was:" >&5
19471sed 's/^/| /' conftest.$ac_ext >&5
19472
19473ac_cv_func_shmat=no
19474fi
19475rm -f conftest.err conftest.$ac_objext \
19476      conftest$ac_exeext conftest.$ac_ext
19477fi
19478echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19479echo "${ECHO_T}$ac_cv_func_shmat" >&6
19480
19481    if test $ac_cv_func_shmat = no; then
19482      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19483echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19484if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19485  echo $ECHO_N "(cached) $ECHO_C" >&6
19486else
19487  ac_check_lib_save_LIBS=$LIBS
19488LIBS="-lipc  $LIBS"
19489cat >conftest.$ac_ext <<_ACEOF
19490/* confdefs.h.  */
19491_ACEOF
19492cat confdefs.h >>conftest.$ac_ext
19493cat >>conftest.$ac_ext <<_ACEOF
19494/* end confdefs.h.  */
19495
19496/* Override any gcc2 internal prototype to avoid an error.  */
19497#ifdef __cplusplus
19498extern "C"
19499#endif
19500/* We use char because int might match the return type of a gcc2
19501   builtin and then its argument prototype would still apply.  */
19502char shmat ();
19503int
19504main ()
19505{
19506shmat ();
19507  ;
19508  return 0;
19509}
19510_ACEOF
19511rm -f conftest.$ac_objext conftest$ac_exeext
19512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19513  (eval $ac_link) 2>conftest.er1
19514  ac_status=$?
19515  grep -v '^ *+' conftest.er1 >conftest.err
19516  rm -f conftest.er1
19517  cat conftest.err >&5
19518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519  (exit $ac_status); } &&
19520	 { ac_try='test -z "$ac_c_werror_flag"
19521			 || test ! -s conftest.err'
19522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523  (eval $ac_try) 2>&5
19524  ac_status=$?
19525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526  (exit $ac_status); }; } &&
19527	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19533  ac_cv_lib_ipc_shmat=yes
19534else
19535  echo "$as_me: failed program was:" >&5
19536sed 's/^/| /' conftest.$ac_ext >&5
19537
19538ac_cv_lib_ipc_shmat=no
19539fi
19540rm -f conftest.err conftest.$ac_objext \
19541      conftest$ac_exeext conftest.$ac_ext
19542LIBS=$ac_check_lib_save_LIBS
19543fi
19544echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19545echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19546if test $ac_cv_lib_ipc_shmat = yes; then
19547  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19548fi
19549
19550    fi
19551  fi
19552
19553  # Check for libraries that X11R6 Xt/Xaw programs need.
19554  ac_save_LDFLAGS=$LDFLAGS
19555  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19556  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19557  # check for ICE first), but we must link in the order -lSM -lICE or
19558  # we get undefined symbols.  So assume we have SM if we have ICE.
19559  # These have to be linked with before -lX11, unlike the other
19560  # libraries we check for below, so use a different variable.
19561  # John Interrante, Karl Berry
19562  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19563echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19564if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19565  echo $ECHO_N "(cached) $ECHO_C" >&6
19566else
19567  ac_check_lib_save_LIBS=$LIBS
19568LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19569cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h.  */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h.  */
19575
19576/* Override any gcc2 internal prototype to avoid an error.  */
19577#ifdef __cplusplus
19578extern "C"
19579#endif
19580/* We use char because int might match the return type of a gcc2
19581   builtin and then its argument prototype would still apply.  */
19582char IceConnectionNumber ();
19583int
19584main ()
19585{
19586IceConnectionNumber ();
19587  ;
19588  return 0;
19589}
19590_ACEOF
19591rm -f conftest.$ac_objext conftest$ac_exeext
19592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19593  (eval $ac_link) 2>conftest.er1
19594  ac_status=$?
19595  grep -v '^ *+' conftest.er1 >conftest.err
19596  rm -f conftest.er1
19597  cat conftest.err >&5
19598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599  (exit $ac_status); } &&
19600	 { ac_try='test -z "$ac_c_werror_flag"
19601			 || test ! -s conftest.err'
19602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603  (eval $ac_try) 2>&5
19604  ac_status=$?
19605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606  (exit $ac_status); }; } &&
19607	 { ac_try='test -s conftest$ac_exeext'
19608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609  (eval $ac_try) 2>&5
19610  ac_status=$?
19611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612  (exit $ac_status); }; }; then
19613  ac_cv_lib_ICE_IceConnectionNumber=yes
19614else
19615  echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618ac_cv_lib_ICE_IceConnectionNumber=no
19619fi
19620rm -f conftest.err conftest.$ac_objext \
19621      conftest$ac_exeext conftest.$ac_ext
19622LIBS=$ac_check_lib_save_LIBS
19623fi
19624echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19625echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19626if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19627  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19628fi
19629
19630  LDFLAGS=$ac_save_LDFLAGS
19631
19632fi
19633
19634
19635echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19636echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19637if test "${ac_cv_header_time+set}" = set; then
19638  echo $ECHO_N "(cached) $ECHO_C" >&6
19639else
19640  cat >conftest.$ac_ext <<_ACEOF
19641/* confdefs.h.  */
19642_ACEOF
19643cat confdefs.h >>conftest.$ac_ext
19644cat >>conftest.$ac_ext <<_ACEOF
19645/* end confdefs.h.  */
19646#include <sys/types.h>
19647#include <sys/time.h>
19648#include <time.h>
19649
19650int
19651main ()
19652{
19653if ((struct tm *) 0)
19654return 0;
19655  ;
19656  return 0;
19657}
19658_ACEOF
19659rm -f conftest.$ac_objext
19660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661  (eval $ac_compile) 2>conftest.er1
19662  ac_status=$?
19663  grep -v '^ *+' conftest.er1 >conftest.err
19664  rm -f conftest.er1
19665  cat conftest.err >&5
19666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667  (exit $ac_status); } &&
19668	 { ac_try='test -z "$ac_c_werror_flag"
19669			 || test ! -s conftest.err'
19670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671  (eval $ac_try) 2>&5
19672  ac_status=$?
19673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674  (exit $ac_status); }; } &&
19675	 { ac_try='test -s conftest.$ac_objext'
19676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677  (eval $ac_try) 2>&5
19678  ac_status=$?
19679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); }; }; then
19681  ac_cv_header_time=yes
19682else
19683  echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
19686ac_cv_header_time=no
19687fi
19688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19689fi
19690echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19691echo "${ECHO_T}$ac_cv_header_time" >&6
19692if test $ac_cv_header_time = yes; then
19693
19694cat >>confdefs.h <<\_ACEOF
19695#define TIME_WITH_SYS_TIME 1
19696_ACEOF
19697
19698fi
19699
19700echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19701echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19702if test "${ac_cv_header_sys_wait_h+set}" = set; then
19703  echo $ECHO_N "(cached) $ECHO_C" >&6
19704else
19705  cat >conftest.$ac_ext <<_ACEOF
19706/* confdefs.h.  */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h.  */
19711#include <sys/types.h>
19712#include <sys/wait.h>
19713#ifndef WEXITSTATUS
19714# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19715#endif
19716#ifndef WIFEXITED
19717# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19718#endif
19719
19720int
19721main ()
19722{
19723  int s;
19724  wait (&s);
19725  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19726  ;
19727  return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext
19731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732  (eval $ac_compile) 2>conftest.er1
19733  ac_status=$?
19734  grep -v '^ *+' conftest.er1 >conftest.err
19735  rm -f conftest.er1
19736  cat conftest.err >&5
19737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738  (exit $ac_status); } &&
19739	 { ac_try='test -z "$ac_c_werror_flag"
19740			 || test ! -s conftest.err'
19741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742  (eval $ac_try) 2>&5
19743  ac_status=$?
19744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745  (exit $ac_status); }; } &&
19746	 { ac_try='test -s conftest.$ac_objext'
19747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748  (eval $ac_try) 2>&5
19749  ac_status=$?
19750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751  (exit $ac_status); }; }; then
19752  ac_cv_header_sys_wait_h=yes
19753else
19754  echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757ac_cv_header_sys_wait_h=no
19758fi
19759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19760fi
19761echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19762echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19763if test $ac_cv_header_sys_wait_h = yes; then
19764
19765cat >>confdefs.h <<\_ACEOF
19766#define HAVE_SYS_WAIT_H 1
19767_ACEOF
19768
19769fi
19770
19771
19772
19773
19774
19775
19776ac_header_dirent=no
19777for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19778  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19779echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19780echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19781if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782  echo $ECHO_N "(cached) $ECHO_C" >&6
19783else
19784  cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h.  */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h.  */
19790#include <sys/types.h>
19791#include <$ac_hdr>
19792
19793int
19794main ()
19795{
19796if ((DIR *) 0)
19797return 0;
19798  ;
19799  return 0;
19800}
19801_ACEOF
19802rm -f conftest.$ac_objext
19803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804  (eval $ac_compile) 2>conftest.er1
19805  ac_status=$?
19806  grep -v '^ *+' conftest.er1 >conftest.err
19807  rm -f conftest.er1
19808  cat conftest.err >&5
19809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810  (exit $ac_status); } &&
19811	 { ac_try='test -z "$ac_c_werror_flag"
19812			 || test ! -s conftest.err'
19813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814  (eval $ac_try) 2>&5
19815  ac_status=$?
19816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817  (exit $ac_status); }; } &&
19818	 { ac_try='test -s conftest.$ac_objext'
19819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820  (eval $ac_try) 2>&5
19821  ac_status=$?
19822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823  (exit $ac_status); }; }; then
19824  eval "$as_ac_Header=yes"
19825else
19826  echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829eval "$as_ac_Header=no"
19830fi
19831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19832fi
19833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19835if test `eval echo '${'$as_ac_Header'}'` = yes; then
19836  cat >>confdefs.h <<_ACEOF
19837#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19838_ACEOF
19839
19840ac_header_dirent=$ac_hdr; break
19841fi
19842
19843done
19844# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19845if test $ac_header_dirent = dirent.h; then
19846  echo "$as_me:$LINENO: checking for library containing opendir" >&5
19847echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19848if test "${ac_cv_search_opendir+set}" = set; then
19849  echo $ECHO_N "(cached) $ECHO_C" >&6
19850else
19851  ac_func_search_save_LIBS=$LIBS
19852ac_cv_search_opendir=no
19853cat >conftest.$ac_ext <<_ACEOF
19854/* confdefs.h.  */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h.  */
19859
19860/* Override any gcc2 internal prototype to avoid an error.  */
19861#ifdef __cplusplus
19862extern "C"
19863#endif
19864/* We use char because int might match the return type of a gcc2
19865   builtin and then its argument prototype would still apply.  */
19866char opendir ();
19867int
19868main ()
19869{
19870opendir ();
19871  ;
19872  return 0;
19873}
19874_ACEOF
19875rm -f conftest.$ac_objext conftest$ac_exeext
19876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877  (eval $ac_link) 2>conftest.er1
19878  ac_status=$?
19879  grep -v '^ *+' conftest.er1 >conftest.err
19880  rm -f conftest.er1
19881  cat conftest.err >&5
19882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883  (exit $ac_status); } &&
19884	 { ac_try='test -z "$ac_c_werror_flag"
19885			 || test ! -s conftest.err'
19886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887  (eval $ac_try) 2>&5
19888  ac_status=$?
19889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890  (exit $ac_status); }; } &&
19891	 { ac_try='test -s conftest$ac_exeext'
19892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893  (eval $ac_try) 2>&5
19894  ac_status=$?
19895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896  (exit $ac_status); }; }; then
19897  ac_cv_search_opendir="none required"
19898else
19899  echo "$as_me: failed program was:" >&5
19900sed 's/^/| /' conftest.$ac_ext >&5
19901
19902fi
19903rm -f conftest.err conftest.$ac_objext \
19904      conftest$ac_exeext conftest.$ac_ext
19905if test "$ac_cv_search_opendir" = no; then
19906  for ac_lib in dir; do
19907    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19908    cat >conftest.$ac_ext <<_ACEOF
19909/* confdefs.h.  */
19910_ACEOF
19911cat confdefs.h >>conftest.$ac_ext
19912cat >>conftest.$ac_ext <<_ACEOF
19913/* end confdefs.h.  */
19914
19915/* Override any gcc2 internal prototype to avoid an error.  */
19916#ifdef __cplusplus
19917extern "C"
19918#endif
19919/* We use char because int might match the return type of a gcc2
19920   builtin and then its argument prototype would still apply.  */
19921char opendir ();
19922int
19923main ()
19924{
19925opendir ();
19926  ;
19927  return 0;
19928}
19929_ACEOF
19930rm -f conftest.$ac_objext conftest$ac_exeext
19931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19932  (eval $ac_link) 2>conftest.er1
19933  ac_status=$?
19934  grep -v '^ *+' conftest.er1 >conftest.err
19935  rm -f conftest.er1
19936  cat conftest.err >&5
19937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938  (exit $ac_status); } &&
19939	 { ac_try='test -z "$ac_c_werror_flag"
19940			 || test ! -s conftest.err'
19941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942  (eval $ac_try) 2>&5
19943  ac_status=$?
19944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945  (exit $ac_status); }; } &&
19946	 { ac_try='test -s conftest$ac_exeext'
19947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948  (eval $ac_try) 2>&5
19949  ac_status=$?
19950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951  (exit $ac_status); }; }; then
19952  ac_cv_search_opendir="-l$ac_lib"
19953break
19954else
19955  echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958fi
19959rm -f conftest.err conftest.$ac_objext \
19960      conftest$ac_exeext conftest.$ac_ext
19961  done
19962fi
19963LIBS=$ac_func_search_save_LIBS
19964fi
19965echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19966echo "${ECHO_T}$ac_cv_search_opendir" >&6
19967if test "$ac_cv_search_opendir" != no; then
19968  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19969
19970fi
19971
19972else
19973  echo "$as_me:$LINENO: checking for library containing opendir" >&5
19974echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19975if test "${ac_cv_search_opendir+set}" = set; then
19976  echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978  ac_func_search_save_LIBS=$LIBS
19979ac_cv_search_opendir=no
19980cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h.  */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h.  */
19986
19987/* Override any gcc2 internal prototype to avoid an error.  */
19988#ifdef __cplusplus
19989extern "C"
19990#endif
19991/* We use char because int might match the return type of a gcc2
19992   builtin and then its argument prototype would still apply.  */
19993char opendir ();
19994int
19995main ()
19996{
19997opendir ();
19998  ;
19999  return 0;
20000}
20001_ACEOF
20002rm -f conftest.$ac_objext conftest$ac_exeext
20003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20004  (eval $ac_link) 2>conftest.er1
20005  ac_status=$?
20006  grep -v '^ *+' conftest.er1 >conftest.err
20007  rm -f conftest.er1
20008  cat conftest.err >&5
20009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010  (exit $ac_status); } &&
20011	 { ac_try='test -z "$ac_c_werror_flag"
20012			 || test ! -s conftest.err'
20013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014  (eval $ac_try) 2>&5
20015  ac_status=$?
20016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017  (exit $ac_status); }; } &&
20018	 { ac_try='test -s conftest$ac_exeext'
20019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020  (eval $ac_try) 2>&5
20021  ac_status=$?
20022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023  (exit $ac_status); }; }; then
20024  ac_cv_search_opendir="none required"
20025else
20026  echo "$as_me: failed program was:" >&5
20027sed 's/^/| /' conftest.$ac_ext >&5
20028
20029fi
20030rm -f conftest.err conftest.$ac_objext \
20031      conftest$ac_exeext conftest.$ac_ext
20032if test "$ac_cv_search_opendir" = no; then
20033  for ac_lib in x; do
20034    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20035    cat >conftest.$ac_ext <<_ACEOF
20036/* confdefs.h.  */
20037_ACEOF
20038cat confdefs.h >>conftest.$ac_ext
20039cat >>conftest.$ac_ext <<_ACEOF
20040/* end confdefs.h.  */
20041
20042/* Override any gcc2 internal prototype to avoid an error.  */
20043#ifdef __cplusplus
20044extern "C"
20045#endif
20046/* We use char because int might match the return type of a gcc2
20047   builtin and then its argument prototype would still apply.  */
20048char opendir ();
20049int
20050main ()
20051{
20052opendir ();
20053  ;
20054  return 0;
20055}
20056_ACEOF
20057rm -f conftest.$ac_objext conftest$ac_exeext
20058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20059  (eval $ac_link) 2>conftest.er1
20060  ac_status=$?
20061  grep -v '^ *+' conftest.er1 >conftest.err
20062  rm -f conftest.er1
20063  cat conftest.err >&5
20064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065  (exit $ac_status); } &&
20066	 { ac_try='test -z "$ac_c_werror_flag"
20067			 || test ! -s conftest.err'
20068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069  (eval $ac_try) 2>&5
20070  ac_status=$?
20071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072  (exit $ac_status); }; } &&
20073	 { ac_try='test -s conftest$ac_exeext'
20074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075  (eval $ac_try) 2>&5
20076  ac_status=$?
20077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078  (exit $ac_status); }; }; then
20079  ac_cv_search_opendir="-l$ac_lib"
20080break
20081else
20082  echo "$as_me: failed program was:" >&5
20083sed 's/^/| /' conftest.$ac_ext >&5
20084
20085fi
20086rm -f conftest.err conftest.$ac_objext \
20087      conftest$ac_exeext conftest.$ac_ext
20088  done
20089fi
20090LIBS=$ac_func_search_save_LIBS
20091fi
20092echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20093echo "${ECHO_T}$ac_cv_search_opendir" >&6
20094if test "$ac_cv_search_opendir" != no; then
20095  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20096
20097fi
20098
20099fi
20100
20101
20102
20103for ac_header in stdlib.h unistd.h
20104do
20105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20106if eval "test \"\${$as_ac_Header+set}\" = set"; then
20107  echo "$as_me:$LINENO: checking for $ac_header" >&5
20108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20109if eval "test \"\${$as_ac_Header+set}\" = set"; then
20110  echo $ECHO_N "(cached) $ECHO_C" >&6
20111fi
20112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20114else
20115  # Is the header compilable?
20116echo "$as_me:$LINENO: checking $ac_header usability" >&5
20117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20118cat >conftest.$ac_ext <<_ACEOF
20119/* confdefs.h.  */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h.  */
20124$ac_includes_default
20125#include <$ac_header>
20126_ACEOF
20127rm -f conftest.$ac_objext
20128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20129  (eval $ac_compile) 2>conftest.er1
20130  ac_status=$?
20131  grep -v '^ *+' conftest.er1 >conftest.err
20132  rm -f conftest.er1
20133  cat conftest.err >&5
20134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135  (exit $ac_status); } &&
20136	 { ac_try='test -z "$ac_c_werror_flag"
20137			 || test ! -s conftest.err'
20138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139  (eval $ac_try) 2>&5
20140  ac_status=$?
20141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142  (exit $ac_status); }; } &&
20143	 { ac_try='test -s conftest.$ac_objext'
20144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145  (eval $ac_try) 2>&5
20146  ac_status=$?
20147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148  (exit $ac_status); }; }; then
20149  ac_header_compiler=yes
20150else
20151  echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
20154ac_header_compiler=no
20155fi
20156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158echo "${ECHO_T}$ac_header_compiler" >&6
20159
20160# Is the header present?
20161echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20163cat >conftest.$ac_ext <<_ACEOF
20164/* confdefs.h.  */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h.  */
20169#include <$ac_header>
20170_ACEOF
20171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20172  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20173  ac_status=$?
20174  grep -v '^ *+' conftest.er1 >conftest.err
20175  rm -f conftest.er1
20176  cat conftest.err >&5
20177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178  (exit $ac_status); } >/dev/null; then
20179  if test -s conftest.err; then
20180    ac_cpp_err=$ac_c_preproc_warn_flag
20181    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20182  else
20183    ac_cpp_err=
20184  fi
20185else
20186  ac_cpp_err=yes
20187fi
20188if test -z "$ac_cpp_err"; then
20189  ac_header_preproc=yes
20190else
20191  echo "$as_me: failed program was:" >&5
20192sed 's/^/| /' conftest.$ac_ext >&5
20193
20194  ac_header_preproc=no
20195fi
20196rm -f conftest.err conftest.$ac_ext
20197echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198echo "${ECHO_T}$ac_header_preproc" >&6
20199
20200# So?  What about this header?
20201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202  yes:no: )
20203    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207    ac_header_preproc=yes
20208    ;;
20209  no:yes:* )
20210    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20213echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20214    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20217echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20222    (
20223      cat <<\_ASBOX
20224## ------------------------------------------ ##
20225## Report this to the AC_PACKAGE_NAME lists.  ##
20226## ------------------------------------------ ##
20227_ASBOX
20228    ) |
20229      sed "s/^/$as_me: WARNING:     /" >&2
20230    ;;
20231esac
20232echo "$as_me:$LINENO: checking for $ac_header" >&5
20233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20234if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235  echo $ECHO_N "(cached) $ECHO_C" >&6
20236else
20237  eval "$as_ac_Header=\$ac_header_preproc"
20238fi
20239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20241
20242fi
20243if test `eval echo '${'$as_ac_Header'}'` = yes; then
20244  cat >>confdefs.h <<_ACEOF
20245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20246_ACEOF
20247
20248fi
20249
20250done
20251
20252
20253for ac_func in getpagesize
20254do
20255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20256echo "$as_me:$LINENO: checking for $ac_func" >&5
20257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20258if eval "test \"\${$as_ac_var+set}\" = set"; then
20259  echo $ECHO_N "(cached) $ECHO_C" >&6
20260else
20261  cat >conftest.$ac_ext <<_ACEOF
20262/* confdefs.h.  */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h.  */
20267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20268   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20269#define $ac_func innocuous_$ac_func
20270
20271/* System header to define __stub macros and hopefully few prototypes,
20272    which can conflict with char $ac_func (); below.
20273    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20274    <limits.h> exists even on freestanding compilers.  */
20275
20276#ifdef __STDC__
20277# include <limits.h>
20278#else
20279# include <assert.h>
20280#endif
20281
20282#undef $ac_func
20283
20284/* Override any gcc2 internal prototype to avoid an error.  */
20285#ifdef __cplusplus
20286extern "C"
20287{
20288#endif
20289/* We use char because int might match the return type of a gcc2
20290   builtin and then its argument prototype would still apply.  */
20291char $ac_func ();
20292/* The GNU C library defines this for functions which it implements
20293    to always fail with ENOSYS.  Some functions are actually named
20294    something starting with __ and the normal name is an alias.  */
20295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20296choke me
20297#else
20298char (*f) () = $ac_func;
20299#endif
20300#ifdef __cplusplus
20301}
20302#endif
20303
20304int
20305main ()
20306{
20307return f != $ac_func;
20308  ;
20309  return 0;
20310}
20311_ACEOF
20312rm -f conftest.$ac_objext conftest$ac_exeext
20313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20314  (eval $ac_link) 2>conftest.er1
20315  ac_status=$?
20316  grep -v '^ *+' conftest.er1 >conftest.err
20317  rm -f conftest.er1
20318  cat conftest.err >&5
20319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320  (exit $ac_status); } &&
20321	 { ac_try='test -z "$ac_c_werror_flag"
20322			 || test ! -s conftest.err'
20323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324  (eval $ac_try) 2>&5
20325  ac_status=$?
20326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327  (exit $ac_status); }; } &&
20328	 { ac_try='test -s conftest$ac_exeext'
20329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330  (eval $ac_try) 2>&5
20331  ac_status=$?
20332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333  (exit $ac_status); }; }; then
20334  eval "$as_ac_var=yes"
20335else
20336  echo "$as_me: failed program was:" >&5
20337sed 's/^/| /' conftest.$ac_ext >&5
20338
20339eval "$as_ac_var=no"
20340fi
20341rm -f conftest.err conftest.$ac_objext \
20342      conftest$ac_exeext conftest.$ac_ext
20343fi
20344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20345echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20346if test `eval echo '${'$as_ac_var'}'` = yes; then
20347  cat >>confdefs.h <<_ACEOF
20348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20349_ACEOF
20350
20351fi
20352done
20353
20354echo "$as_me:$LINENO: checking for working mmap" >&5
20355echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20356if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20357  echo $ECHO_N "(cached) $ECHO_C" >&6
20358else
20359  if test "$cross_compiling" = yes; then
20360  ac_cv_func_mmap_fixed_mapped=no
20361else
20362  cat >conftest.$ac_ext <<_ACEOF
20363/* confdefs.h.  */
20364_ACEOF
20365cat confdefs.h >>conftest.$ac_ext
20366cat >>conftest.$ac_ext <<_ACEOF
20367/* end confdefs.h.  */
20368$ac_includes_default
20369/* malloc might have been renamed as rpl_malloc. */
20370#undef malloc
20371
20372/* Thanks to Mike Haertel and Jim Avera for this test.
20373   Here is a matrix of mmap possibilities:
20374	mmap private not fixed
20375	mmap private fixed at somewhere currently unmapped
20376	mmap private fixed at somewhere already mapped
20377	mmap shared not fixed
20378	mmap shared fixed at somewhere currently unmapped
20379	mmap shared fixed at somewhere already mapped
20380   For private mappings, we should verify that changes cannot be read()
20381   back from the file, nor mmap's back from the file at a different
20382   address.  (There have been systems where private was not correctly
20383   implemented like the infamous i386 svr4.0, and systems where the
20384   VM page cache was not coherent with the file system buffer cache
20385   like early versions of FreeBSD and possibly contemporary NetBSD.)
20386   For shared mappings, we should conversely verify that changes get
20387   propagated back to all the places they're supposed to be.
20388
20389   Grep wants private fixed already mapped.
20390   The main things grep needs to know about mmap are:
20391   * does it exist and is it safe to write into the mmap'd area
20392   * how to use it (BSD variants)  */
20393
20394#include <fcntl.h>
20395#include <sys/mman.h>
20396
20397#if !STDC_HEADERS && !HAVE_STDLIB_H
20398char *malloc ();
20399#endif
20400
20401/* This mess was copied from the GNU getpagesize.h.  */
20402#if !HAVE_GETPAGESIZE
20403/* Assume that all systems that can run configure have sys/param.h.  */
20404# if !HAVE_SYS_PARAM_H
20405#  define HAVE_SYS_PARAM_H 1
20406# endif
20407
20408# ifdef _SC_PAGESIZE
20409#  define getpagesize() sysconf(_SC_PAGESIZE)
20410# else /* no _SC_PAGESIZE */
20411#  if HAVE_SYS_PARAM_H
20412#   include <sys/param.h>
20413#   ifdef EXEC_PAGESIZE
20414#    define getpagesize() EXEC_PAGESIZE
20415#   else /* no EXEC_PAGESIZE */
20416#    ifdef NBPG
20417#     define getpagesize() NBPG * CLSIZE
20418#     ifndef CLSIZE
20419#      define CLSIZE 1
20420#     endif /* no CLSIZE */
20421#    else /* no NBPG */
20422#     ifdef NBPC
20423#      define getpagesize() NBPC
20424#     else /* no NBPC */
20425#      ifdef PAGESIZE
20426#       define getpagesize() PAGESIZE
20427#      endif /* PAGESIZE */
20428#     endif /* no NBPC */
20429#    endif /* no NBPG */
20430#   endif /* no EXEC_PAGESIZE */
20431#  else /* no HAVE_SYS_PARAM_H */
20432#   define getpagesize() 8192	/* punt totally */
20433#  endif /* no HAVE_SYS_PARAM_H */
20434# endif /* no _SC_PAGESIZE */
20435
20436#endif /* no HAVE_GETPAGESIZE */
20437
20438int
20439main ()
20440{
20441  char *data, *data2, *data3;
20442  int i, pagesize;
20443  int fd;
20444
20445  pagesize = getpagesize ();
20446
20447  /* First, make a file with some known garbage in it. */
20448  data = (char *) malloc (pagesize);
20449  if (!data)
20450    exit (1);
20451  for (i = 0; i < pagesize; ++i)
20452    *(data + i) = rand ();
20453  umask (0);
20454  fd = creat ("conftest.mmap", 0600);
20455  if (fd < 0)
20456    exit (1);
20457  if (write (fd, data, pagesize) != pagesize)
20458    exit (1);
20459  close (fd);
20460
20461  /* Next, try to mmap the file at a fixed address which already has
20462     something else allocated at it.  If we can, also make sure that
20463     we see the same garbage.  */
20464  fd = open ("conftest.mmap", O_RDWR);
20465  if (fd < 0)
20466    exit (1);
20467  data2 = (char *) malloc (2 * pagesize);
20468  if (!data2)
20469    exit (1);
20470  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20471  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20472		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20473    exit (1);
20474  for (i = 0; i < pagesize; ++i)
20475    if (*(data + i) != *(data2 + i))
20476      exit (1);
20477
20478  /* Finally, make sure that changes to the mapped area do not
20479     percolate back to the file as seen by read().  (This is a bug on
20480     some variants of i386 svr4.0.)  */
20481  for (i = 0; i < pagesize; ++i)
20482    *(data2 + i) = *(data2 + i) + 1;
20483  data3 = (char *) malloc (pagesize);
20484  if (!data3)
20485    exit (1);
20486  if (read (fd, data3, pagesize) != pagesize)
20487    exit (1);
20488  for (i = 0; i < pagesize; ++i)
20489    if (*(data + i) != *(data3 + i))
20490      exit (1);
20491  close (fd);
20492  exit (0);
20493}
20494_ACEOF
20495rm -f conftest$ac_exeext
20496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20497  (eval $ac_link) 2>&5
20498  ac_status=$?
20499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502  (eval $ac_try) 2>&5
20503  ac_status=$?
20504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505  (exit $ac_status); }; }; then
20506  ac_cv_func_mmap_fixed_mapped=yes
20507else
20508  echo "$as_me: program exited with status $ac_status" >&5
20509echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512( exit $ac_status )
20513ac_cv_func_mmap_fixed_mapped=no
20514fi
20515rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20516fi
20517fi
20518echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20519echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20520if test $ac_cv_func_mmap_fixed_mapped = yes; then
20521
20522cat >>confdefs.h <<\_ACEOF
20523#define HAVE_MMAP 1
20524_ACEOF
20525
20526fi
20527rm -f conftest.mmap
20528
20529
20530for ac_header in unistd.h
20531do
20532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20533if eval "test \"\${$as_ac_Header+set}\" = set"; then
20534  echo "$as_me:$LINENO: checking for $ac_header" >&5
20535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20536if eval "test \"\${$as_ac_Header+set}\" = set"; then
20537  echo $ECHO_N "(cached) $ECHO_C" >&6
20538fi
20539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20541else
20542  # Is the header compilable?
20543echo "$as_me:$LINENO: checking $ac_header usability" >&5
20544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20545cat >conftest.$ac_ext <<_ACEOF
20546/* confdefs.h.  */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h.  */
20551$ac_includes_default
20552#include <$ac_header>
20553_ACEOF
20554rm -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_header_compiler=yes
20577else
20578  echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581ac_header_compiler=no
20582fi
20583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20585echo "${ECHO_T}$ac_header_compiler" >&6
20586
20587# Is the header present?
20588echo "$as_me:$LINENO: checking $ac_header presence" >&5
20589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20590cat >conftest.$ac_ext <<_ACEOF
20591/* confdefs.h.  */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h.  */
20596#include <$ac_header>
20597_ACEOF
20598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20599  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20600  ac_status=$?
20601  grep -v '^ *+' conftest.er1 >conftest.err
20602  rm -f conftest.er1
20603  cat conftest.err >&5
20604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605  (exit $ac_status); } >/dev/null; then
20606  if test -s conftest.err; then
20607    ac_cpp_err=$ac_c_preproc_warn_flag
20608    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20609  else
20610    ac_cpp_err=
20611  fi
20612else
20613  ac_cpp_err=yes
20614fi
20615if test -z "$ac_cpp_err"; then
20616  ac_header_preproc=yes
20617else
20618  echo "$as_me: failed program was:" >&5
20619sed 's/^/| /' conftest.$ac_ext >&5
20620
20621  ac_header_preproc=no
20622fi
20623rm -f conftest.err conftest.$ac_ext
20624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20625echo "${ECHO_T}$ac_header_preproc" >&6
20626
20627# So?  What about this header?
20628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20629  yes:no: )
20630    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20634    ac_header_preproc=yes
20635    ;;
20636  no:yes:* )
20637    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20639    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20640echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20641    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20643    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20644echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20645    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20647    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20649    (
20650      cat <<\_ASBOX
20651## ------------------------------------------ ##
20652## Report this to the AC_PACKAGE_NAME lists.  ##
20653## ------------------------------------------ ##
20654_ASBOX
20655    ) |
20656      sed "s/^/$as_me: WARNING:     /" >&2
20657    ;;
20658esac
20659echo "$as_me:$LINENO: checking for $ac_header" >&5
20660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20661if eval "test \"\${$as_ac_Header+set}\" = set"; then
20662  echo $ECHO_N "(cached) $ECHO_C" >&6
20663else
20664  eval "$as_ac_Header=\$ac_header_preproc"
20665fi
20666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20668
20669fi
20670if test `eval echo '${'$as_ac_Header'}'` = yes; then
20671  cat >>confdefs.h <<_ACEOF
20672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20673_ACEOF
20674
20675fi
20676
20677done
20678
20679
20680for ac_header in sys/param.h
20681do
20682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20683if eval "test \"\${$as_ac_Header+set}\" = set"; then
20684  echo "$as_me:$LINENO: checking for $ac_header" >&5
20685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20686if eval "test \"\${$as_ac_Header+set}\" = set"; then
20687  echo $ECHO_N "(cached) $ECHO_C" >&6
20688fi
20689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20691else
20692  # Is the header compilable?
20693echo "$as_me:$LINENO: checking $ac_header usability" >&5
20694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20695cat >conftest.$ac_ext <<_ACEOF
20696/* confdefs.h.  */
20697_ACEOF
20698cat confdefs.h >>conftest.$ac_ext
20699cat >>conftest.$ac_ext <<_ACEOF
20700/* end confdefs.h.  */
20701$ac_includes_default
20702#include <$ac_header>
20703_ACEOF
20704rm -f conftest.$ac_objext
20705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20706  (eval $ac_compile) 2>conftest.er1
20707  ac_status=$?
20708  grep -v '^ *+' conftest.er1 >conftest.err
20709  rm -f conftest.er1
20710  cat conftest.err >&5
20711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712  (exit $ac_status); } &&
20713	 { ac_try='test -z "$ac_c_werror_flag"
20714			 || test ! -s conftest.err'
20715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716  (eval $ac_try) 2>&5
20717  ac_status=$?
20718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719  (exit $ac_status); }; } &&
20720	 { ac_try='test -s conftest.$ac_objext'
20721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722  (eval $ac_try) 2>&5
20723  ac_status=$?
20724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725  (exit $ac_status); }; }; then
20726  ac_header_compiler=yes
20727else
20728  echo "$as_me: failed program was:" >&5
20729sed 's/^/| /' conftest.$ac_ext >&5
20730
20731ac_header_compiler=no
20732fi
20733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20735echo "${ECHO_T}$ac_header_compiler" >&6
20736
20737# Is the header present?
20738echo "$as_me:$LINENO: checking $ac_header presence" >&5
20739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20740cat >conftest.$ac_ext <<_ACEOF
20741/* confdefs.h.  */
20742_ACEOF
20743cat confdefs.h >>conftest.$ac_ext
20744cat >>conftest.$ac_ext <<_ACEOF
20745/* end confdefs.h.  */
20746#include <$ac_header>
20747_ACEOF
20748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20750  ac_status=$?
20751  grep -v '^ *+' conftest.er1 >conftest.err
20752  rm -f conftest.er1
20753  cat conftest.err >&5
20754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755  (exit $ac_status); } >/dev/null; then
20756  if test -s conftest.err; then
20757    ac_cpp_err=$ac_c_preproc_warn_flag
20758    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20759  else
20760    ac_cpp_err=
20761  fi
20762else
20763  ac_cpp_err=yes
20764fi
20765if test -z "$ac_cpp_err"; then
20766  ac_header_preproc=yes
20767else
20768  echo "$as_me: failed program was:" >&5
20769sed 's/^/| /' conftest.$ac_ext >&5
20770
20771  ac_header_preproc=no
20772fi
20773rm -f conftest.err conftest.$ac_ext
20774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20775echo "${ECHO_T}$ac_header_preproc" >&6
20776
20777# So?  What about this header?
20778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20779  yes:no: )
20780    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20784    ac_header_preproc=yes
20785    ;;
20786  no:yes:* )
20787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20789    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20790echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20791    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20793    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20794echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20797    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20799    (
20800      cat <<\_ASBOX
20801## ------------------------------------------ ##
20802## Report this to the AC_PACKAGE_NAME lists.  ##
20803## ------------------------------------------ ##
20804_ASBOX
20805    ) |
20806      sed "s/^/$as_me: WARNING:     /" >&2
20807    ;;
20808esac
20809echo "$as_me:$LINENO: checking for $ac_header" >&5
20810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20811if eval "test \"\${$as_ac_Header+set}\" = set"; then
20812  echo $ECHO_N "(cached) $ECHO_C" >&6
20813else
20814  eval "$as_ac_Header=\$ac_header_preproc"
20815fi
20816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20818
20819fi
20820if test `eval echo '${'$as_ac_Header'}'` = yes; then
20821  cat >>confdefs.h <<_ACEOF
20822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20823_ACEOF
20824
20825fi
20826
20827done
20828
20829
20830for ac_header in sys/select.h
20831do
20832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20833if eval "test \"\${$as_ac_Header+set}\" = set"; then
20834  echo "$as_me:$LINENO: checking for $ac_header" >&5
20835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20836if eval "test \"\${$as_ac_Header+set}\" = set"; then
20837  echo $ECHO_N "(cached) $ECHO_C" >&6
20838fi
20839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20841else
20842  # Is the header compilable?
20843echo "$as_me:$LINENO: checking $ac_header usability" >&5
20844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20845cat >conftest.$ac_ext <<_ACEOF
20846/* confdefs.h.  */
20847_ACEOF
20848cat confdefs.h >>conftest.$ac_ext
20849cat >>conftest.$ac_ext <<_ACEOF
20850/* end confdefs.h.  */
20851$ac_includes_default
20852#include <$ac_header>
20853_ACEOF
20854rm -f conftest.$ac_objext
20855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856  (eval $ac_compile) 2>conftest.er1
20857  ac_status=$?
20858  grep -v '^ *+' conftest.er1 >conftest.err
20859  rm -f conftest.er1
20860  cat conftest.err >&5
20861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862  (exit $ac_status); } &&
20863	 { ac_try='test -z "$ac_c_werror_flag"
20864			 || test ! -s conftest.err'
20865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866  (eval $ac_try) 2>&5
20867  ac_status=$?
20868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869  (exit $ac_status); }; } &&
20870	 { ac_try='test -s conftest.$ac_objext'
20871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872  (eval $ac_try) 2>&5
20873  ac_status=$?
20874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875  (exit $ac_status); }; }; then
20876  ac_header_compiler=yes
20877else
20878  echo "$as_me: failed program was:" >&5
20879sed 's/^/| /' conftest.$ac_ext >&5
20880
20881ac_header_compiler=no
20882fi
20883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20885echo "${ECHO_T}$ac_header_compiler" >&6
20886
20887# Is the header present?
20888echo "$as_me:$LINENO: checking $ac_header presence" >&5
20889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20890cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h.  */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h.  */
20896#include <$ac_header>
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  ac_header_preproc=yes
20917else
20918  echo "$as_me: failed program was:" >&5
20919sed 's/^/| /' conftest.$ac_ext >&5
20920
20921  ac_header_preproc=no
20922fi
20923rm -f conftest.err conftest.$ac_ext
20924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20925echo "${ECHO_T}$ac_header_preproc" >&6
20926
20927# So?  What about this header?
20928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20929  yes:no: )
20930    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20932    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20934    ac_header_preproc=yes
20935    ;;
20936  no:yes:* )
20937    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20939    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20940echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20941    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20943    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20944echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20945    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20947    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20949    (
20950      cat <<\_ASBOX
20951## ------------------------------------------ ##
20952## Report this to the AC_PACKAGE_NAME lists.  ##
20953## ------------------------------------------ ##
20954_ASBOX
20955    ) |
20956      sed "s/^/$as_me: WARNING:     /" >&2
20957    ;;
20958esac
20959echo "$as_me:$LINENO: checking for $ac_header" >&5
20960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20961if eval "test \"\${$as_ac_Header+set}\" = set"; then
20962  echo $ECHO_N "(cached) $ECHO_C" >&6
20963else
20964  eval "$as_ac_Header=\$ac_header_preproc"
20965fi
20966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20968
20969fi
20970if test `eval echo '${'$as_ac_Header'}'` = yes; then
20971  cat >>confdefs.h <<_ACEOF
20972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20973_ACEOF
20974
20975fi
20976
20977done
20978
20979
20980for ac_header in sys/filio.h
20981do
20982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20983if eval "test \"\${$as_ac_Header+set}\" = set"; then
20984  echo "$as_me:$LINENO: checking for $ac_header" >&5
20985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20986if eval "test \"\${$as_ac_Header+set}\" = set"; then
20987  echo $ECHO_N "(cached) $ECHO_C" >&6
20988fi
20989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20991else
20992  # Is the header compilable?
20993echo "$as_me:$LINENO: checking $ac_header usability" >&5
20994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20995cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h.  */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h.  */
21001$ac_includes_default
21002#include <$ac_header>
21003_ACEOF
21004rm -f conftest.$ac_objext
21005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21006  (eval $ac_compile) 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); } &&
21013	 { ac_try='test -z "$ac_c_werror_flag"
21014			 || test ! -s conftest.err'
21015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016  (eval $ac_try) 2>&5
21017  ac_status=$?
21018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019  (exit $ac_status); }; } &&
21020	 { ac_try='test -s conftest.$ac_objext'
21021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022  (eval $ac_try) 2>&5
21023  ac_status=$?
21024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025  (exit $ac_status); }; }; then
21026  ac_header_compiler=yes
21027else
21028  echo "$as_me: failed program was:" >&5
21029sed 's/^/| /' conftest.$ac_ext >&5
21030
21031ac_header_compiler=no
21032fi
21033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21035echo "${ECHO_T}$ac_header_compiler" >&6
21036
21037# Is the header present?
21038echo "$as_me:$LINENO: checking $ac_header presence" >&5
21039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21040cat >conftest.$ac_ext <<_ACEOF
21041/* confdefs.h.  */
21042_ACEOF
21043cat confdefs.h >>conftest.$ac_ext
21044cat >>conftest.$ac_ext <<_ACEOF
21045/* end confdefs.h.  */
21046#include <$ac_header>
21047_ACEOF
21048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21049  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21050  ac_status=$?
21051  grep -v '^ *+' conftest.er1 >conftest.err
21052  rm -f conftest.er1
21053  cat conftest.err >&5
21054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055  (exit $ac_status); } >/dev/null; then
21056  if test -s conftest.err; then
21057    ac_cpp_err=$ac_c_preproc_warn_flag
21058    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21059  else
21060    ac_cpp_err=
21061  fi
21062else
21063  ac_cpp_err=yes
21064fi
21065if test -z "$ac_cpp_err"; then
21066  ac_header_preproc=yes
21067else
21068  echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5
21070
21071  ac_header_preproc=no
21072fi
21073rm -f conftest.err conftest.$ac_ext
21074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21075echo "${ECHO_T}$ac_header_preproc" >&6
21076
21077# So?  What about this header?
21078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21079  yes:no: )
21080    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21082    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21084    ac_header_preproc=yes
21085    ;;
21086  no:yes:* )
21087    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21089    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21090echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21091    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21093    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21094echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21097    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21099    (
21100      cat <<\_ASBOX
21101## ------------------------------------------ ##
21102## Report this to the AC_PACKAGE_NAME lists.  ##
21103## ------------------------------------------ ##
21104_ASBOX
21105    ) |
21106      sed "s/^/$as_me: WARNING:     /" >&2
21107    ;;
21108esac
21109echo "$as_me:$LINENO: checking for $ac_header" >&5
21110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21111if eval "test \"\${$as_ac_Header+set}\" = set"; then
21112  echo $ECHO_N "(cached) $ECHO_C" >&6
21113else
21114  eval "$as_ac_Header=\$ac_header_preproc"
21115fi
21116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21118
21119fi
21120if test `eval echo '${'$as_ac_Header'}'` = yes; then
21121  cat >>confdefs.h <<_ACEOF
21122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21123_ACEOF
21124
21125fi
21126
21127done
21128
21129
21130
21131case $host_os in
21132  *mingw32* ) MINGW32=yes;;
21133	  * ) MINGW32=no;;
21134esac
21135
21136
21137
21138# Check whether --with-mingw32 or --without-mingw32 was given.
21139if test "${with_mingw32+set}" = set; then
21140  withval="$with_mingw32"
21141
21142fi;
21143
21144
21145case $host_os in
21146  *cygwin* ) CYGWIN=yes;;
21147	 * ) CYGWIN=no;;
21148esac
21149
21150
21151if test "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes" ; then
21152X_CFLAGS=""
21153X_LIBS=""
21154fi
21155
21156if test "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes" ; then
21157FOX_BYTEORDER=0
21158
21159else
21160echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21161echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21162if test "${ac_cv_c_bigendian+set}" = set; then
21163  echo $ECHO_N "(cached) $ECHO_C" >&6
21164else
21165  # See if sys/param.h defines the BYTE_ORDER macro.
21166cat >conftest.$ac_ext <<_ACEOF
21167/* confdefs.h.  */
21168_ACEOF
21169cat confdefs.h >>conftest.$ac_ext
21170cat >>conftest.$ac_ext <<_ACEOF
21171/* end confdefs.h.  */
21172#include <sys/types.h>
21173#include <sys/param.h>
21174
21175int
21176main ()
21177{
21178#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21179 bogus endian macros
21180#endif
21181
21182  ;
21183  return 0;
21184}
21185_ACEOF
21186rm -f conftest.$ac_objext
21187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21188  (eval $ac_compile) 2>conftest.er1
21189  ac_status=$?
21190  grep -v '^ *+' conftest.er1 >conftest.err
21191  rm -f conftest.er1
21192  cat conftest.err >&5
21193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194  (exit $ac_status); } &&
21195	 { ac_try='test -z "$ac_c_werror_flag"
21196			 || test ! -s conftest.err'
21197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198  (eval $ac_try) 2>&5
21199  ac_status=$?
21200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201  (exit $ac_status); }; } &&
21202	 { ac_try='test -s conftest.$ac_objext'
21203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204  (eval $ac_try) 2>&5
21205  ac_status=$?
21206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207  (exit $ac_status); }; }; then
21208  # It does; now see whether it defined to BIG_ENDIAN or not.
21209cat >conftest.$ac_ext <<_ACEOF
21210/* confdefs.h.  */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h.  */
21215#include <sys/types.h>
21216#include <sys/param.h>
21217
21218int
21219main ()
21220{
21221#if BYTE_ORDER != BIG_ENDIAN
21222 not big endian
21223#endif
21224
21225  ;
21226  return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext
21230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231  (eval $ac_compile) 2>conftest.er1
21232  ac_status=$?
21233  grep -v '^ *+' conftest.er1 >conftest.err
21234  rm -f conftest.er1
21235  cat conftest.err >&5
21236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237  (exit $ac_status); } &&
21238	 { ac_try='test -z "$ac_c_werror_flag"
21239			 || test ! -s conftest.err'
21240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241  (eval $ac_try) 2>&5
21242  ac_status=$?
21243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244  (exit $ac_status); }; } &&
21245	 { ac_try='test -s conftest.$ac_objext'
21246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247  (eval $ac_try) 2>&5
21248  ac_status=$?
21249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250  (exit $ac_status); }; }; then
21251  ac_cv_c_bigendian=yes
21252else
21253  echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256ac_cv_c_bigendian=no
21257fi
21258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21259else
21260  echo "$as_me: failed program was:" >&5
21261sed 's/^/| /' conftest.$ac_ext >&5
21262
21263# It does not; compile a test program.
21264if test "$cross_compiling" = yes; then
21265  # try to guess the endianness by grepping values into an object file
21266  ac_cv_c_bigendian=unknown
21267  cat >conftest.$ac_ext <<_ACEOF
21268/* confdefs.h.  */
21269_ACEOF
21270cat confdefs.h >>conftest.$ac_ext
21271cat >>conftest.$ac_ext <<_ACEOF
21272/* end confdefs.h.  */
21273short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21274short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21275void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21276short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21277short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21278void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21279int
21280main ()
21281{
21282 _ascii (); _ebcdic ();
21283  ;
21284  return 0;
21285}
21286_ACEOF
21287rm -f conftest.$ac_objext
21288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289  (eval $ac_compile) 2>conftest.er1
21290  ac_status=$?
21291  grep -v '^ *+' conftest.er1 >conftest.err
21292  rm -f conftest.er1
21293  cat conftest.err >&5
21294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295  (exit $ac_status); } &&
21296	 { ac_try='test -z "$ac_c_werror_flag"
21297			 || test ! -s conftest.err'
21298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299  (eval $ac_try) 2>&5
21300  ac_status=$?
21301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302  (exit $ac_status); }; } &&
21303	 { ac_try='test -s conftest.$ac_objext'
21304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305  (eval $ac_try) 2>&5
21306  ac_status=$?
21307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308  (exit $ac_status); }; }; then
21309  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21310  ac_cv_c_bigendian=yes
21311fi
21312if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21313  if test "$ac_cv_c_bigendian" = unknown; then
21314    ac_cv_c_bigendian=no
21315  else
21316    # finding both strings is unlikely to happen, but who knows?
21317    ac_cv_c_bigendian=unknown
21318  fi
21319fi
21320else
21321  echo "$as_me: failed program was:" >&5
21322sed 's/^/| /' conftest.$ac_ext >&5
21323
21324fi
21325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21326else
21327  cat >conftest.$ac_ext <<_ACEOF
21328/* confdefs.h.  */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h.  */
21333int
21334main ()
21335{
21336  /* Are we little or big endian?  From Harbison&Steele.  */
21337  union
21338  {
21339    long l;
21340    char c[sizeof (long)];
21341  } u;
21342  u.l = 1;
21343  exit (u.c[sizeof (long) - 1] == 1);
21344}
21345_ACEOF
21346rm -f conftest$ac_exeext
21347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21348  (eval $ac_link) 2>&5
21349  ac_status=$?
21350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353  (eval $ac_try) 2>&5
21354  ac_status=$?
21355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356  (exit $ac_status); }; }; then
21357  ac_cv_c_bigendian=no
21358else
21359  echo "$as_me: program exited with status $ac_status" >&5
21360echo "$as_me: failed program was:" >&5
21361sed 's/^/| /' conftest.$ac_ext >&5
21362
21363( exit $ac_status )
21364ac_cv_c_bigendian=yes
21365fi
21366rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21367fi
21368fi
21369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21370fi
21371echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21372echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21373case $ac_cv_c_bigendian in
21374  yes)
21375
21376cat >>confdefs.h <<\_ACEOF
21377#define WORDS_BIGENDIAN 1
21378_ACEOF
21379 ;;
21380  no)
21381     ;;
21382  *)
21383    { { echo "$as_me:$LINENO: error: unknown endianness
21384presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21385echo "$as_me: error: unknown endianness
21386presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21387   { (exit 1); exit 1; }; } ;;
21388esac
21389
21390if test "x$ac_cv_c_bigendian" = "xyes"; then
21391FOX_BYTEORDER=1
21392else
21393FOX_BYTEORDER=0
21394fi
21395
21396fi
21397
21398
21399if test "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes" ; then
21400cat >>confdefs.h <<\_ACEOF
21401#define WIN32 1
21402_ACEOF
21403
21404LIBS="${LIBS} -lcomctl32 -lwsock32 -lwinspool -lmpr"
21405LDFLAGS="${LDFLAGS} -mwindows -e _mainCRTStartup"
21406if test "x$with_mingw32" != "x" ; then
21407CPPFLAGS="${CPPFLAGS} -I$with_mingw32/include"
21408LIBS="${LIBS} -L$with_mingw32/lib"
21409fi
21410X_BASE_LIBS=""
21411else
21412X_BASE_LIBS="-lXext -lX11"
21413fi
21414
21415
21416
21417echo "$as_me:$LINENO: checking for QNX environment" >&5
21418echo $ECHO_N "checking for QNX environment... $ECHO_C" >&6
21419case "$host_os" in
21420  *-qnx*)
21421    echo "$as_me:$LINENO: result: yes" >&5
21422echo "${ECHO_T}yes" >&6
21423        if test "${GXX}" = "yes" ; then
21424
21425
21426      ac_ext=cc
21427ac_cpp='$CXXCPP $CPPFLAGS'
21428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21431
21432      echo "$as_me:$LINENO: checking if QNX C++ compiler requires -fno-builtin" >&5
21433echo $ECHO_N "checking if QNX C++ compiler requires -fno-builtin... $ECHO_C" >&6
21434      if test "${ac_cv_no_builtin+set}" = set; then
21435  echo $ECHO_N "(cached) $ECHO_C" >&6
21436else
21437  cat >conftest.$ac_ext <<_ACEOF
21438/* confdefs.h.  */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h.  */
21443#include<stdlib.h>
21444                        #include<math.h>
21445                        #include<string.h>
21446int
21447main ()
21448{
21449return 0;
21450  ;
21451  return 0;
21452}
21453_ACEOF
21454rm -f conftest.$ac_objext
21455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456  (eval $ac_compile) 2>conftest.er1
21457  ac_status=$?
21458  grep -v '^ *+' conftest.er1 >conftest.err
21459  rm -f conftest.er1
21460  cat conftest.err >&5
21461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462  (exit $ac_status); } &&
21463	 { ac_try='test -z "$ac_cxx_werror_flag"
21464			 || test ! -s conftest.err'
21465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466  (eval $ac_try) 2>&5
21467  ac_status=$?
21468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469  (exit $ac_status); }; } &&
21470	 { ac_try='test -s conftest.$ac_objext'
21471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472  (eval $ac_try) 2>&5
21473  ac_status=$?
21474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475  (exit $ac_status); }; }; then
21476  ac_cv_no_builtin=false
21477else
21478  echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481ac_cv_no_builtin=true
21482fi
21483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484fi
21485
21486      if test "$ac_cv_no_builtin" = true ; then
21487        CXXFLAGS="${CXXFLAGS} -fno-builtin"
21488        echo "$as_me:$LINENO: result: yes" >&5
21489echo "${ECHO_T}yes" >&6
21490      else
21491        echo "$as_me:$LINENO: result: no" >&5
21492echo "${ECHO_T}no" >&6
21493      fi
21494      ac_ext=c
21495ac_cpp='$CPP $CPPFLAGS'
21496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21498ac_compiler_gnu=$ac_cv_c_compiler_gnu
21499
21500    fi
21501    ;;
21502  *)
21503    echo "$as_me:$LINENO: result: no" >&5
21504echo "${ECHO_T}no" >&6
21505esac
21506
21507
21508echo "$as_me:$LINENO: checking for Sun WorkShop C++" >&5
21509echo $ECHO_N "checking for Sun WorkShop C++... $ECHO_C" >&6
21510if $CXX -V 2>&1 | egrep 'WorkShop Compilers 4.2' > /dev/null; then
21511echo "$as_me:$LINENO: result: 4.2" >&5
21512echo "${ECHO_T}4.2" >&6
21513CXXFLAGS="${CXXFLAGS} -instances=global -features=anachronisms"
21514elif $CXX -V 2>&1 | egrep 'WorkShop Compilers 5.0' > /dev/null; then
21515echo "$as_me:$LINENO: result: 5.0" >&5
21516echo "${ECHO_T}5.0" >&6
21517CXXFLAGS="${CXXFLAGS} -instances=global -features=anachronisms,no%conststrings"
21518elif $CXX -V 2>&1 | egrep 'Sun WorkShop 6' > /dev/null; then
21519echo "$as_me:$LINENO: result: Forte6" >&5
21520echo "${ECHO_T}Forte6" >&6
21521CXXFLAGS="${CXXFLAGS} -instances=global -features=anachronisms,no%conststrings"
21522else
21523echo "$as_me:$LINENO: result: no" >&5
21524echo "${ECHO_T}no" >&6
21525fi
21526
21527
21528echo "$as_me:$LINENO: checking for Xft support" >&5
21529echo $ECHO_N "checking for Xft support... $ECHO_C" >&6
21530
21531# Check whether --with-xft or --without-xft was given.
21532if test "${with_xft+set}" = set; then
21533  withval="$with_xft"
21534
21535fi;
21536echo "$as_me:$LINENO: result: $with_xft" >&5
21537echo "${ECHO_T}$with_xft" >&6
21538if test "x$with_xft" = "xyes"; then
21539FTCFLAGS=`freetype-config --cflags`
21540FTLIBX=`freetype-config --libs`
21541XFTCFLAGS=`xft-config --cflags`
21542XFTLIBS=`xft-config --libs`
21543saved_cppflags="${CXXFLAGS}"
21544CXXFLAGS="${CXXFLAGS} -DHAVE_XFT_H=1 $FTCFLAGS $XFTCFLAGS"
21545X_BASE_LIBS="${X_BASE_LIBS} $FTLIBS $XFTLIBS"
21546fi
21547
21548
21549# Check whether --enable-shape or --disable-shape was given.
21550if test "${enable_shape+set}" = set; then
21551  enableval="$enable_shape"
21552
21553fi;
21554echo "$as_me:$LINENO: result: $with_shape" >&5
21555echo "${ECHO_T}$with_shape" >&6
21556if test "x$with_shape" != "xno"; then
21557if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then
21558  echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
21559echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
21560if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then
21561  echo $ECHO_N "(cached) $ECHO_C" >&6
21562fi
21563echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h" >&5
21564echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6
21565else
21566  # Is the header compilable?
21567echo "$as_me:$LINENO: checking X11/extensions/shape.h usability" >&5
21568echo $ECHO_N "checking X11/extensions/shape.h usability... $ECHO_C" >&6
21569cat >conftest.$ac_ext <<_ACEOF
21570/* confdefs.h.  */
21571_ACEOF
21572cat confdefs.h >>conftest.$ac_ext
21573cat >>conftest.$ac_ext <<_ACEOF
21574/* end confdefs.h.  */
21575$ac_includes_default
21576#include <X11/extensions/shape.h>
21577_ACEOF
21578rm -f conftest.$ac_objext
21579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21580  (eval $ac_compile) 2>conftest.er1
21581  ac_status=$?
21582  grep -v '^ *+' conftest.er1 >conftest.err
21583  rm -f conftest.er1
21584  cat conftest.err >&5
21585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586  (exit $ac_status); } &&
21587	 { ac_try='test -z "$ac_c_werror_flag"
21588			 || test ! -s conftest.err'
21589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590  (eval $ac_try) 2>&5
21591  ac_status=$?
21592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593  (exit $ac_status); }; } &&
21594	 { ac_try='test -s conftest.$ac_objext'
21595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596  (eval $ac_try) 2>&5
21597  ac_status=$?
21598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599  (exit $ac_status); }; }; then
21600  ac_header_compiler=yes
21601else
21602  echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605ac_header_compiler=no
21606fi
21607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21609echo "${ECHO_T}$ac_header_compiler" >&6
21610
21611# Is the header present?
21612echo "$as_me:$LINENO: checking X11/extensions/shape.h presence" >&5
21613echo $ECHO_N "checking X11/extensions/shape.h presence... $ECHO_C" >&6
21614cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h.  */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h.  */
21620#include <X11/extensions/shape.h>
21621_ACEOF
21622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21623  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21624  ac_status=$?
21625  grep -v '^ *+' conftest.er1 >conftest.err
21626  rm -f conftest.er1
21627  cat conftest.err >&5
21628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629  (exit $ac_status); } >/dev/null; then
21630  if test -s conftest.err; then
21631    ac_cpp_err=$ac_c_preproc_warn_flag
21632    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21633  else
21634    ac_cpp_err=
21635  fi
21636else
21637  ac_cpp_err=yes
21638fi
21639if test -z "$ac_cpp_err"; then
21640  ac_header_preproc=yes
21641else
21642  echo "$as_me: failed program was:" >&5
21643sed 's/^/| /' conftest.$ac_ext >&5
21644
21645  ac_header_preproc=no
21646fi
21647rm -f conftest.err conftest.$ac_ext
21648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21649echo "${ECHO_T}$ac_header_preproc" >&6
21650
21651# So?  What about this header?
21652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21653  yes:no: )
21654    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: accepted by the compiler, rejected by the preprocessor!" >&5
21655echo "$as_me: WARNING: X11/extensions/shape.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21656    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the compiler's result" >&5
21657echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the compiler's result" >&2;}
21658    ac_header_preproc=yes
21659    ;;
21660  no:yes:* )
21661    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: present but cannot be compiled" >&5
21662echo "$as_me: WARNING: X11/extensions/shape.h: present but cannot be compiled" >&2;}
21663    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h:     check for missing prerequisite headers?" >&5
21664echo "$as_me: WARNING: X11/extensions/shape.h:     check for missing prerequisite headers?" >&2;}
21665    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: see the Autoconf documentation" >&5
21666echo "$as_me: WARNING: X11/extensions/shape.h: see the Autoconf documentation" >&2;}
21667    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h:     section \"Present But Cannot Be Compiled\"" >&5
21668echo "$as_me: WARNING: X11/extensions/shape.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21669    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the preprocessor's result" >&5
21670echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the preprocessor's result" >&2;}
21671    { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: in the future, the compiler will take precedence" >&5
21672echo "$as_me: WARNING: X11/extensions/shape.h: in the future, the compiler will take precedence" >&2;}
21673    (
21674      cat <<\_ASBOX
21675## ------------------------------------------ ##
21676## Report this to the AC_PACKAGE_NAME lists.  ##
21677## ------------------------------------------ ##
21678_ASBOX
21679    ) |
21680      sed "s/^/$as_me: WARNING:     /" >&2
21681    ;;
21682esac
21683echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
21684echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
21685if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then
21686  echo $ECHO_N "(cached) $ECHO_C" >&6
21687else
21688  ac_cv_header_X11_extensions_shape_h=$ac_header_preproc
21689fi
21690echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h" >&5
21691echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6
21692
21693fi
21694if test $ac_cv_header_X11_extensions_shape_h = yes; then
21695  CXXFLAGS="${CXXFLAGS} -DHAVE_XSHAPE_H=1"
21696fi
21697
21698
21699fi
21700
21701
21702# Check whether --enable-xshm or --disable-xshm was given.
21703if test "${enable_xshm+set}" = set; then
21704  enableval="$enable_xshm"
21705
21706fi;
21707echo "$as_me:$LINENO: result: $with_xshm" >&5
21708echo "${ECHO_T}$with_xshm" >&6
21709if test "x$with_xshm" != "xno"; then
21710XSHM="-DHAVE_XSHM_H=1"
21711if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
21712  echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
21713echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
21714if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
21715  echo $ECHO_N "(cached) $ECHO_C" >&6
21716fi
21717echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
21718echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
21719else
21720  # Is the header compilable?
21721echo "$as_me:$LINENO: checking X11/extensions/XShm.h usability" >&5
21722echo $ECHO_N "checking X11/extensions/XShm.h usability... $ECHO_C" >&6
21723cat >conftest.$ac_ext <<_ACEOF
21724/* confdefs.h.  */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
21728/* end confdefs.h.  */
21729$ac_includes_default
21730#include <X11/extensions/XShm.h>
21731_ACEOF
21732rm -f conftest.$ac_objext
21733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21734  (eval $ac_compile) 2>conftest.er1
21735  ac_status=$?
21736  grep -v '^ *+' conftest.er1 >conftest.err
21737  rm -f conftest.er1
21738  cat conftest.err >&5
21739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740  (exit $ac_status); } &&
21741	 { ac_try='test -z "$ac_c_werror_flag"
21742			 || test ! -s conftest.err'
21743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744  (eval $ac_try) 2>&5
21745  ac_status=$?
21746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747  (exit $ac_status); }; } &&
21748	 { ac_try='test -s conftest.$ac_objext'
21749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750  (eval $ac_try) 2>&5
21751  ac_status=$?
21752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753  (exit $ac_status); }; }; then
21754  ac_header_compiler=yes
21755else
21756  echo "$as_me: failed program was:" >&5
21757sed 's/^/| /' conftest.$ac_ext >&5
21758
21759ac_header_compiler=no
21760fi
21761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21763echo "${ECHO_T}$ac_header_compiler" >&6
21764
21765# Is the header present?
21766echo "$as_me:$LINENO: checking X11/extensions/XShm.h presence" >&5
21767echo $ECHO_N "checking X11/extensions/XShm.h presence... $ECHO_C" >&6
21768cat >conftest.$ac_ext <<_ACEOF
21769/* confdefs.h.  */
21770_ACEOF
21771cat confdefs.h >>conftest.$ac_ext
21772cat >>conftest.$ac_ext <<_ACEOF
21773/* end confdefs.h.  */
21774#include <X11/extensions/XShm.h>
21775_ACEOF
21776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21777  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21778  ac_status=$?
21779  grep -v '^ *+' conftest.er1 >conftest.err
21780  rm -f conftest.er1
21781  cat conftest.err >&5
21782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783  (exit $ac_status); } >/dev/null; then
21784  if test -s conftest.err; then
21785    ac_cpp_err=$ac_c_preproc_warn_flag
21786    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21787  else
21788    ac_cpp_err=
21789  fi
21790else
21791  ac_cpp_err=yes
21792fi
21793if test -z "$ac_cpp_err"; then
21794  ac_header_preproc=yes
21795else
21796  echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
21798
21799  ac_header_preproc=no
21800fi
21801rm -f conftest.err conftest.$ac_ext
21802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21803echo "${ECHO_T}$ac_header_preproc" >&6
21804
21805# So?  What about this header?
21806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21807  yes:no: )
21808    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h: accepted by the compiler, rejected by the preprocessor!" >&5
21809echo "$as_me: WARNING: X11/extensions/XShm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21810    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h: proceeding with the compiler's result" >&5
21811echo "$as_me: WARNING: X11/extensions/XShm.h: proceeding with the compiler's result" >&2;}
21812    ac_header_preproc=yes
21813    ;;
21814  no:yes:* )
21815    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h: present but cannot be compiled" >&5
21816echo "$as_me: WARNING: X11/extensions/XShm.h: present but cannot be compiled" >&2;}
21817    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h:     check for missing prerequisite headers?" >&5
21818echo "$as_me: WARNING: X11/extensions/XShm.h:     check for missing prerequisite headers?" >&2;}
21819    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h: see the Autoconf documentation" >&5
21820echo "$as_me: WARNING: X11/extensions/XShm.h: see the Autoconf documentation" >&2;}
21821    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h:     section \"Present But Cannot Be Compiled\"" >&5
21822echo "$as_me: WARNING: X11/extensions/XShm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21823    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h: proceeding with the preprocessor's result" >&5
21824echo "$as_me: WARNING: X11/extensions/XShm.h: proceeding with the preprocessor's result" >&2;}
21825    { echo "$as_me:$LINENO: WARNING: X11/extensions/XShm.h: in the future, the compiler will take precedence" >&5
21826echo "$as_me: WARNING: X11/extensions/XShm.h: in the future, the compiler will take precedence" >&2;}
21827    (
21828      cat <<\_ASBOX
21829## ------------------------------------------ ##
21830## Report this to the AC_PACKAGE_NAME lists.  ##
21831## ------------------------------------------ ##
21832_ASBOX
21833    ) |
21834      sed "s/^/$as_me: WARNING:     /" >&2
21835    ;;
21836esac
21837echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
21838echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
21839if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
21840  echo $ECHO_N "(cached) $ECHO_C" >&6
21841else
21842  ac_cv_header_X11_extensions_XShm_h=$ac_header_preproc
21843fi
21844echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
21845echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
21846
21847fi
21848if test $ac_cv_header_X11_extensions_XShm_h = yes; then
21849  :
21850else
21851  XSHM=""
21852fi
21853
21854
21855if test "${ac_cv_header_sys_ipc_h+set}" = set; then
21856  echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
21857echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
21858if test "${ac_cv_header_sys_ipc_h+set}" = set; then
21859  echo $ECHO_N "(cached) $ECHO_C" >&6
21860fi
21861echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
21862echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
21863else
21864  # Is the header compilable?
21865echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
21866echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
21867cat >conftest.$ac_ext <<_ACEOF
21868/* confdefs.h.  */
21869_ACEOF
21870cat confdefs.h >>conftest.$ac_ext
21871cat >>conftest.$ac_ext <<_ACEOF
21872/* end confdefs.h.  */
21873$ac_includes_default
21874#include <sys/ipc.h>
21875_ACEOF
21876rm -f conftest.$ac_objext
21877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21878  (eval $ac_compile) 2>conftest.er1
21879  ac_status=$?
21880  grep -v '^ *+' conftest.er1 >conftest.err
21881  rm -f conftest.er1
21882  cat conftest.err >&5
21883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884  (exit $ac_status); } &&
21885	 { ac_try='test -z "$ac_c_werror_flag"
21886			 || test ! -s conftest.err'
21887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888  (eval $ac_try) 2>&5
21889  ac_status=$?
21890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891  (exit $ac_status); }; } &&
21892	 { ac_try='test -s conftest.$ac_objext'
21893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894  (eval $ac_try) 2>&5
21895  ac_status=$?
21896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897  (exit $ac_status); }; }; then
21898  ac_header_compiler=yes
21899else
21900  echo "$as_me: failed program was:" >&5
21901sed 's/^/| /' conftest.$ac_ext >&5
21902
21903ac_header_compiler=no
21904fi
21905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21907echo "${ECHO_T}$ac_header_compiler" >&6
21908
21909# Is the header present?
21910echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
21911echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
21912cat >conftest.$ac_ext <<_ACEOF
21913/* confdefs.h.  */
21914_ACEOF
21915cat confdefs.h >>conftest.$ac_ext
21916cat >>conftest.$ac_ext <<_ACEOF
21917/* end confdefs.h.  */
21918#include <sys/ipc.h>
21919_ACEOF
21920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21921  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21922  ac_status=$?
21923  grep -v '^ *+' conftest.er1 >conftest.err
21924  rm -f conftest.er1
21925  cat conftest.err >&5
21926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927  (exit $ac_status); } >/dev/null; then
21928  if test -s conftest.err; then
21929    ac_cpp_err=$ac_c_preproc_warn_flag
21930    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21931  else
21932    ac_cpp_err=
21933  fi
21934else
21935  ac_cpp_err=yes
21936fi
21937if test -z "$ac_cpp_err"; then
21938  ac_header_preproc=yes
21939else
21940  echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943  ac_header_preproc=no
21944fi
21945rm -f conftest.err conftest.$ac_ext
21946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21947echo "${ECHO_T}$ac_header_preproc" >&6
21948
21949# So?  What about this header?
21950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21951  yes:no: )
21952    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
21953echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21954    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
21955echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
21956    ac_header_preproc=yes
21957    ;;
21958  no:yes:* )
21959    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
21960echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
21961    { echo "$as_me:$LINENO: WARNING: sys/ipc.h:     check for missing prerequisite headers?" >&5
21962echo "$as_me: WARNING: sys/ipc.h:     check for missing prerequisite headers?" >&2;}
21963    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
21964echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
21965    { echo "$as_me:$LINENO: WARNING: sys/ipc.h:     section \"Present But Cannot Be Compiled\"" >&5
21966echo "$as_me: WARNING: sys/ipc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21967    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
21968echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
21969    { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
21970echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
21971    (
21972      cat <<\_ASBOX
21973## ------------------------------------------ ##
21974## Report this to the AC_PACKAGE_NAME lists.  ##
21975## ------------------------------------------ ##
21976_ASBOX
21977    ) |
21978      sed "s/^/$as_me: WARNING:     /" >&2
21979    ;;
21980esac
21981echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
21982echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
21983if test "${ac_cv_header_sys_ipc_h+set}" = set; then
21984  echo $ECHO_N "(cached) $ECHO_C" >&6
21985else
21986  ac_cv_header_sys_ipc_h=$ac_header_preproc
21987fi
21988echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
21989echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
21990
21991fi
21992if test $ac_cv_header_sys_ipc_h = yes; then
21993  :
21994else
21995  XSHM=""
21996fi
21997
21998
21999if test "${ac_cv_header_sys_shm_h+set}" = set; then
22000  echo "$as_me:$LINENO: checking for sys/shm.h" >&5
22001echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
22002if test "${ac_cv_header_sys_shm_h+set}" = set; then
22003  echo $ECHO_N "(cached) $ECHO_C" >&6
22004fi
22005echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
22006echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
22007else
22008  # Is the header compilable?
22009echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
22010echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
22011cat >conftest.$ac_ext <<_ACEOF
22012/* confdefs.h.  */
22013_ACEOF
22014cat confdefs.h >>conftest.$ac_ext
22015cat >>conftest.$ac_ext <<_ACEOF
22016/* end confdefs.h.  */
22017$ac_includes_default
22018#include <sys/shm.h>
22019_ACEOF
22020rm -f conftest.$ac_objext
22021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022  (eval $ac_compile) 2>conftest.er1
22023  ac_status=$?
22024  grep -v '^ *+' conftest.er1 >conftest.err
22025  rm -f conftest.er1
22026  cat conftest.err >&5
22027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028  (exit $ac_status); } &&
22029	 { ac_try='test -z "$ac_c_werror_flag"
22030			 || test ! -s conftest.err'
22031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032  (eval $ac_try) 2>&5
22033  ac_status=$?
22034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035  (exit $ac_status); }; } &&
22036	 { ac_try='test -s conftest.$ac_objext'
22037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038  (eval $ac_try) 2>&5
22039  ac_status=$?
22040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041  (exit $ac_status); }; }; then
22042  ac_header_compiler=yes
22043else
22044  echo "$as_me: failed program was:" >&5
22045sed 's/^/| /' conftest.$ac_ext >&5
22046
22047ac_header_compiler=no
22048fi
22049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22051echo "${ECHO_T}$ac_header_compiler" >&6
22052
22053# Is the header present?
22054echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
22055echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
22056cat >conftest.$ac_ext <<_ACEOF
22057/* confdefs.h.  */
22058_ACEOF
22059cat confdefs.h >>conftest.$ac_ext
22060cat >>conftest.$ac_ext <<_ACEOF
22061/* end confdefs.h.  */
22062#include <sys/shm.h>
22063_ACEOF
22064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22065  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22066  ac_status=$?
22067  grep -v '^ *+' conftest.er1 >conftest.err
22068  rm -f conftest.er1
22069  cat conftest.err >&5
22070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071  (exit $ac_status); } >/dev/null; then
22072  if test -s conftest.err; then
22073    ac_cpp_err=$ac_c_preproc_warn_flag
22074    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22075  else
22076    ac_cpp_err=
22077  fi
22078else
22079  ac_cpp_err=yes
22080fi
22081if test -z "$ac_cpp_err"; then
22082  ac_header_preproc=yes
22083else
22084  echo "$as_me: failed program was:" >&5
22085sed 's/^/| /' conftest.$ac_ext >&5
22086
22087  ac_header_preproc=no
22088fi
22089rm -f conftest.err conftest.$ac_ext
22090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22091echo "${ECHO_T}$ac_header_preproc" >&6
22092
22093# So?  What about this header?
22094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22095  yes:no: )
22096    { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
22097echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22098    { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
22099echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
22100    ac_header_preproc=yes
22101    ;;
22102  no:yes:* )
22103    { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
22104echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
22105    { echo "$as_me:$LINENO: WARNING: sys/shm.h:     check for missing prerequisite headers?" >&5
22106echo "$as_me: WARNING: sys/shm.h:     check for missing prerequisite headers?" >&2;}
22107    { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
22108echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
22109    { echo "$as_me:$LINENO: WARNING: sys/shm.h:     section \"Present But Cannot Be Compiled\"" >&5
22110echo "$as_me: WARNING: sys/shm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22111    { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
22112echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
22113    { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
22114echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
22115    (
22116      cat <<\_ASBOX
22117## ------------------------------------------ ##
22118## Report this to the AC_PACKAGE_NAME lists.  ##
22119## ------------------------------------------ ##
22120_ASBOX
22121    ) |
22122      sed "s/^/$as_me: WARNING:     /" >&2
22123    ;;
22124esac
22125echo "$as_me:$LINENO: checking for sys/shm.h" >&5
22126echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
22127if test "${ac_cv_header_sys_shm_h+set}" = set; then
22128  echo $ECHO_N "(cached) $ECHO_C" >&6
22129else
22130  ac_cv_header_sys_shm_h=$ac_header_preproc
22131fi
22132echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
22133echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
22134
22135fi
22136if test $ac_cv_header_sys_shm_h = yes; then
22137  :
22138else
22139  XSHM=""
22140fi
22141
22142
22143CXXFLAGS="${CXXFLAGS} ${XSHM}"
22144fi
22145
22146
22147echo "$as_me:$LINENO: checking for thread-safe library calls" >&5
22148echo $ECHO_N "checking for thread-safe library calls... $ECHO_C" >&6
22149# Check whether --enable-xthreads or --disable-xthreads was given.
22150if test "${enable_xthreads+set}" = set; then
22151  enableval="$enable_xthreads"
22152
22153fi;
22154echo "$as_me:$LINENO: result: $enable_threadsafe" >&5
22155echo "${ECHO_T}$enable_threadsafe" >&6
22156if test "x$enable_threadsafe" != "xno" ; then
22157CXXFLAGS="${CXXFLAGS} -DFOX_THREAD_SAFE=1 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
22158fi
22159
22160if test "x$MINGW32" != "xyes" ; then
22161if test "${ac_cv_header_pthread_h+set}" = set; then
22162  echo "$as_me:$LINENO: checking for pthread.h" >&5
22163echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
22164if test "${ac_cv_header_pthread_h+set}" = set; then
22165  echo $ECHO_N "(cached) $ECHO_C" >&6
22166fi
22167echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22168echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
22169else
22170  # Is the header compilable?
22171echo "$as_me:$LINENO: checking pthread.h usability" >&5
22172echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
22173cat >conftest.$ac_ext <<_ACEOF
22174/* confdefs.h.  */
22175_ACEOF
22176cat confdefs.h >>conftest.$ac_ext
22177cat >>conftest.$ac_ext <<_ACEOF
22178/* end confdefs.h.  */
22179$ac_includes_default
22180#include <pthread.h>
22181_ACEOF
22182rm -f conftest.$ac_objext
22183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184  (eval $ac_compile) 2>conftest.er1
22185  ac_status=$?
22186  grep -v '^ *+' conftest.er1 >conftest.err
22187  rm -f conftest.er1
22188  cat conftest.err >&5
22189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190  (exit $ac_status); } &&
22191	 { ac_try='test -z "$ac_c_werror_flag"
22192			 || test ! -s conftest.err'
22193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194  (eval $ac_try) 2>&5
22195  ac_status=$?
22196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197  (exit $ac_status); }; } &&
22198	 { ac_try='test -s conftest.$ac_objext'
22199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200  (eval $ac_try) 2>&5
22201  ac_status=$?
22202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203  (exit $ac_status); }; }; then
22204  ac_header_compiler=yes
22205else
22206  echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
22209ac_header_compiler=no
22210fi
22211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22213echo "${ECHO_T}$ac_header_compiler" >&6
22214
22215# Is the header present?
22216echo "$as_me:$LINENO: checking pthread.h presence" >&5
22217echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
22218cat >conftest.$ac_ext <<_ACEOF
22219/* confdefs.h.  */
22220_ACEOF
22221cat confdefs.h >>conftest.$ac_ext
22222cat >>conftest.$ac_ext <<_ACEOF
22223/* end confdefs.h.  */
22224#include <pthread.h>
22225_ACEOF
22226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22227  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22228  ac_status=$?
22229  grep -v '^ *+' conftest.er1 >conftest.err
22230  rm -f conftest.er1
22231  cat conftest.err >&5
22232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233  (exit $ac_status); } >/dev/null; then
22234  if test -s conftest.err; then
22235    ac_cpp_err=$ac_c_preproc_warn_flag
22236    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22237  else
22238    ac_cpp_err=
22239  fi
22240else
22241  ac_cpp_err=yes
22242fi
22243if test -z "$ac_cpp_err"; then
22244  ac_header_preproc=yes
22245else
22246  echo "$as_me: failed program was:" >&5
22247sed 's/^/| /' conftest.$ac_ext >&5
22248
22249  ac_header_preproc=no
22250fi
22251rm -f conftest.err conftest.$ac_ext
22252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22253echo "${ECHO_T}$ac_header_preproc" >&6
22254
22255# So?  What about this header?
22256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22257  yes:no: )
22258    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22259echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22260    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22261echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22262    ac_header_preproc=yes
22263    ;;
22264  no:yes:* )
22265    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22266echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22267    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
22268echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
22269    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22270echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22271    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
22272echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22273    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22274echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22275    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22276echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22277    (
22278      cat <<\_ASBOX
22279## ------------------------------------------ ##
22280## Report this to the AC_PACKAGE_NAME lists.  ##
22281## ------------------------------------------ ##
22282_ASBOX
22283    ) |
22284      sed "s/^/$as_me: WARNING:     /" >&2
22285    ;;
22286esac
22287echo "$as_me:$LINENO: checking for pthread.h" >&5
22288echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
22289if test "${ac_cv_header_pthread_h+set}" = set; then
22290  echo $ECHO_N "(cached) $ECHO_C" >&6
22291else
22292  ac_cv_header_pthread_h=$ac_header_preproc
22293fi
22294echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22295echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
22296
22297fi
22298if test $ac_cv_header_pthread_h = yes; then
22299  :
22300else
22301  { { echo "$as_me:$LINENO: error: *** POSIX thread support not available ***" >&5
22302echo "$as_me: error: *** POSIX thread support not available ***" >&2;}
22303   { (exit 1); exit 1; }; }
22304fi
22305
22306
22307PTHREAD_LIBS=notfound
22308if test "x$PTHREAD_LIBS" = xnotfound; then
22309echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
22310echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6
22311if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then
22312  echo $ECHO_N "(cached) $ECHO_C" >&6
22313else
22314  ac_check_lib_save_LIBS=$LIBS
22315LIBS="-lpthread  $LIBS"
22316cat >conftest.$ac_ext <<_ACEOF
22317/* confdefs.h.  */
22318_ACEOF
22319cat confdefs.h >>conftest.$ac_ext
22320cat >>conftest.$ac_ext <<_ACEOF
22321/* end confdefs.h.  */
22322
22323/* Override any gcc2 internal prototype to avoid an error.  */
22324#ifdef __cplusplus
22325extern "C"
22326#endif
22327/* We use char because int might match the return type of a gcc2
22328   builtin and then its argument prototype would still apply.  */
22329char pthread_exit ();
22330int
22331main ()
22332{
22333pthread_exit ();
22334  ;
22335  return 0;
22336}
22337_ACEOF
22338rm -f conftest.$ac_objext conftest$ac_exeext
22339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22340  (eval $ac_link) 2>conftest.er1
22341  ac_status=$?
22342  grep -v '^ *+' conftest.er1 >conftest.err
22343  rm -f conftest.er1
22344  cat conftest.err >&5
22345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346  (exit $ac_status); } &&
22347	 { ac_try='test -z "$ac_c_werror_flag"
22348			 || test ! -s conftest.err'
22349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350  (eval $ac_try) 2>&5
22351  ac_status=$?
22352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353  (exit $ac_status); }; } &&
22354	 { ac_try='test -s conftest$ac_exeext'
22355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356  (eval $ac_try) 2>&5
22357  ac_status=$?
22358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359  (exit $ac_status); }; }; then
22360  ac_cv_lib_pthread_pthread_exit=yes
22361else
22362  echo "$as_me: failed program was:" >&5
22363sed 's/^/| /' conftest.$ac_ext >&5
22364
22365ac_cv_lib_pthread_pthread_exit=no
22366fi
22367rm -f conftest.err conftest.$ac_objext \
22368      conftest$ac_exeext conftest.$ac_ext
22369LIBS=$ac_check_lib_save_LIBS
22370fi
22371echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_exit" >&5
22372echo "${ECHO_T}$ac_cv_lib_pthread_pthread_exit" >&6
22373if test $ac_cv_lib_pthread_pthread_exit = yes; then
22374  PTHREAD_LIBS="-lpthread"
22375fi
22376
22377fi
22378if test "x$PTHREAD_LIBS" = xnotfound; then
22379echo "$as_me:$LINENO: checking for pthread_exit in -lpthreads" >&5
22380echo $ECHO_N "checking for pthread_exit in -lpthreads... $ECHO_C" >&6
22381if test "${ac_cv_lib_pthreads_pthread_exit+set}" = set; then
22382  echo $ECHO_N "(cached) $ECHO_C" >&6
22383else
22384  ac_check_lib_save_LIBS=$LIBS
22385LIBS="-lpthreads  $LIBS"
22386cat >conftest.$ac_ext <<_ACEOF
22387/* confdefs.h.  */
22388_ACEOF
22389cat confdefs.h >>conftest.$ac_ext
22390cat >>conftest.$ac_ext <<_ACEOF
22391/* end confdefs.h.  */
22392
22393/* Override any gcc2 internal prototype to avoid an error.  */
22394#ifdef __cplusplus
22395extern "C"
22396#endif
22397/* We use char because int might match the return type of a gcc2
22398   builtin and then its argument prototype would still apply.  */
22399char pthread_exit ();
22400int
22401main ()
22402{
22403pthread_exit ();
22404  ;
22405  return 0;
22406}
22407_ACEOF
22408rm -f conftest.$ac_objext conftest$ac_exeext
22409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22410  (eval $ac_link) 2>conftest.er1
22411  ac_status=$?
22412  grep -v '^ *+' conftest.er1 >conftest.err
22413  rm -f conftest.er1
22414  cat conftest.err >&5
22415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416  (exit $ac_status); } &&
22417	 { ac_try='test -z "$ac_c_werror_flag"
22418			 || test ! -s conftest.err'
22419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420  (eval $ac_try) 2>&5
22421  ac_status=$?
22422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423  (exit $ac_status); }; } &&
22424	 { ac_try='test -s conftest$ac_exeext'
22425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426  (eval $ac_try) 2>&5
22427  ac_status=$?
22428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429  (exit $ac_status); }; }; then
22430  ac_cv_lib_pthreads_pthread_exit=yes
22431else
22432  echo "$as_me: failed program was:" >&5
22433sed 's/^/| /' conftest.$ac_ext >&5
22434
22435ac_cv_lib_pthreads_pthread_exit=no
22436fi
22437rm -f conftest.err conftest.$ac_objext \
22438      conftest$ac_exeext conftest.$ac_ext
22439LIBS=$ac_check_lib_save_LIBS
22440fi
22441echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_exit" >&5
22442echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_exit" >&6
22443if test $ac_cv_lib_pthreads_pthread_exit = yes; then
22444  PTHREAD_LIBS="-lpthreads"
22445fi
22446
22447fi
22448if test "x$PTHREAD_LIBS" = xnotfound; then
22449echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
22450echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6
22451if test "${ac_cv_lib_c_r_pthread_exit+set}" = set; then
22452  echo $ECHO_N "(cached) $ECHO_C" >&6
22453else
22454  ac_check_lib_save_LIBS=$LIBS
22455LIBS="-lpthread  $LIBS"
22456cat >conftest.$ac_ext <<_ACEOF
22457/* confdefs.h.  */
22458_ACEOF
22459cat confdefs.h >>conftest.$ac_ext
22460cat >>conftest.$ac_ext <<_ACEOF
22461/* end confdefs.h.  */
22462
22463/* Override any gcc2 internal prototype to avoid an error.  */
22464#ifdef __cplusplus
22465extern "C"
22466#endif
22467/* We use char because int might match the return type of a gcc2
22468   builtin and then its argument prototype would still apply.  */
22469char pthread_exit ();
22470int
22471main ()
22472{
22473pthread_exit ();
22474  ;
22475  return 0;
22476}
22477_ACEOF
22478rm -f conftest.$ac_objext conftest$ac_exeext
22479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22480  (eval $ac_link) 2>conftest.er1
22481  ac_status=$?
22482  grep -v '^ *+' conftest.er1 >conftest.err
22483  rm -f conftest.er1
22484  cat conftest.err >&5
22485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486  (exit $ac_status); } &&
22487	 { ac_try='test -z "$ac_c_werror_flag"
22488			 || test ! -s conftest.err'
22489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490  (eval $ac_try) 2>&5
22491  ac_status=$?
22492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493  (exit $ac_status); }; } &&
22494	 { ac_try='test -s conftest$ac_exeext'
22495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496  (eval $ac_try) 2>&5
22497  ac_status=$?
22498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499  (exit $ac_status); }; }; then
22500  ac_cv_lib_c_r_pthread_exit=yes
22501else
22502  echo "$as_me: failed program was:" >&5
22503sed 's/^/| /' conftest.$ac_ext >&5
22504
22505ac_cv_lib_c_r_pthread_exit=no
22506fi
22507rm -f conftest.err conftest.$ac_objext \
22508      conftest$ac_exeext conftest.$ac_ext
22509LIBS=$ac_check_lib_save_LIBS
22510fi
22511echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_exit" >&5
22512echo "${ECHO_T}$ac_cv_lib_c_r_pthread_exit" >&6
22513if test $ac_cv_lib_c_r_pthread_exit = yes; then
22514  PTHREAD_LIBS="-lpthread"
22515fi
22516
22517fi
22518if test "x$PTHREAD_LIBS" = xnotfound; then
22519echo "$as_me:$LINENO: checking for pthread_exit" >&5
22520echo $ECHO_N "checking for pthread_exit... $ECHO_C" >&6
22521if test "${ac_cv_func_pthread_exit+set}" = set; then
22522  echo $ECHO_N "(cached) $ECHO_C" >&6
22523else
22524  cat >conftest.$ac_ext <<_ACEOF
22525/* confdefs.h.  */
22526_ACEOF
22527cat confdefs.h >>conftest.$ac_ext
22528cat >>conftest.$ac_ext <<_ACEOF
22529/* end confdefs.h.  */
22530/* Define pthread_exit to an innocuous variant, in case <limits.h> declares pthread_exit.
22531   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22532#define pthread_exit innocuous_pthread_exit
22533
22534/* System header to define __stub macros and hopefully few prototypes,
22535    which can conflict with char pthread_exit (); below.
22536    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537    <limits.h> exists even on freestanding compilers.  */
22538
22539#ifdef __STDC__
22540# include <limits.h>
22541#else
22542# include <assert.h>
22543#endif
22544
22545#undef pthread_exit
22546
22547/* Override any gcc2 internal prototype to avoid an error.  */
22548#ifdef __cplusplus
22549extern "C"
22550{
22551#endif
22552/* We use char because int might match the return type of a gcc2
22553   builtin and then its argument prototype would still apply.  */
22554char pthread_exit ();
22555/* The GNU C library defines this for functions which it implements
22556    to always fail with ENOSYS.  Some functions are actually named
22557    something starting with __ and the normal name is an alias.  */
22558#if defined (__stub_pthread_exit) || defined (__stub___pthread_exit)
22559choke me
22560#else
22561char (*f) () = pthread_exit;
22562#endif
22563#ifdef __cplusplus
22564}
22565#endif
22566
22567int
22568main ()
22569{
22570return f != pthread_exit;
22571  ;
22572  return 0;
22573}
22574_ACEOF
22575rm -f conftest.$ac_objext conftest$ac_exeext
22576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22577  (eval $ac_link) 2>conftest.er1
22578  ac_status=$?
22579  grep -v '^ *+' conftest.er1 >conftest.err
22580  rm -f conftest.er1
22581  cat conftest.err >&5
22582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583  (exit $ac_status); } &&
22584	 { ac_try='test -z "$ac_c_werror_flag"
22585			 || test ! -s conftest.err'
22586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587  (eval $ac_try) 2>&5
22588  ac_status=$?
22589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590  (exit $ac_status); }; } &&
22591	 { ac_try='test -s conftest$ac_exeext'
22592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593  (eval $ac_try) 2>&5
22594  ac_status=$?
22595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596  (exit $ac_status); }; }; then
22597  ac_cv_func_pthread_exit=yes
22598else
22599  echo "$as_me: failed program was:" >&5
22600sed 's/^/| /' conftest.$ac_ext >&5
22601
22602ac_cv_func_pthread_exit=no
22603fi
22604rm -f conftest.err conftest.$ac_objext \
22605      conftest$ac_exeext conftest.$ac_ext
22606fi
22607echo "$as_me:$LINENO: result: $ac_cv_func_pthread_exit" >&5
22608echo "${ECHO_T}$ac_cv_func_pthread_exit" >&6
22609if test $ac_cv_func_pthread_exit = yes; then
22610  PTHREAD_LIBS=""
22611fi
22612
22613fi
22614if test "x$PTHREAD_LIBS" = xnotfound; then
22615{ { echo "$as_me:$LINENO: error: *** Unable to locate working posix thread library ***" >&5
22616echo "$as_me: error: *** Unable to locate working posix thread library ***" >&2;}
22617   { (exit 1); exit 1; }; }
22618fi
22619CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
22620LIBS="${LIBS} $PTHREAD_LIBS"
22621fi
22622
22623echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
22624echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6
22625if test "${ac_cv_lib_rt_sem_init+set}" = set; then
22626  echo $ECHO_N "(cached) $ECHO_C" >&6
22627else
22628  ac_check_lib_save_LIBS=$LIBS
22629LIBS="-lrt  $LIBS"
22630cat >conftest.$ac_ext <<_ACEOF
22631/* confdefs.h.  */
22632_ACEOF
22633cat confdefs.h >>conftest.$ac_ext
22634cat >>conftest.$ac_ext <<_ACEOF
22635/* end confdefs.h.  */
22636
22637/* Override any gcc2 internal prototype to avoid an error.  */
22638#ifdef __cplusplus
22639extern "C"
22640#endif
22641/* We use char because int might match the return type of a gcc2
22642   builtin and then its argument prototype would still apply.  */
22643char sem_init ();
22644int
22645main ()
22646{
22647sem_init ();
22648  ;
22649  return 0;
22650}
22651_ACEOF
22652rm -f conftest.$ac_objext conftest$ac_exeext
22653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22654  (eval $ac_link) 2>conftest.er1
22655  ac_status=$?
22656  grep -v '^ *+' conftest.er1 >conftest.err
22657  rm -f conftest.er1
22658  cat conftest.err >&5
22659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660  (exit $ac_status); } &&
22661	 { ac_try='test -z "$ac_c_werror_flag"
22662			 || test ! -s conftest.err'
22663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664  (eval $ac_try) 2>&5
22665  ac_status=$?
22666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667  (exit $ac_status); }; } &&
22668	 { ac_try='test -s conftest$ac_exeext'
22669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670  (eval $ac_try) 2>&5
22671  ac_status=$?
22672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673  (exit $ac_status); }; }; then
22674  ac_cv_lib_rt_sem_init=yes
22675else
22676  echo "$as_me: failed program was:" >&5
22677sed 's/^/| /' conftest.$ac_ext >&5
22678
22679ac_cv_lib_rt_sem_init=no
22680fi
22681rm -f conftest.err conftest.$ac_objext \
22682      conftest$ac_exeext conftest.$ac_ext
22683LIBS=$ac_check_lib_save_LIBS
22684fi
22685echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
22686echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6
22687if test $ac_cv_lib_rt_sem_init = yes; then
22688  LIBS="${LIBS} -lrt"
22689fi
22690
22691
22692# Check whether --enable-jpeg or --disable-jpeg was given.
22693if test "${enable_jpeg+set}" = set; then
22694  enableval="$enable_jpeg"
22695
22696fi;
22697echo "$as_me:$LINENO: result: $enable_jpeg" >&5
22698echo "${ECHO_T}$enable_jpeg" >&6
22699if test "x$enable_jpeg" != "xno"; then
22700if test "${ac_cv_header_jpeglib_h+set}" = set; then
22701  echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22702echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22703if test "${ac_cv_header_jpeglib_h+set}" = set; then
22704  echo $ECHO_N "(cached) $ECHO_C" >&6
22705fi
22706echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22707echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22708else
22709  # Is the header compilable?
22710echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
22711echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
22712cat >conftest.$ac_ext <<_ACEOF
22713/* confdefs.h.  */
22714_ACEOF
22715cat confdefs.h >>conftest.$ac_ext
22716cat >>conftest.$ac_ext <<_ACEOF
22717/* end confdefs.h.  */
22718$ac_includes_default
22719#include <jpeglib.h>
22720_ACEOF
22721rm -f conftest.$ac_objext
22722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22723  (eval $ac_compile) 2>conftest.er1
22724  ac_status=$?
22725  grep -v '^ *+' conftest.er1 >conftest.err
22726  rm -f conftest.er1
22727  cat conftest.err >&5
22728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729  (exit $ac_status); } &&
22730	 { ac_try='test -z "$ac_c_werror_flag"
22731			 || test ! -s conftest.err'
22732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733  (eval $ac_try) 2>&5
22734  ac_status=$?
22735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736  (exit $ac_status); }; } &&
22737	 { ac_try='test -s conftest.$ac_objext'
22738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739  (eval $ac_try) 2>&5
22740  ac_status=$?
22741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742  (exit $ac_status); }; }; then
22743  ac_header_compiler=yes
22744else
22745  echo "$as_me: failed program was:" >&5
22746sed 's/^/| /' conftest.$ac_ext >&5
22747
22748ac_header_compiler=no
22749fi
22750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22752echo "${ECHO_T}$ac_header_compiler" >&6
22753
22754# Is the header present?
22755echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
22756echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
22757cat >conftest.$ac_ext <<_ACEOF
22758/* confdefs.h.  */
22759_ACEOF
22760cat confdefs.h >>conftest.$ac_ext
22761cat >>conftest.$ac_ext <<_ACEOF
22762/* end confdefs.h.  */
22763#include <jpeglib.h>
22764_ACEOF
22765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22767  ac_status=$?
22768  grep -v '^ *+' conftest.er1 >conftest.err
22769  rm -f conftest.er1
22770  cat conftest.err >&5
22771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772  (exit $ac_status); } >/dev/null; then
22773  if test -s conftest.err; then
22774    ac_cpp_err=$ac_c_preproc_warn_flag
22775    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22776  else
22777    ac_cpp_err=
22778  fi
22779else
22780  ac_cpp_err=yes
22781fi
22782if test -z "$ac_cpp_err"; then
22783  ac_header_preproc=yes
22784else
22785  echo "$as_me: failed program was:" >&5
22786sed 's/^/| /' conftest.$ac_ext >&5
22787
22788  ac_header_preproc=no
22789fi
22790rm -f conftest.err conftest.$ac_ext
22791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22792echo "${ECHO_T}$ac_header_preproc" >&6
22793
22794# So?  What about this header?
22795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22796  yes:no: )
22797    { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22798echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22799    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
22800echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
22801    ac_header_preproc=yes
22802    ;;
22803  no:yes:* )
22804    { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
22805echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
22806    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
22807echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
22808    { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
22809echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
22810    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
22811echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22812    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
22813echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
22814    { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
22815echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
22816    (
22817      cat <<\_ASBOX
22818## ------------------------------------------ ##
22819## Report this to the AC_PACKAGE_NAME lists.  ##
22820## ------------------------------------------ ##
22821_ASBOX
22822    ) |
22823      sed "s/^/$as_me: WARNING:     /" >&2
22824    ;;
22825esac
22826echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22827echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22828if test "${ac_cv_header_jpeglib_h+set}" = set; then
22829  echo $ECHO_N "(cached) $ECHO_C" >&6
22830else
22831  ac_cv_header_jpeglib_h=$ac_header_preproc
22832fi
22833echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22834echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22835
22836fi
22837if test $ac_cv_header_jpeglib_h = yes; then
22838  CXXFLAGS="${CXXFLAGS} -DHAVE_JPEG_H=1"; LIBS="${LIBS} ${LIBJPEG:=-ljpeg}"
22839fi
22840
22841
22842fi
22843
22844
22845# Check whether --enable-png or --disable-png was given.
22846if test "${enable_png+set}" = set; then
22847  enableval="$enable_png"
22848
22849fi;
22850echo "$as_me:$LINENO: result: $enable_png" >&5
22851echo "${ECHO_T}$enable_png" >&6
22852if test "x$enable_png" != "xno"; then
22853
22854for ac_header in png.h
22855do
22856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22857if eval "test \"\${$as_ac_Header+set}\" = set"; then
22858  echo "$as_me:$LINENO: checking for $ac_header" >&5
22859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22860if eval "test \"\${$as_ac_Header+set}\" = set"; then
22861  echo $ECHO_N "(cached) $ECHO_C" >&6
22862fi
22863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22865else
22866  # Is the header compilable?
22867echo "$as_me:$LINENO: checking $ac_header usability" >&5
22868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22869cat >conftest.$ac_ext <<_ACEOF
22870/* confdefs.h.  */
22871_ACEOF
22872cat confdefs.h >>conftest.$ac_ext
22873cat >>conftest.$ac_ext <<_ACEOF
22874/* end confdefs.h.  */
22875$ac_includes_default
22876#include <$ac_header>
22877_ACEOF
22878rm -f conftest.$ac_objext
22879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22880  (eval $ac_compile) 2>conftest.er1
22881  ac_status=$?
22882  grep -v '^ *+' conftest.er1 >conftest.err
22883  rm -f conftest.er1
22884  cat conftest.err >&5
22885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886  (exit $ac_status); } &&
22887	 { ac_try='test -z "$ac_c_werror_flag"
22888			 || test ! -s conftest.err'
22889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890  (eval $ac_try) 2>&5
22891  ac_status=$?
22892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893  (exit $ac_status); }; } &&
22894	 { ac_try='test -s conftest.$ac_objext'
22895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896  (eval $ac_try) 2>&5
22897  ac_status=$?
22898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899  (exit $ac_status); }; }; then
22900  ac_header_compiler=yes
22901else
22902  echo "$as_me: failed program was:" >&5
22903sed 's/^/| /' conftest.$ac_ext >&5
22904
22905ac_header_compiler=no
22906fi
22907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22909echo "${ECHO_T}$ac_header_compiler" >&6
22910
22911# Is the header present?
22912echo "$as_me:$LINENO: checking $ac_header presence" >&5
22913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22914cat >conftest.$ac_ext <<_ACEOF
22915/* confdefs.h.  */
22916_ACEOF
22917cat confdefs.h >>conftest.$ac_ext
22918cat >>conftest.$ac_ext <<_ACEOF
22919/* end confdefs.h.  */
22920#include <$ac_header>
22921_ACEOF
22922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22924  ac_status=$?
22925  grep -v '^ *+' conftest.er1 >conftest.err
22926  rm -f conftest.er1
22927  cat conftest.err >&5
22928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929  (exit $ac_status); } >/dev/null; then
22930  if test -s conftest.err; then
22931    ac_cpp_err=$ac_c_preproc_warn_flag
22932    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22933  else
22934    ac_cpp_err=
22935  fi
22936else
22937  ac_cpp_err=yes
22938fi
22939if test -z "$ac_cpp_err"; then
22940  ac_header_preproc=yes
22941else
22942  echo "$as_me: failed program was:" >&5
22943sed 's/^/| /' conftest.$ac_ext >&5
22944
22945  ac_header_preproc=no
22946fi
22947rm -f conftest.err conftest.$ac_ext
22948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22949echo "${ECHO_T}$ac_header_preproc" >&6
22950
22951# So?  What about this header?
22952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22953  yes:no: )
22954    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22956    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22958    ac_header_preproc=yes
22959    ;;
22960  no:yes:* )
22961    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22963    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22964echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22965    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22967    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22968echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22971    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22973    (
22974      cat <<\_ASBOX
22975## ------------------------------------------ ##
22976## Report this to the AC_PACKAGE_NAME lists.  ##
22977## ------------------------------------------ ##
22978_ASBOX
22979    ) |
22980      sed "s/^/$as_me: WARNING:     /" >&2
22981    ;;
22982esac
22983echo "$as_me:$LINENO: checking for $ac_header" >&5
22984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22985if eval "test \"\${$as_ac_Header+set}\" = set"; then
22986  echo $ECHO_N "(cached) $ECHO_C" >&6
22987else
22988  eval "$as_ac_Header=\$ac_header_preproc"
22989fi
22990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22992
22993fi
22994if test `eval echo '${'$as_ac_Header'}'` = yes; then
22995  cat >>confdefs.h <<_ACEOF
22996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22997_ACEOF
22998 CXXFLAGS="${CXXFLAGS} -DHAVE_PNG_H=1"; LIBS="${LIBS} ${LIBPNG:=-lpng}"
22999fi
23000
23001done
23002
23003fi
23004
23005
23006# Check whether --enable-tiff or --disable-tiff was given.
23007if test "${enable_tiff+set}" = set; then
23008  enableval="$enable_tiff"
23009
23010fi;
23011echo "$as_me:$LINENO: result: $enable_tiff" >&5
23012echo "${ECHO_T}$enable_tiff" >&6
23013if test "x$enable_tiff" != "xno"; then
23014
23015for ac_header in tiff.h
23016do
23017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23018if eval "test \"\${$as_ac_Header+set}\" = set"; then
23019  echo "$as_me:$LINENO: checking for $ac_header" >&5
23020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23021if eval "test \"\${$as_ac_Header+set}\" = set"; then
23022  echo $ECHO_N "(cached) $ECHO_C" >&6
23023fi
23024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23026else
23027  # Is the header compilable?
23028echo "$as_me:$LINENO: checking $ac_header usability" >&5
23029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23030cat >conftest.$ac_ext <<_ACEOF
23031/* confdefs.h.  */
23032_ACEOF
23033cat confdefs.h >>conftest.$ac_ext
23034cat >>conftest.$ac_ext <<_ACEOF
23035/* end confdefs.h.  */
23036$ac_includes_default
23037#include <$ac_header>
23038_ACEOF
23039rm -f conftest.$ac_objext
23040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23041  (eval $ac_compile) 2>conftest.er1
23042  ac_status=$?
23043  grep -v '^ *+' conftest.er1 >conftest.err
23044  rm -f conftest.er1
23045  cat conftest.err >&5
23046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047  (exit $ac_status); } &&
23048	 { ac_try='test -z "$ac_c_werror_flag"
23049			 || test ! -s conftest.err'
23050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051  (eval $ac_try) 2>&5
23052  ac_status=$?
23053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054  (exit $ac_status); }; } &&
23055	 { ac_try='test -s conftest.$ac_objext'
23056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057  (eval $ac_try) 2>&5
23058  ac_status=$?
23059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060  (exit $ac_status); }; }; then
23061  ac_header_compiler=yes
23062else
23063  echo "$as_me: failed program was:" >&5
23064sed 's/^/| /' conftest.$ac_ext >&5
23065
23066ac_header_compiler=no
23067fi
23068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23070echo "${ECHO_T}$ac_header_compiler" >&6
23071
23072# Is the header present?
23073echo "$as_me:$LINENO: checking $ac_header presence" >&5
23074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23075cat >conftest.$ac_ext <<_ACEOF
23076/* confdefs.h.  */
23077_ACEOF
23078cat confdefs.h >>conftest.$ac_ext
23079cat >>conftest.$ac_ext <<_ACEOF
23080/* end confdefs.h.  */
23081#include <$ac_header>
23082_ACEOF
23083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23085  ac_status=$?
23086  grep -v '^ *+' conftest.er1 >conftest.err
23087  rm -f conftest.er1
23088  cat conftest.err >&5
23089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090  (exit $ac_status); } >/dev/null; then
23091  if test -s conftest.err; then
23092    ac_cpp_err=$ac_c_preproc_warn_flag
23093    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23094  else
23095    ac_cpp_err=
23096  fi
23097else
23098  ac_cpp_err=yes
23099fi
23100if test -z "$ac_cpp_err"; then
23101  ac_header_preproc=yes
23102else
23103  echo "$as_me: failed program was:" >&5
23104sed 's/^/| /' conftest.$ac_ext >&5
23105
23106  ac_header_preproc=no
23107fi
23108rm -f conftest.err conftest.$ac_ext
23109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23110echo "${ECHO_T}$ac_header_preproc" >&6
23111
23112# So?  What about this header?
23113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23114  yes:no: )
23115    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23117    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23119    ac_header_preproc=yes
23120    ;;
23121  no:yes:* )
23122    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23124    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23125echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23126    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23128    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23129echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23130    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23132    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23134    (
23135      cat <<\_ASBOX
23136## ------------------------------------------ ##
23137## Report this to the AC_PACKAGE_NAME lists.  ##
23138## ------------------------------------------ ##
23139_ASBOX
23140    ) |
23141      sed "s/^/$as_me: WARNING:     /" >&2
23142    ;;
23143esac
23144echo "$as_me:$LINENO: checking for $ac_header" >&5
23145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23146if eval "test \"\${$as_ac_Header+set}\" = set"; then
23147  echo $ECHO_N "(cached) $ECHO_C" >&6
23148else
23149  eval "$as_ac_Header=\$ac_header_preproc"
23150fi
23151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23153
23154fi
23155if test `eval echo '${'$as_ac_Header'}'` = yes; then
23156  cat >>confdefs.h <<_ACEOF
23157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23158_ACEOF
23159 CXXFLAGS="${CXXFLAGS} -DHAVE_TIFF_H=1"; LIBS="${LIBS} ${LIBTIFF:=-ltiff}"
23160fi
23161
23162done
23163
23164fi
23165
23166
23167# Check whether --enable-zlib or --disable-zlib was given.
23168if test "${enable_zlib+set}" = set; then
23169  enableval="$enable_zlib"
23170
23171fi;
23172echo "$as_me:$LINENO: result: $enable_zlib" >&5
23173echo "${ECHO_T}$enable_zlib" >&6
23174if test "x$enable_zlib" != "xno"; then
23175
23176for ac_header in zlib.h
23177do
23178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23179if eval "test \"\${$as_ac_Header+set}\" = set"; then
23180  echo "$as_me:$LINENO: checking for $ac_header" >&5
23181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23182if eval "test \"\${$as_ac_Header+set}\" = set"; then
23183  echo $ECHO_N "(cached) $ECHO_C" >&6
23184fi
23185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23187else
23188  # Is the header compilable?
23189echo "$as_me:$LINENO: checking $ac_header usability" >&5
23190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23191cat >conftest.$ac_ext <<_ACEOF
23192/* confdefs.h.  */
23193_ACEOF
23194cat confdefs.h >>conftest.$ac_ext
23195cat >>conftest.$ac_ext <<_ACEOF
23196/* end confdefs.h.  */
23197$ac_includes_default
23198#include <$ac_header>
23199_ACEOF
23200rm -f conftest.$ac_objext
23201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23202  (eval $ac_compile) 2>conftest.er1
23203  ac_status=$?
23204  grep -v '^ *+' conftest.er1 >conftest.err
23205  rm -f conftest.er1
23206  cat conftest.err >&5
23207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208  (exit $ac_status); } &&
23209	 { ac_try='test -z "$ac_c_werror_flag"
23210			 || test ! -s conftest.err'
23211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212  (eval $ac_try) 2>&5
23213  ac_status=$?
23214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215  (exit $ac_status); }; } &&
23216	 { ac_try='test -s conftest.$ac_objext'
23217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218  (eval $ac_try) 2>&5
23219  ac_status=$?
23220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221  (exit $ac_status); }; }; then
23222  ac_header_compiler=yes
23223else
23224  echo "$as_me: failed program was:" >&5
23225sed 's/^/| /' conftest.$ac_ext >&5
23226
23227ac_header_compiler=no
23228fi
23229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23231echo "${ECHO_T}$ac_header_compiler" >&6
23232
23233# Is the header present?
23234echo "$as_me:$LINENO: checking $ac_header presence" >&5
23235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23236cat >conftest.$ac_ext <<_ACEOF
23237/* confdefs.h.  */
23238_ACEOF
23239cat confdefs.h >>conftest.$ac_ext
23240cat >>conftest.$ac_ext <<_ACEOF
23241/* end confdefs.h.  */
23242#include <$ac_header>
23243_ACEOF
23244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23245  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23246  ac_status=$?
23247  grep -v '^ *+' conftest.er1 >conftest.err
23248  rm -f conftest.er1
23249  cat conftest.err >&5
23250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251  (exit $ac_status); } >/dev/null; then
23252  if test -s conftest.err; then
23253    ac_cpp_err=$ac_c_preproc_warn_flag
23254    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23255  else
23256    ac_cpp_err=
23257  fi
23258else
23259  ac_cpp_err=yes
23260fi
23261if test -z "$ac_cpp_err"; then
23262  ac_header_preproc=yes
23263else
23264  echo "$as_me: failed program was:" >&5
23265sed 's/^/| /' conftest.$ac_ext >&5
23266
23267  ac_header_preproc=no
23268fi
23269rm -f conftest.err conftest.$ac_ext
23270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23271echo "${ECHO_T}$ac_header_preproc" >&6
23272
23273# So?  What about this header?
23274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23275  yes:no: )
23276    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23278    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23280    ac_header_preproc=yes
23281    ;;
23282  no:yes:* )
23283    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23285    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23286echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23287    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23289    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23290echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23291    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23293    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23295    (
23296      cat <<\_ASBOX
23297## ------------------------------------------ ##
23298## Report this to the AC_PACKAGE_NAME lists.  ##
23299## ------------------------------------------ ##
23300_ASBOX
23301    ) |
23302      sed "s/^/$as_me: WARNING:     /" >&2
23303    ;;
23304esac
23305echo "$as_me:$LINENO: checking for $ac_header" >&5
23306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23307if eval "test \"\${$as_ac_Header+set}\" = set"; then
23308  echo $ECHO_N "(cached) $ECHO_C" >&6
23309else
23310  eval "$as_ac_Header=\$ac_header_preproc"
23311fi
23312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23314
23315fi
23316if test `eval echo '${'$as_ac_Header'}'` = yes; then
23317  cat >>confdefs.h <<_ACEOF
23318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23319_ACEOF
23320 CXXFLAGS="${CXXFLAGS} -DHAVE_ZLIB_H=1"; LIBS="${LIBS} ${LIBZ:=-lz}"
23321fi
23322
23323done
23324
23325fi
23326
23327
23328# Check whether --enable-bz2lib or --disable-bz2lib was given.
23329if test "${enable_bz2lib+set}" = set; then
23330  enableval="$enable_bz2lib"
23331
23332fi;
23333echo "$as_me:$LINENO: result: $enable_bz2lib" >&5
23334echo "${ECHO_T}$enable_bz2lib" >&6
23335if test "x$enable_bz2lib" != "xno"; then
23336
23337for ac_header in bzlib.h
23338do
23339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23340if eval "test \"\${$as_ac_Header+set}\" = set"; then
23341  echo "$as_me:$LINENO: checking for $ac_header" >&5
23342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23343if eval "test \"\${$as_ac_Header+set}\" = set"; then
23344  echo $ECHO_N "(cached) $ECHO_C" >&6
23345fi
23346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23348else
23349  # Is the header compilable?
23350echo "$as_me:$LINENO: checking $ac_header usability" >&5
23351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23352cat >conftest.$ac_ext <<_ACEOF
23353/* confdefs.h.  */
23354_ACEOF
23355cat confdefs.h >>conftest.$ac_ext
23356cat >>conftest.$ac_ext <<_ACEOF
23357/* end confdefs.h.  */
23358$ac_includes_default
23359#include <$ac_header>
23360_ACEOF
23361rm -f conftest.$ac_objext
23362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23363  (eval $ac_compile) 2>conftest.er1
23364  ac_status=$?
23365  grep -v '^ *+' conftest.er1 >conftest.err
23366  rm -f conftest.er1
23367  cat conftest.err >&5
23368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369  (exit $ac_status); } &&
23370	 { ac_try='test -z "$ac_c_werror_flag"
23371			 || test ! -s conftest.err'
23372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23373  (eval $ac_try) 2>&5
23374  ac_status=$?
23375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376  (exit $ac_status); }; } &&
23377	 { ac_try='test -s conftest.$ac_objext'
23378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379  (eval $ac_try) 2>&5
23380  ac_status=$?
23381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382  (exit $ac_status); }; }; then
23383  ac_header_compiler=yes
23384else
23385  echo "$as_me: failed program was:" >&5
23386sed 's/^/| /' conftest.$ac_ext >&5
23387
23388ac_header_compiler=no
23389fi
23390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23392echo "${ECHO_T}$ac_header_compiler" >&6
23393
23394# Is the header present?
23395echo "$as_me:$LINENO: checking $ac_header presence" >&5
23396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23397cat >conftest.$ac_ext <<_ACEOF
23398/* confdefs.h.  */
23399_ACEOF
23400cat confdefs.h >>conftest.$ac_ext
23401cat >>conftest.$ac_ext <<_ACEOF
23402/* end confdefs.h.  */
23403#include <$ac_header>
23404_ACEOF
23405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23406  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23407  ac_status=$?
23408  grep -v '^ *+' conftest.er1 >conftest.err
23409  rm -f conftest.er1
23410  cat conftest.err >&5
23411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412  (exit $ac_status); } >/dev/null; then
23413  if test -s conftest.err; then
23414    ac_cpp_err=$ac_c_preproc_warn_flag
23415    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23416  else
23417    ac_cpp_err=
23418  fi
23419else
23420  ac_cpp_err=yes
23421fi
23422if test -z "$ac_cpp_err"; then
23423  ac_header_preproc=yes
23424else
23425  echo "$as_me: failed program was:" >&5
23426sed 's/^/| /' conftest.$ac_ext >&5
23427
23428  ac_header_preproc=no
23429fi
23430rm -f conftest.err conftest.$ac_ext
23431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23432echo "${ECHO_T}$ac_header_preproc" >&6
23433
23434# So?  What about this header?
23435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23436  yes:no: )
23437    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23439    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23441    ac_header_preproc=yes
23442    ;;
23443  no:yes:* )
23444    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23446    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23447echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23448    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23450    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23451echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23452    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23454    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23456    (
23457      cat <<\_ASBOX
23458## ------------------------------------------ ##
23459## Report this to the AC_PACKAGE_NAME lists.  ##
23460## ------------------------------------------ ##
23461_ASBOX
23462    ) |
23463      sed "s/^/$as_me: WARNING:     /" >&2
23464    ;;
23465esac
23466echo "$as_me:$LINENO: checking for $ac_header" >&5
23467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23468if eval "test \"\${$as_ac_Header+set}\" = set"; then
23469  echo $ECHO_N "(cached) $ECHO_C" >&6
23470else
23471  eval "$as_ac_Header=\$ac_header_preproc"
23472fi
23473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23475
23476fi
23477if test `eval echo '${'$as_ac_Header'}'` = yes; then
23478  cat >>confdefs.h <<_ACEOF
23479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23480_ACEOF
23481 CXXFLAGS="${CXXFLAGS} -DHAVE_BZ2LIB_H=1"; LIBS="${LIBS} ${LIBBZ2:=-lbz2}"
23482fi
23483
23484done
23485
23486fi
23487
23488
23489
23490# Check whether --with-xcursor or --without-xcursor was given.
23491if test "${with_xcursor+set}" = set; then
23492  withval="$with_xcursor"
23493
23494fi;
23495echo "$as_me:$LINENO: result: $with_xcursor" >&5
23496echo "${ECHO_T}$with_xcursor" >&6
23497if test "x$with_xcursor" != "xno"; then
23498if test "${ac_cv_header_X11_Xcursor_Xcursor_h+set}" = set; then
23499  echo "$as_me:$LINENO: checking for X11/Xcursor/Xcursor.h" >&5
23500echo $ECHO_N "checking for X11/Xcursor/Xcursor.h... $ECHO_C" >&6
23501if test "${ac_cv_header_X11_Xcursor_Xcursor_h+set}" = set; then
23502  echo $ECHO_N "(cached) $ECHO_C" >&6
23503fi
23504echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xcursor_Xcursor_h" >&5
23505echo "${ECHO_T}$ac_cv_header_X11_Xcursor_Xcursor_h" >&6
23506else
23507  # Is the header compilable?
23508echo "$as_me:$LINENO: checking X11/Xcursor/Xcursor.h usability" >&5
23509echo $ECHO_N "checking X11/Xcursor/Xcursor.h usability... $ECHO_C" >&6
23510cat >conftest.$ac_ext <<_ACEOF
23511/* confdefs.h.  */
23512_ACEOF
23513cat confdefs.h >>conftest.$ac_ext
23514cat >>conftest.$ac_ext <<_ACEOF
23515/* end confdefs.h.  */
23516$ac_includes_default
23517#include <X11/Xcursor/Xcursor.h>
23518_ACEOF
23519rm -f conftest.$ac_objext
23520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23521  (eval $ac_compile) 2>conftest.er1
23522  ac_status=$?
23523  grep -v '^ *+' conftest.er1 >conftest.err
23524  rm -f conftest.er1
23525  cat conftest.err >&5
23526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527  (exit $ac_status); } &&
23528	 { ac_try='test -z "$ac_c_werror_flag"
23529			 || test ! -s conftest.err'
23530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531  (eval $ac_try) 2>&5
23532  ac_status=$?
23533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534  (exit $ac_status); }; } &&
23535	 { ac_try='test -s conftest.$ac_objext'
23536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537  (eval $ac_try) 2>&5
23538  ac_status=$?
23539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540  (exit $ac_status); }; }; then
23541  ac_header_compiler=yes
23542else
23543  echo "$as_me: failed program was:" >&5
23544sed 's/^/| /' conftest.$ac_ext >&5
23545
23546ac_header_compiler=no
23547fi
23548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23550echo "${ECHO_T}$ac_header_compiler" >&6
23551
23552# Is the header present?
23553echo "$as_me:$LINENO: checking X11/Xcursor/Xcursor.h presence" >&5
23554echo $ECHO_N "checking X11/Xcursor/Xcursor.h presence... $ECHO_C" >&6
23555cat >conftest.$ac_ext <<_ACEOF
23556/* confdefs.h.  */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h.  */
23561#include <X11/Xcursor/Xcursor.h>
23562_ACEOF
23563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23564  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23565  ac_status=$?
23566  grep -v '^ *+' conftest.er1 >conftest.err
23567  rm -f conftest.er1
23568  cat conftest.err >&5
23569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570  (exit $ac_status); } >/dev/null; then
23571  if test -s conftest.err; then
23572    ac_cpp_err=$ac_c_preproc_warn_flag
23573    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23574  else
23575    ac_cpp_err=
23576  fi
23577else
23578  ac_cpp_err=yes
23579fi
23580if test -z "$ac_cpp_err"; then
23581  ac_header_preproc=yes
23582else
23583  echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
23586  ac_header_preproc=no
23587fi
23588rm -f conftest.err conftest.$ac_ext
23589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23590echo "${ECHO_T}$ac_header_preproc" >&6
23591
23592# So?  What about this header?
23593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23594  yes:no: )
23595    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h: accepted by the compiler, rejected by the preprocessor!" >&5
23596echo "$as_me: WARNING: X11/Xcursor/Xcursor.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23597    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h: proceeding with the compiler's result" >&5
23598echo "$as_me: WARNING: X11/Xcursor/Xcursor.h: proceeding with the compiler's result" >&2;}
23599    ac_header_preproc=yes
23600    ;;
23601  no:yes:* )
23602    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h: present but cannot be compiled" >&5
23603echo "$as_me: WARNING: X11/Xcursor/Xcursor.h: present but cannot be compiled" >&2;}
23604    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h:     check for missing prerequisite headers?" >&5
23605echo "$as_me: WARNING: X11/Xcursor/Xcursor.h:     check for missing prerequisite headers?" >&2;}
23606    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h: see the Autoconf documentation" >&5
23607echo "$as_me: WARNING: X11/Xcursor/Xcursor.h: see the Autoconf documentation" >&2;}
23608    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h:     section \"Present But Cannot Be Compiled\"" >&5
23609echo "$as_me: WARNING: X11/Xcursor/Xcursor.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23610    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h: proceeding with the preprocessor's result" >&5
23611echo "$as_me: WARNING: X11/Xcursor/Xcursor.h: proceeding with the preprocessor's result" >&2;}
23612    { echo "$as_me:$LINENO: WARNING: X11/Xcursor/Xcursor.h: in the future, the compiler will take precedence" >&5
23613echo "$as_me: WARNING: X11/Xcursor/Xcursor.h: in the future, the compiler will take precedence" >&2;}
23614    (
23615      cat <<\_ASBOX
23616## ------------------------------------------ ##
23617## Report this to the AC_PACKAGE_NAME lists.  ##
23618## ------------------------------------------ ##
23619_ASBOX
23620    ) |
23621      sed "s/^/$as_me: WARNING:     /" >&2
23622    ;;
23623esac
23624echo "$as_me:$LINENO: checking for X11/Xcursor/Xcursor.h" >&5
23625echo $ECHO_N "checking for X11/Xcursor/Xcursor.h... $ECHO_C" >&6
23626if test "${ac_cv_header_X11_Xcursor_Xcursor_h+set}" = set; then
23627  echo $ECHO_N "(cached) $ECHO_C" >&6
23628else
23629  ac_cv_header_X11_Xcursor_Xcursor_h=$ac_header_preproc
23630fi
23631echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xcursor_Xcursor_h" >&5
23632echo "${ECHO_T}$ac_cv_header_X11_Xcursor_Xcursor_h" >&6
23633
23634fi
23635if test $ac_cv_header_X11_Xcursor_Xcursor_h = yes; then
23636  CXXFLAGS="${CXXFLAGS} -DHAVE_XCURSOR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXcursor"
23637fi
23638
23639
23640fi
23641
23642
23643
23644# Check whether --with-xrandr or --without-xrandr was given.
23645if test "${with_xrandr+set}" = set; then
23646  withval="$with_xrandr"
23647
23648fi;
23649echo "$as_me:$LINENO: result: $with_xrandr" >&5
23650echo "${ECHO_T}$with_xrandr" >&6
23651if test "x$with_xrandr" != "xno"; then
23652if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
23653  echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
23654echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
23655if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
23656  echo $ECHO_N "(cached) $ECHO_C" >&6
23657fi
23658echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
23659echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
23660else
23661  # Is the header compilable?
23662echo "$as_me:$LINENO: checking X11/extensions/Xrandr.h usability" >&5
23663echo $ECHO_N "checking X11/extensions/Xrandr.h usability... $ECHO_C" >&6
23664cat >conftest.$ac_ext <<_ACEOF
23665/* confdefs.h.  */
23666_ACEOF
23667cat confdefs.h >>conftest.$ac_ext
23668cat >>conftest.$ac_ext <<_ACEOF
23669/* end confdefs.h.  */
23670$ac_includes_default
23671#include <X11/extensions/Xrandr.h>
23672_ACEOF
23673rm -f conftest.$ac_objext
23674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23675  (eval $ac_compile) 2>conftest.er1
23676  ac_status=$?
23677  grep -v '^ *+' conftest.er1 >conftest.err
23678  rm -f conftest.er1
23679  cat conftest.err >&5
23680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681  (exit $ac_status); } &&
23682	 { ac_try='test -z "$ac_c_werror_flag"
23683			 || test ! -s conftest.err'
23684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685  (eval $ac_try) 2>&5
23686  ac_status=$?
23687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688  (exit $ac_status); }; } &&
23689	 { ac_try='test -s conftest.$ac_objext'
23690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23691  (eval $ac_try) 2>&5
23692  ac_status=$?
23693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694  (exit $ac_status); }; }; then
23695  ac_header_compiler=yes
23696else
23697  echo "$as_me: failed program was:" >&5
23698sed 's/^/| /' conftest.$ac_ext >&5
23699
23700ac_header_compiler=no
23701fi
23702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23703echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23704echo "${ECHO_T}$ac_header_compiler" >&6
23705
23706# Is the header present?
23707echo "$as_me:$LINENO: checking X11/extensions/Xrandr.h presence" >&5
23708echo $ECHO_N "checking X11/extensions/Xrandr.h presence... $ECHO_C" >&6
23709cat >conftest.$ac_ext <<_ACEOF
23710/* confdefs.h.  */
23711_ACEOF
23712cat confdefs.h >>conftest.$ac_ext
23713cat >>conftest.$ac_ext <<_ACEOF
23714/* end confdefs.h.  */
23715#include <X11/extensions/Xrandr.h>
23716_ACEOF
23717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23719  ac_status=$?
23720  grep -v '^ *+' conftest.er1 >conftest.err
23721  rm -f conftest.er1
23722  cat conftest.err >&5
23723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724  (exit $ac_status); } >/dev/null; then
23725  if test -s conftest.err; then
23726    ac_cpp_err=$ac_c_preproc_warn_flag
23727    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23728  else
23729    ac_cpp_err=
23730  fi
23731else
23732  ac_cpp_err=yes
23733fi
23734if test -z "$ac_cpp_err"; then
23735  ac_header_preproc=yes
23736else
23737  echo "$as_me: failed program was:" >&5
23738sed 's/^/| /' conftest.$ac_ext >&5
23739
23740  ac_header_preproc=no
23741fi
23742rm -f conftest.err conftest.$ac_ext
23743echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23744echo "${ECHO_T}$ac_header_preproc" >&6
23745
23746# So?  What about this header?
23747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23748  yes:no: )
23749    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: accepted by the compiler, rejected by the preprocessor!" >&5
23750echo "$as_me: WARNING: X11/extensions/Xrandr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23751    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: proceeding with the compiler's result" >&5
23752echo "$as_me: WARNING: X11/extensions/Xrandr.h: proceeding with the compiler's result" >&2;}
23753    ac_header_preproc=yes
23754    ;;
23755  no:yes:* )
23756    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled" >&5
23757echo "$as_me: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled" >&2;}
23758    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h:     check for missing prerequisite headers?" >&5
23759echo "$as_me: WARNING: X11/extensions/Xrandr.h:     check for missing prerequisite headers?" >&2;}
23760    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation" >&5
23761echo "$as_me: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation" >&2;}
23762    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h:     section \"Present But Cannot Be Compiled\"" >&5
23763echo "$as_me: WARNING: X11/extensions/Xrandr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23764    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result" >&5
23765echo "$as_me: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result" >&2;}
23766    { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence" >&5
23767echo "$as_me: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence" >&2;}
23768    (
23769      cat <<\_ASBOX
23770## ------------------------------------------ ##
23771## Report this to the AC_PACKAGE_NAME lists.  ##
23772## ------------------------------------------ ##
23773_ASBOX
23774    ) |
23775      sed "s/^/$as_me: WARNING:     /" >&2
23776    ;;
23777esac
23778echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
23779echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
23780if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
23781  echo $ECHO_N "(cached) $ECHO_C" >&6
23782else
23783  ac_cv_header_X11_extensions_Xrandr_h=$ac_header_preproc
23784fi
23785echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
23786echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
23787
23788fi
23789if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
23790  CXXFLAGS="${CXXFLAGS} -DHAVE_XRANDR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXrandr"
23791fi
23792
23793
23794fi
23795
23796
23797if test "x$enable_tiff" != "xno"; then
23798LIBS="${LIBS} ${MATHLIB:=-lm}"
23799fi
23800
23801
23802
23803
23804
23805for ac_func in vsscanf vsnprintf strtoll strtoull
23806do
23807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23808echo "$as_me:$LINENO: checking for $ac_func" >&5
23809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23810if eval "test \"\${$as_ac_var+set}\" = set"; then
23811  echo $ECHO_N "(cached) $ECHO_C" >&6
23812else
23813  cat >conftest.$ac_ext <<_ACEOF
23814/* confdefs.h.  */
23815_ACEOF
23816cat confdefs.h >>conftest.$ac_ext
23817cat >>conftest.$ac_ext <<_ACEOF
23818/* end confdefs.h.  */
23819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23820   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23821#define $ac_func innocuous_$ac_func
23822
23823/* System header to define __stub macros and hopefully few prototypes,
23824    which can conflict with char $ac_func (); below.
23825    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23826    <limits.h> exists even on freestanding compilers.  */
23827
23828#ifdef __STDC__
23829# include <limits.h>
23830#else
23831# include <assert.h>
23832#endif
23833
23834#undef $ac_func
23835
23836/* Override any gcc2 internal prototype to avoid an error.  */
23837#ifdef __cplusplus
23838extern "C"
23839{
23840#endif
23841/* We use char because int might match the return type of a gcc2
23842   builtin and then its argument prototype would still apply.  */
23843char $ac_func ();
23844/* The GNU C library defines this for functions which it implements
23845    to always fail with ENOSYS.  Some functions are actually named
23846    something starting with __ and the normal name is an alias.  */
23847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23848choke me
23849#else
23850char (*f) () = $ac_func;
23851#endif
23852#ifdef __cplusplus
23853}
23854#endif
23855
23856int
23857main ()
23858{
23859return f != $ac_func;
23860  ;
23861  return 0;
23862}
23863_ACEOF
23864rm -f conftest.$ac_objext conftest$ac_exeext
23865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23866  (eval $ac_link) 2>conftest.er1
23867  ac_status=$?
23868  grep -v '^ *+' conftest.er1 >conftest.err
23869  rm -f conftest.er1
23870  cat conftest.err >&5
23871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872  (exit $ac_status); } &&
23873	 { ac_try='test -z "$ac_c_werror_flag"
23874			 || test ! -s conftest.err'
23875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876  (eval $ac_try) 2>&5
23877  ac_status=$?
23878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879  (exit $ac_status); }; } &&
23880	 { ac_try='test -s conftest$ac_exeext'
23881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882  (eval $ac_try) 2>&5
23883  ac_status=$?
23884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885  (exit $ac_status); }; }; then
23886  eval "$as_ac_var=yes"
23887else
23888  echo "$as_me: failed program was:" >&5
23889sed 's/^/| /' conftest.$ac_ext >&5
23890
23891eval "$as_ac_var=no"
23892fi
23893rm -f conftest.err conftest.$ac_objext \
23894      conftest$ac_exeext conftest.$ac_ext
23895fi
23896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23898if test `eval echo '${'$as_ac_var'}'` = yes; then
23899  cat >>confdefs.h <<_ACEOF
23900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23901_ACEOF
23902
23903fi
23904done
23905
23906
23907SOCKLIBS=""
23908echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23909echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
23910if test "${ac_cv_lib_socket_socket+set}" = set; then
23911  echo $ECHO_N "(cached) $ECHO_C" >&6
23912else
23913  ac_check_lib_save_LIBS=$LIBS
23914LIBS="-lsocket  $LIBS"
23915cat >conftest.$ac_ext <<_ACEOF
23916/* confdefs.h.  */
23917_ACEOF
23918cat confdefs.h >>conftest.$ac_ext
23919cat >>conftest.$ac_ext <<_ACEOF
23920/* end confdefs.h.  */
23921
23922/* Override any gcc2 internal prototype to avoid an error.  */
23923#ifdef __cplusplus
23924extern "C"
23925#endif
23926/* We use char because int might match the return type of a gcc2
23927   builtin and then its argument prototype would still apply.  */
23928char socket ();
23929int
23930main ()
23931{
23932socket ();
23933  ;
23934  return 0;
23935}
23936_ACEOF
23937rm -f conftest.$ac_objext conftest$ac_exeext
23938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23939  (eval $ac_link) 2>conftest.er1
23940  ac_status=$?
23941  grep -v '^ *+' conftest.er1 >conftest.err
23942  rm -f conftest.er1
23943  cat conftest.err >&5
23944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945  (exit $ac_status); } &&
23946	 { ac_try='test -z "$ac_c_werror_flag"
23947			 || test ! -s conftest.err'
23948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949  (eval $ac_try) 2>&5
23950  ac_status=$?
23951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952  (exit $ac_status); }; } &&
23953	 { ac_try='test -s conftest$ac_exeext'
23954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955  (eval $ac_try) 2>&5
23956  ac_status=$?
23957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958  (exit $ac_status); }; }; then
23959  ac_cv_lib_socket_socket=yes
23960else
23961  echo "$as_me: failed program was:" >&5
23962sed 's/^/| /' conftest.$ac_ext >&5
23963
23964ac_cv_lib_socket_socket=no
23965fi
23966rm -f conftest.err conftest.$ac_objext \
23967      conftest$ac_exeext conftest.$ac_ext
23968LIBS=$ac_check_lib_save_LIBS
23969fi
23970echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23971echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
23972if test $ac_cv_lib_socket_socket = yes; then
23973  if test "$uname" != "IRIX"; then SOCKLIBS="-lsocket"; fi
23974fi
23975
23976echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5
23977echo $ECHO_N "checking for gethostbyaddr in -lnsl... $ECHO_C" >&6
23978if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then
23979  echo $ECHO_N "(cached) $ECHO_C" >&6
23980else
23981  ac_check_lib_save_LIBS=$LIBS
23982LIBS="-lnsl  $LIBS"
23983cat >conftest.$ac_ext <<_ACEOF
23984/* confdefs.h.  */
23985_ACEOF
23986cat confdefs.h >>conftest.$ac_ext
23987cat >>conftest.$ac_ext <<_ACEOF
23988/* end confdefs.h.  */
23989
23990/* Override any gcc2 internal prototype to avoid an error.  */
23991#ifdef __cplusplus
23992extern "C"
23993#endif
23994/* We use char because int might match the return type of a gcc2
23995   builtin and then its argument prototype would still apply.  */
23996char gethostbyaddr ();
23997int
23998main ()
23999{
24000gethostbyaddr ();
24001  ;
24002  return 0;
24003}
24004_ACEOF
24005rm -f conftest.$ac_objext conftest$ac_exeext
24006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24007  (eval $ac_link) 2>conftest.er1
24008  ac_status=$?
24009  grep -v '^ *+' conftest.er1 >conftest.err
24010  rm -f conftest.er1
24011  cat conftest.err >&5
24012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013  (exit $ac_status); } &&
24014	 { ac_try='test -z "$ac_c_werror_flag"
24015			 || test ! -s conftest.err'
24016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017  (eval $ac_try) 2>&5
24018  ac_status=$?
24019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020  (exit $ac_status); }; } &&
24021	 { ac_try='test -s conftest$ac_exeext'
24022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023  (eval $ac_try) 2>&5
24024  ac_status=$?
24025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026  (exit $ac_status); }; }; then
24027  ac_cv_lib_nsl_gethostbyaddr=yes
24028else
24029  echo "$as_me: failed program was:" >&5
24030sed 's/^/| /' conftest.$ac_ext >&5
24031
24032ac_cv_lib_nsl_gethostbyaddr=no
24033fi
24034rm -f conftest.err conftest.$ac_objext \
24035      conftest$ac_exeext conftest.$ac_ext
24036LIBS=$ac_check_lib_save_LIBS
24037fi
24038echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
24039echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr" >&6
24040if test $ac_cv_lib_nsl_gethostbyaddr = yes; then
24041  if test "$uname" != "IRIX"; then SOCKLIBS="${SOCKLIBS} -lnsl"; fi
24042fi
24043
24044
24045
24046echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24047echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24048if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24049  echo $ECHO_N "(cached) $ECHO_C" >&6
24050else
24051  ac_check_lib_save_LIBS=$LIBS
24052LIBS="-ldl  $LIBS"
24053cat >conftest.$ac_ext <<_ACEOF
24054/* confdefs.h.  */
24055_ACEOF
24056cat confdefs.h >>conftest.$ac_ext
24057cat >>conftest.$ac_ext <<_ACEOF
24058/* end confdefs.h.  */
24059
24060/* Override any gcc2 internal prototype to avoid an error.  */
24061#ifdef __cplusplus
24062extern "C"
24063#endif
24064/* We use char because int might match the return type of a gcc2
24065   builtin and then its argument prototype would still apply.  */
24066char dlopen ();
24067int
24068main ()
24069{
24070dlopen ();
24071  ;
24072  return 0;
24073}
24074_ACEOF
24075rm -f conftest.$ac_objext conftest$ac_exeext
24076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077  (eval $ac_link) 2>conftest.er1
24078  ac_status=$?
24079  grep -v '^ *+' conftest.er1 >conftest.err
24080  rm -f conftest.er1
24081  cat conftest.err >&5
24082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083  (exit $ac_status); } &&
24084	 { ac_try='test -z "$ac_c_werror_flag"
24085			 || test ! -s conftest.err'
24086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087  (eval $ac_try) 2>&5
24088  ac_status=$?
24089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090  (exit $ac_status); }; } &&
24091	 { ac_try='test -s conftest$ac_exeext'
24092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093  (eval $ac_try) 2>&5
24094  ac_status=$?
24095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096  (exit $ac_status); }; }; then
24097  ac_cv_lib_dl_dlopen=yes
24098else
24099  echo "$as_me: failed program was:" >&5
24100sed 's/^/| /' conftest.$ac_ext >&5
24101
24102ac_cv_lib_dl_dlopen=no
24103fi
24104rm -f conftest.err conftest.$ac_objext \
24105      conftest$ac_exeext conftest.$ac_ext
24106LIBS=$ac_check_lib_save_LIBS
24107fi
24108echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24109echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24110if test $ac_cv_lib_dl_dlopen = yes; then
24111  cat >>confdefs.h <<_ACEOF
24112#define HAVE_LIBDL 1
24113_ACEOF
24114
24115  LIBS="-ldl $LIBS"
24116
24117fi
24118
24119
24120echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24121echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24122if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24123  echo $ECHO_N "(cached) $ECHO_C" >&6
24124else
24125  ac_check_lib_save_LIBS=$LIBS
24126LIBS="-ldld  $LIBS"
24127cat >conftest.$ac_ext <<_ACEOF
24128/* confdefs.h.  */
24129_ACEOF
24130cat confdefs.h >>conftest.$ac_ext
24131cat >>conftest.$ac_ext <<_ACEOF
24132/* end confdefs.h.  */
24133
24134/* Override any gcc2 internal prototype to avoid an error.  */
24135#ifdef __cplusplus
24136extern "C"
24137#endif
24138/* We use char because int might match the return type of a gcc2
24139   builtin and then its argument prototype would still apply.  */
24140char shl_load ();
24141int
24142main ()
24143{
24144shl_load ();
24145  ;
24146  return 0;
24147}
24148_ACEOF
24149rm -f conftest.$ac_objext conftest$ac_exeext
24150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24151  (eval $ac_link) 2>conftest.er1
24152  ac_status=$?
24153  grep -v '^ *+' conftest.er1 >conftest.err
24154  rm -f conftest.er1
24155  cat conftest.err >&5
24156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157  (exit $ac_status); } &&
24158	 { ac_try='test -z "$ac_c_werror_flag"
24159			 || test ! -s conftest.err'
24160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161  (eval $ac_try) 2>&5
24162  ac_status=$?
24163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164  (exit $ac_status); }; } &&
24165	 { ac_try='test -s conftest$ac_exeext'
24166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167  (eval $ac_try) 2>&5
24168  ac_status=$?
24169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170  (exit $ac_status); }; }; then
24171  ac_cv_lib_dld_shl_load=yes
24172else
24173  echo "$as_me: failed program was:" >&5
24174sed 's/^/| /' conftest.$ac_ext >&5
24175
24176ac_cv_lib_dld_shl_load=no
24177fi
24178rm -f conftest.err conftest.$ac_objext \
24179      conftest$ac_exeext conftest.$ac_ext
24180LIBS=$ac_check_lib_save_LIBS
24181fi
24182echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24183echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24184if test $ac_cv_lib_dld_shl_load = yes; then
24185  cat >>confdefs.h <<_ACEOF
24186#define HAVE_LIBDLD 1
24187_ACEOF
24188
24189  LIBS="-ldld $LIBS"
24190
24191fi
24192
24193
24194echo "$as_me:$LINENO: checking for CUPS support" >&5
24195echo $ECHO_N "checking for CUPS support... $ECHO_C" >&6
24196# Check whether --enable-cups or --disable-cups was given.
24197if test "${enable_cups+set}" = set; then
24198  enableval="$enable_cups"
24199
24200fi;
24201echo "$as_me:$LINENO: result: $enable_cups" >&5
24202echo "${ECHO_T}$enable_cups" >&6
24203if test "x$enable_cups" = "xyes"; then
24204CUPSLIBS=""
24205echo "$as_me:$LINENO: checking for httpConnect in -lcups" >&5
24206echo $ECHO_N "checking for httpConnect in -lcups... $ECHO_C" >&6
24207if test "${ac_cv_lib_cups_httpConnect+set}" = set; then
24208  echo $ECHO_N "(cached) $ECHO_C" >&6
24209else
24210  ac_check_lib_save_LIBS=$LIBS
24211LIBS="-lcups  $LIBS"
24212cat >conftest.$ac_ext <<_ACEOF
24213/* confdefs.h.  */
24214_ACEOF
24215cat confdefs.h >>conftest.$ac_ext
24216cat >>conftest.$ac_ext <<_ACEOF
24217/* end confdefs.h.  */
24218
24219/* Override any gcc2 internal prototype to avoid an error.  */
24220#ifdef __cplusplus
24221extern "C"
24222#endif
24223/* We use char because int might match the return type of a gcc2
24224   builtin and then its argument prototype would still apply.  */
24225char httpConnect ();
24226int
24227main ()
24228{
24229httpConnect ();
24230  ;
24231  return 0;
24232}
24233_ACEOF
24234rm -f conftest.$ac_objext conftest$ac_exeext
24235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24236  (eval $ac_link) 2>conftest.er1
24237  ac_status=$?
24238  grep -v '^ *+' conftest.er1 >conftest.err
24239  rm -f conftest.er1
24240  cat conftest.err >&5
24241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242  (exit $ac_status); } &&
24243	 { ac_try='test -z "$ac_c_werror_flag"
24244			 || test ! -s conftest.err'
24245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246  (eval $ac_try) 2>&5
24247  ac_status=$?
24248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249  (exit $ac_status); }; } &&
24250	 { ac_try='test -s conftest$ac_exeext'
24251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252  (eval $ac_try) 2>&5
24253  ac_status=$?
24254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255  (exit $ac_status); }; }; then
24256  ac_cv_lib_cups_httpConnect=yes
24257else
24258  echo "$as_me: failed program was:" >&5
24259sed 's/^/| /' conftest.$ac_ext >&5
24260
24261ac_cv_lib_cups_httpConnect=no
24262fi
24263rm -f conftest.err conftest.$ac_objext \
24264      conftest$ac_exeext conftest.$ac_ext
24265LIBS=$ac_check_lib_save_LIBS
24266fi
24267echo "$as_me:$LINENO: result: $ac_cv_lib_cups_httpConnect" >&5
24268echo "${ECHO_T}$ac_cv_lib_cups_httpConnect" >&6
24269if test $ac_cv_lib_cups_httpConnect = yes; then
24270  CUPSLIBS="-lcups"
24271fi
24272
24273if test "${ac_cv_header_cups_cups_h+set}" = set; then
24274  echo "$as_me:$LINENO: checking for cups/cups.h" >&5
24275echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
24276if test "${ac_cv_header_cups_cups_h+set}" = set; then
24277  echo $ECHO_N "(cached) $ECHO_C" >&6
24278fi
24279echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
24280echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
24281else
24282  # Is the header compilable?
24283echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
24284echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
24285cat >conftest.$ac_ext <<_ACEOF
24286/* confdefs.h.  */
24287_ACEOF
24288cat confdefs.h >>conftest.$ac_ext
24289cat >>conftest.$ac_ext <<_ACEOF
24290/* end confdefs.h.  */
24291$ac_includes_default
24292#include <cups/cups.h>
24293_ACEOF
24294rm -f conftest.$ac_objext
24295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24296  (eval $ac_compile) 2>conftest.er1
24297  ac_status=$?
24298  grep -v '^ *+' conftest.er1 >conftest.err
24299  rm -f conftest.er1
24300  cat conftest.err >&5
24301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302  (exit $ac_status); } &&
24303	 { ac_try='test -z "$ac_c_werror_flag"
24304			 || test ! -s conftest.err'
24305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24306  (eval $ac_try) 2>&5
24307  ac_status=$?
24308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309  (exit $ac_status); }; } &&
24310	 { ac_try='test -s conftest.$ac_objext'
24311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312  (eval $ac_try) 2>&5
24313  ac_status=$?
24314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315  (exit $ac_status); }; }; then
24316  ac_header_compiler=yes
24317else
24318  echo "$as_me: failed program was:" >&5
24319sed 's/^/| /' conftest.$ac_ext >&5
24320
24321ac_header_compiler=no
24322fi
24323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24325echo "${ECHO_T}$ac_header_compiler" >&6
24326
24327# Is the header present?
24328echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
24329echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
24330cat >conftest.$ac_ext <<_ACEOF
24331/* confdefs.h.  */
24332_ACEOF
24333cat confdefs.h >>conftest.$ac_ext
24334cat >>conftest.$ac_ext <<_ACEOF
24335/* end confdefs.h.  */
24336#include <cups/cups.h>
24337_ACEOF
24338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24339  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24340  ac_status=$?
24341  grep -v '^ *+' conftest.er1 >conftest.err
24342  rm -f conftest.er1
24343  cat conftest.err >&5
24344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345  (exit $ac_status); } >/dev/null; then
24346  if test -s conftest.err; then
24347    ac_cpp_err=$ac_c_preproc_warn_flag
24348    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24349  else
24350    ac_cpp_err=
24351  fi
24352else
24353  ac_cpp_err=yes
24354fi
24355if test -z "$ac_cpp_err"; then
24356  ac_header_preproc=yes
24357else
24358  echo "$as_me: failed program was:" >&5
24359sed 's/^/| /' conftest.$ac_ext >&5
24360
24361  ac_header_preproc=no
24362fi
24363rm -f conftest.err conftest.$ac_ext
24364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24365echo "${ECHO_T}$ac_header_preproc" >&6
24366
24367# So?  What about this header?
24368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24369  yes:no: )
24370    { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
24371echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24372    { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the compiler's result" >&5
24373echo "$as_me: WARNING: cups/cups.h: proceeding with the compiler's result" >&2;}
24374    ac_header_preproc=yes
24375    ;;
24376  no:yes:* )
24377    { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
24378echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
24379    { echo "$as_me:$LINENO: WARNING: cups/cups.h:     check for missing prerequisite headers?" >&5
24380echo "$as_me: WARNING: cups/cups.h:     check for missing prerequisite headers?" >&2;}
24381    { echo "$as_me:$LINENO: WARNING: cups/cups.h: see the Autoconf documentation" >&5
24382echo "$as_me: WARNING: cups/cups.h: see the Autoconf documentation" >&2;}
24383    { echo "$as_me:$LINENO: WARNING: cups/cups.h:     section \"Present But Cannot Be Compiled\"" >&5
24384echo "$as_me: WARNING: cups/cups.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24385    { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
24386echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;}
24387    { echo "$as_me:$LINENO: WARNING: cups/cups.h: in the future, the compiler will take precedence" >&5
24388echo "$as_me: WARNING: cups/cups.h: in the future, the compiler will take precedence" >&2;}
24389    (
24390      cat <<\_ASBOX
24391## ------------------------------------------ ##
24392## Report this to the AC_PACKAGE_NAME lists.  ##
24393## ------------------------------------------ ##
24394_ASBOX
24395    ) |
24396      sed "s/^/$as_me: WARNING:     /" >&2
24397    ;;
24398esac
24399echo "$as_me:$LINENO: checking for cups/cups.h" >&5
24400echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
24401if test "${ac_cv_header_cups_cups_h+set}" = set; then
24402  echo $ECHO_N "(cached) $ECHO_C" >&6
24403else
24404  ac_cv_header_cups_cups_h=$ac_header_preproc
24405fi
24406echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
24407echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
24408
24409fi
24410if test $ac_cv_header_cups_cups_h = yes; then
24411  if test "x${CUPSLIBS}" != "x"; then CXXFLAGS="${CXXFLAGS} -DHAVE_CUPS_H=1"; LIBS="${LIBS} ${CUPSLIBS} ${SOCKLIBS}"; fi
24412fi
24413
24414
24415fi
24416
24417
24418if test "${GXX}" = "yes" ; then
24419CXXFLAGS="${CXXFLAGS} -Wall -W -Woverloaded-virtual -Wformat"
24420fi
24421
24422echo "$as_me:$LINENO: checking for debugging" >&5
24423echo $ECHO_N "checking for debugging... $ECHO_C" >&6
24424# Check whether --enable-debug or --disable-debug was given.
24425if test "${enable_debug+set}" = set; then
24426  enableval="$enable_debug"
24427
24428fi;
24429echo "$as_me:$LINENO: result: $enable_debug" >&5
24430echo "${ECHO_T}$enable_debug" >&6
24431if test "x$enable_debug" = "xyes" ; then
24432CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
24433fi
24434
24435echo "$as_me:$LINENO: checking for release build" >&5
24436echo $ECHO_N "checking for release build... $ECHO_C" >&6
24437# Check whether --enable-release or --disable-release was given.
24438if test "${enable_release+set}" = set; then
24439  enableval="$enable_release"
24440
24441fi;
24442echo "$as_me:$LINENO: result: $enable_release" >&5
24443echo "${ECHO_T}$enable_release" >&6
24444if test "x$enable_release" = "xyes" ; then
24445CXXFLAGS="${CXXFLAGS}  -pipe -O2 -fno-strict-aliasing  -DNDEBUG"
24446if test "${GXX}" = "yes" ; then
24447CXXFLAGS="${CXXFLAGS} -Wuninitialized"
24448fi
24449fi
24450
24451echo "$as_me:$LINENO: checking for profiling" >&5
24452echo $ECHO_N "checking for profiling... $ECHO_C" >&6
24453
24454# Check whether --with-profiling or --without-profiling was given.
24455if test "${with_profiling+set}" = set; then
24456  withval="$with_profiling"
24457
24458fi;
24459echo "$as_me:$LINENO: result: $with_profiling" >&5
24460echo "${ECHO_T}$with_profiling" >&6
24461if test "x$with_profiling" = "xyes" ; then
24462CXXFLAGS="${CXXFLAGS} -p"
24463elif test "x$with_profiling" = "xgprof" ; then
24464CXXFLAGS="${CXXFLAGS} -pg"
24465fi
24466
24467
24468saved_cppflags="$CPPFLAGS"
24469CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24470
24471echo "$as_me:$LINENO: checking for OpenGL support" >&5
24472echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6
24473
24474# Check whether --with-opengl or --without-opengl was given.
24475if test "${with_opengl+set}" = set; then
24476  withval="$with_opengl"
24477
24478fi;
24479echo "$as_me:$LINENO: result: $with_opengl" >&5
24480echo "${ECHO_T}$with_opengl" >&6
24481if test "x$with_opengl" != "xno" ; then
24482if test "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes" ; then
24483if test "${ac_cv_header_GL_gl_h+set}" = set; then
24484  echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24485echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24486if test "${ac_cv_header_GL_gl_h+set}" = set; then
24487  echo $ECHO_N "(cached) $ECHO_C" >&6
24488fi
24489echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24490echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24491else
24492  # Is the header compilable?
24493echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24494echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24495cat >conftest.$ac_ext <<_ACEOF
24496/* confdefs.h.  */
24497_ACEOF
24498cat confdefs.h >>conftest.$ac_ext
24499cat >>conftest.$ac_ext <<_ACEOF
24500/* end confdefs.h.  */
24501$ac_includes_default
24502#include <GL/gl.h>
24503_ACEOF
24504rm -f conftest.$ac_objext
24505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24506  (eval $ac_compile) 2>conftest.er1
24507  ac_status=$?
24508  grep -v '^ *+' conftest.er1 >conftest.err
24509  rm -f conftest.er1
24510  cat conftest.err >&5
24511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512  (exit $ac_status); } &&
24513	 { ac_try='test -z "$ac_c_werror_flag"
24514			 || test ! -s conftest.err'
24515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516  (eval $ac_try) 2>&5
24517  ac_status=$?
24518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519  (exit $ac_status); }; } &&
24520	 { ac_try='test -s conftest.$ac_objext'
24521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522  (eval $ac_try) 2>&5
24523  ac_status=$?
24524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525  (exit $ac_status); }; }; then
24526  ac_header_compiler=yes
24527else
24528  echo "$as_me: failed program was:" >&5
24529sed 's/^/| /' conftest.$ac_ext >&5
24530
24531ac_header_compiler=no
24532fi
24533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24535echo "${ECHO_T}$ac_header_compiler" >&6
24536
24537# Is the header present?
24538echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24539echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24540cat >conftest.$ac_ext <<_ACEOF
24541/* confdefs.h.  */
24542_ACEOF
24543cat confdefs.h >>conftest.$ac_ext
24544cat >>conftest.$ac_ext <<_ACEOF
24545/* end confdefs.h.  */
24546#include <GL/gl.h>
24547_ACEOF
24548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24549  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24550  ac_status=$?
24551  grep -v '^ *+' conftest.er1 >conftest.err
24552  rm -f conftest.er1
24553  cat conftest.err >&5
24554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555  (exit $ac_status); } >/dev/null; then
24556  if test -s conftest.err; then
24557    ac_cpp_err=$ac_c_preproc_warn_flag
24558    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24559  else
24560    ac_cpp_err=
24561  fi
24562else
24563  ac_cpp_err=yes
24564fi
24565if test -z "$ac_cpp_err"; then
24566  ac_header_preproc=yes
24567else
24568  echo "$as_me: failed program was:" >&5
24569sed 's/^/| /' conftest.$ac_ext >&5
24570
24571  ac_header_preproc=no
24572fi
24573rm -f conftest.err conftest.$ac_ext
24574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24575echo "${ECHO_T}$ac_header_preproc" >&6
24576
24577# So?  What about this header?
24578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24579  yes:no: )
24580    { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24581echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24582    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
24583echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
24584    ac_header_preproc=yes
24585    ;;
24586  no:yes:* )
24587    { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24588echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24589    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
24590echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
24591    { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
24592echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
24593    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
24594echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24595    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24596echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24597    { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
24598echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
24599    (
24600      cat <<\_ASBOX
24601## ------------------------------------------ ##
24602## Report this to the AC_PACKAGE_NAME lists.  ##
24603## ------------------------------------------ ##
24604_ASBOX
24605    ) |
24606      sed "s/^/$as_me: WARNING:     /" >&2
24607    ;;
24608esac
24609echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24610echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24611if test "${ac_cv_header_GL_gl_h+set}" = set; then
24612  echo $ECHO_N "(cached) $ECHO_C" >&6
24613else
24614  ac_cv_header_GL_gl_h=$ac_header_preproc
24615fi
24616echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24617echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24618
24619fi
24620if test $ac_cv_header_GL_gl_h = yes; then
24621  CXXFLAGS="${CXXFLAGS} -DHAVE_GL_H=1"; LIBS="${LIBS} ${LIBGL:=-lopengl32}"
24622fi
24623
24624
24625if test "${ac_cv_header_GL_glu_h+set}" = set; then
24626  echo "$as_me:$LINENO: checking for GL/glu.h" >&5
24627echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
24628if test "${ac_cv_header_GL_glu_h+set}" = set; then
24629  echo $ECHO_N "(cached) $ECHO_C" >&6
24630fi
24631echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
24632echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
24633else
24634  # Is the header compilable?
24635echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
24636echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
24637cat >conftest.$ac_ext <<_ACEOF
24638/* confdefs.h.  */
24639_ACEOF
24640cat confdefs.h >>conftest.$ac_ext
24641cat >>conftest.$ac_ext <<_ACEOF
24642/* end confdefs.h.  */
24643$ac_includes_default
24644#include <GL/glu.h>
24645_ACEOF
24646rm -f conftest.$ac_objext
24647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648  (eval $ac_compile) 2>conftest.er1
24649  ac_status=$?
24650  grep -v '^ *+' conftest.er1 >conftest.err
24651  rm -f conftest.er1
24652  cat conftest.err >&5
24653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654  (exit $ac_status); } &&
24655	 { ac_try='test -z "$ac_c_werror_flag"
24656			 || test ! -s conftest.err'
24657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658  (eval $ac_try) 2>&5
24659  ac_status=$?
24660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661  (exit $ac_status); }; } &&
24662	 { ac_try='test -s conftest.$ac_objext'
24663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664  (eval $ac_try) 2>&5
24665  ac_status=$?
24666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667  (exit $ac_status); }; }; then
24668  ac_header_compiler=yes
24669else
24670  echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
24673ac_header_compiler=no
24674fi
24675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24676echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24677echo "${ECHO_T}$ac_header_compiler" >&6
24678
24679# Is the header present?
24680echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
24681echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
24682cat >conftest.$ac_ext <<_ACEOF
24683/* confdefs.h.  */
24684_ACEOF
24685cat confdefs.h >>conftest.$ac_ext
24686cat >>conftest.$ac_ext <<_ACEOF
24687/* end confdefs.h.  */
24688#include <GL/glu.h>
24689_ACEOF
24690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24691  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24692  ac_status=$?
24693  grep -v '^ *+' conftest.er1 >conftest.err
24694  rm -f conftest.er1
24695  cat conftest.err >&5
24696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697  (exit $ac_status); } >/dev/null; then
24698  if test -s conftest.err; then
24699    ac_cpp_err=$ac_c_preproc_warn_flag
24700    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24701  else
24702    ac_cpp_err=
24703  fi
24704else
24705  ac_cpp_err=yes
24706fi
24707if test -z "$ac_cpp_err"; then
24708  ac_header_preproc=yes
24709else
24710  echo "$as_me: failed program was:" >&5
24711sed 's/^/| /' conftest.$ac_ext >&5
24712
24713  ac_header_preproc=no
24714fi
24715rm -f conftest.err conftest.$ac_ext
24716echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24717echo "${ECHO_T}$ac_header_preproc" >&6
24718
24719# So?  What about this header?
24720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24721  yes:no: )
24722    { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
24723echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24724    { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
24725echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
24726    ac_header_preproc=yes
24727    ;;
24728  no:yes:* )
24729    { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
24730echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
24731    { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
24732echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
24733    { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
24734echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
24735    { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
24736echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24737    { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
24738echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
24739    { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
24740echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
24741    (
24742      cat <<\_ASBOX
24743## ------------------------------------------ ##
24744## Report this to the AC_PACKAGE_NAME lists.  ##
24745## ------------------------------------------ ##
24746_ASBOX
24747    ) |
24748      sed "s/^/$as_me: WARNING:     /" >&2
24749    ;;
24750esac
24751echo "$as_me:$LINENO: checking for GL/glu.h" >&5
24752echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
24753if test "${ac_cv_header_GL_glu_h+set}" = set; then
24754  echo $ECHO_N "(cached) $ECHO_C" >&6
24755else
24756  ac_cv_header_GL_glu_h=$ac_header_preproc
24757fi
24758echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
24759echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
24760
24761fi
24762if test $ac_cv_header_GL_glu_h = yes; then
24763  CXXFLAGS="${CXXFLAGS} -DHAVE_GLU_H=1"; LIBS="${LIBS} ${LIBGLU:=-lglu32}"
24764fi
24765
24766
24767GL_TESTS="gltest.exe glviewer.exe"
24768else
24769if test "${ac_cv_header_GL_gl_h+set}" = set; then
24770  echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24771echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24772if test "${ac_cv_header_GL_gl_h+set}" = set; then
24773  echo $ECHO_N "(cached) $ECHO_C" >&6
24774fi
24775echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24776echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24777else
24778  # Is the header compilable?
24779echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24780echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24781cat >conftest.$ac_ext <<_ACEOF
24782/* confdefs.h.  */
24783_ACEOF
24784cat confdefs.h >>conftest.$ac_ext
24785cat >>conftest.$ac_ext <<_ACEOF
24786/* end confdefs.h.  */
24787$ac_includes_default
24788#include <GL/gl.h>
24789_ACEOF
24790rm -f conftest.$ac_objext
24791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24792  (eval $ac_compile) 2>conftest.er1
24793  ac_status=$?
24794  grep -v '^ *+' conftest.er1 >conftest.err
24795  rm -f conftest.er1
24796  cat conftest.err >&5
24797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798  (exit $ac_status); } &&
24799	 { ac_try='test -z "$ac_c_werror_flag"
24800			 || test ! -s conftest.err'
24801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802  (eval $ac_try) 2>&5
24803  ac_status=$?
24804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805  (exit $ac_status); }; } &&
24806	 { ac_try='test -s conftest.$ac_objext'
24807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808  (eval $ac_try) 2>&5
24809  ac_status=$?
24810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811  (exit $ac_status); }; }; then
24812  ac_header_compiler=yes
24813else
24814  echo "$as_me: failed program was:" >&5
24815sed 's/^/| /' conftest.$ac_ext >&5
24816
24817ac_header_compiler=no
24818fi
24819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24821echo "${ECHO_T}$ac_header_compiler" >&6
24822
24823# Is the header present?
24824echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24825echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24826cat >conftest.$ac_ext <<_ACEOF
24827/* confdefs.h.  */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h.  */
24832#include <GL/gl.h>
24833_ACEOF
24834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24835  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24836  ac_status=$?
24837  grep -v '^ *+' conftest.er1 >conftest.err
24838  rm -f conftest.er1
24839  cat conftest.err >&5
24840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841  (exit $ac_status); } >/dev/null; then
24842  if test -s conftest.err; then
24843    ac_cpp_err=$ac_c_preproc_warn_flag
24844    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24845  else
24846    ac_cpp_err=
24847  fi
24848else
24849  ac_cpp_err=yes
24850fi
24851if test -z "$ac_cpp_err"; then
24852  ac_header_preproc=yes
24853else
24854  echo "$as_me: failed program was:" >&5
24855sed 's/^/| /' conftest.$ac_ext >&5
24856
24857  ac_header_preproc=no
24858fi
24859rm -f conftest.err conftest.$ac_ext
24860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24861echo "${ECHO_T}$ac_header_preproc" >&6
24862
24863# So?  What about this header?
24864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24865  yes:no: )
24866    { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24867echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24868    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
24869echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
24870    ac_header_preproc=yes
24871    ;;
24872  no:yes:* )
24873    { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24874echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24875    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
24876echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
24877    { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
24878echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
24879    { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
24880echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24881    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24882echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24883    { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
24884echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
24885    (
24886      cat <<\_ASBOX
24887## ------------------------------------------ ##
24888## Report this to the AC_PACKAGE_NAME lists.  ##
24889## ------------------------------------------ ##
24890_ASBOX
24891    ) |
24892      sed "s/^/$as_me: WARNING:     /" >&2
24893    ;;
24894esac
24895echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24896echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24897if test "${ac_cv_header_GL_gl_h+set}" = set; then
24898  echo $ECHO_N "(cached) $ECHO_C" >&6
24899else
24900  ac_cv_header_GL_gl_h=$ac_header_preproc
24901fi
24902echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24903echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24904
24905fi
24906if test $ac_cv_header_GL_gl_h = yes; then
24907  CXXFLAGS="${CXXFLAGS} -DHAVE_GL_H=1"; LIBS="${LIBS} ${LIBGL:=-lGL}"
24908fi
24909
24910
24911if test "${ac_cv_header_GL_glu_h+set}" = set; then
24912  echo "$as_me:$LINENO: checking for GL/glu.h" >&5
24913echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
24914if test "${ac_cv_header_GL_glu_h+set}" = set; then
24915  echo $ECHO_N "(cached) $ECHO_C" >&6
24916fi
24917echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
24918echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
24919else
24920  # Is the header compilable?
24921echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
24922echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
24923cat >conftest.$ac_ext <<_ACEOF
24924/* confdefs.h.  */
24925_ACEOF
24926cat confdefs.h >>conftest.$ac_ext
24927cat >>conftest.$ac_ext <<_ACEOF
24928/* end confdefs.h.  */
24929$ac_includes_default
24930#include <GL/glu.h>
24931_ACEOF
24932rm -f conftest.$ac_objext
24933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24934  (eval $ac_compile) 2>conftest.er1
24935  ac_status=$?
24936  grep -v '^ *+' conftest.er1 >conftest.err
24937  rm -f conftest.er1
24938  cat conftest.err >&5
24939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940  (exit $ac_status); } &&
24941	 { ac_try='test -z "$ac_c_werror_flag"
24942			 || test ! -s conftest.err'
24943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944  (eval $ac_try) 2>&5
24945  ac_status=$?
24946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947  (exit $ac_status); }; } &&
24948	 { ac_try='test -s conftest.$ac_objext'
24949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950  (eval $ac_try) 2>&5
24951  ac_status=$?
24952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953  (exit $ac_status); }; }; then
24954  ac_header_compiler=yes
24955else
24956  echo "$as_me: failed program was:" >&5
24957sed 's/^/| /' conftest.$ac_ext >&5
24958
24959ac_header_compiler=no
24960fi
24961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24963echo "${ECHO_T}$ac_header_compiler" >&6
24964
24965# Is the header present?
24966echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
24967echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
24968cat >conftest.$ac_ext <<_ACEOF
24969/* confdefs.h.  */
24970_ACEOF
24971cat confdefs.h >>conftest.$ac_ext
24972cat >>conftest.$ac_ext <<_ACEOF
24973/* end confdefs.h.  */
24974#include <GL/glu.h>
24975_ACEOF
24976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24978  ac_status=$?
24979  grep -v '^ *+' conftest.er1 >conftest.err
24980  rm -f conftest.er1
24981  cat conftest.err >&5
24982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983  (exit $ac_status); } >/dev/null; then
24984  if test -s conftest.err; then
24985    ac_cpp_err=$ac_c_preproc_warn_flag
24986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24987  else
24988    ac_cpp_err=
24989  fi
24990else
24991  ac_cpp_err=yes
24992fi
24993if test -z "$ac_cpp_err"; then
24994  ac_header_preproc=yes
24995else
24996  echo "$as_me: failed program was:" >&5
24997sed 's/^/| /' conftest.$ac_ext >&5
24998
24999  ac_header_preproc=no
25000fi
25001rm -f conftest.err conftest.$ac_ext
25002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25003echo "${ECHO_T}$ac_header_preproc" >&6
25004
25005# So?  What about this header?
25006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25007  yes:no: )
25008    { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
25009echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25010    { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
25011echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
25012    ac_header_preproc=yes
25013    ;;
25014  no:yes:* )
25015    { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
25016echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
25017    { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
25018echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
25019    { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
25020echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
25021    { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
25022echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25023    { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
25024echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
25025    { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
25026echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
25027    (
25028      cat <<\_ASBOX
25029## ------------------------------------------ ##
25030## Report this to the AC_PACKAGE_NAME lists.  ##
25031## ------------------------------------------ ##
25032_ASBOX
25033    ) |
25034      sed "s/^/$as_me: WARNING:     /" >&2
25035    ;;
25036esac
25037echo "$as_me:$LINENO: checking for GL/glu.h" >&5
25038echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
25039if test "${ac_cv_header_GL_glu_h+set}" = set; then
25040  echo $ECHO_N "(cached) $ECHO_C" >&6
25041else
25042  ac_cv_header_GL_glu_h=$ac_header_preproc
25043fi
25044echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
25045echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
25046
25047fi
25048if test $ac_cv_header_GL_glu_h = yes; then
25049  CXXFLAGS="${CXXFLAGS} -DHAVE_GLU_H=1"; LIBS="${LIBS} ${LIBGLU:=-lGLU}"
25050fi
25051
25052
25053GL_TESTS="gltest glviewer"
25054fi
25055fi
25056
25057CPPFLAGS="$saved_cppflags"
25058
25059
25060
25061
25062
25063
25064                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile utils/Makefile include/Makefile include/fxver.h src/Makefile src/version.rc chart/Makefile doc/Makefile doc/art/Makefile doc/screenshots/Makefile tests/Makefile adie/Makefile shutterbug/Makefile pathfinder/Makefile calculator/Makefile windows/Makefile fox.spec fox-config"
25065cat >confcache <<\_ACEOF
25066# This file is a shell script that caches the results of configure
25067# tests run on this system so they can be shared between configure
25068# scripts and configure runs, see configure's option --config-cache.
25069# It is not useful on other systems.  If it contains results you don't
25070# want to keep, you may remove or edit it.
25071#
25072# config.status only pays attention to the cache file if you give it
25073# the --recheck option to rerun configure.
25074#
25075# `ac_cv_env_foo' variables (set or unset) will be overridden when
25076# loading this file, other *unset* `ac_cv_foo' will be assigned the
25077# following values.
25078
25079_ACEOF
25080
25081# The following way of writing the cache mishandles newlines in values,
25082# but we know of no workaround that is simple, portable, and efficient.
25083# So, don't put newlines in cache variables' values.
25084# Ultrix sh set writes to stderr and can't be redirected directly,
25085# and sets the high bit in the cache file unless we assign to the vars.
25086{
25087  (set) 2>&1 |
25088    case `(ac_space=' '; set | grep ac_space) 2>&1` in
25089    *ac_space=\ *)
25090      # `set' does not quote correctly, so add quotes (double-quote
25091      # substitution turns \\\\ into \\, and sed turns \\ into \).
25092      sed -n \
25093	"s/'/'\\\\''/g;
25094	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25095      ;;
25096    *)
25097      # `set' quotes correctly as required by POSIX, so do not add quotes.
25098      sed -n \
25099	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25100      ;;
25101    esac;
25102} |
25103  sed '
25104     t clear
25105     : clear
25106     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25107     t end
25108     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25109     : end' >>confcache
25110if diff $cache_file confcache >/dev/null 2>&1; then :; else
25111  if test -w $cache_file; then
25112    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25113    cat confcache >$cache_file
25114  else
25115    echo "not updating unwritable cache $cache_file"
25116  fi
25117fi
25118rm -f confcache
25119
25120test "x$prefix" = xNONE && prefix=$ac_default_prefix
25121# Let make expand exec_prefix.
25122test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25123
25124# VPATH may cause trouble with some makes, so we remove $(srcdir),
25125# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25126# trailing colons and then remove the whole line if VPATH becomes empty
25127# (actually we leave an empty line to preserve line numbers).
25128if test "x$srcdir" = x.; then
25129  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
25130s/:*\$(srcdir):*/:/;
25131s/:*\${srcdir}:*/:/;
25132s/:*@srcdir@:*/:/;
25133s/^\([^=]*=[	 ]*\):*/\1/;
25134s/:*$//;
25135s/^[^=]*=[	 ]*$//;
25136}'
25137fi
25138
25139# Transform confdefs.h into DEFS.
25140# Protect against shell expansion while executing Makefile rules.
25141# Protect against Makefile macro expansion.
25142#
25143# If the first sed substitution is executed (which looks for macros that
25144# take arguments), then we branch to the quote section.  Otherwise,
25145# look for a macro that doesn't take arguments.
25146cat >confdef2opt.sed <<\_ACEOF
25147t clear
25148: clear
25149s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
25150t quote
25151s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
25152t quote
25153d
25154: quote
25155s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
25156s,\[,\\&,g
25157s,\],\\&,g
25158s,\$,$$,g
25159p
25160_ACEOF
25161# We use echo to avoid assuming a particular line-breaking character.
25162# The extra dot is to prevent the shell from consuming trailing
25163# line-breaks from the sub-command output.  A line-break within
25164# single-quotes doesn't work because, if this script is created in a
25165# platform that uses two characters for line-breaks (e.g., DOS), tr
25166# would break.
25167ac_LF_and_DOT=`echo; echo .`
25168DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
25169rm -f confdef2opt.sed
25170
25171
25172ac_libobjs=
25173ac_ltlibobjs=
25174for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25175  # 1. Remove the extension, and $U if already installed.
25176  ac_i=`echo "$ac_i" |
25177	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25178  # 2. Add them.
25179  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25180  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25181done
25182LIBOBJS=$ac_libobjs
25183
25184LTLIBOBJS=$ac_ltlibobjs
25185
25186
25187
25188: ${CONFIG_STATUS=./config.status}
25189ac_clean_files_save=$ac_clean_files
25190ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25191{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25192echo "$as_me: creating $CONFIG_STATUS" >&6;}
25193cat >$CONFIG_STATUS <<_ACEOF
25194#! $SHELL
25195# Generated by $as_me.
25196# Run this file to recreate the current configuration.
25197# Compiler output produced by configure, useful for debugging
25198# configure, is in config.log if it exists.
25199
25200debug=false
25201ac_cs_recheck=false
25202ac_cs_silent=false
25203SHELL=\${CONFIG_SHELL-$SHELL}
25204_ACEOF
25205
25206cat >>$CONFIG_STATUS <<\_ACEOF
25207## --------------------- ##
25208## M4sh Initialization.  ##
25209## --------------------- ##
25210
25211# Be Bourne compatible
25212if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25213  emulate sh
25214  NULLCMD=:
25215  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25216  # is contrary to our usage.  Disable this feature.
25217  alias -g '${1+"$@"}'='"$@"'
25218elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25219  set -o posix
25220fi
25221DUALCASE=1; export DUALCASE # for MKS sh
25222
25223# Support unset when possible.
25224if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25225  as_unset=unset
25226else
25227  as_unset=false
25228fi
25229
25230
25231# Work around bugs in pre-3.0 UWIN ksh.
25232$as_unset ENV MAIL MAILPATH
25233PS1='$ '
25234PS2='> '
25235PS4='+ '
25236
25237# NLS nuisances.
25238for as_var in \
25239  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25240  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25241  LC_TELEPHONE LC_TIME
25242do
25243  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25244    eval $as_var=C; export $as_var
25245  else
25246    $as_unset $as_var
25247  fi
25248done
25249
25250# Required to use basename.
25251if expr a : '\(a\)' >/dev/null 2>&1; then
25252  as_expr=expr
25253else
25254  as_expr=false
25255fi
25256
25257if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25258  as_basename=basename
25259else
25260  as_basename=false
25261fi
25262
25263
25264# Name of the executable.
25265as_me=`$as_basename "$0" ||
25266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25267	 X"$0" : 'X\(//\)$' \| \
25268	 X"$0" : 'X\(/\)$' \| \
25269	 .     : '\(.\)' 2>/dev/null ||
25270echo X/"$0" |
25271    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25272  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
25273  	  /^X\/\(\/\).*/{ s//\1/; q; }
25274  	  s/.*/./; q'`
25275
25276
25277# PATH needs CR, and LINENO needs CR and PATH.
25278# Avoid depending upon Character Ranges.
25279as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25280as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25281as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25282as_cr_digits='0123456789'
25283as_cr_alnum=$as_cr_Letters$as_cr_digits
25284
25285# The user is always right.
25286if test "${PATH_SEPARATOR+set}" != set; then
25287  echo "#! /bin/sh" >conf$$.sh
25288  echo  "exit 0"   >>conf$$.sh
25289  chmod +x conf$$.sh
25290  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25291    PATH_SEPARATOR=';'
25292  else
25293    PATH_SEPARATOR=:
25294  fi
25295  rm -f conf$$.sh
25296fi
25297
25298
25299  as_lineno_1=$LINENO
25300  as_lineno_2=$LINENO
25301  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25302  test "x$as_lineno_1" != "x$as_lineno_2" &&
25303  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25304  # Find who we are.  Look in the path if we contain no path at all
25305  # relative or not.
25306  case $0 in
25307    *[\\/]* ) as_myself=$0 ;;
25308    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25309for as_dir in $PATH
25310do
25311  IFS=$as_save_IFS
25312  test -z "$as_dir" && as_dir=.
25313  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25314done
25315
25316       ;;
25317  esac
25318  # We did not find ourselves, most probably we were run as `sh COMMAND'
25319  # in which case we are not to be found in the path.
25320  if test "x$as_myself" = x; then
25321    as_myself=$0
25322  fi
25323  if test ! -f "$as_myself"; then
25324    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25325echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25326   { (exit 1); exit 1; }; }
25327  fi
25328  case $CONFIG_SHELL in
25329  '')
25330    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25331for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25332do
25333  IFS=$as_save_IFS
25334  test -z "$as_dir" && as_dir=.
25335  for as_base in sh bash ksh sh5; do
25336	 case $as_dir in
25337	 /*)
25338	   if ("$as_dir/$as_base" -c '
25339  as_lineno_1=$LINENO
25340  as_lineno_2=$LINENO
25341  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25342  test "x$as_lineno_1" != "x$as_lineno_2" &&
25343  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25344	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25345	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25346	     CONFIG_SHELL=$as_dir/$as_base
25347	     export CONFIG_SHELL
25348	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25349	   fi;;
25350	 esac
25351       done
25352done
25353;;
25354  esac
25355
25356  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25357  # uniformly replaced by the line number.  The first 'sed' inserts a
25358  # line-number line before each line; the second 'sed' does the real
25359  # work.  The second script uses 'N' to pair each line-number line
25360  # with the numbered line, and appends trailing '-' during
25361  # substitution so that $LINENO is not a special case at line end.
25362  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25363  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25364  sed '=' <$as_myself |
25365    sed '
25366      N
25367      s,$,-,
25368      : loop
25369      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25370      t loop
25371      s,-$,,
25372      s,^['$as_cr_digits']*\n,,
25373    ' >$as_me.lineno &&
25374  chmod +x $as_me.lineno ||
25375    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25376echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25377   { (exit 1); exit 1; }; }
25378
25379  # Don't try to exec as it changes $[0], causing all sort of problems
25380  # (the dirname of $[0] is not the place where we might find the
25381  # original and so on.  Autoconf is especially sensible to this).
25382  . ./$as_me.lineno
25383  # Exit status is that of the last command.
25384  exit
25385}
25386
25387
25388case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25389  *c*,-n*) ECHO_N= ECHO_C='
25390' ECHO_T='	' ;;
25391  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25392  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25393esac
25394
25395if expr a : '\(a\)' >/dev/null 2>&1; then
25396  as_expr=expr
25397else
25398  as_expr=false
25399fi
25400
25401rm -f conf$$ conf$$.exe conf$$.file
25402echo >conf$$.file
25403if ln -s conf$$.file conf$$ 2>/dev/null; then
25404  # We could just check for DJGPP; but this test a) works b) is more generic
25405  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25406  if test -f conf$$.exe; then
25407    # Don't use ln at all; we don't have any links
25408    as_ln_s='cp -p'
25409  else
25410    as_ln_s='ln -s'
25411  fi
25412elif ln conf$$.file conf$$ 2>/dev/null; then
25413  as_ln_s=ln
25414else
25415  as_ln_s='cp -p'
25416fi
25417rm -f conf$$ conf$$.exe conf$$.file
25418
25419if mkdir -p . 2>/dev/null; then
25420  as_mkdir_p=:
25421else
25422  test -d ./-p && rmdir ./-p
25423  as_mkdir_p=false
25424fi
25425
25426as_executable_p="test -f"
25427
25428# Sed expression to map a string onto a valid CPP name.
25429as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25430
25431# Sed expression to map a string onto a valid variable name.
25432as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25433
25434
25435# IFS
25436# We need space, tab and new line, in precisely that order.
25437as_nl='
25438'
25439IFS=" 	$as_nl"
25440
25441# CDPATH.
25442$as_unset CDPATH
25443
25444exec 6>&1
25445
25446# Open the log real soon, to keep \$[0] and so on meaningful, and to
25447# report actual input values of CONFIG_FILES etc. instead of their
25448# values after options handling.  Logging --version etc. is OK.
25449exec 5>>config.log
25450{
25451  echo
25452  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25453## Running $as_me. ##
25454_ASBOX
25455} >&5
25456cat >&5 <<_CSEOF
25457
25458This file was extended by $as_me, which was
25459generated by GNU Autoconf 2.59.  Invocation command line was
25460
25461  CONFIG_FILES    = $CONFIG_FILES
25462  CONFIG_HEADERS  = $CONFIG_HEADERS
25463  CONFIG_LINKS    = $CONFIG_LINKS
25464  CONFIG_COMMANDS = $CONFIG_COMMANDS
25465  $ $0 $@
25466
25467_CSEOF
25468echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25469echo >&5
25470_ACEOF
25471
25472# Files that config.status was made for.
25473if test -n "$ac_config_files"; then
25474  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25475fi
25476
25477if test -n "$ac_config_headers"; then
25478  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25479fi
25480
25481if test -n "$ac_config_links"; then
25482  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25483fi
25484
25485if test -n "$ac_config_commands"; then
25486  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25487fi
25488
25489cat >>$CONFIG_STATUS <<\_ACEOF
25490
25491ac_cs_usage="\
25492\`$as_me' instantiates files from templates according to the
25493current configuration.
25494
25495Usage: $0 [OPTIONS] [FILE]...
25496
25497  -h, --help       print this help, then exit
25498  -V, --version    print version number, then exit
25499  -q, --quiet      do not print progress messages
25500  -d, --debug      don't remove temporary files
25501      --recheck    update $as_me by reconfiguring in the same conditions
25502  --file=FILE[:TEMPLATE]
25503		   instantiate the configuration file FILE
25504
25505Configuration files:
25506$config_files
25507
25508Report bugs to <bug-autoconf@gnu.org>."
25509_ACEOF
25510
25511cat >>$CONFIG_STATUS <<_ACEOF
25512ac_cs_version="\\
25513config.status
25514configured by $0, generated by GNU Autoconf 2.59,
25515  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25516
25517Copyright (C) 2003 Free Software Foundation, Inc.
25518This config.status script is free software; the Free Software Foundation
25519gives unlimited permission to copy, distribute and modify it."
25520srcdir=$srcdir
25521INSTALL="$INSTALL"
25522_ACEOF
25523
25524cat >>$CONFIG_STATUS <<\_ACEOF
25525# If no file are specified by the user, then we need to provide default
25526# value.  By we need to know if files were specified by the user.
25527ac_need_defaults=:
25528while test $# != 0
25529do
25530  case $1 in
25531  --*=*)
25532    ac_option=`expr "x$1" : 'x\([^=]*\)='`
25533    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25534    ac_shift=:
25535    ;;
25536  -*)
25537    ac_option=$1
25538    ac_optarg=$2
25539    ac_shift=shift
25540    ;;
25541  *) # This is not an option, so the user has probably given explicit
25542     # arguments.
25543     ac_option=$1
25544     ac_need_defaults=false;;
25545  esac
25546
25547  case $ac_option in
25548  # Handling of the options.
25549_ACEOF
25550cat >>$CONFIG_STATUS <<\_ACEOF
25551  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25552    ac_cs_recheck=: ;;
25553  --version | --vers* | -V )
25554    echo "$ac_cs_version"; exit 0 ;;
25555  --he | --h)
25556    # Conflict between --help and --header
25557    { { echo "$as_me:$LINENO: error: ambiguous option: $1
25558Try \`$0 --help' for more information." >&5
25559echo "$as_me: error: ambiguous option: $1
25560Try \`$0 --help' for more information." >&2;}
25561   { (exit 1); exit 1; }; };;
25562  --help | --hel | -h )
25563    echo "$ac_cs_usage"; exit 0 ;;
25564  --debug | --d* | -d )
25565    debug=: ;;
25566  --file | --fil | --fi | --f )
25567    $ac_shift
25568    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25569    ac_need_defaults=false;;
25570  --header | --heade | --head | --hea )
25571    $ac_shift
25572    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25573    ac_need_defaults=false;;
25574  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25575  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25576    ac_cs_silent=: ;;
25577
25578  # This is an error.
25579  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25580Try \`$0 --help' for more information." >&5
25581echo "$as_me: error: unrecognized option: $1
25582Try \`$0 --help' for more information." >&2;}
25583   { (exit 1); exit 1; }; } ;;
25584
25585  *) ac_config_targets="$ac_config_targets $1" ;;
25586
25587  esac
25588  shift
25589done
25590
25591ac_configure_extra_args=
25592
25593if $ac_cs_silent; then
25594  exec 6>/dev/null
25595  ac_configure_extra_args="$ac_configure_extra_args --silent"
25596fi
25597
25598_ACEOF
25599cat >>$CONFIG_STATUS <<_ACEOF
25600if \$ac_cs_recheck; then
25601  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25602  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25603fi
25604
25605_ACEOF
25606
25607
25608
25609
25610
25611cat >>$CONFIG_STATUS <<\_ACEOF
25612for ac_config_target in $ac_config_targets
25613do
25614  case "$ac_config_target" in
25615  # Handling of arguments.
25616  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25617  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
25618  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25619  "include/fxver.h" ) CONFIG_FILES="$CONFIG_FILES include/fxver.h" ;;
25620  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25621  "src/version.rc" ) CONFIG_FILES="$CONFIG_FILES src/version.rc" ;;
25622  "chart/Makefile" ) CONFIG_FILES="$CONFIG_FILES chart/Makefile" ;;
25623  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25624  "doc/art/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/art/Makefile" ;;
25625  "doc/screenshots/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/screenshots/Makefile" ;;
25626  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25627  "adie/Makefile" ) CONFIG_FILES="$CONFIG_FILES adie/Makefile" ;;
25628  "shutterbug/Makefile" ) CONFIG_FILES="$CONFIG_FILES shutterbug/Makefile" ;;
25629  "pathfinder/Makefile" ) CONFIG_FILES="$CONFIG_FILES pathfinder/Makefile" ;;
25630  "calculator/Makefile" ) CONFIG_FILES="$CONFIG_FILES calculator/Makefile" ;;
25631  "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
25632  "fox.spec" ) CONFIG_FILES="$CONFIG_FILES fox.spec" ;;
25633  "fox-config" ) CONFIG_FILES="$CONFIG_FILES fox-config" ;;
25634  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25635echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25636   { (exit 1); exit 1; }; };;
25637  esac
25638done
25639
25640# If the user did not use the arguments to specify the items to instantiate,
25641# then the envvar interface is used.  Set only those that are not.
25642# We use the long form for the default assignment because of an extremely
25643# bizarre bug on SunOS 4.1.3.
25644if $ac_need_defaults; then
25645  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25646fi
25647
25648# Have a temporary directory for convenience.  Make it in the build tree
25649# simply because there is no reason to put it here, and in addition,
25650# creating and moving files from /tmp can sometimes cause problems.
25651# Create a temporary directory, and hook for its removal unless debugging.
25652$debug ||
25653{
25654  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25655  trap '{ (exit 1); exit 1; }' 1 2 13 15
25656}
25657
25658# Create a (secure) tmp directory for tmp files.
25659
25660{
25661  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25662  test -n "$tmp" && test -d "$tmp"
25663}  ||
25664{
25665  tmp=./confstat$$-$RANDOM
25666  (umask 077 && mkdir $tmp)
25667} ||
25668{
25669   echo "$me: cannot create a temporary directory in ." >&2
25670   { (exit 1); exit 1; }
25671}
25672
25673_ACEOF
25674
25675cat >>$CONFIG_STATUS <<_ACEOF
25676
25677#
25678# CONFIG_FILES section.
25679#
25680
25681# No need to generate the scripts if there are no CONFIG_FILES.
25682# This happens for instance when ./config.status config.h
25683if test -n "\$CONFIG_FILES"; then
25684  # Protect against being on the right side of a sed subst in config.status.
25685  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25686   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25687s,@SHELL@,$SHELL,;t t
25688s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25689s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25690s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25691s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25692s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25693s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25694s,@exec_prefix@,$exec_prefix,;t t
25695s,@prefix@,$prefix,;t t
25696s,@program_transform_name@,$program_transform_name,;t t
25697s,@bindir@,$bindir,;t t
25698s,@sbindir@,$sbindir,;t t
25699s,@libexecdir@,$libexecdir,;t t
25700s,@datadir@,$datadir,;t t
25701s,@sysconfdir@,$sysconfdir,;t t
25702s,@sharedstatedir@,$sharedstatedir,;t t
25703s,@localstatedir@,$localstatedir,;t t
25704s,@libdir@,$libdir,;t t
25705s,@includedir@,$includedir,;t t
25706s,@oldincludedir@,$oldincludedir,;t t
25707s,@infodir@,$infodir,;t t
25708s,@mandir@,$mandir,;t t
25709s,@build_alias@,$build_alias,;t t
25710s,@host_alias@,$host_alias,;t t
25711s,@target_alias@,$target_alias,;t t
25712s,@DEFS@,$DEFS,;t t
25713s,@ECHO_C@,$ECHO_C,;t t
25714s,@ECHO_N@,$ECHO_N,;t t
25715s,@ECHO_T@,$ECHO_T,;t t
25716s,@LIBS@,$LIBS,;t t
25717s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25718s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25719s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25720s,@PACKAGE@,$PACKAGE,;t t
25721s,@VERSION@,$VERSION,;t t
25722s,@ACLOCAL@,$ACLOCAL,;t t
25723s,@AUTOCONF@,$AUTOCONF,;t t
25724s,@AUTOMAKE@,$AUTOMAKE,;t t
25725s,@AUTOHEADER@,$AUTOHEADER,;t t
25726s,@MAKEINFO@,$MAKEINFO,;t t
25727s,@SET_MAKE@,$SET_MAKE,;t t
25728s,@FOX_MAJOR_VERSION@,$FOX_MAJOR_VERSION,;t t
25729s,@FOX_MINOR_VERSION@,$FOX_MINOR_VERSION,;t t
25730s,@FOX_PATCH_LEVEL@,$FOX_PATCH_LEVEL,;t t
25731s,@LT_RELEASE@,$LT_RELEASE,;t t
25732s,@LT_CURRENT@,$LT_CURRENT,;t t
25733s,@LT_REVISION@,$LT_REVISION,;t t
25734s,@LT_AGE@,$LT_AGE,;t t
25735s,@CC@,$CC,;t t
25736s,@CFLAGS@,$CFLAGS,;t t
25737s,@LDFLAGS@,$LDFLAGS,;t t
25738s,@CPPFLAGS@,$CPPFLAGS,;t t
25739s,@ac_ct_CC@,$ac_ct_CC,;t t
25740s,@EXEEXT@,$EXEEXT,;t t
25741s,@OBJEXT@,$OBJEXT,;t t
25742s,@CPP@,$CPP,;t t
25743s,@CXX@,$CXX,;t t
25744s,@CXXFLAGS@,$CXXFLAGS,;t t
25745s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25746s,@build@,$build,;t t
25747s,@build_cpu@,$build_cpu,;t t
25748s,@build_vendor@,$build_vendor,;t t
25749s,@build_os@,$build_os,;t t
25750s,@host@,$host,;t t
25751s,@host_cpu@,$host_cpu,;t t
25752s,@host_vendor@,$host_vendor,;t t
25753s,@host_os@,$host_os,;t t
25754s,@EGREP@,$EGREP,;t t
25755s,@LN_S@,$LN_S,;t t
25756s,@ECHO@,$ECHO,;t t
25757s,@AR@,$AR,;t t
25758s,@ac_ct_AR@,$ac_ct_AR,;t t
25759s,@RANLIB@,$RANLIB,;t t
25760s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25761s,@STRIP@,$STRIP,;t t
25762s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25763s,@CXXCPP@,$CXXCPP,;t t
25764s,@F77@,$F77,;t t
25765s,@FFLAGS@,$FFLAGS,;t t
25766s,@ac_ct_F77@,$ac_ct_F77,;t t
25767s,@LIBTOOL@,$LIBTOOL,;t t
25768s,@X_CFLAGS@,$X_CFLAGS,;t t
25769s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
25770s,@X_LIBS@,$X_LIBS,;t t
25771s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
25772s,@FOX_BYTEORDER@,$FOX_BYTEORDER,;t t
25773s,@X_BASE_LIBS@,$X_BASE_LIBS,;t t
25774s,@GL_LIBS@,$GL_LIBS,;t t
25775s,@GL_TESTS@,$GL_TESTS,;t t
25776s,@LIBOBJS@,$LIBOBJS,;t t
25777s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25778CEOF
25779
25780_ACEOF
25781
25782  cat >>$CONFIG_STATUS <<\_ACEOF
25783  # Split the substitutions into bite-sized pieces for seds with
25784  # small command number limits, like on Digital OSF/1 and HP-UX.
25785  ac_max_sed_lines=48
25786  ac_sed_frag=1 # Number of current file.
25787  ac_beg=1 # First line for current file.
25788  ac_end=$ac_max_sed_lines # Line after last line for current file.
25789  ac_more_lines=:
25790  ac_sed_cmds=
25791  while $ac_more_lines; do
25792    if test $ac_beg -gt 1; then
25793      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25794    else
25795      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25796    fi
25797    if test ! -s $tmp/subs.frag; then
25798      ac_more_lines=false
25799    else
25800      # The purpose of the label and of the branching condition is to
25801      # speed up the sed processing (if there are no `@' at all, there
25802      # is no need to browse any of the substitutions).
25803      # These are the two extra sed commands mentioned above.
25804      (echo ':t
25805  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25806      if test -z "$ac_sed_cmds"; then
25807	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25808      else
25809	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25810      fi
25811      ac_sed_frag=`expr $ac_sed_frag + 1`
25812      ac_beg=$ac_end
25813      ac_end=`expr $ac_end + $ac_max_sed_lines`
25814    fi
25815  done
25816  if test -z "$ac_sed_cmds"; then
25817    ac_sed_cmds=cat
25818  fi
25819fi # test -n "$CONFIG_FILES"
25820
25821_ACEOF
25822cat >>$CONFIG_STATUS <<\_ACEOF
25823for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25824  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25825  case $ac_file in
25826  - | *:- | *:-:* ) # input from stdin
25827	cat >$tmp/stdin
25828	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25829	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25830  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25831	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25832  * )   ac_file_in=$ac_file.in ;;
25833  esac
25834
25835  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25836  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25838	 X"$ac_file" : 'X\(//\)[^/]' \| \
25839	 X"$ac_file" : 'X\(//\)$' \| \
25840	 X"$ac_file" : 'X\(/\)' \| \
25841	 .     : '\(.\)' 2>/dev/null ||
25842echo X"$ac_file" |
25843    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25844  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25845  	  /^X\(\/\/\)$/{ s//\1/; q; }
25846  	  /^X\(\/\).*/{ s//\1/; q; }
25847  	  s/.*/./; q'`
25848  { if $as_mkdir_p; then
25849    mkdir -p "$ac_dir"
25850  else
25851    as_dir="$ac_dir"
25852    as_dirs=
25853    while test ! -d "$as_dir"; do
25854      as_dirs="$as_dir $as_dirs"
25855      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25857	 X"$as_dir" : 'X\(//\)[^/]' \| \
25858	 X"$as_dir" : 'X\(//\)$' \| \
25859	 X"$as_dir" : 'X\(/\)' \| \
25860	 .     : '\(.\)' 2>/dev/null ||
25861echo X"$as_dir" |
25862    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25863  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25864  	  /^X\(\/\/\)$/{ s//\1/; q; }
25865  	  /^X\(\/\).*/{ s//\1/; q; }
25866  	  s/.*/./; q'`
25867    done
25868    test ! -n "$as_dirs" || mkdir $as_dirs
25869  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25870echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25871   { (exit 1); exit 1; }; }; }
25872
25873  ac_builddir=.
25874
25875if test "$ac_dir" != .; then
25876  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25877  # A "../" for each directory in $ac_dir_suffix.
25878  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25879else
25880  ac_dir_suffix= ac_top_builddir=
25881fi
25882
25883case $srcdir in
25884  .)  # No --srcdir option.  We are building in place.
25885    ac_srcdir=.
25886    if test -z "$ac_top_builddir"; then
25887       ac_top_srcdir=.
25888    else
25889       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25890    fi ;;
25891  [\\/]* | ?:[\\/]* )  # Absolute path.
25892    ac_srcdir=$srcdir$ac_dir_suffix;
25893    ac_top_srcdir=$srcdir ;;
25894  *) # Relative path.
25895    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25896    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25897esac
25898
25899# Do not use `cd foo && pwd` to compute absolute paths, because
25900# the directories may not exist.
25901case `pwd` in
25902.) ac_abs_builddir="$ac_dir";;
25903*)
25904  case "$ac_dir" in
25905  .) ac_abs_builddir=`pwd`;;
25906  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25907  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25908  esac;;
25909esac
25910case $ac_abs_builddir in
25911.) ac_abs_top_builddir=${ac_top_builddir}.;;
25912*)
25913  case ${ac_top_builddir}. in
25914  .) ac_abs_top_builddir=$ac_abs_builddir;;
25915  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25916  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25917  esac;;
25918esac
25919case $ac_abs_builddir in
25920.) ac_abs_srcdir=$ac_srcdir;;
25921*)
25922  case $ac_srcdir in
25923  .) ac_abs_srcdir=$ac_abs_builddir;;
25924  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25925  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25926  esac;;
25927esac
25928case $ac_abs_builddir in
25929.) ac_abs_top_srcdir=$ac_top_srcdir;;
25930*)
25931  case $ac_top_srcdir in
25932  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25933  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25934  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25935  esac;;
25936esac
25937
25938
25939  case $INSTALL in
25940  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25941  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25942  esac
25943
25944  if test x"$ac_file" != x-; then
25945    { echo "$as_me:$LINENO: creating $ac_file" >&5
25946echo "$as_me: creating $ac_file" >&6;}
25947    rm -f "$ac_file"
25948  fi
25949  # Let's still pretend it is `configure' which instantiates (i.e., don't
25950  # use $as_me), people would be surprised to read:
25951  #    /* config.h.  Generated by config.status.  */
25952  if test x"$ac_file" = x-; then
25953    configure_input=
25954  else
25955    configure_input="$ac_file.  "
25956  fi
25957  configure_input=$configure_input"Generated from `echo $ac_file_in |
25958				     sed 's,.*/,,'` by configure."
25959
25960  # First look for the input files in the build tree, otherwise in the
25961  # src tree.
25962  ac_file_inputs=`IFS=:
25963    for f in $ac_file_in; do
25964      case $f in
25965      -) echo $tmp/stdin ;;
25966      [\\/$]*)
25967	 # Absolute (can't be DOS-style, as IFS=:)
25968	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25969echo "$as_me: error: cannot find input file: $f" >&2;}
25970   { (exit 1); exit 1; }; }
25971	 echo "$f";;
25972      *) # Relative
25973	 if test -f "$f"; then
25974	   # Build tree
25975	   echo "$f"
25976	 elif test -f "$srcdir/$f"; then
25977	   # Source tree
25978	   echo "$srcdir/$f"
25979	 else
25980	   # /dev/null tree
25981	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25982echo "$as_me: error: cannot find input file: $f" >&2;}
25983   { (exit 1); exit 1; }; }
25984	 fi;;
25985      esac
25986    done` || { (exit 1); exit 1; }
25987_ACEOF
25988cat >>$CONFIG_STATUS <<_ACEOF
25989  sed "$ac_vpsub
25990$extrasub
25991_ACEOF
25992cat >>$CONFIG_STATUS <<\_ACEOF
25993:t
25994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25995s,@configure_input@,$configure_input,;t t
25996s,@srcdir@,$ac_srcdir,;t t
25997s,@abs_srcdir@,$ac_abs_srcdir,;t t
25998s,@top_srcdir@,$ac_top_srcdir,;t t
25999s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26000s,@builddir@,$ac_builddir,;t t
26001s,@abs_builddir@,$ac_abs_builddir,;t t
26002s,@top_builddir@,$ac_top_builddir,;t t
26003s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26004s,@INSTALL@,$ac_INSTALL,;t t
26005" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26006  rm -f $tmp/stdin
26007  if test x"$ac_file" != x-; then
26008    mv $tmp/out $ac_file
26009  else
26010    cat $tmp/out
26011    rm -f $tmp/out
26012  fi
26013
26014done
26015_ACEOF
26016
26017cat >>$CONFIG_STATUS <<\_ACEOF
26018
26019{ (exit 0); exit 0; }
26020_ACEOF
26021chmod +x $CONFIG_STATUS
26022ac_clean_files=$ac_clean_files_save
26023
26024
26025# configure is writing to config.log, and then calls config.status.
26026# config.status does its own redirection, appending to config.log.
26027# Unfortunately, on DOS this fails, as config.log is still kept open
26028# by configure, so config.status won't be able to write to it; its
26029# output is simply discarded.  So we exec the FD to /dev/null,
26030# effectively closing config.log, so it can be properly (re)opened and
26031# appended to by config.status.  When coming back to configure, we
26032# need to make the FD available again.
26033if test "$no_create" != yes; then
26034  ac_cs_success=:
26035  ac_config_status_args=
26036  test "$silent" = yes &&
26037    ac_config_status_args="$ac_config_status_args --quiet"
26038  exec 5>/dev/null
26039  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26040  exec 5>>config.log
26041  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26042  # would make configure fail if this is the last instruction.
26043  $ac_cs_success || { (exit 1); exit 1; }
26044fi
26045
26046
26047echo ""
26048echo "Configure finished!"
26049echo "              Do:  'make' to compile FOX."
26050echo "            Then:  'make install' to install it."
26051echo ""
26052
26053