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="configure.ac"
429ac_subdirs_all="$ac_subdirs_all libltdl"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os VERSION_MA VERSION_MI INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs CPP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTDLINCL LIBLTDL MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_LIBS GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS PKG_CONFIG GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS GTK_CONFIG GTK_CFLAGS GTK_LIBS HAVE_GTK_TRUE HAVE_GTK_FALSE SRC_MENU ALSA_CFLAGS ALSA_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS SRC_AUDIO SRC_CDROM ALSAMIX_H SRC_MIDI SDL_CONFIG SDL_CFLAGS SDL_LIBS SDL SRC_GRAPHDEV JOY_S FT2_CONFIG FT2_CFLAGS FT2_LIBS FREETYPE_LIBS FREETYPE_INCLUDES SRC_FONT HAVE_NASM SRC_ABLEND VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS HAVE_VORBIS_TRUE HAVE_VORBIS_FALSE ENABLE_JPEG_TRUE ENABLE_JPEG_FALSE JPEG_CFLAGS JPEG_LIBS DEBUG_CFLAGS EXTRACFLAGS EXTRALIBS EXTRALDFLAGS LIBOBJS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014X features:
1015  --x-includes=DIR    X include files are in DIR
1016  --x-libraries=DIR   X library files are in DIR
1017
1018System types:
1019  --build=BUILD     configure for building on BUILD [guessed]
1020  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021  --target=TARGET   configure for building compilers for TARGET [HOST]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026
1027  cat <<\_ACEOF
1028
1029Optional Features:
1030  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032  --enable-maintainer-mode  enable make rules and dependencies not useful
1033			  (and sometimes confusing) to the casual installer
1034  --disable-dependency-tracking  speeds up one-time build
1035  --enable-dependency-tracking   do not reject slow dependency extractors
1036  --enable-ltdl-install   install libltdl
1037  --enable-shared[=PKGS]
1038                          build shared libraries [default=yes]
1039  --enable-static[=PKGS]
1040                          build static libraries [default=yes]
1041  --enable-fast-install[=PKGS]
1042                          optimize for fast installation [default=yes]
1043  --disable-libtool-lock  avoid locking (might break parallel builds)
1044  --disable-rpath         do not hardcode runtime library paths
1045  --disable-nls           do not use Native Language Support
1046  --disable-glibtest       Do not try to compile and run a test GLIB program
1047  --disable-glibtest      do not try to compile and run a test GLIB program
1048  --enable-gtk            Enable gtk-based widget default=yes
1049  --disable-gtktest       Do not try to compile and run a test GTK program
1050  --disable-gtktest       do not try to compile and run a test GTK+ program
1051  --enable-audio=mode_list  Enable audio (Specify comma separated mode list):
1052                              default:  Automatically select audio device.
1053                              oss:      OSS (Open Sound System) device
1054                              sun:      sun style interface
1055                              alsa:     ALSA pcm device
1056                              esd:      EsounD
1057  --disable-alsatest      Do not try to compile and run a test Alsa program
1058  --disable-esdtest       Do not try to compile and run a test ESD program
1059  --enable-cdrom=mode_list  Enable CD-adio (Specify comma separated mode list):
1060                              (default:  Automatically select cdrom device)
1061                              linux:    linux API (Linux/Solaris)
1062                              bsd:      BSD API (FreeBSD/NetBSD/OpenBSD)
1063                              irix:     IRIX API
1064                              mp3:      play mp3 file using external/piped player
1065  --enable-bgr            Color order is BGR default is no for most arch
1066                          You should check whether your X server is RGB or
1067                          BGR order, especially in sparc architecture.
1068  --enable-midi=mode_list  Enable midi (Specify comma separated mode list):
1069                             extp:     External midi player(default)
1070                             raw:      Raw midi interface
1071                             seq:      Sequencer interface
1072  --enable-qmidi          No display midi stdout
1073  --enable-sdl            SDL default=no
1074  --disable-sdltest       Do not try to compile and run a test SDL program
1075  --enable-joy            Use joystick (only linux and SDL) default=no
1076       --disable-freetypetest  Do not try to compile and run a test FreeType
1077                          program
1078  --enable-xrender        Use XRender extension (future work) default=disable
1079  --enable-mmx            MMX support default=yes
1080  --disable-oggtest       Do not try to compile and run a test Ogg program
1081  --disable-vorbistest       Do not try to compile and run a test Vorbis program
1082  --enable-debug          Turn on debugging default=no
1083
1084Optional Packages:
1085  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1086  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1087  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1088  --with-pic              try to use only PIC/non-PIC objects [default=use
1089                          both]
1090  --with-tags[=TAGS]
1091                          include additional configurations [automatic]
1092  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1093  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1094  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1095  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1096  --without-libintl-prefix     don't search for libintl in includedir and libdir
1097  --with-x                use the X Window System
1098  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)
1099  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
1100  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1101  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1102  --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1103  --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1104  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1105  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1106  --with-default-output=<mode>  Specify default output mode (optional):
1107                                   default|oss|alsa|esd|sun
1108  --with-cdromdev=#       CDROM Device Name. [default=/dev/cdrom]
1109  --with-locale=LOCALE    locale name you want to use(ex. ja_JP.ujis)
1110  --with-alsa-card=#      ALSA Card No.
1111  --with-alsa-pcmdev=#    ALSA PCM device No.
1112  --with-alsa-mixerdev=#  ALSA Mixer device No.
1113  --with-oss-audiodev=DEVFILE DSP DEVICE
1114  --with-oss-mixerdev=DEVFILE MIXER DEVICE
1115  --with-midi-player=xxx  External Midi Player default=playmidi -4
1116  --with-mididev=#        MIDI Raw Device Name. [default=/dev/midi]
1117  --with-seqdev=#         MIDI Sequencer Device Name. [default=/dev/sequencer]
1118  --with-cachesize=#      General Cache size (MB)
1119  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1120  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1121  --with-joydev=#         Joystick Device Name. [default=/dev/js0]
1122       --with-ft-prefix=PREFIX Prefix where FreeType is installed (optional)
1123       --with-ft-exec-prefix=PREFIX
1124                          Exec prefix where FreeType is installed (optional)
1125  --with-freetype-prefix=PFX  Prefix for Freetype (optional)
1126  --with-ogg-prefix=PFX   Prefix where libogg is installed (optional)
1127  --with-vorbis-prefix=PFX   Prefix where libvorbis is installed (optional)
1128  --with-libjpeg-prefix=PFX Prefix where libjpeg is install(optional)
1129
1130Some influential environment variables:
1131  CC          C compiler command
1132  CFLAGS      C compiler flags
1133  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1134              nonstandard directory <lib dir>
1135  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1136              headers in a nonstandard directory <include dir>
1137  CPP         C preprocessor
1138  CXX         C++ compiler command
1139  CXXFLAGS    C++ compiler flags
1140  CXXCPP      C++ preprocessor
1141  F77         Fortran 77 compiler command
1142  FFLAGS      Fortran 77 compiler flags
1143
1144Use these variables to override the choices made by `configure' or to help
1145it to find libraries and programs with nonstandard names/locations.
1146
1147_ACEOF
1148fi
1149
1150if test "$ac_init_help" = "recursive"; then
1151  # If there are subdirs, report their specific --help.
1152  ac_popdir=`pwd`
1153  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1154    test -d $ac_dir || continue
1155    ac_builddir=.
1156
1157if test "$ac_dir" != .; then
1158  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1159  # A "../" for each directory in $ac_dir_suffix.
1160  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1161else
1162  ac_dir_suffix= ac_top_builddir=
1163fi
1164
1165case $srcdir in
1166  .)  # No --srcdir option.  We are building in place.
1167    ac_srcdir=.
1168    if test -z "$ac_top_builddir"; then
1169       ac_top_srcdir=.
1170    else
1171       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1172    fi ;;
1173  [\\/]* | ?:[\\/]* )  # Absolute path.
1174    ac_srcdir=$srcdir$ac_dir_suffix;
1175    ac_top_srcdir=$srcdir ;;
1176  *) # Relative path.
1177    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1178    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1179esac
1180
1181# Do not use `cd foo && pwd` to compute absolute paths, because
1182# the directories may not exist.
1183case `pwd` in
1184.) ac_abs_builddir="$ac_dir";;
1185*)
1186  case "$ac_dir" in
1187  .) ac_abs_builddir=`pwd`;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1189  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_top_builddir=${ac_top_builddir}.;;
1194*)
1195  case ${ac_top_builddir}. in
1196  .) ac_abs_top_builddir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1198  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_srcdir=$ac_srcdir;;
1203*)
1204  case $ac_srcdir in
1205  .) ac_abs_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1207  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_srcdir=$ac_top_srcdir;;
1212*)
1213  case $ac_top_srcdir in
1214  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1216  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1217  esac;;
1218esac
1219
1220    cd $ac_dir
1221    # Check for guested configure; otherwise get Cygnus style configure.
1222    if test -f $ac_srcdir/configure.gnu; then
1223      echo
1224      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1225    elif test -f $ac_srcdir/configure; then
1226      echo
1227      $SHELL $ac_srcdir/configure  --help=recursive
1228    elif test -f $ac_srcdir/configure.ac ||
1229	   test -f $ac_srcdir/configure.in; then
1230      echo
1231      $ac_configure --help
1232    else
1233      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1234    fi
1235    cd $ac_popdir
1236  done
1237fi
1238
1239test -n "$ac_init_help" && exit 0
1240if $ac_init_version; then
1241  cat <<\_ACEOF
1242
1243Copyright (C) 2003 Free Software Foundation, Inc.
1244This configure script is free software; the Free Software Foundation
1245gives unlimited permission to copy, distribute and modify it.
1246_ACEOF
1247  exit 0
1248fi
1249exec 5>config.log
1250cat >&5 <<_ACEOF
1251This file contains any messages produced by compilers while
1252running configure, to aid debugging if configure makes a mistake.
1253
1254It was created by $as_me, which was
1255generated by GNU Autoconf 2.59.  Invocation command line was
1256
1257  $ $0 $@
1258
1259_ACEOF
1260{
1261cat <<_ASUNAME
1262## --------- ##
1263## Platform. ##
1264## --------- ##
1265
1266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1267uname -m = `(uname -m) 2>/dev/null || echo unknown`
1268uname -r = `(uname -r) 2>/dev/null || echo unknown`
1269uname -s = `(uname -s) 2>/dev/null || echo unknown`
1270uname -v = `(uname -v) 2>/dev/null || echo unknown`
1271
1272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1273/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1274
1275/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1276/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1278hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1279/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1280/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1281/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1282
1283_ASUNAME
1284
1285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286for as_dir in $PATH
1287do
1288  IFS=$as_save_IFS
1289  test -z "$as_dir" && as_dir=.
1290  echo "PATH: $as_dir"
1291done
1292
1293} >&5
1294
1295cat >&5 <<_ACEOF
1296
1297
1298## ----------- ##
1299## Core tests. ##
1300## ----------- ##
1301
1302_ACEOF
1303
1304
1305# Keep a trace of the command line.
1306# Strip out --no-create and --no-recursion so they do not pile up.
1307# Strip out --silent because we don't want to record it for future runs.
1308# Also quote any args containing shell meta-characters.
1309# Make two passes to allow for proper duplicate-argument suppression.
1310ac_configure_args=
1311ac_configure_args0=
1312ac_configure_args1=
1313ac_sep=
1314ac_must_keep_next=false
1315for ac_pass in 1 2
1316do
1317  for ac_arg
1318  do
1319    case $ac_arg in
1320    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1321    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1322    | -silent | --silent | --silen | --sile | --sil)
1323      continue ;;
1324    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1326    esac
1327    case $ac_pass in
1328    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1329    2)
1330      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1331      if test $ac_must_keep_next = true; then
1332	ac_must_keep_next=false # Got value, back to normal.
1333      else
1334	case $ac_arg in
1335	  *=* | --config-cache | -C | -disable-* | --disable-* \
1336	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1337	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1338	  | -with-* | --with-* | -without-* | --without-* | --x)
1339	    case "$ac_configure_args0 " in
1340	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1341	    esac
1342	    ;;
1343	  -* ) ac_must_keep_next=true ;;
1344	esac
1345      fi
1346      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1347      # Get rid of the leading space.
1348      ac_sep=" "
1349      ;;
1350    esac
1351  done
1352done
1353$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1354$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355
1356# When interrupted or exit'd, cleanup temporary files, and complete
1357# config.log.  We remove comments because anyway the quotes in there
1358# would cause problems or look ugly.
1359# WARNING: Be sure not to use single quotes in there, as some shells,
1360# such as our DU 5.0 friend, will then `close' the trap.
1361trap 'exit_status=$?
1362  # Save into config.log some information that might help in debugging.
1363  {
1364    echo
1365
1366    cat <<\_ASBOX
1367## ---------------- ##
1368## Cache variables. ##
1369## ---------------- ##
1370_ASBOX
1371    echo
1372    # The following way of writing the cache mishandles newlines in values,
1373{
1374  (set) 2>&1 |
1375    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1376    *ac_space=\ *)
1377      sed -n \
1378	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1379	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380      ;;
1381    *)
1382      sed -n \
1383	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1384      ;;
1385    esac;
1386}
1387    echo
1388
1389    cat <<\_ASBOX
1390## ----------------- ##
1391## Output variables. ##
1392## ----------------- ##
1393_ASBOX
1394    echo
1395    for ac_var in $ac_subst_vars
1396    do
1397      eval ac_val=$`echo $ac_var`
1398      echo "$ac_var='"'"'$ac_val'"'"'"
1399    done | sort
1400    echo
1401
1402    if test -n "$ac_subst_files"; then
1403      cat <<\_ASBOX
1404## ------------- ##
1405## Output files. ##
1406## ------------- ##
1407_ASBOX
1408      echo
1409      for ac_var in $ac_subst_files
1410      do
1411	eval ac_val=$`echo $ac_var`
1412	echo "$ac_var='"'"'$ac_val'"'"'"
1413      done | sort
1414      echo
1415    fi
1416
1417    if test -s confdefs.h; then
1418      cat <<\_ASBOX
1419## ----------- ##
1420## confdefs.h. ##
1421## ----------- ##
1422_ASBOX
1423      echo
1424      sed "/^$/d" confdefs.h | sort
1425      echo
1426    fi
1427    test "$ac_signal" != 0 &&
1428      echo "$as_me: caught signal $ac_signal"
1429    echo "$as_me: exit $exit_status"
1430  } >&5
1431  rm -f core *.core &&
1432  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1433    exit $exit_status
1434     ' 0
1435for ac_signal in 1 2 13 15; do
1436  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1437done
1438ac_signal=0
1439
1440# confdefs.h avoids OS command line length limits that DEFS can exceed.
1441rm -rf conftest* confdefs.h
1442# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1443echo >confdefs.h
1444
1445# Predefined preprocessor variables.
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_NAME "$PACKAGE_NAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_VERSION "$PACKAGE_VERSION"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_STRING "$PACKAGE_STRING"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1469_ACEOF
1470
1471
1472# Let the site file select an alternate cache file if it wants to.
1473# Prefer explicitly selected file to automatically selected ones.
1474if test -z "$CONFIG_SITE"; then
1475  if test "x$prefix" != xNONE; then
1476    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1477  else
1478    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1479  fi
1480fi
1481for ac_site_file in $CONFIG_SITE; do
1482  if test -r "$ac_site_file"; then
1483    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1484echo "$as_me: loading site script $ac_site_file" >&6;}
1485    sed 's/^/| /' "$ac_site_file" >&5
1486    . "$ac_site_file"
1487  fi
1488done
1489
1490if test -r "$cache_file"; then
1491  # Some versions of bash will fail to source /dev/null (special
1492  # files actually), so we avoid doing that.
1493  if test -f "$cache_file"; then
1494    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1495echo "$as_me: loading cache $cache_file" >&6;}
1496    case $cache_file in
1497      [\\/]* | ?:[\\/]* ) . $cache_file;;
1498      *)                      . ./$cache_file;;
1499    esac
1500  fi
1501else
1502  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1503echo "$as_me: creating cache $cache_file" >&6;}
1504  >$cache_file
1505fi
1506
1507# Check that the precious variables saved in the cache have kept the same
1508# value.
1509ac_cache_corrupted=false
1510for ac_var in `(set) 2>&1 |
1511	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1512  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1513  eval ac_new_set=\$ac_env_${ac_var}_set
1514  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1515  eval ac_new_val="\$ac_env_${ac_var}_value"
1516  case $ac_old_set,$ac_new_set in
1517    set,)
1518      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1519echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1520      ac_cache_corrupted=: ;;
1521    ,set)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,);;
1526    *)
1527      if test "x$ac_old_val" != "x$ac_new_val"; then
1528	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1529echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1530	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1531echo "$as_me:   former value:  $ac_old_val" >&2;}
1532	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1533echo "$as_me:   current value: $ac_new_val" >&2;}
1534	ac_cache_corrupted=:
1535      fi;;
1536  esac
1537  # Pass precious variables to config.status.
1538  if test "$ac_new_set" = set; then
1539    case $ac_new_val in
1540    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1541      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1542    *) ac_arg=$ac_var=$ac_new_val ;;
1543    esac
1544    case " $ac_configure_args " in
1545      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1546      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1547    esac
1548  fi
1549done
1550if $ac_cache_corrupted; then
1551  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1552echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1553  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1554echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1555   { (exit 1); exit 1; }; }
1556fi
1557
1558ac_ext=c
1559ac_cpp='$CPP $CPPFLAGS'
1560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1562ac_compiler_gnu=$ac_cv_c_compiler_gnu
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582ac_aux_dir=
1583for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1584  if test -f $ac_dir/install-sh; then
1585    ac_aux_dir=$ac_dir
1586    ac_install_sh="$ac_aux_dir/install-sh -c"
1587    break
1588  elif test -f $ac_dir/install.sh; then
1589    ac_aux_dir=$ac_dir
1590    ac_install_sh="$ac_aux_dir/install.sh -c"
1591    break
1592  elif test -f $ac_dir/shtool; then
1593    ac_aux_dir=$ac_dir
1594    ac_install_sh="$ac_aux_dir/shtool install -c"
1595    break
1596  fi
1597done
1598if test -z "$ac_aux_dir"; then
1599  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1600echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1601   { (exit 1); exit 1; }; }
1602fi
1603ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1604ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1605ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1606
1607# Make sure we can run config.sub.
1608$ac_config_sub sun4 >/dev/null 2>&1 ||
1609  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1610echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1611   { (exit 1); exit 1; }; }
1612
1613echo "$as_me:$LINENO: checking build system type" >&5
1614echo $ECHO_N "checking build system type... $ECHO_C" >&6
1615if test "${ac_cv_build+set}" = set; then
1616  echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618  ac_cv_build_alias=$build_alias
1619test -z "$ac_cv_build_alias" &&
1620  ac_cv_build_alias=`$ac_config_guess`
1621test -z "$ac_cv_build_alias" &&
1622  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1623echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1624   { (exit 1); exit 1; }; }
1625ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1626  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1627echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1628   { (exit 1); exit 1; }; }
1629
1630fi
1631echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1632echo "${ECHO_T}$ac_cv_build" >&6
1633build=$ac_cv_build
1634build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
1638
1639echo "$as_me:$LINENO: checking host system type" >&5
1640echo $ECHO_N "checking host system type... $ECHO_C" >&6
1641if test "${ac_cv_host+set}" = set; then
1642  echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644  ac_cv_host_alias=$host_alias
1645test -z "$ac_cv_host_alias" &&
1646  ac_cv_host_alias=$ac_cv_build_alias
1647ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1648  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1649echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1650   { (exit 1); exit 1; }; }
1651
1652fi
1653echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1654echo "${ECHO_T}$ac_cv_host" >&6
1655host=$ac_cv_host
1656host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
1660
1661echo "$as_me:$LINENO: checking target system type" >&5
1662echo $ECHO_N "checking target system type... $ECHO_C" >&6
1663if test "${ac_cv_target+set}" = set; then
1664  echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666  ac_cv_target_alias=$target_alias
1667test "x$ac_cv_target_alias" = "x" &&
1668  ac_cv_target_alias=$ac_cv_host_alias
1669ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1676echo "${ECHO_T}$ac_cv_target" >&6
1677target=$ac_cv_target
1678target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683# The aliases save the names the user supplied, while $host etc.
1684# will get canonicalized.
1685test -n "$target_alias" &&
1686  test "$program_prefix$program_suffix$program_transform_name" = \
1687    NONENONEs,x,x, &&
1688  program_prefix=${target_alias}-
1689
1690
1691
1692EXTRACFLAGS=
1693EXTRALIBS=
1694EXTRALDFLAGS="-rdynamic"
1695
1696XSYS35_MAJOR=1
1697XSYS35_MINOR=7
1698XSYS35_MICRO=3
1699XSYS35_EXTRA=pre5
1700
1701XSYS35_VERSION=$XSYS35_MAJOR.$XSYS35_MINOR.$XSYS35_MICRO$XSYS35_EXTRA
1702VERSION_MA=$XSYS35_MAJOR.$XSYS35_MINOR.$XSYS35_MICRO
1703VERSION_MI=$XSYS35_EXTRA
1704
1705
1706
1707VERSION=$XSYS35_VERSION
1708PACKAGE=xsystem35
1709
1710am__api_version="1.9"
1711# Find a good install program.  We prefer a C program (faster),
1712# so one script is as good as another.  But avoid the broken or
1713# incompatible versions:
1714# SysV /etc/install, /usr/sbin/install
1715# SunOS /usr/etc/install
1716# IRIX /sbin/install
1717# AIX /bin/install
1718# AmigaOS /C/install, which installs bootblocks on floppy discs
1719# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722# OS/2's system install, which has a completely different semantic
1723# ./install, which can be erroneously created by make from ./install.sh.
1724echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1725echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1726if test -z "$INSTALL"; then
1727if test "${ac_cv_path_install+set}" = set; then
1728  echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733  IFS=$as_save_IFS
1734  test -z "$as_dir" && as_dir=.
1735  # Account for people who put trailing slashes in PATH elements.
1736case $as_dir/ in
1737  ./ | .// | /cC/* | \
1738  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1739  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1740  /usr/ucb/* ) ;;
1741  *)
1742    # OSF1 and SCO ODT 3.0 have their own names for install.
1743    # Don't use installbsd from OSF since it installs stuff as root
1744    # by default.
1745    for ac_prog in ginstall scoinst install; do
1746      for ac_exec_ext in '' $ac_executable_extensions; do
1747	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1748	  if test $ac_prog = install &&
1749	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750	    # AIX install.  It has an incompatible calling convention.
1751	    :
1752	  elif test $ac_prog = install &&
1753	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1754	    # program-specific install script used by HP pwplus--don't use.
1755	    :
1756	  else
1757	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758	    break 3
1759	  fi
1760	fi
1761      done
1762    done
1763    ;;
1764esac
1765done
1766
1767
1768fi
1769  if test "${ac_cv_path_install+set}" = set; then
1770    INSTALL=$ac_cv_path_install
1771  else
1772    # As a last resort, use the slow shell script.  We don't cache a
1773    # path for INSTALL within a source directory, because that will
1774    # break other packages using the cache if that directory is
1775    # removed, or if the path is relative.
1776    INSTALL=$ac_install_sh
1777  fi
1778fi
1779echo "$as_me:$LINENO: result: $INSTALL" >&5
1780echo "${ECHO_T}$INSTALL" >&6
1781
1782# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783# It thinks the first close brace ends the variable substitution.
1784test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1785
1786test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1787
1788test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1789
1790echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1792# Just in case
1793sleep 1
1794echo timestamp > conftest.file
1795# Do `set' in a subshell so we don't clobber the current shell's
1796# arguments.  Must try -L first in case configure is actually a
1797# symlink; some systems play weird games with the mod time of symlinks
1798# (eg FreeBSD returns the mod time of the symlink's containing
1799# directory).
1800if (
1801   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802   if test "$*" = "X"; then
1803      # -L didn't work.
1804      set X `ls -t $srcdir/configure conftest.file`
1805   fi
1806   rm -f conftest.file
1807   if test "$*" != "X $srcdir/configure conftest.file" \
1808      && test "$*" != "X conftest.file $srcdir/configure"; then
1809
1810      # If neither matched, then we have a broken ls.  This can happen
1811      # if, for instance, CONFIG_SHELL is bash and it inherits a
1812      # broken ls alias from the environment.  This has actually
1813      # happened.  Such a system could not be considered "sane".
1814      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1815alias in your environment" >&5
1816echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1817alias in your environment" >&2;}
1818   { (exit 1); exit 1; }; }
1819   fi
1820
1821   test "$2" = conftest.file
1822   )
1823then
1824   # Ok.
1825   :
1826else
1827   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828Check your system clock" >&5
1829echo "$as_me: error: newly created file is older than distributed files!
1830Check your system clock" >&2;}
1831   { (exit 1); exit 1; }; }
1832fi
1833echo "$as_me:$LINENO: result: yes" >&5
1834echo "${ECHO_T}yes" >&6
1835test "$program_prefix" != NONE &&
1836  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1837# Use a double $ so make ignores it.
1838test "$program_suffix" != NONE &&
1839  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1840# Double any \ or $.  echo might interpret backslashes.
1841# By default was `s,x,x', remove it if useless.
1842cat <<\_ACEOF >conftest.sed
1843s/[\\$]/&&/g;s/;s,x,x,$//
1844_ACEOF
1845program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846rm conftest.sed
1847
1848# expand $ac_aux_dir to an absolute path
1849am_aux_dir=`cd $ac_aux_dir && pwd`
1850
1851test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852# Use eval to expand $SHELL
1853if eval "$MISSING --run true"; then
1854  am_missing_run="$MISSING --run "
1855else
1856  am_missing_run=
1857  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1859fi
1860
1861if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1862  # We used to keeping the `.' as first argument, in order to
1863  # allow $(mkdir_p) to be used without argument.  As in
1864  #   $(mkdir_p) $(somedir)
1865  # where $(somedir) is conditionally defined.  However this is wrong
1866  # for two reasons:
1867  #  1. if the package is installed by a user who cannot write `.'
1868  #     make install will fail,
1869  #  2. the above comment should most certainly read
1870  #     $(mkdir_p) $(DESTDIR)$(somedir)
1871  #     so it does not work when $(somedir) is undefined and
1872  #     $(DESTDIR) is not.
1873  #  To support the latter case, we have to write
1874  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1875  #  so the `.' trick is pointless.
1876  mkdir_p='mkdir -p --'
1877else
1878  # On NextStep and OpenStep, the `mkdir' command does not
1879  # recognize any option.  It will interpret all options as
1880  # directories to create, and then abort because `.' already
1881  # exists.
1882  for d in ./-p ./--version;
1883  do
1884    test -d $d && rmdir $d
1885  done
1886  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1887  if test -f "$ac_aux_dir/mkinstalldirs"; then
1888    mkdir_p='$(mkinstalldirs)'
1889  else
1890    mkdir_p='$(install_sh) -d'
1891  fi
1892fi
1893
1894for ac_prog in gawk mawk nawk awk
1895do
1896  # Extract the first word of "$ac_prog", so it can be a program name with args.
1897set dummy $ac_prog; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_AWK+set}" = set; then
1901  echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903  if test -n "$AWK"; then
1904  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1905else
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909  IFS=$as_save_IFS
1910  test -z "$as_dir" && as_dir=.
1911  for ac_exec_ext in '' $ac_executable_extensions; do
1912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913    ac_cv_prog_AWK="$ac_prog"
1914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915    break 2
1916  fi
1917done
1918done
1919
1920fi
1921fi
1922AWK=$ac_cv_prog_AWK
1923if test -n "$AWK"; then
1924  echo "$as_me:$LINENO: result: $AWK" >&5
1925echo "${ECHO_T}$AWK" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931  test -n "$AWK" && break
1932done
1933
1934echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1935echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1936set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1937if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  cat >conftest.make <<\_ACEOF
1941all:
1942	@echo 'ac_maketemp="$(MAKE)"'
1943_ACEOF
1944# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1945eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1946if test -n "$ac_maketemp"; then
1947  eval ac_cv_prog_make_${ac_make}_set=yes
1948else
1949  eval ac_cv_prog_make_${ac_make}_set=no
1950fi
1951rm -f conftest.make
1952fi
1953if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1954  echo "$as_me:$LINENO: result: yes" >&5
1955echo "${ECHO_T}yes" >&6
1956  SET_MAKE=
1957else
1958  echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
1960  SET_MAKE="MAKE=${MAKE-make}"
1961fi
1962
1963rm -rf .tst 2>/dev/null
1964mkdir .tst 2>/dev/null
1965if test -d .tst; then
1966  am__leading_dot=.
1967else
1968  am__leading_dot=_
1969fi
1970rmdir .tst 2>/dev/null
1971
1972# test to see if srcdir already configured
1973if test "`cd $srcdir && pwd`" != "`pwd`" &&
1974   test -f $srcdir/config.status; then
1975  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1976echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1977   { (exit 1); exit 1; }; }
1978fi
1979
1980# test whether we have cygpath
1981if test -z "$CYGPATH_W"; then
1982  if (cygpath --version) >/dev/null 2>/dev/null; then
1983    CYGPATH_W='cygpath -w'
1984  else
1985    CYGPATH_W=echo
1986  fi
1987fi
1988
1989
1990# Define the identity of the package.
1991 PACKAGE=$PACKAGE
1992 VERSION=$VERSION
1993
1994
1995cat >>confdefs.h <<_ACEOF
1996#define PACKAGE "$PACKAGE"
1997_ACEOF
1998
1999
2000cat >>confdefs.h <<_ACEOF
2001#define VERSION "$VERSION"
2002_ACEOF
2003
2004# Some tools Automake needs.
2005
2006ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2007
2008
2009AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2010
2011
2012AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2013
2014
2015AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2016
2017
2018MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2019
2020install_sh=${install_sh-"$am_aux_dir/install-sh"}
2021
2022# Installed binaries are usually stripped using `strip' when the user
2023# run `make install-strip'.  However `strip' might not be the right
2024# tool to use in cross-compilation environments, therefore Automake
2025# will honor the `STRIP' environment variable to overrule this program.
2026if test "$cross_compiling" != no; then
2027  if test -n "$ac_tool_prefix"; then
2028  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2029set dummy ${ac_tool_prefix}strip; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032if test "${ac_cv_prog_STRIP+set}" = set; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  if test -n "$STRIP"; then
2036  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041  IFS=$as_save_IFS
2042  test -z "$as_dir" && as_dir=.
2043  for ac_exec_ext in '' $ac_executable_extensions; do
2044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047    break 2
2048  fi
2049done
2050done
2051
2052fi
2053fi
2054STRIP=$ac_cv_prog_STRIP
2055if test -n "$STRIP"; then
2056  echo "$as_me:$LINENO: result: $STRIP" >&5
2057echo "${ECHO_T}$STRIP" >&6
2058else
2059  echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
2063fi
2064if test -z "$ac_cv_prog_STRIP"; then
2065  ac_ct_STRIP=$STRIP
2066  # Extract the first word of "strip", so it can be a program name with args.
2067set dummy strip; ac_word=$2
2068echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  if test -n "$ac_ct_STRIP"; then
2074  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2075else
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079  IFS=$as_save_IFS
2080  test -z "$as_dir" && as_dir=.
2081  for ac_exec_ext in '' $ac_executable_extensions; do
2082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083    ac_cv_prog_ac_ct_STRIP="strip"
2084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085    break 2
2086  fi
2087done
2088done
2089
2090  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2091fi
2092fi
2093ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2094if test -n "$ac_ct_STRIP"; then
2095  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2096echo "${ECHO_T}$ac_ct_STRIP" >&6
2097else
2098  echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6
2100fi
2101
2102  STRIP=$ac_ct_STRIP
2103else
2104  STRIP="$ac_cv_prog_STRIP"
2105fi
2106
2107fi
2108INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2109
2110# We need awk for the "check" target.  The system "awk" is bad on
2111# some platforms.
2112# Always define AMTAR for backward compatibility.
2113
2114AMTAR=${AMTAR-"${am_missing_run}tar"}
2115
2116am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2117
2118
2119
2120
2121
2122          ac_config_headers="$ac_config_headers config.h"
2123
2124echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2125echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2126    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2127if test "${enable_maintainer_mode+set}" = set; then
2128  enableval="$enable_maintainer_mode"
2129  USE_MAINTAINER_MODE=$enableval
2130else
2131  USE_MAINTAINER_MODE=no
2132fi;
2133  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2134echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2135
2136
2137if test $USE_MAINTAINER_MODE = yes; then
2138  MAINTAINER_MODE_TRUE=
2139  MAINTAINER_MODE_FALSE='#'
2140else
2141  MAINTAINER_MODE_TRUE='#'
2142  MAINTAINER_MODE_FALSE=
2143fi
2144
2145  MAINT=$MAINTAINER_MODE_TRUE
2146
2147
2148
2149
2150
2151
2152if test x = y; then
2153  INSIDE_GNOME_COMMON_TRUE=
2154  INSIDE_GNOME_COMMON_FALSE='#'
2155else
2156  INSIDE_GNOME_COMMON_TRUE='#'
2157  INSIDE_GNOME_COMMON_FALSE=
2158fi
2159
2160
2161	test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2162
2163	for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2164
2165
2166
2167ac_ext=c
2168ac_cpp='$CPP $CPPFLAGS'
2169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172if test -n "$ac_tool_prefix"; then
2173  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2174set dummy ${ac_tool_prefix}gcc; ac_word=$2
2175echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177if test "${ac_cv_prog_CC+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  if test -n "$CC"; then
2181  ac_cv_prog_CC="$CC" # Let the user override the test.
2182else
2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186  IFS=$as_save_IFS
2187  test -z "$as_dir" && as_dir=.
2188  for ac_exec_ext in '' $ac_executable_extensions; do
2189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192    break 2
2193  fi
2194done
2195done
2196
2197fi
2198fi
2199CC=$ac_cv_prog_CC
2200if test -n "$CC"; then
2201  echo "$as_me:$LINENO: result: $CC" >&5
2202echo "${ECHO_T}$CC" >&6
2203else
2204  echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6
2206fi
2207
2208fi
2209if test -z "$ac_cv_prog_CC"; then
2210  ac_ct_CC=$CC
2211  # Extract the first word of "gcc", so it can be a program name with args.
2212set dummy gcc; ac_word=$2
2213echo "$as_me:$LINENO: checking for $ac_word" >&5
2214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216  echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218  if test -n "$ac_ct_CC"; then
2219  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220else
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226  for ac_exec_ext in '' $ac_executable_extensions; do
2227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228    ac_cv_prog_ac_ct_CC="gcc"
2229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230    break 2
2231  fi
2232done
2233done
2234
2235fi
2236fi
2237ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238if test -n "$ac_ct_CC"; then
2239  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240echo "${ECHO_T}$ac_ct_CC" >&6
2241else
2242  echo "$as_me:$LINENO: result: no" >&5
2243echo "${ECHO_T}no" >&6
2244fi
2245
2246  CC=$ac_ct_CC
2247else
2248  CC="$ac_cv_prog_CC"
2249fi
2250
2251if test -z "$CC"; then
2252  if test -n "$ac_tool_prefix"; then
2253  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2254set dummy ${ac_tool_prefix}cc; ac_word=$2
2255echo "$as_me:$LINENO: checking for $ac_word" >&5
2256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257if test "${ac_cv_prog_CC+set}" = set; then
2258  echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260  if test -n "$CC"; then
2261  ac_cv_prog_CC="$CC" # Let the user override the test.
2262else
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266  IFS=$as_save_IFS
2267  test -z "$as_dir" && as_dir=.
2268  for ac_exec_ext in '' $ac_executable_extensions; do
2269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270    ac_cv_prog_CC="${ac_tool_prefix}cc"
2271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272    break 2
2273  fi
2274done
2275done
2276
2277fi
2278fi
2279CC=$ac_cv_prog_CC
2280if test -n "$CC"; then
2281  echo "$as_me:$LINENO: result: $CC" >&5
2282echo "${ECHO_T}$CC" >&6
2283else
2284  echo "$as_me:$LINENO: result: no" >&5
2285echo "${ECHO_T}no" >&6
2286fi
2287
2288fi
2289if test -z "$ac_cv_prog_CC"; then
2290  ac_ct_CC=$CC
2291  # Extract the first word of "cc", so it can be a program name with args.
2292set dummy cc; ac_word=$2
2293echo "$as_me:$LINENO: checking for $ac_word" >&5
2294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2296  echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298  if test -n "$ac_ct_CC"; then
2299  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306  for ac_exec_ext in '' $ac_executable_extensions; do
2307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308    ac_cv_prog_ac_ct_CC="cc"
2309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310    break 2
2311  fi
2312done
2313done
2314
2315fi
2316fi
2317ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318if test -n "$ac_ct_CC"; then
2319  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320echo "${ECHO_T}$ac_ct_CC" >&6
2321else
2322  echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6
2324fi
2325
2326  CC=$ac_ct_CC
2327else
2328  CC="$ac_cv_prog_CC"
2329fi
2330
2331fi
2332if test -z "$CC"; then
2333  # Extract the first word of "cc", so it can be a program name with args.
2334set dummy cc; ac_word=$2
2335echo "$as_me:$LINENO: checking for $ac_word" >&5
2336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337if test "${ac_cv_prog_CC+set}" = set; then
2338  echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340  if test -n "$CC"; then
2341  ac_cv_prog_CC="$CC" # Let the user override the test.
2342else
2343  ac_prog_rejected=no
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347  IFS=$as_save_IFS
2348  test -z "$as_dir" && as_dir=.
2349  for ac_exec_ext in '' $ac_executable_extensions; do
2350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2352       ac_prog_rejected=yes
2353       continue
2354     fi
2355    ac_cv_prog_CC="cc"
2356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357    break 2
2358  fi
2359done
2360done
2361
2362if test $ac_prog_rejected = yes; then
2363  # We found a bogon in the path, so make sure we never use it.
2364  set dummy $ac_cv_prog_CC
2365  shift
2366  if test $# != 0; then
2367    # We chose a different compiler from the bogus one.
2368    # However, it has the same basename, so the bogon will be chosen
2369    # first if we set CC to just the basename; use the full file name.
2370    shift
2371    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2372  fi
2373fi
2374fi
2375fi
2376CC=$ac_cv_prog_CC
2377if test -n "$CC"; then
2378  echo "$as_me:$LINENO: result: $CC" >&5
2379echo "${ECHO_T}$CC" >&6
2380else
2381  echo "$as_me:$LINENO: result: no" >&5
2382echo "${ECHO_T}no" >&6
2383fi
2384
2385fi
2386if test -z "$CC"; then
2387  if test -n "$ac_tool_prefix"; then
2388  for ac_prog in cl
2389  do
2390    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2391set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2392echo "$as_me:$LINENO: checking for $ac_word" >&5
2393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394if test "${ac_cv_prog_CC+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  if test -n "$CC"; then
2398  ac_cv_prog_CC="$CC" # Let the user override the test.
2399else
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403  IFS=$as_save_IFS
2404  test -z "$as_dir" && as_dir=.
2405  for ac_exec_ext in '' $ac_executable_extensions; do
2406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409    break 2
2410  fi
2411done
2412done
2413
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
2418  echo "$as_me:$LINENO: result: $CC" >&5
2419echo "${ECHO_T}$CC" >&6
2420else
2421  echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6
2423fi
2424
2425    test -n "$CC" && break
2426  done
2427fi
2428if test -z "$CC"; then
2429  ac_ct_CC=$CC
2430  for ac_prog in cl
2431do
2432  # Extract the first word of "$ac_prog", so it can be a program name with args.
2433set dummy $ac_prog; ac_word=$2
2434echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437  echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439  if test -n "$ac_ct_CC"; then
2440  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445  IFS=$as_save_IFS
2446  test -z "$as_dir" && as_dir=.
2447  for ac_exec_ext in '' $ac_executable_extensions; do
2448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449    ac_cv_prog_ac_ct_CC="$ac_prog"
2450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451    break 2
2452  fi
2453done
2454done
2455
2456fi
2457fi
2458ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459if test -n "$ac_ct_CC"; then
2460  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461echo "${ECHO_T}$ac_ct_CC" >&6
2462else
2463  echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6
2465fi
2466
2467  test -n "$ac_ct_CC" && break
2468done
2469
2470  CC=$ac_ct_CC
2471fi
2472
2473fi
2474
2475
2476test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477See \`config.log' for more details." >&5
2478echo "$as_me: error: no acceptable C compiler found in \$PATH
2479See \`config.log' for more details." >&2;}
2480   { (exit 1); exit 1; }; }
2481
2482# Provide some information about the compiler.
2483echo "$as_me:$LINENO:" \
2484     "checking for C compiler version" >&5
2485ac_compiler=`set X $ac_compile; echo $2`
2486{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2487  (eval $ac_compiler --version </dev/null >&5) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }
2491{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2492  (eval $ac_compiler -v </dev/null >&5) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }
2496{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2497  (eval $ac_compiler -V </dev/null >&5) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }
2501
2502cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h.  */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h.  */
2508
2509int
2510main ()
2511{
2512
2513  ;
2514  return 0;
2515}
2516_ACEOF
2517ac_clean_files_save=$ac_clean_files
2518ac_clean_files="$ac_clean_files a.out a.exe b.out"
2519# Try to create an executable without -o first, disregard a.out.
2520# It will help us diagnose broken compilers, and finding out an intuition
2521# of exeext.
2522echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2523echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2524ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2525if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2526  (eval $ac_link_default) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; then
2530  # Find the output, starting from the most likely.  This scheme is
2531# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2532# resort.
2533
2534# Be careful to initialize this variable, since it used to be cached.
2535# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2536ac_cv_exeext=
2537# b.out is created by i960 compilers.
2538for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2539do
2540  test -f "$ac_file" || continue
2541  case $ac_file in
2542    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2543	;;
2544    conftest.$ac_ext )
2545	# This is the source file.
2546	;;
2547    [ab].out )
2548	# We found the default executable, but exeext='' is most
2549	# certainly right.
2550	break;;
2551    *.* )
2552	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553	# FIXME: I believe we export ac_cv_exeext for Libtool,
2554	# but it would be cool to find out if it's true.  Does anybody
2555	# maintain Libtool? --akim.
2556	export ac_cv_exeext
2557	break;;
2558    * )
2559	break;;
2560  esac
2561done
2562else
2563  echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2567See \`config.log' for more details." >&5
2568echo "$as_me: error: C compiler cannot create executables
2569See \`config.log' for more details." >&2;}
2570   { (exit 77); exit 77; }; }
2571fi
2572
2573ac_exeext=$ac_cv_exeext
2574echo "$as_me:$LINENO: result: $ac_file" >&5
2575echo "${ECHO_T}$ac_file" >&6
2576
2577# Check the compiler produces executables we can run.  If not, either
2578# the compiler is broken, or we cross compile.
2579echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2580echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2581# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2582# If not cross compiling, check that we can run a simple program.
2583if test "$cross_compiling" != yes; then
2584  if { ac_try='./$ac_file'
2585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586  (eval $ac_try) 2>&5
2587  ac_status=$?
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); }; }; then
2590    cross_compiling=no
2591  else
2592    if test "$cross_compiling" = maybe; then
2593	cross_compiling=yes
2594    else
2595	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596If you meant to cross compile, use \`--host'.
2597See \`config.log' for more details." >&5
2598echo "$as_me: error: cannot run C compiled programs.
2599If you meant to cross compile, use \`--host'.
2600See \`config.log' for more details." >&2;}
2601   { (exit 1); exit 1; }; }
2602    fi
2603  fi
2604fi
2605echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607
2608rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609ac_clean_files=$ac_clean_files_save
2610# Check the compiler produces executables we can run.  If not, either
2611# the compiler is broken, or we cross compile.
2612echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2614echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615echo "${ECHO_T}$cross_compiling" >&6
2616
2617echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620  (eval $ac_link) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; then
2624  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2626# work properly (i.e., refer to `conftest.exe'), while it won't with
2627# `rm'.
2628for ac_file in conftest.exe conftest conftest.*; do
2629  test -f "$ac_file" || continue
2630  case $ac_file in
2631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2632    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633	  export ac_cv_exeext
2634	  break;;
2635    * ) break;;
2636  esac
2637done
2638else
2639  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640See \`config.log' for more details." >&5
2641echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642See \`config.log' for more details." >&2;}
2643   { (exit 1); exit 1; }; }
2644fi
2645
2646rm -f conftest$ac_cv_exeext
2647echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648echo "${ECHO_T}$ac_cv_exeext" >&6
2649
2650rm -f conftest.$ac_ext
2651EXEEXT=$ac_cv_exeext
2652ac_exeext=$EXEEXT
2653echo "$as_me:$LINENO: checking for suffix of object files" >&5
2654echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2655if test "${ac_cv_objext+set}" = set; then
2656  echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658  cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h.  */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h.  */
2664
2665int
2666main ()
2667{
2668
2669  ;
2670  return 0;
2671}
2672_ACEOF
2673rm -f conftest.o conftest.obj
2674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675  (eval $ac_compile) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; then
2679  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2680  case $ac_file in
2681    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2682    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683       break;;
2684  esac
2685done
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691See \`config.log' for more details." >&5
2692echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693See \`config.log' for more details." >&2;}
2694   { (exit 1); exit 1; }; }
2695fi
2696
2697rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698fi
2699echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700echo "${ECHO_T}$ac_cv_objext" >&6
2701OBJEXT=$ac_cv_objext
2702ac_objext=$OBJEXT
2703echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2705if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706  echo $ECHO_N "(cached) $ECHO_C" >&6
2707else
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714
2715int
2716main ()
2717{
2718#ifndef __GNUC__
2719       choke me
2720#endif
2721
2722  ;
2723  return 0;
2724}
2725_ACEOF
2726rm -f conftest.$ac_objext
2727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728  (eval $ac_compile) 2>conftest.er1
2729  ac_status=$?
2730  grep -v '^ *+' conftest.er1 >conftest.err
2731  rm -f conftest.er1
2732  cat conftest.err >&5
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); } &&
2735	 { ac_try='test -z "$ac_c_werror_flag"
2736			 || test ! -s conftest.err'
2737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738  (eval $ac_try) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); }; } &&
2742	 { ac_try='test -s conftest.$ac_objext'
2743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744  (eval $ac_try) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }; }; then
2748  ac_compiler_gnu=yes
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753ac_compiler_gnu=no
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756ac_cv_c_compiler_gnu=$ac_compiler_gnu
2757
2758fi
2759echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2760echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2761GCC=`test $ac_compiler_gnu = yes && echo yes`
2762ac_test_CFLAGS=${CFLAGS+set}
2763ac_save_CFLAGS=$CFLAGS
2764CFLAGS="-g"
2765echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2766echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2767if test "${ac_cv_prog_cc_g+set}" = set; then
2768  echo $ECHO_N "(cached) $ECHO_C" >&6
2769else
2770  cat >conftest.$ac_ext <<_ACEOF
2771/* confdefs.h.  */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h.  */
2776
2777int
2778main ()
2779{
2780
2781  ;
2782  return 0;
2783}
2784_ACEOF
2785rm -f conftest.$ac_objext
2786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787  (eval $ac_compile) 2>conftest.er1
2788  ac_status=$?
2789  grep -v '^ *+' conftest.er1 >conftest.err
2790  rm -f conftest.er1
2791  cat conftest.err >&5
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); } &&
2794	 { ac_try='test -z "$ac_c_werror_flag"
2795			 || test ! -s conftest.err'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; } &&
2801	 { ac_try='test -s conftest.$ac_objext'
2802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803  (eval $ac_try) 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; }; then
2807  ac_cv_prog_cc_g=yes
2808else
2809  echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812ac_cv_prog_cc_g=no
2813fi
2814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815fi
2816echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2817echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2818if test "$ac_test_CFLAGS" = set; then
2819  CFLAGS=$ac_save_CFLAGS
2820elif test $ac_cv_prog_cc_g = yes; then
2821  if test "$GCC" = yes; then
2822    CFLAGS="-g -O2"
2823  else
2824    CFLAGS="-g"
2825  fi
2826else
2827  if test "$GCC" = yes; then
2828    CFLAGS="-O2"
2829  else
2830    CFLAGS=
2831  fi
2832fi
2833echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2834echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2835if test "${ac_cv_prog_cc_stdc+set}" = set; then
2836  echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838  ac_cv_prog_cc_stdc=no
2839ac_save_CC=$CC
2840cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h.  */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h.  */
2846#include <stdarg.h>
2847#include <stdio.h>
2848#include <sys/types.h>
2849#include <sys/stat.h>
2850/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2851struct buf { int x; };
2852FILE * (*rcsopen) (struct buf *, struct stat *, int);
2853static char *e (p, i)
2854     char **p;
2855     int i;
2856{
2857  return p[i];
2858}
2859static char *f (char * (*g) (char **, int), char **p, ...)
2860{
2861  char *s;
2862  va_list v;
2863  va_start (v,p);
2864  s = g (p, va_arg (v,int));
2865  va_end (v);
2866  return s;
2867}
2868
2869/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2870   function prototypes and stuff, but not '\xHH' hex character constants.
2871   These don't provoke an error unfortunately, instead are silently treated
2872   as 'x'.  The following induces an error, until -std1 is added to get
2873   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2874   array size at least.  It's necessary to write '\x00'==0 to get something
2875   that's true only with -std1.  */
2876int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2877
2878int test (int i, double x);
2879struct s1 {int (*f) (int a);};
2880struct s2 {int (*f) (double a);};
2881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882int argc;
2883char **argv;
2884int
2885main ()
2886{
2887return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892# Don't try gcc -ansi; that turns off useful extensions and
2893# breaks some systems' header files.
2894# AIX			-qlanglvl=ansi
2895# Ultrix and OSF/1	-std1
2896# HP-UX 10.20 and later	-Ae
2897# HP-UX older versions	-Aa -D_HPUX_SOURCE
2898# SVR4			-Xc -D__EXTENSIONS__
2899for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900do
2901  CC="$ac_save_CC $ac_arg"
2902  rm -f conftest.$ac_objext
2903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904  (eval $ac_compile) 2>conftest.er1
2905  ac_status=$?
2906  grep -v '^ *+' conftest.er1 >conftest.err
2907  rm -f conftest.er1
2908  cat conftest.err >&5
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); } &&
2911	 { ac_try='test -z "$ac_c_werror_flag"
2912			 || test ! -s conftest.err'
2913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914  (eval $ac_try) 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }; } &&
2918	 { ac_try='test -s conftest.$ac_objext'
2919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920  (eval $ac_try) 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; }; then
2924  ac_cv_prog_cc_stdc=$ac_arg
2925break
2926else
2927  echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930fi
2931rm -f conftest.err conftest.$ac_objext
2932done
2933rm -f conftest.$ac_ext conftest.$ac_objext
2934CC=$ac_save_CC
2935
2936fi
2937
2938case "x$ac_cv_prog_cc_stdc" in
2939  x|xno)
2940    echo "$as_me:$LINENO: result: none needed" >&5
2941echo "${ECHO_T}none needed" >&6 ;;
2942  *)
2943    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2944echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2945    CC="$CC $ac_cv_prog_cc_stdc" ;;
2946esac
2947
2948# Some people use a C++ compiler to compile C.  Since we use `exit',
2949# in C++ we need to declare it.  In case someone uses the same compiler
2950# for both compiling C and C++ we need to have the C++ compiler decide
2951# the declaration of exit, since it's the most demanding environment.
2952cat >conftest.$ac_ext <<_ACEOF
2953#ifndef __cplusplus
2954  choke me
2955#endif
2956_ACEOF
2957rm -f conftest.$ac_objext
2958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959  (eval $ac_compile) 2>conftest.er1
2960  ac_status=$?
2961  grep -v '^ *+' conftest.er1 >conftest.err
2962  rm -f conftest.er1
2963  cat conftest.err >&5
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); } &&
2966	 { ac_try='test -z "$ac_c_werror_flag"
2967			 || test ! -s conftest.err'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; } &&
2973	 { ac_try='test -s conftest.$ac_objext'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; }; then
2979  for ac_declaration in \
2980   '' \
2981   'extern "C" void std::exit (int) throw (); using std::exit;' \
2982   'extern "C" void std::exit (int); using std::exit;' \
2983   'extern "C" void exit (int) throw ();' \
2984   'extern "C" void exit (int);' \
2985   'void exit (int);'
2986do
2987  cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993$ac_declaration
2994#include <stdlib.h>
2995int
2996main ()
2997{
2998exit (42);
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext
3004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3005  (eval $ac_compile) 2>conftest.er1
3006  ac_status=$?
3007  grep -v '^ *+' conftest.er1 >conftest.err
3008  rm -f conftest.er1
3009  cat conftest.err >&5
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); } &&
3012	 { ac_try='test -z "$ac_c_werror_flag"
3013			 || test ! -s conftest.err'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; } &&
3019	 { ac_try='test -s conftest.$ac_objext'
3020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021  (eval $ac_try) 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; }; then
3025  :
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030continue
3031fi
3032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3033  cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h.  */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h.  */
3039$ac_declaration
3040int
3041main ()
3042{
3043exit (42);
3044  ;
3045  return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext
3049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3050  (eval $ac_compile) 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } &&
3057	 { ac_try='test -z "$ac_c_werror_flag"
3058			 || test ! -s conftest.err'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; } &&
3064	 { ac_try='test -s conftest.$ac_objext'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; }; then
3070  break
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075fi
3076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3077done
3078rm -f conftest*
3079if test -n "$ac_declaration"; then
3080  echo '#ifdef __cplusplus' >>confdefs.h
3081  echo $ac_declaration      >>confdefs.h
3082  echo '#endif'             >>confdefs.h
3083fi
3084
3085else
3086  echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089fi
3090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096DEPDIR="${am__leading_dot}deps"
3097
3098          ac_config_commands="$ac_config_commands depfiles"
3099
3100
3101am_make=${MAKE-make}
3102cat > confinc << 'END'
3103am__doit:
3104	@echo done
3105.PHONY: am__doit
3106END
3107# If we don't find an include directive, just comment out the code.
3108echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3109echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3110am__include="#"
3111am__quote=
3112_am_result=none
3113# First try GNU make style include.
3114echo "include confinc" > confmf
3115# We grep out `Entering directory' and `Leaving directory'
3116# messages which can occur if `w' ends up in MAKEFLAGS.
3117# In particular we don't look at `^make:' because GNU make might
3118# be invoked under some other name (usually "gmake"), in which
3119# case it prints its new name instead of `make'.
3120if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3121   am__include=include
3122   am__quote=
3123   _am_result=GNU
3124fi
3125# Now try BSD make style include.
3126if test "$am__include" = "#"; then
3127   echo '.include "confinc"' > confmf
3128   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3129      am__include=.include
3130      am__quote="\""
3131      _am_result=BSD
3132   fi
3133fi
3134
3135
3136echo "$as_me:$LINENO: result: $_am_result" >&5
3137echo "${ECHO_T}$_am_result" >&6
3138rm -f confinc confmf
3139
3140# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3141if test "${enable_dependency_tracking+set}" = set; then
3142  enableval="$enable_dependency_tracking"
3143
3144fi;
3145if test "x$enable_dependency_tracking" != xno; then
3146  am_depcomp="$ac_aux_dir/depcomp"
3147  AMDEPBACKSLASH='\'
3148fi
3149
3150
3151if test "x$enable_dependency_tracking" != xno; then
3152  AMDEP_TRUE=
3153  AMDEP_FALSE='#'
3154else
3155  AMDEP_TRUE='#'
3156  AMDEP_FALSE=
3157fi
3158
3159
3160
3161
3162depcc="$CC"   am_compiler_list=
3163
3164echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3165echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3166if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3167  echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3170  # We make a subdir and do the tests there.  Otherwise we can end up
3171  # making bogus files that we don't know about and never remove.  For
3172  # instance it was reported that on HP-UX the gcc test will end up
3173  # making a dummy file named `D' -- because `-MD' means `put the output
3174  # in D'.
3175  mkdir conftest.dir
3176  # Copy depcomp to subdir because otherwise we won't find it if we're
3177  # using a relative directory.
3178  cp "$am_depcomp" conftest.dir
3179  cd conftest.dir
3180  # We will build objects and dependencies in a subdirectory because
3181  # it helps to detect inapplicable dependency modes.  For instance
3182  # both Tru64's cc and ICC support -MD to output dependencies as a
3183  # side effect of compilation, but ICC will put the dependencies in
3184  # the current directory while Tru64 will put them in the object
3185  # directory.
3186  mkdir sub
3187
3188  am_cv_CC_dependencies_compiler_type=none
3189  if test "$am_compiler_list" = ""; then
3190     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3191  fi
3192  for depmode in $am_compiler_list; do
3193    # Setup a source with many dependencies, because some compilers
3194    # like to wrap large dependency lists on column 80 (with \), and
3195    # we should not choose a depcomp mode which is confused by this.
3196    #
3197    # We need to recreate these files for each test, as the compiler may
3198    # overwrite some of them when testing with obscure command lines.
3199    # This happens at least with the AIX C compiler.
3200    : > sub/conftest.c
3201    for i in 1 2 3 4 5 6; do
3202      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3203      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3204      # Solaris 8's {/usr,}/bin/sh.
3205      touch sub/conftst$i.h
3206    done
3207    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3208
3209    case $depmode in
3210    nosideeffect)
3211      # after this tag, mechanisms are not by side-effect, so they'll
3212      # only be used when explicitly requested
3213      if test "x$enable_dependency_tracking" = xyes; then
3214	continue
3215      else
3216	break
3217      fi
3218      ;;
3219    none) break ;;
3220    esac
3221    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3222    # mode.  It turns out that the SunPro C++ compiler does not properly
3223    # handle `-M -o', and we need to detect this.
3224    if depmode=$depmode \
3225       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3226       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3227       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3228         >/dev/null 2>conftest.err &&
3229       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3230       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3231       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3232      # icc doesn't choke on unknown options, it will just issue warnings
3233      # or remarks (even with -Werror).  So we grep stderr for any message
3234      # that says an option was ignored or not supported.
3235      # When given -MP, icc 7.0 and 7.1 complain thusly:
3236      #   icc: Command line warning: ignoring option '-M'; no argument required
3237      # The diagnosis changed in icc 8.0:
3238      #   icc: Command line remark: option '-MP' not supported
3239      if (grep 'ignoring option' conftest.err ||
3240          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3241        am_cv_CC_dependencies_compiler_type=$depmode
3242        break
3243      fi
3244    fi
3245  done
3246
3247  cd ..
3248  rm -rf conftest.dir
3249else
3250  am_cv_CC_dependencies_compiler_type=none
3251fi
3252
3253fi
3254echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3255echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3256CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3257
3258
3259
3260if
3261  test "x$enable_dependency_tracking" != xno \
3262  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3263  am__fastdepCC_TRUE=
3264  am__fastdepCC_FALSE='#'
3265else
3266  am__fastdepCC_TRUE='#'
3267  am__fastdepCC_FALSE=
3268fi
3269
3270
3271
3272
3273
3274subdirs="$subdirs libltdl"
3275
3276
3277
3278  case $enable_ltdl_convenience in
3279  no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3280echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3281   { (exit 1); exit 1; }; } ;;
3282  "") enable_ltdl_convenience=yes
3283      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3284  esac
3285  LIBLTDL="-lltdl"
3286  # For backwards non-gettext consistent compatibility...
3287
3288
3289echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3290echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3291if test "${ac_cv_c_const+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
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
3301int
3302main ()
3303{
3304/* FIXME: Include the comments suggested by Paul. */
3305#ifndef __cplusplus
3306  /* Ultrix mips cc rejects this.  */
3307  typedef int charset[2];
3308  const charset x;
3309  /* SunOS 4.1.1 cc rejects this.  */
3310  char const *const *ccp;
3311  char **p;
3312  /* NEC SVR4.0.2 mips cc rejects this.  */
3313  struct point {int x, y;};
3314  static struct point const zero = {0,0};
3315  /* AIX XL C 1.02.0.0 rejects this.
3316     It does not let you subtract one const X* pointer from another in
3317     an arm of an if-expression whose if-part is not a constant
3318     expression */
3319  const char *g = "string";
3320  ccp = &g + (g ? g-g : 0);
3321  /* HPUX 7.0 cc rejects these. */
3322  ++ccp;
3323  p = (char**) ccp;
3324  ccp = (char const *const *) p;
3325  { /* SCO 3.2v4 cc rejects this.  */
3326    char *t;
3327    char const *s = 0 ? (char *) 0 : (char const *) 0;
3328
3329    *t++ = 0;
3330  }
3331  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3332    int x[] = {25, 17};
3333    const int *foo = &x[0];
3334    ++foo;
3335  }
3336  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3337    typedef const int *iptr;
3338    iptr p = 0;
3339    ++p;
3340  }
3341  { /* AIX XL C 1.02.0.0 rejects this saying
3342       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3343    struct s { int j; const int *ap[3]; };
3344    struct s *b; b->j = 5;
3345  }
3346  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3347    const int foo = 10;
3348  }
3349#endif
3350
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_c_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  ac_cv_c_const=yes
3378else
3379  echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382ac_cv_c_const=no
3383fi
3384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385fi
3386echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3387echo "${ECHO_T}$ac_cv_c_const" >&6
3388if test $ac_cv_c_const = no; then
3389
3390cat >>confdefs.h <<\_ACEOF
3391#define const
3392_ACEOF
3393
3394fi
3395
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3402echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3403# On Suns, sometimes $CPP names a directory.
3404if test -n "$CPP" && test -d "$CPP"; then
3405  CPP=
3406fi
3407if test -z "$CPP"; then
3408  if test "${ac_cv_prog_CPP+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411      # Double quotes because CPP needs to be expanded
3412    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3413    do
3414      ac_preproc_ok=false
3415for ac_c_preproc_warn_flag in '' yes
3416do
3417  # Use a header file that comes with gcc, so configuring glibc
3418  # with a fresh cross-compiler works.
3419  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420  # <limits.h> exists even on freestanding compilers.
3421  # On the NeXT, cc -E runs the code through the compiler's parser,
3422  # not just through cpp. "Syntax error" is here to catch this case.
3423  cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h.  */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h.  */
3429#ifdef __STDC__
3430# include <limits.h>
3431#else
3432# include <assert.h>
3433#endif
3434		     Syntax error
3435_ACEOF
3436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } >/dev/null; then
3444  if test -s conftest.err; then
3445    ac_cpp_err=$ac_c_preproc_warn_flag
3446    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447  else
3448    ac_cpp_err=
3449  fi
3450else
3451  ac_cpp_err=yes
3452fi
3453if test -z "$ac_cpp_err"; then
3454  :
3455else
3456  echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459  # Broken: fails on valid input.
3460continue
3461fi
3462rm -f conftest.err conftest.$ac_ext
3463
3464  # OK, works on sane cases.  Now check whether non-existent headers
3465  # can be detected and how.
3466  cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h.  */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h.  */
3472#include <ac_nonexistent.h>
3473_ACEOF
3474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476  ac_status=$?
3477  grep -v '^ *+' conftest.er1 >conftest.err
3478  rm -f conftest.er1
3479  cat conftest.err >&5
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); } >/dev/null; then
3482  if test -s conftest.err; then
3483    ac_cpp_err=$ac_c_preproc_warn_flag
3484    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485  else
3486    ac_cpp_err=
3487  fi
3488else
3489  ac_cpp_err=yes
3490fi
3491if test -z "$ac_cpp_err"; then
3492  # Broken: success on invalid input.
3493continue
3494else
3495  echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498  # Passes both tests.
3499ac_preproc_ok=:
3500break
3501fi
3502rm -f conftest.err conftest.$ac_ext
3503
3504done
3505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506rm -f conftest.err conftest.$ac_ext
3507if $ac_preproc_ok; then
3508  break
3509fi
3510
3511    done
3512    ac_cv_prog_CPP=$CPP
3513
3514fi
3515  CPP=$ac_cv_prog_CPP
3516else
3517  ac_cv_prog_CPP=$CPP
3518fi
3519echo "$as_me:$LINENO: result: $CPP" >&5
3520echo "${ECHO_T}$CPP" >&6
3521ac_preproc_ok=false
3522for ac_c_preproc_warn_flag in '' yes
3523do
3524  # Use a header file that comes with gcc, so configuring glibc
3525  # with a fresh cross-compiler works.
3526  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3527  # <limits.h> exists even on freestanding compilers.
3528  # On the NeXT, cc -E runs the code through the compiler's parser,
3529  # not just through cpp. "Syntax error" is here to catch this case.
3530  cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536#ifdef __STDC__
3537# include <limits.h>
3538#else
3539# include <assert.h>
3540#endif
3541		     Syntax error
3542_ACEOF
3543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3545  ac_status=$?
3546  grep -v '^ *+' conftest.er1 >conftest.err
3547  rm -f conftest.er1
3548  cat conftest.err >&5
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); } >/dev/null; then
3551  if test -s conftest.err; then
3552    ac_cpp_err=$ac_c_preproc_warn_flag
3553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3554  else
3555    ac_cpp_err=
3556  fi
3557else
3558  ac_cpp_err=yes
3559fi
3560if test -z "$ac_cpp_err"; then
3561  :
3562else
3563  echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566  # Broken: fails on valid input.
3567continue
3568fi
3569rm -f conftest.err conftest.$ac_ext
3570
3571  # OK, works on sane cases.  Now check whether non-existent headers
3572  # can be detected and how.
3573  cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h.  */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h.  */
3579#include <ac_nonexistent.h>
3580_ACEOF
3581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3582  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3583  ac_status=$?
3584  grep -v '^ *+' conftest.er1 >conftest.err
3585  rm -f conftest.er1
3586  cat conftest.err >&5
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); } >/dev/null; then
3589  if test -s conftest.err; then
3590    ac_cpp_err=$ac_c_preproc_warn_flag
3591    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592  else
3593    ac_cpp_err=
3594  fi
3595else
3596  ac_cpp_err=yes
3597fi
3598if test -z "$ac_cpp_err"; then
3599  # Broken: success on invalid input.
3600continue
3601else
3602  echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605  # Passes both tests.
3606ac_preproc_ok=:
3607break
3608fi
3609rm -f conftest.err conftest.$ac_ext
3610
3611done
3612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3613rm -f conftest.err conftest.$ac_ext
3614if $ac_preproc_ok; then
3615  :
3616else
3617  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3618See \`config.log' for more details." >&5
3619echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3620See \`config.log' for more details." >&2;}
3621   { (exit 1); exit 1; }; }
3622fi
3623
3624ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631echo "$as_me:$LINENO: checking for egrep" >&5
3632echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3633if test "${ac_cv_prog_egrep+set}" = set; then
3634  echo $ECHO_N "(cached) $ECHO_C" >&6
3635else
3636  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3637    then ac_cv_prog_egrep='grep -E'
3638    else ac_cv_prog_egrep='egrep'
3639    fi
3640fi
3641echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3642echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3643 EGREP=$ac_cv_prog_egrep
3644
3645
3646echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3647echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3648if test "${ac_cv_header_stdc+set}" = set; then
3649  echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651  cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657#include <stdlib.h>
3658#include <stdarg.h>
3659#include <string.h>
3660#include <float.h>
3661
3662int
3663main ()
3664{
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext
3671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672  (eval $ac_compile) 2>conftest.er1
3673  ac_status=$?
3674  grep -v '^ *+' conftest.er1 >conftest.err
3675  rm -f conftest.er1
3676  cat conftest.err >&5
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); } &&
3679	 { ac_try='test -z "$ac_c_werror_flag"
3680			 || test ! -s conftest.err'
3681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682  (eval $ac_try) 2>&5
3683  ac_status=$?
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); }; } &&
3686	 { ac_try='test -s conftest.$ac_objext'
3687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688  (eval $ac_try) 2>&5
3689  ac_status=$?
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); }; }; then
3692  ac_cv_header_stdc=yes
3693else
3694  echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697ac_cv_header_stdc=no
3698fi
3699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3700
3701if test $ac_cv_header_stdc = yes; then
3702  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3703  cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h.  */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h.  */
3709#include <string.h>
3710
3711_ACEOF
3712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713  $EGREP "memchr" >/dev/null 2>&1; then
3714  :
3715else
3716  ac_cv_header_stdc=no
3717fi
3718rm -f conftest*
3719
3720fi
3721
3722if test $ac_cv_header_stdc = yes; then
3723  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3724  cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730#include <stdlib.h>
3731
3732_ACEOF
3733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734  $EGREP "free" >/dev/null 2>&1; then
3735  :
3736else
3737  ac_cv_header_stdc=no
3738fi
3739rm -f conftest*
3740
3741fi
3742
3743if test $ac_cv_header_stdc = yes; then
3744  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3745  if test "$cross_compiling" = yes; then
3746  :
3747else
3748  cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h.  */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h.  */
3754#include <ctype.h>
3755#if ((' ' & 0x0FF) == 0x020)
3756# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3757# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3758#else
3759# define ISLOWER(c) \
3760		   (('a' <= (c) && (c) <= 'i') \
3761		     || ('j' <= (c) && (c) <= 'r') \
3762		     || ('s' <= (c) && (c) <= 'z'))
3763# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3764#endif
3765
3766#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3767int
3768main ()
3769{
3770  int i;
3771  for (i = 0; i < 256; i++)
3772    if (XOR (islower (i), ISLOWER (i))
3773	|| toupper (i) != TOUPPER (i))
3774      exit(2);
3775  exit (0);
3776}
3777_ACEOF
3778rm -f conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780  (eval $ac_link) 2>&5
3781  ac_status=$?
3782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785  (eval $ac_try) 2>&5
3786  ac_status=$?
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); }; }; then
3789  :
3790else
3791  echo "$as_me: program exited with status $ac_status" >&5
3792echo "$as_me: failed program was:" >&5
3793sed 's/^/| /' conftest.$ac_ext >&5
3794
3795( exit $ac_status )
3796ac_cv_header_stdc=no
3797fi
3798rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3799fi
3800fi
3801fi
3802echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3803echo "${ECHO_T}$ac_cv_header_stdc" >&6
3804if test $ac_cv_header_stdc = yes; then
3805
3806cat >>confdefs.h <<\_ACEOF
3807#define STDC_HEADERS 1
3808_ACEOF
3809
3810fi
3811
3812
3813
3814
3815
3816
3817ac_header_dirent=no
3818for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3819  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3820echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3821echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3822if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823  echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825  cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h.  */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h.  */
3831#include <sys/types.h>
3832#include <$ac_hdr>
3833
3834int
3835main ()
3836{
3837if ((DIR *) 0)
3838return 0;
3839  ;
3840  return 0;
3841}
3842_ACEOF
3843rm -f conftest.$ac_objext
3844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845  (eval $ac_compile) 2>conftest.er1
3846  ac_status=$?
3847  grep -v '^ *+' conftest.er1 >conftest.err
3848  rm -f conftest.er1
3849  cat conftest.err >&5
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); } &&
3852	 { ac_try='test -z "$ac_c_werror_flag"
3853			 || test ! -s conftest.err'
3854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855  (eval $ac_try) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; } &&
3859	 { ac_try='test -s conftest.$ac_objext'
3860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861  (eval $ac_try) 2>&5
3862  ac_status=$?
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); }; }; then
3865  eval "$as_ac_Header=yes"
3866else
3867  echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870eval "$as_ac_Header=no"
3871fi
3872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873fi
3874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3876if test `eval echo '${'$as_ac_Header'}'` = yes; then
3877  cat >>confdefs.h <<_ACEOF
3878#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3879_ACEOF
3880
3881ac_header_dirent=$ac_hdr; break
3882fi
3883
3884done
3885# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3886if test $ac_header_dirent = dirent.h; then
3887  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3888echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3889if test "${ac_cv_search_opendir+set}" = set; then
3890  echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892  ac_func_search_save_LIBS=$LIBS
3893ac_cv_search_opendir=no
3894cat >conftest.$ac_ext <<_ACEOF
3895/* confdefs.h.  */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h.  */
3900
3901/* Override any gcc2 internal prototype to avoid an error.  */
3902#ifdef __cplusplus
3903extern "C"
3904#endif
3905/* We use char because int might match the return type of a gcc2
3906   builtin and then its argument prototype would still apply.  */
3907char opendir ();
3908int
3909main ()
3910{
3911opendir ();
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916rm -f conftest.$ac_objext conftest$ac_exeext
3917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918  (eval $ac_link) 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } &&
3925	 { ac_try='test -z "$ac_c_werror_flag"
3926			 || test ! -s conftest.err'
3927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928  (eval $ac_try) 2>&5
3929  ac_status=$?
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); }; } &&
3932	 { ac_try='test -s conftest$ac_exeext'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; }; then
3938  ac_cv_search_opendir="none required"
3939else
3940  echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943fi
3944rm -f conftest.err conftest.$ac_objext \
3945      conftest$ac_exeext conftest.$ac_ext
3946if test "$ac_cv_search_opendir" = no; then
3947  for ac_lib in dir; do
3948    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3949    cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h.  */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h.  */
3955
3956/* Override any gcc2 internal prototype to avoid an error.  */
3957#ifdef __cplusplus
3958extern "C"
3959#endif
3960/* We use char because int might match the return type of a gcc2
3961   builtin and then its argument prototype would still apply.  */
3962char opendir ();
3963int
3964main ()
3965{
3966opendir ();
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext conftest$ac_exeext
3972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3973  (eval $ac_link) 2>conftest.er1
3974  ac_status=$?
3975  grep -v '^ *+' conftest.er1 >conftest.err
3976  rm -f conftest.er1
3977  cat conftest.err >&5
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); } &&
3980	 { ac_try='test -z "$ac_c_werror_flag"
3981			 || test ! -s conftest.err'
3982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983  (eval $ac_try) 2>&5
3984  ac_status=$?
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); }; } &&
3987	 { ac_try='test -s conftest$ac_exeext'
3988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989  (eval $ac_try) 2>&5
3990  ac_status=$?
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); }; }; then
3993  ac_cv_search_opendir="-l$ac_lib"
3994break
3995else
3996  echo "$as_me: failed program was:" >&5
3997sed 's/^/| /' conftest.$ac_ext >&5
3998
3999fi
4000rm -f conftest.err conftest.$ac_objext \
4001      conftest$ac_exeext conftest.$ac_ext
4002  done
4003fi
4004LIBS=$ac_func_search_save_LIBS
4005fi
4006echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4007echo "${ECHO_T}$ac_cv_search_opendir" >&6
4008if test "$ac_cv_search_opendir" != no; then
4009  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4010
4011fi
4012
4013else
4014  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4015echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4016if test "${ac_cv_search_opendir+set}" = set; then
4017  echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019  ac_func_search_save_LIBS=$LIBS
4020ac_cv_search_opendir=no
4021cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h.  */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h.  */
4027
4028/* Override any gcc2 internal prototype to avoid an error.  */
4029#ifdef __cplusplus
4030extern "C"
4031#endif
4032/* We use char because int might match the return type of a gcc2
4033   builtin and then its argument prototype would still apply.  */
4034char opendir ();
4035int
4036main ()
4037{
4038opendir ();
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043rm -f conftest.$ac_objext conftest$ac_exeext
4044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045  (eval $ac_link) 2>conftest.er1
4046  ac_status=$?
4047  grep -v '^ *+' conftest.er1 >conftest.err
4048  rm -f conftest.er1
4049  cat conftest.err >&5
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); } &&
4052	 { ac_try='test -z "$ac_c_werror_flag"
4053			 || test ! -s conftest.err'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; } &&
4059	 { ac_try='test -s conftest$ac_exeext'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  ac_cv_search_opendir="none required"
4066else
4067  echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070fi
4071rm -f conftest.err conftest.$ac_objext \
4072      conftest$ac_exeext conftest.$ac_ext
4073if test "$ac_cv_search_opendir" = no; then
4074  for ac_lib in x; do
4075    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4076    cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h.  */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h.  */
4082
4083/* Override any gcc2 internal prototype to avoid an error.  */
4084#ifdef __cplusplus
4085extern "C"
4086#endif
4087/* We use char because int might match the return type of a gcc2
4088   builtin and then its argument prototype would still apply.  */
4089char opendir ();
4090int
4091main ()
4092{
4093opendir ();
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098rm -f conftest.$ac_objext conftest$ac_exeext
4099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4100  (eval $ac_link) 2>conftest.er1
4101  ac_status=$?
4102  grep -v '^ *+' conftest.er1 >conftest.err
4103  rm -f conftest.er1
4104  cat conftest.err >&5
4105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106  (exit $ac_status); } &&
4107	 { ac_try='test -z "$ac_c_werror_flag"
4108			 || test ! -s conftest.err'
4109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110  (eval $ac_try) 2>&5
4111  ac_status=$?
4112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113  (exit $ac_status); }; } &&
4114	 { ac_try='test -s conftest$ac_exeext'
4115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116  (eval $ac_try) 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); }; }; then
4120  ac_cv_search_opendir="-l$ac_lib"
4121break
4122else
4123  echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126fi
4127rm -f conftest.err conftest.$ac_objext \
4128      conftest$ac_exeext conftest.$ac_ext
4129  done
4130fi
4131LIBS=$ac_func_search_save_LIBS
4132fi
4133echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4134echo "${ECHO_T}$ac_cv_search_opendir" >&6
4135if test "$ac_cv_search_opendir" != no; then
4136  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4137
4138fi
4139
4140fi
4141
4142# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4153		  inttypes.h stdint.h unistd.h
4154do
4155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4156echo "$as_me:$LINENO: checking for $ac_header" >&5
4157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4158if eval "test \"\${$as_ac_Header+set}\" = set"; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h.  */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
4166/* end confdefs.h.  */
4167$ac_includes_default
4168
4169#include <$ac_header>
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173  (eval $ac_compile) 2>conftest.er1
4174  ac_status=$?
4175  grep -v '^ *+' conftest.er1 >conftest.err
4176  rm -f conftest.er1
4177  cat conftest.err >&5
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); } &&
4180	 { ac_try='test -z "$ac_c_werror_flag"
4181			 || test ! -s conftest.err'
4182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183  (eval $ac_try) 2>&5
4184  ac_status=$?
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); }; } &&
4187	 { ac_try='test -s conftest.$ac_objext'
4188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189  (eval $ac_try) 2>&5
4190  ac_status=$?
4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192  (exit $ac_status); }; }; then
4193  eval "$as_ac_Header=yes"
4194else
4195  echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198eval "$as_ac_Header=no"
4199fi
4200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201fi
4202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205  cat >>confdefs.h <<_ACEOF
4206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207_ACEOF
4208
4209fi
4210
4211done
4212
4213
4214
4215for ac_header in dlfcn.h
4216do
4217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4218if eval "test \"\${$as_ac_Header+set}\" = set"; then
4219  echo "$as_me:$LINENO: checking for $ac_header" >&5
4220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4221if eval "test \"\${$as_ac_Header+set}\" = set"; then
4222  echo $ECHO_N "(cached) $ECHO_C" >&6
4223fi
4224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4226else
4227  # Is the header compilable?
4228echo "$as_me:$LINENO: checking $ac_header usability" >&5
4229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4230cat >conftest.$ac_ext <<_ACEOF
4231/* confdefs.h.  */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h.  */
4236$ac_includes_default
4237#include <$ac_header>
4238_ACEOF
4239rm -f conftest.$ac_objext
4240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4241  (eval $ac_compile) 2>conftest.er1
4242  ac_status=$?
4243  grep -v '^ *+' conftest.er1 >conftest.err
4244  rm -f conftest.er1
4245  cat conftest.err >&5
4246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247  (exit $ac_status); } &&
4248	 { ac_try='test -z "$ac_c_werror_flag"
4249			 || test ! -s conftest.err'
4250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251  (eval $ac_try) 2>&5
4252  ac_status=$?
4253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254  (exit $ac_status); }; } &&
4255	 { ac_try='test -s conftest.$ac_objext'
4256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257  (eval $ac_try) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); }; }; then
4261  ac_header_compiler=yes
4262else
4263  echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266ac_header_compiler=no
4267fi
4268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4270echo "${ECHO_T}$ac_header_compiler" >&6
4271
4272# Is the header present?
4273echo "$as_me:$LINENO: checking $ac_header presence" >&5
4274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4275cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h.  */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h.  */
4281#include <$ac_header>
4282_ACEOF
4283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285  ac_status=$?
4286  grep -v '^ *+' conftest.er1 >conftest.err
4287  rm -f conftest.er1
4288  cat conftest.err >&5
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); } >/dev/null; then
4291  if test -s conftest.err; then
4292    ac_cpp_err=$ac_c_preproc_warn_flag
4293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294  else
4295    ac_cpp_err=
4296  fi
4297else
4298  ac_cpp_err=yes
4299fi
4300if test -z "$ac_cpp_err"; then
4301  ac_header_preproc=yes
4302else
4303  echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306  ac_header_preproc=no
4307fi
4308rm -f conftest.err conftest.$ac_ext
4309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4310echo "${ECHO_T}$ac_header_preproc" >&6
4311
4312# So?  What about this header?
4313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4314  yes:no: )
4315    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4317    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4319    ac_header_preproc=yes
4320    ;;
4321  no:yes:* )
4322    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4324    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4325echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4326    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4328    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4329echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4330    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4332    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4334    (
4335      cat <<\_ASBOX
4336## ------------------------------------------ ##
4337## Report this to the AC_PACKAGE_NAME lists.  ##
4338## ------------------------------------------ ##
4339_ASBOX
4340    ) |
4341      sed "s/^/$as_me: WARNING:     /" >&2
4342    ;;
4343esac
4344echo "$as_me:$LINENO: checking for $ac_header" >&5
4345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4346if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347  echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
4349  eval "$as_ac_Header=\$ac_header_preproc"
4350fi
4351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4353
4354fi
4355if test `eval echo '${'$as_ac_Header'}'` = yes; then
4356  cat >>confdefs.h <<_ACEOF
4357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4358_ACEOF
4359
4360fi
4361
4362done
4363
4364# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
4365if test "${enable_ltdl_install+set}" = set; then
4366  enableval="$enable_ltdl_install"
4367
4368fi;
4369
4370
4371
4372if test x"${enable_ltdl_install-no}" != xno; then
4373  INSTALL_LTDL_TRUE=
4374  INSTALL_LTDL_FALSE='#'
4375else
4376  INSTALL_LTDL_TRUE='#'
4377  INSTALL_LTDL_FALSE=
4378fi
4379
4380
4381
4382if test x"${enable_ltdl_convenience-no}" != xno; then
4383  CONVENIENCE_LTDL_TRUE=
4384  CONVENIENCE_LTDL_FALSE='#'
4385else
4386  CONVENIENCE_LTDL_TRUE='#'
4387  CONVENIENCE_LTDL_FALSE=
4388fi
4389
4390
4391echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4392echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4393library_names_spec=
4394libname_spec='lib$name'
4395soname_spec=
4396shrext_cmds=".so"
4397postinstall_cmds=
4398postuninstall_cmds=
4399finish_cmds=
4400finish_eval=
4401shlibpath_var=
4402shlibpath_overrides_runpath=unknown
4403version_type=none
4404dynamic_linker="$host_os ld.so"
4405sys_lib_dlsearch_path_spec="/lib /usr/lib"
4406if test "$GCC" = yes; then
4407  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4408  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4409    # if the path contains ";" then we assume it to be the separator
4410    # otherwise default to the standard path separator (i.e. ":") - it is
4411    # assumed that no part of a normal pathname contains ";" but that should
4412    # okay in the real world where ";" in dirpaths is itself problematic.
4413    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4414  else
4415    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4416  fi
4417else
4418  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4419fi
4420need_lib_prefix=unknown
4421hardcode_into_libs=no
4422
4423# when you set need_version to no, make sure it does not cause -set_version
4424# flags to be left without arguments
4425need_version=unknown
4426
4427case $host_os in
4428aix3*)
4429  version_type=linux
4430  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4431  shlibpath_var=LIBPATH
4432
4433  # AIX 3 has no versioning support, so we append a major version to the name.
4434  soname_spec='${libname}${release}${shared_ext}$major'
4435  ;;
4436
4437aix4* | aix5*)
4438  version_type=linux
4439  need_lib_prefix=no
4440  need_version=no
4441  hardcode_into_libs=yes
4442  if test "$host_cpu" = ia64; then
4443    # AIX 5 supports IA64
4444    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4445    shlibpath_var=LD_LIBRARY_PATH
4446  else
4447    # With GCC up to 2.95.x, collect2 would create an import file
4448    # for dependence libraries.  The import file would start with
4449    # the line `#! .'.  This would cause the generated library to
4450    # depend on `.', always an invalid library.  This was fixed in
4451    # development snapshots of GCC prior to 3.0.
4452    case $host_os in
4453      aix4 | aix4.[01] | aix4.[01].*)
4454      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4455	   echo ' yes '
4456	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4457	:
4458      else
4459	can_build_shared=no
4460      fi
4461      ;;
4462    esac
4463    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4464    # soname into executable. Probably we can add versioning support to
4465    # collect2, so additional links can be useful in future.
4466    if test "$aix_use_runtimelinking" = yes; then
4467      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4468      # instead of lib<name>.a to let people know that these are not
4469      # typical AIX shared libraries.
4470      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4471    else
4472      # We preserve .a as extension for shared libraries through AIX4.2
4473      # and later when we are not doing run time linking.
4474      library_names_spec='${libname}${release}.a $libname.a'
4475      soname_spec='${libname}${release}${shared_ext}$major'
4476    fi
4477    shlibpath_var=LIBPATH
4478  fi
4479  ;;
4480
4481amigaos*)
4482  library_names_spec='$libname.ixlibrary $libname.a'
4483  # Create ${libname}_ixlibrary.a entries in /sys/libs.
4484  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'
4485  ;;
4486
4487beos*)
4488  library_names_spec='${libname}${shared_ext}'
4489  dynamic_linker="$host_os ld.so"
4490  shlibpath_var=LIBRARY_PATH
4491  ;;
4492
4493bsdi[45]*)
4494  version_type=linux
4495  need_version=no
4496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4497  soname_spec='${libname}${release}${shared_ext}$major'
4498  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4499  shlibpath_var=LD_LIBRARY_PATH
4500  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4501  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4502  # the default ld.so.conf also contains /usr/contrib/lib and
4503  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4504  # libtool to hard-code these into programs
4505  ;;
4506
4507cygwin* | mingw* | pw32*)
4508  version_type=windows
4509  shrext_cmds=".dll"
4510  need_version=no
4511  need_lib_prefix=no
4512
4513  case $GCC,$host_os in
4514  yes,cygwin* | yes,mingw* | yes,pw32*)
4515    library_names_spec='$libname.dll.a'
4516    # DLL is installed to $(libdir)/../bin by postinstall_cmds
4517    postinstall_cmds='base_file=`basename \${file}`~
4518      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4519      dldir=$destdir/`dirname \$dlpath`~
4520      test -d \$dldir || mkdir -p \$dldir~
4521      $install_prog $dir/$dlname \$dldir/$dlname~
4522      chmod a+x \$dldir/$dlname'
4523    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4524      dlpath=$dir/\$dldll~
4525       $rm \$dlpath'
4526    shlibpath_overrides_runpath=yes
4527
4528    case $host_os in
4529    cygwin*)
4530      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4531      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4532      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4533      ;;
4534    mingw*)
4535      # MinGW DLLs use traditional 'lib' prefix
4536      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4537      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4538      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4539        # It is most probably a Windows format PATH printed by
4540        # mingw gcc, but we are running on Cygwin. Gcc prints its search
4541        # path with ; separators, and with drive letters. We can handle the
4542        # drive letters (cygwin fileutils understands them), so leave them,
4543        # especially as we might pass files found there to a mingw objdump,
4544        # which wouldn't understand a cygwinified path. Ahh.
4545        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4546      else
4547        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4548      fi
4549      ;;
4550    pw32*)
4551      # pw32 DLLs use 'pw' prefix rather than 'lib'
4552      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4553      ;;
4554    esac
4555    ;;
4556
4557  *)
4558    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4559    ;;
4560  esac
4561  dynamic_linker='Win32 ld.exe'
4562  # FIXME: first we should search . and the directory the executable is in
4563  shlibpath_var=PATH
4564  ;;
4565
4566darwin* | rhapsody*)
4567  dynamic_linker="$host_os dyld"
4568  version_type=darwin
4569  need_lib_prefix=no
4570  need_version=no
4571  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4572  soname_spec='${libname}${release}${major}$shared_ext'
4573  shlibpath_overrides_runpath=yes
4574  shlibpath_var=DYLD_LIBRARY_PATH
4575  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4576  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4577  if test "$GCC" = yes; then
4578    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"`
4579  else
4580    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
4581  fi
4582  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4583  ;;
4584
4585dgux*)
4586  version_type=linux
4587  need_lib_prefix=no
4588  need_version=no
4589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4590  soname_spec='${libname}${release}${shared_ext}$major'
4591  shlibpath_var=LD_LIBRARY_PATH
4592  ;;
4593
4594freebsd1*)
4595  dynamic_linker=no
4596  ;;
4597
4598kfreebsd*-gnu)
4599  version_type=linux
4600  need_lib_prefix=no
4601  need_version=no
4602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4603  soname_spec='${libname}${release}${shared_ext}$major'
4604  shlibpath_var=LD_LIBRARY_PATH
4605  shlibpath_overrides_runpath=no
4606  hardcode_into_libs=yes
4607  dynamic_linker='GNU ld.so'
4608  ;;
4609
4610freebsd* | dragonfly*)
4611  # DragonFly does not have aout.  When/if they implement a new
4612  # versioning mechanism, adjust this.
4613  if test -x /usr/bin/objformat; then
4614    objformat=`/usr/bin/objformat`
4615  else
4616    case $host_os in
4617    freebsd[123]*) objformat=aout ;;
4618    *) objformat=elf ;;
4619    esac
4620  fi
4621  version_type=freebsd-$objformat
4622  case $version_type in
4623    freebsd-elf*)
4624      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4625      need_version=no
4626      need_lib_prefix=no
4627      ;;
4628    freebsd-*)
4629      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4630      need_version=yes
4631      ;;
4632  esac
4633  shlibpath_var=LD_LIBRARY_PATH
4634  case $host_os in
4635  freebsd2*)
4636    shlibpath_overrides_runpath=yes
4637    ;;
4638  freebsd3.[01]* | freebsdelf3.[01]*)
4639    shlibpath_overrides_runpath=yes
4640    hardcode_into_libs=yes
4641    ;;
4642  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
4643  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
4644    shlibpath_overrides_runpath=no
4645    hardcode_into_libs=yes
4646    ;;
4647  freebsd*) # from 4.6 on
4648    shlibpath_overrides_runpath=yes
4649    hardcode_into_libs=yes
4650    ;;
4651  esac
4652  ;;
4653
4654gnu*)
4655  version_type=linux
4656  need_lib_prefix=no
4657  need_version=no
4658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4659  soname_spec='${libname}${release}${shared_ext}$major'
4660  shlibpath_var=LD_LIBRARY_PATH
4661  hardcode_into_libs=yes
4662  ;;
4663
4664hpux9* | hpux10* | hpux11*)
4665  # Give a soname corresponding to the major version so that dld.sl refuses to
4666  # link against other versions.
4667  version_type=sunos
4668  need_lib_prefix=no
4669  need_version=no
4670  case $host_cpu in
4671  ia64*)
4672    shrext_cmds='.so'
4673    hardcode_into_libs=yes
4674    dynamic_linker="$host_os dld.so"
4675    shlibpath_var=LD_LIBRARY_PATH
4676    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4677    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4678    soname_spec='${libname}${release}${shared_ext}$major'
4679    if test "X$HPUX_IA64_MODE" = X32; then
4680      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4681    else
4682      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4683    fi
4684    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4685    ;;
4686   hppa*64*)
4687     shrext_cmds='.sl'
4688     hardcode_into_libs=yes
4689     dynamic_linker="$host_os dld.sl"
4690     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4693     soname_spec='${libname}${release}${shared_ext}$major'
4694     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4695     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4696     ;;
4697   *)
4698    shrext_cmds='.sl'
4699    dynamic_linker="$host_os dld.sl"
4700    shlibpath_var=SHLIB_PATH
4701    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4702    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4703    soname_spec='${libname}${release}${shared_ext}$major'
4704    ;;
4705  esac
4706  # HP-UX runs *really* slowly unless shared libraries are mode 555.
4707  postinstall_cmds='chmod 555 $lib'
4708  ;;
4709
4710interix3*)
4711  version_type=linux
4712  need_lib_prefix=no
4713  need_version=no
4714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4715  soname_spec='${libname}${release}${shared_ext}$major'
4716  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4717  shlibpath_var=LD_LIBRARY_PATH
4718  shlibpath_overrides_runpath=no
4719  hardcode_into_libs=yes
4720  ;;
4721
4722irix5* | irix6* | nonstopux*)
4723  case $host_os in
4724    nonstopux*) version_type=nonstopux ;;
4725    *)
4726	if test "$lt_cv_prog_gnu_ld" = yes; then
4727		version_type=linux
4728	else
4729		version_type=irix
4730	fi ;;
4731  esac
4732  need_lib_prefix=no
4733  need_version=no
4734  soname_spec='${libname}${release}${shared_ext}$major'
4735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4736  case $host_os in
4737  irix5* | nonstopux*)
4738    libsuff= shlibsuff=
4739    ;;
4740  *)
4741    case $LD in # libtool.m4 will add one of these switches to LD
4742    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4743      libsuff= shlibsuff= libmagic=32-bit;;
4744    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4745      libsuff=32 shlibsuff=N32 libmagic=N32;;
4746    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4747      libsuff=64 shlibsuff=64 libmagic=64-bit;;
4748    *) libsuff= shlibsuff= libmagic=never-match;;
4749    esac
4750    ;;
4751  esac
4752  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4753  shlibpath_overrides_runpath=no
4754  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4755  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4756  hardcode_into_libs=yes
4757  ;;
4758
4759# No shared lib support for Linux oldld, aout, or coff.
4760linux*oldld* | linux*aout* | linux*coff*)
4761  dynamic_linker=no
4762  ;;
4763
4764# This must be Linux ELF.
4765linux*)
4766  version_type=linux
4767  need_lib_prefix=no
4768  need_version=no
4769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4770  soname_spec='${libname}${release}${shared_ext}$major'
4771  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4772  shlibpath_var=LD_LIBRARY_PATH
4773  shlibpath_overrides_runpath=no
4774  # This implies no fast_install, which is unacceptable.
4775  # Some rework will be needed to allow for fast_install
4776  # before this can be enabled.
4777  hardcode_into_libs=yes
4778
4779  # find out which ABI we are using
4780  libsuff=
4781  case "$host_cpu" in
4782  x86_64*|s390x*|powerpc64*)
4783    echo '#line 4785 "configure"' > conftest.$ac_ext
4784    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785  (eval $ac_compile) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; then
4789      case `/usr/bin/file conftest.$ac_objext` in
4790      *64-bit*)
4791        libsuff=64
4792        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
4793        ;;
4794      esac
4795    fi
4796    rm -rf conftest*
4797    ;;
4798  esac
4799
4800  # Append ld.so.conf contents to the search path
4801  if test -f /etc/ld.so.conf; then
4802    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' ' '`
4803    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
4804  fi
4805
4806  # We used to test for /lib/ld.so.1 and disable shared libraries on
4807  # powerpc, because MkLinux only supported shared libraries with the
4808  # GNU dynamic linker.  Since this was broken with cross compilers,
4809  # most powerpc-linux boxes support dynamic linking these days and
4810  # people can always --disable-shared, the test was removed, and we
4811  # assume the GNU/Linux dynamic linker is in use.
4812  dynamic_linker='GNU/Linux ld.so'
4813  ;;
4814
4815knetbsd*-gnu)
4816  version_type=linux
4817  need_lib_prefix=no
4818  need_version=no
4819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4820  soname_spec='${libname}${release}${shared_ext}$major'
4821  shlibpath_var=LD_LIBRARY_PATH
4822  shlibpath_overrides_runpath=no
4823  hardcode_into_libs=yes
4824  dynamic_linker='GNU ld.so'
4825  ;;
4826
4827netbsd*)
4828  version_type=sunos
4829  need_lib_prefix=no
4830  need_version=no
4831  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4832    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4833    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4834    dynamic_linker='NetBSD (a.out) ld.so'
4835  else
4836    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4837    soname_spec='${libname}${release}${shared_ext}$major'
4838    dynamic_linker='NetBSD ld.elf_so'
4839  fi
4840  shlibpath_var=LD_LIBRARY_PATH
4841  shlibpath_overrides_runpath=yes
4842  hardcode_into_libs=yes
4843  ;;
4844
4845newsos6)
4846  version_type=linux
4847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4848  shlibpath_var=LD_LIBRARY_PATH
4849  shlibpath_overrides_runpath=yes
4850  ;;
4851
4852nto-qnx*)
4853  version_type=linux
4854  need_lib_prefix=no
4855  need_version=no
4856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4857  soname_spec='${libname}${release}${shared_ext}$major'
4858  shlibpath_var=LD_LIBRARY_PATH
4859  shlibpath_overrides_runpath=yes
4860  ;;
4861
4862openbsd*)
4863  version_type=sunos
4864  sys_lib_dlsearch_path_spec="/usr/lib"
4865  need_lib_prefix=no
4866  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4867  case $host_os in
4868    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4869    *)                         need_version=no  ;;
4870  esac
4871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4872  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4873  shlibpath_var=LD_LIBRARY_PATH
4874  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4875    case $host_os in
4876      openbsd2.[89] | openbsd2.[89].*)
4877	shlibpath_overrides_runpath=no
4878	;;
4879      *)
4880	shlibpath_overrides_runpath=yes
4881	;;
4882      esac
4883  else
4884    shlibpath_overrides_runpath=yes
4885  fi
4886  ;;
4887
4888os2*)
4889  libname_spec='$name'
4890  shrext_cmds=".dll"
4891  need_lib_prefix=no
4892  library_names_spec='$libname${shared_ext} $libname.a'
4893  dynamic_linker='OS/2 ld.exe'
4894  shlibpath_var=LIBPATH
4895  ;;
4896
4897osf3* | osf4* | osf5*)
4898  version_type=osf
4899  need_lib_prefix=no
4900  need_version=no
4901  soname_spec='${libname}${release}${shared_ext}$major'
4902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4903  shlibpath_var=LD_LIBRARY_PATH
4904  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4905  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4906  ;;
4907
4908solaris*)
4909  version_type=linux
4910  need_lib_prefix=no
4911  need_version=no
4912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4913  soname_spec='${libname}${release}${shared_ext}$major'
4914  shlibpath_var=LD_LIBRARY_PATH
4915  shlibpath_overrides_runpath=yes
4916  hardcode_into_libs=yes
4917  # ldd complains unless libraries are executable
4918  postinstall_cmds='chmod +x $lib'
4919  ;;
4920
4921sunos4*)
4922  version_type=sunos
4923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4924  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4925  shlibpath_var=LD_LIBRARY_PATH
4926  shlibpath_overrides_runpath=yes
4927  if test "$with_gnu_ld" = yes; then
4928    need_lib_prefix=no
4929  fi
4930  need_version=yes
4931  ;;
4932
4933sysv4 | sysv4.3*)
4934  version_type=linux
4935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4936  soname_spec='${libname}${release}${shared_ext}$major'
4937  shlibpath_var=LD_LIBRARY_PATH
4938  case $host_vendor in
4939    sni)
4940      shlibpath_overrides_runpath=no
4941      need_lib_prefix=no
4942      export_dynamic_flag_spec='${wl}-Blargedynsym'
4943      runpath_var=LD_RUN_PATH
4944      ;;
4945    siemens)
4946      need_lib_prefix=no
4947      ;;
4948    motorola)
4949      need_lib_prefix=no
4950      need_version=no
4951      shlibpath_overrides_runpath=no
4952      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4953      ;;
4954  esac
4955  ;;
4956
4957sysv4*MP*)
4958  if test -d /usr/nec ;then
4959    version_type=linux
4960    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4961    soname_spec='$libname${shared_ext}.$major'
4962    shlibpath_var=LD_LIBRARY_PATH
4963  fi
4964  ;;
4965
4966sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4967  version_type=freebsd-elf
4968  need_lib_prefix=no
4969  need_version=no
4970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4971  soname_spec='${libname}${release}${shared_ext}$major'
4972  shlibpath_var=LD_LIBRARY_PATH
4973  hardcode_into_libs=yes
4974  if test "$with_gnu_ld" = yes; then
4975    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4976    shlibpath_overrides_runpath=no
4977  else
4978    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4979    shlibpath_overrides_runpath=yes
4980    case $host_os in
4981      sco3.2v5*)
4982        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4983	;;
4984    esac
4985  fi
4986  sys_lib_dlsearch_path_spec='/usr/lib'
4987  ;;
4988
4989uts4*)
4990  version_type=linux
4991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4992  soname_spec='${libname}${release}${shared_ext}$major'
4993  shlibpath_var=LD_LIBRARY_PATH
4994  ;;
4995
4996*)
4997  dynamic_linker=no
4998  ;;
4999esac
5000echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5001echo "${ECHO_T}$dynamic_linker" >&6
5002test "$dynamic_linker" = no && can_build_shared=no
5003
5004variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5005if test "$GCC" = yes; then
5006  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5007fi
5008
5009
5010echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
5011echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
5012if test "${libltdl_cv_shlibext+set}" = set; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015
5016module=yes
5017eval libltdl_cv_shlibext=$shrext_cmds
5018
5019fi
5020echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
5021echo "${ECHO_T}$libltdl_cv_shlibext" >&6
5022if test -n "$libltdl_cv_shlibext"; then
5023
5024cat >>confdefs.h <<_ACEOF
5025#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
5026_ACEOF
5027
5028fi
5029
5030
5031echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5032echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5033if test "${libltdl_cv_shlibpath_var+set}" = set; then
5034  echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036  libltdl_cv_shlibpath_var="$shlibpath_var"
5037fi
5038echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5039echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5040if test -n "$libltdl_cv_shlibpath_var"; then
5041
5042cat >>confdefs.h <<_ACEOF
5043#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5044_ACEOF
5045
5046fi
5047
5048
5049echo "$as_me:$LINENO: checking for the default library search path" >&5
5050echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
5051if test "${libltdl_cv_sys_search_path+set}" = set; then
5052  echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
5055fi
5056echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
5057echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
5058if test -n "$libltdl_cv_sys_search_path"; then
5059  sys_search_path=
5060  for dir in $libltdl_cv_sys_search_path; do
5061    if test -z "$sys_search_path"; then
5062      sys_search_path="$dir"
5063    else
5064      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
5065    fi
5066  done
5067
5068cat >>confdefs.h <<_ACEOF
5069#define LTDL_SYSSEARCHPATH "$sys_search_path"
5070_ACEOF
5071
5072fi
5073
5074echo "$as_me:$LINENO: checking for objdir" >&5
5075echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5076if test "${libltdl_cv_objdir+set}" = set; then
5077  echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079  libltdl_cv_objdir="$objdir"
5080  if test -n "$objdir"; then
5081    :
5082  else
5083    rm -f .libs 2>/dev/null
5084    mkdir .libs 2>/dev/null
5085    if test -d .libs; then
5086      libltdl_cv_objdir=.libs
5087    else
5088      # MS-DOS does not allow filenames that begin with a dot.
5089      libltdl_cv_objdir=_libs
5090    fi
5091  rmdir .libs 2>/dev/null
5092  fi
5093
5094fi
5095echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
5096echo "${ECHO_T}$libltdl_cv_objdir" >&6
5097
5098cat >>confdefs.h <<_ACEOF
5099#define LTDL_OBJDIR "$libltdl_cv_objdir/"
5100_ACEOF
5101
5102
5103echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5104echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5105if test "${lt_cv_path_NM+set}" = set; then
5106  echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108  if test -n "$NM"; then
5109  # Let the user override the test.
5110  lt_cv_path_NM="$NM"
5111else
5112  lt_nm_to_check="${ac_tool_prefix}nm"
5113  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5114    lt_nm_to_check="$lt_nm_to_check nm"
5115  fi
5116  for lt_tmp_nm in $lt_nm_to_check; do
5117    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5118    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5119      IFS="$lt_save_ifs"
5120      test -z "$ac_dir" && ac_dir=.
5121      tmp_nm="$ac_dir/$lt_tmp_nm"
5122      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5123	# Check to see if the nm accepts a BSD-compat flag.
5124	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5125	#   nm: unknown option "B" ignored
5126	# Tru64's nm complains that /dev/null is an invalid object file
5127	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5128	*/dev/null* | *'Invalid file or object type'*)
5129	  lt_cv_path_NM="$tmp_nm -B"
5130	  break
5131	  ;;
5132	*)
5133	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5134	  */dev/null*)
5135	    lt_cv_path_NM="$tmp_nm -p"
5136	    break
5137	    ;;
5138	  *)
5139	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5140	    continue # so that we can try to find one that supports BSD flags
5141	    ;;
5142	  esac
5143	  ;;
5144	esac
5145      fi
5146    done
5147    IFS="$lt_save_ifs"
5148  done
5149  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5150fi
5151fi
5152echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5153echo "${ECHO_T}$lt_cv_path_NM" >&6
5154NM="$lt_cv_path_NM"
5155
5156
5157
5158
5159
5160# Check for command to grab the raw symbol name followed by C symbol from nm.
5161echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5162echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5163if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5164  echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166
5167# These are sane defaults that work on at least a few old systems.
5168# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5169
5170# Character class describing NM global symbol codes.
5171symcode='[BCDEGRST]'
5172
5173# Regexp to match symbols that can be accessed directly from C.
5174sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5175
5176# Transform an extracted symbol line into a proper C declaration
5177lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5178
5179# Transform an extracted symbol line into symbol name and symbol address
5180lt_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'"
5181
5182# Define system-specific variables.
5183case $host_os in
5184aix*)
5185  symcode='[BCDT]'
5186  ;;
5187cygwin* | mingw* | pw32*)
5188  symcode='[ABCDGISTW]'
5189  ;;
5190hpux*) # Its linker distinguishes data from code symbols
5191  if test "$host_cpu" = ia64; then
5192    symcode='[ABCDEGRST]'
5193  fi
5194  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5195  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'"
5196  ;;
5197linux*)
5198  if test "$host_cpu" = ia64; then
5199    symcode='[ABCDGIRSTW]'
5200    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5201    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'"
5202  fi
5203  ;;
5204irix* | nonstopux*)
5205  symcode='[BCDEGRST]'
5206  ;;
5207osf*)
5208  symcode='[BCDEGQRST]'
5209  ;;
5210solaris*)
5211  symcode='[BDRT]'
5212  ;;
5213sco3.2v5*)
5214  symcode='[DT]'
5215  ;;
5216sysv4.2uw2*)
5217  symcode='[DT]'
5218  ;;
5219sysv5* | sco5v6* | unixware* | OpenUNIX*)
5220  symcode='[ABDT]'
5221  ;;
5222sysv4)
5223  symcode='[DFNSTU]'
5224  ;;
5225esac
5226
5227# Handle CRLF in mingw tool chain
5228opt_cr=
5229case $build_os in
5230mingw*)
5231  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5232  ;;
5233esac
5234
5235# If we're using GNU nm, then use its standard symbol codes.
5236case `$NM -V 2>&1` in
5237*GNU* | *'with BFD'*)
5238  symcode='[ABCDGIRSTW]' ;;
5239esac
5240
5241# Try without a prefix undercore, then with it.
5242for ac_symprfx in "" "_"; do
5243
5244  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5245  symxfrm="\\1 $ac_symprfx\\2 \\2"
5246
5247  # Write the raw and C identifiers.
5248  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5249
5250  # Check to see that the pipe works correctly.
5251  pipe_works=no
5252
5253  rm -f conftest*
5254  cat > conftest.$ac_ext <<EOF
5255#ifdef __cplusplus
5256extern "C" {
5257#endif
5258char nm_test_var;
5259void nm_test_func(){}
5260#ifdef __cplusplus
5261}
5262#endif
5263int main(){nm_test_var='a';nm_test_func();return(0);}
5264EOF
5265
5266  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267  (eval $ac_compile) 2>&5
5268  ac_status=$?
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); }; then
5271    # Now try to grab the symbols.
5272    nlist=conftest.nm
5273    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5274  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5275  ac_status=$?
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } && test -s "$nlist"; then
5278      # Try sorting and uniquifying the output.
5279      if sort "$nlist" | uniq > "$nlist"T; then
5280	mv -f "$nlist"T "$nlist"
5281      else
5282	rm -f "$nlist"T
5283      fi
5284
5285      # Make sure that we snagged all the symbols we need.
5286      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5287	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5288	  cat <<EOF > conftest.$ac_ext
5289#ifdef __cplusplus
5290extern "C" {
5291#endif
5292
5293EOF
5294	  # Now generate the symbol file.
5295	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5296
5297	  cat <<EOF >> conftest.$ac_ext
5298#if defined (__STDC__) && __STDC__
5299# define lt_ptr_t void *
5300#else
5301# define lt_ptr_t char *
5302# define const
5303#endif
5304
5305/* The mapping between symbol names and symbols. */
5306const struct {
5307  const char *name;
5308  lt_ptr_t address;
5309}
5310lt_preloaded_symbols[] =
5311{
5312EOF
5313	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5314	  cat <<\EOF >> conftest.$ac_ext
5315  {0, (lt_ptr_t) 0}
5316};
5317
5318#ifdef __cplusplus
5319}
5320#endif
5321EOF
5322	  # Now try linking the two files.
5323	  mv conftest.$ac_objext conftstm.$ac_objext
5324	  lt_save_LIBS="$LIBS"
5325	  lt_save_CFLAGS="$CFLAGS"
5326	  LIBS="conftstm.$ac_objext"
5327	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5328	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5329  (eval $ac_link) 2>&5
5330  ac_status=$?
5331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5333	    pipe_works=yes
5334	  fi
5335	  LIBS="$lt_save_LIBS"
5336	  CFLAGS="$lt_save_CFLAGS"
5337	else
5338	  echo "cannot find nm_test_func in $nlist" >&5
5339	fi
5340      else
5341	echo "cannot find nm_test_var in $nlist" >&5
5342      fi
5343    else
5344      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5345    fi
5346  else
5347    echo "$progname: failed program was:" >&5
5348    cat conftest.$ac_ext >&5
5349  fi
5350  rm -f conftest* conftst*
5351
5352  # Do not use the global_symbol_pipe unless it works.
5353  if test "$pipe_works" = yes; then
5354    break
5355  else
5356    lt_cv_sys_global_symbol_pipe=
5357  fi
5358done
5359
5360fi
5361
5362if test -z "$lt_cv_sys_global_symbol_pipe"; then
5363  lt_cv_sys_global_symbol_to_cdecl=
5364fi
5365if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5366  echo "$as_me:$LINENO: result: failed" >&5
5367echo "${ECHO_T}failed" >&6
5368else
5369  echo "$as_me:$LINENO: result: ok" >&5
5370echo "${ECHO_T}ok" >&6
5371fi
5372
5373
5374echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
5375echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
5376if test "${libltdl_cv_preloaded_symbols+set}" = set; then
5377  echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379  if test -n "$lt_cv_sys_global_symbol_pipe"; then
5380    libltdl_cv_preloaded_symbols=yes
5381  else
5382    libltdl_cv_preloaded_symbols=no
5383  fi
5384
5385fi
5386echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
5387echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
5388if test x"$libltdl_cv_preloaded_symbols" = xyes; then
5389
5390cat >>confdefs.h <<\_ACEOF
5391#define HAVE_PRELOADED_SYMBOLS 1
5392_ACEOF
5393
5394fi
5395
5396LIBADD_DL=
5397
5398ac_ext=c
5399ac_cpp='$CPP $CPPFLAGS'
5400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403
5404
5405echo "$as_me:$LINENO: checking for shl_load" >&5
5406echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5407if test "${ac_cv_func_shl_load+set}" = set; then
5408  echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410  cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h.  */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h.  */
5416/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
5417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5418#define shl_load innocuous_shl_load
5419
5420/* System header to define __stub macros and hopefully few prototypes,
5421    which can conflict with char shl_load (); below.
5422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423    <limits.h> exists even on freestanding compilers.  */
5424
5425#ifdef __STDC__
5426# include <limits.h>
5427#else
5428# include <assert.h>
5429#endif
5430
5431#undef shl_load
5432
5433/* Override any gcc2 internal prototype to avoid an error.  */
5434#ifdef __cplusplus
5435extern "C"
5436{
5437#endif
5438/* We use char because int might match the return type of a gcc2
5439   builtin and then its argument prototype would still apply.  */
5440char shl_load ();
5441/* The GNU C library defines this for functions which it implements
5442    to always fail with ENOSYS.  Some functions are actually named
5443    something starting with __ and the normal name is an alias.  */
5444#if defined (__stub_shl_load) || defined (__stub___shl_load)
5445choke me
5446#else
5447char (*f) () = shl_load;
5448#endif
5449#ifdef __cplusplus
5450}
5451#endif
5452
5453int
5454main ()
5455{
5456return f != shl_load;
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461rm -f conftest.$ac_objext conftest$ac_exeext
5462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463  (eval $ac_link) 2>conftest.er1
5464  ac_status=$?
5465  grep -v '^ *+' conftest.er1 >conftest.err
5466  rm -f conftest.er1
5467  cat conftest.err >&5
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); } &&
5470	 { ac_try='test -z "$ac_c_werror_flag"
5471			 || test ! -s conftest.err'
5472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473  (eval $ac_try) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }; } &&
5477	 { ac_try='test -s conftest$ac_exeext'
5478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479  (eval $ac_try) 2>&5
5480  ac_status=$?
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); }; }; then
5483  ac_cv_func_shl_load=yes
5484else
5485  echo "$as_me: failed program was:" >&5
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
5488ac_cv_func_shl_load=no
5489fi
5490rm -f conftest.err conftest.$ac_objext \
5491      conftest$ac_exeext conftest.$ac_ext
5492fi
5493echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5494echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5495if test $ac_cv_func_shl_load = yes; then
5496
5497cat >>confdefs.h <<\_ACEOF
5498#define HAVE_SHL_LOAD 1
5499_ACEOF
5500
5501else
5502  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5503echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5504if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  ac_check_lib_save_LIBS=$LIBS
5508LIBS="-ldld  $LIBS"
5509cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h.  */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h.  */
5515
5516/* Override any gcc2 internal prototype to avoid an error.  */
5517#ifdef __cplusplus
5518extern "C"
5519#endif
5520/* We use char because int might match the return type of a gcc2
5521   builtin and then its argument prototype would still apply.  */
5522char shl_load ();
5523int
5524main ()
5525{
5526shl_load ();
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
5532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533  (eval $ac_link) 2>conftest.er1
5534  ac_status=$?
5535  grep -v '^ *+' conftest.er1 >conftest.err
5536  rm -f conftest.er1
5537  cat conftest.err >&5
5538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); } &&
5540	 { ac_try='test -z "$ac_c_werror_flag"
5541			 || test ! -s conftest.err'
5542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543  (eval $ac_try) 2>&5
5544  ac_status=$?
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); }; } &&
5547	 { ac_try='test -s conftest$ac_exeext'
5548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549  (eval $ac_try) 2>&5
5550  ac_status=$?
5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552  (exit $ac_status); }; }; then
5553  ac_cv_lib_dld_shl_load=yes
5554else
5555  echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558ac_cv_lib_dld_shl_load=no
5559fi
5560rm -f conftest.err conftest.$ac_objext \
5561      conftest$ac_exeext conftest.$ac_ext
5562LIBS=$ac_check_lib_save_LIBS
5563fi
5564echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5565echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5566if test $ac_cv_lib_dld_shl_load = yes; then
5567
5568cat >>confdefs.h <<\_ACEOF
5569#define HAVE_SHL_LOAD 1
5570_ACEOF
5571
5572	LIBADD_DL="$LIBADD_DL -ldld"
5573else
5574  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5575echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5576if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5577  echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579  ac_check_lib_save_LIBS=$LIBS
5580LIBS="-ldl  $LIBS"
5581cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h.  */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h.  */
5587
5588/* Override any gcc2 internal prototype to avoid an error.  */
5589#ifdef __cplusplus
5590extern "C"
5591#endif
5592/* We use char because int might match the return type of a gcc2
5593   builtin and then its argument prototype would still apply.  */
5594char dlopen ();
5595int
5596main ()
5597{
5598dlopen ();
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603rm -f conftest.$ac_objext conftest$ac_exeext
5604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605  (eval $ac_link) 2>conftest.er1
5606  ac_status=$?
5607  grep -v '^ *+' conftest.er1 >conftest.err
5608  rm -f conftest.er1
5609  cat conftest.err >&5
5610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611  (exit $ac_status); } &&
5612	 { ac_try='test -z "$ac_c_werror_flag"
5613			 || test ! -s conftest.err'
5614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615  (eval $ac_try) 2>&5
5616  ac_status=$?
5617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618  (exit $ac_status); }; } &&
5619	 { ac_try='test -s conftest$ac_exeext'
5620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621  (eval $ac_try) 2>&5
5622  ac_status=$?
5623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624  (exit $ac_status); }; }; then
5625  ac_cv_lib_dl_dlopen=yes
5626else
5627  echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630ac_cv_lib_dl_dlopen=no
5631fi
5632rm -f conftest.err conftest.$ac_objext \
5633      conftest$ac_exeext conftest.$ac_ext
5634LIBS=$ac_check_lib_save_LIBS
5635fi
5636echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5637echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5638if test $ac_cv_lib_dl_dlopen = yes; then
5639
5640cat >>confdefs.h <<\_ACEOF
5641#define HAVE_LIBDL 1
5642_ACEOF
5643
5644	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
5645else
5646  cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h.  */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h.  */
5652#if HAVE_DLFCN_H
5653#  include <dlfcn.h>
5654#endif
5655
5656int
5657main ()
5658{
5659dlopen(0, 0);
5660  ;
5661  return 0;
5662}
5663_ACEOF
5664rm -f conftest.$ac_objext conftest$ac_exeext
5665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666  (eval $ac_link) 2>conftest.er1
5667  ac_status=$?
5668  grep -v '^ *+' conftest.er1 >conftest.err
5669  rm -f conftest.er1
5670  cat conftest.err >&5
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); } &&
5673	 { ac_try='test -z "$ac_c_werror_flag"
5674			 || test ! -s conftest.err'
5675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676  (eval $ac_try) 2>&5
5677  ac_status=$?
5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679  (exit $ac_status); }; } &&
5680	 { ac_try='test -s conftest$ac_exeext'
5681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682  (eval $ac_try) 2>&5
5683  ac_status=$?
5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685  (exit $ac_status); }; }; then
5686
5687cat >>confdefs.h <<\_ACEOF
5688#define HAVE_LIBDL 1
5689_ACEOF
5690 libltdl_cv_func_dlopen="yes"
5691else
5692  echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
5696echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5697if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5698  echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700  ac_check_lib_save_LIBS=$LIBS
5701LIBS="-lsvld  $LIBS"
5702cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h.  */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h.  */
5708
5709/* Override any gcc2 internal prototype to avoid an error.  */
5710#ifdef __cplusplus
5711extern "C"
5712#endif
5713/* We use char because int might match the return type of a gcc2
5714   builtin and then its argument prototype would still apply.  */
5715char dlopen ();
5716int
5717main ()
5718{
5719dlopen ();
5720  ;
5721  return 0;
5722}
5723_ACEOF
5724rm -f conftest.$ac_objext conftest$ac_exeext
5725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5726  (eval $ac_link) 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } &&
5733	 { ac_try='test -z "$ac_c_werror_flag"
5734			 || test ! -s conftest.err'
5735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736  (eval $ac_try) 2>&5
5737  ac_status=$?
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); }; } &&
5740	 { ac_try='test -s conftest$ac_exeext'
5741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742  (eval $ac_try) 2>&5
5743  ac_status=$?
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); }; }; then
5746  ac_cv_lib_svld_dlopen=yes
5747else
5748  echo "$as_me: failed program was:" >&5
5749sed 's/^/| /' conftest.$ac_ext >&5
5750
5751ac_cv_lib_svld_dlopen=no
5752fi
5753rm -f conftest.err conftest.$ac_objext \
5754      conftest$ac_exeext conftest.$ac_ext
5755LIBS=$ac_check_lib_save_LIBS
5756fi
5757echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
5758echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5759if test $ac_cv_lib_svld_dlopen = yes; then
5760
5761cat >>confdefs.h <<\_ACEOF
5762#define HAVE_LIBDL 1
5763_ACEOF
5764
5765	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
5766else
5767  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5768echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5769if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  ac_check_lib_save_LIBS=$LIBS
5773LIBS="-ldld  $LIBS"
5774cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h.  */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h.  */
5780
5781/* Override any gcc2 internal prototype to avoid an error.  */
5782#ifdef __cplusplus
5783extern "C"
5784#endif
5785/* We use char because int might match the return type of a gcc2
5786   builtin and then its argument prototype would still apply.  */
5787char dld_link ();
5788int
5789main ()
5790{
5791dld_link ();
5792  ;
5793  return 0;
5794}
5795_ACEOF
5796rm -f conftest.$ac_objext conftest$ac_exeext
5797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5798  (eval $ac_link) 2>conftest.er1
5799  ac_status=$?
5800  grep -v '^ *+' conftest.er1 >conftest.err
5801  rm -f conftest.er1
5802  cat conftest.err >&5
5803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804  (exit $ac_status); } &&
5805	 { ac_try='test -z "$ac_c_werror_flag"
5806			 || test ! -s conftest.err'
5807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808  (eval $ac_try) 2>&5
5809  ac_status=$?
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); }; } &&
5812	 { ac_try='test -s conftest$ac_exeext'
5813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814  (eval $ac_try) 2>&5
5815  ac_status=$?
5816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817  (exit $ac_status); }; }; then
5818  ac_cv_lib_dld_dld_link=yes
5819else
5820  echo "$as_me: failed program was:" >&5
5821sed 's/^/| /' conftest.$ac_ext >&5
5822
5823ac_cv_lib_dld_dld_link=no
5824fi
5825rm -f conftest.err conftest.$ac_objext \
5826      conftest$ac_exeext conftest.$ac_ext
5827LIBS=$ac_check_lib_save_LIBS
5828fi
5829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5830echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5831if test $ac_cv_lib_dld_dld_link = yes; then
5832
5833cat >>confdefs.h <<\_ACEOF
5834#define HAVE_DLD 1
5835_ACEOF
5836
5837	 	LIBADD_DL="$LIBADD_DL -ldld"
5838else
5839  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
5840echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
5841if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
5842  echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844  cat >conftest.$ac_ext <<_ACEOF
5845/* confdefs.h.  */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h.  */
5850/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
5851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5852#define _dyld_func_lookup innocuous__dyld_func_lookup
5853
5854/* System header to define __stub macros and hopefully few prototypes,
5855    which can conflict with char _dyld_func_lookup (); below.
5856    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857    <limits.h> exists even on freestanding compilers.  */
5858
5859#ifdef __STDC__
5860# include <limits.h>
5861#else
5862# include <assert.h>
5863#endif
5864
5865#undef _dyld_func_lookup
5866
5867/* Override any gcc2 internal prototype to avoid an error.  */
5868#ifdef __cplusplus
5869extern "C"
5870{
5871#endif
5872/* We use char because int might match the return type of a gcc2
5873   builtin and then its argument prototype would still apply.  */
5874char _dyld_func_lookup ();
5875/* The GNU C library defines this for functions which it implements
5876    to always fail with ENOSYS.  Some functions are actually named
5877    something starting with __ and the normal name is an alias.  */
5878#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
5879choke me
5880#else
5881char (*f) () = _dyld_func_lookup;
5882#endif
5883#ifdef __cplusplus
5884}
5885#endif
5886
5887int
5888main ()
5889{
5890return f != _dyld_func_lookup;
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895rm -f conftest.$ac_objext conftest$ac_exeext
5896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897  (eval $ac_link) 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } &&
5904	 { ac_try='test -z "$ac_c_werror_flag"
5905			 || test ! -s conftest.err'
5906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907  (eval $ac_try) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; } &&
5911	 { ac_try='test -s conftest$ac_exeext'
5912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913  (eval $ac_try) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; }; then
5917  ac_cv_func__dyld_func_lookup=yes
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922ac_cv_func__dyld_func_lookup=no
5923fi
5924rm -f conftest.err conftest.$ac_objext \
5925      conftest$ac_exeext conftest.$ac_ext
5926fi
5927echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
5928echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
5929if test $ac_cv_func__dyld_func_lookup = yes; then
5930
5931cat >>confdefs.h <<\_ACEOF
5932#define HAVE_DYLD 1
5933_ACEOF
5934
5935fi
5936
5937
5938fi
5939
5940
5941fi
5942
5943
5944fi
5945rm -f conftest.err conftest.$ac_objext \
5946      conftest$ac_exeext conftest.$ac_ext
5947
5948fi
5949
5950
5951fi
5952
5953
5954fi
5955
5956
5957if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
5958then
5959  lt_save_LIBS="$LIBS"
5960  LIBS="$LIBS $LIBADD_DL"
5961
5962for ac_func in dlerror
5963do
5964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5965echo "$as_me:$LINENO: checking for $ac_func" >&5
5966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5967if eval "test \"\${$as_ac_var+set}\" = set"; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h.  */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h.  */
5976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5977   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5978#define $ac_func innocuous_$ac_func
5979
5980/* System header to define __stub macros and hopefully few prototypes,
5981    which can conflict with char $ac_func (); below.
5982    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983    <limits.h> exists even on freestanding compilers.  */
5984
5985#ifdef __STDC__
5986# include <limits.h>
5987#else
5988# include <assert.h>
5989#endif
5990
5991#undef $ac_func
5992
5993/* Override any gcc2 internal prototype to avoid an error.  */
5994#ifdef __cplusplus
5995extern "C"
5996{
5997#endif
5998/* We use char because int might match the return type of a gcc2
5999   builtin and then its argument prototype would still apply.  */
6000char $ac_func ();
6001/* The GNU C library defines this for functions which it implements
6002    to always fail with ENOSYS.  Some functions are actually named
6003    something starting with __ and the normal name is an alias.  */
6004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6005choke me
6006#else
6007char (*f) () = $ac_func;
6008#endif
6009#ifdef __cplusplus
6010}
6011#endif
6012
6013int
6014main ()
6015{
6016return f != $ac_func;
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021rm -f conftest.$ac_objext conftest$ac_exeext
6022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023  (eval $ac_link) 2>conftest.er1
6024  ac_status=$?
6025  grep -v '^ *+' conftest.er1 >conftest.err
6026  rm -f conftest.er1
6027  cat conftest.err >&5
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); } &&
6030	 { ac_try='test -z "$ac_c_werror_flag"
6031			 || test ! -s conftest.err'
6032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033  (eval $ac_try) 2>&5
6034  ac_status=$?
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); }; } &&
6037	 { ac_try='test -s conftest$ac_exeext'
6038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039  (eval $ac_try) 2>&5
6040  ac_status=$?
6041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042  (exit $ac_status); }; }; then
6043  eval "$as_ac_var=yes"
6044else
6045  echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048eval "$as_ac_var=no"
6049fi
6050rm -f conftest.err conftest.$ac_objext \
6051      conftest$ac_exeext conftest.$ac_ext
6052fi
6053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6054echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6055if test `eval echo '${'$as_ac_var'}'` = yes; then
6056  cat >>confdefs.h <<_ACEOF
6057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6058_ACEOF
6059
6060fi
6061done
6062
6063  LIBS="$lt_save_LIBS"
6064fi
6065ac_ext=c
6066ac_cpp='$CPP $CPPFLAGS'
6067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070
6071
6072
6073echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
6074echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
6075if test "${ac_cv_sys_symbol_underscore+set}" = set; then
6076  echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078  ac_cv_sys_symbol_underscore=no
6079  cat > conftest.$ac_ext <<EOF
6080void nm_test_func(){}
6081int main(){nm_test_func;return 0;}
6082EOF
6083  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084  (eval $ac_compile) 2>&5
6085  ac_status=$?
6086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); }; then
6088    # Now try to grab the symbols.
6089    ac_nlist=conftest.nm
6090    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
6091  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
6092  ac_status=$?
6093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094  (exit $ac_status); } && test -s "$ac_nlist"; then
6095      # See whether the symbols have a leading underscore.
6096      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
6097        ac_cv_sys_symbol_underscore=yes
6098      else
6099        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
6100	  :
6101        else
6102	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
6103        fi
6104      fi
6105    else
6106      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
6107    fi
6108  else
6109    echo "configure: failed program was:" >&5
6110    cat conftest.c >&5
6111  fi
6112  rm -rf conftest*
6113
6114fi
6115echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
6116echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
6117
6118
6119if test x"$ac_cv_sys_symbol_underscore" = xyes; then
6120  if test x"$libltdl_cv_func_dlopen" = xyes ||
6121     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
6122	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
6123echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
6124if test "${libltdl_cv_need_uscore+set}" = set; then
6125  echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127  libltdl_cv_need_uscore=unknown
6128          save_LIBS="$LIBS"
6129          LIBS="$LIBS $LIBADD_DL"
6130	  if test "$cross_compiling" = yes; then :
6131  libltdl_cv_need_uscore=cross
6132else
6133  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6134  lt_status=$lt_dlunknown
6135  cat > conftest.$ac_ext <<EOF
6136#line 6138 "configure"
6137#include "confdefs.h"
6138
6139#if HAVE_DLFCN_H
6140#include <dlfcn.h>
6141#endif
6142
6143#include <stdio.h>
6144
6145#ifdef RTLD_GLOBAL
6146#  define LT_DLGLOBAL		RTLD_GLOBAL
6147#else
6148#  ifdef DL_GLOBAL
6149#    define LT_DLGLOBAL		DL_GLOBAL
6150#  else
6151#    define LT_DLGLOBAL		0
6152#  endif
6153#endif
6154
6155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6156   find out it does not work in some platform. */
6157#ifndef LT_DLLAZY_OR_NOW
6158#  ifdef RTLD_LAZY
6159#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6160#  else
6161#    ifdef DL_LAZY
6162#      define LT_DLLAZY_OR_NOW		DL_LAZY
6163#    else
6164#      ifdef RTLD_NOW
6165#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6166#      else
6167#        ifdef DL_NOW
6168#          define LT_DLLAZY_OR_NOW	DL_NOW
6169#        else
6170#          define LT_DLLAZY_OR_NOW	0
6171#        endif
6172#      endif
6173#    endif
6174#  endif
6175#endif
6176
6177#ifdef __cplusplus
6178extern "C" void exit (int);
6179#endif
6180
6181void fnord() { int i=42;}
6182int main ()
6183{
6184  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6185  int status = $lt_dlunknown;
6186
6187  if (self)
6188    {
6189      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6190      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6191      /* dlclose (self); */
6192    }
6193  else
6194    puts (dlerror ());
6195
6196    exit (status);
6197}
6198EOF
6199  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200  (eval $ac_link) 2>&5
6201  ac_status=$?
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6204    (./conftest; exit; ) >&5 2>/dev/null
6205    lt_status=$?
6206    case x$lt_status in
6207      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
6208      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
6209      x$lt_dlunknown|x*)  ;;
6210    esac
6211  else :
6212    # compilation failed
6213
6214  fi
6215fi
6216rm -fr conftest*
6217
6218	  LIBS="$save_LIBS"
6219
6220fi
6221echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
6222echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
6223  fi
6224fi
6225
6226if test x"$libltdl_cv_need_uscore" = xyes; then
6227
6228cat >>confdefs.h <<\_ACEOF
6229#define NEED_USCORE 1
6230_ACEOF
6231
6232fi
6233
6234
6235echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
6236echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
6237if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
6238  echo $ECHO_N "(cached) $ECHO_C" >&6
6239else
6240  # PORTME does your system automatically load deplibs for dlopen?
6241  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
6242  # For now, we just catch OSes we know something about -- in the
6243  # future, we'll try test this programmatically.
6244  libltdl_cv_sys_dlopen_deplibs=unknown
6245  case "$host_os" in
6246  aix3*|aix4.1.*|aix4.2.*)
6247    # Unknown whether this is true for these versions of AIX, but
6248    # we want this `case' here to explicitly catch those versions.
6249    libltdl_cv_sys_dlopen_deplibs=unknown
6250    ;;
6251  aix[45]*)
6252    libltdl_cv_sys_dlopen_deplibs=yes
6253    ;;
6254  darwin*)
6255    # Assuming the user has installed a libdl from somewhere, this is true
6256    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
6257    libltdl_cv_sys_dlopen_deplibs=yes
6258    ;;
6259  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
6260    # GNU and its variants, using gnu ld.so (Glibc)
6261    libltdl_cv_sys_dlopen_deplibs=yes
6262    ;;
6263  hpux10*|hpux11*)
6264    libltdl_cv_sys_dlopen_deplibs=yes
6265    ;;
6266  interix*)
6267    libltdl_cv_sys_dlopen_deplibs=yes
6268    ;;
6269  irix[12345]*|irix6.[01]*)
6270    # Catch all versions of IRIX before 6.2, and indicate that we don't
6271    # know how it worked for any of those versions.
6272    libltdl_cv_sys_dlopen_deplibs=unknown
6273    ;;
6274  irix*)
6275    # The case above catches anything before 6.2, and it's known that
6276    # at 6.2 and later dlopen does load deplibs.
6277    libltdl_cv_sys_dlopen_deplibs=yes
6278    ;;
6279  netbsd*)
6280    libltdl_cv_sys_dlopen_deplibs=yes
6281    ;;
6282  openbsd*)
6283    libltdl_cv_sys_dlopen_deplibs=yes
6284    ;;
6285  osf[1234]*)
6286    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
6287    # it did *not* use an RPATH in a shared library to find objects the
6288    # library depends on, so we explictly say `no'.
6289    libltdl_cv_sys_dlopen_deplibs=no
6290    ;;
6291  osf5.0|osf5.0a|osf5.1)
6292    # dlopen *does* load deplibs and with the right loader patch applied
6293    # it even uses RPATH in a shared library to search for shared objects
6294    # that the library depends on, but there's no easy way to know if that
6295    # patch is installed.  Since this is the case, all we can really
6296    # say is unknown -- it depends on the patch being installed.  If
6297    # it is, this changes to `yes'.  Without it, it would be `no'.
6298    libltdl_cv_sys_dlopen_deplibs=unknown
6299    ;;
6300  osf*)
6301    # the two cases above should catch all versions of osf <= 5.1.  Read
6302    # the comments above for what we know about them.
6303    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
6304    # is used to find them so we can finally say `yes'.
6305    libltdl_cv_sys_dlopen_deplibs=yes
6306    ;;
6307  solaris*)
6308    libltdl_cv_sys_dlopen_deplibs=yes
6309    ;;
6310  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6311    libltdl_cv_sys_dlopen_deplibs=yes
6312    ;;
6313  esac
6314
6315fi
6316echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
6317echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
6318if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
6319
6320cat >>confdefs.h <<\_ACEOF
6321#define LTDL_DLOPEN_DEPLIBS 1
6322_ACEOF
6323
6324fi
6325
6326
6327for ac_header in argz.h
6328do
6329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330if eval "test \"\${$as_ac_Header+set}\" = set"; then
6331  echo "$as_me:$LINENO: checking for $ac_header" >&5
6332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334  echo $ECHO_N "(cached) $ECHO_C" >&6
6335fi
6336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6338else
6339  # Is the header compilable?
6340echo "$as_me:$LINENO: checking $ac_header usability" >&5
6341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6342cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h.  */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h.  */
6348$ac_includes_default
6349#include <$ac_header>
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353  (eval $ac_compile) 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } &&
6360	 { ac_try='test -z "$ac_c_werror_flag"
6361			 || test ! -s conftest.err'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; } &&
6367	 { ac_try='test -s conftest.$ac_objext'
6368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369  (eval $ac_try) 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; }; then
6373  ac_header_compiler=yes
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378ac_header_compiler=no
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6382echo "${ECHO_T}$ac_header_compiler" >&6
6383
6384# Is the header present?
6385echo "$as_me:$LINENO: checking $ac_header presence" >&5
6386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6387cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h.  */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h.  */
6393#include <$ac_header>
6394_ACEOF
6395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6396  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6397  ac_status=$?
6398  grep -v '^ *+' conftest.er1 >conftest.err
6399  rm -f conftest.er1
6400  cat conftest.err >&5
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); } >/dev/null; then
6403  if test -s conftest.err; then
6404    ac_cpp_err=$ac_c_preproc_warn_flag
6405    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6406  else
6407    ac_cpp_err=
6408  fi
6409else
6410  ac_cpp_err=yes
6411fi
6412if test -z "$ac_cpp_err"; then
6413  ac_header_preproc=yes
6414else
6415  echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418  ac_header_preproc=no
6419fi
6420rm -f conftest.err conftest.$ac_ext
6421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6422echo "${ECHO_T}$ac_header_preproc" >&6
6423
6424# So?  What about this header?
6425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6426  yes:no: )
6427    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6429    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6431    ac_header_preproc=yes
6432    ;;
6433  no:yes:* )
6434    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6436    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6437echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6438    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6440    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6441echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6442    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6444    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6446    (
6447      cat <<\_ASBOX
6448## ------------------------------------------ ##
6449## Report this to the AC_PACKAGE_NAME lists.  ##
6450## ------------------------------------------ ##
6451_ASBOX
6452    ) |
6453      sed "s/^/$as_me: WARNING:     /" >&2
6454    ;;
6455esac
6456echo "$as_me:$LINENO: checking for $ac_header" >&5
6457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461  eval "$as_ac_Header=\$ac_header_preproc"
6462fi
6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465
6466fi
6467if test `eval echo '${'$as_ac_Header'}'` = yes; then
6468  cat >>confdefs.h <<_ACEOF
6469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6470_ACEOF
6471
6472fi
6473
6474done
6475
6476
6477echo "$as_me:$LINENO: checking for error_t" >&5
6478echo $ECHO_N "checking for error_t... $ECHO_C" >&6
6479if test "${ac_cv_type_error_t+set}" = set; then
6480  echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
6482  cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h.  */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h.  */
6488#if HAVE_ARGZ_H
6489#  include <argz.h>
6490#endif
6491
6492int
6493main ()
6494{
6495if ((error_t *) 0)
6496  return 0;
6497if (sizeof (error_t))
6498  return 0;
6499  ;
6500  return 0;
6501}
6502_ACEOF
6503rm -f conftest.$ac_objext
6504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505  (eval $ac_compile) 2>conftest.er1
6506  ac_status=$?
6507  grep -v '^ *+' conftest.er1 >conftest.err
6508  rm -f conftest.er1
6509  cat conftest.err >&5
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); } &&
6512	 { ac_try='test -z "$ac_c_werror_flag"
6513			 || test ! -s conftest.err'
6514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515  (eval $ac_try) 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; } &&
6519	 { ac_try='test -s conftest.$ac_objext'
6520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521  (eval $ac_try) 2>&5
6522  ac_status=$?
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); }; }; then
6525  ac_cv_type_error_t=yes
6526else
6527  echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530ac_cv_type_error_t=no
6531fi
6532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533fi
6534echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
6535echo "${ECHO_T}$ac_cv_type_error_t" >&6
6536if test $ac_cv_type_error_t = yes; then
6537
6538cat >>confdefs.h <<_ACEOF
6539#define HAVE_ERROR_T 1
6540_ACEOF
6541
6542
6543else
6544
6545cat >>confdefs.h <<\_ACEOF
6546#define error_t int
6547_ACEOF
6548
6549fi
6550
6551
6552
6553
6554
6555
6556
6557for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
6558do
6559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6560echo "$as_me:$LINENO: checking for $ac_func" >&5
6561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6562if eval "test \"\${$as_ac_var+set}\" = set"; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h.  */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h.  */
6571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6572   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6573#define $ac_func innocuous_$ac_func
6574
6575/* System header to define __stub macros and hopefully few prototypes,
6576    which can conflict with char $ac_func (); below.
6577    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578    <limits.h> exists even on freestanding compilers.  */
6579
6580#ifdef __STDC__
6581# include <limits.h>
6582#else
6583# include <assert.h>
6584#endif
6585
6586#undef $ac_func
6587
6588/* Override any gcc2 internal prototype to avoid an error.  */
6589#ifdef __cplusplus
6590extern "C"
6591{
6592#endif
6593/* We use char because int might match the return type of a gcc2
6594   builtin and then its argument prototype would still apply.  */
6595char $ac_func ();
6596/* The GNU C library defines this for functions which it implements
6597    to always fail with ENOSYS.  Some functions are actually named
6598    something starting with __ and the normal name is an alias.  */
6599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600choke me
6601#else
6602char (*f) () = $ac_func;
6603#endif
6604#ifdef __cplusplus
6605}
6606#endif
6607
6608int
6609main ()
6610{
6611return f != $ac_func;
6612  ;
6613  return 0;
6614}
6615_ACEOF
6616rm -f conftest.$ac_objext conftest$ac_exeext
6617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618  (eval $ac_link) 2>conftest.er1
6619  ac_status=$?
6620  grep -v '^ *+' conftest.er1 >conftest.err
6621  rm -f conftest.er1
6622  cat conftest.err >&5
6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624  (exit $ac_status); } &&
6625	 { ac_try='test -z "$ac_c_werror_flag"
6626			 || test ! -s conftest.err'
6627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628  (eval $ac_try) 2>&5
6629  ac_status=$?
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); }; } &&
6632	 { ac_try='test -s conftest$ac_exeext'
6633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634  (eval $ac_try) 2>&5
6635  ac_status=$?
6636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637  (exit $ac_status); }; }; then
6638  eval "$as_ac_var=yes"
6639else
6640  echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
6642
6643eval "$as_ac_var=no"
6644fi
6645rm -f conftest.err conftest.$ac_objext \
6646      conftest$ac_exeext conftest.$ac_ext
6647fi
6648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6650if test `eval echo '${'$as_ac_var'}'` = yes; then
6651  cat >>confdefs.h <<_ACEOF
6652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6653_ACEOF
6654
6655fi
6656done
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
6686		  stdio.h unistd.h
6687do
6688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6689if eval "test \"\${$as_ac_Header+set}\" = set"; then
6690  echo "$as_me:$LINENO: checking for $ac_header" >&5
6691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6692if eval "test \"\${$as_ac_Header+set}\" = set"; then
6693  echo $ECHO_N "(cached) $ECHO_C" >&6
6694fi
6695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6697else
6698  # Is the header compilable?
6699echo "$as_me:$LINENO: checking $ac_header usability" >&5
6700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6701cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707$ac_includes_default
6708#include <$ac_header>
6709_ACEOF
6710rm -f conftest.$ac_objext
6711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712  (eval $ac_compile) 2>conftest.er1
6713  ac_status=$?
6714  grep -v '^ *+' conftest.er1 >conftest.err
6715  rm -f conftest.er1
6716  cat conftest.err >&5
6717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718  (exit $ac_status); } &&
6719	 { ac_try='test -z "$ac_c_werror_flag"
6720			 || test ! -s conftest.err'
6721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722  (eval $ac_try) 2>&5
6723  ac_status=$?
6724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); }; } &&
6726	 { ac_try='test -s conftest.$ac_objext'
6727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728  (eval $ac_try) 2>&5
6729  ac_status=$?
6730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731  (exit $ac_status); }; }; then
6732  ac_header_compiler=yes
6733else
6734  echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
6736
6737ac_header_compiler=no
6738fi
6739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6741echo "${ECHO_T}$ac_header_compiler" >&6
6742
6743# Is the header present?
6744echo "$as_me:$LINENO: checking $ac_header presence" >&5
6745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6746cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752#include <$ac_header>
6753_ACEOF
6754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6755  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6756  ac_status=$?
6757  grep -v '^ *+' conftest.er1 >conftest.err
6758  rm -f conftest.er1
6759  cat conftest.err >&5
6760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761  (exit $ac_status); } >/dev/null; then
6762  if test -s conftest.err; then
6763    ac_cpp_err=$ac_c_preproc_warn_flag
6764    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6765  else
6766    ac_cpp_err=
6767  fi
6768else
6769  ac_cpp_err=yes
6770fi
6771if test -z "$ac_cpp_err"; then
6772  ac_header_preproc=yes
6773else
6774  echo "$as_me: failed program was:" >&5
6775sed 's/^/| /' conftest.$ac_ext >&5
6776
6777  ac_header_preproc=no
6778fi
6779rm -f conftest.err conftest.$ac_ext
6780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6781echo "${ECHO_T}$ac_header_preproc" >&6
6782
6783# So?  What about this header?
6784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6785  yes:no: )
6786    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6788    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6790    ac_header_preproc=yes
6791    ;;
6792  no:yes:* )
6793    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6795    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6796echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6797    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6799    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6800echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6803    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6805    (
6806      cat <<\_ASBOX
6807## ------------------------------------------ ##
6808## Report this to the AC_PACKAGE_NAME lists.  ##
6809## ------------------------------------------ ##
6810_ASBOX
6811    ) |
6812      sed "s/^/$as_me: WARNING:     /" >&2
6813    ;;
6814esac
6815echo "$as_me:$LINENO: checking for $ac_header" >&5
6816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818  echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820  eval "$as_ac_Header=\$ac_header_preproc"
6821fi
6822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6824
6825fi
6826if test `eval echo '${'$as_ac_Header'}'` = yes; then
6827  cat >>confdefs.h <<_ACEOF
6828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6829_ACEOF
6830
6831fi
6832
6833done
6834
6835
6836
6837
6838
6839for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
6840do
6841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6842if eval "test \"\${$as_ac_Header+set}\" = set"; then
6843  echo "$as_me:$LINENO: checking for $ac_header" >&5
6844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6845if eval "test \"\${$as_ac_Header+set}\" = set"; then
6846  echo $ECHO_N "(cached) $ECHO_C" >&6
6847fi
6848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6850else
6851  # Is the header compilable?
6852echo "$as_me:$LINENO: checking $ac_header usability" >&5
6853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6854cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h.  */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h.  */
6860$ac_includes_default
6861#include <$ac_header>
6862_ACEOF
6863rm -f conftest.$ac_objext
6864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865  (eval $ac_compile) 2>conftest.er1
6866  ac_status=$?
6867  grep -v '^ *+' conftest.er1 >conftest.err
6868  rm -f conftest.er1
6869  cat conftest.err >&5
6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); } &&
6872	 { ac_try='test -z "$ac_c_werror_flag"
6873			 || test ! -s conftest.err'
6874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875  (eval $ac_try) 2>&5
6876  ac_status=$?
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); }; } &&
6879	 { ac_try='test -s conftest.$ac_objext'
6880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881  (eval $ac_try) 2>&5
6882  ac_status=$?
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); }; }; then
6885  ac_header_compiler=yes
6886else
6887  echo "$as_me: failed program was:" >&5
6888sed 's/^/| /' conftest.$ac_ext >&5
6889
6890ac_header_compiler=no
6891fi
6892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6894echo "${ECHO_T}$ac_header_compiler" >&6
6895
6896# Is the header present?
6897echo "$as_me:$LINENO: checking $ac_header presence" >&5
6898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6899cat >conftest.$ac_ext <<_ACEOF
6900/* confdefs.h.  */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h.  */
6905#include <$ac_header>
6906_ACEOF
6907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6909  ac_status=$?
6910  grep -v '^ *+' conftest.er1 >conftest.err
6911  rm -f conftest.er1
6912  cat conftest.err >&5
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); } >/dev/null; then
6915  if test -s conftest.err; then
6916    ac_cpp_err=$ac_c_preproc_warn_flag
6917    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6918  else
6919    ac_cpp_err=
6920  fi
6921else
6922  ac_cpp_err=yes
6923fi
6924if test -z "$ac_cpp_err"; then
6925  ac_header_preproc=yes
6926else
6927  echo "$as_me: failed program was:" >&5
6928sed 's/^/| /' conftest.$ac_ext >&5
6929
6930  ac_header_preproc=no
6931fi
6932rm -f conftest.err conftest.$ac_ext
6933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6934echo "${ECHO_T}$ac_header_preproc" >&6
6935
6936# So?  What about this header?
6937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6938  yes:no: )
6939    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6941    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6943    ac_header_preproc=yes
6944    ;;
6945  no:yes:* )
6946    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6948    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6949echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6950    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6952    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6953echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6956    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6958    (
6959      cat <<\_ASBOX
6960## ------------------------------------------ ##
6961## Report this to the AC_PACKAGE_NAME lists.  ##
6962## ------------------------------------------ ##
6963_ASBOX
6964    ) |
6965      sed "s/^/$as_me: WARNING:     /" >&2
6966    ;;
6967esac
6968echo "$as_me:$LINENO: checking for $ac_header" >&5
6969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6970if eval "test \"\${$as_ac_Header+set}\" = set"; then
6971  echo $ECHO_N "(cached) $ECHO_C" >&6
6972else
6973  eval "$as_ac_Header=\$ac_header_preproc"
6974fi
6975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6977
6978fi
6979if test `eval echo '${'$as_ac_Header'}'` = yes; then
6980  cat >>confdefs.h <<_ACEOF
6981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6982_ACEOF
6983
6984fi
6985
6986done
6987
6988
6989
6990for ac_header in string.h strings.h
6991do
6992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993if eval "test \"\${$as_ac_Header+set}\" = set"; then
6994  echo "$as_me:$LINENO: checking for $ac_header" >&5
6995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6996if eval "test \"\${$as_ac_Header+set}\" = set"; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998fi
6999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7001else
7002  # Is the header compilable?
7003echo "$as_me:$LINENO: checking $ac_header usability" >&5
7004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7005cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h.  */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h.  */
7011$ac_includes_default
7012#include <$ac_header>
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016  (eval $ac_compile) 2>conftest.er1
7017  ac_status=$?
7018  grep -v '^ *+' conftest.er1 >conftest.err
7019  rm -f conftest.er1
7020  cat conftest.err >&5
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); } &&
7023	 { ac_try='test -z "$ac_c_werror_flag"
7024			 || test ! -s conftest.err'
7025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026  (eval $ac_try) 2>&5
7027  ac_status=$?
7028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029  (exit $ac_status); }; } &&
7030	 { ac_try='test -s conftest.$ac_objext'
7031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032  (eval $ac_try) 2>&5
7033  ac_status=$?
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); }; }; then
7036  ac_header_compiler=yes
7037else
7038  echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041ac_header_compiler=no
7042fi
7043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045echo "${ECHO_T}$ac_header_compiler" >&6
7046
7047# Is the header present?
7048echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h.  */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h.  */
7056#include <$ac_header>
7057_ACEOF
7058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7060  ac_status=$?
7061  grep -v '^ *+' conftest.er1 >conftest.err
7062  rm -f conftest.er1
7063  cat conftest.err >&5
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); } >/dev/null; then
7066  if test -s conftest.err; then
7067    ac_cpp_err=$ac_c_preproc_warn_flag
7068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7069  else
7070    ac_cpp_err=
7071  fi
7072else
7073  ac_cpp_err=yes
7074fi
7075if test -z "$ac_cpp_err"; then
7076  ac_header_preproc=yes
7077else
7078  echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
7081  ac_header_preproc=no
7082fi
7083rm -f conftest.err conftest.$ac_ext
7084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7085echo "${ECHO_T}$ac_header_preproc" >&6
7086
7087# So?  What about this header?
7088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7089  yes:no: )
7090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7094    ac_header_preproc=yes
7095    ;;
7096  no:yes:* )
7097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7109    (
7110      cat <<\_ASBOX
7111## ------------------------------------------ ##
7112## Report this to the AC_PACKAGE_NAME lists.  ##
7113## ------------------------------------------ ##
7114_ASBOX
7115    ) |
7116      sed "s/^/$as_me: WARNING:     /" >&2
7117    ;;
7118esac
7119echo "$as_me:$LINENO: checking for $ac_header" >&5
7120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122  echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124  eval "$as_ac_Header=\$ac_header_preproc"
7125fi
7126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128
7129fi
7130if test `eval echo '${'$as_ac_Header'}'` = yes; then
7131  cat >>confdefs.h <<_ACEOF
7132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133_ACEOF
7134 break
7135fi
7136
7137done
7138
7139
7140
7141
7142for ac_func in strchr index
7143do
7144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7145echo "$as_me:$LINENO: checking for $ac_func" >&5
7146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7147if eval "test \"\${$as_ac_var+set}\" = set"; then
7148  echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150  cat >conftest.$ac_ext <<_ACEOF
7151/* confdefs.h.  */
7152_ACEOF
7153cat confdefs.h >>conftest.$ac_ext
7154cat >>conftest.$ac_ext <<_ACEOF
7155/* end confdefs.h.  */
7156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7157   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7158#define $ac_func innocuous_$ac_func
7159
7160/* System header to define __stub macros and hopefully few prototypes,
7161    which can conflict with char $ac_func (); below.
7162    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163    <limits.h> exists even on freestanding compilers.  */
7164
7165#ifdef __STDC__
7166# include <limits.h>
7167#else
7168# include <assert.h>
7169#endif
7170
7171#undef $ac_func
7172
7173/* Override any gcc2 internal prototype to avoid an error.  */
7174#ifdef __cplusplus
7175extern "C"
7176{
7177#endif
7178/* We use char because int might match the return type of a gcc2
7179   builtin and then its argument prototype would still apply.  */
7180char $ac_func ();
7181/* The GNU C library defines this for functions which it implements
7182    to always fail with ENOSYS.  Some functions are actually named
7183    something starting with __ and the normal name is an alias.  */
7184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7185choke me
7186#else
7187char (*f) () = $ac_func;
7188#endif
7189#ifdef __cplusplus
7190}
7191#endif
7192
7193int
7194main ()
7195{
7196return f != $ac_func;
7197  ;
7198  return 0;
7199}
7200_ACEOF
7201rm -f conftest.$ac_objext conftest$ac_exeext
7202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203  (eval $ac_link) 2>conftest.er1
7204  ac_status=$?
7205  grep -v '^ *+' conftest.er1 >conftest.err
7206  rm -f conftest.er1
7207  cat conftest.err >&5
7208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); } &&
7210	 { ac_try='test -z "$ac_c_werror_flag"
7211			 || test ! -s conftest.err'
7212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213  (eval $ac_try) 2>&5
7214  ac_status=$?
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); }; } &&
7217	 { ac_try='test -s conftest$ac_exeext'
7218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219  (eval $ac_try) 2>&5
7220  ac_status=$?
7221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222  (exit $ac_status); }; }; then
7223  eval "$as_ac_var=yes"
7224else
7225  echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228eval "$as_ac_var=no"
7229fi
7230rm -f conftest.err conftest.$ac_objext \
7231      conftest$ac_exeext conftest.$ac_ext
7232fi
7233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7234echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7235if test `eval echo '${'$as_ac_var'}'` = yes; then
7236  cat >>confdefs.h <<_ACEOF
7237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7238_ACEOF
7239 break
7240fi
7241done
7242
7243
7244
7245for ac_func in strrchr rindex
7246do
7247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7248echo "$as_me:$LINENO: checking for $ac_func" >&5
7249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7250if eval "test \"\${$as_ac_var+set}\" = set"; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h.  */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h.  */
7259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7260   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7261#define $ac_func innocuous_$ac_func
7262
7263/* System header to define __stub macros and hopefully few prototypes,
7264    which can conflict with char $ac_func (); below.
7265    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7266    <limits.h> exists even on freestanding compilers.  */
7267
7268#ifdef __STDC__
7269# include <limits.h>
7270#else
7271# include <assert.h>
7272#endif
7273
7274#undef $ac_func
7275
7276/* Override any gcc2 internal prototype to avoid an error.  */
7277#ifdef __cplusplus
7278extern "C"
7279{
7280#endif
7281/* We use char because int might match the return type of a gcc2
7282   builtin and then its argument prototype would still apply.  */
7283char $ac_func ();
7284/* The GNU C library defines this for functions which it implements
7285    to always fail with ENOSYS.  Some functions are actually named
7286    something starting with __ and the normal name is an alias.  */
7287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7288choke me
7289#else
7290char (*f) () = $ac_func;
7291#endif
7292#ifdef __cplusplus
7293}
7294#endif
7295
7296int
7297main ()
7298{
7299return f != $ac_func;
7300  ;
7301  return 0;
7302}
7303_ACEOF
7304rm -f conftest.$ac_objext conftest$ac_exeext
7305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306  (eval $ac_link) 2>conftest.er1
7307  ac_status=$?
7308  grep -v '^ *+' conftest.er1 >conftest.err
7309  rm -f conftest.er1
7310  cat conftest.err >&5
7311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312  (exit $ac_status); } &&
7313	 { ac_try='test -z "$ac_c_werror_flag"
7314			 || test ! -s conftest.err'
7315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316  (eval $ac_try) 2>&5
7317  ac_status=$?
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); }; } &&
7320	 { ac_try='test -s conftest$ac_exeext'
7321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322  (eval $ac_try) 2>&5
7323  ac_status=$?
7324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325  (exit $ac_status); }; }; then
7326  eval "$as_ac_var=yes"
7327else
7328  echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
7331eval "$as_ac_var=no"
7332fi
7333rm -f conftest.err conftest.$ac_objext \
7334      conftest$ac_exeext conftest.$ac_ext
7335fi
7336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7338if test `eval echo '${'$as_ac_var'}'` = yes; then
7339  cat >>confdefs.h <<_ACEOF
7340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7341_ACEOF
7342 break
7343fi
7344done
7345
7346
7347
7348for ac_func in memcpy bcopy
7349do
7350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7351echo "$as_me:$LINENO: checking for $ac_func" >&5
7352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7353if eval "test \"\${$as_ac_var+set}\" = set"; then
7354  echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356  cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h.  */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h.  */
7362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7363   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7364#define $ac_func innocuous_$ac_func
7365
7366/* System header to define __stub macros and hopefully few prototypes,
7367    which can conflict with char $ac_func (); below.
7368    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7369    <limits.h> exists even on freestanding compilers.  */
7370
7371#ifdef __STDC__
7372# include <limits.h>
7373#else
7374# include <assert.h>
7375#endif
7376
7377#undef $ac_func
7378
7379/* Override any gcc2 internal prototype to avoid an error.  */
7380#ifdef __cplusplus
7381extern "C"
7382{
7383#endif
7384/* We use char because int might match the return type of a gcc2
7385   builtin and then its argument prototype would still apply.  */
7386char $ac_func ();
7387/* The GNU C library defines this for functions which it implements
7388    to always fail with ENOSYS.  Some functions are actually named
7389    something starting with __ and the normal name is an alias.  */
7390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7391choke me
7392#else
7393char (*f) () = $ac_func;
7394#endif
7395#ifdef __cplusplus
7396}
7397#endif
7398
7399int
7400main ()
7401{
7402return f != $ac_func;
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407rm -f conftest.$ac_objext conftest$ac_exeext
7408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7409  (eval $ac_link) 2>conftest.er1
7410  ac_status=$?
7411  grep -v '^ *+' conftest.er1 >conftest.err
7412  rm -f conftest.er1
7413  cat conftest.err >&5
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); } &&
7416	 { ac_try='test -z "$ac_c_werror_flag"
7417			 || test ! -s conftest.err'
7418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419  (eval $ac_try) 2>&5
7420  ac_status=$?
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); }; } &&
7423	 { ac_try='test -s conftest$ac_exeext'
7424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425  (eval $ac_try) 2>&5
7426  ac_status=$?
7427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428  (exit $ac_status); }; }; then
7429  eval "$as_ac_var=yes"
7430else
7431  echo "$as_me: failed program was:" >&5
7432sed 's/^/| /' conftest.$ac_ext >&5
7433
7434eval "$as_ac_var=no"
7435fi
7436rm -f conftest.err conftest.$ac_objext \
7437      conftest$ac_exeext conftest.$ac_ext
7438fi
7439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7440echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7441if test `eval echo '${'$as_ac_var'}'` = yes; then
7442  cat >>confdefs.h <<_ACEOF
7443#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7444_ACEOF
7445 break
7446fi
7447done
7448
7449
7450
7451for ac_func in memmove strcmp
7452do
7453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7454echo "$as_me:$LINENO: checking for $ac_func" >&5
7455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7456if eval "test \"\${$as_ac_var+set}\" = set"; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  cat >conftest.$ac_ext <<_ACEOF
7460/* confdefs.h.  */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h.  */
7465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7466   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7467#define $ac_func innocuous_$ac_func
7468
7469/* System header to define __stub macros and hopefully few prototypes,
7470    which can conflict with char $ac_func (); below.
7471    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7472    <limits.h> exists even on freestanding compilers.  */
7473
7474#ifdef __STDC__
7475# include <limits.h>
7476#else
7477# include <assert.h>
7478#endif
7479
7480#undef $ac_func
7481
7482/* Override any gcc2 internal prototype to avoid an error.  */
7483#ifdef __cplusplus
7484extern "C"
7485{
7486#endif
7487/* We use char because int might match the return type of a gcc2
7488   builtin and then its argument prototype would still apply.  */
7489char $ac_func ();
7490/* The GNU C library defines this for functions which it implements
7491    to always fail with ENOSYS.  Some functions are actually named
7492    something starting with __ and the normal name is an alias.  */
7493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7494choke me
7495#else
7496char (*f) () = $ac_func;
7497#endif
7498#ifdef __cplusplus
7499}
7500#endif
7501
7502int
7503main ()
7504{
7505return f != $ac_func;
7506  ;
7507  return 0;
7508}
7509_ACEOF
7510rm -f conftest.$ac_objext conftest$ac_exeext
7511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7512  (eval $ac_link) 2>conftest.er1
7513  ac_status=$?
7514  grep -v '^ *+' conftest.er1 >conftest.err
7515  rm -f conftest.er1
7516  cat conftest.err >&5
7517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518  (exit $ac_status); } &&
7519	 { ac_try='test -z "$ac_c_werror_flag"
7520			 || test ! -s conftest.err'
7521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522  (eval $ac_try) 2>&5
7523  ac_status=$?
7524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525  (exit $ac_status); }; } &&
7526	 { ac_try='test -s conftest$ac_exeext'
7527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528  (eval $ac_try) 2>&5
7529  ac_status=$?
7530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531  (exit $ac_status); }; }; then
7532  eval "$as_ac_var=yes"
7533else
7534  echo "$as_me: failed program was:" >&5
7535sed 's/^/| /' conftest.$ac_ext >&5
7536
7537eval "$as_ac_var=no"
7538fi
7539rm -f conftest.err conftest.$ac_objext \
7540      conftest$ac_exeext conftest.$ac_ext
7541fi
7542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7543echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7544if test `eval echo '${'$as_ac_var'}'` = yes; then
7545  cat >>confdefs.h <<_ACEOF
7546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7547_ACEOF
7548
7549fi
7550done
7551
7552
7553
7554
7555for ac_func in closedir opendir readdir
7556do
7557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7558echo "$as_me:$LINENO: checking for $ac_func" >&5
7559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7560if eval "test \"\${$as_ac_var+set}\" = set"; then
7561  echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563  cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h.  */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h.  */
7569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7570   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7571#define $ac_func innocuous_$ac_func
7572
7573/* System header to define __stub macros and hopefully few prototypes,
7574    which can conflict with char $ac_func (); below.
7575    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7576    <limits.h> exists even on freestanding compilers.  */
7577
7578#ifdef __STDC__
7579# include <limits.h>
7580#else
7581# include <assert.h>
7582#endif
7583
7584#undef $ac_func
7585
7586/* Override any gcc2 internal prototype to avoid an error.  */
7587#ifdef __cplusplus
7588extern "C"
7589{
7590#endif
7591/* We use char because int might match the return type of a gcc2
7592   builtin and then its argument prototype would still apply.  */
7593char $ac_func ();
7594/* The GNU C library defines this for functions which it implements
7595    to always fail with ENOSYS.  Some functions are actually named
7596    something starting with __ and the normal name is an alias.  */
7597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7598choke me
7599#else
7600char (*f) () = $ac_func;
7601#endif
7602#ifdef __cplusplus
7603}
7604#endif
7605
7606int
7607main ()
7608{
7609return f != $ac_func;
7610  ;
7611  return 0;
7612}
7613_ACEOF
7614rm -f conftest.$ac_objext conftest$ac_exeext
7615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7616  (eval $ac_link) 2>conftest.er1
7617  ac_status=$?
7618  grep -v '^ *+' conftest.er1 >conftest.err
7619  rm -f conftest.er1
7620  cat conftest.err >&5
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); } &&
7623	 { ac_try='test -z "$ac_c_werror_flag"
7624			 || test ! -s conftest.err'
7625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626  (eval $ac_try) 2>&5
7627  ac_status=$?
7628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); }; } &&
7630	 { ac_try='test -s conftest$ac_exeext'
7631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632  (eval $ac_try) 2>&5
7633  ac_status=$?
7634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635  (exit $ac_status); }; }; then
7636  eval "$as_ac_var=yes"
7637else
7638  echo "$as_me: failed program was:" >&5
7639sed 's/^/| /' conftest.$ac_ext >&5
7640
7641eval "$as_ac_var=no"
7642fi
7643rm -f conftest.err conftest.$ac_objext \
7644      conftest$ac_exeext conftest.$ac_ext
7645fi
7646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7648if test `eval echo '${'$as_ac_var'}'` = yes; then
7649  cat >>confdefs.h <<_ACEOF
7650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7651_ACEOF
7652
7653fi
7654done
7655
7656
7657# Check whether --enable-shared or --disable-shared was given.
7658if test "${enable_shared+set}" = set; then
7659  enableval="$enable_shared"
7660  p=${PACKAGE-default}
7661    case $enableval in
7662    yes) enable_shared=yes ;;
7663    no) enable_shared=no ;;
7664    *)
7665      enable_shared=no
7666      # Look at the argument we got.  We use all the common list separators.
7667      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668      for pkg in $enableval; do
7669	IFS="$lt_save_ifs"
7670	if test "X$pkg" = "X$p"; then
7671	  enable_shared=yes
7672	fi
7673      done
7674      IFS="$lt_save_ifs"
7675      ;;
7676    esac
7677else
7678  enable_shared=yes
7679fi;
7680
7681# Check whether --enable-static or --disable-static was given.
7682if test "${enable_static+set}" = set; then
7683  enableval="$enable_static"
7684  p=${PACKAGE-default}
7685    case $enableval in
7686    yes) enable_static=yes ;;
7687    no) enable_static=no ;;
7688    *)
7689     enable_static=no
7690      # Look at the argument we got.  We use all the common list separators.
7691      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7692      for pkg in $enableval; do
7693	IFS="$lt_save_ifs"
7694	if test "X$pkg" = "X$p"; then
7695	  enable_static=yes
7696	fi
7697      done
7698      IFS="$lt_save_ifs"
7699      ;;
7700    esac
7701else
7702  enable_static=yes
7703fi;
7704
7705# Check whether --enable-fast-install or --disable-fast-install was given.
7706if test "${enable_fast_install+set}" = set; then
7707  enableval="$enable_fast_install"
7708  p=${PACKAGE-default}
7709    case $enableval in
7710    yes) enable_fast_install=yes ;;
7711    no) enable_fast_install=no ;;
7712    *)
7713      enable_fast_install=no
7714      # Look at the argument we got.  We use all the common list separators.
7715      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716      for pkg in $enableval; do
7717	IFS="$lt_save_ifs"
7718	if test "X$pkg" = "X$p"; then
7719	  enable_fast_install=yes
7720	fi
7721      done
7722      IFS="$lt_save_ifs"
7723      ;;
7724    esac
7725else
7726  enable_fast_install=yes
7727fi;
7728
7729echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7730echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7731if test "${lt_cv_path_SED+set}" = set; then
7732  echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734  # Loop through the user's path and test for sed and gsed.
7735# Then use that list of sed's as ones to test for truncation.
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  test -z "$as_dir" && as_dir=.
7741  for lt_ac_prog in sed gsed; do
7742    for ac_exec_ext in '' $ac_executable_extensions; do
7743      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7744        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7745      fi
7746    done
7747  done
7748done
7749lt_ac_max=0
7750lt_ac_count=0
7751# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7752# along with /bin/sed that truncates output.
7753for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7754  test ! -f $lt_ac_sed && continue
7755  cat /dev/null > conftest.in
7756  lt_ac_count=0
7757  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7758  # Check for GNU sed and select it if it is found.
7759  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7760    lt_cv_path_SED=$lt_ac_sed
7761    break
7762  fi
7763  while true; do
7764    cat conftest.in conftest.in >conftest.tmp
7765    mv conftest.tmp conftest.in
7766    cp conftest.in conftest.nl
7767    echo >>conftest.nl
7768    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7769    cmp -s conftest.out conftest.nl || break
7770    # 10000 chars as input seems more than enough
7771    test $lt_ac_count -gt 10 && break
7772    lt_ac_count=`expr $lt_ac_count + 1`
7773    if test $lt_ac_count -gt $lt_ac_max; then
7774      lt_ac_max=$lt_ac_count
7775      lt_cv_path_SED=$lt_ac_sed
7776    fi
7777  done
7778done
7779
7780fi
7781
7782SED=$lt_cv_path_SED
7783echo "$as_me:$LINENO: result: $SED" >&5
7784echo "${ECHO_T}$SED" >&6
7785
7786
7787# Check whether --with-gnu-ld or --without-gnu-ld was given.
7788if test "${with_gnu_ld+set}" = set; then
7789  withval="$with_gnu_ld"
7790  test "$withval" = no || with_gnu_ld=yes
7791else
7792  with_gnu_ld=no
7793fi;
7794ac_prog=ld
7795if test "$GCC" = yes; then
7796  # Check if gcc -print-prog-name=ld gives a path.
7797  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7798echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7799  case $host in
7800  *-*-mingw*)
7801    # gcc leaves a trailing carriage return which upsets mingw
7802    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7803  *)
7804    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7805  esac
7806  case $ac_prog in
7807    # Accept absolute paths.
7808    [\\/]* | ?:[\\/]*)
7809      re_direlt='/[^/][^/]*/\.\./'
7810      # Canonicalize the pathname of ld
7811      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7812      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7813	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7814      done
7815      test -z "$LD" && LD="$ac_prog"
7816      ;;
7817  "")
7818    # If it fails, then pretend we aren't using GCC.
7819    ac_prog=ld
7820    ;;
7821  *)
7822    # If it is relative, then search for the first ld in PATH.
7823    with_gnu_ld=unknown
7824    ;;
7825  esac
7826elif test "$with_gnu_ld" = yes; then
7827  echo "$as_me:$LINENO: checking for GNU ld" >&5
7828echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7829else
7830  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7831echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7832fi
7833if test "${lt_cv_path_LD+set}" = set; then
7834  echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836  if test -z "$LD"; then
7837  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7838  for ac_dir in $PATH; do
7839    IFS="$lt_save_ifs"
7840    test -z "$ac_dir" && ac_dir=.
7841    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7842      lt_cv_path_LD="$ac_dir/$ac_prog"
7843      # Check to see if the program is GNU ld.  I'd rather use --version,
7844      # but apparently some variants of GNU ld only accept -v.
7845      # Break only if it was the GNU/non-GNU ld that we prefer.
7846      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7847      *GNU* | *'with BFD'*)
7848	test "$with_gnu_ld" != no && break
7849	;;
7850      *)
7851	test "$with_gnu_ld" != yes && break
7852	;;
7853      esac
7854    fi
7855  done
7856  IFS="$lt_save_ifs"
7857else
7858  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7859fi
7860fi
7861
7862LD="$lt_cv_path_LD"
7863if test -n "$LD"; then
7864  echo "$as_me:$LINENO: result: $LD" >&5
7865echo "${ECHO_T}$LD" >&6
7866else
7867  echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
7869fi
7870test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7871echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7872   { (exit 1); exit 1; }; }
7873echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7874echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7875if test "${lt_cv_prog_gnu_ld+set}" = set; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7879case `$LD -v 2>&1 </dev/null` in
7880*GNU* | *'with BFD'*)
7881  lt_cv_prog_gnu_ld=yes
7882  ;;
7883*)
7884  lt_cv_prog_gnu_ld=no
7885  ;;
7886esac
7887fi
7888echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7889echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7890with_gnu_ld=$lt_cv_prog_gnu_ld
7891
7892
7893echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7894echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7895if test "${lt_cv_ld_reload_flag+set}" = set; then
7896  echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898  lt_cv_ld_reload_flag='-r'
7899fi
7900echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7901echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7902reload_flag=$lt_cv_ld_reload_flag
7903case $reload_flag in
7904"" | " "*) ;;
7905*) reload_flag=" $reload_flag" ;;
7906esac
7907reload_cmds='$LD$reload_flag -o $output$reload_objs'
7908case $host_os in
7909  darwin*)
7910    if test "$GCC" = yes; then
7911      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7912    else
7913      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7914    fi
7915    ;;
7916esac
7917
7918echo "$as_me:$LINENO: checking whether ln -s works" >&5
7919echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7920LN_S=$as_ln_s
7921if test "$LN_S" = "ln -s"; then
7922  echo "$as_me:$LINENO: result: yes" >&5
7923echo "${ECHO_T}yes" >&6
7924else
7925  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7926echo "${ECHO_T}no, using $LN_S" >&6
7927fi
7928
7929echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7930echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7931if test "${lt_cv_deplibs_check_method+set}" = set; then
7932  echo $ECHO_N "(cached) $ECHO_C" >&6
7933else
7934  lt_cv_file_magic_cmd='$MAGIC_CMD'
7935lt_cv_file_magic_test_file=
7936lt_cv_deplibs_check_method='unknown'
7937# Need to set the preceding variable on all platforms that support
7938# interlibrary dependencies.
7939# 'none' -- dependencies not supported.
7940# `unknown' -- same as none, but documents that we really don't know.
7941# 'pass_all' -- all dependencies passed with no checks.
7942# 'test_compile' -- check by making test program.
7943# 'file_magic [[regex]]' -- check by looking for files in library path
7944# which responds to the $file_magic_cmd with a given extended regex.
7945# If you have `file' or equivalent on your system and you're not sure
7946# whether `pass_all' will *always* work, you probably want this one.
7947
7948case $host_os in
7949aix4* | aix5*)
7950  lt_cv_deplibs_check_method=pass_all
7951  ;;
7952
7953beos*)
7954  lt_cv_deplibs_check_method=pass_all
7955  ;;
7956
7957bsdi[45]*)
7958  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7959  lt_cv_file_magic_cmd='/usr/bin/file -L'
7960  lt_cv_file_magic_test_file=/shlib/libc.so
7961  ;;
7962
7963cygwin*)
7964  # func_win32_libid is a shell function defined in ltmain.sh
7965  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7966  lt_cv_file_magic_cmd='func_win32_libid'
7967  ;;
7968
7969mingw* | pw32*)
7970  # Base MSYS/MinGW do not provide the 'file' command needed by
7971  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7972  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7973  lt_cv_file_magic_cmd='$OBJDUMP -f'
7974  ;;
7975
7976darwin* | rhapsody*)
7977  lt_cv_deplibs_check_method=pass_all
7978  ;;
7979
7980freebsd* | kfreebsd*-gnu | dragonfly*)
7981  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7982    case $host_cpu in
7983    i*86 )
7984      # Not sure whether the presence of OpenBSD here was a mistake.
7985      # Let's accept both of them until this is cleared up.
7986      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7987      lt_cv_file_magic_cmd=/usr/bin/file
7988      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7989      ;;
7990    esac
7991  else
7992    lt_cv_deplibs_check_method=pass_all
7993  fi
7994  ;;
7995
7996gnu*)
7997  lt_cv_deplibs_check_method=pass_all
7998  ;;
7999
8000hpux10.20* | hpux11*)
8001  lt_cv_file_magic_cmd=/usr/bin/file
8002  case $host_cpu in
8003  ia64*)
8004    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8005    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8006    ;;
8007  hppa*64*)
8008    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]'
8009    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8010    ;;
8011  *)
8012    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8013    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8014    ;;
8015  esac
8016  ;;
8017
8018interix3*)
8019  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8020  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8021  ;;
8022
8023irix5* | irix6* | nonstopux*)
8024  case $LD in
8025  *-32|*"-32 ") libmagic=32-bit;;
8026  *-n32|*"-n32 ") libmagic=N32;;
8027  *-64|*"-64 ") libmagic=64-bit;;
8028  *) libmagic=never-match;;
8029  esac
8030  lt_cv_deplibs_check_method=pass_all
8031  ;;
8032
8033# This must be Linux ELF.
8034linux*)
8035  lt_cv_deplibs_check_method=pass_all
8036  ;;
8037
8038netbsd*)
8039  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8040    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8041  else
8042    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8043  fi
8044  ;;
8045
8046newos6*)
8047  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8048  lt_cv_file_magic_cmd=/usr/bin/file
8049  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8050  ;;
8051
8052nto-qnx*)
8053  lt_cv_deplibs_check_method=unknown
8054  ;;
8055
8056openbsd*)
8057  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8058    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8059  else
8060    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8061  fi
8062  ;;
8063
8064osf3* | osf4* | osf5*)
8065  lt_cv_deplibs_check_method=pass_all
8066  ;;
8067
8068solaris*)
8069  lt_cv_deplibs_check_method=pass_all
8070  ;;
8071
8072sysv4 | sysv4.3*)
8073  case $host_vendor in
8074  motorola)
8075    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]'
8076    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8077    ;;
8078  ncr)
8079    lt_cv_deplibs_check_method=pass_all
8080    ;;
8081  sequent)
8082    lt_cv_file_magic_cmd='/bin/file'
8083    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8084    ;;
8085  sni)
8086    lt_cv_file_magic_cmd='/bin/file'
8087    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8088    lt_cv_file_magic_test_file=/lib/libc.so
8089    ;;
8090  siemens)
8091    lt_cv_deplibs_check_method=pass_all
8092    ;;
8093  pc)
8094    lt_cv_deplibs_check_method=pass_all
8095    ;;
8096  esac
8097  ;;
8098
8099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8100  lt_cv_deplibs_check_method=pass_all
8101  ;;
8102esac
8103
8104fi
8105echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8106echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
8107file_magic_cmd=$lt_cv_file_magic_cmd
8108deplibs_check_method=$lt_cv_deplibs_check_method
8109test -z "$deplibs_check_method" && deplibs_check_method=unknown
8110
8111
8112
8113# If no C compiler was specified, use CC.
8114LTCC=${LTCC-"$CC"}
8115
8116# If no C compiler flags were specified, use CFLAGS.
8117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8118
8119# Allow CC to be a program name with arguments.
8120compiler=$CC
8121
8122# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8123if test "${enable_libtool_lock+set}" = set; then
8124  enableval="$enable_libtool_lock"
8125
8126fi;
8127test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8128
8129# Some flags need to be propagated to the compiler or linker for good
8130# libtool support.
8131case $host in
8132ia64-*-hpux*)
8133  # Find out which ABI we are using.
8134  echo 'int i;' > conftest.$ac_ext
8135  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136  (eval $ac_compile) 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); }; then
8140    case `/usr/bin/file conftest.$ac_objext` in
8141    *ELF-32*)
8142      HPUX_IA64_MODE="32"
8143      ;;
8144    *ELF-64*)
8145      HPUX_IA64_MODE="64"
8146      ;;
8147    esac
8148  fi
8149  rm -rf conftest*
8150  ;;
8151*-*-irix6*)
8152  # Find out which ABI we are using.
8153  echo '#line 8155 "configure"' > conftest.$ac_ext
8154  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8155  (eval $ac_compile) 2>&5
8156  ac_status=$?
8157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158  (exit $ac_status); }; then
8159   if test "$lt_cv_prog_gnu_ld" = yes; then
8160    case `/usr/bin/file conftest.$ac_objext` in
8161    *32-bit*)
8162      LD="${LD-ld} -melf32bsmip"
8163      ;;
8164    *N32*)
8165      LD="${LD-ld} -melf32bmipn32"
8166      ;;
8167    *64-bit*)
8168      LD="${LD-ld} -melf64bmip"
8169      ;;
8170    esac
8171   else
8172    case `/usr/bin/file conftest.$ac_objext` in
8173    *32-bit*)
8174      LD="${LD-ld} -32"
8175      ;;
8176    *N32*)
8177      LD="${LD-ld} -n32"
8178      ;;
8179    *64-bit*)
8180      LD="${LD-ld} -64"
8181      ;;
8182    esac
8183   fi
8184  fi
8185  rm -rf conftest*
8186  ;;
8187
8188x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8189  # Find out which ABI we are using.
8190  echo 'int i;' > conftest.$ac_ext
8191  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192  (eval $ac_compile) 2>&5
8193  ac_status=$?
8194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195  (exit $ac_status); }; then
8196    case `/usr/bin/file conftest.o` in
8197    *32-bit*)
8198      case $host in
8199        x86_64-*linux*)
8200          LD="${LD-ld} -m elf_i386"
8201          ;;
8202        ppc64-*linux*|powerpc64-*linux*)
8203          LD="${LD-ld} -m elf32ppclinux"
8204          ;;
8205        s390x-*linux*)
8206          LD="${LD-ld} -m elf_s390"
8207          ;;
8208        sparc64-*linux*)
8209          LD="${LD-ld} -m elf32_sparc"
8210          ;;
8211      esac
8212      ;;
8213    *64-bit*)
8214      case $host in
8215        x86_64-*linux*)
8216          LD="${LD-ld} -m elf_x86_64"
8217          ;;
8218        ppc*-*linux*|powerpc*-*linux*)
8219          LD="${LD-ld} -m elf64ppc"
8220          ;;
8221        s390*-*linux*)
8222          LD="${LD-ld} -m elf64_s390"
8223          ;;
8224        sparc*-*linux*)
8225          LD="${LD-ld} -m elf64_sparc"
8226          ;;
8227      esac
8228      ;;
8229    esac
8230  fi
8231  rm -rf conftest*
8232  ;;
8233
8234*-*-sco3.2v5*)
8235  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8236  SAVE_CFLAGS="$CFLAGS"
8237  CFLAGS="$CFLAGS -belf"
8238  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8239echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8240if test "${lt_cv_cc_needs_belf+set}" = set; then
8241  echo $ECHO_N "(cached) $ECHO_C" >&6
8242else
8243  ac_ext=c
8244ac_cpp='$CPP $CPPFLAGS'
8245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249     cat >conftest.$ac_ext <<_ACEOF
8250/* confdefs.h.  */
8251_ACEOF
8252cat confdefs.h >>conftest.$ac_ext
8253cat >>conftest.$ac_ext <<_ACEOF
8254/* end confdefs.h.  */
8255
8256int
8257main ()
8258{
8259
8260  ;
8261  return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266  (eval $ac_link) 2>conftest.er1
8267  ac_status=$?
8268  grep -v '^ *+' conftest.er1 >conftest.err
8269  rm -f conftest.er1
8270  cat conftest.err >&5
8271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); } &&
8273	 { ac_try='test -z "$ac_c_werror_flag"
8274			 || test ! -s conftest.err'
8275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276  (eval $ac_try) 2>&5
8277  ac_status=$?
8278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279  (exit $ac_status); }; } &&
8280	 { ac_try='test -s conftest$ac_exeext'
8281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282  (eval $ac_try) 2>&5
8283  ac_status=$?
8284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285  (exit $ac_status); }; }; then
8286  lt_cv_cc_needs_belf=yes
8287else
8288  echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
8291lt_cv_cc_needs_belf=no
8292fi
8293rm -f conftest.err conftest.$ac_objext \
8294      conftest$ac_exeext conftest.$ac_ext
8295     ac_ext=c
8296ac_cpp='$CPP $CPPFLAGS'
8297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8299ac_compiler_gnu=$ac_cv_c_compiler_gnu
8300
8301fi
8302echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8303echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
8304  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8305    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8306    CFLAGS="$SAVE_CFLAGS"
8307  fi
8308  ;;
8309sparc*-*solaris*)
8310  # Find out which ABI we are using.
8311  echo 'int i;' > conftest.$ac_ext
8312  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313  (eval $ac_compile) 2>&5
8314  ac_status=$?
8315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316  (exit $ac_status); }; then
8317    case `/usr/bin/file conftest.o` in
8318    *64-bit*)
8319      case $lt_cv_prog_gnu_ld in
8320      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8321      *)    LD="${LD-ld} -64" ;;
8322      esac
8323      ;;
8324    esac
8325  fi
8326  rm -rf conftest*
8327  ;;
8328
8329
8330esac
8331
8332need_locks="$enable_libtool_lock"
8333
8334
8335ac_ext=cc
8336ac_cpp='$CXXCPP $CPPFLAGS'
8337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8340if test -n "$ac_tool_prefix"; then
8341  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8342  do
8343    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8345echo "$as_me:$LINENO: checking for $ac_word" >&5
8346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8347if test "${ac_cv_prog_CXX+set}" = set; then
8348  echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350  if test -n "$CXX"; then
8351  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8352else
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356  IFS=$as_save_IFS
8357  test -z "$as_dir" && as_dir=.
8358  for ac_exec_ext in '' $ac_executable_extensions; do
8359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8362    break 2
8363  fi
8364done
8365done
8366
8367fi
8368fi
8369CXX=$ac_cv_prog_CXX
8370if test -n "$CXX"; then
8371  echo "$as_me:$LINENO: result: $CXX" >&5
8372echo "${ECHO_T}$CXX" >&6
8373else
8374  echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376fi
8377
8378    test -n "$CXX" && break
8379  done
8380fi
8381if test -z "$CXX"; then
8382  ac_ct_CXX=$CXX
8383  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8384do
8385  # Extract the first word of "$ac_prog", so it can be a program name with args.
8386set dummy $ac_prog; ac_word=$2
8387echo "$as_me:$LINENO: checking for $ac_word" >&5
8388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8389if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8390  echo $ECHO_N "(cached) $ECHO_C" >&6
8391else
8392  if test -n "$ac_ct_CXX"; then
8393  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8394else
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398  IFS=$as_save_IFS
8399  test -z "$as_dir" && as_dir=.
8400  for ac_exec_ext in '' $ac_executable_extensions; do
8401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402    ac_cv_prog_ac_ct_CXX="$ac_prog"
8403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404    break 2
8405  fi
8406done
8407done
8408
8409fi
8410fi
8411ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8412if test -n "$ac_ct_CXX"; then
8413  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8414echo "${ECHO_T}$ac_ct_CXX" >&6
8415else
8416  echo "$as_me:$LINENO: result: no" >&5
8417echo "${ECHO_T}no" >&6
8418fi
8419
8420  test -n "$ac_ct_CXX" && break
8421done
8422test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8423
8424  CXX=$ac_ct_CXX
8425fi
8426
8427
8428# Provide some information about the compiler.
8429echo "$as_me:$LINENO:" \
8430     "checking for C++ compiler version" >&5
8431ac_compiler=`set X $ac_compile; echo $2`
8432{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8433  (eval $ac_compiler --version </dev/null >&5) 2>&5
8434  ac_status=$?
8435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436  (exit $ac_status); }
8437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8438  (eval $ac_compiler -v </dev/null >&5) 2>&5
8439  ac_status=$?
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); }
8442{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8443  (eval $ac_compiler -V </dev/null >&5) 2>&5
8444  ac_status=$?
8445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446  (exit $ac_status); }
8447
8448echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8449echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8450if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8451  echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453  cat >conftest.$ac_ext <<_ACEOF
8454/* confdefs.h.  */
8455_ACEOF
8456cat confdefs.h >>conftest.$ac_ext
8457cat >>conftest.$ac_ext <<_ACEOF
8458/* end confdefs.h.  */
8459
8460int
8461main ()
8462{
8463#ifndef __GNUC__
8464       choke me
8465#endif
8466
8467  ;
8468  return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext
8472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473  (eval $ac_compile) 2>conftest.er1
8474  ac_status=$?
8475  grep -v '^ *+' conftest.er1 >conftest.err
8476  rm -f conftest.er1
8477  cat conftest.err >&5
8478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479  (exit $ac_status); } &&
8480	 { ac_try='test -z "$ac_cxx_werror_flag"
8481			 || test ! -s conftest.err'
8482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483  (eval $ac_try) 2>&5
8484  ac_status=$?
8485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486  (exit $ac_status); }; } &&
8487	 { ac_try='test -s conftest.$ac_objext'
8488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489  (eval $ac_try) 2>&5
8490  ac_status=$?
8491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492  (exit $ac_status); }; }; then
8493  ac_compiler_gnu=yes
8494else
8495  echo "$as_me: failed program was:" >&5
8496sed 's/^/| /' conftest.$ac_ext >&5
8497
8498ac_compiler_gnu=no
8499fi
8500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8501ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8502
8503fi
8504echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8505echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8506GXX=`test $ac_compiler_gnu = yes && echo yes`
8507ac_test_CXXFLAGS=${CXXFLAGS+set}
8508ac_save_CXXFLAGS=$CXXFLAGS
8509CXXFLAGS="-g"
8510echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8511echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8512if test "${ac_cv_prog_cxx_g+set}" = set; then
8513  echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515  cat >conftest.$ac_ext <<_ACEOF
8516/* confdefs.h.  */
8517_ACEOF
8518cat confdefs.h >>conftest.$ac_ext
8519cat >>conftest.$ac_ext <<_ACEOF
8520/* end confdefs.h.  */
8521
8522int
8523main ()
8524{
8525
8526  ;
8527  return 0;
8528}
8529_ACEOF
8530rm -f conftest.$ac_objext
8531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532  (eval $ac_compile) 2>conftest.er1
8533  ac_status=$?
8534  grep -v '^ *+' conftest.er1 >conftest.err
8535  rm -f conftest.er1
8536  cat conftest.err >&5
8537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538  (exit $ac_status); } &&
8539	 { ac_try='test -z "$ac_cxx_werror_flag"
8540			 || test ! -s conftest.err'
8541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542  (eval $ac_try) 2>&5
8543  ac_status=$?
8544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); }; } &&
8546	 { ac_try='test -s conftest.$ac_objext'
8547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548  (eval $ac_try) 2>&5
8549  ac_status=$?
8550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551  (exit $ac_status); }; }; then
8552  ac_cv_prog_cxx_g=yes
8553else
8554  echo "$as_me: failed program was:" >&5
8555sed 's/^/| /' conftest.$ac_ext >&5
8556
8557ac_cv_prog_cxx_g=no
8558fi
8559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560fi
8561echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8562echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8563if test "$ac_test_CXXFLAGS" = set; then
8564  CXXFLAGS=$ac_save_CXXFLAGS
8565elif test $ac_cv_prog_cxx_g = yes; then
8566  if test "$GXX" = yes; then
8567    CXXFLAGS="-g -O2"
8568  else
8569    CXXFLAGS="-g"
8570  fi
8571else
8572  if test "$GXX" = yes; then
8573    CXXFLAGS="-O2"
8574  else
8575    CXXFLAGS=
8576  fi
8577fi
8578for ac_declaration in \
8579   '' \
8580   'extern "C" void std::exit (int) throw (); using std::exit;' \
8581   'extern "C" void std::exit (int); using std::exit;' \
8582   'extern "C" void exit (int) throw ();' \
8583   'extern "C" void exit (int);' \
8584   'void exit (int);'
8585do
8586  cat >conftest.$ac_ext <<_ACEOF
8587/* confdefs.h.  */
8588_ACEOF
8589cat confdefs.h >>conftest.$ac_ext
8590cat >>conftest.$ac_ext <<_ACEOF
8591/* end confdefs.h.  */
8592$ac_declaration
8593#include <stdlib.h>
8594int
8595main ()
8596{
8597exit (42);
8598  ;
8599  return 0;
8600}
8601_ACEOF
8602rm -f conftest.$ac_objext
8603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604  (eval $ac_compile) 2>conftest.er1
8605  ac_status=$?
8606  grep -v '^ *+' conftest.er1 >conftest.err
8607  rm -f conftest.er1
8608  cat conftest.err >&5
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); } &&
8611	 { ac_try='test -z "$ac_cxx_werror_flag"
8612			 || test ! -s conftest.err'
8613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614  (eval $ac_try) 2>&5
8615  ac_status=$?
8616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617  (exit $ac_status); }; } &&
8618	 { ac_try='test -s conftest.$ac_objext'
8619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620  (eval $ac_try) 2>&5
8621  ac_status=$?
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); }; }; then
8624  :
8625else
8626  echo "$as_me: failed program was:" >&5
8627sed 's/^/| /' conftest.$ac_ext >&5
8628
8629continue
8630fi
8631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632  cat >conftest.$ac_ext <<_ACEOF
8633/* confdefs.h.  */
8634_ACEOF
8635cat confdefs.h >>conftest.$ac_ext
8636cat >>conftest.$ac_ext <<_ACEOF
8637/* end confdefs.h.  */
8638$ac_declaration
8639int
8640main ()
8641{
8642exit (42);
8643  ;
8644  return 0;
8645}
8646_ACEOF
8647rm -f conftest.$ac_objext
8648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8649  (eval $ac_compile) 2>conftest.er1
8650  ac_status=$?
8651  grep -v '^ *+' conftest.er1 >conftest.err
8652  rm -f conftest.er1
8653  cat conftest.err >&5
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); } &&
8656	 { ac_try='test -z "$ac_cxx_werror_flag"
8657			 || test ! -s conftest.err'
8658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659  (eval $ac_try) 2>&5
8660  ac_status=$?
8661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); }; } &&
8663	 { ac_try='test -s conftest.$ac_objext'
8664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665  (eval $ac_try) 2>&5
8666  ac_status=$?
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); }; }; then
8669  break
8670else
8671  echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674fi
8675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8676done
8677rm -f conftest*
8678if test -n "$ac_declaration"; then
8679  echo '#ifdef __cplusplus' >>confdefs.h
8680  echo $ac_declaration      >>confdefs.h
8681  echo '#endif'             >>confdefs.h
8682fi
8683
8684ac_ext=cc
8685ac_cpp='$CXXCPP $CPPFLAGS'
8686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8689
8690depcc="$CXX"  am_compiler_list=
8691
8692echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8693echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8694if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8695  echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8698  # We make a subdir and do the tests there.  Otherwise we can end up
8699  # making bogus files that we don't know about and never remove.  For
8700  # instance it was reported that on HP-UX the gcc test will end up
8701  # making a dummy file named `D' -- because `-MD' means `put the output
8702  # in D'.
8703  mkdir conftest.dir
8704  # Copy depcomp to subdir because otherwise we won't find it if we're
8705  # using a relative directory.
8706  cp "$am_depcomp" conftest.dir
8707  cd conftest.dir
8708  # We will build objects and dependencies in a subdirectory because
8709  # it helps to detect inapplicable dependency modes.  For instance
8710  # both Tru64's cc and ICC support -MD to output dependencies as a
8711  # side effect of compilation, but ICC will put the dependencies in
8712  # the current directory while Tru64 will put them in the object
8713  # directory.
8714  mkdir sub
8715
8716  am_cv_CXX_dependencies_compiler_type=none
8717  if test "$am_compiler_list" = ""; then
8718     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8719  fi
8720  for depmode in $am_compiler_list; do
8721    # Setup a source with many dependencies, because some compilers
8722    # like to wrap large dependency lists on column 80 (with \), and
8723    # we should not choose a depcomp mode which is confused by this.
8724    #
8725    # We need to recreate these files for each test, as the compiler may
8726    # overwrite some of them when testing with obscure command lines.
8727    # This happens at least with the AIX C compiler.
8728    : > sub/conftest.c
8729    for i in 1 2 3 4 5 6; do
8730      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8731      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8732      # Solaris 8's {/usr,}/bin/sh.
8733      touch sub/conftst$i.h
8734    done
8735    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8736
8737    case $depmode in
8738    nosideeffect)
8739      # after this tag, mechanisms are not by side-effect, so they'll
8740      # only be used when explicitly requested
8741      if test "x$enable_dependency_tracking" = xyes; then
8742	continue
8743      else
8744	break
8745      fi
8746      ;;
8747    none) break ;;
8748    esac
8749    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8750    # mode.  It turns out that the SunPro C++ compiler does not properly
8751    # handle `-M -o', and we need to detect this.
8752    if depmode=$depmode \
8753       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8754       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8755       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8756         >/dev/null 2>conftest.err &&
8757       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8758       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8759       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8760      # icc doesn't choke on unknown options, it will just issue warnings
8761      # or remarks (even with -Werror).  So we grep stderr for any message
8762      # that says an option was ignored or not supported.
8763      # When given -MP, icc 7.0 and 7.1 complain thusly:
8764      #   icc: Command line warning: ignoring option '-M'; no argument required
8765      # The diagnosis changed in icc 8.0:
8766      #   icc: Command line remark: option '-MP' not supported
8767      if (grep 'ignoring option' conftest.err ||
8768          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8769        am_cv_CXX_dependencies_compiler_type=$depmode
8770        break
8771      fi
8772    fi
8773  done
8774
8775  cd ..
8776  rm -rf conftest.dir
8777else
8778  am_cv_CXX_dependencies_compiler_type=none
8779fi
8780
8781fi
8782echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8783echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8784CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8785
8786
8787
8788if
8789  test "x$enable_dependency_tracking" != xno \
8790  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8791  am__fastdepCXX_TRUE=
8792  am__fastdepCXX_FALSE='#'
8793else
8794  am__fastdepCXX_TRUE='#'
8795  am__fastdepCXX_FALSE=
8796fi
8797
8798
8799
8800
8801if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8802    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8803    (test "X$CXX" != "Xg++"))) ; then
8804  ac_ext=cc
8805ac_cpp='$CXXCPP $CPPFLAGS'
8806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8809echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8810echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8811if test -z "$CXXCPP"; then
8812  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8813  echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815      # Double quotes because CXXCPP needs to be expanded
8816    for CXXCPP in "$CXX -E" "/lib/cpp"
8817    do
8818      ac_preproc_ok=false
8819for ac_cxx_preproc_warn_flag in '' yes
8820do
8821  # Use a header file that comes with gcc, so configuring glibc
8822  # with a fresh cross-compiler works.
8823  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8824  # <limits.h> exists even on freestanding compilers.
8825  # On the NeXT, cc -E runs the code through the compiler's parser,
8826  # not just through cpp. "Syntax error" is here to catch this case.
8827  cat >conftest.$ac_ext <<_ACEOF
8828/* confdefs.h.  */
8829_ACEOF
8830cat confdefs.h >>conftest.$ac_ext
8831cat >>conftest.$ac_ext <<_ACEOF
8832/* end confdefs.h.  */
8833#ifdef __STDC__
8834# include <limits.h>
8835#else
8836# include <assert.h>
8837#endif
8838		     Syntax error
8839_ACEOF
8840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8841  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842  ac_status=$?
8843  grep -v '^ *+' conftest.er1 >conftest.err
8844  rm -f conftest.er1
8845  cat conftest.err >&5
8846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847  (exit $ac_status); } >/dev/null; then
8848  if test -s conftest.err; then
8849    ac_cpp_err=$ac_cxx_preproc_warn_flag
8850    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8851  else
8852    ac_cpp_err=
8853  fi
8854else
8855  ac_cpp_err=yes
8856fi
8857if test -z "$ac_cpp_err"; then
8858  :
8859else
8860  echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
8863  # Broken: fails on valid input.
8864continue
8865fi
8866rm -f conftest.err conftest.$ac_ext
8867
8868  # OK, works on sane cases.  Now check whether non-existent headers
8869  # can be detected and how.
8870  cat >conftest.$ac_ext <<_ACEOF
8871/* confdefs.h.  */
8872_ACEOF
8873cat confdefs.h >>conftest.$ac_ext
8874cat >>conftest.$ac_ext <<_ACEOF
8875/* end confdefs.h.  */
8876#include <ac_nonexistent.h>
8877_ACEOF
8878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8879  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8880  ac_status=$?
8881  grep -v '^ *+' conftest.er1 >conftest.err
8882  rm -f conftest.er1
8883  cat conftest.err >&5
8884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885  (exit $ac_status); } >/dev/null; then
8886  if test -s conftest.err; then
8887    ac_cpp_err=$ac_cxx_preproc_warn_flag
8888    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8889  else
8890    ac_cpp_err=
8891  fi
8892else
8893  ac_cpp_err=yes
8894fi
8895if test -z "$ac_cpp_err"; then
8896  # Broken: success on invalid input.
8897continue
8898else
8899  echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902  # Passes both tests.
8903ac_preproc_ok=:
8904break
8905fi
8906rm -f conftest.err conftest.$ac_ext
8907
8908done
8909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8910rm -f conftest.err conftest.$ac_ext
8911if $ac_preproc_ok; then
8912  break
8913fi
8914
8915    done
8916    ac_cv_prog_CXXCPP=$CXXCPP
8917
8918fi
8919  CXXCPP=$ac_cv_prog_CXXCPP
8920else
8921  ac_cv_prog_CXXCPP=$CXXCPP
8922fi
8923echo "$as_me:$LINENO: result: $CXXCPP" >&5
8924echo "${ECHO_T}$CXXCPP" >&6
8925ac_preproc_ok=false
8926for ac_cxx_preproc_warn_flag in '' yes
8927do
8928  # Use a header file that comes with gcc, so configuring glibc
8929  # with a fresh cross-compiler works.
8930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8931  # <limits.h> exists even on freestanding compilers.
8932  # On the NeXT, cc -E runs the code through the compiler's parser,
8933  # not just through cpp. "Syntax error" is here to catch this case.
8934  cat >conftest.$ac_ext <<_ACEOF
8935/* confdefs.h.  */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h.  */
8940#ifdef __STDC__
8941# include <limits.h>
8942#else
8943# include <assert.h>
8944#endif
8945		     Syntax error
8946_ACEOF
8947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8948  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8949  ac_status=$?
8950  grep -v '^ *+' conftest.er1 >conftest.err
8951  rm -f conftest.er1
8952  cat conftest.err >&5
8953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954  (exit $ac_status); } >/dev/null; then
8955  if test -s conftest.err; then
8956    ac_cpp_err=$ac_cxx_preproc_warn_flag
8957    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8958  else
8959    ac_cpp_err=
8960  fi
8961else
8962  ac_cpp_err=yes
8963fi
8964if test -z "$ac_cpp_err"; then
8965  :
8966else
8967  echo "$as_me: failed program was:" >&5
8968sed 's/^/| /' conftest.$ac_ext >&5
8969
8970  # Broken: fails on valid input.
8971continue
8972fi
8973rm -f conftest.err conftest.$ac_ext
8974
8975  # OK, works on sane cases.  Now check whether non-existent headers
8976  # can be detected and how.
8977  cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h.  */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h.  */
8983#include <ac_nonexistent.h>
8984_ACEOF
8985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8986  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8987  ac_status=$?
8988  grep -v '^ *+' conftest.er1 >conftest.err
8989  rm -f conftest.er1
8990  cat conftest.err >&5
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); } >/dev/null; then
8993  if test -s conftest.err; then
8994    ac_cpp_err=$ac_cxx_preproc_warn_flag
8995    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8996  else
8997    ac_cpp_err=
8998  fi
8999else
9000  ac_cpp_err=yes
9001fi
9002if test -z "$ac_cpp_err"; then
9003  # Broken: success on invalid input.
9004continue
9005else
9006  echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
9009  # Passes both tests.
9010ac_preproc_ok=:
9011break
9012fi
9013rm -f conftest.err conftest.$ac_ext
9014
9015done
9016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9017rm -f conftest.err conftest.$ac_ext
9018if $ac_preproc_ok; then
9019  :
9020else
9021  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9022See \`config.log' for more details." >&5
9023echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9024See \`config.log' for more details." >&2;}
9025   { (exit 1); exit 1; }; }
9026fi
9027
9028ac_ext=cc
9029ac_cpp='$CXXCPP $CPPFLAGS'
9030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9033
9034fi
9035
9036
9037ac_ext=f
9038ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9039ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9040ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9041if test -n "$ac_tool_prefix"; then
9042  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9043  do
9044    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9046echo "$as_me:$LINENO: checking for $ac_word" >&5
9047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9048if test "${ac_cv_prog_F77+set}" = set; then
9049  echo $ECHO_N "(cached) $ECHO_C" >&6
9050else
9051  if test -n "$F77"; then
9052  ac_cv_prog_F77="$F77" # Let the user override the test.
9053else
9054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055for as_dir in $PATH
9056do
9057  IFS=$as_save_IFS
9058  test -z "$as_dir" && as_dir=.
9059  for ac_exec_ext in '' $ac_executable_extensions; do
9060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9063    break 2
9064  fi
9065done
9066done
9067
9068fi
9069fi
9070F77=$ac_cv_prog_F77
9071if test -n "$F77"; then
9072  echo "$as_me:$LINENO: result: $F77" >&5
9073echo "${ECHO_T}$F77" >&6
9074else
9075  echo "$as_me:$LINENO: result: no" >&5
9076echo "${ECHO_T}no" >&6
9077fi
9078
9079    test -n "$F77" && break
9080  done
9081fi
9082if test -z "$F77"; then
9083  ac_ct_F77=$F77
9084  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9085do
9086  # Extract the first word of "$ac_prog", so it can be a program name with args.
9087set dummy $ac_prog; ac_word=$2
9088echo "$as_me:$LINENO: checking for $ac_word" >&5
9089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9090if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9091  echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093  if test -n "$ac_ct_F77"; then
9094  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099  IFS=$as_save_IFS
9100  test -z "$as_dir" && as_dir=.
9101  for ac_exec_ext in '' $ac_executable_extensions; do
9102  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103    ac_cv_prog_ac_ct_F77="$ac_prog"
9104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9105    break 2
9106  fi
9107done
9108done
9109
9110fi
9111fi
9112ac_ct_F77=$ac_cv_prog_ac_ct_F77
9113if test -n "$ac_ct_F77"; then
9114  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9115echo "${ECHO_T}$ac_ct_F77" >&6
9116else
9117  echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6
9119fi
9120
9121  test -n "$ac_ct_F77" && break
9122done
9123
9124  F77=$ac_ct_F77
9125fi
9126
9127
9128# Provide some information about the compiler.
9129echo "$as_me:9131:" \
9130     "checking for Fortran 77 compiler version" >&5
9131ac_compiler=`set X $ac_compile; echo $2`
9132{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9133  (eval $ac_compiler --version </dev/null >&5) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }
9137{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9138  (eval $ac_compiler -v </dev/null >&5) 2>&5
9139  ac_status=$?
9140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141  (exit $ac_status); }
9142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9143  (eval $ac_compiler -V </dev/null >&5) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); }
9147rm -f a.out
9148
9149# If we don't use `.F' as extension, the preprocessor is not run on the
9150# input file.  (Note that this only needs to work for GNU compilers.)
9151ac_save_ext=$ac_ext
9152ac_ext=F
9153echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9154echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
9155if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9156  echo $ECHO_N "(cached) $ECHO_C" >&6
9157else
9158  cat >conftest.$ac_ext <<_ACEOF
9159      program main
9160#ifndef __GNUC__
9161       choke me
9162#endif
9163
9164      end
9165_ACEOF
9166rm -f conftest.$ac_objext
9167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168  (eval $ac_compile) 2>conftest.er1
9169  ac_status=$?
9170  grep -v '^ *+' conftest.er1 >conftest.err
9171  rm -f conftest.er1
9172  cat conftest.err >&5
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); } &&
9175	 { ac_try='test -z "$ac_f77_werror_flag"
9176			 || test ! -s conftest.err'
9177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178  (eval $ac_try) 2>&5
9179  ac_status=$?
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); }; } &&
9182	 { ac_try='test -s conftest.$ac_objext'
9183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184  (eval $ac_try) 2>&5
9185  ac_status=$?
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); }; }; then
9188  ac_compiler_gnu=yes
9189else
9190  echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193ac_compiler_gnu=no
9194fi
9195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9197
9198fi
9199echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9200echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
9201ac_ext=$ac_save_ext
9202ac_test_FFLAGS=${FFLAGS+set}
9203ac_save_FFLAGS=$FFLAGS
9204FFLAGS=
9205echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9206echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
9207if test "${ac_cv_prog_f77_g+set}" = set; then
9208  echo $ECHO_N "(cached) $ECHO_C" >&6
9209else
9210  FFLAGS=-g
9211cat >conftest.$ac_ext <<_ACEOF
9212      program main
9213
9214      end
9215_ACEOF
9216rm -f conftest.$ac_objext
9217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218  (eval $ac_compile) 2>conftest.er1
9219  ac_status=$?
9220  grep -v '^ *+' conftest.er1 >conftest.err
9221  rm -f conftest.er1
9222  cat conftest.err >&5
9223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224  (exit $ac_status); } &&
9225	 { ac_try='test -z "$ac_f77_werror_flag"
9226			 || test ! -s conftest.err'
9227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228  (eval $ac_try) 2>&5
9229  ac_status=$?
9230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231  (exit $ac_status); }; } &&
9232	 { ac_try='test -s conftest.$ac_objext'
9233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234  (eval $ac_try) 2>&5
9235  ac_status=$?
9236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237  (exit $ac_status); }; }; then
9238  ac_cv_prog_f77_g=yes
9239else
9240  echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
9242
9243ac_cv_prog_f77_g=no
9244fi
9245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246
9247fi
9248echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9249echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
9250if test "$ac_test_FFLAGS" = set; then
9251  FFLAGS=$ac_save_FFLAGS
9252elif test $ac_cv_prog_f77_g = yes; then
9253  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9254    FFLAGS="-g -O2"
9255  else
9256    FFLAGS="-g"
9257  fi
9258else
9259  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9260    FFLAGS="-O2"
9261  else
9262    FFLAGS=
9263  fi
9264fi
9265
9266G77=`test $ac_compiler_gnu = yes && echo yes`
9267ac_ext=c
9268ac_cpp='$CPP $CPPFLAGS'
9269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9271ac_compiler_gnu=$ac_cv_c_compiler_gnu
9272
9273
9274
9275# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9276
9277# find the maximum length of command line arguments
9278echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9279echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
9280if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9281  echo $ECHO_N "(cached) $ECHO_C" >&6
9282else
9283    i=0
9284  teststring="ABCD"
9285
9286  case $build_os in
9287  msdosdjgpp*)
9288    # On DJGPP, this test can blow up pretty badly due to problems in libc
9289    # (any single argument exceeding 2000 bytes causes a buffer overrun
9290    # during glob expansion).  Even if it were fixed, the result of this
9291    # check would be larger than it should be.
9292    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9293    ;;
9294
9295  gnu*)
9296    # Under GNU Hurd, this test is not required because there is
9297    # no limit to the length of command line arguments.
9298    # Libtool will interpret -1 as no limit whatsoever
9299    lt_cv_sys_max_cmd_len=-1;
9300    ;;
9301
9302  cygwin* | mingw*)
9303    # On Win9x/ME, this test blows up -- it succeeds, but takes
9304    # about 5 minutes as the teststring grows exponentially.
9305    # Worse, since 9x/ME are not pre-emptively multitasking,
9306    # you end up with a "frozen" computer, even though with patience
9307    # the test eventually succeeds (with a max line length of 256k).
9308    # Instead, let's just punt: use the minimum linelength reported by
9309    # all of the supported platforms: 8192 (on NT/2K/XP).
9310    lt_cv_sys_max_cmd_len=8192;
9311    ;;
9312
9313  amigaos*)
9314    # On AmigaOS with pdksh, this test takes hours, literally.
9315    # So we just punt and use a minimum line length of 8192.
9316    lt_cv_sys_max_cmd_len=8192;
9317    ;;
9318
9319  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9320    # This has been around since 386BSD, at least.  Likely further.
9321    if test -x /sbin/sysctl; then
9322      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9323    elif test -x /usr/sbin/sysctl; then
9324      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9325    else
9326      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9327    fi
9328    # And add a safety zone
9329    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9330    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9331    ;;
9332
9333  interix*)
9334    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9335    lt_cv_sys_max_cmd_len=196608
9336    ;;
9337
9338  osf*)
9339    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9340    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9341    # nice to cause kernel panics so lets avoid the loop below.
9342    # First set a reasonable default.
9343    lt_cv_sys_max_cmd_len=16384
9344    #
9345    if test -x /sbin/sysconfig; then
9346      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9347        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9348      esac
9349    fi
9350    ;;
9351  sco3.2v5*)
9352    lt_cv_sys_max_cmd_len=102400
9353    ;;
9354  sysv5* | sco5v6* | sysv4.2uw2*)
9355    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9356    if test -n "$kargmax"; then
9357      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
9358    else
9359      lt_cv_sys_max_cmd_len=32768
9360    fi
9361    ;;
9362  *)
9363    # If test is not a shell built-in, we'll probably end up computing a
9364    # maximum length that is only half of the actual maximum length, but
9365    # we can't tell.
9366    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9367    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9368	       = "XX$teststring") >/dev/null 2>&1 &&
9369	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
9370	    lt_cv_sys_max_cmd_len=$new_result &&
9371	    test $i != 17 # 1/2 MB should be enough
9372    do
9373      i=`expr $i + 1`
9374      teststring=$teststring$teststring
9375    done
9376    teststring=
9377    # Add a significant safety factor because C++ compilers can tack on massive
9378    # amounts of additional arguments before passing them to the linker.
9379    # It appears as though 1/2 is a usable value.
9380    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9381    ;;
9382  esac
9383
9384fi
9385
9386if test -n $lt_cv_sys_max_cmd_len ; then
9387  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9388echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9389else
9390  echo "$as_me:$LINENO: result: none" >&5
9391echo "${ECHO_T}none" >&6
9392fi
9393
9394
9395
9396
9397# Check for command to grab the raw symbol name followed by C symbol from nm.
9398echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9399echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9400if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9401  echo $ECHO_N "(cached) $ECHO_C" >&6
9402else
9403
9404# These are sane defaults that work on at least a few old systems.
9405# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9406
9407# Character class describing NM global symbol codes.
9408symcode='[BCDEGRST]'
9409
9410# Regexp to match symbols that can be accessed directly from C.
9411sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9412
9413# Transform an extracted symbol line into a proper C declaration
9414lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9415
9416# Transform an extracted symbol line into symbol name and symbol address
9417lt_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'"
9418
9419# Define system-specific variables.
9420case $host_os in
9421aix*)
9422  symcode='[BCDT]'
9423  ;;
9424cygwin* | mingw* | pw32*)
9425  symcode='[ABCDGISTW]'
9426  ;;
9427hpux*) # Its linker distinguishes data from code symbols
9428  if test "$host_cpu" = ia64; then
9429    symcode='[ABCDEGRST]'
9430  fi
9431  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9432  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'"
9433  ;;
9434linux*)
9435  if test "$host_cpu" = ia64; then
9436    symcode='[ABCDGIRSTW]'
9437    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9438    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'"
9439  fi
9440  ;;
9441irix* | nonstopux*)
9442  symcode='[BCDEGRST]'
9443  ;;
9444osf*)
9445  symcode='[BCDEGQRST]'
9446  ;;
9447solaris*)
9448  symcode='[BDRT]'
9449  ;;
9450sco3.2v5*)
9451  symcode='[DT]'
9452  ;;
9453sysv4.2uw2*)
9454  symcode='[DT]'
9455  ;;
9456sysv5* | sco5v6* | unixware* | OpenUNIX*)
9457  symcode='[ABDT]'
9458  ;;
9459sysv4)
9460  symcode='[DFNSTU]'
9461  ;;
9462esac
9463
9464# Handle CRLF in mingw tool chain
9465opt_cr=
9466case $build_os in
9467mingw*)
9468  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9469  ;;
9470esac
9471
9472# If we're using GNU nm, then use its standard symbol codes.
9473case `$NM -V 2>&1` in
9474*GNU* | *'with BFD'*)
9475  symcode='[ABCDGIRSTW]' ;;
9476esac
9477
9478# Try without a prefix undercore, then with it.
9479for ac_symprfx in "" "_"; do
9480
9481  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9482  symxfrm="\\1 $ac_symprfx\\2 \\2"
9483
9484  # Write the raw and C identifiers.
9485  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9486
9487  # Check to see that the pipe works correctly.
9488  pipe_works=no
9489
9490  rm -f conftest*
9491  cat > conftest.$ac_ext <<EOF
9492#ifdef __cplusplus
9493extern "C" {
9494#endif
9495char nm_test_var;
9496void nm_test_func(){}
9497#ifdef __cplusplus
9498}
9499#endif
9500int main(){nm_test_var='a';nm_test_func();return(0);}
9501EOF
9502
9503  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504  (eval $ac_compile) 2>&5
9505  ac_status=$?
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); }; then
9508    # Now try to grab the symbols.
9509    nlist=conftest.nm
9510    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9511  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9512  ac_status=$?
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); } && test -s "$nlist"; then
9515      # Try sorting and uniquifying the output.
9516      if sort "$nlist" | uniq > "$nlist"T; then
9517	mv -f "$nlist"T "$nlist"
9518      else
9519	rm -f "$nlist"T
9520      fi
9521
9522      # Make sure that we snagged all the symbols we need.
9523      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9524	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9525	  cat <<EOF > conftest.$ac_ext
9526#ifdef __cplusplus
9527extern "C" {
9528#endif
9529
9530EOF
9531	  # Now generate the symbol file.
9532	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9533
9534	  cat <<EOF >> conftest.$ac_ext
9535#if defined (__STDC__) && __STDC__
9536# define lt_ptr_t void *
9537#else
9538# define lt_ptr_t char *
9539# define const
9540#endif
9541
9542/* The mapping between symbol names and symbols. */
9543const struct {
9544  const char *name;
9545  lt_ptr_t address;
9546}
9547lt_preloaded_symbols[] =
9548{
9549EOF
9550	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9551	  cat <<\EOF >> conftest.$ac_ext
9552  {0, (lt_ptr_t) 0}
9553};
9554
9555#ifdef __cplusplus
9556}
9557#endif
9558EOF
9559	  # Now try linking the two files.
9560	  mv conftest.$ac_objext conftstm.$ac_objext
9561	  lt_save_LIBS="$LIBS"
9562	  lt_save_CFLAGS="$CFLAGS"
9563	  LIBS="conftstm.$ac_objext"
9564	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9565	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566  (eval $ac_link) 2>&5
9567  ac_status=$?
9568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9570	    pipe_works=yes
9571	  fi
9572	  LIBS="$lt_save_LIBS"
9573	  CFLAGS="$lt_save_CFLAGS"
9574	else
9575	  echo "cannot find nm_test_func in $nlist" >&5
9576	fi
9577      else
9578	echo "cannot find nm_test_var in $nlist" >&5
9579      fi
9580    else
9581      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9582    fi
9583  else
9584    echo "$progname: failed program was:" >&5
9585    cat conftest.$ac_ext >&5
9586  fi
9587  rm -f conftest* conftst*
9588
9589  # Do not use the global_symbol_pipe unless it works.
9590  if test "$pipe_works" = yes; then
9591    break
9592  else
9593    lt_cv_sys_global_symbol_pipe=
9594  fi
9595done
9596
9597fi
9598
9599if test -z "$lt_cv_sys_global_symbol_pipe"; then
9600  lt_cv_sys_global_symbol_to_cdecl=
9601fi
9602if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9603  echo "$as_me:$LINENO: result: failed" >&5
9604echo "${ECHO_T}failed" >&6
9605else
9606  echo "$as_me:$LINENO: result: ok" >&5
9607echo "${ECHO_T}ok" >&6
9608fi
9609
9610echo "$as_me:$LINENO: checking for objdir" >&5
9611echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9612if test "${lt_cv_objdir+set}" = set; then
9613  echo $ECHO_N "(cached) $ECHO_C" >&6
9614else
9615  rm -f .libs 2>/dev/null
9616mkdir .libs 2>/dev/null
9617if test -d .libs; then
9618  lt_cv_objdir=.libs
9619else
9620  # MS-DOS does not allow filenames that begin with a dot.
9621  lt_cv_objdir=_libs
9622fi
9623rmdir .libs 2>/dev/null
9624fi
9625echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9626echo "${ECHO_T}$lt_cv_objdir" >&6
9627objdir=$lt_cv_objdir
9628
9629
9630
9631
9632
9633case $host_os in
9634aix3*)
9635  # AIX sometimes has problems with the GCC collect2 program.  For some
9636  # reason, if we set the COLLECT_NAMES environment variable, the problems
9637  # vanish in a puff of smoke.
9638  if test "X${COLLECT_NAMES+set}" != Xset; then
9639    COLLECT_NAMES=
9640    export COLLECT_NAMES
9641  fi
9642  ;;
9643esac
9644
9645# Sed substitution that helps us do robust quoting.  It backslashifies
9646# metacharacters that are still active within double-quoted strings.
9647Xsed='sed -e 1s/^X//'
9648sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9649
9650# Same as above, but do not quote variable references.
9651double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9652
9653# Sed substitution to delay expansion of an escaped shell variable in a
9654# double_quote_subst'ed string.
9655delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9656
9657# Sed substitution to avoid accidental globbing in evaled expressions
9658no_glob_subst='s/\*/\\\*/g'
9659
9660# Constants:
9661rm="rm -f"
9662
9663# Global variables:
9664default_ofile=libtool
9665can_build_shared=yes
9666
9667# All known linkers require a `.a' archive for static linking (except MSVC,
9668# which needs '.lib').
9669libext=a
9670ltmain="$ac_aux_dir/ltmain.sh"
9671ofile="$default_ofile"
9672with_gnu_ld="$lt_cv_prog_gnu_ld"
9673
9674if test -n "$ac_tool_prefix"; then
9675  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9676set dummy ${ac_tool_prefix}ar; ac_word=$2
9677echo "$as_me:$LINENO: checking for $ac_word" >&5
9678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9679if test "${ac_cv_prog_AR+set}" = set; then
9680  echo $ECHO_N "(cached) $ECHO_C" >&6
9681else
9682  if test -n "$AR"; then
9683  ac_cv_prog_AR="$AR" # Let the user override the test.
9684else
9685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $PATH
9687do
9688  IFS=$as_save_IFS
9689  test -z "$as_dir" && as_dir=.
9690  for ac_exec_ext in '' $ac_executable_extensions; do
9691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692    ac_cv_prog_AR="${ac_tool_prefix}ar"
9693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9694    break 2
9695  fi
9696done
9697done
9698
9699fi
9700fi
9701AR=$ac_cv_prog_AR
9702if test -n "$AR"; then
9703  echo "$as_me:$LINENO: result: $AR" >&5
9704echo "${ECHO_T}$AR" >&6
9705else
9706  echo "$as_me:$LINENO: result: no" >&5
9707echo "${ECHO_T}no" >&6
9708fi
9709
9710fi
9711if test -z "$ac_cv_prog_AR"; then
9712  ac_ct_AR=$AR
9713  # Extract the first word of "ar", so it can be a program name with args.
9714set dummy ar; ac_word=$2
9715echo "$as_me:$LINENO: checking for $ac_word" >&5
9716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9717if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9718  echo $ECHO_N "(cached) $ECHO_C" >&6
9719else
9720  if test -n "$ac_ct_AR"; then
9721  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9722else
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726  IFS=$as_save_IFS
9727  test -z "$as_dir" && as_dir=.
9728  for ac_exec_ext in '' $ac_executable_extensions; do
9729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730    ac_cv_prog_ac_ct_AR="ar"
9731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9732    break 2
9733  fi
9734done
9735done
9736
9737  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9738fi
9739fi
9740ac_ct_AR=$ac_cv_prog_ac_ct_AR
9741if test -n "$ac_ct_AR"; then
9742  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9743echo "${ECHO_T}$ac_ct_AR" >&6
9744else
9745  echo "$as_me:$LINENO: result: no" >&5
9746echo "${ECHO_T}no" >&6
9747fi
9748
9749  AR=$ac_ct_AR
9750else
9751  AR="$ac_cv_prog_AR"
9752fi
9753
9754if test -n "$ac_tool_prefix"; then
9755  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9756set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9757echo "$as_me:$LINENO: checking for $ac_word" >&5
9758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9759if test "${ac_cv_prog_RANLIB+set}" = set; then
9760  echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
9762  if test -n "$RANLIB"; then
9763  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9764else
9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766for as_dir in $PATH
9767do
9768  IFS=$as_save_IFS
9769  test -z "$as_dir" && as_dir=.
9770  for ac_exec_ext in '' $ac_executable_extensions; do
9771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9774    break 2
9775  fi
9776done
9777done
9778
9779fi
9780fi
9781RANLIB=$ac_cv_prog_RANLIB
9782if test -n "$RANLIB"; then
9783  echo "$as_me:$LINENO: result: $RANLIB" >&5
9784echo "${ECHO_T}$RANLIB" >&6
9785else
9786  echo "$as_me:$LINENO: result: no" >&5
9787echo "${ECHO_T}no" >&6
9788fi
9789
9790fi
9791if test -z "$ac_cv_prog_RANLIB"; then
9792  ac_ct_RANLIB=$RANLIB
9793  # Extract the first word of "ranlib", so it can be a program name with args.
9794set dummy ranlib; ac_word=$2
9795echo "$as_me:$LINENO: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9798  echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800  if test -n "$ac_ct_RANLIB"; then
9801  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806  IFS=$as_save_IFS
9807  test -z "$as_dir" && as_dir=.
9808  for ac_exec_ext in '' $ac_executable_extensions; do
9809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810    ac_cv_prog_ac_ct_RANLIB="ranlib"
9811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812    break 2
9813  fi
9814done
9815done
9816
9817  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9818fi
9819fi
9820ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9821if test -n "$ac_ct_RANLIB"; then
9822  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9823echo "${ECHO_T}$ac_ct_RANLIB" >&6
9824else
9825  echo "$as_me:$LINENO: result: no" >&5
9826echo "${ECHO_T}no" >&6
9827fi
9828
9829  RANLIB=$ac_ct_RANLIB
9830else
9831  RANLIB="$ac_cv_prog_RANLIB"
9832fi
9833
9834if test -n "$ac_tool_prefix"; then
9835  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9836set dummy ${ac_tool_prefix}strip; ac_word=$2
9837echo "$as_me:$LINENO: checking for $ac_word" >&5
9838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9839if test "${ac_cv_prog_STRIP+set}" = set; then
9840  echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842  if test -n "$STRIP"; then
9843  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9844else
9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846for as_dir in $PATH
9847do
9848  IFS=$as_save_IFS
9849  test -z "$as_dir" && as_dir=.
9850  for ac_exec_ext in '' $ac_executable_extensions; do
9851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9854    break 2
9855  fi
9856done
9857done
9858
9859fi
9860fi
9861STRIP=$ac_cv_prog_STRIP
9862if test -n "$STRIP"; then
9863  echo "$as_me:$LINENO: result: $STRIP" >&5
9864echo "${ECHO_T}$STRIP" >&6
9865else
9866  echo "$as_me:$LINENO: result: no" >&5
9867echo "${ECHO_T}no" >&6
9868fi
9869
9870fi
9871if test -z "$ac_cv_prog_STRIP"; then
9872  ac_ct_STRIP=$STRIP
9873  # Extract the first word of "strip", so it can be a program name with args.
9874set dummy strip; ac_word=$2
9875echo "$as_me:$LINENO: checking for $ac_word" >&5
9876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9877if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9878  echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880  if test -n "$ac_ct_STRIP"; then
9881  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9882else
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886  IFS=$as_save_IFS
9887  test -z "$as_dir" && as_dir=.
9888  for ac_exec_ext in '' $ac_executable_extensions; do
9889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890    ac_cv_prog_ac_ct_STRIP="strip"
9891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892    break 2
9893  fi
9894done
9895done
9896
9897  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9898fi
9899fi
9900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9901if test -n "$ac_ct_STRIP"; then
9902  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9903echo "${ECHO_T}$ac_ct_STRIP" >&6
9904else
9905  echo "$as_me:$LINENO: result: no" >&5
9906echo "${ECHO_T}no" >&6
9907fi
9908
9909  STRIP=$ac_ct_STRIP
9910else
9911  STRIP="$ac_cv_prog_STRIP"
9912fi
9913
9914
9915old_CC="$CC"
9916old_CFLAGS="$CFLAGS"
9917
9918# Set sane defaults for various variables
9919test -z "$AR" && AR=ar
9920test -z "$AR_FLAGS" && AR_FLAGS=cru
9921test -z "$AS" && AS=as
9922test -z "$CC" && CC=cc
9923test -z "$LTCC" && LTCC=$CC
9924test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9925test -z "$DLLTOOL" && DLLTOOL=dlltool
9926test -z "$LD" && LD=ld
9927test -z "$LN_S" && LN_S="ln -s"
9928test -z "$MAGIC_CMD" && MAGIC_CMD=file
9929test -z "$NM" && NM=nm
9930test -z "$SED" && SED=sed
9931test -z "$OBJDUMP" && OBJDUMP=objdump
9932test -z "$RANLIB" && RANLIB=:
9933test -z "$STRIP" && STRIP=:
9934test -z "$ac_objext" && ac_objext=o
9935
9936# Determine commands to create old-style static archives.
9937old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9938old_postinstall_cmds='chmod 644 $oldlib'
9939old_postuninstall_cmds=
9940
9941if test -n "$RANLIB"; then
9942  case $host_os in
9943  openbsd*)
9944    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9945    ;;
9946  *)
9947    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9948    ;;
9949  esac
9950  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9951fi
9952
9953for cc_temp in $compiler""; do
9954  case $cc_temp in
9955    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9956    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9957    \-*) ;;
9958    *) break;;
9959  esac
9960done
9961cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9962
9963
9964# Only perform the check for file, if the check method requires it
9965case $deplibs_check_method in
9966file_magic*)
9967  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9968    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9969echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9970if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9971  echo $ECHO_N "(cached) $ECHO_C" >&6
9972else
9973  case $MAGIC_CMD in
9974[\\/*] |  ?:[\\/]*)
9975  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9976  ;;
9977*)
9978  lt_save_MAGIC_CMD="$MAGIC_CMD"
9979  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9980  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9981  for ac_dir in $ac_dummy; do
9982    IFS="$lt_save_ifs"
9983    test -z "$ac_dir" && ac_dir=.
9984    if test -f $ac_dir/${ac_tool_prefix}file; then
9985      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9986      if test -n "$file_magic_test_file"; then
9987	case $deplibs_check_method in
9988	"file_magic "*)
9989	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9990	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9991	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9992	    $EGREP "$file_magic_regex" > /dev/null; then
9993	    :
9994	  else
9995	    cat <<EOF 1>&2
9996
9997*** Warning: the command libtool uses to detect shared libraries,
9998*** $file_magic_cmd, produces output that libtool cannot recognize.
9999*** The result is that libtool may fail to recognize shared libraries
10000*** as such.  This will affect the creation of libtool libraries that
10001*** depend on shared libraries, but programs linked with such libtool
10002*** libraries will work regardless of this problem.  Nevertheless, you
10003*** may want to report the problem to your system manager and/or to
10004*** bug-libtool@gnu.org
10005
10006EOF
10007	  fi ;;
10008	esac
10009      fi
10010      break
10011    fi
10012  done
10013  IFS="$lt_save_ifs"
10014  MAGIC_CMD="$lt_save_MAGIC_CMD"
10015  ;;
10016esac
10017fi
10018
10019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10020if test -n "$MAGIC_CMD"; then
10021  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10022echo "${ECHO_T}$MAGIC_CMD" >&6
10023else
10024  echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
10026fi
10027
10028if test -z "$lt_cv_path_MAGIC_CMD"; then
10029  if test -n "$ac_tool_prefix"; then
10030    echo "$as_me:$LINENO: checking for file" >&5
10031echo $ECHO_N "checking for file... $ECHO_C" >&6
10032if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10033  echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035  case $MAGIC_CMD in
10036[\\/*] |  ?:[\\/]*)
10037  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10038  ;;
10039*)
10040  lt_save_MAGIC_CMD="$MAGIC_CMD"
10041  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10042  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10043  for ac_dir in $ac_dummy; do
10044    IFS="$lt_save_ifs"
10045    test -z "$ac_dir" && ac_dir=.
10046    if test -f $ac_dir/file; then
10047      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10048      if test -n "$file_magic_test_file"; then
10049	case $deplibs_check_method in
10050	"file_magic "*)
10051	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10052	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10053	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10054	    $EGREP "$file_magic_regex" > /dev/null; then
10055	    :
10056	  else
10057	    cat <<EOF 1>&2
10058
10059*** Warning: the command libtool uses to detect shared libraries,
10060*** $file_magic_cmd, produces output that libtool cannot recognize.
10061*** The result is that libtool may fail to recognize shared libraries
10062*** as such.  This will affect the creation of libtool libraries that
10063*** depend on shared libraries, but programs linked with such libtool
10064*** libraries will work regardless of this problem.  Nevertheless, you
10065*** may want to report the problem to your system manager and/or to
10066*** bug-libtool@gnu.org
10067
10068EOF
10069	  fi ;;
10070	esac
10071      fi
10072      break
10073    fi
10074  done
10075  IFS="$lt_save_ifs"
10076  MAGIC_CMD="$lt_save_MAGIC_CMD"
10077  ;;
10078esac
10079fi
10080
10081MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10082if test -n "$MAGIC_CMD"; then
10083  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10084echo "${ECHO_T}$MAGIC_CMD" >&6
10085else
10086  echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088fi
10089
10090  else
10091    MAGIC_CMD=:
10092  fi
10093fi
10094
10095  fi
10096  ;;
10097esac
10098
10099enable_dlopen=yes
10100enable_win32_dll=no
10101
10102# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10103if test "${enable_libtool_lock+set}" = set; then
10104  enableval="$enable_libtool_lock"
10105
10106fi;
10107test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10108
10109
10110# Check whether --with-pic or --without-pic was given.
10111if test "${with_pic+set}" = set; then
10112  withval="$with_pic"
10113  pic_mode="$withval"
10114else
10115  pic_mode=default
10116fi;
10117test -z "$pic_mode" && pic_mode=default
10118
10119# Use C for the default configuration in the libtool script
10120tagname=
10121lt_save_CC="$CC"
10122ac_ext=c
10123ac_cpp='$CPP $CPPFLAGS'
10124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126ac_compiler_gnu=$ac_cv_c_compiler_gnu
10127
10128
10129# Source file extension for C test sources.
10130ac_ext=c
10131
10132# Object file extension for compiled C test sources.
10133objext=o
10134objext=$objext
10135
10136# Code to be used in simple compile tests
10137lt_simple_compile_test_code="int some_variable = 0;\n"
10138
10139# Code to be used in simple link tests
10140lt_simple_link_test_code='int main(){return(0);}\n'
10141
10142
10143# If no C compiler was specified, use CC.
10144LTCC=${LTCC-"$CC"}
10145
10146# If no C compiler flags were specified, use CFLAGS.
10147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10148
10149# Allow CC to be a program name with arguments.
10150compiler=$CC
10151
10152
10153# save warnings/boilerplate of simple test code
10154ac_outfile=conftest.$ac_objext
10155printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10156eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10157_lt_compiler_boilerplate=`cat conftest.err`
10158$rm conftest*
10159
10160ac_outfile=conftest.$ac_objext
10161printf "$lt_simple_link_test_code" >conftest.$ac_ext
10162eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10163_lt_linker_boilerplate=`cat conftest.err`
10164$rm conftest*
10165
10166
10167## CAVEAT EMPTOR:
10168## There is no encapsulation within the following macros, do not change
10169## the running order or otherwise move them around unless you know exactly
10170## what you are doing...
10171
10172lt_prog_compiler_no_builtin_flag=
10173
10174if test "$GCC" = yes; then
10175  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10176
10177
10178echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10179echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
10180if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10181  echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183  lt_cv_prog_compiler_rtti_exceptions=no
10184  ac_outfile=conftest.$ac_objext
10185   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10186   lt_compiler_flag="-fno-rtti -fno-exceptions"
10187   # Insert the option either (1) after the last *FLAGS variable, or
10188   # (2) before a word containing "conftest.", or (3) at the end.
10189   # Note that $ac_compile itself does not contain backslashes and begins
10190   # with a dollar sign (not a hyphen), so the echo should work correctly.
10191   # The option is referenced via a variable to avoid confusing sed.
10192   lt_compile=`echo "$ac_compile" | $SED \
10193   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10194   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10195   -e 's:$: $lt_compiler_flag:'`
10196   (eval echo "\"\$as_me:10198: $lt_compile\"" >&5)
10197   (eval "$lt_compile" 2>conftest.err)
10198   ac_status=$?
10199   cat conftest.err >&5
10200   echo "$as_me:10202: \$? = $ac_status" >&5
10201   if (exit $ac_status) && test -s "$ac_outfile"; then
10202     # The compiler can only warn and ignore the option if not recognized
10203     # So say no if there are warnings other than the usual output.
10204     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10205     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10206     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10207       lt_cv_prog_compiler_rtti_exceptions=yes
10208     fi
10209   fi
10210   $rm conftest*
10211
10212fi
10213echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10214echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
10215
10216if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10217    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10218else
10219    :
10220fi
10221
10222fi
10223
10224lt_prog_compiler_wl=
10225lt_prog_compiler_pic=
10226lt_prog_compiler_static=
10227
10228echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10229echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10230
10231  if test "$GCC" = yes; then
10232    lt_prog_compiler_wl='-Wl,'
10233    lt_prog_compiler_static='-static'
10234
10235    case $host_os in
10236      aix*)
10237      # All AIX code is PIC.
10238      if test "$host_cpu" = ia64; then
10239	# AIX 5 now supports IA64 processor
10240	lt_prog_compiler_static='-Bstatic'
10241      fi
10242      ;;
10243
10244    amigaos*)
10245      # FIXME: we need at least 68020 code to build shared libraries, but
10246      # adding the `-m68020' flag to GCC prevents building anything better,
10247      # like `-m68040'.
10248      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10249      ;;
10250
10251    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10252      # PIC is the default for these OSes.
10253      ;;
10254
10255    mingw* | pw32* | os2*)
10256      # This hack is so that the source file can tell whether it is being
10257      # built for inclusion in a dll (and should export symbols for example).
10258      lt_prog_compiler_pic='-DDLL_EXPORT'
10259      ;;
10260
10261    darwin* | rhapsody*)
10262      # PIC is the default on this platform
10263      # Common symbols not allowed in MH_DYLIB files
10264      lt_prog_compiler_pic='-fno-common'
10265      ;;
10266
10267    interix3*)
10268      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10269      # Instead, we relocate shared libraries at runtime.
10270      ;;
10271
10272    msdosdjgpp*)
10273      # Just because we use GCC doesn't mean we suddenly get shared libraries
10274      # on systems that don't support them.
10275      lt_prog_compiler_can_build_shared=no
10276      enable_shared=no
10277      ;;
10278
10279    sysv4*MP*)
10280      if test -d /usr/nec; then
10281	lt_prog_compiler_pic=-Kconform_pic
10282      fi
10283      ;;
10284
10285    hpux*)
10286      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10287      # not for PA HP-UX.
10288      case $host_cpu in
10289      hppa*64*|ia64*)
10290	# +Z the default
10291	;;
10292      *)
10293	lt_prog_compiler_pic='-fPIC'
10294	;;
10295      esac
10296      ;;
10297
10298    *)
10299      lt_prog_compiler_pic='-fPIC'
10300      ;;
10301    esac
10302  else
10303    # PORTME Check for flag to pass linker flags through the system compiler.
10304    case $host_os in
10305    aix*)
10306      lt_prog_compiler_wl='-Wl,'
10307      if test "$host_cpu" = ia64; then
10308	# AIX 5 now supports IA64 processor
10309	lt_prog_compiler_static='-Bstatic'
10310      else
10311	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10312      fi
10313      ;;
10314      darwin*)
10315        # PIC is the default on this platform
10316        # Common symbols not allowed in MH_DYLIB files
10317       case $cc_basename in
10318         xlc*)
10319         lt_prog_compiler_pic='-qnocommon'
10320         lt_prog_compiler_wl='-Wl,'
10321         ;;
10322       esac
10323       ;;
10324
10325    mingw* | pw32* | os2*)
10326      # This hack is so that the source file can tell whether it is being
10327      # built for inclusion in a dll (and should export symbols for example).
10328      lt_prog_compiler_pic='-DDLL_EXPORT'
10329      ;;
10330
10331    hpux9* | hpux10* | hpux11*)
10332      lt_prog_compiler_wl='-Wl,'
10333      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10334      # not for PA HP-UX.
10335      case $host_cpu in
10336      hppa*64*|ia64*)
10337	# +Z the default
10338	;;
10339      *)
10340	lt_prog_compiler_pic='+Z'
10341	;;
10342      esac
10343      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10344      lt_prog_compiler_static='${wl}-a ${wl}archive'
10345      ;;
10346
10347    irix5* | irix6* | nonstopux*)
10348      lt_prog_compiler_wl='-Wl,'
10349      # PIC (with -KPIC) is the default.
10350      lt_prog_compiler_static='-non_shared'
10351      ;;
10352
10353    newsos6)
10354      lt_prog_compiler_pic='-KPIC'
10355      lt_prog_compiler_static='-Bstatic'
10356      ;;
10357
10358    linux*)
10359      case $cc_basename in
10360      icc* | ecc*)
10361	lt_prog_compiler_wl='-Wl,'
10362	lt_prog_compiler_pic='-KPIC'
10363	lt_prog_compiler_static='-static'
10364        ;;
10365      pgcc* | pgf77* | pgf90* | pgf95*)
10366        # Portland Group compilers (*not* the Pentium gcc compiler,
10367	# which looks to be a dead project)
10368	lt_prog_compiler_wl='-Wl,'
10369	lt_prog_compiler_pic='-fpic'
10370	lt_prog_compiler_static='-Bstatic'
10371        ;;
10372      ccc*)
10373        lt_prog_compiler_wl='-Wl,'
10374        # All Alpha code is PIC.
10375        lt_prog_compiler_static='-non_shared'
10376        ;;
10377      esac
10378      ;;
10379
10380    osf3* | osf4* | osf5*)
10381      lt_prog_compiler_wl='-Wl,'
10382      # All OSF/1 code is PIC.
10383      lt_prog_compiler_static='-non_shared'
10384      ;;
10385
10386    solaris*)
10387      lt_prog_compiler_pic='-KPIC'
10388      lt_prog_compiler_static='-Bstatic'
10389      case $cc_basename in
10390      f77* | f90* | f95*)
10391	lt_prog_compiler_wl='-Qoption ld ';;
10392      *)
10393	lt_prog_compiler_wl='-Wl,';;
10394      esac
10395      ;;
10396
10397    sunos4*)
10398      lt_prog_compiler_wl='-Qoption ld '
10399      lt_prog_compiler_pic='-PIC'
10400      lt_prog_compiler_static='-Bstatic'
10401      ;;
10402
10403    sysv4 | sysv4.2uw2* | sysv4.3*)
10404      lt_prog_compiler_wl='-Wl,'
10405      lt_prog_compiler_pic='-KPIC'
10406      lt_prog_compiler_static='-Bstatic'
10407      ;;
10408
10409    sysv4*MP*)
10410      if test -d /usr/nec ;then
10411	lt_prog_compiler_pic='-Kconform_pic'
10412	lt_prog_compiler_static='-Bstatic'
10413      fi
10414      ;;
10415
10416    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10417      lt_prog_compiler_wl='-Wl,'
10418      lt_prog_compiler_pic='-KPIC'
10419      lt_prog_compiler_static='-Bstatic'
10420      ;;
10421
10422    unicos*)
10423      lt_prog_compiler_wl='-Wl,'
10424      lt_prog_compiler_can_build_shared=no
10425      ;;
10426
10427    uts4*)
10428      lt_prog_compiler_pic='-pic'
10429      lt_prog_compiler_static='-Bstatic'
10430      ;;
10431
10432    *)
10433      lt_prog_compiler_can_build_shared=no
10434      ;;
10435    esac
10436  fi
10437
10438echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10439echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10440
10441#
10442# Check to make sure the PIC flag actually works.
10443#
10444if test -n "$lt_prog_compiler_pic"; then
10445
10446echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10447echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10448if test "${lt_prog_compiler_pic_works+set}" = set; then
10449  echo $ECHO_N "(cached) $ECHO_C" >&6
10450else
10451  lt_prog_compiler_pic_works=no
10452  ac_outfile=conftest.$ac_objext
10453   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10454   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10455   # Insert the option either (1) after the last *FLAGS variable, or
10456   # (2) before a word containing "conftest.", or (3) at the end.
10457   # Note that $ac_compile itself does not contain backslashes and begins
10458   # with a dollar sign (not a hyphen), so the echo should work correctly.
10459   # The option is referenced via a variable to avoid confusing sed.
10460   lt_compile=`echo "$ac_compile" | $SED \
10461   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10462   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10463   -e 's:$: $lt_compiler_flag:'`
10464   (eval echo "\"\$as_me:10466: $lt_compile\"" >&5)
10465   (eval "$lt_compile" 2>conftest.err)
10466   ac_status=$?
10467   cat conftest.err >&5
10468   echo "$as_me:10470: \$? = $ac_status" >&5
10469   if (exit $ac_status) && test -s "$ac_outfile"; then
10470     # The compiler can only warn and ignore the option if not recognized
10471     # So say no if there are warnings other than the usual output.
10472     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10473     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10474     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10475       lt_prog_compiler_pic_works=yes
10476     fi
10477   fi
10478   $rm conftest*
10479
10480fi
10481echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10482echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10483
10484if test x"$lt_prog_compiler_pic_works" = xyes; then
10485    case $lt_prog_compiler_pic in
10486     "" | " "*) ;;
10487     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10488     esac
10489else
10490    lt_prog_compiler_pic=
10491     lt_prog_compiler_can_build_shared=no
10492fi
10493
10494fi
10495case $host_os in
10496  # For platforms which do not support PIC, -DPIC is meaningless:
10497  *djgpp*)
10498    lt_prog_compiler_pic=
10499    ;;
10500  *)
10501    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10502    ;;
10503esac
10504
10505#
10506# Check to make sure the static flag actually works.
10507#
10508wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10509echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10510echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10511if test "${lt_prog_compiler_static_works+set}" = set; then
10512  echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514  lt_prog_compiler_static_works=no
10515   save_LDFLAGS="$LDFLAGS"
10516   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10517   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10518   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10519     # The linker can only warn and ignore the option if not recognized
10520     # So say no if there are warnings
10521     if test -s conftest.err; then
10522       # Append any errors to the config.log.
10523       cat conftest.err 1>&5
10524       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10525       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10526       if diff conftest.exp conftest.er2 >/dev/null; then
10527         lt_prog_compiler_static_works=yes
10528       fi
10529     else
10530       lt_prog_compiler_static_works=yes
10531     fi
10532   fi
10533   $rm conftest*
10534   LDFLAGS="$save_LDFLAGS"
10535
10536fi
10537echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10538echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10539
10540if test x"$lt_prog_compiler_static_works" = xyes; then
10541    :
10542else
10543    lt_prog_compiler_static=
10544fi
10545
10546
10547echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10548echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10549if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10550  echo $ECHO_N "(cached) $ECHO_C" >&6
10551else
10552  lt_cv_prog_compiler_c_o=no
10553   $rm -r conftest 2>/dev/null
10554   mkdir conftest
10555   cd conftest
10556   mkdir out
10557   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10558
10559   lt_compiler_flag="-o out/conftest2.$ac_objext"
10560   # Insert the option either (1) after the last *FLAGS variable, or
10561   # (2) before a word containing "conftest.", or (3) at the end.
10562   # Note that $ac_compile itself does not contain backslashes and begins
10563   # with a dollar sign (not a hyphen), so the echo should work correctly.
10564   lt_compile=`echo "$ac_compile" | $SED \
10565   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10566   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10567   -e 's:$: $lt_compiler_flag:'`
10568   (eval echo "\"\$as_me:10570: $lt_compile\"" >&5)
10569   (eval "$lt_compile" 2>out/conftest.err)
10570   ac_status=$?
10571   cat out/conftest.err >&5
10572   echo "$as_me:10574: \$? = $ac_status" >&5
10573   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10574   then
10575     # The compiler can only warn and ignore the option if not recognized
10576     # So say no if there are warnings
10577     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10578     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10579     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10580       lt_cv_prog_compiler_c_o=yes
10581     fi
10582   fi
10583   chmod u+w . 2>&5
10584   $rm conftest*
10585   # SGI C++ compiler will create directory out/ii_files/ for
10586   # template instantiation
10587   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10588   $rm out/* && rmdir out
10589   cd ..
10590   rmdir conftest
10591   $rm conftest*
10592
10593fi
10594echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10595echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10596
10597
10598hard_links="nottested"
10599if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10600  # do not overwrite the value of need_locks provided by the user
10601  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10602echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10603  hard_links=yes
10604  $rm conftest*
10605  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10606  touch conftest.a
10607  ln conftest.a conftest.b 2>&5 || hard_links=no
10608  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10609  echo "$as_me:$LINENO: result: $hard_links" >&5
10610echo "${ECHO_T}$hard_links" >&6
10611  if test "$hard_links" = no; then
10612    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10613echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10614    need_locks=warn
10615  fi
10616else
10617  need_locks=no
10618fi
10619
10620echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10621echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10622
10623  runpath_var=
10624  allow_undefined_flag=
10625  enable_shared_with_static_runtimes=no
10626  archive_cmds=
10627  archive_expsym_cmds=
10628  old_archive_From_new_cmds=
10629  old_archive_from_expsyms_cmds=
10630  export_dynamic_flag_spec=
10631  whole_archive_flag_spec=
10632  thread_safe_flag_spec=
10633  hardcode_libdir_flag_spec=
10634  hardcode_libdir_flag_spec_ld=
10635  hardcode_libdir_separator=
10636  hardcode_direct=no
10637  hardcode_minus_L=no
10638  hardcode_shlibpath_var=unsupported
10639  link_all_deplibs=unknown
10640  hardcode_automatic=no
10641  module_cmds=
10642  module_expsym_cmds=
10643  always_export_symbols=no
10644  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10645  # include_expsyms should be a list of space-separated symbols to be *always*
10646  # included in the symbol list
10647  include_expsyms=
10648  # exclude_expsyms can be an extended regexp of symbols to exclude
10649  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10650  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10651  # as well as any symbol that contains `d'.
10652  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10653  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10654  # platforms (ab)use it in PIC code, but their linkers get confused if
10655  # the symbol is explicitly referenced.  Since portable code cannot
10656  # rely on this symbol name, it's probably fine to never include it in
10657  # preloaded symbol tables.
10658  extract_expsyms_cmds=
10659  # Just being paranoid about ensuring that cc_basename is set.
10660  for cc_temp in $compiler""; do
10661  case $cc_temp in
10662    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10663    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10664    \-*) ;;
10665    *) break;;
10666  esac
10667done
10668cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10669
10670  case $host_os in
10671  cygwin* | mingw* | pw32*)
10672    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10673    # When not using gcc, we currently assume that we are using
10674    # Microsoft Visual C++.
10675    if test "$GCC" != yes; then
10676      with_gnu_ld=no
10677    fi
10678    ;;
10679  interix*)
10680    # we just hope/assume this is gcc and not c89 (= MSVC++)
10681    with_gnu_ld=yes
10682    ;;
10683  openbsd*)
10684    with_gnu_ld=no
10685    ;;
10686  esac
10687
10688  ld_shlibs=yes
10689  if test "$with_gnu_ld" = yes; then
10690    # If archive_cmds runs LD, not CC, wlarc should be empty
10691    wlarc='${wl}'
10692
10693    # Set some defaults for GNU ld with shared library support. These
10694    # are reset later if shared libraries are not supported. Putting them
10695    # here allows them to be overridden if necessary.
10696    runpath_var=LD_RUN_PATH
10697    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10698    export_dynamic_flag_spec='${wl}--export-dynamic'
10699    # ancient GNU ld didn't support --whole-archive et. al.
10700    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10701	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10702      else
10703  	whole_archive_flag_spec=
10704    fi
10705    supports_anon_versioning=no
10706    case `$LD -v 2>/dev/null` in
10707      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10708      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10709      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10710      *\ 2.11.*) ;; # other 2.11 versions
10711      *) supports_anon_versioning=yes ;;
10712    esac
10713
10714    # See if GNU ld supports shared libraries.
10715    case $host_os in
10716    aix3* | aix4* | aix5*)
10717      # On AIX/PPC, the GNU linker is very broken
10718      if test "$host_cpu" != ia64; then
10719	ld_shlibs=no
10720	cat <<EOF 1>&2
10721
10722*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10723*** to be unable to reliably create shared libraries on AIX.
10724*** Therefore, libtool is disabling shared libraries support.  If you
10725*** really care for shared libraries, you may want to modify your PATH
10726*** so that a non-GNU linker is found, and then restart.
10727
10728EOF
10729      fi
10730      ;;
10731
10732    amigaos*)
10733      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)'
10734      hardcode_libdir_flag_spec='-L$libdir'
10735      hardcode_minus_L=yes
10736
10737      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10738      # that the semantics of dynamic libraries on AmigaOS, at least up
10739      # to version 4, is to share data among multiple programs linked
10740      # with the same dynamic library.  Since this doesn't match the
10741      # behavior of shared libraries on other platforms, we can't use
10742      # them.
10743      ld_shlibs=no
10744      ;;
10745
10746    beos*)
10747      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10748	allow_undefined_flag=unsupported
10749	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10750	# support --undefined.  This deserves some investigation.  FIXME
10751	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10752      else
10753	ld_shlibs=no
10754      fi
10755      ;;
10756
10757    cygwin* | mingw* | pw32*)
10758      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10759      # as there is no search path for DLLs.
10760      hardcode_libdir_flag_spec='-L$libdir'
10761      allow_undefined_flag=unsupported
10762      always_export_symbols=no
10763      enable_shared_with_static_runtimes=yes
10764      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10765
10766      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10767        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10768	# If the export-symbols file already is a .def file (1st line
10769	# is EXPORTS), use it as is; otherwise, prepend...
10770	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10771	  cp $export_symbols $output_objdir/$soname.def;
10772	else
10773	  echo EXPORTS > $output_objdir/$soname.def;
10774	  cat $export_symbols >> $output_objdir/$soname.def;
10775	fi~
10776	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10777      else
10778	ld_shlibs=no
10779      fi
10780      ;;
10781
10782    interix3*)
10783      hardcode_direct=no
10784      hardcode_shlibpath_var=no
10785      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10786      export_dynamic_flag_spec='${wl}-E'
10787      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10788      # Instead, shared libraries are loaded at an image base (0x10000000 by
10789      # default) and relocated if they conflict, which is a slow very memory
10790      # consuming and fragmenting process.  To avoid this, we pick a random,
10791      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10792      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10793      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10794      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'
10795      ;;
10796
10797    linux*)
10798      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10799	tmp_addflag=
10800	case $cc_basename,$host_cpu in
10801	pgcc*)				# Portland Group C compiler
10802	  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'
10803	  tmp_addflag=' $pic_flag'
10804	  ;;
10805	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10806	  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'
10807	  tmp_addflag=' $pic_flag -Mnomain' ;;
10808	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
10809	  tmp_addflag=' -i_dynamic' ;;
10810	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10811	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10812	ifc* | ifort*)			# Intel Fortran compiler
10813	  tmp_addflag=' -nofor_main' ;;
10814	esac
10815	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10816
10817	if test $supports_anon_versioning = yes; then
10818	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10819  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10820  $echo "local: *; };" >> $output_objdir/$libname.ver~
10821	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10822	fi
10823      else
10824	ld_shlibs=no
10825      fi
10826      ;;
10827
10828    netbsd*)
10829      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10830	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10831	wlarc=
10832      else
10833	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10834	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10835      fi
10836      ;;
10837
10838    solaris*)
10839      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10840	ld_shlibs=no
10841	cat <<EOF 1>&2
10842
10843*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10844*** create shared libraries on Solaris systems.  Therefore, libtool
10845*** is disabling shared libraries support.  We urge you to upgrade GNU
10846*** binutils to release 2.9.1 or newer.  Another option is to modify
10847*** your PATH or compiler configuration so that the native linker is
10848*** used, and then restart.
10849
10850EOF
10851      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10852	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10853	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10854      else
10855	ld_shlibs=no
10856      fi
10857      ;;
10858
10859    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10860      case `$LD -v 2>&1` in
10861        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10862	ld_shlibs=no
10863	cat <<_LT_EOF 1>&2
10864
10865*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10866*** reliably create shared libraries on SCO systems.  Therefore, libtool
10867*** is disabling shared libraries support.  We urge you to upgrade GNU
10868*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10869*** your PATH or compiler configuration so that the native linker is
10870*** used, and then restart.
10871
10872_LT_EOF
10873	;;
10874	*)
10875	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10876	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10877	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10878	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10879	  else
10880	    ld_shlibs=no
10881	  fi
10882	;;
10883      esac
10884      ;;
10885
10886    sunos4*)
10887      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10888      wlarc=
10889      hardcode_direct=yes
10890      hardcode_shlibpath_var=no
10891      ;;
10892
10893    *)
10894      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10895	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10896	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10897      else
10898	ld_shlibs=no
10899      fi
10900      ;;
10901    esac
10902
10903    if test "$ld_shlibs" = no; then
10904      runpath_var=
10905      hardcode_libdir_flag_spec=
10906      export_dynamic_flag_spec=
10907      whole_archive_flag_spec=
10908    fi
10909  else
10910    # PORTME fill in a description of your system's linker (not GNU ld)
10911    case $host_os in
10912    aix3*)
10913      allow_undefined_flag=unsupported
10914      always_export_symbols=yes
10915      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'
10916      # Note: this linker hardcodes the directories in LIBPATH if there
10917      # are no directories specified by -L.
10918      hardcode_minus_L=yes
10919      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10920	# Neither direct hardcoding nor static linking is supported with a
10921	# broken collect2.
10922	hardcode_direct=unsupported
10923      fi
10924      ;;
10925
10926    aix4* | aix5*)
10927      if test "$host_cpu" = ia64; then
10928	# On IA64, the linker does run time linking by default, so we don't
10929	# have to do anything special.
10930	aix_use_runtimelinking=no
10931	exp_sym_flag='-Bexport'
10932	no_entry_flag=""
10933      else
10934	# If we're using GNU nm, then we don't want the "-C" option.
10935	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10936	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10937	  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'
10938	else
10939	  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'
10940	fi
10941	aix_use_runtimelinking=no
10942
10943	# Test if we are trying to use run time linking or normal
10944	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10945	# need to do runtime linking.
10946	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10947	  for ld_flag in $LDFLAGS; do
10948  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10949  	    aix_use_runtimelinking=yes
10950  	    break
10951  	  fi
10952	  done
10953	  ;;
10954	esac
10955
10956	exp_sym_flag='-bexport'
10957	no_entry_flag='-bnoentry'
10958      fi
10959
10960      # When large executables or shared objects are built, AIX ld can
10961      # have problems creating the table of contents.  If linking a library
10962      # or program results in "error TOC overflow" add -mminimal-toc to
10963      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10964      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10965
10966      archive_cmds=''
10967      hardcode_direct=yes
10968      hardcode_libdir_separator=':'
10969      link_all_deplibs=yes
10970
10971      if test "$GCC" = yes; then
10972	case $host_os in aix4.[012]|aix4.[012].*)
10973	# We only want to do this on AIX 4.2 and lower, the check
10974	# below for broken collect2 doesn't work under 4.3+
10975	  collect2name=`${CC} -print-prog-name=collect2`
10976	  if test -f "$collect2name" && \
10977  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10978	  then
10979  	  # We have reworked collect2
10980  	  hardcode_direct=yes
10981	  else
10982  	  # We have old collect2
10983  	  hardcode_direct=unsupported
10984  	  # It fails to find uninstalled libraries when the uninstalled
10985  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10986  	  # to unsupported forces relinking
10987  	  hardcode_minus_L=yes
10988  	  hardcode_libdir_flag_spec='-L$libdir'
10989  	  hardcode_libdir_separator=
10990	  fi
10991	  ;;
10992	esac
10993	shared_flag='-shared'
10994	if test "$aix_use_runtimelinking" = yes; then
10995	  shared_flag="$shared_flag "'${wl}-G'
10996	fi
10997      else
10998	# not using gcc
10999	if test "$host_cpu" = ia64; then
11000  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11001  	# chokes on -Wl,-G. The following line is correct:
11002	  shared_flag='-G'
11003	else
11004	  if test "$aix_use_runtimelinking" = yes; then
11005	    shared_flag='${wl}-G'
11006	  else
11007	    shared_flag='${wl}-bM:SRE'
11008	  fi
11009	fi
11010      fi
11011
11012      # It seems that -bexpall does not export symbols beginning with
11013      # underscore (_), so it is better to generate a list of symbols to export.
11014      always_export_symbols=yes
11015      if test "$aix_use_runtimelinking" = yes; then
11016	# Warning - without using the other runtime loading flags (-brtl),
11017	# -berok will link without error, but may produce a broken library.
11018	allow_undefined_flag='-berok'
11019       # Determine the default libpath from the value encoded in an empty executable.
11020       cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h.  */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h.  */
11026
11027int
11028main ()
11029{
11030
11031  ;
11032  return 0;
11033}
11034_ACEOF
11035rm -f conftest.$ac_objext conftest$ac_exeext
11036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037  (eval $ac_link) 2>conftest.er1
11038  ac_status=$?
11039  grep -v '^ *+' conftest.er1 >conftest.err
11040  rm -f conftest.er1
11041  cat conftest.err >&5
11042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043  (exit $ac_status); } &&
11044	 { ac_try='test -z "$ac_c_werror_flag"
11045			 || test ! -s conftest.err'
11046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047  (eval $ac_try) 2>&5
11048  ac_status=$?
11049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050  (exit $ac_status); }; } &&
11051	 { ac_try='test -s conftest$ac_exeext'
11052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053  (eval $ac_try) 2>&5
11054  ac_status=$?
11055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056  (exit $ac_status); }; }; then
11057
11058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11059}'`
11060# Check for a 64-bit object if we didn't find anything.
11061if 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; }
11062}'`; fi
11063else
11064  echo "$as_me: failed program was:" >&5
11065sed 's/^/| /' conftest.$ac_ext >&5
11066
11067fi
11068rm -f conftest.err conftest.$ac_objext \
11069      conftest$ac_exeext conftest.$ac_ext
11070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11071
11072       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11073	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"
11074       else
11075	if test "$host_cpu" = ia64; then
11076	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11077	  allow_undefined_flag="-z nodefs"
11078	  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"
11079	else
11080	 # Determine the default libpath from the value encoded in an empty executable.
11081	 cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h.  */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h.  */
11087
11088int
11089main ()
11090{
11091
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096rm -f conftest.$ac_objext conftest$ac_exeext
11097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11098  (eval $ac_link) 2>conftest.er1
11099  ac_status=$?
11100  grep -v '^ *+' conftest.er1 >conftest.err
11101  rm -f conftest.er1
11102  cat conftest.err >&5
11103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104  (exit $ac_status); } &&
11105	 { ac_try='test -z "$ac_c_werror_flag"
11106			 || test ! -s conftest.err'
11107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108  (eval $ac_try) 2>&5
11109  ac_status=$?
11110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111  (exit $ac_status); }; } &&
11112	 { ac_try='test -s conftest$ac_exeext'
11113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114  (eval $ac_try) 2>&5
11115  ac_status=$?
11116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117  (exit $ac_status); }; }; then
11118
11119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11120}'`
11121# Check for a 64-bit object if we didn't find anything.
11122if 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; }
11123}'`; fi
11124else
11125  echo "$as_me: failed program was:" >&5
11126sed 's/^/| /' conftest.$ac_ext >&5
11127
11128fi
11129rm -f conftest.err conftest.$ac_objext \
11130      conftest$ac_exeext conftest.$ac_ext
11131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11132
11133	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11134	  # Warning - without using the other run time loading flags,
11135	  # -berok will link without error, but may produce a broken library.
11136	  no_undefined_flag=' ${wl}-bernotok'
11137	  allow_undefined_flag=' ${wl}-berok'
11138	  # Exported symbols can be pulled into shared objects from archives
11139	  whole_archive_flag_spec='$convenience'
11140	  archive_cmds_need_lc=yes
11141	  # This is similar to how AIX traditionally builds its shared libraries.
11142	  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'
11143	fi
11144      fi
11145      ;;
11146
11147    amigaos*)
11148      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)'
11149      hardcode_libdir_flag_spec='-L$libdir'
11150      hardcode_minus_L=yes
11151      # see comment about different semantics on the GNU ld section
11152      ld_shlibs=no
11153      ;;
11154
11155    bsdi[45]*)
11156      export_dynamic_flag_spec=-rdynamic
11157      ;;
11158
11159    cygwin* | mingw* | pw32*)
11160      # When not using gcc, we currently assume that we are using
11161      # Microsoft Visual C++.
11162      # hardcode_libdir_flag_spec is actually meaningless, as there is
11163      # no search path for DLLs.
11164      hardcode_libdir_flag_spec=' '
11165      allow_undefined_flag=unsupported
11166      # Tell ltmain to make .lib files, not .a files.
11167      libext=lib
11168      # Tell ltmain to make .dll files, not .so files.
11169      shrext_cmds=".dll"
11170      # FIXME: Setting linknames here is a bad hack.
11171      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11172      # The linker will automatically build a .lib file if we build a DLL.
11173      old_archive_From_new_cmds='true'
11174      # FIXME: Should let the user specify the lib program.
11175      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11176      fix_srcfile_path='`cygpath -w "$srcfile"`'
11177      enable_shared_with_static_runtimes=yes
11178      ;;
11179
11180    darwin* | rhapsody*)
11181      case $host_os in
11182        rhapsody* | darwin1.[012])
11183         allow_undefined_flag='${wl}-undefined ${wl}suppress'
11184         ;;
11185       *) # Darwin 1.3 on
11186         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11187           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11188         else
11189           case ${MACOSX_DEPLOYMENT_TARGET} in
11190             10.[012])
11191               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11192               ;;
11193             10.*)
11194               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11195               ;;
11196           esac
11197         fi
11198         ;;
11199      esac
11200      archive_cmds_need_lc=no
11201      hardcode_direct=no
11202      hardcode_automatic=yes
11203      hardcode_shlibpath_var=unsupported
11204      whole_archive_flag_spec=''
11205      link_all_deplibs=yes
11206    if test "$GCC" = yes ; then
11207    	output_verbose_link_cmd='echo'
11208        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11209      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11210      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11211      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}'
11212      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}'
11213    else
11214      case $cc_basename in
11215        xlc*)
11216         output_verbose_link_cmd='echo'
11217         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11218         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11219          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11220         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}'
11221          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}'
11222          ;;
11223       *)
11224         ld_shlibs=no
11225          ;;
11226      esac
11227    fi
11228      ;;
11229
11230    dgux*)
11231      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11232      hardcode_libdir_flag_spec='-L$libdir'
11233      hardcode_shlibpath_var=no
11234      ;;
11235
11236    freebsd1*)
11237      ld_shlibs=no
11238      ;;
11239
11240    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11241    # support.  Future versions do this automatically, but an explicit c++rt0.o
11242    # does not break anything, and helps significantly (at the cost of a little
11243    # extra space).
11244    freebsd2.2*)
11245      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11246      hardcode_libdir_flag_spec='-R$libdir'
11247      hardcode_direct=yes
11248      hardcode_shlibpath_var=no
11249      ;;
11250
11251    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11252    freebsd2*)
11253      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11254      hardcode_direct=yes
11255      hardcode_minus_L=yes
11256      hardcode_shlibpath_var=no
11257      ;;
11258
11259    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11260    freebsd* | kfreebsd*-gnu | dragonfly*)
11261      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11262      hardcode_libdir_flag_spec='-R$libdir'
11263      hardcode_direct=yes
11264      hardcode_shlibpath_var=no
11265      ;;
11266
11267    hpux9*)
11268      if test "$GCC" = yes; then
11269	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'
11270      else
11271	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'
11272      fi
11273      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11274      hardcode_libdir_separator=:
11275      hardcode_direct=yes
11276
11277      # hardcode_minus_L: Not really in the search PATH,
11278      # but as the default location of the library.
11279      hardcode_minus_L=yes
11280      export_dynamic_flag_spec='${wl}-E'
11281      ;;
11282
11283    hpux10*)
11284      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11285	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11286      else
11287	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11288      fi
11289      if test "$with_gnu_ld" = no; then
11290	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11291	hardcode_libdir_separator=:
11292
11293	hardcode_direct=yes
11294	export_dynamic_flag_spec='${wl}-E'
11295
11296	# hardcode_minus_L: Not really in the search PATH,
11297	# but as the default location of the library.
11298	hardcode_minus_L=yes
11299      fi
11300      ;;
11301
11302    hpux11*)
11303      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11304	case $host_cpu in
11305	hppa*64*)
11306	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11307	  ;;
11308	ia64*)
11309	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11310	  ;;
11311	*)
11312	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11313	  ;;
11314	esac
11315      else
11316	case $host_cpu in
11317	hppa*64*)
11318	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11319	  ;;
11320	ia64*)
11321	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11322	  ;;
11323	*)
11324	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11325	  ;;
11326	esac
11327      fi
11328      if test "$with_gnu_ld" = no; then
11329	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11330	hardcode_libdir_separator=:
11331
11332	case $host_cpu in
11333	hppa*64*|ia64*)
11334	  hardcode_libdir_flag_spec_ld='+b $libdir'
11335	  hardcode_direct=no
11336	  hardcode_shlibpath_var=no
11337	  ;;
11338	*)
11339	  hardcode_direct=yes
11340	  export_dynamic_flag_spec='${wl}-E'
11341
11342	  # hardcode_minus_L: Not really in the search PATH,
11343	  # but as the default location of the library.
11344	  hardcode_minus_L=yes
11345	  ;;
11346	esac
11347      fi
11348      ;;
11349
11350    irix5* | irix6* | nonstopux*)
11351      if test "$GCC" = yes; then
11352	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'
11353      else
11354	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'
11355	hardcode_libdir_flag_spec_ld='-rpath $libdir'
11356      fi
11357      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11358      hardcode_libdir_separator=:
11359      link_all_deplibs=yes
11360      ;;
11361
11362    netbsd*)
11363      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11364	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11365      else
11366	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11367      fi
11368      hardcode_libdir_flag_spec='-R$libdir'
11369      hardcode_direct=yes
11370      hardcode_shlibpath_var=no
11371      ;;
11372
11373    newsos6)
11374      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11375      hardcode_direct=yes
11376      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11377      hardcode_libdir_separator=:
11378      hardcode_shlibpath_var=no
11379      ;;
11380
11381    openbsd*)
11382      hardcode_direct=yes
11383      hardcode_shlibpath_var=no
11384      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11385	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11386	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11387	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11388	export_dynamic_flag_spec='${wl}-E'
11389      else
11390       case $host_os in
11391	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11392	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11393	   hardcode_libdir_flag_spec='-R$libdir'
11394	   ;;
11395	 *)
11396	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11397	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11398	   ;;
11399       esac
11400      fi
11401      ;;
11402
11403    os2*)
11404      hardcode_libdir_flag_spec='-L$libdir'
11405      hardcode_minus_L=yes
11406      allow_undefined_flag=unsupported
11407      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'
11408      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11409      ;;
11410
11411    osf3*)
11412      if test "$GCC" = yes; then
11413	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11414	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'
11415      else
11416	allow_undefined_flag=' -expect_unresolved \*'
11417	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'
11418      fi
11419      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11420      hardcode_libdir_separator=:
11421      ;;
11422
11423    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11424      if test "$GCC" = yes; then
11425	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11426	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'
11427	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11428      else
11429	allow_undefined_flag=' -expect_unresolved \*'
11430	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'
11431	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11432	$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'
11433
11434	# Both c and cxx compiler support -rpath directly
11435	hardcode_libdir_flag_spec='-rpath $libdir'
11436      fi
11437      hardcode_libdir_separator=:
11438      ;;
11439
11440    solaris*)
11441      no_undefined_flag=' -z text'
11442      if test "$GCC" = yes; then
11443	wlarc='${wl}'
11444	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11445	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11446	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11447      else
11448	wlarc=''
11449	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11450	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11451  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11452      fi
11453      hardcode_libdir_flag_spec='-R$libdir'
11454      hardcode_shlibpath_var=no
11455      case $host_os in
11456      solaris2.[0-5] | solaris2.[0-5].*) ;;
11457      *)
11458 	# The compiler driver will combine linker options so we
11459 	# cannot just pass the convience library names through
11460 	# without $wl, iff we do not link with $LD.
11461 	# Luckily, gcc supports the same syntax we need for Sun Studio.
11462 	# Supported since Solaris 2.6 (maybe 2.5.1?)
11463 	case $wlarc in
11464 	'')
11465 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11466 	*)
11467 	  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' ;;
11468 	esac ;;
11469      esac
11470      link_all_deplibs=yes
11471      ;;
11472
11473    sunos4*)
11474      if test "x$host_vendor" = xsequent; then
11475	# Use $CC to link under sequent, because it throws in some extra .o
11476	# files that make .init and .fini sections work.
11477	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11478      else
11479	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11480      fi
11481      hardcode_libdir_flag_spec='-L$libdir'
11482      hardcode_direct=yes
11483      hardcode_minus_L=yes
11484      hardcode_shlibpath_var=no
11485      ;;
11486
11487    sysv4)
11488      case $host_vendor in
11489	sni)
11490	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11491	  hardcode_direct=yes # is this really true???
11492	;;
11493	siemens)
11494	  ## LD is ld it makes a PLAMLIB
11495	  ## CC just makes a GrossModule.
11496	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11497	  reload_cmds='$CC -r -o $output$reload_objs'
11498	  hardcode_direct=no
11499        ;;
11500	motorola)
11501	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11502	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11503	;;
11504      esac
11505      runpath_var='LD_RUN_PATH'
11506      hardcode_shlibpath_var=no
11507      ;;
11508
11509    sysv4.3*)
11510      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511      hardcode_shlibpath_var=no
11512      export_dynamic_flag_spec='-Bexport'
11513      ;;
11514
11515    sysv4*MP*)
11516      if test -d /usr/nec; then
11517	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11518	hardcode_shlibpath_var=no
11519	runpath_var=LD_RUN_PATH
11520	hardcode_runpath_var=yes
11521	ld_shlibs=yes
11522      fi
11523      ;;
11524
11525    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
11526      no_undefined_flag='${wl}-z,text'
11527      archive_cmds_need_lc=no
11528      hardcode_shlibpath_var=no
11529      runpath_var='LD_RUN_PATH'
11530
11531      if test "$GCC" = yes; then
11532	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11533	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11534      else
11535	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11536	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11537      fi
11538      ;;
11539
11540    sysv5* | sco3.2v5* | sco5v6*)
11541      # Note: We can NOT use -z defs as we might desire, because we do not
11542      # link with -lc, and that would cause any symbols used from libc to
11543      # always be unresolved, which means just about no library would
11544      # ever link correctly.  If we're not using GNU ld we use -z text
11545      # though, which does catch some bad symbols but isn't as heavy-handed
11546      # as -z defs.
11547      no_undefined_flag='${wl}-z,text'
11548      allow_undefined_flag='${wl}-z,nodefs'
11549      archive_cmds_need_lc=no
11550      hardcode_shlibpath_var=no
11551      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11552      hardcode_libdir_separator=':'
11553      link_all_deplibs=yes
11554      export_dynamic_flag_spec='${wl}-Bexport'
11555      runpath_var='LD_RUN_PATH'
11556
11557      if test "$GCC" = yes; then
11558	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11559	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11560      else
11561	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11562	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11563      fi
11564      ;;
11565
11566    uts4*)
11567      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11568      hardcode_libdir_flag_spec='-L$libdir'
11569      hardcode_shlibpath_var=no
11570      ;;
11571
11572    *)
11573      ld_shlibs=no
11574      ;;
11575    esac
11576  fi
11577
11578echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11579echo "${ECHO_T}$ld_shlibs" >&6
11580test "$ld_shlibs" = no && can_build_shared=no
11581
11582#
11583# Do we need to explicitly link libc?
11584#
11585case "x$archive_cmds_need_lc" in
11586x|xyes)
11587  # Assume -lc should be added
11588  archive_cmds_need_lc=yes
11589
11590  if test "$enable_shared" = yes && test "$GCC" = yes; then
11591    case $archive_cmds in
11592    *'~'*)
11593      # FIXME: we may have to deal with multi-command sequences.
11594      ;;
11595    '$CC '*)
11596      # Test whether the compiler implicitly links with -lc since on some
11597      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11598      # to ld, don't add -lc before -lgcc.
11599      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11600echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11601      $rm conftest*
11602      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11603
11604      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605  (eval $ac_compile) 2>&5
11606  ac_status=$?
11607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608  (exit $ac_status); } 2>conftest.err; then
11609        soname=conftest
11610        lib=conftest
11611        libobjs=conftest.$ac_objext
11612        deplibs=
11613        wl=$lt_prog_compiler_wl
11614	pic_flag=$lt_prog_compiler_pic
11615        compiler_flags=-v
11616        linker_flags=-v
11617        verstring=
11618        output_objdir=.
11619        libname=conftest
11620        lt_save_allow_undefined_flag=$allow_undefined_flag
11621        allow_undefined_flag=
11622        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11623  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11624  ac_status=$?
11625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626  (exit $ac_status); }
11627        then
11628	  archive_cmds_need_lc=no
11629        else
11630	  archive_cmds_need_lc=yes
11631        fi
11632        allow_undefined_flag=$lt_save_allow_undefined_flag
11633      else
11634        cat conftest.err 1>&5
11635      fi
11636      $rm conftest*
11637      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11638echo "${ECHO_T}$archive_cmds_need_lc" >&6
11639      ;;
11640    esac
11641  fi
11642  ;;
11643esac
11644
11645echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11646echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11647library_names_spec=
11648libname_spec='lib$name'
11649soname_spec=
11650shrext_cmds=".so"
11651postinstall_cmds=
11652postuninstall_cmds=
11653finish_cmds=
11654finish_eval=
11655shlibpath_var=
11656shlibpath_overrides_runpath=unknown
11657version_type=none
11658dynamic_linker="$host_os ld.so"
11659sys_lib_dlsearch_path_spec="/lib /usr/lib"
11660if test "$GCC" = yes; then
11661  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11662  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11663    # if the path contains ";" then we assume it to be the separator
11664    # otherwise default to the standard path separator (i.e. ":") - it is
11665    # assumed that no part of a normal pathname contains ";" but that should
11666    # okay in the real world where ";" in dirpaths is itself problematic.
11667    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11668  else
11669    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11670  fi
11671else
11672  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11673fi
11674need_lib_prefix=unknown
11675hardcode_into_libs=no
11676
11677# when you set need_version to no, make sure it does not cause -set_version
11678# flags to be left without arguments
11679need_version=unknown
11680
11681case $host_os in
11682aix3*)
11683  version_type=linux
11684  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11685  shlibpath_var=LIBPATH
11686
11687  # AIX 3 has no versioning support, so we append a major version to the name.
11688  soname_spec='${libname}${release}${shared_ext}$major'
11689  ;;
11690
11691aix4* | aix5*)
11692  version_type=linux
11693  need_lib_prefix=no
11694  need_version=no
11695  hardcode_into_libs=yes
11696  if test "$host_cpu" = ia64; then
11697    # AIX 5 supports IA64
11698    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11699    shlibpath_var=LD_LIBRARY_PATH
11700  else
11701    # With GCC up to 2.95.x, collect2 would create an import file
11702    # for dependence libraries.  The import file would start with
11703    # the line `#! .'.  This would cause the generated library to
11704    # depend on `.', always an invalid library.  This was fixed in
11705    # development snapshots of GCC prior to 3.0.
11706    case $host_os in
11707      aix4 | aix4.[01] | aix4.[01].*)
11708      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11709	   echo ' yes '
11710	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11711	:
11712      else
11713	can_build_shared=no
11714      fi
11715      ;;
11716    esac
11717    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11718    # soname into executable. Probably we can add versioning support to
11719    # collect2, so additional links can be useful in future.
11720    if test "$aix_use_runtimelinking" = yes; then
11721      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11722      # instead of lib<name>.a to let people know that these are not
11723      # typical AIX shared libraries.
11724      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725    else
11726      # We preserve .a as extension for shared libraries through AIX4.2
11727      # and later when we are not doing run time linking.
11728      library_names_spec='${libname}${release}.a $libname.a'
11729      soname_spec='${libname}${release}${shared_ext}$major'
11730    fi
11731    shlibpath_var=LIBPATH
11732  fi
11733  ;;
11734
11735amigaos*)
11736  library_names_spec='$libname.ixlibrary $libname.a'
11737  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11738  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'
11739  ;;
11740
11741beos*)
11742  library_names_spec='${libname}${shared_ext}'
11743  dynamic_linker="$host_os ld.so"
11744  shlibpath_var=LIBRARY_PATH
11745  ;;
11746
11747bsdi[45]*)
11748  version_type=linux
11749  need_version=no
11750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751  soname_spec='${libname}${release}${shared_ext}$major'
11752  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11753  shlibpath_var=LD_LIBRARY_PATH
11754  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11755  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11756  # the default ld.so.conf also contains /usr/contrib/lib and
11757  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11758  # libtool to hard-code these into programs
11759  ;;
11760
11761cygwin* | mingw* | pw32*)
11762  version_type=windows
11763  shrext_cmds=".dll"
11764  need_version=no
11765  need_lib_prefix=no
11766
11767  case $GCC,$host_os in
11768  yes,cygwin* | yes,mingw* | yes,pw32*)
11769    library_names_spec='$libname.dll.a'
11770    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11771    postinstall_cmds='base_file=`basename \${file}`~
11772      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11773      dldir=$destdir/`dirname \$dlpath`~
11774      test -d \$dldir || mkdir -p \$dldir~
11775      $install_prog $dir/$dlname \$dldir/$dlname~
11776      chmod a+x \$dldir/$dlname'
11777    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11778      dlpath=$dir/\$dldll~
11779       $rm \$dlpath'
11780    shlibpath_overrides_runpath=yes
11781
11782    case $host_os in
11783    cygwin*)
11784      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11785      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11786      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11787      ;;
11788    mingw*)
11789      # MinGW DLLs use traditional 'lib' prefix
11790      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11791      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11792      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11793        # It is most probably a Windows format PATH printed by
11794        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11795        # path with ; separators, and with drive letters. We can handle the
11796        # drive letters (cygwin fileutils understands them), so leave them,
11797        # especially as we might pass files found there to a mingw objdump,
11798        # which wouldn't understand a cygwinified path. Ahh.
11799        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11800      else
11801        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11802      fi
11803      ;;
11804    pw32*)
11805      # pw32 DLLs use 'pw' prefix rather than 'lib'
11806      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11807      ;;
11808    esac
11809    ;;
11810
11811  *)
11812    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11813    ;;
11814  esac
11815  dynamic_linker='Win32 ld.exe'
11816  # FIXME: first we should search . and the directory the executable is in
11817  shlibpath_var=PATH
11818  ;;
11819
11820darwin* | rhapsody*)
11821  dynamic_linker="$host_os dyld"
11822  version_type=darwin
11823  need_lib_prefix=no
11824  need_version=no
11825  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11826  soname_spec='${libname}${release}${major}$shared_ext'
11827  shlibpath_overrides_runpath=yes
11828  shlibpath_var=DYLD_LIBRARY_PATH
11829  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11830  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11831  if test "$GCC" = yes; then
11832    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"`
11833  else
11834    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11835  fi
11836  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11837  ;;
11838
11839dgux*)
11840  version_type=linux
11841  need_lib_prefix=no
11842  need_version=no
11843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11844  soname_spec='${libname}${release}${shared_ext}$major'
11845  shlibpath_var=LD_LIBRARY_PATH
11846  ;;
11847
11848freebsd1*)
11849  dynamic_linker=no
11850  ;;
11851
11852kfreebsd*-gnu)
11853  version_type=linux
11854  need_lib_prefix=no
11855  need_version=no
11856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11857  soname_spec='${libname}${release}${shared_ext}$major'
11858  shlibpath_var=LD_LIBRARY_PATH
11859  shlibpath_overrides_runpath=no
11860  hardcode_into_libs=yes
11861  dynamic_linker='GNU ld.so'
11862  ;;
11863
11864freebsd* | dragonfly*)
11865  # DragonFly does not have aout.  When/if they implement a new
11866  # versioning mechanism, adjust this.
11867  if test -x /usr/bin/objformat; then
11868    objformat=`/usr/bin/objformat`
11869  else
11870    case $host_os in
11871    freebsd[123]*) objformat=aout ;;
11872    *) objformat=elf ;;
11873    esac
11874  fi
11875  version_type=freebsd-$objformat
11876  case $version_type in
11877    freebsd-elf*)
11878      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11879      need_version=no
11880      need_lib_prefix=no
11881      ;;
11882    freebsd-*)
11883      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11884      need_version=yes
11885      ;;
11886  esac
11887  shlibpath_var=LD_LIBRARY_PATH
11888  case $host_os in
11889  freebsd2*)
11890    shlibpath_overrides_runpath=yes
11891    ;;
11892  freebsd3.[01]* | freebsdelf3.[01]*)
11893    shlibpath_overrides_runpath=yes
11894    hardcode_into_libs=yes
11895    ;;
11896  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11897  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11898    shlibpath_overrides_runpath=no
11899    hardcode_into_libs=yes
11900    ;;
11901  freebsd*) # from 4.6 on
11902    shlibpath_overrides_runpath=yes
11903    hardcode_into_libs=yes
11904    ;;
11905  esac
11906  ;;
11907
11908gnu*)
11909  version_type=linux
11910  need_lib_prefix=no
11911  need_version=no
11912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11913  soname_spec='${libname}${release}${shared_ext}$major'
11914  shlibpath_var=LD_LIBRARY_PATH
11915  hardcode_into_libs=yes
11916  ;;
11917
11918hpux9* | hpux10* | hpux11*)
11919  # Give a soname corresponding to the major version so that dld.sl refuses to
11920  # link against other versions.
11921  version_type=sunos
11922  need_lib_prefix=no
11923  need_version=no
11924  case $host_cpu in
11925  ia64*)
11926    shrext_cmds='.so'
11927    hardcode_into_libs=yes
11928    dynamic_linker="$host_os dld.so"
11929    shlibpath_var=LD_LIBRARY_PATH
11930    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932    soname_spec='${libname}${release}${shared_ext}$major'
11933    if test "X$HPUX_IA64_MODE" = X32; then
11934      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11935    else
11936      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11937    fi
11938    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11939    ;;
11940   hppa*64*)
11941     shrext_cmds='.sl'
11942     hardcode_into_libs=yes
11943     dynamic_linker="$host_os dld.sl"
11944     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947     soname_spec='${libname}${release}${shared_ext}$major'
11948     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11950     ;;
11951   *)
11952    shrext_cmds='.sl'
11953    dynamic_linker="$host_os dld.sl"
11954    shlibpath_var=SHLIB_PATH
11955    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957    soname_spec='${libname}${release}${shared_ext}$major'
11958    ;;
11959  esac
11960  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11961  postinstall_cmds='chmod 555 $lib'
11962  ;;
11963
11964interix3*)
11965  version_type=linux
11966  need_lib_prefix=no
11967  need_version=no
11968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11969  soname_spec='${libname}${release}${shared_ext}$major'
11970  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11971  shlibpath_var=LD_LIBRARY_PATH
11972  shlibpath_overrides_runpath=no
11973  hardcode_into_libs=yes
11974  ;;
11975
11976irix5* | irix6* | nonstopux*)
11977  case $host_os in
11978    nonstopux*) version_type=nonstopux ;;
11979    *)
11980	if test "$lt_cv_prog_gnu_ld" = yes; then
11981		version_type=linux
11982	else
11983		version_type=irix
11984	fi ;;
11985  esac
11986  need_lib_prefix=no
11987  need_version=no
11988  soname_spec='${libname}${release}${shared_ext}$major'
11989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11990  case $host_os in
11991  irix5* | nonstopux*)
11992    libsuff= shlibsuff=
11993    ;;
11994  *)
11995    case $LD in # libtool.m4 will add one of these switches to LD
11996    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11997      libsuff= shlibsuff= libmagic=32-bit;;
11998    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11999      libsuff=32 shlibsuff=N32 libmagic=N32;;
12000    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12001      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12002    *) libsuff= shlibsuff= libmagic=never-match;;
12003    esac
12004    ;;
12005  esac
12006  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12007  shlibpath_overrides_runpath=no
12008  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12009  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12010  hardcode_into_libs=yes
12011  ;;
12012
12013# No shared lib support for Linux oldld, aout, or coff.
12014linux*oldld* | linux*aout* | linux*coff*)
12015  dynamic_linker=no
12016  ;;
12017
12018# This must be Linux ELF.
12019linux*)
12020  version_type=linux
12021  need_lib_prefix=no
12022  need_version=no
12023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024  soname_spec='${libname}${release}${shared_ext}$major'
12025  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12026  shlibpath_var=LD_LIBRARY_PATH
12027  shlibpath_overrides_runpath=no
12028  # This implies no fast_install, which is unacceptable.
12029  # Some rework will be needed to allow for fast_install
12030  # before this can be enabled.
12031  hardcode_into_libs=yes
12032
12033  # find out which ABI we are using
12034  libsuff=
12035  case "$host_cpu" in
12036  x86_64*|s390x*|powerpc64*)
12037    echo '#line 12039 "configure"' > conftest.$ac_ext
12038    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039  (eval $ac_compile) 2>&5
12040  ac_status=$?
12041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042  (exit $ac_status); }; then
12043      case `/usr/bin/file conftest.$ac_objext` in
12044      *64-bit*)
12045        libsuff=64
12046        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12047        ;;
12048      esac
12049    fi
12050    rm -rf conftest*
12051    ;;
12052  esac
12053
12054  # Append ld.so.conf contents to the search path
12055  if test -f /etc/ld.so.conf; then
12056    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' ' '`
12057    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12058  fi
12059
12060  # We used to test for /lib/ld.so.1 and disable shared libraries on
12061  # powerpc, because MkLinux only supported shared libraries with the
12062  # GNU dynamic linker.  Since this was broken with cross compilers,
12063  # most powerpc-linux boxes support dynamic linking these days and
12064  # people can always --disable-shared, the test was removed, and we
12065  # assume the GNU/Linux dynamic linker is in use.
12066  dynamic_linker='GNU/Linux ld.so'
12067  ;;
12068
12069knetbsd*-gnu)
12070  version_type=linux
12071  need_lib_prefix=no
12072  need_version=no
12073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12074  soname_spec='${libname}${release}${shared_ext}$major'
12075  shlibpath_var=LD_LIBRARY_PATH
12076  shlibpath_overrides_runpath=no
12077  hardcode_into_libs=yes
12078  dynamic_linker='GNU ld.so'
12079  ;;
12080
12081netbsd*)
12082  version_type=sunos
12083  need_lib_prefix=no
12084  need_version=no
12085  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12086    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12087    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12088    dynamic_linker='NetBSD (a.out) ld.so'
12089  else
12090    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12091    soname_spec='${libname}${release}${shared_ext}$major'
12092    dynamic_linker='NetBSD ld.elf_so'
12093  fi
12094  shlibpath_var=LD_LIBRARY_PATH
12095  shlibpath_overrides_runpath=yes
12096  hardcode_into_libs=yes
12097  ;;
12098
12099newsos6)
12100  version_type=linux
12101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102  shlibpath_var=LD_LIBRARY_PATH
12103  shlibpath_overrides_runpath=yes
12104  ;;
12105
12106nto-qnx*)
12107  version_type=linux
12108  need_lib_prefix=no
12109  need_version=no
12110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12111  soname_spec='${libname}${release}${shared_ext}$major'
12112  shlibpath_var=LD_LIBRARY_PATH
12113  shlibpath_overrides_runpath=yes
12114  ;;
12115
12116openbsd*)
12117  version_type=sunos
12118  sys_lib_dlsearch_path_spec="/usr/lib"
12119  need_lib_prefix=no
12120  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12121  case $host_os in
12122    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12123    *)                         need_version=no  ;;
12124  esac
12125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12126  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12127  shlibpath_var=LD_LIBRARY_PATH
12128  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12129    case $host_os in
12130      openbsd2.[89] | openbsd2.[89].*)
12131	shlibpath_overrides_runpath=no
12132	;;
12133      *)
12134	shlibpath_overrides_runpath=yes
12135	;;
12136      esac
12137  else
12138    shlibpath_overrides_runpath=yes
12139  fi
12140  ;;
12141
12142os2*)
12143  libname_spec='$name'
12144  shrext_cmds=".dll"
12145  need_lib_prefix=no
12146  library_names_spec='$libname${shared_ext} $libname.a'
12147  dynamic_linker='OS/2 ld.exe'
12148  shlibpath_var=LIBPATH
12149  ;;
12150
12151osf3* | osf4* | osf5*)
12152  version_type=osf
12153  need_lib_prefix=no
12154  need_version=no
12155  soname_spec='${libname}${release}${shared_ext}$major'
12156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157  shlibpath_var=LD_LIBRARY_PATH
12158  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12159  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12160  ;;
12161
12162solaris*)
12163  version_type=linux
12164  need_lib_prefix=no
12165  need_version=no
12166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12167  soname_spec='${libname}${release}${shared_ext}$major'
12168  shlibpath_var=LD_LIBRARY_PATH
12169  shlibpath_overrides_runpath=yes
12170  hardcode_into_libs=yes
12171  # ldd complains unless libraries are executable
12172  postinstall_cmds='chmod +x $lib'
12173  ;;
12174
12175sunos4*)
12176  version_type=sunos
12177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12178  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12179  shlibpath_var=LD_LIBRARY_PATH
12180  shlibpath_overrides_runpath=yes
12181  if test "$with_gnu_ld" = yes; then
12182    need_lib_prefix=no
12183  fi
12184  need_version=yes
12185  ;;
12186
12187sysv4 | sysv4.3*)
12188  version_type=linux
12189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190  soname_spec='${libname}${release}${shared_ext}$major'
12191  shlibpath_var=LD_LIBRARY_PATH
12192  case $host_vendor in
12193    sni)
12194      shlibpath_overrides_runpath=no
12195      need_lib_prefix=no
12196      export_dynamic_flag_spec='${wl}-Blargedynsym'
12197      runpath_var=LD_RUN_PATH
12198      ;;
12199    siemens)
12200      need_lib_prefix=no
12201      ;;
12202    motorola)
12203      need_lib_prefix=no
12204      need_version=no
12205      shlibpath_overrides_runpath=no
12206      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12207      ;;
12208  esac
12209  ;;
12210
12211sysv4*MP*)
12212  if test -d /usr/nec ;then
12213    version_type=linux
12214    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12215    soname_spec='$libname${shared_ext}.$major'
12216    shlibpath_var=LD_LIBRARY_PATH
12217  fi
12218  ;;
12219
12220sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12221  version_type=freebsd-elf
12222  need_lib_prefix=no
12223  need_version=no
12224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12225  soname_spec='${libname}${release}${shared_ext}$major'
12226  shlibpath_var=LD_LIBRARY_PATH
12227  hardcode_into_libs=yes
12228  if test "$with_gnu_ld" = yes; then
12229    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12230    shlibpath_overrides_runpath=no
12231  else
12232    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12233    shlibpath_overrides_runpath=yes
12234    case $host_os in
12235      sco3.2v5*)
12236        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12237	;;
12238    esac
12239  fi
12240  sys_lib_dlsearch_path_spec='/usr/lib'
12241  ;;
12242
12243uts4*)
12244  version_type=linux
12245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12246  soname_spec='${libname}${release}${shared_ext}$major'
12247  shlibpath_var=LD_LIBRARY_PATH
12248  ;;
12249
12250*)
12251  dynamic_linker=no
12252  ;;
12253esac
12254echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12255echo "${ECHO_T}$dynamic_linker" >&6
12256test "$dynamic_linker" = no && can_build_shared=no
12257
12258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12259if test "$GCC" = yes; then
12260  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12261fi
12262
12263echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12264echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12265hardcode_action=
12266if test -n "$hardcode_libdir_flag_spec" || \
12267   test -n "$runpath_var" || \
12268   test "X$hardcode_automatic" = "Xyes" ; then
12269
12270  # We can hardcode non-existant directories.
12271  if test "$hardcode_direct" != no &&
12272     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12273     # have to relink, otherwise we might link with an installed library
12274     # when we should be linking with a yet-to-be-installed one
12275     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12276     test "$hardcode_minus_L" != no; then
12277    # Linking always hardcodes the temporary library directory.
12278    hardcode_action=relink
12279  else
12280    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12281    hardcode_action=immediate
12282  fi
12283else
12284  # We cannot hardcode anything, or else we can only hardcode existing
12285  # directories.
12286  hardcode_action=unsupported
12287fi
12288echo "$as_me:$LINENO: result: $hardcode_action" >&5
12289echo "${ECHO_T}$hardcode_action" >&6
12290
12291if test "$hardcode_action" = relink; then
12292  # Fast installation is not supported
12293  enable_fast_install=no
12294elif test "$shlibpath_overrides_runpath" = yes ||
12295     test "$enable_shared" = no; then
12296  # Fast installation is not necessary
12297  enable_fast_install=needless
12298fi
12299
12300striplib=
12301old_striplib=
12302echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12303echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12304if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12305  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12306  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12307  echo "$as_me:$LINENO: result: yes" >&5
12308echo "${ECHO_T}yes" >&6
12309else
12310# FIXME - insert some real tests, host_os isn't really good enough
12311  case $host_os in
12312   darwin*)
12313       if test -n "$STRIP" ; then
12314         striplib="$STRIP -x"
12315         echo "$as_me:$LINENO: result: yes" >&5
12316echo "${ECHO_T}yes" >&6
12317       else
12318  echo "$as_me:$LINENO: result: no" >&5
12319echo "${ECHO_T}no" >&6
12320fi
12321       ;;
12322   *)
12323  echo "$as_me:$LINENO: result: no" >&5
12324echo "${ECHO_T}no" >&6
12325    ;;
12326  esac
12327fi
12328
12329if test "x$enable_dlopen" != xyes; then
12330  enable_dlopen=unknown
12331  enable_dlopen_self=unknown
12332  enable_dlopen_self_static=unknown
12333else
12334  lt_cv_dlopen=no
12335  lt_cv_dlopen_libs=
12336
12337  case $host_os in
12338  beos*)
12339    lt_cv_dlopen="load_add_on"
12340    lt_cv_dlopen_libs=
12341    lt_cv_dlopen_self=yes
12342    ;;
12343
12344  mingw* | pw32*)
12345    lt_cv_dlopen="LoadLibrary"
12346    lt_cv_dlopen_libs=
12347   ;;
12348
12349  cygwin*)
12350    lt_cv_dlopen="dlopen"
12351    lt_cv_dlopen_libs=
12352   ;;
12353
12354  darwin*)
12355  # if libdl is installed we need to link against it
12356    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12357echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12358if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12359  echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361  ac_check_lib_save_LIBS=$LIBS
12362LIBS="-ldl  $LIBS"
12363cat >conftest.$ac_ext <<_ACEOF
12364/* confdefs.h.  */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h.  */
12369
12370/* Override any gcc2 internal prototype to avoid an error.  */
12371#ifdef __cplusplus
12372extern "C"
12373#endif
12374/* We use char because int might match the return type of a gcc2
12375   builtin and then its argument prototype would still apply.  */
12376char dlopen ();
12377int
12378main ()
12379{
12380dlopen ();
12381  ;
12382  return 0;
12383}
12384_ACEOF
12385rm -f conftest.$ac_objext conftest$ac_exeext
12386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387  (eval $ac_link) 2>conftest.er1
12388  ac_status=$?
12389  grep -v '^ *+' conftest.er1 >conftest.err
12390  rm -f conftest.er1
12391  cat conftest.err >&5
12392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393  (exit $ac_status); } &&
12394	 { ac_try='test -z "$ac_c_werror_flag"
12395			 || test ! -s conftest.err'
12396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397  (eval $ac_try) 2>&5
12398  ac_status=$?
12399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400  (exit $ac_status); }; } &&
12401	 { ac_try='test -s conftest$ac_exeext'
12402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403  (eval $ac_try) 2>&5
12404  ac_status=$?
12405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406  (exit $ac_status); }; }; then
12407  ac_cv_lib_dl_dlopen=yes
12408else
12409  echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412ac_cv_lib_dl_dlopen=no
12413fi
12414rm -f conftest.err conftest.$ac_objext \
12415      conftest$ac_exeext conftest.$ac_ext
12416LIBS=$ac_check_lib_save_LIBS
12417fi
12418echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12419echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12420if test $ac_cv_lib_dl_dlopen = yes; then
12421  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12422else
12423
12424    lt_cv_dlopen="dyld"
12425    lt_cv_dlopen_libs=
12426    lt_cv_dlopen_self=yes
12427
12428fi
12429
12430   ;;
12431
12432  *)
12433    echo "$as_me:$LINENO: checking for shl_load" >&5
12434echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12435if test "${ac_cv_func_shl_load+set}" = set; then
12436  echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438  cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h.  */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h.  */
12444/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12445   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12446#define shl_load innocuous_shl_load
12447
12448/* System header to define __stub macros and hopefully few prototypes,
12449    which can conflict with char shl_load (); below.
12450    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12451    <limits.h> exists even on freestanding compilers.  */
12452
12453#ifdef __STDC__
12454# include <limits.h>
12455#else
12456# include <assert.h>
12457#endif
12458
12459#undef shl_load
12460
12461/* Override any gcc2 internal prototype to avoid an error.  */
12462#ifdef __cplusplus
12463extern "C"
12464{
12465#endif
12466/* We use char because int might match the return type of a gcc2
12467   builtin and then its argument prototype would still apply.  */
12468char shl_load ();
12469/* The GNU C library defines this for functions which it implements
12470    to always fail with ENOSYS.  Some functions are actually named
12471    something starting with __ and the normal name is an alias.  */
12472#if defined (__stub_shl_load) || defined (__stub___shl_load)
12473choke me
12474#else
12475char (*f) () = shl_load;
12476#endif
12477#ifdef __cplusplus
12478}
12479#endif
12480
12481int
12482main ()
12483{
12484return f != shl_load;
12485  ;
12486  return 0;
12487}
12488_ACEOF
12489rm -f conftest.$ac_objext conftest$ac_exeext
12490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491  (eval $ac_link) 2>conftest.er1
12492  ac_status=$?
12493  grep -v '^ *+' conftest.er1 >conftest.err
12494  rm -f conftest.er1
12495  cat conftest.err >&5
12496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497  (exit $ac_status); } &&
12498	 { ac_try='test -z "$ac_c_werror_flag"
12499			 || test ! -s conftest.err'
12500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501  (eval $ac_try) 2>&5
12502  ac_status=$?
12503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504  (exit $ac_status); }; } &&
12505	 { ac_try='test -s conftest$ac_exeext'
12506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507  (eval $ac_try) 2>&5
12508  ac_status=$?
12509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510  (exit $ac_status); }; }; then
12511  ac_cv_func_shl_load=yes
12512else
12513  echo "$as_me: failed program was:" >&5
12514sed 's/^/| /' conftest.$ac_ext >&5
12515
12516ac_cv_func_shl_load=no
12517fi
12518rm -f conftest.err conftest.$ac_objext \
12519      conftest$ac_exeext conftest.$ac_ext
12520fi
12521echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12522echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12523if test $ac_cv_func_shl_load = yes; then
12524  lt_cv_dlopen="shl_load"
12525else
12526  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12527echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12528if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12529  echo $ECHO_N "(cached) $ECHO_C" >&6
12530else
12531  ac_check_lib_save_LIBS=$LIBS
12532LIBS="-ldld  $LIBS"
12533cat >conftest.$ac_ext <<_ACEOF
12534/* confdefs.h.  */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h.  */
12539
12540/* Override any gcc2 internal prototype to avoid an error.  */
12541#ifdef __cplusplus
12542extern "C"
12543#endif
12544/* We use char because int might match the return type of a gcc2
12545   builtin and then its argument prototype would still apply.  */
12546char shl_load ();
12547int
12548main ()
12549{
12550shl_load ();
12551  ;
12552  return 0;
12553}
12554_ACEOF
12555rm -f conftest.$ac_objext conftest$ac_exeext
12556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557  (eval $ac_link) 2>conftest.er1
12558  ac_status=$?
12559  grep -v '^ *+' conftest.er1 >conftest.err
12560  rm -f conftest.er1
12561  cat conftest.err >&5
12562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563  (exit $ac_status); } &&
12564	 { ac_try='test -z "$ac_c_werror_flag"
12565			 || test ! -s conftest.err'
12566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567  (eval $ac_try) 2>&5
12568  ac_status=$?
12569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570  (exit $ac_status); }; } &&
12571	 { ac_try='test -s conftest$ac_exeext'
12572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573  (eval $ac_try) 2>&5
12574  ac_status=$?
12575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576  (exit $ac_status); }; }; then
12577  ac_cv_lib_dld_shl_load=yes
12578else
12579  echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582ac_cv_lib_dld_shl_load=no
12583fi
12584rm -f conftest.err conftest.$ac_objext \
12585      conftest$ac_exeext conftest.$ac_ext
12586LIBS=$ac_check_lib_save_LIBS
12587fi
12588echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12589echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12590if test $ac_cv_lib_dld_shl_load = yes; then
12591  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12592else
12593  echo "$as_me:$LINENO: checking for dlopen" >&5
12594echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12595if test "${ac_cv_func_dlopen+set}" = set; then
12596  echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598  cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h.  */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h.  */
12604/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12605   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12606#define dlopen innocuous_dlopen
12607
12608/* System header to define __stub macros and hopefully few prototypes,
12609    which can conflict with char dlopen (); below.
12610    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12611    <limits.h> exists even on freestanding compilers.  */
12612
12613#ifdef __STDC__
12614# include <limits.h>
12615#else
12616# include <assert.h>
12617#endif
12618
12619#undef dlopen
12620
12621/* Override any gcc2 internal prototype to avoid an error.  */
12622#ifdef __cplusplus
12623extern "C"
12624{
12625#endif
12626/* We use char because int might match the return type of a gcc2
12627   builtin and then its argument prototype would still apply.  */
12628char dlopen ();
12629/* The GNU C library defines this for functions which it implements
12630    to always fail with ENOSYS.  Some functions are actually named
12631    something starting with __ and the normal name is an alias.  */
12632#if defined (__stub_dlopen) || defined (__stub___dlopen)
12633choke me
12634#else
12635char (*f) () = dlopen;
12636#endif
12637#ifdef __cplusplus
12638}
12639#endif
12640
12641int
12642main ()
12643{
12644return f != dlopen;
12645  ;
12646  return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651  (eval $ac_link) 2>conftest.er1
12652  ac_status=$?
12653  grep -v '^ *+' conftest.er1 >conftest.err
12654  rm -f conftest.er1
12655  cat conftest.err >&5
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); } &&
12658	 { ac_try='test -z "$ac_c_werror_flag"
12659			 || test ! -s conftest.err'
12660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661  (eval $ac_try) 2>&5
12662  ac_status=$?
12663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664  (exit $ac_status); }; } &&
12665	 { ac_try='test -s conftest$ac_exeext'
12666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667  (eval $ac_try) 2>&5
12668  ac_status=$?
12669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670  (exit $ac_status); }; }; then
12671  ac_cv_func_dlopen=yes
12672else
12673  echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
12676ac_cv_func_dlopen=no
12677fi
12678rm -f conftest.err conftest.$ac_objext \
12679      conftest$ac_exeext conftest.$ac_ext
12680fi
12681echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12682echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12683if test $ac_cv_func_dlopen = yes; then
12684  lt_cv_dlopen="dlopen"
12685else
12686  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12689  echo $ECHO_N "(cached) $ECHO_C" >&6
12690else
12691  ac_check_lib_save_LIBS=$LIBS
12692LIBS="-ldl  $LIBS"
12693cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h.  */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h.  */
12699
12700/* Override any gcc2 internal prototype to avoid an error.  */
12701#ifdef __cplusplus
12702extern "C"
12703#endif
12704/* We use char because int might match the return type of a gcc2
12705   builtin and then its argument prototype would still apply.  */
12706char dlopen ();
12707int
12708main ()
12709{
12710dlopen ();
12711  ;
12712  return 0;
12713}
12714_ACEOF
12715rm -f conftest.$ac_objext conftest$ac_exeext
12716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717  (eval $ac_link) 2>conftest.er1
12718  ac_status=$?
12719  grep -v '^ *+' conftest.er1 >conftest.err
12720  rm -f conftest.er1
12721  cat conftest.err >&5
12722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723  (exit $ac_status); } &&
12724	 { ac_try='test -z "$ac_c_werror_flag"
12725			 || test ! -s conftest.err'
12726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727  (eval $ac_try) 2>&5
12728  ac_status=$?
12729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730  (exit $ac_status); }; } &&
12731	 { ac_try='test -s conftest$ac_exeext'
12732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733  (eval $ac_try) 2>&5
12734  ac_status=$?
12735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736  (exit $ac_status); }; }; then
12737  ac_cv_lib_dl_dlopen=yes
12738else
12739  echo "$as_me: failed program was:" >&5
12740sed 's/^/| /' conftest.$ac_ext >&5
12741
12742ac_cv_lib_dl_dlopen=no
12743fi
12744rm -f conftest.err conftest.$ac_objext \
12745      conftest$ac_exeext conftest.$ac_ext
12746LIBS=$ac_check_lib_save_LIBS
12747fi
12748echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12750if test $ac_cv_lib_dl_dlopen = yes; then
12751  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12752else
12753  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12754echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12755if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12756  echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758  ac_check_lib_save_LIBS=$LIBS
12759LIBS="-lsvld  $LIBS"
12760cat >conftest.$ac_ext <<_ACEOF
12761/* confdefs.h.  */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h.  */
12766
12767/* Override any gcc2 internal prototype to avoid an error.  */
12768#ifdef __cplusplus
12769extern "C"
12770#endif
12771/* We use char because int might match the return type of a gcc2
12772   builtin and then its argument prototype would still apply.  */
12773char dlopen ();
12774int
12775main ()
12776{
12777dlopen ();
12778  ;
12779  return 0;
12780}
12781_ACEOF
12782rm -f conftest.$ac_objext conftest$ac_exeext
12783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12784  (eval $ac_link) 2>conftest.er1
12785  ac_status=$?
12786  grep -v '^ *+' conftest.er1 >conftest.err
12787  rm -f conftest.er1
12788  cat conftest.err >&5
12789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790  (exit $ac_status); } &&
12791	 { ac_try='test -z "$ac_c_werror_flag"
12792			 || test ! -s conftest.err'
12793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794  (eval $ac_try) 2>&5
12795  ac_status=$?
12796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797  (exit $ac_status); }; } &&
12798	 { ac_try='test -s conftest$ac_exeext'
12799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800  (eval $ac_try) 2>&5
12801  ac_status=$?
12802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803  (exit $ac_status); }; }; then
12804  ac_cv_lib_svld_dlopen=yes
12805else
12806  echo "$as_me: failed program was:" >&5
12807sed 's/^/| /' conftest.$ac_ext >&5
12808
12809ac_cv_lib_svld_dlopen=no
12810fi
12811rm -f conftest.err conftest.$ac_objext \
12812      conftest$ac_exeext conftest.$ac_ext
12813LIBS=$ac_check_lib_save_LIBS
12814fi
12815echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12816echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12817if test $ac_cv_lib_svld_dlopen = yes; then
12818  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12819else
12820  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12821echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12822if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12823  echo $ECHO_N "(cached) $ECHO_C" >&6
12824else
12825  ac_check_lib_save_LIBS=$LIBS
12826LIBS="-ldld  $LIBS"
12827cat >conftest.$ac_ext <<_ACEOF
12828/* confdefs.h.  */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h.  */
12833
12834/* Override any gcc2 internal prototype to avoid an error.  */
12835#ifdef __cplusplus
12836extern "C"
12837#endif
12838/* We use char because int might match the return type of a gcc2
12839   builtin and then its argument prototype would still apply.  */
12840char dld_link ();
12841int
12842main ()
12843{
12844dld_link ();
12845  ;
12846  return 0;
12847}
12848_ACEOF
12849rm -f conftest.$ac_objext conftest$ac_exeext
12850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851  (eval $ac_link) 2>conftest.er1
12852  ac_status=$?
12853  grep -v '^ *+' conftest.er1 >conftest.err
12854  rm -f conftest.er1
12855  cat conftest.err >&5
12856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857  (exit $ac_status); } &&
12858	 { ac_try='test -z "$ac_c_werror_flag"
12859			 || test ! -s conftest.err'
12860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861  (eval $ac_try) 2>&5
12862  ac_status=$?
12863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864  (exit $ac_status); }; } &&
12865	 { ac_try='test -s conftest$ac_exeext'
12866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867  (eval $ac_try) 2>&5
12868  ac_status=$?
12869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870  (exit $ac_status); }; }; then
12871  ac_cv_lib_dld_dld_link=yes
12872else
12873  echo "$as_me: failed program was:" >&5
12874sed 's/^/| /' conftest.$ac_ext >&5
12875
12876ac_cv_lib_dld_dld_link=no
12877fi
12878rm -f conftest.err conftest.$ac_objext \
12879      conftest$ac_exeext conftest.$ac_ext
12880LIBS=$ac_check_lib_save_LIBS
12881fi
12882echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12883echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12884if test $ac_cv_lib_dld_dld_link = yes; then
12885  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12886fi
12887
12888
12889fi
12890
12891
12892fi
12893
12894
12895fi
12896
12897
12898fi
12899
12900
12901fi
12902
12903    ;;
12904  esac
12905
12906  if test "x$lt_cv_dlopen" != xno; then
12907    enable_dlopen=yes
12908  else
12909    enable_dlopen=no
12910  fi
12911
12912  case $lt_cv_dlopen in
12913  dlopen)
12914    save_CPPFLAGS="$CPPFLAGS"
12915    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12916
12917    save_LDFLAGS="$LDFLAGS"
12918    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12919
12920    save_LIBS="$LIBS"
12921    LIBS="$lt_cv_dlopen_libs $LIBS"
12922
12923    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12924echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12925if test "${lt_cv_dlopen_self+set}" = set; then
12926  echo $ECHO_N "(cached) $ECHO_C" >&6
12927else
12928  	  if test "$cross_compiling" = yes; then :
12929  lt_cv_dlopen_self=cross
12930else
12931  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12932  lt_status=$lt_dlunknown
12933  cat > conftest.$ac_ext <<EOF
12934#line 12936 "configure"
12935#include "confdefs.h"
12936
12937#if HAVE_DLFCN_H
12938#include <dlfcn.h>
12939#endif
12940
12941#include <stdio.h>
12942
12943#ifdef RTLD_GLOBAL
12944#  define LT_DLGLOBAL		RTLD_GLOBAL
12945#else
12946#  ifdef DL_GLOBAL
12947#    define LT_DLGLOBAL		DL_GLOBAL
12948#  else
12949#    define LT_DLGLOBAL		0
12950#  endif
12951#endif
12952
12953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12954   find out it does not work in some platform. */
12955#ifndef LT_DLLAZY_OR_NOW
12956#  ifdef RTLD_LAZY
12957#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12958#  else
12959#    ifdef DL_LAZY
12960#      define LT_DLLAZY_OR_NOW		DL_LAZY
12961#    else
12962#      ifdef RTLD_NOW
12963#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12964#      else
12965#        ifdef DL_NOW
12966#          define LT_DLLAZY_OR_NOW	DL_NOW
12967#        else
12968#          define LT_DLLAZY_OR_NOW	0
12969#        endif
12970#      endif
12971#    endif
12972#  endif
12973#endif
12974
12975#ifdef __cplusplus
12976extern "C" void exit (int);
12977#endif
12978
12979void fnord() { int i=42;}
12980int main ()
12981{
12982  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12983  int status = $lt_dlunknown;
12984
12985  if (self)
12986    {
12987      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12988      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12989      /* dlclose (self); */
12990    }
12991  else
12992    puts (dlerror ());
12993
12994    exit (status);
12995}
12996EOF
12997  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998  (eval $ac_link) 2>&5
12999  ac_status=$?
13000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13002    (./conftest; exit; ) >&5 2>/dev/null
13003    lt_status=$?
13004    case x$lt_status in
13005      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13006      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13007      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13008    esac
13009  else :
13010    # compilation failed
13011    lt_cv_dlopen_self=no
13012  fi
13013fi
13014rm -fr conftest*
13015
13016
13017fi
13018echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13019echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13020
13021    if test "x$lt_cv_dlopen_self" = xyes; then
13022      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13023      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13024echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13025if test "${lt_cv_dlopen_self_static+set}" = set; then
13026  echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
13028  	  if test "$cross_compiling" = yes; then :
13029  lt_cv_dlopen_self_static=cross
13030else
13031  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13032  lt_status=$lt_dlunknown
13033  cat > conftest.$ac_ext <<EOF
13034#line 13036 "configure"
13035#include "confdefs.h"
13036
13037#if HAVE_DLFCN_H
13038#include <dlfcn.h>
13039#endif
13040
13041#include <stdio.h>
13042
13043#ifdef RTLD_GLOBAL
13044#  define LT_DLGLOBAL		RTLD_GLOBAL
13045#else
13046#  ifdef DL_GLOBAL
13047#    define LT_DLGLOBAL		DL_GLOBAL
13048#  else
13049#    define LT_DLGLOBAL		0
13050#  endif
13051#endif
13052
13053/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13054   find out it does not work in some platform. */
13055#ifndef LT_DLLAZY_OR_NOW
13056#  ifdef RTLD_LAZY
13057#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13058#  else
13059#    ifdef DL_LAZY
13060#      define LT_DLLAZY_OR_NOW		DL_LAZY
13061#    else
13062#      ifdef RTLD_NOW
13063#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13064#      else
13065#        ifdef DL_NOW
13066#          define LT_DLLAZY_OR_NOW	DL_NOW
13067#        else
13068#          define LT_DLLAZY_OR_NOW	0
13069#        endif
13070#      endif
13071#    endif
13072#  endif
13073#endif
13074
13075#ifdef __cplusplus
13076extern "C" void exit (int);
13077#endif
13078
13079void fnord() { int i=42;}
13080int main ()
13081{
13082  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13083  int status = $lt_dlunknown;
13084
13085  if (self)
13086    {
13087      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13088      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13089      /* dlclose (self); */
13090    }
13091  else
13092    puts (dlerror ());
13093
13094    exit (status);
13095}
13096EOF
13097  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13098  (eval $ac_link) 2>&5
13099  ac_status=$?
13100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13102    (./conftest; exit; ) >&5 2>/dev/null
13103    lt_status=$?
13104    case x$lt_status in
13105      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13106      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13107      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13108    esac
13109  else :
13110    # compilation failed
13111    lt_cv_dlopen_self_static=no
13112  fi
13113fi
13114rm -fr conftest*
13115
13116
13117fi
13118echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13119echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13120    fi
13121
13122    CPPFLAGS="$save_CPPFLAGS"
13123    LDFLAGS="$save_LDFLAGS"
13124    LIBS="$save_LIBS"
13125    ;;
13126  esac
13127
13128  case $lt_cv_dlopen_self in
13129  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13130  *) enable_dlopen_self=unknown ;;
13131  esac
13132
13133  case $lt_cv_dlopen_self_static in
13134  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13135  *) enable_dlopen_self_static=unknown ;;
13136  esac
13137fi
13138
13139
13140# Report which library types will actually be built
13141echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13142echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13143echo "$as_me:$LINENO: result: $can_build_shared" >&5
13144echo "${ECHO_T}$can_build_shared" >&6
13145
13146echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13147echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13148test "$can_build_shared" = "no" && enable_shared=no
13149
13150# On AIX, shared libraries and static libraries use the same namespace, and
13151# are all built from PIC.
13152case $host_os in
13153aix3*)
13154  test "$enable_shared" = yes && enable_static=no
13155  if test -n "$RANLIB"; then
13156    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13157    postinstall_cmds='$RANLIB $lib'
13158  fi
13159  ;;
13160
13161aix4* | aix5*)
13162  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13163    test "$enable_shared" = yes && enable_static=no
13164  fi
13165    ;;
13166esac
13167echo "$as_me:$LINENO: result: $enable_shared" >&5
13168echo "${ECHO_T}$enable_shared" >&6
13169
13170echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13171echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13172# Make sure either enable_shared or enable_static is yes.
13173test "$enable_shared" = yes || enable_static=yes
13174echo "$as_me:$LINENO: result: $enable_static" >&5
13175echo "${ECHO_T}$enable_static" >&6
13176
13177# The else clause should only fire when bootstrapping the
13178# libtool distribution, otherwise you forgot to ship ltmain.sh
13179# with your package, and you will get complaints that there are
13180# no rules to generate ltmain.sh.
13181if test -f "$ltmain"; then
13182  # See if we are running on zsh, and set the options which allow our commands through
13183  # without removal of \ escapes.
13184  if test -n "${ZSH_VERSION+set}" ; then
13185    setopt NO_GLOB_SUBST
13186  fi
13187  # Now quote all the things that may contain metacharacters while being
13188  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13189  # variables and quote the copies for generation of the libtool script.
13190  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13191    SED SHELL STRIP \
13192    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13193    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13194    deplibs_check_method reload_flag reload_cmds need_locks \
13195    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13196    lt_cv_sys_global_symbol_to_c_name_address \
13197    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13198    old_postinstall_cmds old_postuninstall_cmds \
13199    compiler \
13200    CC \
13201    LD \
13202    lt_prog_compiler_wl \
13203    lt_prog_compiler_pic \
13204    lt_prog_compiler_static \
13205    lt_prog_compiler_no_builtin_flag \
13206    export_dynamic_flag_spec \
13207    thread_safe_flag_spec \
13208    whole_archive_flag_spec \
13209    enable_shared_with_static_runtimes \
13210    old_archive_cmds \
13211    old_archive_from_new_cmds \
13212    predep_objects \
13213    postdep_objects \
13214    predeps \
13215    postdeps \
13216    compiler_lib_search_path \
13217    archive_cmds \
13218    archive_expsym_cmds \
13219    postinstall_cmds \
13220    postuninstall_cmds \
13221    old_archive_from_expsyms_cmds \
13222    allow_undefined_flag \
13223    no_undefined_flag \
13224    export_symbols_cmds \
13225    hardcode_libdir_flag_spec \
13226    hardcode_libdir_flag_spec_ld \
13227    hardcode_libdir_separator \
13228    hardcode_automatic \
13229    module_cmds \
13230    module_expsym_cmds \
13231    lt_cv_prog_compiler_c_o \
13232    exclude_expsyms \
13233    include_expsyms; do
13234
13235    case $var in
13236    old_archive_cmds | \
13237    old_archive_from_new_cmds | \
13238    archive_cmds | \
13239    archive_expsym_cmds | \
13240    module_cmds | \
13241    module_expsym_cmds | \
13242    old_archive_from_expsyms_cmds | \
13243    export_symbols_cmds | \
13244    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13245    postinstall_cmds | postuninstall_cmds | \
13246    old_postinstall_cmds | old_postuninstall_cmds | \
13247    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13248      # Double-quote double-evaled strings.
13249      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13250      ;;
13251    *)
13252      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13253      ;;
13254    esac
13255  done
13256
13257  case $lt_echo in
13258  *'\$0 --fallback-echo"')
13259    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13260    ;;
13261  esac
13262
13263cfgfile="${ofile}T"
13264  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13265  $rm -f "$cfgfile"
13266  { echo "$as_me:$LINENO: creating $ofile" >&5
13267echo "$as_me: creating $ofile" >&6;}
13268
13269  cat <<__EOF__ >> "$cfgfile"
13270#! $SHELL
13271
13272# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13273# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13274# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13275#
13276# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13277# Free Software Foundation, Inc.
13278#
13279# This file is part of GNU Libtool:
13280# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13281#
13282# This program is free software; you can redistribute it and/or modify
13283# it under the terms of the GNU General Public License as published by
13284# the Free Software Foundation; either version 2 of the License, or
13285# (at your option) any later version.
13286#
13287# This program is distributed in the hope that it will be useful, but
13288# WITHOUT ANY WARRANTY; without even the implied warranty of
13289# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13290# General Public License for more details.
13291#
13292# You should have received a copy of the GNU General Public License
13293# along with this program; if not, write to the Free Software
13294# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13295#
13296# As a special exception to the GNU General Public License, if you
13297# distribute this file as part of a program that contains a
13298# configuration script generated by Autoconf, you may include it under
13299# the same distribution terms that you use for the rest of that program.
13300
13301# A sed program that does not truncate output.
13302SED=$lt_SED
13303
13304# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13305Xsed="$SED -e 1s/^X//"
13306
13307# The HP-UX ksh and POSIX shell print the target directory to stdout
13308# if CDPATH is set.
13309(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13310
13311# The names of the tagged configurations supported by this script.
13312available_tags=
13313
13314# ### BEGIN LIBTOOL CONFIG
13315
13316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13317
13318# Shell to use when invoking shell scripts.
13319SHELL=$lt_SHELL
13320
13321# Whether or not to build shared libraries.
13322build_libtool_libs=$enable_shared
13323
13324# Whether or not to build static libraries.
13325build_old_libs=$enable_static
13326
13327# Whether or not to add -lc for building shared libraries.
13328build_libtool_need_lc=$archive_cmds_need_lc
13329
13330# Whether or not to disallow shared libs when runtime libs are static
13331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13332
13333# Whether or not to optimize for fast installation.
13334fast_install=$enable_fast_install
13335
13336# The host system.
13337host_alias=$host_alias
13338host=$host
13339host_os=$host_os
13340
13341# The build system.
13342build_alias=$build_alias
13343build=$build
13344build_os=$build_os
13345
13346# An echo program that does not interpret backslashes.
13347echo=$lt_echo
13348
13349# The archiver.
13350AR=$lt_AR
13351AR_FLAGS=$lt_AR_FLAGS
13352
13353# A C compiler.
13354LTCC=$lt_LTCC
13355
13356# LTCC compiler flags.
13357LTCFLAGS=$lt_LTCFLAGS
13358
13359# A language-specific compiler.
13360CC=$lt_compiler
13361
13362# Is the compiler the GNU C compiler?
13363with_gcc=$GCC
13364
13365# An ERE matcher.
13366EGREP=$lt_EGREP
13367
13368# The linker used to build libraries.
13369LD=$lt_LD
13370
13371# Whether we need hard or soft links.
13372LN_S=$lt_LN_S
13373
13374# A BSD-compatible nm program.
13375NM=$lt_NM
13376
13377# A symbol stripping program
13378STRIP=$lt_STRIP
13379
13380# Used to examine libraries when file_magic_cmd begins "file"
13381MAGIC_CMD=$MAGIC_CMD
13382
13383# Used on cygwin: DLL creation program.
13384DLLTOOL="$DLLTOOL"
13385
13386# Used on cygwin: object dumper.
13387OBJDUMP="$OBJDUMP"
13388
13389# Used on cygwin: assembler.
13390AS="$AS"
13391
13392# The name of the directory that contains temporary libtool files.
13393objdir=$objdir
13394
13395# How to create reloadable object files.
13396reload_flag=$lt_reload_flag
13397reload_cmds=$lt_reload_cmds
13398
13399# How to pass a linker flag through the compiler.
13400wl=$lt_lt_prog_compiler_wl
13401
13402# Object file suffix (normally "o").
13403objext="$ac_objext"
13404
13405# Old archive suffix (normally "a").
13406libext="$libext"
13407
13408# Shared library suffix (normally ".so").
13409shrext_cmds='$shrext_cmds'
13410
13411# Executable file suffix (normally "").
13412exeext="$exeext"
13413
13414# Additional compiler flags for building library objects.
13415pic_flag=$lt_lt_prog_compiler_pic
13416pic_mode=$pic_mode
13417
13418# What is the maximum length of a command?
13419max_cmd_len=$lt_cv_sys_max_cmd_len
13420
13421# Does compiler simultaneously support -c and -o options?
13422compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13423
13424# Must we lock files when doing compilation?
13425need_locks=$lt_need_locks
13426
13427# Do we need the lib prefix for modules?
13428need_lib_prefix=$need_lib_prefix
13429
13430# Do we need a version for libraries?
13431need_version=$need_version
13432
13433# Whether dlopen is supported.
13434dlopen_support=$enable_dlopen
13435
13436# Whether dlopen of programs is supported.
13437dlopen_self=$enable_dlopen_self
13438
13439# Whether dlopen of statically linked programs is supported.
13440dlopen_self_static=$enable_dlopen_self_static
13441
13442# Compiler flag to prevent dynamic linking.
13443link_static_flag=$lt_lt_prog_compiler_static
13444
13445# Compiler flag to turn off builtin functions.
13446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13447
13448# Compiler flag to allow reflexive dlopens.
13449export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13450
13451# Compiler flag to generate shared objects directly from archives.
13452whole_archive_flag_spec=$lt_whole_archive_flag_spec
13453
13454# Compiler flag to generate thread-safe objects.
13455thread_safe_flag_spec=$lt_thread_safe_flag_spec
13456
13457# Library versioning type.
13458version_type=$version_type
13459
13460# Format of library name prefix.
13461libname_spec=$lt_libname_spec
13462
13463# List of archive names.  First name is the real one, the rest are links.
13464# The last name is the one that the linker finds with -lNAME.
13465library_names_spec=$lt_library_names_spec
13466
13467# The coded name of the library, if different from the real name.
13468soname_spec=$lt_soname_spec
13469
13470# Commands used to build and install an old-style archive.
13471RANLIB=$lt_RANLIB
13472old_archive_cmds=$lt_old_archive_cmds
13473old_postinstall_cmds=$lt_old_postinstall_cmds
13474old_postuninstall_cmds=$lt_old_postuninstall_cmds
13475
13476# Create an old-style archive from a shared archive.
13477old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13478
13479# Create a temporary old-style archive to link instead of a shared archive.
13480old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13481
13482# Commands used to build and install a shared archive.
13483archive_cmds=$lt_archive_cmds
13484archive_expsym_cmds=$lt_archive_expsym_cmds
13485postinstall_cmds=$lt_postinstall_cmds
13486postuninstall_cmds=$lt_postuninstall_cmds
13487
13488# Commands used to build a loadable module (assumed same as above if empty)
13489module_cmds=$lt_module_cmds
13490module_expsym_cmds=$lt_module_expsym_cmds
13491
13492# Commands to strip libraries.
13493old_striplib=$lt_old_striplib
13494striplib=$lt_striplib
13495
13496# Dependencies to place before the objects being linked to create a
13497# shared library.
13498predep_objects=$lt_predep_objects
13499
13500# Dependencies to place after the objects being linked to create a
13501# shared library.
13502postdep_objects=$lt_postdep_objects
13503
13504# Dependencies to place before the objects being linked to create a
13505# shared library.
13506predeps=$lt_predeps
13507
13508# Dependencies to place after the objects being linked to create a
13509# shared library.
13510postdeps=$lt_postdeps
13511
13512# The library search path used internally by the compiler when linking
13513# a shared library.
13514compiler_lib_search_path=$lt_compiler_lib_search_path
13515
13516# Method to check whether dependent libraries are shared objects.
13517deplibs_check_method=$lt_deplibs_check_method
13518
13519# Command to use when deplibs_check_method == file_magic.
13520file_magic_cmd=$lt_file_magic_cmd
13521
13522# Flag that allows shared libraries with undefined symbols to be built.
13523allow_undefined_flag=$lt_allow_undefined_flag
13524
13525# Flag that forces no undefined symbols.
13526no_undefined_flag=$lt_no_undefined_flag
13527
13528# Commands used to finish a libtool library installation in a directory.
13529finish_cmds=$lt_finish_cmds
13530
13531# Same as above, but a single script fragment to be evaled but not shown.
13532finish_eval=$lt_finish_eval
13533
13534# Take the output of nm and produce a listing of raw symbols and C names.
13535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13536
13537# Transform the output of nm in a proper C declaration
13538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13539
13540# Transform the output of nm in a C name address pair
13541global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13542
13543# This is the shared library runtime path variable.
13544runpath_var=$runpath_var
13545
13546# This is the shared library path variable.
13547shlibpath_var=$shlibpath_var
13548
13549# Is shlibpath searched before the hard-coded library search path?
13550shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13551
13552# How to hardcode a shared library path into an executable.
13553hardcode_action=$hardcode_action
13554
13555# Whether we should hardcode library paths into libraries.
13556hardcode_into_libs=$hardcode_into_libs
13557
13558# Flag to hardcode \$libdir into a binary during linking.
13559# This must work even if \$libdir does not exist.
13560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13561
13562# If ld is used when linking, flag to hardcode \$libdir into
13563# a binary during linking. This must work even if \$libdir does
13564# not exist.
13565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13566
13567# Whether we need a single -rpath flag with a separated argument.
13568hardcode_libdir_separator=$lt_hardcode_libdir_separator
13569
13570# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13571# resulting binary.
13572hardcode_direct=$hardcode_direct
13573
13574# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13575# resulting binary.
13576hardcode_minus_L=$hardcode_minus_L
13577
13578# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13579# the resulting binary.
13580hardcode_shlibpath_var=$hardcode_shlibpath_var
13581
13582# Set to yes if building a shared library automatically hardcodes DIR into the library
13583# and all subsequent libraries and executables linked against it.
13584hardcode_automatic=$hardcode_automatic
13585
13586# Variables whose values should be saved in libtool wrapper scripts and
13587# restored at relink time.
13588variables_saved_for_relink="$variables_saved_for_relink"
13589
13590# Whether libtool must link a program against all its dependency libraries.
13591link_all_deplibs=$link_all_deplibs
13592
13593# Compile-time system search path for libraries
13594sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13595
13596# Run-time system search path for libraries
13597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13598
13599# Fix the shell variable \$srcfile for the compiler.
13600fix_srcfile_path="$fix_srcfile_path"
13601
13602# Set to yes if exported symbols are required.
13603always_export_symbols=$always_export_symbols
13604
13605# The commands to list exported symbols.
13606export_symbols_cmds=$lt_export_symbols_cmds
13607
13608# The commands to extract the exported symbol list from a shared archive.
13609extract_expsyms_cmds=$lt_extract_expsyms_cmds
13610
13611# Symbols that should not be listed in the preloaded symbols.
13612exclude_expsyms=$lt_exclude_expsyms
13613
13614# Symbols that must always be exported.
13615include_expsyms=$lt_include_expsyms
13616
13617# ### END LIBTOOL CONFIG
13618
13619__EOF__
13620
13621
13622  case $host_os in
13623  aix3*)
13624    cat <<\EOF >> "$cfgfile"
13625
13626# AIX sometimes has problems with the GCC collect2 program.  For some
13627# reason, if we set the COLLECT_NAMES environment variable, the problems
13628# vanish in a puff of smoke.
13629if test "X${COLLECT_NAMES+set}" != Xset; then
13630  COLLECT_NAMES=
13631  export COLLECT_NAMES
13632fi
13633EOF
13634    ;;
13635  esac
13636
13637  # We use sed instead of cat because bash on DJGPP gets confused if
13638  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13639  # text mode, it properly converts lines to CR/LF.  This bash problem
13640  # is reportedly fixed, but why not run on old versions too?
13641  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13642
13643  mv -f "$cfgfile" "$ofile" || \
13644    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13645  chmod +x "$ofile"
13646
13647else
13648  # If there is no Makefile yet, we rely on a make rule to execute
13649  # `config.status --recheck' to rerun these tests and create the
13650  # libtool script then.
13651  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13652  if test -f "$ltmain_in"; then
13653    test -f Makefile && make "$ltmain"
13654  fi
13655fi
13656
13657
13658ac_ext=c
13659ac_cpp='$CPP $CPPFLAGS'
13660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13662ac_compiler_gnu=$ac_cv_c_compiler_gnu
13663
13664CC="$lt_save_CC"
13665
13666
13667# Check whether --with-tags or --without-tags was given.
13668if test "${with_tags+set}" = set; then
13669  withval="$with_tags"
13670  tagnames="$withval"
13671fi;
13672
13673if test -f "$ltmain" && test -n "$tagnames"; then
13674  if test ! -f "${ofile}"; then
13675    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13676echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13677  fi
13678
13679  if test -z "$LTCC"; then
13680    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13681    if test -z "$LTCC"; then
13682      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13683echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13684    else
13685      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13686echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13687    fi
13688  fi
13689  if test -z "$LTCFLAGS"; then
13690    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13691  fi
13692
13693  # Extract list of available tagged configurations in $ofile.
13694  # Note that this assumes the entire list is on one line.
13695  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13696
13697  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13698  for tagname in $tagnames; do
13699    IFS="$lt_save_ifs"
13700    # Check whether tagname contains only valid characters
13701    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13702    "") ;;
13703    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13704echo "$as_me: error: invalid tag name: $tagname" >&2;}
13705   { (exit 1); exit 1; }; }
13706	;;
13707    esac
13708
13709    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13710    then
13711      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13712echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13713   { (exit 1); exit 1; }; }
13714    fi
13715
13716    # Update the list of available tags.
13717    if test -n "$tagname"; then
13718      echo appending configuration tag \"$tagname\" to $ofile
13719
13720      case $tagname in
13721      CXX)
13722	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13723	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13724	    (test "X$CXX" != "Xg++"))) ; then
13725	  ac_ext=cc
13726ac_cpp='$CXXCPP $CPPFLAGS'
13727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13730
13731
13732
13733
13734archive_cmds_need_lc_CXX=no
13735allow_undefined_flag_CXX=
13736always_export_symbols_CXX=no
13737archive_expsym_cmds_CXX=
13738export_dynamic_flag_spec_CXX=
13739hardcode_direct_CXX=no
13740hardcode_libdir_flag_spec_CXX=
13741hardcode_libdir_flag_spec_ld_CXX=
13742hardcode_libdir_separator_CXX=
13743hardcode_minus_L_CXX=no
13744hardcode_shlibpath_var_CXX=unsupported
13745hardcode_automatic_CXX=no
13746module_cmds_CXX=
13747module_expsym_cmds_CXX=
13748link_all_deplibs_CXX=unknown
13749old_archive_cmds_CXX=$old_archive_cmds
13750no_undefined_flag_CXX=
13751whole_archive_flag_spec_CXX=
13752enable_shared_with_static_runtimes_CXX=no
13753
13754# Dependencies to place before and after the object being linked:
13755predep_objects_CXX=
13756postdep_objects_CXX=
13757predeps_CXX=
13758postdeps_CXX=
13759compiler_lib_search_path_CXX=
13760
13761# Source file extension for C++ test sources.
13762ac_ext=cpp
13763
13764# Object file extension for compiled C++ test sources.
13765objext=o
13766objext_CXX=$objext
13767
13768# Code to be used in simple compile tests
13769lt_simple_compile_test_code="int some_variable = 0;\n"
13770
13771# Code to be used in simple link tests
13772lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
13773
13774# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13775
13776# If no C compiler was specified, use CC.
13777LTCC=${LTCC-"$CC"}
13778
13779# If no C compiler flags were specified, use CFLAGS.
13780LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13781
13782# Allow CC to be a program name with arguments.
13783compiler=$CC
13784
13785
13786# save warnings/boilerplate of simple test code
13787ac_outfile=conftest.$ac_objext
13788printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13790_lt_compiler_boilerplate=`cat conftest.err`
13791$rm conftest*
13792
13793ac_outfile=conftest.$ac_objext
13794printf "$lt_simple_link_test_code" >conftest.$ac_ext
13795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13796_lt_linker_boilerplate=`cat conftest.err`
13797$rm conftest*
13798
13799
13800# Allow CC to be a program name with arguments.
13801lt_save_CC=$CC
13802lt_save_LD=$LD
13803lt_save_GCC=$GCC
13804GCC=$GXX
13805lt_save_with_gnu_ld=$with_gnu_ld
13806lt_save_path_LD=$lt_cv_path_LD
13807if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13808  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13809else
13810  $as_unset lt_cv_prog_gnu_ld
13811fi
13812if test -n "${lt_cv_path_LDCXX+set}"; then
13813  lt_cv_path_LD=$lt_cv_path_LDCXX
13814else
13815  $as_unset lt_cv_path_LD
13816fi
13817test -z "${LDCXX+set}" || LD=$LDCXX
13818CC=${CXX-"c++"}
13819compiler=$CC
13820compiler_CXX=$CC
13821for cc_temp in $compiler""; do
13822  case $cc_temp in
13823    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13824    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13825    \-*) ;;
13826    *) break;;
13827  esac
13828done
13829cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13830
13831
13832# We don't want -fno-exception wen compiling C++ code, so set the
13833# no_builtin_flag separately
13834if test "$GXX" = yes; then
13835  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13836else
13837  lt_prog_compiler_no_builtin_flag_CXX=
13838fi
13839
13840if test "$GXX" = yes; then
13841  # Set up default GNU C++ configuration
13842
13843
13844# Check whether --with-gnu-ld or --without-gnu-ld was given.
13845if test "${with_gnu_ld+set}" = set; then
13846  withval="$with_gnu_ld"
13847  test "$withval" = no || with_gnu_ld=yes
13848else
13849  with_gnu_ld=no
13850fi;
13851ac_prog=ld
13852if test "$GCC" = yes; then
13853  # Check if gcc -print-prog-name=ld gives a path.
13854  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13855echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13856  case $host in
13857  *-*-mingw*)
13858    # gcc leaves a trailing carriage return which upsets mingw
13859    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13860  *)
13861    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13862  esac
13863  case $ac_prog in
13864    # Accept absolute paths.
13865    [\\/]* | ?:[\\/]*)
13866      re_direlt='/[^/][^/]*/\.\./'
13867      # Canonicalize the pathname of ld
13868      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13869      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13870	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13871      done
13872      test -z "$LD" && LD="$ac_prog"
13873      ;;
13874  "")
13875    # If it fails, then pretend we aren't using GCC.
13876    ac_prog=ld
13877    ;;
13878  *)
13879    # If it is relative, then search for the first ld in PATH.
13880    with_gnu_ld=unknown
13881    ;;
13882  esac
13883elif test "$with_gnu_ld" = yes; then
13884  echo "$as_me:$LINENO: checking for GNU ld" >&5
13885echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13886else
13887  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13888echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13889fi
13890if test "${lt_cv_path_LD+set}" = set; then
13891  echo $ECHO_N "(cached) $ECHO_C" >&6
13892else
13893  if test -z "$LD"; then
13894  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13895  for ac_dir in $PATH; do
13896    IFS="$lt_save_ifs"
13897    test -z "$ac_dir" && ac_dir=.
13898    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13899      lt_cv_path_LD="$ac_dir/$ac_prog"
13900      # Check to see if the program is GNU ld.  I'd rather use --version,
13901      # but apparently some variants of GNU ld only accept -v.
13902      # Break only if it was the GNU/non-GNU ld that we prefer.
13903      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13904      *GNU* | *'with BFD'*)
13905	test "$with_gnu_ld" != no && break
13906	;;
13907      *)
13908	test "$with_gnu_ld" != yes && break
13909	;;
13910      esac
13911    fi
13912  done
13913  IFS="$lt_save_ifs"
13914else
13915  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13916fi
13917fi
13918
13919LD="$lt_cv_path_LD"
13920if test -n "$LD"; then
13921  echo "$as_me:$LINENO: result: $LD" >&5
13922echo "${ECHO_T}$LD" >&6
13923else
13924  echo "$as_me:$LINENO: result: no" >&5
13925echo "${ECHO_T}no" >&6
13926fi
13927test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13928echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13929   { (exit 1); exit 1; }; }
13930echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13931echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13932if test "${lt_cv_prog_gnu_ld+set}" = set; then
13933  echo $ECHO_N "(cached) $ECHO_C" >&6
13934else
13935  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13936case `$LD -v 2>&1 </dev/null` in
13937*GNU* | *'with BFD'*)
13938  lt_cv_prog_gnu_ld=yes
13939  ;;
13940*)
13941  lt_cv_prog_gnu_ld=no
13942  ;;
13943esac
13944fi
13945echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13946echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13947with_gnu_ld=$lt_cv_prog_gnu_ld
13948
13949
13950
13951  # Check if GNU C++ uses GNU ld as the underlying linker, since the
13952  # archiving commands below assume that GNU ld is being used.
13953  if test "$with_gnu_ld" = yes; then
13954    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13955    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'
13956
13957    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13958    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13959
13960    # If archive_cmds runs LD, not CC, wlarc should be empty
13961    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13962    #     investigate it a little bit more. (MM)
13963    wlarc='${wl}'
13964
13965    # ancient GNU ld didn't support --whole-archive et. al.
13966    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13967	grep 'no-whole-archive' > /dev/null; then
13968      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13969    else
13970      whole_archive_flag_spec_CXX=
13971    fi
13972  else
13973    with_gnu_ld=no
13974    wlarc=
13975
13976    # A generic and very simple default shared library creation
13977    # command for GNU C++ for the case where it uses the native
13978    # linker, instead of GNU ld.  If possible, this setting should
13979    # overridden to take advantage of the native linker features on
13980    # the platform it is being used on.
13981    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13982  fi
13983
13984  # Commands to make compiler produce verbose output that lists
13985  # what "hidden" libraries, object files and flags are used when
13986  # linking a shared library.
13987  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13988
13989else
13990  GXX=no
13991  with_gnu_ld=no
13992  wlarc=
13993fi
13994
13995# PORTME: fill in a description of your system's C++ link characteristics
13996echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13997echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13998ld_shlibs_CXX=yes
13999case $host_os in
14000  aix3*)
14001    # FIXME: insert proper C++ library support
14002    ld_shlibs_CXX=no
14003    ;;
14004  aix4* | aix5*)
14005    if test "$host_cpu" = ia64; then
14006      # On IA64, the linker does run time linking by default, so we don't
14007      # have to do anything special.
14008      aix_use_runtimelinking=no
14009      exp_sym_flag='-Bexport'
14010      no_entry_flag=""
14011    else
14012      aix_use_runtimelinking=no
14013
14014      # Test if we are trying to use run time linking or normal
14015      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14016      # need to do runtime linking.
14017      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14018	for ld_flag in $LDFLAGS; do
14019	  case $ld_flag in
14020	  *-brtl*)
14021	    aix_use_runtimelinking=yes
14022	    break
14023	    ;;
14024	  esac
14025	done
14026	;;
14027      esac
14028
14029      exp_sym_flag='-bexport'
14030      no_entry_flag='-bnoentry'
14031    fi
14032
14033    # When large executables or shared objects are built, AIX ld can
14034    # have problems creating the table of contents.  If linking a library
14035    # or program results in "error TOC overflow" add -mminimal-toc to
14036    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14037    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14038
14039    archive_cmds_CXX=''
14040    hardcode_direct_CXX=yes
14041    hardcode_libdir_separator_CXX=':'
14042    link_all_deplibs_CXX=yes
14043
14044    if test "$GXX" = yes; then
14045      case $host_os in aix4.[012]|aix4.[012].*)
14046      # We only want to do this on AIX 4.2 and lower, the check
14047      # below for broken collect2 doesn't work under 4.3+
14048	collect2name=`${CC} -print-prog-name=collect2`
14049	if test -f "$collect2name" && \
14050	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14051	then
14052	  # We have reworked collect2
14053	  hardcode_direct_CXX=yes
14054	else
14055	  # We have old collect2
14056	  hardcode_direct_CXX=unsupported
14057	  # It fails to find uninstalled libraries when the uninstalled
14058	  # path is not listed in the libpath.  Setting hardcode_minus_L
14059	  # to unsupported forces relinking
14060	  hardcode_minus_L_CXX=yes
14061	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14062	  hardcode_libdir_separator_CXX=
14063	fi
14064	;;
14065      esac
14066      shared_flag='-shared'
14067      if test "$aix_use_runtimelinking" = yes; then
14068	shared_flag="$shared_flag "'${wl}-G'
14069      fi
14070    else
14071      # not using gcc
14072      if test "$host_cpu" = ia64; then
14073	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14074	# chokes on -Wl,-G. The following line is correct:
14075	shared_flag='-G'
14076      else
14077	if test "$aix_use_runtimelinking" = yes; then
14078	  shared_flag='${wl}-G'
14079	else
14080	  shared_flag='${wl}-bM:SRE'
14081	fi
14082      fi
14083    fi
14084
14085    # It seems that -bexpall does not export symbols beginning with
14086    # underscore (_), so it is better to generate a list of symbols to export.
14087    always_export_symbols_CXX=yes
14088    if test "$aix_use_runtimelinking" = yes; then
14089      # Warning - without using the other runtime loading flags (-brtl),
14090      # -berok will link without error, but may produce a broken library.
14091      allow_undefined_flag_CXX='-berok'
14092      # Determine the default libpath from the value encoded in an empty executable.
14093      cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h.  */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h.  */
14099
14100int
14101main ()
14102{
14103
14104  ;
14105  return 0;
14106}
14107_ACEOF
14108rm -f conftest.$ac_objext conftest$ac_exeext
14109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14110  (eval $ac_link) 2>conftest.er1
14111  ac_status=$?
14112  grep -v '^ *+' conftest.er1 >conftest.err
14113  rm -f conftest.er1
14114  cat conftest.err >&5
14115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116  (exit $ac_status); } &&
14117	 { ac_try='test -z "$ac_cxx_werror_flag"
14118			 || test ! -s conftest.err'
14119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120  (eval $ac_try) 2>&5
14121  ac_status=$?
14122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123  (exit $ac_status); }; } &&
14124	 { ac_try='test -s conftest$ac_exeext'
14125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126  (eval $ac_try) 2>&5
14127  ac_status=$?
14128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129  (exit $ac_status); }; }; then
14130
14131aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14132}'`
14133# Check for a 64-bit object if we didn't find anything.
14134if 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; }
14135}'`; fi
14136else
14137  echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
14140fi
14141rm -f conftest.err conftest.$ac_objext \
14142      conftest$ac_exeext conftest.$ac_ext
14143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14144
14145      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14146
14147      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"
14148     else
14149      if test "$host_cpu" = ia64; then
14150	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14151	allow_undefined_flag_CXX="-z nodefs"
14152	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"
14153      else
14154	# Determine the default libpath from the value encoded in an empty executable.
14155	cat >conftest.$ac_ext <<_ACEOF
14156/* confdefs.h.  */
14157_ACEOF
14158cat confdefs.h >>conftest.$ac_ext
14159cat >>conftest.$ac_ext <<_ACEOF
14160/* end confdefs.h.  */
14161
14162int
14163main ()
14164{
14165
14166  ;
14167  return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext conftest$ac_exeext
14171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14172  (eval $ac_link) 2>conftest.er1
14173  ac_status=$?
14174  grep -v '^ *+' conftest.er1 >conftest.err
14175  rm -f conftest.er1
14176  cat conftest.err >&5
14177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178  (exit $ac_status); } &&
14179	 { ac_try='test -z "$ac_cxx_werror_flag"
14180			 || test ! -s conftest.err'
14181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182  (eval $ac_try) 2>&5
14183  ac_status=$?
14184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185  (exit $ac_status); }; } &&
14186	 { ac_try='test -s conftest$ac_exeext'
14187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188  (eval $ac_try) 2>&5
14189  ac_status=$?
14190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191  (exit $ac_status); }; }; then
14192
14193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14194}'`
14195# Check for a 64-bit object if we didn't find anything.
14196if 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; }
14197}'`; fi
14198else
14199  echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202fi
14203rm -f conftest.err conftest.$ac_objext \
14204      conftest$ac_exeext conftest.$ac_ext
14205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14206
14207	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14208	# Warning - without using the other run time loading flags,
14209	# -berok will link without error, but may produce a broken library.
14210	no_undefined_flag_CXX=' ${wl}-bernotok'
14211	allow_undefined_flag_CXX=' ${wl}-berok'
14212	# Exported symbols can be pulled into shared objects from archives
14213	whole_archive_flag_spec_CXX='$convenience'
14214	archive_cmds_need_lc_CXX=yes
14215	# This is similar to how AIX traditionally builds its shared libraries.
14216	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'
14217      fi
14218    fi
14219    ;;
14220
14221  beos*)
14222    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14223      allow_undefined_flag_CXX=unsupported
14224      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14225      # support --undefined.  This deserves some investigation.  FIXME
14226      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227    else
14228      ld_shlibs_CXX=no
14229    fi
14230    ;;
14231
14232  chorus*)
14233    case $cc_basename in
14234      *)
14235	# FIXME: insert proper C++ library support
14236	ld_shlibs_CXX=no
14237	;;
14238    esac
14239    ;;
14240
14241  cygwin* | mingw* | pw32*)
14242    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14243    # as there is no search path for DLLs.
14244    hardcode_libdir_flag_spec_CXX='-L$libdir'
14245    allow_undefined_flag_CXX=unsupported
14246    always_export_symbols_CXX=no
14247    enable_shared_with_static_runtimes_CXX=yes
14248
14249    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14250      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'
14251      # If the export-symbols file already is a .def file (1st line
14252      # is EXPORTS), use it as is; otherwise, prepend...
14253      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14254	cp $export_symbols $output_objdir/$soname.def;
14255      else
14256	echo EXPORTS > $output_objdir/$soname.def;
14257	cat $export_symbols >> $output_objdir/$soname.def;
14258      fi~
14259      $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'
14260    else
14261      ld_shlibs_CXX=no
14262    fi
14263  ;;
14264      darwin* | rhapsody*)
14265        case $host_os in
14266        rhapsody* | darwin1.[012])
14267         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14268         ;;
14269       *) # Darwin 1.3 on
14270         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14271           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14272         else
14273           case ${MACOSX_DEPLOYMENT_TARGET} in
14274             10.[012])
14275               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14276               ;;
14277             10.*)
14278               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
14279               ;;
14280           esac
14281         fi
14282         ;;
14283        esac
14284      archive_cmds_need_lc_CXX=no
14285      hardcode_direct_CXX=no
14286      hardcode_automatic_CXX=yes
14287      hardcode_shlibpath_var_CXX=unsupported
14288      whole_archive_flag_spec_CXX=''
14289      link_all_deplibs_CXX=yes
14290
14291    if test "$GXX" = yes ; then
14292      lt_int_apple_cc_single_mod=no
14293      output_verbose_link_cmd='echo'
14294      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
14295       lt_int_apple_cc_single_mod=yes
14296      fi
14297      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14298       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14299      else
14300          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'
14301        fi
14302        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14303        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14304          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14305            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}'
14306          else
14307            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}'
14308          fi
14309            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}'
14310      else
14311      case $cc_basename in
14312        xlc*)
14313         output_verbose_link_cmd='echo'
14314          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'
14315          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14316          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14317          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}'
14318          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}'
14319          ;;
14320       *)
14321         ld_shlibs_CXX=no
14322          ;;
14323      esac
14324      fi
14325        ;;
14326
14327  dgux*)
14328    case $cc_basename in
14329      ec++*)
14330	# FIXME: insert proper C++ library support
14331	ld_shlibs_CXX=no
14332	;;
14333      ghcx*)
14334	# Green Hills C++ Compiler
14335	# FIXME: insert proper C++ library support
14336	ld_shlibs_CXX=no
14337	;;
14338      *)
14339	# FIXME: insert proper C++ library support
14340	ld_shlibs_CXX=no
14341	;;
14342    esac
14343    ;;
14344  freebsd[12]*)
14345    # C++ shared libraries reported to be fairly broken before switch to ELF
14346    ld_shlibs_CXX=no
14347    ;;
14348  freebsd-elf*)
14349    archive_cmds_need_lc_CXX=no
14350    ;;
14351  freebsd* | kfreebsd*-gnu | dragonfly*)
14352    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14353    # conventions
14354    ld_shlibs_CXX=yes
14355    ;;
14356  gnu*)
14357    ;;
14358  hpux9*)
14359    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14360    hardcode_libdir_separator_CXX=:
14361    export_dynamic_flag_spec_CXX='${wl}-E'
14362    hardcode_direct_CXX=yes
14363    hardcode_minus_L_CXX=yes # Not in the search PATH,
14364				# but as the default
14365				# location of the library.
14366
14367    case $cc_basename in
14368    CC*)
14369      # FIXME: insert proper C++ library support
14370      ld_shlibs_CXX=no
14371      ;;
14372    aCC*)
14373      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'
14374      # Commands to make compiler produce verbose output that lists
14375      # what "hidden" libraries, object files and flags are used when
14376      # linking a shared library.
14377      #
14378      # There doesn't appear to be a way to prevent this compiler from
14379      # explicitly linking system object files so we need to strip them
14380      # from the output so that they don't get included in the library
14381      # dependencies.
14382      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'
14383      ;;
14384    *)
14385      if test "$GXX" = yes; then
14386        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'
14387      else
14388        # FIXME: insert proper C++ library support
14389        ld_shlibs_CXX=no
14390      fi
14391      ;;
14392    esac
14393    ;;
14394  hpux10*|hpux11*)
14395    if test $with_gnu_ld = no; then
14396      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14397      hardcode_libdir_separator_CXX=:
14398
14399      case $host_cpu in
14400      hppa*64*|ia64*)
14401	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14402        ;;
14403      *)
14404	export_dynamic_flag_spec_CXX='${wl}-E'
14405        ;;
14406      esac
14407    fi
14408    case $host_cpu in
14409    hppa*64*|ia64*)
14410      hardcode_direct_CXX=no
14411      hardcode_shlibpath_var_CXX=no
14412      ;;
14413    *)
14414      hardcode_direct_CXX=yes
14415      hardcode_minus_L_CXX=yes # Not in the search PATH,
14416					      # but as the default
14417					      # location of the library.
14418      ;;
14419    esac
14420
14421    case $cc_basename in
14422      CC*)
14423	# FIXME: insert proper C++ library support
14424	ld_shlibs_CXX=no
14425	;;
14426      aCC*)
14427	case $host_cpu in
14428	hppa*64*)
14429	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14430	  ;;
14431	ia64*)
14432	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14433	  ;;
14434	*)
14435	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14436	  ;;
14437	esac
14438	# Commands to make compiler produce verbose output that lists
14439	# what "hidden" libraries, object files and flags are used when
14440	# linking a shared library.
14441	#
14442	# There doesn't appear to be a way to prevent this compiler from
14443	# explicitly linking system object files so we need to strip them
14444	# from the output so that they don't get included in the library
14445	# dependencies.
14446	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'
14447	;;
14448      *)
14449	if test "$GXX" = yes; then
14450	  if test $with_gnu_ld = no; then
14451	    case $host_cpu in
14452	    hppa*64*)
14453	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14454	      ;;
14455	    ia64*)
14456	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14457	      ;;
14458	    *)
14459	      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'
14460	      ;;
14461	    esac
14462	  fi
14463	else
14464	  # FIXME: insert proper C++ library support
14465	  ld_shlibs_CXX=no
14466	fi
14467	;;
14468    esac
14469    ;;
14470  interix3*)
14471    hardcode_direct_CXX=no
14472    hardcode_shlibpath_var_CXX=no
14473    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14474    export_dynamic_flag_spec_CXX='${wl}-E'
14475    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14476    # Instead, shared libraries are loaded at an image base (0x10000000 by
14477    # default) and relocated if they conflict, which is a slow very memory
14478    # consuming and fragmenting process.  To avoid this, we pick a random,
14479    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14480    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14481    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'
14482    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'
14483    ;;
14484  irix5* | irix6*)
14485    case $cc_basename in
14486      CC*)
14487	# SGI C++
14488	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'
14489
14490	# Archives containing C++ object files must be created using
14491	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14492	# necessary to make sure instantiated templates are included
14493	# in the archive.
14494	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14495	;;
14496      *)
14497	if test "$GXX" = yes; then
14498	  if test "$with_gnu_ld" = no; then
14499	    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'
14500	  else
14501	    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'
14502	  fi
14503	fi
14504	link_all_deplibs_CXX=yes
14505	;;
14506    esac
14507    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14508    hardcode_libdir_separator_CXX=:
14509    ;;
14510  linux*)
14511    case $cc_basename in
14512      KCC*)
14513	# Kuck and Associates, Inc. (KAI) C++ Compiler
14514
14515	# KCC will only create a shared library if the output file
14516	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14517	# to its proper name (with version) after linking.
14518	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'
14519	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'
14520	# Commands to make compiler produce verbose output that lists
14521	# what "hidden" libraries, object files and flags are used when
14522	# linking a shared library.
14523	#
14524	# There doesn't appear to be a way to prevent this compiler from
14525	# explicitly linking system object files so we need to strip them
14526	# from the output so that they don't get included in the library
14527	# dependencies.
14528	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'
14529
14530	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14531	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14532
14533	# Archives containing C++ object files must be created using
14534	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14535	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14536	;;
14537      icpc*)
14538	# Intel C++
14539	with_gnu_ld=yes
14540	# version 8.0 and above of icpc choke on multiply defined symbols
14541	# if we add $predep_objects and $postdep_objects, however 7.1 and
14542	# earlier do not add the objects themselves.
14543	case `$CC -V 2>&1` in
14544	*"Version 7."*)
14545  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14546  	  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'
14547	  ;;
14548	*)  # Version 8.0 or newer
14549	  tmp_idyn=
14550	  case $host_cpu in
14551	    ia64*) tmp_idyn=' -i_dynamic';;
14552	  esac
14553  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554	  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'
14555	  ;;
14556	esac
14557	archive_cmds_need_lc_CXX=no
14558	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14559	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14560	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14561	;;
14562      pgCC*)
14563        # Portland Group C++ compiler
14564	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14565  	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'
14566
14567	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14568	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14569	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'
14570        ;;
14571      cxx*)
14572	# Compaq C++
14573	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574	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'
14575
14576	runpath_var=LD_RUN_PATH
14577	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14578	hardcode_libdir_separator_CXX=:
14579
14580	# Commands to make compiler produce verbose output that lists
14581	# what "hidden" libraries, object files and flags are used when
14582	# linking a shared library.
14583	#
14584	# There doesn't appear to be a way to prevent this compiler from
14585	# explicitly linking system object files so we need to strip them
14586	# from the output so that they don't get included in the library
14587	# dependencies.
14588	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'
14589	;;
14590    esac
14591    ;;
14592  lynxos*)
14593    # FIXME: insert proper C++ library support
14594    ld_shlibs_CXX=no
14595    ;;
14596  m88k*)
14597    # FIXME: insert proper C++ library support
14598    ld_shlibs_CXX=no
14599    ;;
14600  mvs*)
14601    case $cc_basename in
14602      cxx*)
14603	# FIXME: insert proper C++ library support
14604	ld_shlibs_CXX=no
14605	;;
14606      *)
14607	# FIXME: insert proper C++ library support
14608	ld_shlibs_CXX=no
14609	;;
14610    esac
14611    ;;
14612  netbsd*)
14613    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14614      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14615      wlarc=
14616      hardcode_libdir_flag_spec_CXX='-R$libdir'
14617      hardcode_direct_CXX=yes
14618      hardcode_shlibpath_var_CXX=no
14619    fi
14620    # Workaround some broken pre-1.5 toolchains
14621    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14622    ;;
14623  openbsd2*)
14624    # C++ shared libraries are fairly broken
14625    ld_shlibs_CXX=no
14626    ;;
14627  openbsd*)
14628    hardcode_direct_CXX=yes
14629    hardcode_shlibpath_var_CXX=no
14630    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14631    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14632    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14633      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14634      export_dynamic_flag_spec_CXX='${wl}-E'
14635      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14636    fi
14637    output_verbose_link_cmd='echo'
14638    ;;
14639  osf3*)
14640    case $cc_basename in
14641      KCC*)
14642	# Kuck and Associates, Inc. (KAI) C++ Compiler
14643
14644	# KCC will only create a shared library if the output file
14645	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14646	# to its proper name (with version) after linking.
14647	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'
14648
14649	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14650	hardcode_libdir_separator_CXX=:
14651
14652	# Archives containing C++ object files must be created using
14653	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14654	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14655
14656	;;
14657      RCC*)
14658	# Rational C++ 2.4.1
14659	# FIXME: insert proper C++ library support
14660	ld_shlibs_CXX=no
14661	;;
14662      cxx*)
14663	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14664	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'
14665
14666	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14667	hardcode_libdir_separator_CXX=:
14668
14669	# Commands to make compiler produce verbose output that lists
14670	# what "hidden" libraries, object files and flags are used when
14671	# linking a shared library.
14672	#
14673	# There doesn't appear to be a way to prevent this compiler from
14674	# explicitly linking system object files so we need to strip them
14675	# from the output so that they don't get included in the library
14676	# dependencies.
14677	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'
14678	;;
14679      *)
14680	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14681	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14682	  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'
14683
14684	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14685	  hardcode_libdir_separator_CXX=:
14686
14687	  # Commands to make compiler produce verbose output that lists
14688	  # what "hidden" libraries, object files and flags are used when
14689	  # linking a shared library.
14690	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14691
14692	else
14693	  # FIXME: insert proper C++ library support
14694	  ld_shlibs_CXX=no
14695	fi
14696	;;
14697    esac
14698    ;;
14699  osf4* | osf5*)
14700    case $cc_basename in
14701      KCC*)
14702	# Kuck and Associates, Inc. (KAI) C++ Compiler
14703
14704	# KCC will only create a shared library if the output file
14705	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14706	# to its proper name (with version) after linking.
14707	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'
14708
14709	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14710	hardcode_libdir_separator_CXX=:
14711
14712	# Archives containing C++ object files must be created using
14713	# the KAI C++ compiler.
14714	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14715	;;
14716      RCC*)
14717	# Rational C++ 2.4.1
14718	# FIXME: insert proper C++ library support
14719	ld_shlibs_CXX=no
14720	;;
14721      cxx*)
14722	allow_undefined_flag_CXX=' -expect_unresolved \*'
14723	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'
14724	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14725	  echo "-hidden">> $lib.exp~
14726	  $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~
14727	  $rm $lib.exp'
14728
14729	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14730	hardcode_libdir_separator_CXX=:
14731
14732	# Commands to make compiler produce verbose output that lists
14733	# what "hidden" libraries, object files and flags are used when
14734	# linking a shared library.
14735	#
14736	# There doesn't appear to be a way to prevent this compiler from
14737	# explicitly linking system object files so we need to strip them
14738	# from the output so that they don't get included in the library
14739	# dependencies.
14740	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'
14741	;;
14742      *)
14743	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14744	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14745	 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'
14746
14747	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14748	  hardcode_libdir_separator_CXX=:
14749
14750	  # Commands to make compiler produce verbose output that lists
14751	  # what "hidden" libraries, object files and flags are used when
14752	  # linking a shared library.
14753	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14754
14755	else
14756	  # FIXME: insert proper C++ library support
14757	  ld_shlibs_CXX=no
14758	fi
14759	;;
14760    esac
14761    ;;
14762  psos*)
14763    # FIXME: insert proper C++ library support
14764    ld_shlibs_CXX=no
14765    ;;
14766  sunos4*)
14767    case $cc_basename in
14768      CC*)
14769	# Sun C++ 4.x
14770	# FIXME: insert proper C++ library support
14771	ld_shlibs_CXX=no
14772	;;
14773      lcc*)
14774	# Lucid
14775	# FIXME: insert proper C++ library support
14776	ld_shlibs_CXX=no
14777	;;
14778      *)
14779	# FIXME: insert proper C++ library support
14780	ld_shlibs_CXX=no
14781	;;
14782    esac
14783    ;;
14784  solaris*)
14785    case $cc_basename in
14786      CC*)
14787	# Sun C++ 4.2, 5.x and Centerline C++
14788        archive_cmds_need_lc_CXX=yes
14789	no_undefined_flag_CXX=' -zdefs'
14790	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14791	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14792	$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'
14793
14794	hardcode_libdir_flag_spec_CXX='-R$libdir'
14795	hardcode_shlibpath_var_CXX=no
14796	case $host_os in
14797	  solaris2.[0-5] | solaris2.[0-5].*) ;;
14798	  *)
14799	    # The C++ compiler is used as linker so we must use $wl
14800	    # flag to pass the commands to the underlying system
14801	    # linker. We must also pass each convience library through
14802	    # to the system linker between allextract/defaultextract.
14803	    # The C++ compiler will combine linker options so we
14804	    # cannot just pass the convience library names through
14805	    # without $wl.
14806	    # Supported since Solaris 2.6 (maybe 2.5.1?)
14807	    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'
14808	    ;;
14809	esac
14810	link_all_deplibs_CXX=yes
14811
14812	output_verbose_link_cmd='echo'
14813
14814	# Archives containing C++ object files must be created using
14815	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
14816	# necessary to make sure instantiated templates are included
14817	# in the archive.
14818	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14819	;;
14820      gcx*)
14821	# Green Hills C++ Compiler
14822	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14823
14824	# The C++ compiler must be used to create the archive.
14825	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14826	;;
14827      *)
14828	# GNU C++ compiler with Solaris linker
14829	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14830	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14831	  if $CC --version | grep -v '^2\.7' > /dev/null; then
14832	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14833	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14834		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14835
14836	    # Commands to make compiler produce verbose output that lists
14837	    # what "hidden" libraries, object files and flags are used when
14838	    # linking a shared library.
14839	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14840	  else
14841	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
14842	    # platform.
14843	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14844	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14845		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14846
14847	    # Commands to make compiler produce verbose output that lists
14848	    # what "hidden" libraries, object files and flags are used when
14849	    # linking a shared library.
14850	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14851	  fi
14852
14853	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14854	fi
14855	;;
14856    esac
14857    ;;
14858  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14859    no_undefined_flag_CXX='${wl}-z,text'
14860    archive_cmds_need_lc_CXX=no
14861    hardcode_shlibpath_var_CXX=no
14862    runpath_var='LD_RUN_PATH'
14863
14864    case $cc_basename in
14865      CC*)
14866	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14867	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14868	;;
14869      *)
14870	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14871	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14872	;;
14873    esac
14874    ;;
14875  sysv5* | sco3.2v5* | sco5v6*)
14876    # Note: We can NOT use -z defs as we might desire, because we do not
14877    # link with -lc, and that would cause any symbols used from libc to
14878    # always be unresolved, which means just about no library would
14879    # ever link correctly.  If we're not using GNU ld we use -z text
14880    # though, which does catch some bad symbols but isn't as heavy-handed
14881    # as -z defs.
14882    # For security reasons, it is highly recommended that you always
14883    # use absolute paths for naming shared libraries, and exclude the
14884    # DT_RUNPATH tag from executables and libraries.  But doing so
14885    # requires that you compile everything twice, which is a pain.
14886    # So that behaviour is only enabled if SCOABSPATH is set to a
14887    # non-empty value in the environment.  Most likely only useful for
14888    # creating official distributions of packages.
14889    # This is a hack until libtool officially supports absolute path
14890    # names for shared libraries.
14891    no_undefined_flag_CXX='${wl}-z,text'
14892    allow_undefined_flag_CXX='${wl}-z,nodefs'
14893    archive_cmds_need_lc_CXX=no
14894    hardcode_shlibpath_var_CXX=no
14895    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14896    hardcode_libdir_separator_CXX=':'
14897    link_all_deplibs_CXX=yes
14898    export_dynamic_flag_spec_CXX='${wl}-Bexport'
14899    runpath_var='LD_RUN_PATH'
14900
14901    case $cc_basename in
14902      CC*)
14903	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14904	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905	;;
14906      *)
14907	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14908	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14909	;;
14910    esac
14911    ;;
14912  tandem*)
14913    case $cc_basename in
14914      NCC*)
14915	# NonStop-UX NCC 3.20
14916	# FIXME: insert proper C++ library support
14917	ld_shlibs_CXX=no
14918	;;
14919      *)
14920	# FIXME: insert proper C++ library support
14921	ld_shlibs_CXX=no
14922	;;
14923    esac
14924    ;;
14925  vxworks*)
14926    # FIXME: insert proper C++ library support
14927    ld_shlibs_CXX=no
14928    ;;
14929  *)
14930    # FIXME: insert proper C++ library support
14931    ld_shlibs_CXX=no
14932    ;;
14933esac
14934echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14935echo "${ECHO_T}$ld_shlibs_CXX" >&6
14936test "$ld_shlibs_CXX" = no && can_build_shared=no
14937
14938GCC_CXX="$GXX"
14939LD_CXX="$LD"
14940
14941## CAVEAT EMPTOR:
14942## There is no encapsulation within the following macros, do not change
14943## the running order or otherwise move them around unless you know exactly
14944## what you are doing...
14945
14946cat > conftest.$ac_ext <<EOF
14947class Foo
14948{
14949public:
14950  Foo (void) { a = 0; }
14951private:
14952  int a;
14953};
14954EOF
14955
14956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957  (eval $ac_compile) 2>&5
14958  ac_status=$?
14959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960  (exit $ac_status); }; then
14961  # Parse the compiler output and extract the necessary
14962  # objects, libraries and library flags.
14963
14964  # Sentinel used to keep track of whether or not we are before
14965  # the conftest object file.
14966  pre_test_object_deps_done=no
14967
14968  # The `*' in the case matches for architectures that use `case' in
14969  # $output_verbose_cmd can trigger glob expansion during the loop
14970  # eval without this substitution.
14971  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14972
14973  for p in `eval $output_verbose_link_cmd`; do
14974    case $p in
14975
14976    -L* | -R* | -l*)
14977       # Some compilers place space between "-{L,R}" and the path.
14978       # Remove the space.
14979       if test $p = "-L" \
14980	  || test $p = "-R"; then
14981	 prev=$p
14982	 continue
14983       else
14984	 prev=
14985       fi
14986
14987       if test "$pre_test_object_deps_done" = no; then
14988	 case $p in
14989	 -L* | -R*)
14990	   # Internal compiler library paths should come after those
14991	   # provided the user.  The postdeps already come after the
14992	   # user supplied libs so there is no need to process them.
14993	   if test -z "$compiler_lib_search_path_CXX"; then
14994	     compiler_lib_search_path_CXX="${prev}${p}"
14995	   else
14996	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14997	   fi
14998	   ;;
14999	 # The "-l" case would never come before the object being
15000	 # linked, so don't bother handling this case.
15001	 esac
15002       else
15003	 if test -z "$postdeps_CXX"; then
15004	   postdeps_CXX="${prev}${p}"
15005	 else
15006	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15007	 fi
15008       fi
15009       ;;
15010
15011    *.$objext)
15012       # This assumes that the test object file only shows up
15013       # once in the compiler output.
15014       if test "$p" = "conftest.$objext"; then
15015	 pre_test_object_deps_done=yes
15016	 continue
15017       fi
15018
15019       if test "$pre_test_object_deps_done" = no; then
15020	 if test -z "$predep_objects_CXX"; then
15021	   predep_objects_CXX="$p"
15022	 else
15023	   predep_objects_CXX="$predep_objects_CXX $p"
15024	 fi
15025       else
15026	 if test -z "$postdep_objects_CXX"; then
15027	   postdep_objects_CXX="$p"
15028	 else
15029	   postdep_objects_CXX="$postdep_objects_CXX $p"
15030	 fi
15031       fi
15032       ;;
15033
15034    *) ;; # Ignore the rest.
15035
15036    esac
15037  done
15038
15039  # Clean up.
15040  rm -f a.out a.exe
15041else
15042  echo "libtool.m4: error: problem compiling CXX test program"
15043fi
15044
15045$rm -f confest.$objext
15046
15047# PORTME: override above test on systems where it is broken
15048case $host_os in
15049interix3*)
15050  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15051  # hack all around it, let's just trust "g++" to DTRT.
15052  predep_objects_CXX=
15053  postdep_objects_CXX=
15054  postdeps_CXX=
15055  ;;
15056
15057solaris*)
15058  case $cc_basename in
15059  CC*)
15060    # Adding this requires a known-good setup of shared libraries for
15061    # Sun compiler versions before 5.6, else PIC objects from an old
15062    # archive will be linked into the output, leading to subtle bugs.
15063    postdeps_CXX='-lCstd -lCrun'
15064    ;;
15065  esac
15066  ;;
15067esac
15068
15069
15070case " $postdeps_CXX " in
15071*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15072esac
15073
15074lt_prog_compiler_wl_CXX=
15075lt_prog_compiler_pic_CXX=
15076lt_prog_compiler_static_CXX=
15077
15078echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15079echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15080
15081  # C++ specific cases for pic, static, wl, etc.
15082  if test "$GXX" = yes; then
15083    lt_prog_compiler_wl_CXX='-Wl,'
15084    lt_prog_compiler_static_CXX='-static'
15085
15086    case $host_os in
15087    aix*)
15088      # All AIX code is PIC.
15089      if test "$host_cpu" = ia64; then
15090	# AIX 5 now supports IA64 processor
15091	lt_prog_compiler_static_CXX='-Bstatic'
15092      fi
15093      ;;
15094    amigaos*)
15095      # FIXME: we need at least 68020 code to build shared libraries, but
15096      # adding the `-m68020' flag to GCC prevents building anything better,
15097      # like `-m68040'.
15098      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15099      ;;
15100    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15101      # PIC is the default for these OSes.
15102      ;;
15103    mingw* | os2* | pw32*)
15104      # This hack is so that the source file can tell whether it is being
15105      # built for inclusion in a dll (and should export symbols for example).
15106      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15107      ;;
15108    darwin* | rhapsody*)
15109      # PIC is the default on this platform
15110      # Common symbols not allowed in MH_DYLIB files
15111      lt_prog_compiler_pic_CXX='-fno-common'
15112      ;;
15113    *djgpp*)
15114      # DJGPP does not support shared libraries at all
15115      lt_prog_compiler_pic_CXX=
15116      ;;
15117    interix3*)
15118      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15119      # Instead, we relocate shared libraries at runtime.
15120      ;;
15121    sysv4*MP*)
15122      if test -d /usr/nec; then
15123	lt_prog_compiler_pic_CXX=-Kconform_pic
15124      fi
15125      ;;
15126    hpux*)
15127      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15128      # not for PA HP-UX.
15129      case $host_cpu in
15130      hppa*64*|ia64*)
15131	;;
15132      *)
15133	lt_prog_compiler_pic_CXX='-fPIC'
15134	;;
15135      esac
15136      ;;
15137    *)
15138      lt_prog_compiler_pic_CXX='-fPIC'
15139      ;;
15140    esac
15141  else
15142    case $host_os in
15143      aix4* | aix5*)
15144	# All AIX code is PIC.
15145	if test "$host_cpu" = ia64; then
15146	  # AIX 5 now supports IA64 processor
15147	  lt_prog_compiler_static_CXX='-Bstatic'
15148	else
15149	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15150	fi
15151	;;
15152      chorus*)
15153	case $cc_basename in
15154	cxch68*)
15155	  # Green Hills C++ Compiler
15156	  # _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"
15157	  ;;
15158	esac
15159	;;
15160       darwin*)
15161         # PIC is the default on this platform
15162         # Common symbols not allowed in MH_DYLIB files
15163         case $cc_basename in
15164           xlc*)
15165           lt_prog_compiler_pic_CXX='-qnocommon'
15166           lt_prog_compiler_wl_CXX='-Wl,'
15167           ;;
15168         esac
15169       ;;
15170      dgux*)
15171	case $cc_basename in
15172	  ec++*)
15173	    lt_prog_compiler_pic_CXX='-KPIC'
15174	    ;;
15175	  ghcx*)
15176	    # Green Hills C++ Compiler
15177	    lt_prog_compiler_pic_CXX='-pic'
15178	    ;;
15179	  *)
15180	    ;;
15181	esac
15182	;;
15183      freebsd* | kfreebsd*-gnu | dragonfly*)
15184	# FreeBSD uses GNU C++
15185	;;
15186      hpux9* | hpux10* | hpux11*)
15187	case $cc_basename in
15188	  CC*)
15189	    lt_prog_compiler_wl_CXX='-Wl,'
15190	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15191	    if test "$host_cpu" != ia64; then
15192	      lt_prog_compiler_pic_CXX='+Z'
15193	    fi
15194	    ;;
15195	  aCC*)
15196	    lt_prog_compiler_wl_CXX='-Wl,'
15197	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15198	    case $host_cpu in
15199	    hppa*64*|ia64*)
15200	      # +Z the default
15201	      ;;
15202	    *)
15203	      lt_prog_compiler_pic_CXX='+Z'
15204	      ;;
15205	    esac
15206	    ;;
15207	  *)
15208	    ;;
15209	esac
15210	;;
15211      interix*)
15212	# This is c89, which is MS Visual C++ (no shared libs)
15213	# Anyone wants to do a port?
15214	;;
15215      irix5* | irix6* | nonstopux*)
15216	case $cc_basename in
15217	  CC*)
15218	    lt_prog_compiler_wl_CXX='-Wl,'
15219	    lt_prog_compiler_static_CXX='-non_shared'
15220	    # CC pic flag -KPIC is the default.
15221	    ;;
15222	  *)
15223	    ;;
15224	esac
15225	;;
15226      linux*)
15227	case $cc_basename in
15228	  KCC*)
15229	    # KAI C++ Compiler
15230	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15231	    lt_prog_compiler_pic_CXX='-fPIC'
15232	    ;;
15233	  icpc* | ecpc*)
15234	    # Intel C++
15235	    lt_prog_compiler_wl_CXX='-Wl,'
15236	    lt_prog_compiler_pic_CXX='-KPIC'
15237	    lt_prog_compiler_static_CXX='-static'
15238	    ;;
15239	  pgCC*)
15240	    # Portland Group C++ compiler.
15241	    lt_prog_compiler_wl_CXX='-Wl,'
15242	    lt_prog_compiler_pic_CXX='-fpic'
15243	    lt_prog_compiler_static_CXX='-Bstatic'
15244	    ;;
15245	  cxx*)
15246	    # Compaq C++
15247	    # Make sure the PIC flag is empty.  It appears that all Alpha
15248	    # Linux and Compaq Tru64 Unix objects are PIC.
15249	    lt_prog_compiler_pic_CXX=
15250	    lt_prog_compiler_static_CXX='-non_shared'
15251	    ;;
15252	  *)
15253	    ;;
15254	esac
15255	;;
15256      lynxos*)
15257	;;
15258      m88k*)
15259	;;
15260      mvs*)
15261	case $cc_basename in
15262	  cxx*)
15263	    lt_prog_compiler_pic_CXX='-W c,exportall'
15264	    ;;
15265	  *)
15266	    ;;
15267	esac
15268	;;
15269      netbsd*)
15270	;;
15271      osf3* | osf4* | osf5*)
15272	case $cc_basename in
15273	  KCC*)
15274	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15275	    ;;
15276	  RCC*)
15277	    # Rational C++ 2.4.1
15278	    lt_prog_compiler_pic_CXX='-pic'
15279	    ;;
15280	  cxx*)
15281	    # Digital/Compaq C++
15282	    lt_prog_compiler_wl_CXX='-Wl,'
15283	    # Make sure the PIC flag is empty.  It appears that all Alpha
15284	    # Linux and Compaq Tru64 Unix objects are PIC.
15285	    lt_prog_compiler_pic_CXX=
15286	    lt_prog_compiler_static_CXX='-non_shared'
15287	    ;;
15288	  *)
15289	    ;;
15290	esac
15291	;;
15292      psos*)
15293	;;
15294      solaris*)
15295	case $cc_basename in
15296	  CC*)
15297	    # Sun C++ 4.2, 5.x and Centerline C++
15298	    lt_prog_compiler_pic_CXX='-KPIC'
15299	    lt_prog_compiler_static_CXX='-Bstatic'
15300	    lt_prog_compiler_wl_CXX='-Qoption ld '
15301	    ;;
15302	  gcx*)
15303	    # Green Hills C++ Compiler
15304	    lt_prog_compiler_pic_CXX='-PIC'
15305	    ;;
15306	  *)
15307	    ;;
15308	esac
15309	;;
15310      sunos4*)
15311	case $cc_basename in
15312	  CC*)
15313	    # Sun C++ 4.x
15314	    lt_prog_compiler_pic_CXX='-pic'
15315	    lt_prog_compiler_static_CXX='-Bstatic'
15316	    ;;
15317	  lcc*)
15318	    # Lucid
15319	    lt_prog_compiler_pic_CXX='-pic'
15320	    ;;
15321	  *)
15322	    ;;
15323	esac
15324	;;
15325      tandem*)
15326	case $cc_basename in
15327	  NCC*)
15328	    # NonStop-UX NCC 3.20
15329	    lt_prog_compiler_pic_CXX='-KPIC'
15330	    ;;
15331	  *)
15332	    ;;
15333	esac
15334	;;
15335      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15336	case $cc_basename in
15337	  CC*)
15338	    lt_prog_compiler_wl_CXX='-Wl,'
15339	    lt_prog_compiler_pic_CXX='-KPIC'
15340	    lt_prog_compiler_static_CXX='-Bstatic'
15341	    ;;
15342	esac
15343	;;
15344      vxworks*)
15345	;;
15346      *)
15347	lt_prog_compiler_can_build_shared_CXX=no
15348	;;
15349    esac
15350  fi
15351
15352echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15353echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15354
15355#
15356# Check to make sure the PIC flag actually works.
15357#
15358if test -n "$lt_prog_compiler_pic_CXX"; then
15359
15360echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15361echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15362if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15363  echo $ECHO_N "(cached) $ECHO_C" >&6
15364else
15365  lt_prog_compiler_pic_works_CXX=no
15366  ac_outfile=conftest.$ac_objext
15367   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15368   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15369   # Insert the option either (1) after the last *FLAGS variable, or
15370   # (2) before a word containing "conftest.", or (3) at the end.
15371   # Note that $ac_compile itself does not contain backslashes and begins
15372   # with a dollar sign (not a hyphen), so the echo should work correctly.
15373   # The option is referenced via a variable to avoid confusing sed.
15374   lt_compile=`echo "$ac_compile" | $SED \
15375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15377   -e 's:$: $lt_compiler_flag:'`
15378   (eval echo "\"\$as_me:15380: $lt_compile\"" >&5)
15379   (eval "$lt_compile" 2>conftest.err)
15380   ac_status=$?
15381   cat conftest.err >&5
15382   echo "$as_me:15384: \$? = $ac_status" >&5
15383   if (exit $ac_status) && test -s "$ac_outfile"; then
15384     # The compiler can only warn and ignore the option if not recognized
15385     # So say no if there are warnings other than the usual output.
15386     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15387     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15388     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15389       lt_prog_compiler_pic_works_CXX=yes
15390     fi
15391   fi
15392   $rm conftest*
15393
15394fi
15395echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15396echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
15397
15398if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15399    case $lt_prog_compiler_pic_CXX in
15400     "" | " "*) ;;
15401     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15402     esac
15403else
15404    lt_prog_compiler_pic_CXX=
15405     lt_prog_compiler_can_build_shared_CXX=no
15406fi
15407
15408fi
15409case $host_os in
15410  # For platforms which do not support PIC, -DPIC is meaningless:
15411  *djgpp*)
15412    lt_prog_compiler_pic_CXX=
15413    ;;
15414  *)
15415    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15416    ;;
15417esac
15418
15419#
15420# Check to make sure the static flag actually works.
15421#
15422wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15423echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15424echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15425if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
15426  echo $ECHO_N "(cached) $ECHO_C" >&6
15427else
15428  lt_prog_compiler_static_works_CXX=no
15429   save_LDFLAGS="$LDFLAGS"
15430   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15431   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15432   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15433     # The linker can only warn and ignore the option if not recognized
15434     # So say no if there are warnings
15435     if test -s conftest.err; then
15436       # Append any errors to the config.log.
15437       cat conftest.err 1>&5
15438       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15439       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15440       if diff conftest.exp conftest.er2 >/dev/null; then
15441         lt_prog_compiler_static_works_CXX=yes
15442       fi
15443     else
15444       lt_prog_compiler_static_works_CXX=yes
15445     fi
15446   fi
15447   $rm conftest*
15448   LDFLAGS="$save_LDFLAGS"
15449
15450fi
15451echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
15452echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
15453
15454if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
15455    :
15456else
15457    lt_prog_compiler_static_CXX=
15458fi
15459
15460
15461echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15462echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15463if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15464  echo $ECHO_N "(cached) $ECHO_C" >&6
15465else
15466  lt_cv_prog_compiler_c_o_CXX=no
15467   $rm -r conftest 2>/dev/null
15468   mkdir conftest
15469   cd conftest
15470   mkdir out
15471   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15472
15473   lt_compiler_flag="-o out/conftest2.$ac_objext"
15474   # Insert the option either (1) after the last *FLAGS variable, or
15475   # (2) before a word containing "conftest.", or (3) at the end.
15476   # Note that $ac_compile itself does not contain backslashes and begins
15477   # with a dollar sign (not a hyphen), so the echo should work correctly.
15478   lt_compile=`echo "$ac_compile" | $SED \
15479   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15480   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15481   -e 's:$: $lt_compiler_flag:'`
15482   (eval echo "\"\$as_me:15484: $lt_compile\"" >&5)
15483   (eval "$lt_compile" 2>out/conftest.err)
15484   ac_status=$?
15485   cat out/conftest.err >&5
15486   echo "$as_me:15488: \$? = $ac_status" >&5
15487   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15488   then
15489     # The compiler can only warn and ignore the option if not recognized
15490     # So say no if there are warnings
15491     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15492     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15493     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15494       lt_cv_prog_compiler_c_o_CXX=yes
15495     fi
15496   fi
15497   chmod u+w . 2>&5
15498   $rm conftest*
15499   # SGI C++ compiler will create directory out/ii_files/ for
15500   # template instantiation
15501   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15502   $rm out/* && rmdir out
15503   cd ..
15504   rmdir conftest
15505   $rm conftest*
15506
15507fi
15508echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15509echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15510
15511
15512hard_links="nottested"
15513if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15514  # do not overwrite the value of need_locks provided by the user
15515  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15516echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15517  hard_links=yes
15518  $rm conftest*
15519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15520  touch conftest.a
15521  ln conftest.a conftest.b 2>&5 || hard_links=no
15522  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15523  echo "$as_me:$LINENO: result: $hard_links" >&5
15524echo "${ECHO_T}$hard_links" >&6
15525  if test "$hard_links" = no; then
15526    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15527echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15528    need_locks=warn
15529  fi
15530else
15531  need_locks=no
15532fi
15533
15534echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15535echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15536
15537  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15538  case $host_os in
15539  aix4* | aix5*)
15540    # If we're using GNU nm, then we don't want the "-C" option.
15541    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15542    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15543      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'
15544    else
15545      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'
15546    fi
15547    ;;
15548  pw32*)
15549    export_symbols_cmds_CXX="$ltdll_cmds"
15550  ;;
15551  cygwin* | mingw*)
15552    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'
15553  ;;
15554  *)
15555    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15556  ;;
15557  esac
15558
15559echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15560echo "${ECHO_T}$ld_shlibs_CXX" >&6
15561test "$ld_shlibs_CXX" = no && can_build_shared=no
15562
15563#
15564# Do we need to explicitly link libc?
15565#
15566case "x$archive_cmds_need_lc_CXX" in
15567x|xyes)
15568  # Assume -lc should be added
15569  archive_cmds_need_lc_CXX=yes
15570
15571  if test "$enable_shared" = yes && test "$GCC" = yes; then
15572    case $archive_cmds_CXX in
15573    *'~'*)
15574      # FIXME: we may have to deal with multi-command sequences.
15575      ;;
15576    '$CC '*)
15577      # Test whether the compiler implicitly links with -lc since on some
15578      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15579      # to ld, don't add -lc before -lgcc.
15580      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15581echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15582      $rm conftest*
15583      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15584
15585      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15586  (eval $ac_compile) 2>&5
15587  ac_status=$?
15588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589  (exit $ac_status); } 2>conftest.err; then
15590        soname=conftest
15591        lib=conftest
15592        libobjs=conftest.$ac_objext
15593        deplibs=
15594        wl=$lt_prog_compiler_wl_CXX
15595	pic_flag=$lt_prog_compiler_pic_CXX
15596        compiler_flags=-v
15597        linker_flags=-v
15598        verstring=
15599        output_objdir=.
15600        libname=conftest
15601        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15602        allow_undefined_flag_CXX=
15603        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15604  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15605  ac_status=$?
15606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607  (exit $ac_status); }
15608        then
15609	  archive_cmds_need_lc_CXX=no
15610        else
15611	  archive_cmds_need_lc_CXX=yes
15612        fi
15613        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15614      else
15615        cat conftest.err 1>&5
15616      fi
15617      $rm conftest*
15618      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15619echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15620      ;;
15621    esac
15622  fi
15623  ;;
15624esac
15625
15626echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15627echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15628library_names_spec=
15629libname_spec='lib$name'
15630soname_spec=
15631shrext_cmds=".so"
15632postinstall_cmds=
15633postuninstall_cmds=
15634finish_cmds=
15635finish_eval=
15636shlibpath_var=
15637shlibpath_overrides_runpath=unknown
15638version_type=none
15639dynamic_linker="$host_os ld.so"
15640sys_lib_dlsearch_path_spec="/lib /usr/lib"
15641if test "$GCC" = yes; then
15642  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15643  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15644    # if the path contains ";" then we assume it to be the separator
15645    # otherwise default to the standard path separator (i.e. ":") - it is
15646    # assumed that no part of a normal pathname contains ";" but that should
15647    # okay in the real world where ";" in dirpaths is itself problematic.
15648    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15649  else
15650    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15651  fi
15652else
15653  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15654fi
15655need_lib_prefix=unknown
15656hardcode_into_libs=no
15657
15658# when you set need_version to no, make sure it does not cause -set_version
15659# flags to be left without arguments
15660need_version=unknown
15661
15662case $host_os in
15663aix3*)
15664  version_type=linux
15665  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15666  shlibpath_var=LIBPATH
15667
15668  # AIX 3 has no versioning support, so we append a major version to the name.
15669  soname_spec='${libname}${release}${shared_ext}$major'
15670  ;;
15671
15672aix4* | aix5*)
15673  version_type=linux
15674  need_lib_prefix=no
15675  need_version=no
15676  hardcode_into_libs=yes
15677  if test "$host_cpu" = ia64; then
15678    # AIX 5 supports IA64
15679    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15680    shlibpath_var=LD_LIBRARY_PATH
15681  else
15682    # With GCC up to 2.95.x, collect2 would create an import file
15683    # for dependence libraries.  The import file would start with
15684    # the line `#! .'.  This would cause the generated library to
15685    # depend on `.', always an invalid library.  This was fixed in
15686    # development snapshots of GCC prior to 3.0.
15687    case $host_os in
15688      aix4 | aix4.[01] | aix4.[01].*)
15689      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15690	   echo ' yes '
15691	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15692	:
15693      else
15694	can_build_shared=no
15695      fi
15696      ;;
15697    esac
15698    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15699    # soname into executable. Probably we can add versioning support to
15700    # collect2, so additional links can be useful in future.
15701    if test "$aix_use_runtimelinking" = yes; then
15702      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15703      # instead of lib<name>.a to let people know that these are not
15704      # typical AIX shared libraries.
15705      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706    else
15707      # We preserve .a as extension for shared libraries through AIX4.2
15708      # and later when we are not doing run time linking.
15709      library_names_spec='${libname}${release}.a $libname.a'
15710      soname_spec='${libname}${release}${shared_ext}$major'
15711    fi
15712    shlibpath_var=LIBPATH
15713  fi
15714  ;;
15715
15716amigaos*)
15717  library_names_spec='$libname.ixlibrary $libname.a'
15718  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15719  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'
15720  ;;
15721
15722beos*)
15723  library_names_spec='${libname}${shared_ext}'
15724  dynamic_linker="$host_os ld.so"
15725  shlibpath_var=LIBRARY_PATH
15726  ;;
15727
15728bsdi[45]*)
15729  version_type=linux
15730  need_version=no
15731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732  soname_spec='${libname}${release}${shared_ext}$major'
15733  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15734  shlibpath_var=LD_LIBRARY_PATH
15735  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15736  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15737  # the default ld.so.conf also contains /usr/contrib/lib and
15738  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15739  # libtool to hard-code these into programs
15740  ;;
15741
15742cygwin* | mingw* | pw32*)
15743  version_type=windows
15744  shrext_cmds=".dll"
15745  need_version=no
15746  need_lib_prefix=no
15747
15748  case $GCC,$host_os in
15749  yes,cygwin* | yes,mingw* | yes,pw32*)
15750    library_names_spec='$libname.dll.a'
15751    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15752    postinstall_cmds='base_file=`basename \${file}`~
15753      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15754      dldir=$destdir/`dirname \$dlpath`~
15755      test -d \$dldir || mkdir -p \$dldir~
15756      $install_prog $dir/$dlname \$dldir/$dlname~
15757      chmod a+x \$dldir/$dlname'
15758    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15759      dlpath=$dir/\$dldll~
15760       $rm \$dlpath'
15761    shlibpath_overrides_runpath=yes
15762
15763    case $host_os in
15764    cygwin*)
15765      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15766      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15767      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15768      ;;
15769    mingw*)
15770      # MinGW DLLs use traditional 'lib' prefix
15771      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15772      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15773      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15774        # It is most probably a Windows format PATH printed by
15775        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15776        # path with ; separators, and with drive letters. We can handle the
15777        # drive letters (cygwin fileutils understands them), so leave them,
15778        # especially as we might pass files found there to a mingw objdump,
15779        # which wouldn't understand a cygwinified path. Ahh.
15780        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15781      else
15782        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15783      fi
15784      ;;
15785    pw32*)
15786      # pw32 DLLs use 'pw' prefix rather than 'lib'
15787      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15788      ;;
15789    esac
15790    ;;
15791
15792  *)
15793    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15794    ;;
15795  esac
15796  dynamic_linker='Win32 ld.exe'
15797  # FIXME: first we should search . and the directory the executable is in
15798  shlibpath_var=PATH
15799  ;;
15800
15801darwin* | rhapsody*)
15802  dynamic_linker="$host_os dyld"
15803  version_type=darwin
15804  need_lib_prefix=no
15805  need_version=no
15806  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15807  soname_spec='${libname}${release}${major}$shared_ext'
15808  shlibpath_overrides_runpath=yes
15809  shlibpath_var=DYLD_LIBRARY_PATH
15810  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15811  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15812  if test "$GCC" = yes; then
15813    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"`
15814  else
15815    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15816  fi
15817  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15818  ;;
15819
15820dgux*)
15821  version_type=linux
15822  need_lib_prefix=no
15823  need_version=no
15824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15825  soname_spec='${libname}${release}${shared_ext}$major'
15826  shlibpath_var=LD_LIBRARY_PATH
15827  ;;
15828
15829freebsd1*)
15830  dynamic_linker=no
15831  ;;
15832
15833kfreebsd*-gnu)
15834  version_type=linux
15835  need_lib_prefix=no
15836  need_version=no
15837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15838  soname_spec='${libname}${release}${shared_ext}$major'
15839  shlibpath_var=LD_LIBRARY_PATH
15840  shlibpath_overrides_runpath=no
15841  hardcode_into_libs=yes
15842  dynamic_linker='GNU ld.so'
15843  ;;
15844
15845freebsd* | dragonfly*)
15846  # DragonFly does not have aout.  When/if they implement a new
15847  # versioning mechanism, adjust this.
15848  if test -x /usr/bin/objformat; then
15849    objformat=`/usr/bin/objformat`
15850  else
15851    case $host_os in
15852    freebsd[123]*) objformat=aout ;;
15853    *) objformat=elf ;;
15854    esac
15855  fi
15856  version_type=freebsd-$objformat
15857  case $version_type in
15858    freebsd-elf*)
15859      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15860      need_version=no
15861      need_lib_prefix=no
15862      ;;
15863    freebsd-*)
15864      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15865      need_version=yes
15866      ;;
15867  esac
15868  shlibpath_var=LD_LIBRARY_PATH
15869  case $host_os in
15870  freebsd2*)
15871    shlibpath_overrides_runpath=yes
15872    ;;
15873  freebsd3.[01]* | freebsdelf3.[01]*)
15874    shlibpath_overrides_runpath=yes
15875    hardcode_into_libs=yes
15876    ;;
15877  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15878  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15879    shlibpath_overrides_runpath=no
15880    hardcode_into_libs=yes
15881    ;;
15882  freebsd*) # from 4.6 on
15883    shlibpath_overrides_runpath=yes
15884    hardcode_into_libs=yes
15885    ;;
15886  esac
15887  ;;
15888
15889gnu*)
15890  version_type=linux
15891  need_lib_prefix=no
15892  need_version=no
15893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15894  soname_spec='${libname}${release}${shared_ext}$major'
15895  shlibpath_var=LD_LIBRARY_PATH
15896  hardcode_into_libs=yes
15897  ;;
15898
15899hpux9* | hpux10* | hpux11*)
15900  # Give a soname corresponding to the major version so that dld.sl refuses to
15901  # link against other versions.
15902  version_type=sunos
15903  need_lib_prefix=no
15904  need_version=no
15905  case $host_cpu in
15906  ia64*)
15907    shrext_cmds='.so'
15908    hardcode_into_libs=yes
15909    dynamic_linker="$host_os dld.so"
15910    shlibpath_var=LD_LIBRARY_PATH
15911    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913    soname_spec='${libname}${release}${shared_ext}$major'
15914    if test "X$HPUX_IA64_MODE" = X32; then
15915      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15916    else
15917      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15918    fi
15919    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15920    ;;
15921   hppa*64*)
15922     shrext_cmds='.sl'
15923     hardcode_into_libs=yes
15924     dynamic_linker="$host_os dld.sl"
15925     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15926     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928     soname_spec='${libname}${release}${shared_ext}$major'
15929     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15931     ;;
15932   *)
15933    shrext_cmds='.sl'
15934    dynamic_linker="$host_os dld.sl"
15935    shlibpath_var=SHLIB_PATH
15936    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15937    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15938    soname_spec='${libname}${release}${shared_ext}$major'
15939    ;;
15940  esac
15941  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15942  postinstall_cmds='chmod 555 $lib'
15943  ;;
15944
15945interix3*)
15946  version_type=linux
15947  need_lib_prefix=no
15948  need_version=no
15949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15950  soname_spec='${libname}${release}${shared_ext}$major'
15951  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15952  shlibpath_var=LD_LIBRARY_PATH
15953  shlibpath_overrides_runpath=no
15954  hardcode_into_libs=yes
15955  ;;
15956
15957irix5* | irix6* | nonstopux*)
15958  case $host_os in
15959    nonstopux*) version_type=nonstopux ;;
15960    *)
15961	if test "$lt_cv_prog_gnu_ld" = yes; then
15962		version_type=linux
15963	else
15964		version_type=irix
15965	fi ;;
15966  esac
15967  need_lib_prefix=no
15968  need_version=no
15969  soname_spec='${libname}${release}${shared_ext}$major'
15970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15971  case $host_os in
15972  irix5* | nonstopux*)
15973    libsuff= shlibsuff=
15974    ;;
15975  *)
15976    case $LD in # libtool.m4 will add one of these switches to LD
15977    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15978      libsuff= shlibsuff= libmagic=32-bit;;
15979    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15980      libsuff=32 shlibsuff=N32 libmagic=N32;;
15981    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15982      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15983    *) libsuff= shlibsuff= libmagic=never-match;;
15984    esac
15985    ;;
15986  esac
15987  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15988  shlibpath_overrides_runpath=no
15989  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15990  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15991  hardcode_into_libs=yes
15992  ;;
15993
15994# No shared lib support for Linux oldld, aout, or coff.
15995linux*oldld* | linux*aout* | linux*coff*)
15996  dynamic_linker=no
15997  ;;
15998
15999# This must be Linux ELF.
16000linux*)
16001  version_type=linux
16002  need_lib_prefix=no
16003  need_version=no
16004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005  soname_spec='${libname}${release}${shared_ext}$major'
16006  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16007  shlibpath_var=LD_LIBRARY_PATH
16008  shlibpath_overrides_runpath=no
16009  # This implies no fast_install, which is unacceptable.
16010  # Some rework will be needed to allow for fast_install
16011  # before this can be enabled.
16012  hardcode_into_libs=yes
16013
16014  # find out which ABI we are using
16015  libsuff=
16016  case "$host_cpu" in
16017  x86_64*|s390x*|powerpc64*)
16018    echo '#line 16020 "configure"' > conftest.$ac_ext
16019    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020  (eval $ac_compile) 2>&5
16021  ac_status=$?
16022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023  (exit $ac_status); }; then
16024      case `/usr/bin/file conftest.$ac_objext` in
16025      *64-bit*)
16026        libsuff=64
16027        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16028        ;;
16029      esac
16030    fi
16031    rm -rf conftest*
16032    ;;
16033  esac
16034
16035  # Append ld.so.conf contents to the search path
16036  if test -f /etc/ld.so.conf; then
16037    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' ' '`
16038    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16039  fi
16040
16041  # We used to test for /lib/ld.so.1 and disable shared libraries on
16042  # powerpc, because MkLinux only supported shared libraries with the
16043  # GNU dynamic linker.  Since this was broken with cross compilers,
16044  # most powerpc-linux boxes support dynamic linking these days and
16045  # people can always --disable-shared, the test was removed, and we
16046  # assume the GNU/Linux dynamic linker is in use.
16047  dynamic_linker='GNU/Linux ld.so'
16048  ;;
16049
16050knetbsd*-gnu)
16051  version_type=linux
16052  need_lib_prefix=no
16053  need_version=no
16054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055  soname_spec='${libname}${release}${shared_ext}$major'
16056  shlibpath_var=LD_LIBRARY_PATH
16057  shlibpath_overrides_runpath=no
16058  hardcode_into_libs=yes
16059  dynamic_linker='GNU ld.so'
16060  ;;
16061
16062netbsd*)
16063  version_type=sunos
16064  need_lib_prefix=no
16065  need_version=no
16066  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16068    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16069    dynamic_linker='NetBSD (a.out) ld.so'
16070  else
16071    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16072    soname_spec='${libname}${release}${shared_ext}$major'
16073    dynamic_linker='NetBSD ld.elf_so'
16074  fi
16075  shlibpath_var=LD_LIBRARY_PATH
16076  shlibpath_overrides_runpath=yes
16077  hardcode_into_libs=yes
16078  ;;
16079
16080newsos6)
16081  version_type=linux
16082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083  shlibpath_var=LD_LIBRARY_PATH
16084  shlibpath_overrides_runpath=yes
16085  ;;
16086
16087nto-qnx*)
16088  version_type=linux
16089  need_lib_prefix=no
16090  need_version=no
16091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092  soname_spec='${libname}${release}${shared_ext}$major'
16093  shlibpath_var=LD_LIBRARY_PATH
16094  shlibpath_overrides_runpath=yes
16095  ;;
16096
16097openbsd*)
16098  version_type=sunos
16099  sys_lib_dlsearch_path_spec="/usr/lib"
16100  need_lib_prefix=no
16101  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16102  case $host_os in
16103    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16104    *)                         need_version=no  ;;
16105  esac
16106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16107  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16108  shlibpath_var=LD_LIBRARY_PATH
16109  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16110    case $host_os in
16111      openbsd2.[89] | openbsd2.[89].*)
16112	shlibpath_overrides_runpath=no
16113	;;
16114      *)
16115	shlibpath_overrides_runpath=yes
16116	;;
16117      esac
16118  else
16119    shlibpath_overrides_runpath=yes
16120  fi
16121  ;;
16122
16123os2*)
16124  libname_spec='$name'
16125  shrext_cmds=".dll"
16126  need_lib_prefix=no
16127  library_names_spec='$libname${shared_ext} $libname.a'
16128  dynamic_linker='OS/2 ld.exe'
16129  shlibpath_var=LIBPATH
16130  ;;
16131
16132osf3* | osf4* | osf5*)
16133  version_type=osf
16134  need_lib_prefix=no
16135  need_version=no
16136  soname_spec='${libname}${release}${shared_ext}$major'
16137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138  shlibpath_var=LD_LIBRARY_PATH
16139  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16140  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16141  ;;
16142
16143solaris*)
16144  version_type=linux
16145  need_lib_prefix=no
16146  need_version=no
16147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148  soname_spec='${libname}${release}${shared_ext}$major'
16149  shlibpath_var=LD_LIBRARY_PATH
16150  shlibpath_overrides_runpath=yes
16151  hardcode_into_libs=yes
16152  # ldd complains unless libraries are executable
16153  postinstall_cmds='chmod +x $lib'
16154  ;;
16155
16156sunos4*)
16157  version_type=sunos
16158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16159  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16160  shlibpath_var=LD_LIBRARY_PATH
16161  shlibpath_overrides_runpath=yes
16162  if test "$with_gnu_ld" = yes; then
16163    need_lib_prefix=no
16164  fi
16165  need_version=yes
16166  ;;
16167
16168sysv4 | sysv4.3*)
16169  version_type=linux
16170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171  soname_spec='${libname}${release}${shared_ext}$major'
16172  shlibpath_var=LD_LIBRARY_PATH
16173  case $host_vendor in
16174    sni)
16175      shlibpath_overrides_runpath=no
16176      need_lib_prefix=no
16177      export_dynamic_flag_spec='${wl}-Blargedynsym'
16178      runpath_var=LD_RUN_PATH
16179      ;;
16180    siemens)
16181      need_lib_prefix=no
16182      ;;
16183    motorola)
16184      need_lib_prefix=no
16185      need_version=no
16186      shlibpath_overrides_runpath=no
16187      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16188      ;;
16189  esac
16190  ;;
16191
16192sysv4*MP*)
16193  if test -d /usr/nec ;then
16194    version_type=linux
16195    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16196    soname_spec='$libname${shared_ext}.$major'
16197    shlibpath_var=LD_LIBRARY_PATH
16198  fi
16199  ;;
16200
16201sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16202  version_type=freebsd-elf
16203  need_lib_prefix=no
16204  need_version=no
16205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16206  soname_spec='${libname}${release}${shared_ext}$major'
16207  shlibpath_var=LD_LIBRARY_PATH
16208  hardcode_into_libs=yes
16209  if test "$with_gnu_ld" = yes; then
16210    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16211    shlibpath_overrides_runpath=no
16212  else
16213    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16214    shlibpath_overrides_runpath=yes
16215    case $host_os in
16216      sco3.2v5*)
16217        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16218	;;
16219    esac
16220  fi
16221  sys_lib_dlsearch_path_spec='/usr/lib'
16222  ;;
16223
16224uts4*)
16225  version_type=linux
16226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16227  soname_spec='${libname}${release}${shared_ext}$major'
16228  shlibpath_var=LD_LIBRARY_PATH
16229  ;;
16230
16231*)
16232  dynamic_linker=no
16233  ;;
16234esac
16235echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16236echo "${ECHO_T}$dynamic_linker" >&6
16237test "$dynamic_linker" = no && can_build_shared=no
16238
16239variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16240if test "$GCC" = yes; then
16241  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16242fi
16243
16244echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16245echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16246hardcode_action_CXX=
16247if test -n "$hardcode_libdir_flag_spec_CXX" || \
16248   test -n "$runpath_var_CXX" || \
16249   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16250
16251  # We can hardcode non-existant directories.
16252  if test "$hardcode_direct_CXX" != no &&
16253     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16254     # have to relink, otherwise we might link with an installed library
16255     # when we should be linking with a yet-to-be-installed one
16256     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16257     test "$hardcode_minus_L_CXX" != no; then
16258    # Linking always hardcodes the temporary library directory.
16259    hardcode_action_CXX=relink
16260  else
16261    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16262    hardcode_action_CXX=immediate
16263  fi
16264else
16265  # We cannot hardcode anything, or else we can only hardcode existing
16266  # directories.
16267  hardcode_action_CXX=unsupported
16268fi
16269echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16270echo "${ECHO_T}$hardcode_action_CXX" >&6
16271
16272if test "$hardcode_action_CXX" = relink; then
16273  # Fast installation is not supported
16274  enable_fast_install=no
16275elif test "$shlibpath_overrides_runpath" = yes ||
16276     test "$enable_shared" = no; then
16277  # Fast installation is not necessary
16278  enable_fast_install=needless
16279fi
16280
16281
16282# The else clause should only fire when bootstrapping the
16283# libtool distribution, otherwise you forgot to ship ltmain.sh
16284# with your package, and you will get complaints that there are
16285# no rules to generate ltmain.sh.
16286if test -f "$ltmain"; then
16287  # See if we are running on zsh, and set the options which allow our commands through
16288  # without removal of \ escapes.
16289  if test -n "${ZSH_VERSION+set}" ; then
16290    setopt NO_GLOB_SUBST
16291  fi
16292  # Now quote all the things that may contain metacharacters while being
16293  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16294  # variables and quote the copies for generation of the libtool script.
16295  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16296    SED SHELL STRIP \
16297    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16298    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16299    deplibs_check_method reload_flag reload_cmds need_locks \
16300    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16301    lt_cv_sys_global_symbol_to_c_name_address \
16302    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16303    old_postinstall_cmds old_postuninstall_cmds \
16304    compiler_CXX \
16305    CC_CXX \
16306    LD_CXX \
16307    lt_prog_compiler_wl_CXX \
16308    lt_prog_compiler_pic_CXX \
16309    lt_prog_compiler_static_CXX \
16310    lt_prog_compiler_no_builtin_flag_CXX \
16311    export_dynamic_flag_spec_CXX \
16312    thread_safe_flag_spec_CXX \
16313    whole_archive_flag_spec_CXX \
16314    enable_shared_with_static_runtimes_CXX \
16315    old_archive_cmds_CXX \
16316    old_archive_from_new_cmds_CXX \
16317    predep_objects_CXX \
16318    postdep_objects_CXX \
16319    predeps_CXX \
16320    postdeps_CXX \
16321    compiler_lib_search_path_CXX \
16322    archive_cmds_CXX \
16323    archive_expsym_cmds_CXX \
16324    postinstall_cmds_CXX \
16325    postuninstall_cmds_CXX \
16326    old_archive_from_expsyms_cmds_CXX \
16327    allow_undefined_flag_CXX \
16328    no_undefined_flag_CXX \
16329    export_symbols_cmds_CXX \
16330    hardcode_libdir_flag_spec_CXX \
16331    hardcode_libdir_flag_spec_ld_CXX \
16332    hardcode_libdir_separator_CXX \
16333    hardcode_automatic_CXX \
16334    module_cmds_CXX \
16335    module_expsym_cmds_CXX \
16336    lt_cv_prog_compiler_c_o_CXX \
16337    exclude_expsyms_CXX \
16338    include_expsyms_CXX; do
16339
16340    case $var in
16341    old_archive_cmds_CXX | \
16342    old_archive_from_new_cmds_CXX | \
16343    archive_cmds_CXX | \
16344    archive_expsym_cmds_CXX | \
16345    module_cmds_CXX | \
16346    module_expsym_cmds_CXX | \
16347    old_archive_from_expsyms_cmds_CXX | \
16348    export_symbols_cmds_CXX | \
16349    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16350    postinstall_cmds | postuninstall_cmds | \
16351    old_postinstall_cmds | old_postuninstall_cmds | \
16352    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16353      # Double-quote double-evaled strings.
16354      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16355      ;;
16356    *)
16357      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16358      ;;
16359    esac
16360  done
16361
16362  case $lt_echo in
16363  *'\$0 --fallback-echo"')
16364    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16365    ;;
16366  esac
16367
16368cfgfile="$ofile"
16369
16370  cat <<__EOF__ >> "$cfgfile"
16371# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16372
16373# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16374
16375# Shell to use when invoking shell scripts.
16376SHELL=$lt_SHELL
16377
16378# Whether or not to build shared libraries.
16379build_libtool_libs=$enable_shared
16380
16381# Whether or not to build static libraries.
16382build_old_libs=$enable_static
16383
16384# Whether or not to add -lc for building shared libraries.
16385build_libtool_need_lc=$archive_cmds_need_lc_CXX
16386
16387# Whether or not to disallow shared libs when runtime libs are static
16388allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16389
16390# Whether or not to optimize for fast installation.
16391fast_install=$enable_fast_install
16392
16393# The host system.
16394host_alias=$host_alias
16395host=$host
16396host_os=$host_os
16397
16398# The build system.
16399build_alias=$build_alias
16400build=$build
16401build_os=$build_os
16402
16403# An echo program that does not interpret backslashes.
16404echo=$lt_echo
16405
16406# The archiver.
16407AR=$lt_AR
16408AR_FLAGS=$lt_AR_FLAGS
16409
16410# A C compiler.
16411LTCC=$lt_LTCC
16412
16413# LTCC compiler flags.
16414LTCFLAGS=$lt_LTCFLAGS
16415
16416# A language-specific compiler.
16417CC=$lt_compiler_CXX
16418
16419# Is the compiler the GNU C compiler?
16420with_gcc=$GCC_CXX
16421
16422# An ERE matcher.
16423EGREP=$lt_EGREP
16424
16425# The linker used to build libraries.
16426LD=$lt_LD_CXX
16427
16428# Whether we need hard or soft links.
16429LN_S=$lt_LN_S
16430
16431# A BSD-compatible nm program.
16432NM=$lt_NM
16433
16434# A symbol stripping program
16435STRIP=$lt_STRIP
16436
16437# Used to examine libraries when file_magic_cmd begins "file"
16438MAGIC_CMD=$MAGIC_CMD
16439
16440# Used on cygwin: DLL creation program.
16441DLLTOOL="$DLLTOOL"
16442
16443# Used on cygwin: object dumper.
16444OBJDUMP="$OBJDUMP"
16445
16446# Used on cygwin: assembler.
16447AS="$AS"
16448
16449# The name of the directory that contains temporary libtool files.
16450objdir=$objdir
16451
16452# How to create reloadable object files.
16453reload_flag=$lt_reload_flag
16454reload_cmds=$lt_reload_cmds
16455
16456# How to pass a linker flag through the compiler.
16457wl=$lt_lt_prog_compiler_wl_CXX
16458
16459# Object file suffix (normally "o").
16460objext="$ac_objext"
16461
16462# Old archive suffix (normally "a").
16463libext="$libext"
16464
16465# Shared library suffix (normally ".so").
16466shrext_cmds='$shrext_cmds'
16467
16468# Executable file suffix (normally "").
16469exeext="$exeext"
16470
16471# Additional compiler flags for building library objects.
16472pic_flag=$lt_lt_prog_compiler_pic_CXX
16473pic_mode=$pic_mode
16474
16475# What is the maximum length of a command?
16476max_cmd_len=$lt_cv_sys_max_cmd_len
16477
16478# Does compiler simultaneously support -c and -o options?
16479compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16480
16481# Must we lock files when doing compilation?
16482need_locks=$lt_need_locks
16483
16484# Do we need the lib prefix for modules?
16485need_lib_prefix=$need_lib_prefix
16486
16487# Do we need a version for libraries?
16488need_version=$need_version
16489
16490# Whether dlopen is supported.
16491dlopen_support=$enable_dlopen
16492
16493# Whether dlopen of programs is supported.
16494dlopen_self=$enable_dlopen_self
16495
16496# Whether dlopen of statically linked programs is supported.
16497dlopen_self_static=$enable_dlopen_self_static
16498
16499# Compiler flag to prevent dynamic linking.
16500link_static_flag=$lt_lt_prog_compiler_static_CXX
16501
16502# Compiler flag to turn off builtin functions.
16503no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16504
16505# Compiler flag to allow reflexive dlopens.
16506export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16507
16508# Compiler flag to generate shared objects directly from archives.
16509whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16510
16511# Compiler flag to generate thread-safe objects.
16512thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16513
16514# Library versioning type.
16515version_type=$version_type
16516
16517# Format of library name prefix.
16518libname_spec=$lt_libname_spec
16519
16520# List of archive names.  First name is the real one, the rest are links.
16521# The last name is the one that the linker finds with -lNAME.
16522library_names_spec=$lt_library_names_spec
16523
16524# The coded name of the library, if different from the real name.
16525soname_spec=$lt_soname_spec
16526
16527# Commands used to build and install an old-style archive.
16528RANLIB=$lt_RANLIB
16529old_archive_cmds=$lt_old_archive_cmds_CXX
16530old_postinstall_cmds=$lt_old_postinstall_cmds
16531old_postuninstall_cmds=$lt_old_postuninstall_cmds
16532
16533# Create an old-style archive from a shared archive.
16534old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16535
16536# Create a temporary old-style archive to link instead of a shared archive.
16537old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16538
16539# Commands used to build and install a shared archive.
16540archive_cmds=$lt_archive_cmds_CXX
16541archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16542postinstall_cmds=$lt_postinstall_cmds
16543postuninstall_cmds=$lt_postuninstall_cmds
16544
16545# Commands used to build a loadable module (assumed same as above if empty)
16546module_cmds=$lt_module_cmds_CXX
16547module_expsym_cmds=$lt_module_expsym_cmds_CXX
16548
16549# Commands to strip libraries.
16550old_striplib=$lt_old_striplib
16551striplib=$lt_striplib
16552
16553# Dependencies to place before the objects being linked to create a
16554# shared library.
16555predep_objects=$lt_predep_objects_CXX
16556
16557# Dependencies to place after the objects being linked to create a
16558# shared library.
16559postdep_objects=$lt_postdep_objects_CXX
16560
16561# Dependencies to place before the objects being linked to create a
16562# shared library.
16563predeps=$lt_predeps_CXX
16564
16565# Dependencies to place after the objects being linked to create a
16566# shared library.
16567postdeps=$lt_postdeps_CXX
16568
16569# The library search path used internally by the compiler when linking
16570# a shared library.
16571compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16572
16573# Method to check whether dependent libraries are shared objects.
16574deplibs_check_method=$lt_deplibs_check_method
16575
16576# Command to use when deplibs_check_method == file_magic.
16577file_magic_cmd=$lt_file_magic_cmd
16578
16579# Flag that allows shared libraries with undefined symbols to be built.
16580allow_undefined_flag=$lt_allow_undefined_flag_CXX
16581
16582# Flag that forces no undefined symbols.
16583no_undefined_flag=$lt_no_undefined_flag_CXX
16584
16585# Commands used to finish a libtool library installation in a directory.
16586finish_cmds=$lt_finish_cmds
16587
16588# Same as above, but a single script fragment to be evaled but not shown.
16589finish_eval=$lt_finish_eval
16590
16591# Take the output of nm and produce a listing of raw symbols and C names.
16592global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16593
16594# Transform the output of nm in a proper C declaration
16595global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16596
16597# Transform the output of nm in a C name address pair
16598global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16599
16600# This is the shared library runtime path variable.
16601runpath_var=$runpath_var
16602
16603# This is the shared library path variable.
16604shlibpath_var=$shlibpath_var
16605
16606# Is shlibpath searched before the hard-coded library search path?
16607shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16608
16609# How to hardcode a shared library path into an executable.
16610hardcode_action=$hardcode_action_CXX
16611
16612# Whether we should hardcode library paths into libraries.
16613hardcode_into_libs=$hardcode_into_libs
16614
16615# Flag to hardcode \$libdir into a binary during linking.
16616# This must work even if \$libdir does not exist.
16617hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16618
16619# If ld is used when linking, flag to hardcode \$libdir into
16620# a binary during linking. This must work even if \$libdir does
16621# not exist.
16622hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16623
16624# Whether we need a single -rpath flag with a separated argument.
16625hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16626
16627# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16628# resulting binary.
16629hardcode_direct=$hardcode_direct_CXX
16630
16631# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16632# resulting binary.
16633hardcode_minus_L=$hardcode_minus_L_CXX
16634
16635# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16636# the resulting binary.
16637hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16638
16639# Set to yes if building a shared library automatically hardcodes DIR into the library
16640# and all subsequent libraries and executables linked against it.
16641hardcode_automatic=$hardcode_automatic_CXX
16642
16643# Variables whose values should be saved in libtool wrapper scripts and
16644# restored at relink time.
16645variables_saved_for_relink="$variables_saved_for_relink"
16646
16647# Whether libtool must link a program against all its dependency libraries.
16648link_all_deplibs=$link_all_deplibs_CXX
16649
16650# Compile-time system search path for libraries
16651sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16652
16653# Run-time system search path for libraries
16654sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16655
16656# Fix the shell variable \$srcfile for the compiler.
16657fix_srcfile_path="$fix_srcfile_path_CXX"
16658
16659# Set to yes if exported symbols are required.
16660always_export_symbols=$always_export_symbols_CXX
16661
16662# The commands to list exported symbols.
16663export_symbols_cmds=$lt_export_symbols_cmds_CXX
16664
16665# The commands to extract the exported symbol list from a shared archive.
16666extract_expsyms_cmds=$lt_extract_expsyms_cmds
16667
16668# Symbols that should not be listed in the preloaded symbols.
16669exclude_expsyms=$lt_exclude_expsyms_CXX
16670
16671# Symbols that must always be exported.
16672include_expsyms=$lt_include_expsyms_CXX
16673
16674# ### END LIBTOOL TAG CONFIG: $tagname
16675
16676__EOF__
16677
16678
16679else
16680  # If there is no Makefile yet, we rely on a make rule to execute
16681  # `config.status --recheck' to rerun these tests and create the
16682  # libtool script then.
16683  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16684  if test -f "$ltmain_in"; then
16685    test -f Makefile && make "$ltmain"
16686  fi
16687fi
16688
16689
16690ac_ext=c
16691ac_cpp='$CPP $CPPFLAGS'
16692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16694ac_compiler_gnu=$ac_cv_c_compiler_gnu
16695
16696CC=$lt_save_CC
16697LDCXX=$LD
16698LD=$lt_save_LD
16699GCC=$lt_save_GCC
16700with_gnu_ldcxx=$with_gnu_ld
16701with_gnu_ld=$lt_save_with_gnu_ld
16702lt_cv_path_LDCXX=$lt_cv_path_LD
16703lt_cv_path_LD=$lt_save_path_LD
16704lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16705lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16706
16707	else
16708	  tagname=""
16709	fi
16710	;;
16711
16712      F77)
16713	if test -n "$F77" && test "X$F77" != "Xno"; then
16714
16715ac_ext=f
16716ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16717ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16718ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16719
16720
16721archive_cmds_need_lc_F77=no
16722allow_undefined_flag_F77=
16723always_export_symbols_F77=no
16724archive_expsym_cmds_F77=
16725export_dynamic_flag_spec_F77=
16726hardcode_direct_F77=no
16727hardcode_libdir_flag_spec_F77=
16728hardcode_libdir_flag_spec_ld_F77=
16729hardcode_libdir_separator_F77=
16730hardcode_minus_L_F77=no
16731hardcode_automatic_F77=no
16732module_cmds_F77=
16733module_expsym_cmds_F77=
16734link_all_deplibs_F77=unknown
16735old_archive_cmds_F77=$old_archive_cmds
16736no_undefined_flag_F77=
16737whole_archive_flag_spec_F77=
16738enable_shared_with_static_runtimes_F77=no
16739
16740# Source file extension for f77 test sources.
16741ac_ext=f
16742
16743# Object file extension for compiled f77 test sources.
16744objext=o
16745objext_F77=$objext
16746
16747# Code to be used in simple compile tests
16748lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16749
16750# Code to be used in simple link tests
16751lt_simple_link_test_code="      program t\n      end\n"
16752
16753# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16754
16755# If no C compiler was specified, use CC.
16756LTCC=${LTCC-"$CC"}
16757
16758# If no C compiler flags were specified, use CFLAGS.
16759LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16760
16761# Allow CC to be a program name with arguments.
16762compiler=$CC
16763
16764
16765# save warnings/boilerplate of simple test code
16766ac_outfile=conftest.$ac_objext
16767printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16768eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16769_lt_compiler_boilerplate=`cat conftest.err`
16770$rm conftest*
16771
16772ac_outfile=conftest.$ac_objext
16773printf "$lt_simple_link_test_code" >conftest.$ac_ext
16774eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16775_lt_linker_boilerplate=`cat conftest.err`
16776$rm conftest*
16777
16778
16779# Allow CC to be a program name with arguments.
16780lt_save_CC="$CC"
16781CC=${F77-"f77"}
16782compiler=$CC
16783compiler_F77=$CC
16784for cc_temp in $compiler""; do
16785  case $cc_temp in
16786    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16787    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16788    \-*) ;;
16789    *) break;;
16790  esac
16791done
16792cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16793
16794
16795echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16796echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16797echo "$as_me:$LINENO: result: $can_build_shared" >&5
16798echo "${ECHO_T}$can_build_shared" >&6
16799
16800echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16801echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16802test "$can_build_shared" = "no" && enable_shared=no
16803
16804# On AIX, shared libraries and static libraries use the same namespace, and
16805# are all built from PIC.
16806case $host_os in
16807aix3*)
16808  test "$enable_shared" = yes && enable_static=no
16809  if test -n "$RANLIB"; then
16810    archive_cmds="$archive_cmds~\$RANLIB \$lib"
16811    postinstall_cmds='$RANLIB $lib'
16812  fi
16813  ;;
16814aix4* | aix5*)
16815  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16816    test "$enable_shared" = yes && enable_static=no
16817  fi
16818  ;;
16819esac
16820echo "$as_me:$LINENO: result: $enable_shared" >&5
16821echo "${ECHO_T}$enable_shared" >&6
16822
16823echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16824echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16825# Make sure either enable_shared or enable_static is yes.
16826test "$enable_shared" = yes || enable_static=yes
16827echo "$as_me:$LINENO: result: $enable_static" >&5
16828echo "${ECHO_T}$enable_static" >&6
16829
16830GCC_F77="$G77"
16831LD_F77="$LD"
16832
16833lt_prog_compiler_wl_F77=
16834lt_prog_compiler_pic_F77=
16835lt_prog_compiler_static_F77=
16836
16837echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16838echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16839
16840  if test "$GCC" = yes; then
16841    lt_prog_compiler_wl_F77='-Wl,'
16842    lt_prog_compiler_static_F77='-static'
16843
16844    case $host_os in
16845      aix*)
16846      # All AIX code is PIC.
16847      if test "$host_cpu" = ia64; then
16848	# AIX 5 now supports IA64 processor
16849	lt_prog_compiler_static_F77='-Bstatic'
16850      fi
16851      ;;
16852
16853    amigaos*)
16854      # FIXME: we need at least 68020 code to build shared libraries, but
16855      # adding the `-m68020' flag to GCC prevents building anything better,
16856      # like `-m68040'.
16857      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16858      ;;
16859
16860    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16861      # PIC is the default for these OSes.
16862      ;;
16863
16864    mingw* | pw32* | os2*)
16865      # This hack is so that the source file can tell whether it is being
16866      # built for inclusion in a dll (and should export symbols for example).
16867      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16868      ;;
16869
16870    darwin* | rhapsody*)
16871      # PIC is the default on this platform
16872      # Common symbols not allowed in MH_DYLIB files
16873      lt_prog_compiler_pic_F77='-fno-common'
16874      ;;
16875
16876    interix3*)
16877      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16878      # Instead, we relocate shared libraries at runtime.
16879      ;;
16880
16881    msdosdjgpp*)
16882      # Just because we use GCC doesn't mean we suddenly get shared libraries
16883      # on systems that don't support them.
16884      lt_prog_compiler_can_build_shared_F77=no
16885      enable_shared=no
16886      ;;
16887
16888    sysv4*MP*)
16889      if test -d /usr/nec; then
16890	lt_prog_compiler_pic_F77=-Kconform_pic
16891      fi
16892      ;;
16893
16894    hpux*)
16895      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16896      # not for PA HP-UX.
16897      case $host_cpu in
16898      hppa*64*|ia64*)
16899	# +Z the default
16900	;;
16901      *)
16902	lt_prog_compiler_pic_F77='-fPIC'
16903	;;
16904      esac
16905      ;;
16906
16907    *)
16908      lt_prog_compiler_pic_F77='-fPIC'
16909      ;;
16910    esac
16911  else
16912    # PORTME Check for flag to pass linker flags through the system compiler.
16913    case $host_os in
16914    aix*)
16915      lt_prog_compiler_wl_F77='-Wl,'
16916      if test "$host_cpu" = ia64; then
16917	# AIX 5 now supports IA64 processor
16918	lt_prog_compiler_static_F77='-Bstatic'
16919      else
16920	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16921      fi
16922      ;;
16923      darwin*)
16924        # PIC is the default on this platform
16925        # Common symbols not allowed in MH_DYLIB files
16926       case $cc_basename in
16927         xlc*)
16928         lt_prog_compiler_pic_F77='-qnocommon'
16929         lt_prog_compiler_wl_F77='-Wl,'
16930         ;;
16931       esac
16932       ;;
16933
16934    mingw* | pw32* | os2*)
16935      # This hack is so that the source file can tell whether it is being
16936      # built for inclusion in a dll (and should export symbols for example).
16937      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16938      ;;
16939
16940    hpux9* | hpux10* | hpux11*)
16941      lt_prog_compiler_wl_F77='-Wl,'
16942      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16943      # not for PA HP-UX.
16944      case $host_cpu in
16945      hppa*64*|ia64*)
16946	# +Z the default
16947	;;
16948      *)
16949	lt_prog_compiler_pic_F77='+Z'
16950	;;
16951      esac
16952      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16953      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16954      ;;
16955
16956    irix5* | irix6* | nonstopux*)
16957      lt_prog_compiler_wl_F77='-Wl,'
16958      # PIC (with -KPIC) is the default.
16959      lt_prog_compiler_static_F77='-non_shared'
16960      ;;
16961
16962    newsos6)
16963      lt_prog_compiler_pic_F77='-KPIC'
16964      lt_prog_compiler_static_F77='-Bstatic'
16965      ;;
16966
16967    linux*)
16968      case $cc_basename in
16969      icc* | ecc*)
16970	lt_prog_compiler_wl_F77='-Wl,'
16971	lt_prog_compiler_pic_F77='-KPIC'
16972	lt_prog_compiler_static_F77='-static'
16973        ;;
16974      pgcc* | pgf77* | pgf90* | pgf95*)
16975        # Portland Group compilers (*not* the Pentium gcc compiler,
16976	# which looks to be a dead project)
16977	lt_prog_compiler_wl_F77='-Wl,'
16978	lt_prog_compiler_pic_F77='-fpic'
16979	lt_prog_compiler_static_F77='-Bstatic'
16980        ;;
16981      ccc*)
16982        lt_prog_compiler_wl_F77='-Wl,'
16983        # All Alpha code is PIC.
16984        lt_prog_compiler_static_F77='-non_shared'
16985        ;;
16986      esac
16987      ;;
16988
16989    osf3* | osf4* | osf5*)
16990      lt_prog_compiler_wl_F77='-Wl,'
16991      # All OSF/1 code is PIC.
16992      lt_prog_compiler_static_F77='-non_shared'
16993      ;;
16994
16995    solaris*)
16996      lt_prog_compiler_pic_F77='-KPIC'
16997      lt_prog_compiler_static_F77='-Bstatic'
16998      case $cc_basename in
16999      f77* | f90* | f95*)
17000	lt_prog_compiler_wl_F77='-Qoption ld ';;
17001      *)
17002	lt_prog_compiler_wl_F77='-Wl,';;
17003      esac
17004      ;;
17005
17006    sunos4*)
17007      lt_prog_compiler_wl_F77='-Qoption ld '
17008      lt_prog_compiler_pic_F77='-PIC'
17009      lt_prog_compiler_static_F77='-Bstatic'
17010      ;;
17011
17012    sysv4 | sysv4.2uw2* | sysv4.3*)
17013      lt_prog_compiler_wl_F77='-Wl,'
17014      lt_prog_compiler_pic_F77='-KPIC'
17015      lt_prog_compiler_static_F77='-Bstatic'
17016      ;;
17017
17018    sysv4*MP*)
17019      if test -d /usr/nec ;then
17020	lt_prog_compiler_pic_F77='-Kconform_pic'
17021	lt_prog_compiler_static_F77='-Bstatic'
17022      fi
17023      ;;
17024
17025    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17026      lt_prog_compiler_wl_F77='-Wl,'
17027      lt_prog_compiler_pic_F77='-KPIC'
17028      lt_prog_compiler_static_F77='-Bstatic'
17029      ;;
17030
17031    unicos*)
17032      lt_prog_compiler_wl_F77='-Wl,'
17033      lt_prog_compiler_can_build_shared_F77=no
17034      ;;
17035
17036    uts4*)
17037      lt_prog_compiler_pic_F77='-pic'
17038      lt_prog_compiler_static_F77='-Bstatic'
17039      ;;
17040
17041    *)
17042      lt_prog_compiler_can_build_shared_F77=no
17043      ;;
17044    esac
17045  fi
17046
17047echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17048echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
17049
17050#
17051# Check to make sure the PIC flag actually works.
17052#
17053if test -n "$lt_prog_compiler_pic_F77"; then
17054
17055echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17056echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
17057if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17058  echo $ECHO_N "(cached) $ECHO_C" >&6
17059else
17060  lt_prog_compiler_pic_works_F77=no
17061  ac_outfile=conftest.$ac_objext
17062   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17063   lt_compiler_flag="$lt_prog_compiler_pic_F77"
17064   # Insert the option either (1) after the last *FLAGS variable, or
17065   # (2) before a word containing "conftest.", or (3) at the end.
17066   # Note that $ac_compile itself does not contain backslashes and begins
17067   # with a dollar sign (not a hyphen), so the echo should work correctly.
17068   # The option is referenced via a variable to avoid confusing sed.
17069   lt_compile=`echo "$ac_compile" | $SED \
17070   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17071   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17072   -e 's:$: $lt_compiler_flag:'`
17073   (eval echo "\"\$as_me:17075: $lt_compile\"" >&5)
17074   (eval "$lt_compile" 2>conftest.err)
17075   ac_status=$?
17076   cat conftest.err >&5
17077   echo "$as_me:17079: \$? = $ac_status" >&5
17078   if (exit $ac_status) && test -s "$ac_outfile"; then
17079     # The compiler can only warn and ignore the option if not recognized
17080     # So say no if there are warnings other than the usual output.
17081     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17082     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17083     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17084       lt_prog_compiler_pic_works_F77=yes
17085     fi
17086   fi
17087   $rm conftest*
17088
17089fi
17090echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17091echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
17092
17093if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17094    case $lt_prog_compiler_pic_F77 in
17095     "" | " "*) ;;
17096     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17097     esac
17098else
17099    lt_prog_compiler_pic_F77=
17100     lt_prog_compiler_can_build_shared_F77=no
17101fi
17102
17103fi
17104case $host_os in
17105  # For platforms which do not support PIC, -DPIC is meaningless:
17106  *djgpp*)
17107    lt_prog_compiler_pic_F77=
17108    ;;
17109  *)
17110    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17111    ;;
17112esac
17113
17114#
17115# Check to make sure the static flag actually works.
17116#
17117wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17118echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17119echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17120if test "${lt_prog_compiler_static_works_F77+set}" = set; then
17121  echo $ECHO_N "(cached) $ECHO_C" >&6
17122else
17123  lt_prog_compiler_static_works_F77=no
17124   save_LDFLAGS="$LDFLAGS"
17125   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17126   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17127   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17128     # The linker can only warn and ignore the option if not recognized
17129     # So say no if there are warnings
17130     if test -s conftest.err; then
17131       # Append any errors to the config.log.
17132       cat conftest.err 1>&5
17133       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17134       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17135       if diff conftest.exp conftest.er2 >/dev/null; then
17136         lt_prog_compiler_static_works_F77=yes
17137       fi
17138     else
17139       lt_prog_compiler_static_works_F77=yes
17140     fi
17141   fi
17142   $rm conftest*
17143   LDFLAGS="$save_LDFLAGS"
17144
17145fi
17146echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
17147echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
17148
17149if test x"$lt_prog_compiler_static_works_F77" = xyes; then
17150    :
17151else
17152    lt_prog_compiler_static_F77=
17153fi
17154
17155
17156echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17157echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17158if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17159  echo $ECHO_N "(cached) $ECHO_C" >&6
17160else
17161  lt_cv_prog_compiler_c_o_F77=no
17162   $rm -r conftest 2>/dev/null
17163   mkdir conftest
17164   cd conftest
17165   mkdir out
17166   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17167
17168   lt_compiler_flag="-o out/conftest2.$ac_objext"
17169   # Insert the option either (1) after the last *FLAGS variable, or
17170   # (2) before a word containing "conftest.", or (3) at the end.
17171   # Note that $ac_compile itself does not contain backslashes and begins
17172   # with a dollar sign (not a hyphen), so the echo should work correctly.
17173   lt_compile=`echo "$ac_compile" | $SED \
17174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17176   -e 's:$: $lt_compiler_flag:'`
17177   (eval echo "\"\$as_me:17179: $lt_compile\"" >&5)
17178   (eval "$lt_compile" 2>out/conftest.err)
17179   ac_status=$?
17180   cat out/conftest.err >&5
17181   echo "$as_me:17183: \$? = $ac_status" >&5
17182   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17183   then
17184     # The compiler can only warn and ignore the option if not recognized
17185     # So say no if there are warnings
17186     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17187     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17188     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17189       lt_cv_prog_compiler_c_o_F77=yes
17190     fi
17191   fi
17192   chmod u+w . 2>&5
17193   $rm conftest*
17194   # SGI C++ compiler will create directory out/ii_files/ for
17195   # template instantiation
17196   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17197   $rm out/* && rmdir out
17198   cd ..
17199   rmdir conftest
17200   $rm conftest*
17201
17202fi
17203echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17204echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
17205
17206
17207hard_links="nottested"
17208if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17209  # do not overwrite the value of need_locks provided by the user
17210  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17211echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17212  hard_links=yes
17213  $rm conftest*
17214  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17215  touch conftest.a
17216  ln conftest.a conftest.b 2>&5 || hard_links=no
17217  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17218  echo "$as_me:$LINENO: result: $hard_links" >&5
17219echo "${ECHO_T}$hard_links" >&6
17220  if test "$hard_links" = no; then
17221    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17222echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17223    need_locks=warn
17224  fi
17225else
17226  need_locks=no
17227fi
17228
17229echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17230echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17231
17232  runpath_var=
17233  allow_undefined_flag_F77=
17234  enable_shared_with_static_runtimes_F77=no
17235  archive_cmds_F77=
17236  archive_expsym_cmds_F77=
17237  old_archive_From_new_cmds_F77=
17238  old_archive_from_expsyms_cmds_F77=
17239  export_dynamic_flag_spec_F77=
17240  whole_archive_flag_spec_F77=
17241  thread_safe_flag_spec_F77=
17242  hardcode_libdir_flag_spec_F77=
17243  hardcode_libdir_flag_spec_ld_F77=
17244  hardcode_libdir_separator_F77=
17245  hardcode_direct_F77=no
17246  hardcode_minus_L_F77=no
17247  hardcode_shlibpath_var_F77=unsupported
17248  link_all_deplibs_F77=unknown
17249  hardcode_automatic_F77=no
17250  module_cmds_F77=
17251  module_expsym_cmds_F77=
17252  always_export_symbols_F77=no
17253  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17254  # include_expsyms should be a list of space-separated symbols to be *always*
17255  # included in the symbol list
17256  include_expsyms_F77=
17257  # exclude_expsyms can be an extended regexp of symbols to exclude
17258  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17259  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17260  # as well as any symbol that contains `d'.
17261  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17262  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17263  # platforms (ab)use it in PIC code, but their linkers get confused if
17264  # the symbol is explicitly referenced.  Since portable code cannot
17265  # rely on this symbol name, it's probably fine to never include it in
17266  # preloaded symbol tables.
17267  extract_expsyms_cmds=
17268  # Just being paranoid about ensuring that cc_basename is set.
17269  for cc_temp in $compiler""; do
17270  case $cc_temp in
17271    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17272    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17273    \-*) ;;
17274    *) break;;
17275  esac
17276done
17277cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17278
17279  case $host_os in
17280  cygwin* | mingw* | pw32*)
17281    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17282    # When not using gcc, we currently assume that we are using
17283    # Microsoft Visual C++.
17284    if test "$GCC" != yes; then
17285      with_gnu_ld=no
17286    fi
17287    ;;
17288  interix*)
17289    # we just hope/assume this is gcc and not c89 (= MSVC++)
17290    with_gnu_ld=yes
17291    ;;
17292  openbsd*)
17293    with_gnu_ld=no
17294    ;;
17295  esac
17296
17297  ld_shlibs_F77=yes
17298  if test "$with_gnu_ld" = yes; then
17299    # If archive_cmds runs LD, not CC, wlarc should be empty
17300    wlarc='${wl}'
17301
17302    # Set some defaults for GNU ld with shared library support. These
17303    # are reset later if shared libraries are not supported. Putting them
17304    # here allows them to be overridden if necessary.
17305    runpath_var=LD_RUN_PATH
17306    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17307    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17308    # ancient GNU ld didn't support --whole-archive et. al.
17309    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17310	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17311      else
17312  	whole_archive_flag_spec_F77=
17313    fi
17314    supports_anon_versioning=no
17315    case `$LD -v 2>/dev/null` in
17316      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17317      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17318      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17319      *\ 2.11.*) ;; # other 2.11 versions
17320      *) supports_anon_versioning=yes ;;
17321    esac
17322
17323    # See if GNU ld supports shared libraries.
17324    case $host_os in
17325    aix3* | aix4* | aix5*)
17326      # On AIX/PPC, the GNU linker is very broken
17327      if test "$host_cpu" != ia64; then
17328	ld_shlibs_F77=no
17329	cat <<EOF 1>&2
17330
17331*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17332*** to be unable to reliably create shared libraries on AIX.
17333*** Therefore, libtool is disabling shared libraries support.  If you
17334*** really care for shared libraries, you may want to modify your PATH
17335*** so that a non-GNU linker is found, and then restart.
17336
17337EOF
17338      fi
17339      ;;
17340
17341    amigaos*)
17342      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)'
17343      hardcode_libdir_flag_spec_F77='-L$libdir'
17344      hardcode_minus_L_F77=yes
17345
17346      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17347      # that the semantics of dynamic libraries on AmigaOS, at least up
17348      # to version 4, is to share data among multiple programs linked
17349      # with the same dynamic library.  Since this doesn't match the
17350      # behavior of shared libraries on other platforms, we can't use
17351      # them.
17352      ld_shlibs_F77=no
17353      ;;
17354
17355    beos*)
17356      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17357	allow_undefined_flag_F77=unsupported
17358	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17359	# support --undefined.  This deserves some investigation.  FIXME
17360	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17361      else
17362	ld_shlibs_F77=no
17363      fi
17364      ;;
17365
17366    cygwin* | mingw* | pw32*)
17367      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17368      # as there is no search path for DLLs.
17369      hardcode_libdir_flag_spec_F77='-L$libdir'
17370      allow_undefined_flag_F77=unsupported
17371      always_export_symbols_F77=no
17372      enable_shared_with_static_runtimes_F77=yes
17373      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17374
17375      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17376        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17377	# If the export-symbols file already is a .def file (1st line
17378	# is EXPORTS), use it as is; otherwise, prepend...
17379	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17380	  cp $export_symbols $output_objdir/$soname.def;
17381	else
17382	  echo EXPORTS > $output_objdir/$soname.def;
17383	  cat $export_symbols >> $output_objdir/$soname.def;
17384	fi~
17385	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17386      else
17387	ld_shlibs_F77=no
17388      fi
17389      ;;
17390
17391    interix3*)
17392      hardcode_direct_F77=no
17393      hardcode_shlibpath_var_F77=no
17394      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17395      export_dynamic_flag_spec_F77='${wl}-E'
17396      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17397      # Instead, shared libraries are loaded at an image base (0x10000000 by
17398      # default) and relocated if they conflict, which is a slow very memory
17399      # consuming and fragmenting process.  To avoid this, we pick a random,
17400      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17401      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17402      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'
17403      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'
17404      ;;
17405
17406    linux*)
17407      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17408	tmp_addflag=
17409	case $cc_basename,$host_cpu in
17410	pgcc*)				# Portland Group C compiler
17411	  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'
17412	  tmp_addflag=' $pic_flag'
17413	  ;;
17414	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17415	  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'
17416	  tmp_addflag=' $pic_flag -Mnomain' ;;
17417	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17418	  tmp_addflag=' -i_dynamic' ;;
17419	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17420	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17421	ifc* | ifort*)			# Intel Fortran compiler
17422	  tmp_addflag=' -nofor_main' ;;
17423	esac
17424	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17425
17426	if test $supports_anon_versioning = yes; then
17427	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17428  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17429  $echo "local: *; };" >> $output_objdir/$libname.ver~
17430	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17431	fi
17432      else
17433	ld_shlibs_F77=no
17434      fi
17435      ;;
17436
17437    netbsd*)
17438      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17439	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17440	wlarc=
17441      else
17442	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17443	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17444      fi
17445      ;;
17446
17447    solaris*)
17448      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17449	ld_shlibs_F77=no
17450	cat <<EOF 1>&2
17451
17452*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17453*** create shared libraries on Solaris systems.  Therefore, libtool
17454*** is disabling shared libraries support.  We urge you to upgrade GNU
17455*** binutils to release 2.9.1 or newer.  Another option is to modify
17456*** your PATH or compiler configuration so that the native linker is
17457*** used, and then restart.
17458
17459EOF
17460      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17461	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17462	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17463      else
17464	ld_shlibs_F77=no
17465      fi
17466      ;;
17467
17468    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17469      case `$LD -v 2>&1` in
17470        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17471	ld_shlibs_F77=no
17472	cat <<_LT_EOF 1>&2
17473
17474*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17475*** reliably create shared libraries on SCO systems.  Therefore, libtool
17476*** is disabling shared libraries support.  We urge you to upgrade GNU
17477*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17478*** your PATH or compiler configuration so that the native linker is
17479*** used, and then restart.
17480
17481_LT_EOF
17482	;;
17483	*)
17484	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17485	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17486	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17487	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17488	  else
17489	    ld_shlibs_F77=no
17490	  fi
17491	;;
17492      esac
17493      ;;
17494
17495    sunos4*)
17496      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17497      wlarc=
17498      hardcode_direct_F77=yes
17499      hardcode_shlibpath_var_F77=no
17500      ;;
17501
17502    *)
17503      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17504	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17505	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17506      else
17507	ld_shlibs_F77=no
17508      fi
17509      ;;
17510    esac
17511
17512    if test "$ld_shlibs_F77" = no; then
17513      runpath_var=
17514      hardcode_libdir_flag_spec_F77=
17515      export_dynamic_flag_spec_F77=
17516      whole_archive_flag_spec_F77=
17517    fi
17518  else
17519    # PORTME fill in a description of your system's linker (not GNU ld)
17520    case $host_os in
17521    aix3*)
17522      allow_undefined_flag_F77=unsupported
17523      always_export_symbols_F77=yes
17524      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'
17525      # Note: this linker hardcodes the directories in LIBPATH if there
17526      # are no directories specified by -L.
17527      hardcode_minus_L_F77=yes
17528      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17529	# Neither direct hardcoding nor static linking is supported with a
17530	# broken collect2.
17531	hardcode_direct_F77=unsupported
17532      fi
17533      ;;
17534
17535    aix4* | aix5*)
17536      if test "$host_cpu" = ia64; then
17537	# On IA64, the linker does run time linking by default, so we don't
17538	# have to do anything special.
17539	aix_use_runtimelinking=no
17540	exp_sym_flag='-Bexport'
17541	no_entry_flag=""
17542      else
17543	# If we're using GNU nm, then we don't want the "-C" option.
17544	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17545	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17546	  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'
17547	else
17548	  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'
17549	fi
17550	aix_use_runtimelinking=no
17551
17552	# Test if we are trying to use run time linking or normal
17553	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17554	# need to do runtime linking.
17555	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17556	  for ld_flag in $LDFLAGS; do
17557  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17558  	    aix_use_runtimelinking=yes
17559  	    break
17560  	  fi
17561	  done
17562	  ;;
17563	esac
17564
17565	exp_sym_flag='-bexport'
17566	no_entry_flag='-bnoentry'
17567      fi
17568
17569      # When large executables or shared objects are built, AIX ld can
17570      # have problems creating the table of contents.  If linking a library
17571      # or program results in "error TOC overflow" add -mminimal-toc to
17572      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17573      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17574
17575      archive_cmds_F77=''
17576      hardcode_direct_F77=yes
17577      hardcode_libdir_separator_F77=':'
17578      link_all_deplibs_F77=yes
17579
17580      if test "$GCC" = yes; then
17581	case $host_os in aix4.[012]|aix4.[012].*)
17582	# We only want to do this on AIX 4.2 and lower, the check
17583	# below for broken collect2 doesn't work under 4.3+
17584	  collect2name=`${CC} -print-prog-name=collect2`
17585	  if test -f "$collect2name" && \
17586  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17587	  then
17588  	  # We have reworked collect2
17589  	  hardcode_direct_F77=yes
17590	  else
17591  	  # We have old collect2
17592  	  hardcode_direct_F77=unsupported
17593  	  # It fails to find uninstalled libraries when the uninstalled
17594  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17595  	  # to unsupported forces relinking
17596  	  hardcode_minus_L_F77=yes
17597  	  hardcode_libdir_flag_spec_F77='-L$libdir'
17598  	  hardcode_libdir_separator_F77=
17599	  fi
17600	  ;;
17601	esac
17602	shared_flag='-shared'
17603	if test "$aix_use_runtimelinking" = yes; then
17604	  shared_flag="$shared_flag "'${wl}-G'
17605	fi
17606      else
17607	# not using gcc
17608	if test "$host_cpu" = ia64; then
17609  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17610  	# chokes on -Wl,-G. The following line is correct:
17611	  shared_flag='-G'
17612	else
17613	  if test "$aix_use_runtimelinking" = yes; then
17614	    shared_flag='${wl}-G'
17615	  else
17616	    shared_flag='${wl}-bM:SRE'
17617	  fi
17618	fi
17619      fi
17620
17621      # It seems that -bexpall does not export symbols beginning with
17622      # underscore (_), so it is better to generate a list of symbols to export.
17623      always_export_symbols_F77=yes
17624      if test "$aix_use_runtimelinking" = yes; then
17625	# Warning - without using the other runtime loading flags (-brtl),
17626	# -berok will link without error, but may produce a broken library.
17627	allow_undefined_flag_F77='-berok'
17628       # Determine the default libpath from the value encoded in an empty executable.
17629       cat >conftest.$ac_ext <<_ACEOF
17630      program main
17631
17632      end
17633_ACEOF
17634rm -f conftest.$ac_objext conftest$ac_exeext
17635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17636  (eval $ac_link) 2>conftest.er1
17637  ac_status=$?
17638  grep -v '^ *+' conftest.er1 >conftest.err
17639  rm -f conftest.er1
17640  cat conftest.err >&5
17641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642  (exit $ac_status); } &&
17643	 { ac_try='test -z "$ac_f77_werror_flag"
17644			 || test ! -s conftest.err'
17645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646  (eval $ac_try) 2>&5
17647  ac_status=$?
17648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649  (exit $ac_status); }; } &&
17650	 { ac_try='test -s conftest$ac_exeext'
17651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652  (eval $ac_try) 2>&5
17653  ac_status=$?
17654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655  (exit $ac_status); }; }; then
17656
17657aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17658}'`
17659# Check for a 64-bit object if we didn't find anything.
17660if 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; }
17661}'`; fi
17662else
17663  echo "$as_me: failed program was:" >&5
17664sed 's/^/| /' conftest.$ac_ext >&5
17665
17666fi
17667rm -f conftest.err conftest.$ac_objext \
17668      conftest$ac_exeext conftest.$ac_ext
17669if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17670
17671       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17672	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"
17673       else
17674	if test "$host_cpu" = ia64; then
17675	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17676	  allow_undefined_flag_F77="-z nodefs"
17677	  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"
17678	else
17679	 # Determine the default libpath from the value encoded in an empty executable.
17680	 cat >conftest.$ac_ext <<_ACEOF
17681      program main
17682
17683      end
17684_ACEOF
17685rm -f conftest.$ac_objext conftest$ac_exeext
17686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687  (eval $ac_link) 2>conftest.er1
17688  ac_status=$?
17689  grep -v '^ *+' conftest.er1 >conftest.err
17690  rm -f conftest.er1
17691  cat conftest.err >&5
17692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693  (exit $ac_status); } &&
17694	 { ac_try='test -z "$ac_f77_werror_flag"
17695			 || test ! -s conftest.err'
17696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697  (eval $ac_try) 2>&5
17698  ac_status=$?
17699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700  (exit $ac_status); }; } &&
17701	 { ac_try='test -s conftest$ac_exeext'
17702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703  (eval $ac_try) 2>&5
17704  ac_status=$?
17705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706  (exit $ac_status); }; }; then
17707
17708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17709}'`
17710# Check for a 64-bit object if we didn't find anything.
17711if 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; }
17712}'`; fi
17713else
17714  echo "$as_me: failed program was:" >&5
17715sed 's/^/| /' conftest.$ac_ext >&5
17716
17717fi
17718rm -f conftest.err conftest.$ac_objext \
17719      conftest$ac_exeext conftest.$ac_ext
17720if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17721
17722	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17723	  # Warning - without using the other run time loading flags,
17724	  # -berok will link without error, but may produce a broken library.
17725	  no_undefined_flag_F77=' ${wl}-bernotok'
17726	  allow_undefined_flag_F77=' ${wl}-berok'
17727	  # Exported symbols can be pulled into shared objects from archives
17728	  whole_archive_flag_spec_F77='$convenience'
17729	  archive_cmds_need_lc_F77=yes
17730	  # This is similar to how AIX traditionally builds its shared libraries.
17731	  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'
17732	fi
17733      fi
17734      ;;
17735
17736    amigaos*)
17737      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)'
17738      hardcode_libdir_flag_spec_F77='-L$libdir'
17739      hardcode_minus_L_F77=yes
17740      # see comment about different semantics on the GNU ld section
17741      ld_shlibs_F77=no
17742      ;;
17743
17744    bsdi[45]*)
17745      export_dynamic_flag_spec_F77=-rdynamic
17746      ;;
17747
17748    cygwin* | mingw* | pw32*)
17749      # When not using gcc, we currently assume that we are using
17750      # Microsoft Visual C++.
17751      # hardcode_libdir_flag_spec is actually meaningless, as there is
17752      # no search path for DLLs.
17753      hardcode_libdir_flag_spec_F77=' '
17754      allow_undefined_flag_F77=unsupported
17755      # Tell ltmain to make .lib files, not .a files.
17756      libext=lib
17757      # Tell ltmain to make .dll files, not .so files.
17758      shrext_cmds=".dll"
17759      # FIXME: Setting linknames here is a bad hack.
17760      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17761      # The linker will automatically build a .lib file if we build a DLL.
17762      old_archive_From_new_cmds_F77='true'
17763      # FIXME: Should let the user specify the lib program.
17764      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17765      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17766      enable_shared_with_static_runtimes_F77=yes
17767      ;;
17768
17769    darwin* | rhapsody*)
17770      case $host_os in
17771        rhapsody* | darwin1.[012])
17772         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17773         ;;
17774       *) # Darwin 1.3 on
17775         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17776           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17777         else
17778           case ${MACOSX_DEPLOYMENT_TARGET} in
17779             10.[012])
17780               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17781               ;;
17782             10.*)
17783               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17784               ;;
17785           esac
17786         fi
17787         ;;
17788      esac
17789      archive_cmds_need_lc_F77=no
17790      hardcode_direct_F77=no
17791      hardcode_automatic_F77=yes
17792      hardcode_shlibpath_var_F77=unsupported
17793      whole_archive_flag_spec_F77=''
17794      link_all_deplibs_F77=yes
17795    if test "$GCC" = yes ; then
17796    	output_verbose_link_cmd='echo'
17797        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17798      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17799      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17800      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}'
17801      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}'
17802    else
17803      case $cc_basename in
17804        xlc*)
17805         output_verbose_link_cmd='echo'
17806         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17807         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17808          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17809         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}'
17810          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}'
17811          ;;
17812       *)
17813         ld_shlibs_F77=no
17814          ;;
17815      esac
17816    fi
17817      ;;
17818
17819    dgux*)
17820      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17821      hardcode_libdir_flag_spec_F77='-L$libdir'
17822      hardcode_shlibpath_var_F77=no
17823      ;;
17824
17825    freebsd1*)
17826      ld_shlibs_F77=no
17827      ;;
17828
17829    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17830    # support.  Future versions do this automatically, but an explicit c++rt0.o
17831    # does not break anything, and helps significantly (at the cost of a little
17832    # extra space).
17833    freebsd2.2*)
17834      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17835      hardcode_libdir_flag_spec_F77='-R$libdir'
17836      hardcode_direct_F77=yes
17837      hardcode_shlibpath_var_F77=no
17838      ;;
17839
17840    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17841    freebsd2*)
17842      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17843      hardcode_direct_F77=yes
17844      hardcode_minus_L_F77=yes
17845      hardcode_shlibpath_var_F77=no
17846      ;;
17847
17848    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17849    freebsd* | kfreebsd*-gnu | dragonfly*)
17850      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17851      hardcode_libdir_flag_spec_F77='-R$libdir'
17852      hardcode_direct_F77=yes
17853      hardcode_shlibpath_var_F77=no
17854      ;;
17855
17856    hpux9*)
17857      if test "$GCC" = yes; then
17858	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'
17859      else
17860	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'
17861      fi
17862      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17863      hardcode_libdir_separator_F77=:
17864      hardcode_direct_F77=yes
17865
17866      # hardcode_minus_L: Not really in the search PATH,
17867      # but as the default location of the library.
17868      hardcode_minus_L_F77=yes
17869      export_dynamic_flag_spec_F77='${wl}-E'
17870      ;;
17871
17872    hpux10*)
17873      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17874	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17875      else
17876	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17877      fi
17878      if test "$with_gnu_ld" = no; then
17879	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17880	hardcode_libdir_separator_F77=:
17881
17882	hardcode_direct_F77=yes
17883	export_dynamic_flag_spec_F77='${wl}-E'
17884
17885	# hardcode_minus_L: Not really in the search PATH,
17886	# but as the default location of the library.
17887	hardcode_minus_L_F77=yes
17888      fi
17889      ;;
17890
17891    hpux11*)
17892      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17893	case $host_cpu in
17894	hppa*64*)
17895	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17896	  ;;
17897	ia64*)
17898	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17899	  ;;
17900	*)
17901	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17902	  ;;
17903	esac
17904      else
17905	case $host_cpu in
17906	hppa*64*)
17907	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17908	  ;;
17909	ia64*)
17910	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17911	  ;;
17912	*)
17913	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17914	  ;;
17915	esac
17916      fi
17917      if test "$with_gnu_ld" = no; then
17918	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17919	hardcode_libdir_separator_F77=:
17920
17921	case $host_cpu in
17922	hppa*64*|ia64*)
17923	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17924	  hardcode_direct_F77=no
17925	  hardcode_shlibpath_var_F77=no
17926	  ;;
17927	*)
17928	  hardcode_direct_F77=yes
17929	  export_dynamic_flag_spec_F77='${wl}-E'
17930
17931	  # hardcode_minus_L: Not really in the search PATH,
17932	  # but as the default location of the library.
17933	  hardcode_minus_L_F77=yes
17934	  ;;
17935	esac
17936      fi
17937      ;;
17938
17939    irix5* | irix6* | nonstopux*)
17940      if test "$GCC" = yes; then
17941	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'
17942      else
17943	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'
17944	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17945      fi
17946      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17947      hardcode_libdir_separator_F77=:
17948      link_all_deplibs_F77=yes
17949      ;;
17950
17951    netbsd*)
17952      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17953	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17954      else
17955	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17956      fi
17957      hardcode_libdir_flag_spec_F77='-R$libdir'
17958      hardcode_direct_F77=yes
17959      hardcode_shlibpath_var_F77=no
17960      ;;
17961
17962    newsos6)
17963      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17964      hardcode_direct_F77=yes
17965      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17966      hardcode_libdir_separator_F77=:
17967      hardcode_shlibpath_var_F77=no
17968      ;;
17969
17970    openbsd*)
17971      hardcode_direct_F77=yes
17972      hardcode_shlibpath_var_F77=no
17973      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17974	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17975	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17976	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17977	export_dynamic_flag_spec_F77='${wl}-E'
17978      else
17979       case $host_os in
17980	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17981	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17982	   hardcode_libdir_flag_spec_F77='-R$libdir'
17983	   ;;
17984	 *)
17985	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17986	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17987	   ;;
17988       esac
17989      fi
17990      ;;
17991
17992    os2*)
17993      hardcode_libdir_flag_spec_F77='-L$libdir'
17994      hardcode_minus_L_F77=yes
17995      allow_undefined_flag_F77=unsupported
17996      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'
17997      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17998      ;;
17999
18000    osf3*)
18001      if test "$GCC" = yes; then
18002	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18003	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'
18004      else
18005	allow_undefined_flag_F77=' -expect_unresolved \*'
18006	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'
18007      fi
18008      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18009      hardcode_libdir_separator_F77=:
18010      ;;
18011
18012    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18013      if test "$GCC" = yes; then
18014	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18015	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'
18016	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18017      else
18018	allow_undefined_flag_F77=' -expect_unresolved \*'
18019	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'
18020	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~
18021	$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'
18022
18023	# Both c and cxx compiler support -rpath directly
18024	hardcode_libdir_flag_spec_F77='-rpath $libdir'
18025      fi
18026      hardcode_libdir_separator_F77=:
18027      ;;
18028
18029    solaris*)
18030      no_undefined_flag_F77=' -z text'
18031      if test "$GCC" = yes; then
18032	wlarc='${wl}'
18033	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18034	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18035	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18036      else
18037	wlarc=''
18038	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18040  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18041      fi
18042      hardcode_libdir_flag_spec_F77='-R$libdir'
18043      hardcode_shlibpath_var_F77=no
18044      case $host_os in
18045      solaris2.[0-5] | solaris2.[0-5].*) ;;
18046      *)
18047 	# The compiler driver will combine linker options so we
18048 	# cannot just pass the convience library names through
18049 	# without $wl, iff we do not link with $LD.
18050 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18051 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18052 	case $wlarc in
18053 	'')
18054 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18055 	*)
18056 	  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' ;;
18057 	esac ;;
18058      esac
18059      link_all_deplibs_F77=yes
18060      ;;
18061
18062    sunos4*)
18063      if test "x$host_vendor" = xsequent; then
18064	# Use $CC to link under sequent, because it throws in some extra .o
18065	# files that make .init and .fini sections work.
18066	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18067      else
18068	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18069      fi
18070      hardcode_libdir_flag_spec_F77='-L$libdir'
18071      hardcode_direct_F77=yes
18072      hardcode_minus_L_F77=yes
18073      hardcode_shlibpath_var_F77=no
18074      ;;
18075
18076    sysv4)
18077      case $host_vendor in
18078	sni)
18079	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080	  hardcode_direct_F77=yes # is this really true???
18081	;;
18082	siemens)
18083	  ## LD is ld it makes a PLAMLIB
18084	  ## CC just makes a GrossModule.
18085	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18086	  reload_cmds_F77='$CC -r -o $output$reload_objs'
18087	  hardcode_direct_F77=no
18088        ;;
18089	motorola)
18090	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18091	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18092	;;
18093      esac
18094      runpath_var='LD_RUN_PATH'
18095      hardcode_shlibpath_var_F77=no
18096      ;;
18097
18098    sysv4.3*)
18099      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100      hardcode_shlibpath_var_F77=no
18101      export_dynamic_flag_spec_F77='-Bexport'
18102      ;;
18103
18104    sysv4*MP*)
18105      if test -d /usr/nec; then
18106	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18107	hardcode_shlibpath_var_F77=no
18108	runpath_var=LD_RUN_PATH
18109	hardcode_runpath_var=yes
18110	ld_shlibs_F77=yes
18111      fi
18112      ;;
18113
18114    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18115      no_undefined_flag_F77='${wl}-z,text'
18116      archive_cmds_need_lc_F77=no
18117      hardcode_shlibpath_var_F77=no
18118      runpath_var='LD_RUN_PATH'
18119
18120      if test "$GCC" = yes; then
18121	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123      else
18124	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18125	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18126      fi
18127      ;;
18128
18129    sysv5* | sco3.2v5* | sco5v6*)
18130      # Note: We can NOT use -z defs as we might desire, because we do not
18131      # link with -lc, and that would cause any symbols used from libc to
18132      # always be unresolved, which means just about no library would
18133      # ever link correctly.  If we're not using GNU ld we use -z text
18134      # though, which does catch some bad symbols but isn't as heavy-handed
18135      # as -z defs.
18136      no_undefined_flag_F77='${wl}-z,text'
18137      allow_undefined_flag_F77='${wl}-z,nodefs'
18138      archive_cmds_need_lc_F77=no
18139      hardcode_shlibpath_var_F77=no
18140      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18141      hardcode_libdir_separator_F77=':'
18142      link_all_deplibs_F77=yes
18143      export_dynamic_flag_spec_F77='${wl}-Bexport'
18144      runpath_var='LD_RUN_PATH'
18145
18146      if test "$GCC" = yes; then
18147	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18149      else
18150	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18151	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18152      fi
18153      ;;
18154
18155    uts4*)
18156      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18157      hardcode_libdir_flag_spec_F77='-L$libdir'
18158      hardcode_shlibpath_var_F77=no
18159      ;;
18160
18161    *)
18162      ld_shlibs_F77=no
18163      ;;
18164    esac
18165  fi
18166
18167echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18168echo "${ECHO_T}$ld_shlibs_F77" >&6
18169test "$ld_shlibs_F77" = no && can_build_shared=no
18170
18171#
18172# Do we need to explicitly link libc?
18173#
18174case "x$archive_cmds_need_lc_F77" in
18175x|xyes)
18176  # Assume -lc should be added
18177  archive_cmds_need_lc_F77=yes
18178
18179  if test "$enable_shared" = yes && test "$GCC" = yes; then
18180    case $archive_cmds_F77 in
18181    *'~'*)
18182      # FIXME: we may have to deal with multi-command sequences.
18183      ;;
18184    '$CC '*)
18185      # Test whether the compiler implicitly links with -lc since on some
18186      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18187      # to ld, don't add -lc before -lgcc.
18188      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18189echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18190      $rm conftest*
18191      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18192
18193      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18194  (eval $ac_compile) 2>&5
18195  ac_status=$?
18196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197  (exit $ac_status); } 2>conftest.err; then
18198        soname=conftest
18199        lib=conftest
18200        libobjs=conftest.$ac_objext
18201        deplibs=
18202        wl=$lt_prog_compiler_wl_F77
18203	pic_flag=$lt_prog_compiler_pic_F77
18204        compiler_flags=-v
18205        linker_flags=-v
18206        verstring=
18207        output_objdir=.
18208        libname=conftest
18209        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18210        allow_undefined_flag_F77=
18211        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18212  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18213  ac_status=$?
18214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215  (exit $ac_status); }
18216        then
18217	  archive_cmds_need_lc_F77=no
18218        else
18219	  archive_cmds_need_lc_F77=yes
18220        fi
18221        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18222      else
18223        cat conftest.err 1>&5
18224      fi
18225      $rm conftest*
18226      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18227echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
18228      ;;
18229    esac
18230  fi
18231  ;;
18232esac
18233
18234echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18235echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18236library_names_spec=
18237libname_spec='lib$name'
18238soname_spec=
18239shrext_cmds=".so"
18240postinstall_cmds=
18241postuninstall_cmds=
18242finish_cmds=
18243finish_eval=
18244shlibpath_var=
18245shlibpath_overrides_runpath=unknown
18246version_type=none
18247dynamic_linker="$host_os ld.so"
18248sys_lib_dlsearch_path_spec="/lib /usr/lib"
18249if test "$GCC" = yes; then
18250  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18251  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18252    # if the path contains ";" then we assume it to be the separator
18253    # otherwise default to the standard path separator (i.e. ":") - it is
18254    # assumed that no part of a normal pathname contains ";" but that should
18255    # okay in the real world where ";" in dirpaths is itself problematic.
18256    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18257  else
18258    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18259  fi
18260else
18261  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18262fi
18263need_lib_prefix=unknown
18264hardcode_into_libs=no
18265
18266# when you set need_version to no, make sure it does not cause -set_version
18267# flags to be left without arguments
18268need_version=unknown
18269
18270case $host_os in
18271aix3*)
18272  version_type=linux
18273  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18274  shlibpath_var=LIBPATH
18275
18276  # AIX 3 has no versioning support, so we append a major version to the name.
18277  soname_spec='${libname}${release}${shared_ext}$major'
18278  ;;
18279
18280aix4* | aix5*)
18281  version_type=linux
18282  need_lib_prefix=no
18283  need_version=no
18284  hardcode_into_libs=yes
18285  if test "$host_cpu" = ia64; then
18286    # AIX 5 supports IA64
18287    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18288    shlibpath_var=LD_LIBRARY_PATH
18289  else
18290    # With GCC up to 2.95.x, collect2 would create an import file
18291    # for dependence libraries.  The import file would start with
18292    # the line `#! .'.  This would cause the generated library to
18293    # depend on `.', always an invalid library.  This was fixed in
18294    # development snapshots of GCC prior to 3.0.
18295    case $host_os in
18296      aix4 | aix4.[01] | aix4.[01].*)
18297      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18298	   echo ' yes '
18299	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18300	:
18301      else
18302	can_build_shared=no
18303      fi
18304      ;;
18305    esac
18306    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18307    # soname into executable. Probably we can add versioning support to
18308    # collect2, so additional links can be useful in future.
18309    if test "$aix_use_runtimelinking" = yes; then
18310      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18311      # instead of lib<name>.a to let people know that these are not
18312      # typical AIX shared libraries.
18313      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314    else
18315      # We preserve .a as extension for shared libraries through AIX4.2
18316      # and later when we are not doing run time linking.
18317      library_names_spec='${libname}${release}.a $libname.a'
18318      soname_spec='${libname}${release}${shared_ext}$major'
18319    fi
18320    shlibpath_var=LIBPATH
18321  fi
18322  ;;
18323
18324amigaos*)
18325  library_names_spec='$libname.ixlibrary $libname.a'
18326  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18327  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'
18328  ;;
18329
18330beos*)
18331  library_names_spec='${libname}${shared_ext}'
18332  dynamic_linker="$host_os ld.so"
18333  shlibpath_var=LIBRARY_PATH
18334  ;;
18335
18336bsdi[45]*)
18337  version_type=linux
18338  need_version=no
18339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18340  soname_spec='${libname}${release}${shared_ext}$major'
18341  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18342  shlibpath_var=LD_LIBRARY_PATH
18343  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18344  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18345  # the default ld.so.conf also contains /usr/contrib/lib and
18346  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18347  # libtool to hard-code these into programs
18348  ;;
18349
18350cygwin* | mingw* | pw32*)
18351  version_type=windows
18352  shrext_cmds=".dll"
18353  need_version=no
18354  need_lib_prefix=no
18355
18356  case $GCC,$host_os in
18357  yes,cygwin* | yes,mingw* | yes,pw32*)
18358    library_names_spec='$libname.dll.a'
18359    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18360    postinstall_cmds='base_file=`basename \${file}`~
18361      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18362      dldir=$destdir/`dirname \$dlpath`~
18363      test -d \$dldir || mkdir -p \$dldir~
18364      $install_prog $dir/$dlname \$dldir/$dlname~
18365      chmod a+x \$dldir/$dlname'
18366    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18367      dlpath=$dir/\$dldll~
18368       $rm \$dlpath'
18369    shlibpath_overrides_runpath=yes
18370
18371    case $host_os in
18372    cygwin*)
18373      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18374      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18375      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18376      ;;
18377    mingw*)
18378      # MinGW DLLs use traditional 'lib' prefix
18379      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18380      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18381      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18382        # It is most probably a Windows format PATH printed by
18383        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18384        # path with ; separators, and with drive letters. We can handle the
18385        # drive letters (cygwin fileutils understands them), so leave them,
18386        # especially as we might pass files found there to a mingw objdump,
18387        # which wouldn't understand a cygwinified path. Ahh.
18388        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18389      else
18390        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18391      fi
18392      ;;
18393    pw32*)
18394      # pw32 DLLs use 'pw' prefix rather than 'lib'
18395      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18396      ;;
18397    esac
18398    ;;
18399
18400  *)
18401    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18402    ;;
18403  esac
18404  dynamic_linker='Win32 ld.exe'
18405  # FIXME: first we should search . and the directory the executable is in
18406  shlibpath_var=PATH
18407  ;;
18408
18409darwin* | rhapsody*)
18410  dynamic_linker="$host_os dyld"
18411  version_type=darwin
18412  need_lib_prefix=no
18413  need_version=no
18414  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18415  soname_spec='${libname}${release}${major}$shared_ext'
18416  shlibpath_overrides_runpath=yes
18417  shlibpath_var=DYLD_LIBRARY_PATH
18418  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18419  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18420  if test "$GCC" = yes; then
18421    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"`
18422  else
18423    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18424  fi
18425  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18426  ;;
18427
18428dgux*)
18429  version_type=linux
18430  need_lib_prefix=no
18431  need_version=no
18432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18433  soname_spec='${libname}${release}${shared_ext}$major'
18434  shlibpath_var=LD_LIBRARY_PATH
18435  ;;
18436
18437freebsd1*)
18438  dynamic_linker=no
18439  ;;
18440
18441kfreebsd*-gnu)
18442  version_type=linux
18443  need_lib_prefix=no
18444  need_version=no
18445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18446  soname_spec='${libname}${release}${shared_ext}$major'
18447  shlibpath_var=LD_LIBRARY_PATH
18448  shlibpath_overrides_runpath=no
18449  hardcode_into_libs=yes
18450  dynamic_linker='GNU ld.so'
18451  ;;
18452
18453freebsd* | dragonfly*)
18454  # DragonFly does not have aout.  When/if they implement a new
18455  # versioning mechanism, adjust this.
18456  if test -x /usr/bin/objformat; then
18457    objformat=`/usr/bin/objformat`
18458  else
18459    case $host_os in
18460    freebsd[123]*) objformat=aout ;;
18461    *) objformat=elf ;;
18462    esac
18463  fi
18464  version_type=freebsd-$objformat
18465  case $version_type in
18466    freebsd-elf*)
18467      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18468      need_version=no
18469      need_lib_prefix=no
18470      ;;
18471    freebsd-*)
18472      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18473      need_version=yes
18474      ;;
18475  esac
18476  shlibpath_var=LD_LIBRARY_PATH
18477  case $host_os in
18478  freebsd2*)
18479    shlibpath_overrides_runpath=yes
18480    ;;
18481  freebsd3.[01]* | freebsdelf3.[01]*)
18482    shlibpath_overrides_runpath=yes
18483    hardcode_into_libs=yes
18484    ;;
18485  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18486  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18487    shlibpath_overrides_runpath=no
18488    hardcode_into_libs=yes
18489    ;;
18490  freebsd*) # from 4.6 on
18491    shlibpath_overrides_runpath=yes
18492    hardcode_into_libs=yes
18493    ;;
18494  esac
18495  ;;
18496
18497gnu*)
18498  version_type=linux
18499  need_lib_prefix=no
18500  need_version=no
18501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18502  soname_spec='${libname}${release}${shared_ext}$major'
18503  shlibpath_var=LD_LIBRARY_PATH
18504  hardcode_into_libs=yes
18505  ;;
18506
18507hpux9* | hpux10* | hpux11*)
18508  # Give a soname corresponding to the major version so that dld.sl refuses to
18509  # link against other versions.
18510  version_type=sunos
18511  need_lib_prefix=no
18512  need_version=no
18513  case $host_cpu in
18514  ia64*)
18515    shrext_cmds='.so'
18516    hardcode_into_libs=yes
18517    dynamic_linker="$host_os dld.so"
18518    shlibpath_var=LD_LIBRARY_PATH
18519    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18520    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18521    soname_spec='${libname}${release}${shared_ext}$major'
18522    if test "X$HPUX_IA64_MODE" = X32; then
18523      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18524    else
18525      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18526    fi
18527    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18528    ;;
18529   hppa*64*)
18530     shrext_cmds='.sl'
18531     hardcode_into_libs=yes
18532     dynamic_linker="$host_os dld.sl"
18533     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18534     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536     soname_spec='${libname}${release}${shared_ext}$major'
18537     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18538     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18539     ;;
18540   *)
18541    shrext_cmds='.sl'
18542    dynamic_linker="$host_os dld.sl"
18543    shlibpath_var=SHLIB_PATH
18544    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18545    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18546    soname_spec='${libname}${release}${shared_ext}$major'
18547    ;;
18548  esac
18549  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18550  postinstall_cmds='chmod 555 $lib'
18551  ;;
18552
18553interix3*)
18554  version_type=linux
18555  need_lib_prefix=no
18556  need_version=no
18557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18558  soname_spec='${libname}${release}${shared_ext}$major'
18559  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18560  shlibpath_var=LD_LIBRARY_PATH
18561  shlibpath_overrides_runpath=no
18562  hardcode_into_libs=yes
18563  ;;
18564
18565irix5* | irix6* | nonstopux*)
18566  case $host_os in
18567    nonstopux*) version_type=nonstopux ;;
18568    *)
18569	if test "$lt_cv_prog_gnu_ld" = yes; then
18570		version_type=linux
18571	else
18572		version_type=irix
18573	fi ;;
18574  esac
18575  need_lib_prefix=no
18576  need_version=no
18577  soname_spec='${libname}${release}${shared_ext}$major'
18578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18579  case $host_os in
18580  irix5* | nonstopux*)
18581    libsuff= shlibsuff=
18582    ;;
18583  *)
18584    case $LD in # libtool.m4 will add one of these switches to LD
18585    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18586      libsuff= shlibsuff= libmagic=32-bit;;
18587    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18588      libsuff=32 shlibsuff=N32 libmagic=N32;;
18589    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18590      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18591    *) libsuff= shlibsuff= libmagic=never-match;;
18592    esac
18593    ;;
18594  esac
18595  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18596  shlibpath_overrides_runpath=no
18597  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18598  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18599  hardcode_into_libs=yes
18600  ;;
18601
18602# No shared lib support for Linux oldld, aout, or coff.
18603linux*oldld* | linux*aout* | linux*coff*)
18604  dynamic_linker=no
18605  ;;
18606
18607# This must be Linux ELF.
18608linux*)
18609  version_type=linux
18610  need_lib_prefix=no
18611  need_version=no
18612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18613  soname_spec='${libname}${release}${shared_ext}$major'
18614  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18615  shlibpath_var=LD_LIBRARY_PATH
18616  shlibpath_overrides_runpath=no
18617  # This implies no fast_install, which is unacceptable.
18618  # Some rework will be needed to allow for fast_install
18619  # before this can be enabled.
18620  hardcode_into_libs=yes
18621
18622  # find out which ABI we are using
18623  libsuff=
18624  case "$host_cpu" in
18625  x86_64*|s390x*|powerpc64*)
18626    echo '#line 18628 "configure"' > conftest.$ac_ext
18627    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18628  (eval $ac_compile) 2>&5
18629  ac_status=$?
18630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631  (exit $ac_status); }; then
18632      case `/usr/bin/file conftest.$ac_objext` in
18633      *64-bit*)
18634        libsuff=64
18635        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18636        ;;
18637      esac
18638    fi
18639    rm -rf conftest*
18640    ;;
18641  esac
18642
18643  # Append ld.so.conf contents to the search path
18644  if test -f /etc/ld.so.conf; then
18645    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' ' '`
18646    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18647  fi
18648
18649  # We used to test for /lib/ld.so.1 and disable shared libraries on
18650  # powerpc, because MkLinux only supported shared libraries with the
18651  # GNU dynamic linker.  Since this was broken with cross compilers,
18652  # most powerpc-linux boxes support dynamic linking these days and
18653  # people can always --disable-shared, the test was removed, and we
18654  # assume the GNU/Linux dynamic linker is in use.
18655  dynamic_linker='GNU/Linux ld.so'
18656  ;;
18657
18658knetbsd*-gnu)
18659  version_type=linux
18660  need_lib_prefix=no
18661  need_version=no
18662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18663  soname_spec='${libname}${release}${shared_ext}$major'
18664  shlibpath_var=LD_LIBRARY_PATH
18665  shlibpath_overrides_runpath=no
18666  hardcode_into_libs=yes
18667  dynamic_linker='GNU ld.so'
18668  ;;
18669
18670netbsd*)
18671  version_type=sunos
18672  need_lib_prefix=no
18673  need_version=no
18674  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18675    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18676    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18677    dynamic_linker='NetBSD (a.out) ld.so'
18678  else
18679    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18680    soname_spec='${libname}${release}${shared_ext}$major'
18681    dynamic_linker='NetBSD ld.elf_so'
18682  fi
18683  shlibpath_var=LD_LIBRARY_PATH
18684  shlibpath_overrides_runpath=yes
18685  hardcode_into_libs=yes
18686  ;;
18687
18688newsos6)
18689  version_type=linux
18690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691  shlibpath_var=LD_LIBRARY_PATH
18692  shlibpath_overrides_runpath=yes
18693  ;;
18694
18695nto-qnx*)
18696  version_type=linux
18697  need_lib_prefix=no
18698  need_version=no
18699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700  soname_spec='${libname}${release}${shared_ext}$major'
18701  shlibpath_var=LD_LIBRARY_PATH
18702  shlibpath_overrides_runpath=yes
18703  ;;
18704
18705openbsd*)
18706  version_type=sunos
18707  sys_lib_dlsearch_path_spec="/usr/lib"
18708  need_lib_prefix=no
18709  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18710  case $host_os in
18711    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18712    *)                         need_version=no  ;;
18713  esac
18714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18715  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18716  shlibpath_var=LD_LIBRARY_PATH
18717  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18718    case $host_os in
18719      openbsd2.[89] | openbsd2.[89].*)
18720	shlibpath_overrides_runpath=no
18721	;;
18722      *)
18723	shlibpath_overrides_runpath=yes
18724	;;
18725      esac
18726  else
18727    shlibpath_overrides_runpath=yes
18728  fi
18729  ;;
18730
18731os2*)
18732  libname_spec='$name'
18733  shrext_cmds=".dll"
18734  need_lib_prefix=no
18735  library_names_spec='$libname${shared_ext} $libname.a'
18736  dynamic_linker='OS/2 ld.exe'
18737  shlibpath_var=LIBPATH
18738  ;;
18739
18740osf3* | osf4* | osf5*)
18741  version_type=osf
18742  need_lib_prefix=no
18743  need_version=no
18744  soname_spec='${libname}${release}${shared_ext}$major'
18745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746  shlibpath_var=LD_LIBRARY_PATH
18747  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18748  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18749  ;;
18750
18751solaris*)
18752  version_type=linux
18753  need_lib_prefix=no
18754  need_version=no
18755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18756  soname_spec='${libname}${release}${shared_ext}$major'
18757  shlibpath_var=LD_LIBRARY_PATH
18758  shlibpath_overrides_runpath=yes
18759  hardcode_into_libs=yes
18760  # ldd complains unless libraries are executable
18761  postinstall_cmds='chmod +x $lib'
18762  ;;
18763
18764sunos4*)
18765  version_type=sunos
18766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18767  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18768  shlibpath_var=LD_LIBRARY_PATH
18769  shlibpath_overrides_runpath=yes
18770  if test "$with_gnu_ld" = yes; then
18771    need_lib_prefix=no
18772  fi
18773  need_version=yes
18774  ;;
18775
18776sysv4 | sysv4.3*)
18777  version_type=linux
18778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779  soname_spec='${libname}${release}${shared_ext}$major'
18780  shlibpath_var=LD_LIBRARY_PATH
18781  case $host_vendor in
18782    sni)
18783      shlibpath_overrides_runpath=no
18784      need_lib_prefix=no
18785      export_dynamic_flag_spec='${wl}-Blargedynsym'
18786      runpath_var=LD_RUN_PATH
18787      ;;
18788    siemens)
18789      need_lib_prefix=no
18790      ;;
18791    motorola)
18792      need_lib_prefix=no
18793      need_version=no
18794      shlibpath_overrides_runpath=no
18795      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18796      ;;
18797  esac
18798  ;;
18799
18800sysv4*MP*)
18801  if test -d /usr/nec ;then
18802    version_type=linux
18803    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18804    soname_spec='$libname${shared_ext}.$major'
18805    shlibpath_var=LD_LIBRARY_PATH
18806  fi
18807  ;;
18808
18809sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18810  version_type=freebsd-elf
18811  need_lib_prefix=no
18812  need_version=no
18813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18814  soname_spec='${libname}${release}${shared_ext}$major'
18815  shlibpath_var=LD_LIBRARY_PATH
18816  hardcode_into_libs=yes
18817  if test "$with_gnu_ld" = yes; then
18818    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18819    shlibpath_overrides_runpath=no
18820  else
18821    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18822    shlibpath_overrides_runpath=yes
18823    case $host_os in
18824      sco3.2v5*)
18825        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18826	;;
18827    esac
18828  fi
18829  sys_lib_dlsearch_path_spec='/usr/lib'
18830  ;;
18831
18832uts4*)
18833  version_type=linux
18834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835  soname_spec='${libname}${release}${shared_ext}$major'
18836  shlibpath_var=LD_LIBRARY_PATH
18837  ;;
18838
18839*)
18840  dynamic_linker=no
18841  ;;
18842esac
18843echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18844echo "${ECHO_T}$dynamic_linker" >&6
18845test "$dynamic_linker" = no && can_build_shared=no
18846
18847variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18848if test "$GCC" = yes; then
18849  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18850fi
18851
18852echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18853echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18854hardcode_action_F77=
18855if test -n "$hardcode_libdir_flag_spec_F77" || \
18856   test -n "$runpath_var_F77" || \
18857   test "X$hardcode_automatic_F77" = "Xyes" ; then
18858
18859  # We can hardcode non-existant directories.
18860  if test "$hardcode_direct_F77" != no &&
18861     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18862     # have to relink, otherwise we might link with an installed library
18863     # when we should be linking with a yet-to-be-installed one
18864     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18865     test "$hardcode_minus_L_F77" != no; then
18866    # Linking always hardcodes the temporary library directory.
18867    hardcode_action_F77=relink
18868  else
18869    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18870    hardcode_action_F77=immediate
18871  fi
18872else
18873  # We cannot hardcode anything, or else we can only hardcode existing
18874  # directories.
18875  hardcode_action_F77=unsupported
18876fi
18877echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18878echo "${ECHO_T}$hardcode_action_F77" >&6
18879
18880if test "$hardcode_action_F77" = relink; then
18881  # Fast installation is not supported
18882  enable_fast_install=no
18883elif test "$shlibpath_overrides_runpath" = yes ||
18884     test "$enable_shared" = no; then
18885  # Fast installation is not necessary
18886  enable_fast_install=needless
18887fi
18888
18889
18890# The else clause should only fire when bootstrapping the
18891# libtool distribution, otherwise you forgot to ship ltmain.sh
18892# with your package, and you will get complaints that there are
18893# no rules to generate ltmain.sh.
18894if test -f "$ltmain"; then
18895  # See if we are running on zsh, and set the options which allow our commands through
18896  # without removal of \ escapes.
18897  if test -n "${ZSH_VERSION+set}" ; then
18898    setopt NO_GLOB_SUBST
18899  fi
18900  # Now quote all the things that may contain metacharacters while being
18901  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18902  # variables and quote the copies for generation of the libtool script.
18903  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18904    SED SHELL STRIP \
18905    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18906    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18907    deplibs_check_method reload_flag reload_cmds need_locks \
18908    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18909    lt_cv_sys_global_symbol_to_c_name_address \
18910    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18911    old_postinstall_cmds old_postuninstall_cmds \
18912    compiler_F77 \
18913    CC_F77 \
18914    LD_F77 \
18915    lt_prog_compiler_wl_F77 \
18916    lt_prog_compiler_pic_F77 \
18917    lt_prog_compiler_static_F77 \
18918    lt_prog_compiler_no_builtin_flag_F77 \
18919    export_dynamic_flag_spec_F77 \
18920    thread_safe_flag_spec_F77 \
18921    whole_archive_flag_spec_F77 \
18922    enable_shared_with_static_runtimes_F77 \
18923    old_archive_cmds_F77 \
18924    old_archive_from_new_cmds_F77 \
18925    predep_objects_F77 \
18926    postdep_objects_F77 \
18927    predeps_F77 \
18928    postdeps_F77 \
18929    compiler_lib_search_path_F77 \
18930    archive_cmds_F77 \
18931    archive_expsym_cmds_F77 \
18932    postinstall_cmds_F77 \
18933    postuninstall_cmds_F77 \
18934    old_archive_from_expsyms_cmds_F77 \
18935    allow_undefined_flag_F77 \
18936    no_undefined_flag_F77 \
18937    export_symbols_cmds_F77 \
18938    hardcode_libdir_flag_spec_F77 \
18939    hardcode_libdir_flag_spec_ld_F77 \
18940    hardcode_libdir_separator_F77 \
18941    hardcode_automatic_F77 \
18942    module_cmds_F77 \
18943    module_expsym_cmds_F77 \
18944    lt_cv_prog_compiler_c_o_F77 \
18945    exclude_expsyms_F77 \
18946    include_expsyms_F77; do
18947
18948    case $var in
18949    old_archive_cmds_F77 | \
18950    old_archive_from_new_cmds_F77 | \
18951    archive_cmds_F77 | \
18952    archive_expsym_cmds_F77 | \
18953    module_cmds_F77 | \
18954    module_expsym_cmds_F77 | \
18955    old_archive_from_expsyms_cmds_F77 | \
18956    export_symbols_cmds_F77 | \
18957    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18958    postinstall_cmds | postuninstall_cmds | \
18959    old_postinstall_cmds | old_postuninstall_cmds | \
18960    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18961      # Double-quote double-evaled strings.
18962      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18963      ;;
18964    *)
18965      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18966      ;;
18967    esac
18968  done
18969
18970  case $lt_echo in
18971  *'\$0 --fallback-echo"')
18972    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18973    ;;
18974  esac
18975
18976cfgfile="$ofile"
18977
18978  cat <<__EOF__ >> "$cfgfile"
18979# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18980
18981# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18982
18983# Shell to use when invoking shell scripts.
18984SHELL=$lt_SHELL
18985
18986# Whether or not to build shared libraries.
18987build_libtool_libs=$enable_shared
18988
18989# Whether or not to build static libraries.
18990build_old_libs=$enable_static
18991
18992# Whether or not to add -lc for building shared libraries.
18993build_libtool_need_lc=$archive_cmds_need_lc_F77
18994
18995# Whether or not to disallow shared libs when runtime libs are static
18996allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18997
18998# Whether or not to optimize for fast installation.
18999fast_install=$enable_fast_install
19000
19001# The host system.
19002host_alias=$host_alias
19003host=$host
19004host_os=$host_os
19005
19006# The build system.
19007build_alias=$build_alias
19008build=$build
19009build_os=$build_os
19010
19011# An echo program that does not interpret backslashes.
19012echo=$lt_echo
19013
19014# The archiver.
19015AR=$lt_AR
19016AR_FLAGS=$lt_AR_FLAGS
19017
19018# A C compiler.
19019LTCC=$lt_LTCC
19020
19021# LTCC compiler flags.
19022LTCFLAGS=$lt_LTCFLAGS
19023
19024# A language-specific compiler.
19025CC=$lt_compiler_F77
19026
19027# Is the compiler the GNU C compiler?
19028with_gcc=$GCC_F77
19029
19030# An ERE matcher.
19031EGREP=$lt_EGREP
19032
19033# The linker used to build libraries.
19034LD=$lt_LD_F77
19035
19036# Whether we need hard or soft links.
19037LN_S=$lt_LN_S
19038
19039# A BSD-compatible nm program.
19040NM=$lt_NM
19041
19042# A symbol stripping program
19043STRIP=$lt_STRIP
19044
19045# Used to examine libraries when file_magic_cmd begins "file"
19046MAGIC_CMD=$MAGIC_CMD
19047
19048# Used on cygwin: DLL creation program.
19049DLLTOOL="$DLLTOOL"
19050
19051# Used on cygwin: object dumper.
19052OBJDUMP="$OBJDUMP"
19053
19054# Used on cygwin: assembler.
19055AS="$AS"
19056
19057# The name of the directory that contains temporary libtool files.
19058objdir=$objdir
19059
19060# How to create reloadable object files.
19061reload_flag=$lt_reload_flag
19062reload_cmds=$lt_reload_cmds
19063
19064# How to pass a linker flag through the compiler.
19065wl=$lt_lt_prog_compiler_wl_F77
19066
19067# Object file suffix (normally "o").
19068objext="$ac_objext"
19069
19070# Old archive suffix (normally "a").
19071libext="$libext"
19072
19073# Shared library suffix (normally ".so").
19074shrext_cmds='$shrext_cmds'
19075
19076# Executable file suffix (normally "").
19077exeext="$exeext"
19078
19079# Additional compiler flags for building library objects.
19080pic_flag=$lt_lt_prog_compiler_pic_F77
19081pic_mode=$pic_mode
19082
19083# What is the maximum length of a command?
19084max_cmd_len=$lt_cv_sys_max_cmd_len
19085
19086# Does compiler simultaneously support -c and -o options?
19087compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19088
19089# Must we lock files when doing compilation?
19090need_locks=$lt_need_locks
19091
19092# Do we need the lib prefix for modules?
19093need_lib_prefix=$need_lib_prefix
19094
19095# Do we need a version for libraries?
19096need_version=$need_version
19097
19098# Whether dlopen is supported.
19099dlopen_support=$enable_dlopen
19100
19101# Whether dlopen of programs is supported.
19102dlopen_self=$enable_dlopen_self
19103
19104# Whether dlopen of statically linked programs is supported.
19105dlopen_self_static=$enable_dlopen_self_static
19106
19107# Compiler flag to prevent dynamic linking.
19108link_static_flag=$lt_lt_prog_compiler_static_F77
19109
19110# Compiler flag to turn off builtin functions.
19111no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19112
19113# Compiler flag to allow reflexive dlopens.
19114export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19115
19116# Compiler flag to generate shared objects directly from archives.
19117whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19118
19119# Compiler flag to generate thread-safe objects.
19120thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19121
19122# Library versioning type.
19123version_type=$version_type
19124
19125# Format of library name prefix.
19126libname_spec=$lt_libname_spec
19127
19128# List of archive names.  First name is the real one, the rest are links.
19129# The last name is the one that the linker finds with -lNAME.
19130library_names_spec=$lt_library_names_spec
19131
19132# The coded name of the library, if different from the real name.
19133soname_spec=$lt_soname_spec
19134
19135# Commands used to build and install an old-style archive.
19136RANLIB=$lt_RANLIB
19137old_archive_cmds=$lt_old_archive_cmds_F77
19138old_postinstall_cmds=$lt_old_postinstall_cmds
19139old_postuninstall_cmds=$lt_old_postuninstall_cmds
19140
19141# Create an old-style archive from a shared archive.
19142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19143
19144# Create a temporary old-style archive to link instead of a shared archive.
19145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19146
19147# Commands used to build and install a shared archive.
19148archive_cmds=$lt_archive_cmds_F77
19149archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19150postinstall_cmds=$lt_postinstall_cmds
19151postuninstall_cmds=$lt_postuninstall_cmds
19152
19153# Commands used to build a loadable module (assumed same as above if empty)
19154module_cmds=$lt_module_cmds_F77
19155module_expsym_cmds=$lt_module_expsym_cmds_F77
19156
19157# Commands to strip libraries.
19158old_striplib=$lt_old_striplib
19159striplib=$lt_striplib
19160
19161# Dependencies to place before the objects being linked to create a
19162# shared library.
19163predep_objects=$lt_predep_objects_F77
19164
19165# Dependencies to place after the objects being linked to create a
19166# shared library.
19167postdep_objects=$lt_postdep_objects_F77
19168
19169# Dependencies to place before the objects being linked to create a
19170# shared library.
19171predeps=$lt_predeps_F77
19172
19173# Dependencies to place after the objects being linked to create a
19174# shared library.
19175postdeps=$lt_postdeps_F77
19176
19177# The library search path used internally by the compiler when linking
19178# a shared library.
19179compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19180
19181# Method to check whether dependent libraries are shared objects.
19182deplibs_check_method=$lt_deplibs_check_method
19183
19184# Command to use when deplibs_check_method == file_magic.
19185file_magic_cmd=$lt_file_magic_cmd
19186
19187# Flag that allows shared libraries with undefined symbols to be built.
19188allow_undefined_flag=$lt_allow_undefined_flag_F77
19189
19190# Flag that forces no undefined symbols.
19191no_undefined_flag=$lt_no_undefined_flag_F77
19192
19193# Commands used to finish a libtool library installation in a directory.
19194finish_cmds=$lt_finish_cmds
19195
19196# Same as above, but a single script fragment to be evaled but not shown.
19197finish_eval=$lt_finish_eval
19198
19199# Take the output of nm and produce a listing of raw symbols and C names.
19200global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19201
19202# Transform the output of nm in a proper C declaration
19203global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19204
19205# Transform the output of nm in a C name address pair
19206global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19207
19208# This is the shared library runtime path variable.
19209runpath_var=$runpath_var
19210
19211# This is the shared library path variable.
19212shlibpath_var=$shlibpath_var
19213
19214# Is shlibpath searched before the hard-coded library search path?
19215shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19216
19217# How to hardcode a shared library path into an executable.
19218hardcode_action=$hardcode_action_F77
19219
19220# Whether we should hardcode library paths into libraries.
19221hardcode_into_libs=$hardcode_into_libs
19222
19223# Flag to hardcode \$libdir into a binary during linking.
19224# This must work even if \$libdir does not exist.
19225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19226
19227# If ld is used when linking, flag to hardcode \$libdir into
19228# a binary during linking. This must work even if \$libdir does
19229# not exist.
19230hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19231
19232# Whether we need a single -rpath flag with a separated argument.
19233hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19234
19235# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19236# resulting binary.
19237hardcode_direct=$hardcode_direct_F77
19238
19239# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19240# resulting binary.
19241hardcode_minus_L=$hardcode_minus_L_F77
19242
19243# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19244# the resulting binary.
19245hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19246
19247# Set to yes if building a shared library automatically hardcodes DIR into the library
19248# and all subsequent libraries and executables linked against it.
19249hardcode_automatic=$hardcode_automatic_F77
19250
19251# Variables whose values should be saved in libtool wrapper scripts and
19252# restored at relink time.
19253variables_saved_for_relink="$variables_saved_for_relink"
19254
19255# Whether libtool must link a program against all its dependency libraries.
19256link_all_deplibs=$link_all_deplibs_F77
19257
19258# Compile-time system search path for libraries
19259sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19260
19261# Run-time system search path for libraries
19262sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19263
19264# Fix the shell variable \$srcfile for the compiler.
19265fix_srcfile_path="$fix_srcfile_path_F77"
19266
19267# Set to yes if exported symbols are required.
19268always_export_symbols=$always_export_symbols_F77
19269
19270# The commands to list exported symbols.
19271export_symbols_cmds=$lt_export_symbols_cmds_F77
19272
19273# The commands to extract the exported symbol list from a shared archive.
19274extract_expsyms_cmds=$lt_extract_expsyms_cmds
19275
19276# Symbols that should not be listed in the preloaded symbols.
19277exclude_expsyms=$lt_exclude_expsyms_F77
19278
19279# Symbols that must always be exported.
19280include_expsyms=$lt_include_expsyms_F77
19281
19282# ### END LIBTOOL TAG CONFIG: $tagname
19283
19284__EOF__
19285
19286
19287else
19288  # If there is no Makefile yet, we rely on a make rule to execute
19289  # `config.status --recheck' to rerun these tests and create the
19290  # libtool script then.
19291  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19292  if test -f "$ltmain_in"; then
19293    test -f Makefile && make "$ltmain"
19294  fi
19295fi
19296
19297
19298ac_ext=c
19299ac_cpp='$CPP $CPPFLAGS'
19300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303
19304CC="$lt_save_CC"
19305
19306	else
19307	  tagname=""
19308	fi
19309	;;
19310
19311      GCJ)
19312	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19313
19314
19315
19316# Source file extension for Java test sources.
19317ac_ext=java
19318
19319# Object file extension for compiled Java test sources.
19320objext=o
19321objext_GCJ=$objext
19322
19323# Code to be used in simple compile tests
19324lt_simple_compile_test_code="class foo {}\n"
19325
19326# Code to be used in simple link tests
19327lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
19328
19329# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19330
19331# If no C compiler was specified, use CC.
19332LTCC=${LTCC-"$CC"}
19333
19334# If no C compiler flags were specified, use CFLAGS.
19335LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19336
19337# Allow CC to be a program name with arguments.
19338compiler=$CC
19339
19340
19341# save warnings/boilerplate of simple test code
19342ac_outfile=conftest.$ac_objext
19343printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19344eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19345_lt_compiler_boilerplate=`cat conftest.err`
19346$rm conftest*
19347
19348ac_outfile=conftest.$ac_objext
19349printf "$lt_simple_link_test_code" >conftest.$ac_ext
19350eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19351_lt_linker_boilerplate=`cat conftest.err`
19352$rm conftest*
19353
19354
19355# Allow CC to be a program name with arguments.
19356lt_save_CC="$CC"
19357CC=${GCJ-"gcj"}
19358compiler=$CC
19359compiler_GCJ=$CC
19360for cc_temp in $compiler""; do
19361  case $cc_temp in
19362    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19363    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19364    \-*) ;;
19365    *) break;;
19366  esac
19367done
19368cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19369
19370
19371# GCJ did not exist at the time GCC didn't implicitly link libc in.
19372archive_cmds_need_lc_GCJ=no
19373
19374old_archive_cmds_GCJ=$old_archive_cmds
19375
19376## CAVEAT EMPTOR:
19377## There is no encapsulation within the following macros, do not change
19378## the running order or otherwise move them around unless you know exactly
19379## what you are doing...
19380
19381lt_prog_compiler_no_builtin_flag_GCJ=
19382
19383if test "$GCC" = yes; then
19384  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19385
19386
19387echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19388echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
19389if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19390  echo $ECHO_N "(cached) $ECHO_C" >&6
19391else
19392  lt_cv_prog_compiler_rtti_exceptions=no
19393  ac_outfile=conftest.$ac_objext
19394   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19395   lt_compiler_flag="-fno-rtti -fno-exceptions"
19396   # Insert the option either (1) after the last *FLAGS variable, or
19397   # (2) before a word containing "conftest.", or (3) at the end.
19398   # Note that $ac_compile itself does not contain backslashes and begins
19399   # with a dollar sign (not a hyphen), so the echo should work correctly.
19400   # The option is referenced via a variable to avoid confusing sed.
19401   lt_compile=`echo "$ac_compile" | $SED \
19402   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19403   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19404   -e 's:$: $lt_compiler_flag:'`
19405   (eval echo "\"\$as_me:19407: $lt_compile\"" >&5)
19406   (eval "$lt_compile" 2>conftest.err)
19407   ac_status=$?
19408   cat conftest.err >&5
19409   echo "$as_me:19411: \$? = $ac_status" >&5
19410   if (exit $ac_status) && test -s "$ac_outfile"; then
19411     # The compiler can only warn and ignore the option if not recognized
19412     # So say no if there are warnings other than the usual output.
19413     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19414     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19415     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19416       lt_cv_prog_compiler_rtti_exceptions=yes
19417     fi
19418   fi
19419   $rm conftest*
19420
19421fi
19422echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19423echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
19424
19425if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19426    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19427else
19428    :
19429fi
19430
19431fi
19432
19433lt_prog_compiler_wl_GCJ=
19434lt_prog_compiler_pic_GCJ=
19435lt_prog_compiler_static_GCJ=
19436
19437echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19438echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19439
19440  if test "$GCC" = yes; then
19441    lt_prog_compiler_wl_GCJ='-Wl,'
19442    lt_prog_compiler_static_GCJ='-static'
19443
19444    case $host_os in
19445      aix*)
19446      # All AIX code is PIC.
19447      if test "$host_cpu" = ia64; then
19448	# AIX 5 now supports IA64 processor
19449	lt_prog_compiler_static_GCJ='-Bstatic'
19450      fi
19451      ;;
19452
19453    amigaos*)
19454      # FIXME: we need at least 68020 code to build shared libraries, but
19455      # adding the `-m68020' flag to GCC prevents building anything better,
19456      # like `-m68040'.
19457      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19458      ;;
19459
19460    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19461      # PIC is the default for these OSes.
19462      ;;
19463
19464    mingw* | pw32* | os2*)
19465      # This hack is so that the source file can tell whether it is being
19466      # built for inclusion in a dll (and should export symbols for example).
19467      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19468      ;;
19469
19470    darwin* | rhapsody*)
19471      # PIC is the default on this platform
19472      # Common symbols not allowed in MH_DYLIB files
19473      lt_prog_compiler_pic_GCJ='-fno-common'
19474      ;;
19475
19476    interix3*)
19477      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19478      # Instead, we relocate shared libraries at runtime.
19479      ;;
19480
19481    msdosdjgpp*)
19482      # Just because we use GCC doesn't mean we suddenly get shared libraries
19483      # on systems that don't support them.
19484      lt_prog_compiler_can_build_shared_GCJ=no
19485      enable_shared=no
19486      ;;
19487
19488    sysv4*MP*)
19489      if test -d /usr/nec; then
19490	lt_prog_compiler_pic_GCJ=-Kconform_pic
19491      fi
19492      ;;
19493
19494    hpux*)
19495      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19496      # not for PA HP-UX.
19497      case $host_cpu in
19498      hppa*64*|ia64*)
19499	# +Z the default
19500	;;
19501      *)
19502	lt_prog_compiler_pic_GCJ='-fPIC'
19503	;;
19504      esac
19505      ;;
19506
19507    *)
19508      lt_prog_compiler_pic_GCJ='-fPIC'
19509      ;;
19510    esac
19511  else
19512    # PORTME Check for flag to pass linker flags through the system compiler.
19513    case $host_os in
19514    aix*)
19515      lt_prog_compiler_wl_GCJ='-Wl,'
19516      if test "$host_cpu" = ia64; then
19517	# AIX 5 now supports IA64 processor
19518	lt_prog_compiler_static_GCJ='-Bstatic'
19519      else
19520	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19521      fi
19522      ;;
19523      darwin*)
19524        # PIC is the default on this platform
19525        # Common symbols not allowed in MH_DYLIB files
19526       case $cc_basename in
19527         xlc*)
19528         lt_prog_compiler_pic_GCJ='-qnocommon'
19529         lt_prog_compiler_wl_GCJ='-Wl,'
19530         ;;
19531       esac
19532       ;;
19533
19534    mingw* | pw32* | os2*)
19535      # This hack is so that the source file can tell whether it is being
19536      # built for inclusion in a dll (and should export symbols for example).
19537      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19538      ;;
19539
19540    hpux9* | hpux10* | hpux11*)
19541      lt_prog_compiler_wl_GCJ='-Wl,'
19542      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19543      # not for PA HP-UX.
19544      case $host_cpu in
19545      hppa*64*|ia64*)
19546	# +Z the default
19547	;;
19548      *)
19549	lt_prog_compiler_pic_GCJ='+Z'
19550	;;
19551      esac
19552      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19553      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19554      ;;
19555
19556    irix5* | irix6* | nonstopux*)
19557      lt_prog_compiler_wl_GCJ='-Wl,'
19558      # PIC (with -KPIC) is the default.
19559      lt_prog_compiler_static_GCJ='-non_shared'
19560      ;;
19561
19562    newsos6)
19563      lt_prog_compiler_pic_GCJ='-KPIC'
19564      lt_prog_compiler_static_GCJ='-Bstatic'
19565      ;;
19566
19567    linux*)
19568      case $cc_basename in
19569      icc* | ecc*)
19570	lt_prog_compiler_wl_GCJ='-Wl,'
19571	lt_prog_compiler_pic_GCJ='-KPIC'
19572	lt_prog_compiler_static_GCJ='-static'
19573        ;;
19574      pgcc* | pgf77* | pgf90* | pgf95*)
19575        # Portland Group compilers (*not* the Pentium gcc compiler,
19576	# which looks to be a dead project)
19577	lt_prog_compiler_wl_GCJ='-Wl,'
19578	lt_prog_compiler_pic_GCJ='-fpic'
19579	lt_prog_compiler_static_GCJ='-Bstatic'
19580        ;;
19581      ccc*)
19582        lt_prog_compiler_wl_GCJ='-Wl,'
19583        # All Alpha code is PIC.
19584        lt_prog_compiler_static_GCJ='-non_shared'
19585        ;;
19586      esac
19587      ;;
19588
19589    osf3* | osf4* | osf5*)
19590      lt_prog_compiler_wl_GCJ='-Wl,'
19591      # All OSF/1 code is PIC.
19592      lt_prog_compiler_static_GCJ='-non_shared'
19593      ;;
19594
19595    solaris*)
19596      lt_prog_compiler_pic_GCJ='-KPIC'
19597      lt_prog_compiler_static_GCJ='-Bstatic'
19598      case $cc_basename in
19599      f77* | f90* | f95*)
19600	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19601      *)
19602	lt_prog_compiler_wl_GCJ='-Wl,';;
19603      esac
19604      ;;
19605
19606    sunos4*)
19607      lt_prog_compiler_wl_GCJ='-Qoption ld '
19608      lt_prog_compiler_pic_GCJ='-PIC'
19609      lt_prog_compiler_static_GCJ='-Bstatic'
19610      ;;
19611
19612    sysv4 | sysv4.2uw2* | sysv4.3*)
19613      lt_prog_compiler_wl_GCJ='-Wl,'
19614      lt_prog_compiler_pic_GCJ='-KPIC'
19615      lt_prog_compiler_static_GCJ='-Bstatic'
19616      ;;
19617
19618    sysv4*MP*)
19619      if test -d /usr/nec ;then
19620	lt_prog_compiler_pic_GCJ='-Kconform_pic'
19621	lt_prog_compiler_static_GCJ='-Bstatic'
19622      fi
19623      ;;
19624
19625    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19626      lt_prog_compiler_wl_GCJ='-Wl,'
19627      lt_prog_compiler_pic_GCJ='-KPIC'
19628      lt_prog_compiler_static_GCJ='-Bstatic'
19629      ;;
19630
19631    unicos*)
19632      lt_prog_compiler_wl_GCJ='-Wl,'
19633      lt_prog_compiler_can_build_shared_GCJ=no
19634      ;;
19635
19636    uts4*)
19637      lt_prog_compiler_pic_GCJ='-pic'
19638      lt_prog_compiler_static_GCJ='-Bstatic'
19639      ;;
19640
19641    *)
19642      lt_prog_compiler_can_build_shared_GCJ=no
19643      ;;
19644    esac
19645  fi
19646
19647echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19648echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19649
19650#
19651# Check to make sure the PIC flag actually works.
19652#
19653if test -n "$lt_prog_compiler_pic_GCJ"; then
19654
19655echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19656echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19657if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19658  echo $ECHO_N "(cached) $ECHO_C" >&6
19659else
19660  lt_prog_compiler_pic_works_GCJ=no
19661  ac_outfile=conftest.$ac_objext
19662   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19663   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19664   # Insert the option either (1) after the last *FLAGS variable, or
19665   # (2) before a word containing "conftest.", or (3) at the end.
19666   # Note that $ac_compile itself does not contain backslashes and begins
19667   # with a dollar sign (not a hyphen), so the echo should work correctly.
19668   # The option is referenced via a variable to avoid confusing sed.
19669   lt_compile=`echo "$ac_compile" | $SED \
19670   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19671   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19672   -e 's:$: $lt_compiler_flag:'`
19673   (eval echo "\"\$as_me:19675: $lt_compile\"" >&5)
19674   (eval "$lt_compile" 2>conftest.err)
19675   ac_status=$?
19676   cat conftest.err >&5
19677   echo "$as_me:19679: \$? = $ac_status" >&5
19678   if (exit $ac_status) && test -s "$ac_outfile"; then
19679     # The compiler can only warn and ignore the option if not recognized
19680     # So say no if there are warnings other than the usual output.
19681     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19682     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19683     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19684       lt_prog_compiler_pic_works_GCJ=yes
19685     fi
19686   fi
19687   $rm conftest*
19688
19689fi
19690echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19691echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19692
19693if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19694    case $lt_prog_compiler_pic_GCJ in
19695     "" | " "*) ;;
19696     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19697     esac
19698else
19699    lt_prog_compiler_pic_GCJ=
19700     lt_prog_compiler_can_build_shared_GCJ=no
19701fi
19702
19703fi
19704case $host_os in
19705  # For platforms which do not support PIC, -DPIC is meaningless:
19706  *djgpp*)
19707    lt_prog_compiler_pic_GCJ=
19708    ;;
19709  *)
19710    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19711    ;;
19712esac
19713
19714#
19715# Check to make sure the static flag actually works.
19716#
19717wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19718echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19719echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
19720if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
19721  echo $ECHO_N "(cached) $ECHO_C" >&6
19722else
19723  lt_prog_compiler_static_works_GCJ=no
19724   save_LDFLAGS="$LDFLAGS"
19725   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19726   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19727   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19728     # The linker can only warn and ignore the option if not recognized
19729     # So say no if there are warnings
19730     if test -s conftest.err; then
19731       # Append any errors to the config.log.
19732       cat conftest.err 1>&5
19733       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19734       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19735       if diff conftest.exp conftest.er2 >/dev/null; then
19736         lt_prog_compiler_static_works_GCJ=yes
19737       fi
19738     else
19739       lt_prog_compiler_static_works_GCJ=yes
19740     fi
19741   fi
19742   $rm conftest*
19743   LDFLAGS="$save_LDFLAGS"
19744
19745fi
19746echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
19747echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
19748
19749if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
19750    :
19751else
19752    lt_prog_compiler_static_GCJ=
19753fi
19754
19755
19756echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19757echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19758if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19759  echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761  lt_cv_prog_compiler_c_o_GCJ=no
19762   $rm -r conftest 2>/dev/null
19763   mkdir conftest
19764   cd conftest
19765   mkdir out
19766   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19767
19768   lt_compiler_flag="-o out/conftest2.$ac_objext"
19769   # Insert the option either (1) after the last *FLAGS variable, or
19770   # (2) before a word containing "conftest.", or (3) at the end.
19771   # Note that $ac_compile itself does not contain backslashes and begins
19772   # with a dollar sign (not a hyphen), so the echo should work correctly.
19773   lt_compile=`echo "$ac_compile" | $SED \
19774   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19775   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19776   -e 's:$: $lt_compiler_flag:'`
19777   (eval echo "\"\$as_me:19779: $lt_compile\"" >&5)
19778   (eval "$lt_compile" 2>out/conftest.err)
19779   ac_status=$?
19780   cat out/conftest.err >&5
19781   echo "$as_me:19783: \$? = $ac_status" >&5
19782   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19783   then
19784     # The compiler can only warn and ignore the option if not recognized
19785     # So say no if there are warnings
19786     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19787     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19788     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19789       lt_cv_prog_compiler_c_o_GCJ=yes
19790     fi
19791   fi
19792   chmod u+w . 2>&5
19793   $rm conftest*
19794   # SGI C++ compiler will create directory out/ii_files/ for
19795   # template instantiation
19796   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19797   $rm out/* && rmdir out
19798   cd ..
19799   rmdir conftest
19800   $rm conftest*
19801
19802fi
19803echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19804echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19805
19806
19807hard_links="nottested"
19808if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19809  # do not overwrite the value of need_locks provided by the user
19810  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19811echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19812  hard_links=yes
19813  $rm conftest*
19814  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19815  touch conftest.a
19816  ln conftest.a conftest.b 2>&5 || hard_links=no
19817  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19818  echo "$as_me:$LINENO: result: $hard_links" >&5
19819echo "${ECHO_T}$hard_links" >&6
19820  if test "$hard_links" = no; then
19821    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19822echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19823    need_locks=warn
19824  fi
19825else
19826  need_locks=no
19827fi
19828
19829echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19830echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19831
19832  runpath_var=
19833  allow_undefined_flag_GCJ=
19834  enable_shared_with_static_runtimes_GCJ=no
19835  archive_cmds_GCJ=
19836  archive_expsym_cmds_GCJ=
19837  old_archive_From_new_cmds_GCJ=
19838  old_archive_from_expsyms_cmds_GCJ=
19839  export_dynamic_flag_spec_GCJ=
19840  whole_archive_flag_spec_GCJ=
19841  thread_safe_flag_spec_GCJ=
19842  hardcode_libdir_flag_spec_GCJ=
19843  hardcode_libdir_flag_spec_ld_GCJ=
19844  hardcode_libdir_separator_GCJ=
19845  hardcode_direct_GCJ=no
19846  hardcode_minus_L_GCJ=no
19847  hardcode_shlibpath_var_GCJ=unsupported
19848  link_all_deplibs_GCJ=unknown
19849  hardcode_automatic_GCJ=no
19850  module_cmds_GCJ=
19851  module_expsym_cmds_GCJ=
19852  always_export_symbols_GCJ=no
19853  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19854  # include_expsyms should be a list of space-separated symbols to be *always*
19855  # included in the symbol list
19856  include_expsyms_GCJ=
19857  # exclude_expsyms can be an extended regexp of symbols to exclude
19858  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19859  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19860  # as well as any symbol that contains `d'.
19861  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19862  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19863  # platforms (ab)use it in PIC code, but their linkers get confused if
19864  # the symbol is explicitly referenced.  Since portable code cannot
19865  # rely on this symbol name, it's probably fine to never include it in
19866  # preloaded symbol tables.
19867  extract_expsyms_cmds=
19868  # Just being paranoid about ensuring that cc_basename is set.
19869  for cc_temp in $compiler""; do
19870  case $cc_temp in
19871    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19872    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19873    \-*) ;;
19874    *) break;;
19875  esac
19876done
19877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19878
19879  case $host_os in
19880  cygwin* | mingw* | pw32*)
19881    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19882    # When not using gcc, we currently assume that we are using
19883    # Microsoft Visual C++.
19884    if test "$GCC" != yes; then
19885      with_gnu_ld=no
19886    fi
19887    ;;
19888  interix*)
19889    # we just hope/assume this is gcc and not c89 (= MSVC++)
19890    with_gnu_ld=yes
19891    ;;
19892  openbsd*)
19893    with_gnu_ld=no
19894    ;;
19895  esac
19896
19897  ld_shlibs_GCJ=yes
19898  if test "$with_gnu_ld" = yes; then
19899    # If archive_cmds runs LD, not CC, wlarc should be empty
19900    wlarc='${wl}'
19901
19902    # Set some defaults for GNU ld with shared library support. These
19903    # are reset later if shared libraries are not supported. Putting them
19904    # here allows them to be overridden if necessary.
19905    runpath_var=LD_RUN_PATH
19906    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19907    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19908    # ancient GNU ld didn't support --whole-archive et. al.
19909    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19910	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19911      else
19912  	whole_archive_flag_spec_GCJ=
19913    fi
19914    supports_anon_versioning=no
19915    case `$LD -v 2>/dev/null` in
19916      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19917      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19918      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19919      *\ 2.11.*) ;; # other 2.11 versions
19920      *) supports_anon_versioning=yes ;;
19921    esac
19922
19923    # See if GNU ld supports shared libraries.
19924    case $host_os in
19925    aix3* | aix4* | aix5*)
19926      # On AIX/PPC, the GNU linker is very broken
19927      if test "$host_cpu" != ia64; then
19928	ld_shlibs_GCJ=no
19929	cat <<EOF 1>&2
19930
19931*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19932*** to be unable to reliably create shared libraries on AIX.
19933*** Therefore, libtool is disabling shared libraries support.  If you
19934*** really care for shared libraries, you may want to modify your PATH
19935*** so that a non-GNU linker is found, and then restart.
19936
19937EOF
19938      fi
19939      ;;
19940
19941    amigaos*)
19942      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)'
19943      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19944      hardcode_minus_L_GCJ=yes
19945
19946      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19947      # that the semantics of dynamic libraries on AmigaOS, at least up
19948      # to version 4, is to share data among multiple programs linked
19949      # with the same dynamic library.  Since this doesn't match the
19950      # behavior of shared libraries on other platforms, we can't use
19951      # them.
19952      ld_shlibs_GCJ=no
19953      ;;
19954
19955    beos*)
19956      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19957	allow_undefined_flag_GCJ=unsupported
19958	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19959	# support --undefined.  This deserves some investigation.  FIXME
19960	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19961      else
19962	ld_shlibs_GCJ=no
19963      fi
19964      ;;
19965
19966    cygwin* | mingw* | pw32*)
19967      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19968      # as there is no search path for DLLs.
19969      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19970      allow_undefined_flag_GCJ=unsupported
19971      always_export_symbols_GCJ=no
19972      enable_shared_with_static_runtimes_GCJ=yes
19973      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19974
19975      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19976        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19977	# If the export-symbols file already is a .def file (1st line
19978	# is EXPORTS), use it as is; otherwise, prepend...
19979	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19980	  cp $export_symbols $output_objdir/$soname.def;
19981	else
19982	  echo EXPORTS > $output_objdir/$soname.def;
19983	  cat $export_symbols >> $output_objdir/$soname.def;
19984	fi~
19985	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19986      else
19987	ld_shlibs_GCJ=no
19988      fi
19989      ;;
19990
19991    interix3*)
19992      hardcode_direct_GCJ=no
19993      hardcode_shlibpath_var_GCJ=no
19994      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19995      export_dynamic_flag_spec_GCJ='${wl}-E'
19996      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19997      # Instead, shared libraries are loaded at an image base (0x10000000 by
19998      # default) and relocated if they conflict, which is a slow very memory
19999      # consuming and fragmenting process.  To avoid this, we pick a random,
20000      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20001      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20002      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'
20003      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'
20004      ;;
20005
20006    linux*)
20007      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20008	tmp_addflag=
20009	case $cc_basename,$host_cpu in
20010	pgcc*)				# Portland Group C compiler
20011	  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'
20012	  tmp_addflag=' $pic_flag'
20013	  ;;
20014	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
20015	  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'
20016	  tmp_addflag=' $pic_flag -Mnomain' ;;
20017	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
20018	  tmp_addflag=' -i_dynamic' ;;
20019	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
20020	  tmp_addflag=' -i_dynamic -nofor_main' ;;
20021	ifc* | ifort*)			# Intel Fortran compiler
20022	  tmp_addflag=' -nofor_main' ;;
20023	esac
20024	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20025
20026	if test $supports_anon_versioning = yes; then
20027	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20028  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20029  $echo "local: *; };" >> $output_objdir/$libname.ver~
20030	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20031	fi
20032      else
20033	ld_shlibs_GCJ=no
20034      fi
20035      ;;
20036
20037    netbsd*)
20038      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20039	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20040	wlarc=
20041      else
20042	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20043	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20044      fi
20045      ;;
20046
20047    solaris*)
20048      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20049	ld_shlibs_GCJ=no
20050	cat <<EOF 1>&2
20051
20052*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20053*** create shared libraries on Solaris systems.  Therefore, libtool
20054*** is disabling shared libraries support.  We urge you to upgrade GNU
20055*** binutils to release 2.9.1 or newer.  Another option is to modify
20056*** your PATH or compiler configuration so that the native linker is
20057*** used, and then restart.
20058
20059EOF
20060      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20061	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20062	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20063      else
20064	ld_shlibs_GCJ=no
20065      fi
20066      ;;
20067
20068    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20069      case `$LD -v 2>&1` in
20070        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20071	ld_shlibs_GCJ=no
20072	cat <<_LT_EOF 1>&2
20073
20074*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20075*** reliably create shared libraries on SCO systems.  Therefore, libtool
20076*** is disabling shared libraries support.  We urge you to upgrade GNU
20077*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20078*** your PATH or compiler configuration so that the native linker is
20079*** used, and then restart.
20080
20081_LT_EOF
20082	;;
20083	*)
20084	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20085	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20086	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20087	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20088	  else
20089	    ld_shlibs_GCJ=no
20090	  fi
20091	;;
20092      esac
20093      ;;
20094
20095    sunos4*)
20096      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20097      wlarc=
20098      hardcode_direct_GCJ=yes
20099      hardcode_shlibpath_var_GCJ=no
20100      ;;
20101
20102    *)
20103      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20104	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20105	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20106      else
20107	ld_shlibs_GCJ=no
20108      fi
20109      ;;
20110    esac
20111
20112    if test "$ld_shlibs_GCJ" = no; then
20113      runpath_var=
20114      hardcode_libdir_flag_spec_GCJ=
20115      export_dynamic_flag_spec_GCJ=
20116      whole_archive_flag_spec_GCJ=
20117    fi
20118  else
20119    # PORTME fill in a description of your system's linker (not GNU ld)
20120    case $host_os in
20121    aix3*)
20122      allow_undefined_flag_GCJ=unsupported
20123      always_export_symbols_GCJ=yes
20124      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'
20125      # Note: this linker hardcodes the directories in LIBPATH if there
20126      # are no directories specified by -L.
20127      hardcode_minus_L_GCJ=yes
20128      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20129	# Neither direct hardcoding nor static linking is supported with a
20130	# broken collect2.
20131	hardcode_direct_GCJ=unsupported
20132      fi
20133      ;;
20134
20135    aix4* | aix5*)
20136      if test "$host_cpu" = ia64; then
20137	# On IA64, the linker does run time linking by default, so we don't
20138	# have to do anything special.
20139	aix_use_runtimelinking=no
20140	exp_sym_flag='-Bexport'
20141	no_entry_flag=""
20142      else
20143	# If we're using GNU nm, then we don't want the "-C" option.
20144	# -C means demangle to AIX nm, but means don't demangle with GNU nm
20145	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20146	  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'
20147	else
20148	  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'
20149	fi
20150	aix_use_runtimelinking=no
20151
20152	# Test if we are trying to use run time linking or normal
20153	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20154	# need to do runtime linking.
20155	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20156	  for ld_flag in $LDFLAGS; do
20157  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20158  	    aix_use_runtimelinking=yes
20159  	    break
20160  	  fi
20161	  done
20162	  ;;
20163	esac
20164
20165	exp_sym_flag='-bexport'
20166	no_entry_flag='-bnoentry'
20167      fi
20168
20169      # When large executables or shared objects are built, AIX ld can
20170      # have problems creating the table of contents.  If linking a library
20171      # or program results in "error TOC overflow" add -mminimal-toc to
20172      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20173      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20174
20175      archive_cmds_GCJ=''
20176      hardcode_direct_GCJ=yes
20177      hardcode_libdir_separator_GCJ=':'
20178      link_all_deplibs_GCJ=yes
20179
20180      if test "$GCC" = yes; then
20181	case $host_os in aix4.[012]|aix4.[012].*)
20182	# We only want to do this on AIX 4.2 and lower, the check
20183	# below for broken collect2 doesn't work under 4.3+
20184	  collect2name=`${CC} -print-prog-name=collect2`
20185	  if test -f "$collect2name" && \
20186  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
20187	  then
20188  	  # We have reworked collect2
20189  	  hardcode_direct_GCJ=yes
20190	  else
20191  	  # We have old collect2
20192  	  hardcode_direct_GCJ=unsupported
20193  	  # It fails to find uninstalled libraries when the uninstalled
20194  	  # path is not listed in the libpath.  Setting hardcode_minus_L
20195  	  # to unsupported forces relinking
20196  	  hardcode_minus_L_GCJ=yes
20197  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
20198  	  hardcode_libdir_separator_GCJ=
20199	  fi
20200	  ;;
20201	esac
20202	shared_flag='-shared'
20203	if test "$aix_use_runtimelinking" = yes; then
20204	  shared_flag="$shared_flag "'${wl}-G'
20205	fi
20206      else
20207	# not using gcc
20208	if test "$host_cpu" = ia64; then
20209  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20210  	# chokes on -Wl,-G. The following line is correct:
20211	  shared_flag='-G'
20212	else
20213	  if test "$aix_use_runtimelinking" = yes; then
20214	    shared_flag='${wl}-G'
20215	  else
20216	    shared_flag='${wl}-bM:SRE'
20217	  fi
20218	fi
20219      fi
20220
20221      # It seems that -bexpall does not export symbols beginning with
20222      # underscore (_), so it is better to generate a list of symbols to export.
20223      always_export_symbols_GCJ=yes
20224      if test "$aix_use_runtimelinking" = yes; then
20225	# Warning - without using the other runtime loading flags (-brtl),
20226	# -berok will link without error, but may produce a broken library.
20227	allow_undefined_flag_GCJ='-berok'
20228       # Determine the default libpath from the value encoded in an empty executable.
20229       cat >conftest.$ac_ext <<_ACEOF
20230/* confdefs.h.  */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
20234/* end confdefs.h.  */
20235
20236int
20237main ()
20238{
20239
20240  ;
20241  return 0;
20242}
20243_ACEOF
20244rm -f conftest.$ac_objext conftest$ac_exeext
20245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20246  (eval $ac_link) 2>conftest.er1
20247  ac_status=$?
20248  grep -v '^ *+' conftest.er1 >conftest.err
20249  rm -f conftest.er1
20250  cat conftest.err >&5
20251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252  (exit $ac_status); } &&
20253	 { ac_try='test -z "$ac_c_werror_flag"
20254			 || test ! -s conftest.err'
20255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256  (eval $ac_try) 2>&5
20257  ac_status=$?
20258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259  (exit $ac_status); }; } &&
20260	 { ac_try='test -s conftest$ac_exeext'
20261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262  (eval $ac_try) 2>&5
20263  ac_status=$?
20264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265  (exit $ac_status); }; }; then
20266
20267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20268}'`
20269# Check for a 64-bit object if we didn't find anything.
20270if 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; }
20271}'`; fi
20272else
20273  echo "$as_me: failed program was:" >&5
20274sed 's/^/| /' conftest.$ac_ext >&5
20275
20276fi
20277rm -f conftest.err conftest.$ac_objext \
20278      conftest$ac_exeext conftest.$ac_ext
20279if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20280
20281       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20282	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"
20283       else
20284	if test "$host_cpu" = ia64; then
20285	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20286	  allow_undefined_flag_GCJ="-z nodefs"
20287	  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"
20288	else
20289	 # Determine the default libpath from the value encoded in an empty executable.
20290	 cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h.  */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
20295/* end confdefs.h.  */
20296
20297int
20298main ()
20299{
20300
20301  ;
20302  return 0;
20303}
20304_ACEOF
20305rm -f conftest.$ac_objext conftest$ac_exeext
20306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20307  (eval $ac_link) 2>conftest.er1
20308  ac_status=$?
20309  grep -v '^ *+' conftest.er1 >conftest.err
20310  rm -f conftest.er1
20311  cat conftest.err >&5
20312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313  (exit $ac_status); } &&
20314	 { ac_try='test -z "$ac_c_werror_flag"
20315			 || test ! -s conftest.err'
20316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317  (eval $ac_try) 2>&5
20318  ac_status=$?
20319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320  (exit $ac_status); }; } &&
20321	 { ac_try='test -s conftest$ac_exeext'
20322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323  (eval $ac_try) 2>&5
20324  ac_status=$?
20325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326  (exit $ac_status); }; }; then
20327
20328aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20329}'`
20330# Check for a 64-bit object if we didn't find anything.
20331if 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; }
20332}'`; fi
20333else
20334  echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337fi
20338rm -f conftest.err conftest.$ac_objext \
20339      conftest$ac_exeext conftest.$ac_ext
20340if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20341
20342	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20343	  # Warning - without using the other run time loading flags,
20344	  # -berok will link without error, but may produce a broken library.
20345	  no_undefined_flag_GCJ=' ${wl}-bernotok'
20346	  allow_undefined_flag_GCJ=' ${wl}-berok'
20347	  # Exported symbols can be pulled into shared objects from archives
20348	  whole_archive_flag_spec_GCJ='$convenience'
20349	  archive_cmds_need_lc_GCJ=yes
20350	  # This is similar to how AIX traditionally builds its shared libraries.
20351	  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'
20352	fi
20353      fi
20354      ;;
20355
20356    amigaos*)
20357      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)'
20358      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20359      hardcode_minus_L_GCJ=yes
20360      # see comment about different semantics on the GNU ld section
20361      ld_shlibs_GCJ=no
20362      ;;
20363
20364    bsdi[45]*)
20365      export_dynamic_flag_spec_GCJ=-rdynamic
20366      ;;
20367
20368    cygwin* | mingw* | pw32*)
20369      # When not using gcc, we currently assume that we are using
20370      # Microsoft Visual C++.
20371      # hardcode_libdir_flag_spec is actually meaningless, as there is
20372      # no search path for DLLs.
20373      hardcode_libdir_flag_spec_GCJ=' '
20374      allow_undefined_flag_GCJ=unsupported
20375      # Tell ltmain to make .lib files, not .a files.
20376      libext=lib
20377      # Tell ltmain to make .dll files, not .so files.
20378      shrext_cmds=".dll"
20379      # FIXME: Setting linknames here is a bad hack.
20380      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20381      # The linker will automatically build a .lib file if we build a DLL.
20382      old_archive_From_new_cmds_GCJ='true'
20383      # FIXME: Should let the user specify the lib program.
20384      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20385      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20386      enable_shared_with_static_runtimes_GCJ=yes
20387      ;;
20388
20389    darwin* | rhapsody*)
20390      case $host_os in
20391        rhapsody* | darwin1.[012])
20392         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20393         ;;
20394       *) # Darwin 1.3 on
20395         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20396           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20397         else
20398           case ${MACOSX_DEPLOYMENT_TARGET} in
20399             10.[012])
20400               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20401               ;;
20402             10.*)
20403               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20404               ;;
20405           esac
20406         fi
20407         ;;
20408      esac
20409      archive_cmds_need_lc_GCJ=no
20410      hardcode_direct_GCJ=no
20411      hardcode_automatic_GCJ=yes
20412      hardcode_shlibpath_var_GCJ=unsupported
20413      whole_archive_flag_spec_GCJ=''
20414      link_all_deplibs_GCJ=yes
20415    if test "$GCC" = yes ; then
20416    	output_verbose_link_cmd='echo'
20417        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20418      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20419      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20420      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}'
20421      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}'
20422    else
20423      case $cc_basename in
20424        xlc*)
20425         output_verbose_link_cmd='echo'
20426         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20427         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20428          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20429         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}'
20430          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}'
20431          ;;
20432       *)
20433         ld_shlibs_GCJ=no
20434          ;;
20435      esac
20436    fi
20437      ;;
20438
20439    dgux*)
20440      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20441      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20442      hardcode_shlibpath_var_GCJ=no
20443      ;;
20444
20445    freebsd1*)
20446      ld_shlibs_GCJ=no
20447      ;;
20448
20449    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20450    # support.  Future versions do this automatically, but an explicit c++rt0.o
20451    # does not break anything, and helps significantly (at the cost of a little
20452    # extra space).
20453    freebsd2.2*)
20454      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20455      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20456      hardcode_direct_GCJ=yes
20457      hardcode_shlibpath_var_GCJ=no
20458      ;;
20459
20460    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20461    freebsd2*)
20462      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20463      hardcode_direct_GCJ=yes
20464      hardcode_minus_L_GCJ=yes
20465      hardcode_shlibpath_var_GCJ=no
20466      ;;
20467
20468    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20469    freebsd* | kfreebsd*-gnu | dragonfly*)
20470      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20471      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20472      hardcode_direct_GCJ=yes
20473      hardcode_shlibpath_var_GCJ=no
20474      ;;
20475
20476    hpux9*)
20477      if test "$GCC" = yes; then
20478	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'
20479      else
20480	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'
20481      fi
20482      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20483      hardcode_libdir_separator_GCJ=:
20484      hardcode_direct_GCJ=yes
20485
20486      # hardcode_minus_L: Not really in the search PATH,
20487      # but as the default location of the library.
20488      hardcode_minus_L_GCJ=yes
20489      export_dynamic_flag_spec_GCJ='${wl}-E'
20490      ;;
20491
20492    hpux10*)
20493      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20494	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20495      else
20496	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20497      fi
20498      if test "$with_gnu_ld" = no; then
20499	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20500	hardcode_libdir_separator_GCJ=:
20501
20502	hardcode_direct_GCJ=yes
20503	export_dynamic_flag_spec_GCJ='${wl}-E'
20504
20505	# hardcode_minus_L: Not really in the search PATH,
20506	# but as the default location of the library.
20507	hardcode_minus_L_GCJ=yes
20508      fi
20509      ;;
20510
20511    hpux11*)
20512      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20513	case $host_cpu in
20514	hppa*64*)
20515	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20516	  ;;
20517	ia64*)
20518	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20519	  ;;
20520	*)
20521	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20522	  ;;
20523	esac
20524      else
20525	case $host_cpu in
20526	hppa*64*)
20527	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20528	  ;;
20529	ia64*)
20530	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20531	  ;;
20532	*)
20533	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20534	  ;;
20535	esac
20536      fi
20537      if test "$with_gnu_ld" = no; then
20538	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20539	hardcode_libdir_separator_GCJ=:
20540
20541	case $host_cpu in
20542	hppa*64*|ia64*)
20543	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20544	  hardcode_direct_GCJ=no
20545	  hardcode_shlibpath_var_GCJ=no
20546	  ;;
20547	*)
20548	  hardcode_direct_GCJ=yes
20549	  export_dynamic_flag_spec_GCJ='${wl}-E'
20550
20551	  # hardcode_minus_L: Not really in the search PATH,
20552	  # but as the default location of the library.
20553	  hardcode_minus_L_GCJ=yes
20554	  ;;
20555	esac
20556      fi
20557      ;;
20558
20559    irix5* | irix6* | nonstopux*)
20560      if test "$GCC" = yes; then
20561	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'
20562      else
20563	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'
20564	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20565      fi
20566      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20567      hardcode_libdir_separator_GCJ=:
20568      link_all_deplibs_GCJ=yes
20569      ;;
20570
20571    netbsd*)
20572      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20573	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20574      else
20575	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20576      fi
20577      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20578      hardcode_direct_GCJ=yes
20579      hardcode_shlibpath_var_GCJ=no
20580      ;;
20581
20582    newsos6)
20583      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20584      hardcode_direct_GCJ=yes
20585      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20586      hardcode_libdir_separator_GCJ=:
20587      hardcode_shlibpath_var_GCJ=no
20588      ;;
20589
20590    openbsd*)
20591      hardcode_direct_GCJ=yes
20592      hardcode_shlibpath_var_GCJ=no
20593      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20594	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20595	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20596	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20597	export_dynamic_flag_spec_GCJ='${wl}-E'
20598      else
20599       case $host_os in
20600	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20601	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20602	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
20603	   ;;
20604	 *)
20605	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20606	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20607	   ;;
20608       esac
20609      fi
20610      ;;
20611
20612    os2*)
20613      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20614      hardcode_minus_L_GCJ=yes
20615      allow_undefined_flag_GCJ=unsupported
20616      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'
20617      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20618      ;;
20619
20620    osf3*)
20621      if test "$GCC" = yes; then
20622	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20623	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'
20624      else
20625	allow_undefined_flag_GCJ=' -expect_unresolved \*'
20626	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'
20627      fi
20628      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20629      hardcode_libdir_separator_GCJ=:
20630      ;;
20631
20632    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20633      if test "$GCC" = yes; then
20634	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20635	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'
20636	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20637      else
20638	allow_undefined_flag_GCJ=' -expect_unresolved \*'
20639	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'
20640	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~
20641	$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'
20642
20643	# Both c and cxx compiler support -rpath directly
20644	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20645      fi
20646      hardcode_libdir_separator_GCJ=:
20647      ;;
20648
20649    solaris*)
20650      no_undefined_flag_GCJ=' -z text'
20651      if test "$GCC" = yes; then
20652	wlarc='${wl}'
20653	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20654	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20655	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20656      else
20657	wlarc=''
20658	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20659	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20660  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20661      fi
20662      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20663      hardcode_shlibpath_var_GCJ=no
20664      case $host_os in
20665      solaris2.[0-5] | solaris2.[0-5].*) ;;
20666      *)
20667 	# The compiler driver will combine linker options so we
20668 	# cannot just pass the convience library names through
20669 	# without $wl, iff we do not link with $LD.
20670 	# Luckily, gcc supports the same syntax we need for Sun Studio.
20671 	# Supported since Solaris 2.6 (maybe 2.5.1?)
20672 	case $wlarc in
20673 	'')
20674 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20675 	*)
20676 	  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' ;;
20677 	esac ;;
20678      esac
20679      link_all_deplibs_GCJ=yes
20680      ;;
20681
20682    sunos4*)
20683      if test "x$host_vendor" = xsequent; then
20684	# Use $CC to link under sequent, because it throws in some extra .o
20685	# files that make .init and .fini sections work.
20686	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20687      else
20688	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20689      fi
20690      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20691      hardcode_direct_GCJ=yes
20692      hardcode_minus_L_GCJ=yes
20693      hardcode_shlibpath_var_GCJ=no
20694      ;;
20695
20696    sysv4)
20697      case $host_vendor in
20698	sni)
20699	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20700	  hardcode_direct_GCJ=yes # is this really true???
20701	;;
20702	siemens)
20703	  ## LD is ld it makes a PLAMLIB
20704	  ## CC just makes a GrossModule.
20705	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20706	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20707	  hardcode_direct_GCJ=no
20708        ;;
20709	motorola)
20710	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20711	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20712	;;
20713      esac
20714      runpath_var='LD_RUN_PATH'
20715      hardcode_shlibpath_var_GCJ=no
20716      ;;
20717
20718    sysv4.3*)
20719      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20720      hardcode_shlibpath_var_GCJ=no
20721      export_dynamic_flag_spec_GCJ='-Bexport'
20722      ;;
20723
20724    sysv4*MP*)
20725      if test -d /usr/nec; then
20726	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20727	hardcode_shlibpath_var_GCJ=no
20728	runpath_var=LD_RUN_PATH
20729	hardcode_runpath_var=yes
20730	ld_shlibs_GCJ=yes
20731      fi
20732      ;;
20733
20734    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
20735      no_undefined_flag_GCJ='${wl}-z,text'
20736      archive_cmds_need_lc_GCJ=no
20737      hardcode_shlibpath_var_GCJ=no
20738      runpath_var='LD_RUN_PATH'
20739
20740      if test "$GCC" = yes; then
20741	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20742	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20743      else
20744	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20745	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20746      fi
20747      ;;
20748
20749    sysv5* | sco3.2v5* | sco5v6*)
20750      # Note: We can NOT use -z defs as we might desire, because we do not
20751      # link with -lc, and that would cause any symbols used from libc to
20752      # always be unresolved, which means just about no library would
20753      # ever link correctly.  If we're not using GNU ld we use -z text
20754      # though, which does catch some bad symbols but isn't as heavy-handed
20755      # as -z defs.
20756      no_undefined_flag_GCJ='${wl}-z,text'
20757      allow_undefined_flag_GCJ='${wl}-z,nodefs'
20758      archive_cmds_need_lc_GCJ=no
20759      hardcode_shlibpath_var_GCJ=no
20760      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20761      hardcode_libdir_separator_GCJ=':'
20762      link_all_deplibs_GCJ=yes
20763      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20764      runpath_var='LD_RUN_PATH'
20765
20766      if test "$GCC" = yes; then
20767	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20768	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20769      else
20770	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20771	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20772      fi
20773      ;;
20774
20775    uts4*)
20776      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20777      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20778      hardcode_shlibpath_var_GCJ=no
20779      ;;
20780
20781    *)
20782      ld_shlibs_GCJ=no
20783      ;;
20784    esac
20785  fi
20786
20787echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20788echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20789test "$ld_shlibs_GCJ" = no && can_build_shared=no
20790
20791#
20792# Do we need to explicitly link libc?
20793#
20794case "x$archive_cmds_need_lc_GCJ" in
20795x|xyes)
20796  # Assume -lc should be added
20797  archive_cmds_need_lc_GCJ=yes
20798
20799  if test "$enable_shared" = yes && test "$GCC" = yes; then
20800    case $archive_cmds_GCJ in
20801    *'~'*)
20802      # FIXME: we may have to deal with multi-command sequences.
20803      ;;
20804    '$CC '*)
20805      # Test whether the compiler implicitly links with -lc since on some
20806      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20807      # to ld, don't add -lc before -lgcc.
20808      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20809echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20810      $rm conftest*
20811      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20812
20813      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814  (eval $ac_compile) 2>&5
20815  ac_status=$?
20816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817  (exit $ac_status); } 2>conftest.err; then
20818        soname=conftest
20819        lib=conftest
20820        libobjs=conftest.$ac_objext
20821        deplibs=
20822        wl=$lt_prog_compiler_wl_GCJ
20823	pic_flag=$lt_prog_compiler_pic_GCJ
20824        compiler_flags=-v
20825        linker_flags=-v
20826        verstring=
20827        output_objdir=.
20828        libname=conftest
20829        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20830        allow_undefined_flag_GCJ=
20831        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20832  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20833  ac_status=$?
20834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835  (exit $ac_status); }
20836        then
20837	  archive_cmds_need_lc_GCJ=no
20838        else
20839	  archive_cmds_need_lc_GCJ=yes
20840        fi
20841        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20842      else
20843        cat conftest.err 1>&5
20844      fi
20845      $rm conftest*
20846      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20847echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20848      ;;
20849    esac
20850  fi
20851  ;;
20852esac
20853
20854echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20855echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20856library_names_spec=
20857libname_spec='lib$name'
20858soname_spec=
20859shrext_cmds=".so"
20860postinstall_cmds=
20861postuninstall_cmds=
20862finish_cmds=
20863finish_eval=
20864shlibpath_var=
20865shlibpath_overrides_runpath=unknown
20866version_type=none
20867dynamic_linker="$host_os ld.so"
20868sys_lib_dlsearch_path_spec="/lib /usr/lib"
20869if test "$GCC" = yes; then
20870  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20871  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20872    # if the path contains ";" then we assume it to be the separator
20873    # otherwise default to the standard path separator (i.e. ":") - it is
20874    # assumed that no part of a normal pathname contains ";" but that should
20875    # okay in the real world where ";" in dirpaths is itself problematic.
20876    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20877  else
20878    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20879  fi
20880else
20881  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20882fi
20883need_lib_prefix=unknown
20884hardcode_into_libs=no
20885
20886# when you set need_version to no, make sure it does not cause -set_version
20887# flags to be left without arguments
20888need_version=unknown
20889
20890case $host_os in
20891aix3*)
20892  version_type=linux
20893  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20894  shlibpath_var=LIBPATH
20895
20896  # AIX 3 has no versioning support, so we append a major version to the name.
20897  soname_spec='${libname}${release}${shared_ext}$major'
20898  ;;
20899
20900aix4* | aix5*)
20901  version_type=linux
20902  need_lib_prefix=no
20903  need_version=no
20904  hardcode_into_libs=yes
20905  if test "$host_cpu" = ia64; then
20906    # AIX 5 supports IA64
20907    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20908    shlibpath_var=LD_LIBRARY_PATH
20909  else
20910    # With GCC up to 2.95.x, collect2 would create an import file
20911    # for dependence libraries.  The import file would start with
20912    # the line `#! .'.  This would cause the generated library to
20913    # depend on `.', always an invalid library.  This was fixed in
20914    # development snapshots of GCC prior to 3.0.
20915    case $host_os in
20916      aix4 | aix4.[01] | aix4.[01].*)
20917      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20918	   echo ' yes '
20919	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20920	:
20921      else
20922	can_build_shared=no
20923      fi
20924      ;;
20925    esac
20926    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20927    # soname into executable. Probably we can add versioning support to
20928    # collect2, so additional links can be useful in future.
20929    if test "$aix_use_runtimelinking" = yes; then
20930      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20931      # instead of lib<name>.a to let people know that these are not
20932      # typical AIX shared libraries.
20933      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20934    else
20935      # We preserve .a as extension for shared libraries through AIX4.2
20936      # and later when we are not doing run time linking.
20937      library_names_spec='${libname}${release}.a $libname.a'
20938      soname_spec='${libname}${release}${shared_ext}$major'
20939    fi
20940    shlibpath_var=LIBPATH
20941  fi
20942  ;;
20943
20944amigaos*)
20945  library_names_spec='$libname.ixlibrary $libname.a'
20946  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20947  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'
20948  ;;
20949
20950beos*)
20951  library_names_spec='${libname}${shared_ext}'
20952  dynamic_linker="$host_os ld.so"
20953  shlibpath_var=LIBRARY_PATH
20954  ;;
20955
20956bsdi[45]*)
20957  version_type=linux
20958  need_version=no
20959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20960  soname_spec='${libname}${release}${shared_ext}$major'
20961  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20962  shlibpath_var=LD_LIBRARY_PATH
20963  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20964  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20965  # the default ld.so.conf also contains /usr/contrib/lib and
20966  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20967  # libtool to hard-code these into programs
20968  ;;
20969
20970cygwin* | mingw* | pw32*)
20971  version_type=windows
20972  shrext_cmds=".dll"
20973  need_version=no
20974  need_lib_prefix=no
20975
20976  case $GCC,$host_os in
20977  yes,cygwin* | yes,mingw* | yes,pw32*)
20978    library_names_spec='$libname.dll.a'
20979    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20980    postinstall_cmds='base_file=`basename \${file}`~
20981      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20982      dldir=$destdir/`dirname \$dlpath`~
20983      test -d \$dldir || mkdir -p \$dldir~
20984      $install_prog $dir/$dlname \$dldir/$dlname~
20985      chmod a+x \$dldir/$dlname'
20986    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20987      dlpath=$dir/\$dldll~
20988       $rm \$dlpath'
20989    shlibpath_overrides_runpath=yes
20990
20991    case $host_os in
20992    cygwin*)
20993      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20994      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20995      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20996      ;;
20997    mingw*)
20998      # MinGW DLLs use traditional 'lib' prefix
20999      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21000      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21001      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21002        # It is most probably a Windows format PATH printed by
21003        # mingw gcc, but we are running on Cygwin. Gcc prints its search
21004        # path with ; separators, and with drive letters. We can handle the
21005        # drive letters (cygwin fileutils understands them), so leave them,
21006        # especially as we might pass files found there to a mingw objdump,
21007        # which wouldn't understand a cygwinified path. Ahh.
21008        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21009      else
21010        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21011      fi
21012      ;;
21013    pw32*)
21014      # pw32 DLLs use 'pw' prefix rather than 'lib'
21015      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21016      ;;
21017    esac
21018    ;;
21019
21020  *)
21021    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21022    ;;
21023  esac
21024  dynamic_linker='Win32 ld.exe'
21025  # FIXME: first we should search . and the directory the executable is in
21026  shlibpath_var=PATH
21027  ;;
21028
21029darwin* | rhapsody*)
21030  dynamic_linker="$host_os dyld"
21031  version_type=darwin
21032  need_lib_prefix=no
21033  need_version=no
21034  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21035  soname_spec='${libname}${release}${major}$shared_ext'
21036  shlibpath_overrides_runpath=yes
21037  shlibpath_var=DYLD_LIBRARY_PATH
21038  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21039  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21040  if test "$GCC" = yes; then
21041    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"`
21042  else
21043    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21044  fi
21045  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21046  ;;
21047
21048dgux*)
21049  version_type=linux
21050  need_lib_prefix=no
21051  need_version=no
21052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21053  soname_spec='${libname}${release}${shared_ext}$major'
21054  shlibpath_var=LD_LIBRARY_PATH
21055  ;;
21056
21057freebsd1*)
21058  dynamic_linker=no
21059  ;;
21060
21061kfreebsd*-gnu)
21062  version_type=linux
21063  need_lib_prefix=no
21064  need_version=no
21065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21066  soname_spec='${libname}${release}${shared_ext}$major'
21067  shlibpath_var=LD_LIBRARY_PATH
21068  shlibpath_overrides_runpath=no
21069  hardcode_into_libs=yes
21070  dynamic_linker='GNU ld.so'
21071  ;;
21072
21073freebsd* | dragonfly*)
21074  # DragonFly does not have aout.  When/if they implement a new
21075  # versioning mechanism, adjust this.
21076  if test -x /usr/bin/objformat; then
21077    objformat=`/usr/bin/objformat`
21078  else
21079    case $host_os in
21080    freebsd[123]*) objformat=aout ;;
21081    *) objformat=elf ;;
21082    esac
21083  fi
21084  version_type=freebsd-$objformat
21085  case $version_type in
21086    freebsd-elf*)
21087      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21088      need_version=no
21089      need_lib_prefix=no
21090      ;;
21091    freebsd-*)
21092      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21093      need_version=yes
21094      ;;
21095  esac
21096  shlibpath_var=LD_LIBRARY_PATH
21097  case $host_os in
21098  freebsd2*)
21099    shlibpath_overrides_runpath=yes
21100    ;;
21101  freebsd3.[01]* | freebsdelf3.[01]*)
21102    shlibpath_overrides_runpath=yes
21103    hardcode_into_libs=yes
21104    ;;
21105  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21106  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21107    shlibpath_overrides_runpath=no
21108    hardcode_into_libs=yes
21109    ;;
21110  freebsd*) # from 4.6 on
21111    shlibpath_overrides_runpath=yes
21112    hardcode_into_libs=yes
21113    ;;
21114  esac
21115  ;;
21116
21117gnu*)
21118  version_type=linux
21119  need_lib_prefix=no
21120  need_version=no
21121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21122  soname_spec='${libname}${release}${shared_ext}$major'
21123  shlibpath_var=LD_LIBRARY_PATH
21124  hardcode_into_libs=yes
21125  ;;
21126
21127hpux9* | hpux10* | hpux11*)
21128  # Give a soname corresponding to the major version so that dld.sl refuses to
21129  # link against other versions.
21130  version_type=sunos
21131  need_lib_prefix=no
21132  need_version=no
21133  case $host_cpu in
21134  ia64*)
21135    shrext_cmds='.so'
21136    hardcode_into_libs=yes
21137    dynamic_linker="$host_os dld.so"
21138    shlibpath_var=LD_LIBRARY_PATH
21139    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21140    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21141    soname_spec='${libname}${release}${shared_ext}$major'
21142    if test "X$HPUX_IA64_MODE" = X32; then
21143      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21144    else
21145      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21146    fi
21147    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21148    ;;
21149   hppa*64*)
21150     shrext_cmds='.sl'
21151     hardcode_into_libs=yes
21152     dynamic_linker="$host_os dld.sl"
21153     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21154     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21156     soname_spec='${libname}${release}${shared_ext}$major'
21157     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21158     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21159     ;;
21160   *)
21161    shrext_cmds='.sl'
21162    dynamic_linker="$host_os dld.sl"
21163    shlibpath_var=SHLIB_PATH
21164    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21165    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166    soname_spec='${libname}${release}${shared_ext}$major'
21167    ;;
21168  esac
21169  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21170  postinstall_cmds='chmod 555 $lib'
21171  ;;
21172
21173interix3*)
21174  version_type=linux
21175  need_lib_prefix=no
21176  need_version=no
21177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21178  soname_spec='${libname}${release}${shared_ext}$major'
21179  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21180  shlibpath_var=LD_LIBRARY_PATH
21181  shlibpath_overrides_runpath=no
21182  hardcode_into_libs=yes
21183  ;;
21184
21185irix5* | irix6* | nonstopux*)
21186  case $host_os in
21187    nonstopux*) version_type=nonstopux ;;
21188    *)
21189	if test "$lt_cv_prog_gnu_ld" = yes; then
21190		version_type=linux
21191	else
21192		version_type=irix
21193	fi ;;
21194  esac
21195  need_lib_prefix=no
21196  need_version=no
21197  soname_spec='${libname}${release}${shared_ext}$major'
21198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21199  case $host_os in
21200  irix5* | nonstopux*)
21201    libsuff= shlibsuff=
21202    ;;
21203  *)
21204    case $LD in # libtool.m4 will add one of these switches to LD
21205    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21206      libsuff= shlibsuff= libmagic=32-bit;;
21207    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21208      libsuff=32 shlibsuff=N32 libmagic=N32;;
21209    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21210      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21211    *) libsuff= shlibsuff= libmagic=never-match;;
21212    esac
21213    ;;
21214  esac
21215  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21216  shlibpath_overrides_runpath=no
21217  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21218  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21219  hardcode_into_libs=yes
21220  ;;
21221
21222# No shared lib support for Linux oldld, aout, or coff.
21223linux*oldld* | linux*aout* | linux*coff*)
21224  dynamic_linker=no
21225  ;;
21226
21227# This must be Linux ELF.
21228linux*)
21229  version_type=linux
21230  need_lib_prefix=no
21231  need_version=no
21232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21233  soname_spec='${libname}${release}${shared_ext}$major'
21234  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21235  shlibpath_var=LD_LIBRARY_PATH
21236  shlibpath_overrides_runpath=no
21237  # This implies no fast_install, which is unacceptable.
21238  # Some rework will be needed to allow for fast_install
21239  # before this can be enabled.
21240  hardcode_into_libs=yes
21241
21242  # find out which ABI we are using
21243  libsuff=
21244  case "$host_cpu" in
21245  x86_64*|s390x*|powerpc64*)
21246    echo '#line 21248 "configure"' > conftest.$ac_ext
21247    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248  (eval $ac_compile) 2>&5
21249  ac_status=$?
21250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251  (exit $ac_status); }; then
21252      case `/usr/bin/file conftest.$ac_objext` in
21253      *64-bit*)
21254        libsuff=64
21255        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21256        ;;
21257      esac
21258    fi
21259    rm -rf conftest*
21260    ;;
21261  esac
21262
21263  # Append ld.so.conf contents to the search path
21264  if test -f /etc/ld.so.conf; then
21265    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' ' '`
21266    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21267  fi
21268
21269  # We used to test for /lib/ld.so.1 and disable shared libraries on
21270  # powerpc, because MkLinux only supported shared libraries with the
21271  # GNU dynamic linker.  Since this was broken with cross compilers,
21272  # most powerpc-linux boxes support dynamic linking these days and
21273  # people can always --disable-shared, the test was removed, and we
21274  # assume the GNU/Linux dynamic linker is in use.
21275  dynamic_linker='GNU/Linux ld.so'
21276  ;;
21277
21278knetbsd*-gnu)
21279  version_type=linux
21280  need_lib_prefix=no
21281  need_version=no
21282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21283  soname_spec='${libname}${release}${shared_ext}$major'
21284  shlibpath_var=LD_LIBRARY_PATH
21285  shlibpath_overrides_runpath=no
21286  hardcode_into_libs=yes
21287  dynamic_linker='GNU ld.so'
21288  ;;
21289
21290netbsd*)
21291  version_type=sunos
21292  need_lib_prefix=no
21293  need_version=no
21294  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21296    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21297    dynamic_linker='NetBSD (a.out) ld.so'
21298  else
21299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21300    soname_spec='${libname}${release}${shared_ext}$major'
21301    dynamic_linker='NetBSD ld.elf_so'
21302  fi
21303  shlibpath_var=LD_LIBRARY_PATH
21304  shlibpath_overrides_runpath=yes
21305  hardcode_into_libs=yes
21306  ;;
21307
21308newsos6)
21309  version_type=linux
21310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21311  shlibpath_var=LD_LIBRARY_PATH
21312  shlibpath_overrides_runpath=yes
21313  ;;
21314
21315nto-qnx*)
21316  version_type=linux
21317  need_lib_prefix=no
21318  need_version=no
21319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21320  soname_spec='${libname}${release}${shared_ext}$major'
21321  shlibpath_var=LD_LIBRARY_PATH
21322  shlibpath_overrides_runpath=yes
21323  ;;
21324
21325openbsd*)
21326  version_type=sunos
21327  sys_lib_dlsearch_path_spec="/usr/lib"
21328  need_lib_prefix=no
21329  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21330  case $host_os in
21331    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21332    *)                         need_version=no  ;;
21333  esac
21334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21335  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21336  shlibpath_var=LD_LIBRARY_PATH
21337  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21338    case $host_os in
21339      openbsd2.[89] | openbsd2.[89].*)
21340	shlibpath_overrides_runpath=no
21341	;;
21342      *)
21343	shlibpath_overrides_runpath=yes
21344	;;
21345      esac
21346  else
21347    shlibpath_overrides_runpath=yes
21348  fi
21349  ;;
21350
21351os2*)
21352  libname_spec='$name'
21353  shrext_cmds=".dll"
21354  need_lib_prefix=no
21355  library_names_spec='$libname${shared_ext} $libname.a'
21356  dynamic_linker='OS/2 ld.exe'
21357  shlibpath_var=LIBPATH
21358  ;;
21359
21360osf3* | osf4* | osf5*)
21361  version_type=osf
21362  need_lib_prefix=no
21363  need_version=no
21364  soname_spec='${libname}${release}${shared_ext}$major'
21365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21366  shlibpath_var=LD_LIBRARY_PATH
21367  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21368  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21369  ;;
21370
21371solaris*)
21372  version_type=linux
21373  need_lib_prefix=no
21374  need_version=no
21375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21376  soname_spec='${libname}${release}${shared_ext}$major'
21377  shlibpath_var=LD_LIBRARY_PATH
21378  shlibpath_overrides_runpath=yes
21379  hardcode_into_libs=yes
21380  # ldd complains unless libraries are executable
21381  postinstall_cmds='chmod +x $lib'
21382  ;;
21383
21384sunos4*)
21385  version_type=sunos
21386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21387  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21388  shlibpath_var=LD_LIBRARY_PATH
21389  shlibpath_overrides_runpath=yes
21390  if test "$with_gnu_ld" = yes; then
21391    need_lib_prefix=no
21392  fi
21393  need_version=yes
21394  ;;
21395
21396sysv4 | sysv4.3*)
21397  version_type=linux
21398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21399  soname_spec='${libname}${release}${shared_ext}$major'
21400  shlibpath_var=LD_LIBRARY_PATH
21401  case $host_vendor in
21402    sni)
21403      shlibpath_overrides_runpath=no
21404      need_lib_prefix=no
21405      export_dynamic_flag_spec='${wl}-Blargedynsym'
21406      runpath_var=LD_RUN_PATH
21407      ;;
21408    siemens)
21409      need_lib_prefix=no
21410      ;;
21411    motorola)
21412      need_lib_prefix=no
21413      need_version=no
21414      shlibpath_overrides_runpath=no
21415      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21416      ;;
21417  esac
21418  ;;
21419
21420sysv4*MP*)
21421  if test -d /usr/nec ;then
21422    version_type=linux
21423    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21424    soname_spec='$libname${shared_ext}.$major'
21425    shlibpath_var=LD_LIBRARY_PATH
21426  fi
21427  ;;
21428
21429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21430  version_type=freebsd-elf
21431  need_lib_prefix=no
21432  need_version=no
21433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21434  soname_spec='${libname}${release}${shared_ext}$major'
21435  shlibpath_var=LD_LIBRARY_PATH
21436  hardcode_into_libs=yes
21437  if test "$with_gnu_ld" = yes; then
21438    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21439    shlibpath_overrides_runpath=no
21440  else
21441    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21442    shlibpath_overrides_runpath=yes
21443    case $host_os in
21444      sco3.2v5*)
21445        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21446	;;
21447    esac
21448  fi
21449  sys_lib_dlsearch_path_spec='/usr/lib'
21450  ;;
21451
21452uts4*)
21453  version_type=linux
21454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21455  soname_spec='${libname}${release}${shared_ext}$major'
21456  shlibpath_var=LD_LIBRARY_PATH
21457  ;;
21458
21459*)
21460  dynamic_linker=no
21461  ;;
21462esac
21463echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21464echo "${ECHO_T}$dynamic_linker" >&6
21465test "$dynamic_linker" = no && can_build_shared=no
21466
21467variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21468if test "$GCC" = yes; then
21469  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21470fi
21471
21472echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21473echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21474hardcode_action_GCJ=
21475if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21476   test -n "$runpath_var_GCJ" || \
21477   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21478
21479  # We can hardcode non-existant directories.
21480  if test "$hardcode_direct_GCJ" != no &&
21481     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21482     # have to relink, otherwise we might link with an installed library
21483     # when we should be linking with a yet-to-be-installed one
21484     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21485     test "$hardcode_minus_L_GCJ" != no; then
21486    # Linking always hardcodes the temporary library directory.
21487    hardcode_action_GCJ=relink
21488  else
21489    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21490    hardcode_action_GCJ=immediate
21491  fi
21492else
21493  # We cannot hardcode anything, or else we can only hardcode existing
21494  # directories.
21495  hardcode_action_GCJ=unsupported
21496fi
21497echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21498echo "${ECHO_T}$hardcode_action_GCJ" >&6
21499
21500if test "$hardcode_action_GCJ" = relink; then
21501  # Fast installation is not supported
21502  enable_fast_install=no
21503elif test "$shlibpath_overrides_runpath" = yes ||
21504     test "$enable_shared" = no; then
21505  # Fast installation is not necessary
21506  enable_fast_install=needless
21507fi
21508
21509
21510# The else clause should only fire when bootstrapping the
21511# libtool distribution, otherwise you forgot to ship ltmain.sh
21512# with your package, and you will get complaints that there are
21513# no rules to generate ltmain.sh.
21514if test -f "$ltmain"; then
21515  # See if we are running on zsh, and set the options which allow our commands through
21516  # without removal of \ escapes.
21517  if test -n "${ZSH_VERSION+set}" ; then
21518    setopt NO_GLOB_SUBST
21519  fi
21520  # Now quote all the things that may contain metacharacters while being
21521  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21522  # variables and quote the copies for generation of the libtool script.
21523  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21524    SED SHELL STRIP \
21525    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21526    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21527    deplibs_check_method reload_flag reload_cmds need_locks \
21528    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21529    lt_cv_sys_global_symbol_to_c_name_address \
21530    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21531    old_postinstall_cmds old_postuninstall_cmds \
21532    compiler_GCJ \
21533    CC_GCJ \
21534    LD_GCJ \
21535    lt_prog_compiler_wl_GCJ \
21536    lt_prog_compiler_pic_GCJ \
21537    lt_prog_compiler_static_GCJ \
21538    lt_prog_compiler_no_builtin_flag_GCJ \
21539    export_dynamic_flag_spec_GCJ \
21540    thread_safe_flag_spec_GCJ \
21541    whole_archive_flag_spec_GCJ \
21542    enable_shared_with_static_runtimes_GCJ \
21543    old_archive_cmds_GCJ \
21544    old_archive_from_new_cmds_GCJ \
21545    predep_objects_GCJ \
21546    postdep_objects_GCJ \
21547    predeps_GCJ \
21548    postdeps_GCJ \
21549    compiler_lib_search_path_GCJ \
21550    archive_cmds_GCJ \
21551    archive_expsym_cmds_GCJ \
21552    postinstall_cmds_GCJ \
21553    postuninstall_cmds_GCJ \
21554    old_archive_from_expsyms_cmds_GCJ \
21555    allow_undefined_flag_GCJ \
21556    no_undefined_flag_GCJ \
21557    export_symbols_cmds_GCJ \
21558    hardcode_libdir_flag_spec_GCJ \
21559    hardcode_libdir_flag_spec_ld_GCJ \
21560    hardcode_libdir_separator_GCJ \
21561    hardcode_automatic_GCJ \
21562    module_cmds_GCJ \
21563    module_expsym_cmds_GCJ \
21564    lt_cv_prog_compiler_c_o_GCJ \
21565    exclude_expsyms_GCJ \
21566    include_expsyms_GCJ; do
21567
21568    case $var in
21569    old_archive_cmds_GCJ | \
21570    old_archive_from_new_cmds_GCJ | \
21571    archive_cmds_GCJ | \
21572    archive_expsym_cmds_GCJ | \
21573    module_cmds_GCJ | \
21574    module_expsym_cmds_GCJ | \
21575    old_archive_from_expsyms_cmds_GCJ | \
21576    export_symbols_cmds_GCJ | \
21577    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21578    postinstall_cmds | postuninstall_cmds | \
21579    old_postinstall_cmds | old_postuninstall_cmds | \
21580    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21581      # Double-quote double-evaled strings.
21582      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21583      ;;
21584    *)
21585      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21586      ;;
21587    esac
21588  done
21589
21590  case $lt_echo in
21591  *'\$0 --fallback-echo"')
21592    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21593    ;;
21594  esac
21595
21596cfgfile="$ofile"
21597
21598  cat <<__EOF__ >> "$cfgfile"
21599# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21600
21601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21602
21603# Shell to use when invoking shell scripts.
21604SHELL=$lt_SHELL
21605
21606# Whether or not to build shared libraries.
21607build_libtool_libs=$enable_shared
21608
21609# Whether or not to build static libraries.
21610build_old_libs=$enable_static
21611
21612# Whether or not to add -lc for building shared libraries.
21613build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21614
21615# Whether or not to disallow shared libs when runtime libs are static
21616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21617
21618# Whether or not to optimize for fast installation.
21619fast_install=$enable_fast_install
21620
21621# The host system.
21622host_alias=$host_alias
21623host=$host
21624host_os=$host_os
21625
21626# The build system.
21627build_alias=$build_alias
21628build=$build
21629build_os=$build_os
21630
21631# An echo program that does not interpret backslashes.
21632echo=$lt_echo
21633
21634# The archiver.
21635AR=$lt_AR
21636AR_FLAGS=$lt_AR_FLAGS
21637
21638# A C compiler.
21639LTCC=$lt_LTCC
21640
21641# LTCC compiler flags.
21642LTCFLAGS=$lt_LTCFLAGS
21643
21644# A language-specific compiler.
21645CC=$lt_compiler_GCJ
21646
21647# Is the compiler the GNU C compiler?
21648with_gcc=$GCC_GCJ
21649
21650# An ERE matcher.
21651EGREP=$lt_EGREP
21652
21653# The linker used to build libraries.
21654LD=$lt_LD_GCJ
21655
21656# Whether we need hard or soft links.
21657LN_S=$lt_LN_S
21658
21659# A BSD-compatible nm program.
21660NM=$lt_NM
21661
21662# A symbol stripping program
21663STRIP=$lt_STRIP
21664
21665# Used to examine libraries when file_magic_cmd begins "file"
21666MAGIC_CMD=$MAGIC_CMD
21667
21668# Used on cygwin: DLL creation program.
21669DLLTOOL="$DLLTOOL"
21670
21671# Used on cygwin: object dumper.
21672OBJDUMP="$OBJDUMP"
21673
21674# Used on cygwin: assembler.
21675AS="$AS"
21676
21677# The name of the directory that contains temporary libtool files.
21678objdir=$objdir
21679
21680# How to create reloadable object files.
21681reload_flag=$lt_reload_flag
21682reload_cmds=$lt_reload_cmds
21683
21684# How to pass a linker flag through the compiler.
21685wl=$lt_lt_prog_compiler_wl_GCJ
21686
21687# Object file suffix (normally "o").
21688objext="$ac_objext"
21689
21690# Old archive suffix (normally "a").
21691libext="$libext"
21692
21693# Shared library suffix (normally ".so").
21694shrext_cmds='$shrext_cmds'
21695
21696# Executable file suffix (normally "").
21697exeext="$exeext"
21698
21699# Additional compiler flags for building library objects.
21700pic_flag=$lt_lt_prog_compiler_pic_GCJ
21701pic_mode=$pic_mode
21702
21703# What is the maximum length of a command?
21704max_cmd_len=$lt_cv_sys_max_cmd_len
21705
21706# Does compiler simultaneously support -c and -o options?
21707compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21708
21709# Must we lock files when doing compilation?
21710need_locks=$lt_need_locks
21711
21712# Do we need the lib prefix for modules?
21713need_lib_prefix=$need_lib_prefix
21714
21715# Do we need a version for libraries?
21716need_version=$need_version
21717
21718# Whether dlopen is supported.
21719dlopen_support=$enable_dlopen
21720
21721# Whether dlopen of programs is supported.
21722dlopen_self=$enable_dlopen_self
21723
21724# Whether dlopen of statically linked programs is supported.
21725dlopen_self_static=$enable_dlopen_self_static
21726
21727# Compiler flag to prevent dynamic linking.
21728link_static_flag=$lt_lt_prog_compiler_static_GCJ
21729
21730# Compiler flag to turn off builtin functions.
21731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21732
21733# Compiler flag to allow reflexive dlopens.
21734export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21735
21736# Compiler flag to generate shared objects directly from archives.
21737whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21738
21739# Compiler flag to generate thread-safe objects.
21740thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21741
21742# Library versioning type.
21743version_type=$version_type
21744
21745# Format of library name prefix.
21746libname_spec=$lt_libname_spec
21747
21748# List of archive names.  First name is the real one, the rest are links.
21749# The last name is the one that the linker finds with -lNAME.
21750library_names_spec=$lt_library_names_spec
21751
21752# The coded name of the library, if different from the real name.
21753soname_spec=$lt_soname_spec
21754
21755# Commands used to build and install an old-style archive.
21756RANLIB=$lt_RANLIB
21757old_archive_cmds=$lt_old_archive_cmds_GCJ
21758old_postinstall_cmds=$lt_old_postinstall_cmds
21759old_postuninstall_cmds=$lt_old_postuninstall_cmds
21760
21761# Create an old-style archive from a shared archive.
21762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21763
21764# Create a temporary old-style archive to link instead of a shared archive.
21765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21766
21767# Commands used to build and install a shared archive.
21768archive_cmds=$lt_archive_cmds_GCJ
21769archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21770postinstall_cmds=$lt_postinstall_cmds
21771postuninstall_cmds=$lt_postuninstall_cmds
21772
21773# Commands used to build a loadable module (assumed same as above if empty)
21774module_cmds=$lt_module_cmds_GCJ
21775module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21776
21777# Commands to strip libraries.
21778old_striplib=$lt_old_striplib
21779striplib=$lt_striplib
21780
21781# Dependencies to place before the objects being linked to create a
21782# shared library.
21783predep_objects=$lt_predep_objects_GCJ
21784
21785# Dependencies to place after the objects being linked to create a
21786# shared library.
21787postdep_objects=$lt_postdep_objects_GCJ
21788
21789# Dependencies to place before the objects being linked to create a
21790# shared library.
21791predeps=$lt_predeps_GCJ
21792
21793# Dependencies to place after the objects being linked to create a
21794# shared library.
21795postdeps=$lt_postdeps_GCJ
21796
21797# The library search path used internally by the compiler when linking
21798# a shared library.
21799compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21800
21801# Method to check whether dependent libraries are shared objects.
21802deplibs_check_method=$lt_deplibs_check_method
21803
21804# Command to use when deplibs_check_method == file_magic.
21805file_magic_cmd=$lt_file_magic_cmd
21806
21807# Flag that allows shared libraries with undefined symbols to be built.
21808allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21809
21810# Flag that forces no undefined symbols.
21811no_undefined_flag=$lt_no_undefined_flag_GCJ
21812
21813# Commands used to finish a libtool library installation in a directory.
21814finish_cmds=$lt_finish_cmds
21815
21816# Same as above, but a single script fragment to be evaled but not shown.
21817finish_eval=$lt_finish_eval
21818
21819# Take the output of nm and produce a listing of raw symbols and C names.
21820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21821
21822# Transform the output of nm in a proper C declaration
21823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21824
21825# Transform the output of nm in a C name address pair
21826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21827
21828# This is the shared library runtime path variable.
21829runpath_var=$runpath_var
21830
21831# This is the shared library path variable.
21832shlibpath_var=$shlibpath_var
21833
21834# Is shlibpath searched before the hard-coded library search path?
21835shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21836
21837# How to hardcode a shared library path into an executable.
21838hardcode_action=$hardcode_action_GCJ
21839
21840# Whether we should hardcode library paths into libraries.
21841hardcode_into_libs=$hardcode_into_libs
21842
21843# Flag to hardcode \$libdir into a binary during linking.
21844# This must work even if \$libdir does not exist.
21845hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21846
21847# If ld is used when linking, flag to hardcode \$libdir into
21848# a binary during linking. This must work even if \$libdir does
21849# not exist.
21850hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21851
21852# Whether we need a single -rpath flag with a separated argument.
21853hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21854
21855# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21856# resulting binary.
21857hardcode_direct=$hardcode_direct_GCJ
21858
21859# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21860# resulting binary.
21861hardcode_minus_L=$hardcode_minus_L_GCJ
21862
21863# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21864# the resulting binary.
21865hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21866
21867# Set to yes if building a shared library automatically hardcodes DIR into the library
21868# and all subsequent libraries and executables linked against it.
21869hardcode_automatic=$hardcode_automatic_GCJ
21870
21871# Variables whose values should be saved in libtool wrapper scripts and
21872# restored at relink time.
21873variables_saved_for_relink="$variables_saved_for_relink"
21874
21875# Whether libtool must link a program against all its dependency libraries.
21876link_all_deplibs=$link_all_deplibs_GCJ
21877
21878# Compile-time system search path for libraries
21879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21880
21881# Run-time system search path for libraries
21882sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21883
21884# Fix the shell variable \$srcfile for the compiler.
21885fix_srcfile_path="$fix_srcfile_path_GCJ"
21886
21887# Set to yes if exported symbols are required.
21888always_export_symbols=$always_export_symbols_GCJ
21889
21890# The commands to list exported symbols.
21891export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21892
21893# The commands to extract the exported symbol list from a shared archive.
21894extract_expsyms_cmds=$lt_extract_expsyms_cmds
21895
21896# Symbols that should not be listed in the preloaded symbols.
21897exclude_expsyms=$lt_exclude_expsyms_GCJ
21898
21899# Symbols that must always be exported.
21900include_expsyms=$lt_include_expsyms_GCJ
21901
21902# ### END LIBTOOL TAG CONFIG: $tagname
21903
21904__EOF__
21905
21906
21907else
21908  # If there is no Makefile yet, we rely on a make rule to execute
21909  # `config.status --recheck' to rerun these tests and create the
21910  # libtool script then.
21911  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21912  if test -f "$ltmain_in"; then
21913    test -f Makefile && make "$ltmain"
21914  fi
21915fi
21916
21917
21918ac_ext=c
21919ac_cpp='$CPP $CPPFLAGS'
21920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21922ac_compiler_gnu=$ac_cv_c_compiler_gnu
21923
21924CC="$lt_save_CC"
21925
21926	else
21927	  tagname=""
21928	fi
21929	;;
21930
21931      RC)
21932
21933
21934
21935# Source file extension for RC test sources.
21936ac_ext=rc
21937
21938# Object file extension for compiled RC test sources.
21939objext=o
21940objext_RC=$objext
21941
21942# Code to be used in simple compile tests
21943lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21944
21945# Code to be used in simple link tests
21946lt_simple_link_test_code="$lt_simple_compile_test_code"
21947
21948# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21949
21950# If no C compiler was specified, use CC.
21951LTCC=${LTCC-"$CC"}
21952
21953# If no C compiler flags were specified, use CFLAGS.
21954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21955
21956# Allow CC to be a program name with arguments.
21957compiler=$CC
21958
21959
21960# save warnings/boilerplate of simple test code
21961ac_outfile=conftest.$ac_objext
21962printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21963eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21964_lt_compiler_boilerplate=`cat conftest.err`
21965$rm conftest*
21966
21967ac_outfile=conftest.$ac_objext
21968printf "$lt_simple_link_test_code" >conftest.$ac_ext
21969eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21970_lt_linker_boilerplate=`cat conftest.err`
21971$rm conftest*
21972
21973
21974# Allow CC to be a program name with arguments.
21975lt_save_CC="$CC"
21976CC=${RC-"windres"}
21977compiler=$CC
21978compiler_RC=$CC
21979for cc_temp in $compiler""; do
21980  case $cc_temp in
21981    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21982    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21983    \-*) ;;
21984    *) break;;
21985  esac
21986done
21987cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21988
21989lt_cv_prog_compiler_c_o_RC=yes
21990
21991# The else clause should only fire when bootstrapping the
21992# libtool distribution, otherwise you forgot to ship ltmain.sh
21993# with your package, and you will get complaints that there are
21994# no rules to generate ltmain.sh.
21995if test -f "$ltmain"; then
21996  # See if we are running on zsh, and set the options which allow our commands through
21997  # without removal of \ escapes.
21998  if test -n "${ZSH_VERSION+set}" ; then
21999    setopt NO_GLOB_SUBST
22000  fi
22001  # Now quote all the things that may contain metacharacters while being
22002  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22003  # variables and quote the copies for generation of the libtool script.
22004  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22005    SED SHELL STRIP \
22006    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22007    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22008    deplibs_check_method reload_flag reload_cmds need_locks \
22009    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22010    lt_cv_sys_global_symbol_to_c_name_address \
22011    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22012    old_postinstall_cmds old_postuninstall_cmds \
22013    compiler_RC \
22014    CC_RC \
22015    LD_RC \
22016    lt_prog_compiler_wl_RC \
22017    lt_prog_compiler_pic_RC \
22018    lt_prog_compiler_static_RC \
22019    lt_prog_compiler_no_builtin_flag_RC \
22020    export_dynamic_flag_spec_RC \
22021    thread_safe_flag_spec_RC \
22022    whole_archive_flag_spec_RC \
22023    enable_shared_with_static_runtimes_RC \
22024    old_archive_cmds_RC \
22025    old_archive_from_new_cmds_RC \
22026    predep_objects_RC \
22027    postdep_objects_RC \
22028    predeps_RC \
22029    postdeps_RC \
22030    compiler_lib_search_path_RC \
22031    archive_cmds_RC \
22032    archive_expsym_cmds_RC \
22033    postinstall_cmds_RC \
22034    postuninstall_cmds_RC \
22035    old_archive_from_expsyms_cmds_RC \
22036    allow_undefined_flag_RC \
22037    no_undefined_flag_RC \
22038    export_symbols_cmds_RC \
22039    hardcode_libdir_flag_spec_RC \
22040    hardcode_libdir_flag_spec_ld_RC \
22041    hardcode_libdir_separator_RC \
22042    hardcode_automatic_RC \
22043    module_cmds_RC \
22044    module_expsym_cmds_RC \
22045    lt_cv_prog_compiler_c_o_RC \
22046    exclude_expsyms_RC \
22047    include_expsyms_RC; do
22048
22049    case $var in
22050    old_archive_cmds_RC | \
22051    old_archive_from_new_cmds_RC | \
22052    archive_cmds_RC | \
22053    archive_expsym_cmds_RC | \
22054    module_cmds_RC | \
22055    module_expsym_cmds_RC | \
22056    old_archive_from_expsyms_cmds_RC | \
22057    export_symbols_cmds_RC | \
22058    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22059    postinstall_cmds | postuninstall_cmds | \
22060    old_postinstall_cmds | old_postuninstall_cmds | \
22061    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22062      # Double-quote double-evaled strings.
22063      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22064      ;;
22065    *)
22066      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22067      ;;
22068    esac
22069  done
22070
22071  case $lt_echo in
22072  *'\$0 --fallback-echo"')
22073    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22074    ;;
22075  esac
22076
22077cfgfile="$ofile"
22078
22079  cat <<__EOF__ >> "$cfgfile"
22080# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22081
22082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22083
22084# Shell to use when invoking shell scripts.
22085SHELL=$lt_SHELL
22086
22087# Whether or not to build shared libraries.
22088build_libtool_libs=$enable_shared
22089
22090# Whether or not to build static libraries.
22091build_old_libs=$enable_static
22092
22093# Whether or not to add -lc for building shared libraries.
22094build_libtool_need_lc=$archive_cmds_need_lc_RC
22095
22096# Whether or not to disallow shared libs when runtime libs are static
22097allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22098
22099# Whether or not to optimize for fast installation.
22100fast_install=$enable_fast_install
22101
22102# The host system.
22103host_alias=$host_alias
22104host=$host
22105host_os=$host_os
22106
22107# The build system.
22108build_alias=$build_alias
22109build=$build
22110build_os=$build_os
22111
22112# An echo program that does not interpret backslashes.
22113echo=$lt_echo
22114
22115# The archiver.
22116AR=$lt_AR
22117AR_FLAGS=$lt_AR_FLAGS
22118
22119# A C compiler.
22120LTCC=$lt_LTCC
22121
22122# LTCC compiler flags.
22123LTCFLAGS=$lt_LTCFLAGS
22124
22125# A language-specific compiler.
22126CC=$lt_compiler_RC
22127
22128# Is the compiler the GNU C compiler?
22129with_gcc=$GCC_RC
22130
22131# An ERE matcher.
22132EGREP=$lt_EGREP
22133
22134# The linker used to build libraries.
22135LD=$lt_LD_RC
22136
22137# Whether we need hard or soft links.
22138LN_S=$lt_LN_S
22139
22140# A BSD-compatible nm program.
22141NM=$lt_NM
22142
22143# A symbol stripping program
22144STRIP=$lt_STRIP
22145
22146# Used to examine libraries when file_magic_cmd begins "file"
22147MAGIC_CMD=$MAGIC_CMD
22148
22149# Used on cygwin: DLL creation program.
22150DLLTOOL="$DLLTOOL"
22151
22152# Used on cygwin: object dumper.
22153OBJDUMP="$OBJDUMP"
22154
22155# Used on cygwin: assembler.
22156AS="$AS"
22157
22158# The name of the directory that contains temporary libtool files.
22159objdir=$objdir
22160
22161# How to create reloadable object files.
22162reload_flag=$lt_reload_flag
22163reload_cmds=$lt_reload_cmds
22164
22165# How to pass a linker flag through the compiler.
22166wl=$lt_lt_prog_compiler_wl_RC
22167
22168# Object file suffix (normally "o").
22169objext="$ac_objext"
22170
22171# Old archive suffix (normally "a").
22172libext="$libext"
22173
22174# Shared library suffix (normally ".so").
22175shrext_cmds='$shrext_cmds'
22176
22177# Executable file suffix (normally "").
22178exeext="$exeext"
22179
22180# Additional compiler flags for building library objects.
22181pic_flag=$lt_lt_prog_compiler_pic_RC
22182pic_mode=$pic_mode
22183
22184# What is the maximum length of a command?
22185max_cmd_len=$lt_cv_sys_max_cmd_len
22186
22187# Does compiler simultaneously support -c and -o options?
22188compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22189
22190# Must we lock files when doing compilation?
22191need_locks=$lt_need_locks
22192
22193# Do we need the lib prefix for modules?
22194need_lib_prefix=$need_lib_prefix
22195
22196# Do we need a version for libraries?
22197need_version=$need_version
22198
22199# Whether dlopen is supported.
22200dlopen_support=$enable_dlopen
22201
22202# Whether dlopen of programs is supported.
22203dlopen_self=$enable_dlopen_self
22204
22205# Whether dlopen of statically linked programs is supported.
22206dlopen_self_static=$enable_dlopen_self_static
22207
22208# Compiler flag to prevent dynamic linking.
22209link_static_flag=$lt_lt_prog_compiler_static_RC
22210
22211# Compiler flag to turn off builtin functions.
22212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22213
22214# Compiler flag to allow reflexive dlopens.
22215export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22216
22217# Compiler flag to generate shared objects directly from archives.
22218whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22219
22220# Compiler flag to generate thread-safe objects.
22221thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22222
22223# Library versioning type.
22224version_type=$version_type
22225
22226# Format of library name prefix.
22227libname_spec=$lt_libname_spec
22228
22229# List of archive names.  First name is the real one, the rest are links.
22230# The last name is the one that the linker finds with -lNAME.
22231library_names_spec=$lt_library_names_spec
22232
22233# The coded name of the library, if different from the real name.
22234soname_spec=$lt_soname_spec
22235
22236# Commands used to build and install an old-style archive.
22237RANLIB=$lt_RANLIB
22238old_archive_cmds=$lt_old_archive_cmds_RC
22239old_postinstall_cmds=$lt_old_postinstall_cmds
22240old_postuninstall_cmds=$lt_old_postuninstall_cmds
22241
22242# Create an old-style archive from a shared archive.
22243old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22244
22245# Create a temporary old-style archive to link instead of a shared archive.
22246old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22247
22248# Commands used to build and install a shared archive.
22249archive_cmds=$lt_archive_cmds_RC
22250archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22251postinstall_cmds=$lt_postinstall_cmds
22252postuninstall_cmds=$lt_postuninstall_cmds
22253
22254# Commands used to build a loadable module (assumed same as above if empty)
22255module_cmds=$lt_module_cmds_RC
22256module_expsym_cmds=$lt_module_expsym_cmds_RC
22257
22258# Commands to strip libraries.
22259old_striplib=$lt_old_striplib
22260striplib=$lt_striplib
22261
22262# Dependencies to place before the objects being linked to create a
22263# shared library.
22264predep_objects=$lt_predep_objects_RC
22265
22266# Dependencies to place after the objects being linked to create a
22267# shared library.
22268postdep_objects=$lt_postdep_objects_RC
22269
22270# Dependencies to place before the objects being linked to create a
22271# shared library.
22272predeps=$lt_predeps_RC
22273
22274# Dependencies to place after the objects being linked to create a
22275# shared library.
22276postdeps=$lt_postdeps_RC
22277
22278# The library search path used internally by the compiler when linking
22279# a shared library.
22280compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22281
22282# Method to check whether dependent libraries are shared objects.
22283deplibs_check_method=$lt_deplibs_check_method
22284
22285# Command to use when deplibs_check_method == file_magic.
22286file_magic_cmd=$lt_file_magic_cmd
22287
22288# Flag that allows shared libraries with undefined symbols to be built.
22289allow_undefined_flag=$lt_allow_undefined_flag_RC
22290
22291# Flag that forces no undefined symbols.
22292no_undefined_flag=$lt_no_undefined_flag_RC
22293
22294# Commands used to finish a libtool library installation in a directory.
22295finish_cmds=$lt_finish_cmds
22296
22297# Same as above, but a single script fragment to be evaled but not shown.
22298finish_eval=$lt_finish_eval
22299
22300# Take the output of nm and produce a listing of raw symbols and C names.
22301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22302
22303# Transform the output of nm in a proper C declaration
22304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22305
22306# Transform the output of nm in a C name address pair
22307global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22308
22309# This is the shared library runtime path variable.
22310runpath_var=$runpath_var
22311
22312# This is the shared library path variable.
22313shlibpath_var=$shlibpath_var
22314
22315# Is shlibpath searched before the hard-coded library search path?
22316shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22317
22318# How to hardcode a shared library path into an executable.
22319hardcode_action=$hardcode_action_RC
22320
22321# Whether we should hardcode library paths into libraries.
22322hardcode_into_libs=$hardcode_into_libs
22323
22324# Flag to hardcode \$libdir into a binary during linking.
22325# This must work even if \$libdir does not exist.
22326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22327
22328# If ld is used when linking, flag to hardcode \$libdir into
22329# a binary during linking. This must work even if \$libdir does
22330# not exist.
22331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22332
22333# Whether we need a single -rpath flag with a separated argument.
22334hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22335
22336# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22337# resulting binary.
22338hardcode_direct=$hardcode_direct_RC
22339
22340# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22341# resulting binary.
22342hardcode_minus_L=$hardcode_minus_L_RC
22343
22344# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22345# the resulting binary.
22346hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22347
22348# Set to yes if building a shared library automatically hardcodes DIR into the library
22349# and all subsequent libraries and executables linked against it.
22350hardcode_automatic=$hardcode_automatic_RC
22351
22352# Variables whose values should be saved in libtool wrapper scripts and
22353# restored at relink time.
22354variables_saved_for_relink="$variables_saved_for_relink"
22355
22356# Whether libtool must link a program against all its dependency libraries.
22357link_all_deplibs=$link_all_deplibs_RC
22358
22359# Compile-time system search path for libraries
22360sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22361
22362# Run-time system search path for libraries
22363sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22364
22365# Fix the shell variable \$srcfile for the compiler.
22366fix_srcfile_path="$fix_srcfile_path_RC"
22367
22368# Set to yes if exported symbols are required.
22369always_export_symbols=$always_export_symbols_RC
22370
22371# The commands to list exported symbols.
22372export_symbols_cmds=$lt_export_symbols_cmds_RC
22373
22374# The commands to extract the exported symbol list from a shared archive.
22375extract_expsyms_cmds=$lt_extract_expsyms_cmds
22376
22377# Symbols that should not be listed in the preloaded symbols.
22378exclude_expsyms=$lt_exclude_expsyms_RC
22379
22380# Symbols that must always be exported.
22381include_expsyms=$lt_include_expsyms_RC
22382
22383# ### END LIBTOOL TAG CONFIG: $tagname
22384
22385__EOF__
22386
22387
22388else
22389  # If there is no Makefile yet, we rely on a make rule to execute
22390  # `config.status --recheck' to rerun these tests and create the
22391  # libtool script then.
22392  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22393  if test -f "$ltmain_in"; then
22394    test -f Makefile && make "$ltmain"
22395  fi
22396fi
22397
22398
22399ac_ext=c
22400ac_cpp='$CPP $CPPFLAGS'
22401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22403ac_compiler_gnu=$ac_cv_c_compiler_gnu
22404
22405CC="$lt_save_CC"
22406
22407	;;
22408
22409      *)
22410	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22411echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22412   { (exit 1); exit 1; }; }
22413	;;
22414      esac
22415
22416      # Append the new tag name to the list of available tags.
22417      if test -n "$tagname" ; then
22418      available_tags="$available_tags $tagname"
22419    fi
22420    fi
22421  done
22422  IFS="$lt_save_ifs"
22423
22424  # Now substitute the updated list of available tags.
22425  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22426    mv "${ofile}T" "$ofile"
22427    chmod +x "$ofile"
22428  else
22429    rm -f "${ofile}T"
22430    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22431echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22432   { (exit 1); exit 1; }; }
22433  fi
22434fi
22435
22436
22437
22438# This can be used to rebuild libtool when needed
22439LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22440
22441# Always use our own libtool.
22442LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22443
22444# Prevent multiple expansion
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470        MKINSTALLDIRS=
22471  if test -n "$ac_aux_dir"; then
22472    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22473  fi
22474  if test -z "$MKINSTALLDIRS"; then
22475    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22476  fi
22477
22478
22479
22480
22481
22482        # Extract the first word of "msgfmt", so it can be a program name with args.
22483set dummy msgfmt; ac_word=$2
22484echo "$as_me:$LINENO: checking for $ac_word" >&5
22485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22486if test "${ac_cv_path_MSGFMT+set}" = set; then
22487  echo $ECHO_N "(cached) $ECHO_C" >&6
22488else
22489  case "$MSGFMT" in
22490  /*)
22491  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22492  ;;
22493  *)
22494  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22495  for ac_dir in $PATH; do
22496    test -z "$ac_dir" && ac_dir=.
22497    if test -f $ac_dir/$ac_word; then
22498      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22499     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22500	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22501	break
22502      fi
22503    fi
22504  done
22505  IFS="$ac_save_ifs"
22506  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22507  ;;
22508esac
22509fi
22510MSGFMT="$ac_cv_path_MSGFMT"
22511if test "$MSGFMT" != ":"; then
22512  echo "$as_me:$LINENO: result: $MSGFMT" >&5
22513echo "${ECHO_T}$MSGFMT" >&6
22514else
22515  echo "$as_me:$LINENO: result: no" >&5
22516echo "${ECHO_T}no" >&6
22517fi
22518
22519  # Extract the first word of "gmsgfmt", so it can be a program name with args.
22520set dummy gmsgfmt; ac_word=$2
22521echo "$as_me:$LINENO: checking for $ac_word" >&5
22522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22523if test "${ac_cv_path_GMSGFMT+set}" = set; then
22524  echo $ECHO_N "(cached) $ECHO_C" >&6
22525else
22526  case $GMSGFMT in
22527  [\\/]* | ?:[\\/]*)
22528  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22529  ;;
22530  *)
22531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22532for as_dir in $PATH
22533do
22534  IFS=$as_save_IFS
22535  test -z "$as_dir" && as_dir=.
22536  for ac_exec_ext in '' $ac_executable_extensions; do
22537  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22538    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22540    break 2
22541  fi
22542done
22543done
22544
22545  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22546  ;;
22547esac
22548fi
22549GMSGFMT=$ac_cv_path_GMSGFMT
22550
22551if test -n "$GMSGFMT"; then
22552  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22553echo "${ECHO_T}$GMSGFMT" >&6
22554else
22555  echo "$as_me:$LINENO: result: no" >&5
22556echo "${ECHO_T}no" >&6
22557fi
22558
22559
22560        # Extract the first word of "xgettext", so it can be a program name with args.
22561set dummy xgettext; ac_word=$2
22562echo "$as_me:$LINENO: checking for $ac_word" >&5
22563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22564if test "${ac_cv_path_XGETTEXT+set}" = set; then
22565  echo $ECHO_N "(cached) $ECHO_C" >&6
22566else
22567  case "$XGETTEXT" in
22568  /*)
22569  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22570  ;;
22571  *)
22572  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22573  for ac_dir in $PATH; do
22574    test -z "$ac_dir" && ac_dir=.
22575    if test -f $ac_dir/$ac_word; then
22576      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
22577     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22578	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22579	break
22580      fi
22581    fi
22582  done
22583  IFS="$ac_save_ifs"
22584  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22585  ;;
22586esac
22587fi
22588XGETTEXT="$ac_cv_path_XGETTEXT"
22589if test "$XGETTEXT" != ":"; then
22590  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22591echo "${ECHO_T}$XGETTEXT" >&6
22592else
22593  echo "$as_me:$LINENO: result: no" >&5
22594echo "${ECHO_T}no" >&6
22595fi
22596
22597    rm -f messages.po
22598
22599    # Extract the first word of "msgmerge", so it can be a program name with args.
22600set dummy msgmerge; ac_word=$2
22601echo "$as_me:$LINENO: checking for $ac_word" >&5
22602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22603if test "${ac_cv_path_MSGMERGE+set}" = set; then
22604  echo $ECHO_N "(cached) $ECHO_C" >&6
22605else
22606  case "$MSGMERGE" in
22607  /*)
22608  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22609  ;;
22610  *)
22611  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22612  for ac_dir in $PATH; do
22613    test -z "$ac_dir" && ac_dir=.
22614    if test -f $ac_dir/$ac_word; then
22615      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22616	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
22617	break
22618      fi
22619    fi
22620  done
22621  IFS="$ac_save_ifs"
22622  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22623  ;;
22624esac
22625fi
22626MSGMERGE="$ac_cv_path_MSGMERGE"
22627if test "$MSGMERGE" != ":"; then
22628  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22629echo "${ECHO_T}$MSGMERGE" >&6
22630else
22631  echo "$as_me:$LINENO: result: no" >&5
22632echo "${ECHO_T}no" >&6
22633fi
22634
22635
22636      if test "$GMSGFMT" != ":"; then
22637            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22638       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22639      : ;
22640    else
22641      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22642      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22643echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22644      GMSGFMT=":"
22645    fi
22646  fi
22647
22648      if test "$XGETTEXT" != ":"; then
22649            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
22650       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22651      : ;
22652    else
22653      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22654echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22655      XGETTEXT=":"
22656    fi
22657        rm -f messages.po
22658  fi
22659
22660            ac_config_commands="$ac_config_commands default-1"
22661
22662
22663
22664      if test "X$prefix" = "XNONE"; then
22665    acl_final_prefix="$ac_default_prefix"
22666  else
22667    acl_final_prefix="$prefix"
22668  fi
22669  if test "X$exec_prefix" = "XNONE"; then
22670    acl_final_exec_prefix='${prefix}'
22671  else
22672    acl_final_exec_prefix="$exec_prefix"
22673  fi
22674  acl_save_prefix="$prefix"
22675  prefix="$acl_final_prefix"
22676  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22677  prefix="$acl_save_prefix"
22678
22679
22680# Check whether --with-gnu-ld or --without-gnu-ld was given.
22681if test "${with_gnu_ld+set}" = set; then
22682  withval="$with_gnu_ld"
22683  test "$withval" = no || with_gnu_ld=yes
22684else
22685  with_gnu_ld=no
22686fi;
22687ac_prog=ld
22688if test "$GCC" = yes; then
22689  # Check if gcc -print-prog-name=ld gives a path.
22690  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22691echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22692  case $host in
22693  *-*-mingw*)
22694    # gcc leaves a trailing carriage return which upsets mingw
22695    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22696  *)
22697    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22698  esac
22699  case $ac_prog in
22700    # Accept absolute paths.
22701    [\\/]* | [A-Za-z]:[\\/]*)
22702      re_direlt='/[^/][^/]*/\.\./'
22703      # Canonicalize the path of ld
22704      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22705      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22706	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22707      done
22708      test -z "$LD" && LD="$ac_prog"
22709      ;;
22710  "")
22711    # If it fails, then pretend we aren't using GCC.
22712    ac_prog=ld
22713    ;;
22714  *)
22715    # If it is relative, then search for the first ld in PATH.
22716    with_gnu_ld=unknown
22717    ;;
22718  esac
22719elif test "$with_gnu_ld" = yes; then
22720  echo "$as_me:$LINENO: checking for GNU ld" >&5
22721echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22722else
22723  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22724echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22725fi
22726if test "${acl_cv_path_LD+set}" = set; then
22727  echo $ECHO_N "(cached) $ECHO_C" >&6
22728else
22729  if test -z "$LD"; then
22730  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22731  for ac_dir in $PATH; do
22732    test -z "$ac_dir" && ac_dir=.
22733    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22734      acl_cv_path_LD="$ac_dir/$ac_prog"
22735      # Check to see if the program is GNU ld.  I'd rather use --version,
22736      # but apparently some GNU ld's only accept -v.
22737      # Break only if it was the GNU/non-GNU ld that we prefer.
22738      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
22739	test "$with_gnu_ld" != no && break
22740      else
22741	test "$with_gnu_ld" != yes && break
22742      fi
22743    fi
22744  done
22745  IFS="$ac_save_ifs"
22746else
22747  acl_cv_path_LD="$LD" # Let the user override the test with a path.
22748fi
22749fi
22750
22751LD="$acl_cv_path_LD"
22752if test -n "$LD"; then
22753  echo "$as_me:$LINENO: result: $LD" >&5
22754echo "${ECHO_T}$LD" >&6
22755else
22756  echo "$as_me:$LINENO: result: no" >&5
22757echo "${ECHO_T}no" >&6
22758fi
22759test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22760echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22761   { (exit 1); exit 1; }; }
22762echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22763echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22764if test "${acl_cv_prog_gnu_ld+set}" = set; then
22765  echo $ECHO_N "(cached) $ECHO_C" >&6
22766else
22767  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22768if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
22769  acl_cv_prog_gnu_ld=yes
22770else
22771  acl_cv_prog_gnu_ld=no
22772fi
22773fi
22774echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22775echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22776with_gnu_ld=$acl_cv_prog_gnu_ld
22777
22778
22779
22780                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22781echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22782if test "${acl_cv_rpath+set}" = set; then
22783  echo $ECHO_N "(cached) $ECHO_C" >&6
22784else
22785
22786    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22787    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22788    . ./conftest.sh
22789    rm -f ./conftest.sh
22790    acl_cv_rpath=done
22791
22792fi
22793echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22794echo "${ECHO_T}$acl_cv_rpath" >&6
22795  wl="$acl_cv_wl"
22796  libext="$acl_cv_libext"
22797  shlibext="$acl_cv_shlibext"
22798  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22799  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22800  hardcode_direct="$acl_cv_hardcode_direct"
22801  hardcode_minus_L="$acl_cv_hardcode_minus_L"
22802  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
22803  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
22804    # Check whether --enable-rpath or --disable-rpath was given.
22805if test "${enable_rpath+set}" = set; then
22806  enableval="$enable_rpath"
22807  :
22808else
22809  enable_rpath=yes
22810fi;
22811
22812
22813
22814
22815
22816
22817
22818    use_additional=yes
22819
22820  acl_save_prefix="$prefix"
22821  prefix="$acl_final_prefix"
22822  acl_save_exec_prefix="$exec_prefix"
22823  exec_prefix="$acl_final_exec_prefix"
22824
22825    eval additional_includedir=\"$includedir\"
22826    eval additional_libdir=\"$libdir\"
22827
22828  exec_prefix="$acl_save_exec_prefix"
22829  prefix="$acl_save_prefix"
22830
22831
22832# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22833if test "${with_libiconv_prefix+set}" = set; then
22834  withval="$with_libiconv_prefix"
22835
22836    if test "X$withval" = "Xno"; then
22837      use_additional=no
22838    else
22839      if test "X$withval" = "X"; then
22840
22841  acl_save_prefix="$prefix"
22842  prefix="$acl_final_prefix"
22843  acl_save_exec_prefix="$exec_prefix"
22844  exec_prefix="$acl_final_exec_prefix"
22845
22846          eval additional_includedir=\"$includedir\"
22847          eval additional_libdir=\"$libdir\"
22848
22849  exec_prefix="$acl_save_exec_prefix"
22850  prefix="$acl_save_prefix"
22851
22852      else
22853        additional_includedir="$withval/include"
22854        additional_libdir="$withval/lib"
22855      fi
22856    fi
22857
22858fi;
22859      LIBICONV=
22860  LTLIBICONV=
22861  INCICONV=
22862  rpathdirs=
22863  ltrpathdirs=
22864  names_already_handled=
22865  names_next_round='iconv '
22866  while test -n "$names_next_round"; do
22867    names_this_round="$names_next_round"
22868    names_next_round=
22869    for name in $names_this_round; do
22870      already_handled=
22871      for n in $names_already_handled; do
22872        if test "$n" = "$name"; then
22873          already_handled=yes
22874          break
22875        fi
22876      done
22877      if test -z "$already_handled"; then
22878        names_already_handled="$names_already_handled $name"
22879                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22880        eval value=\"\$HAVE_LIB$uppername\"
22881        if test -n "$value"; then
22882          if test "$value" = yes; then
22883            eval value=\"\$LIB$uppername\"
22884            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22885            eval value=\"\$LTLIB$uppername\"
22886            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22887          else
22888                                    :
22889          fi
22890        else
22891                              found_dir=
22892          found_la=
22893          found_so=
22894          found_a=
22895          if test $use_additional = yes; then
22896            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22897              found_dir="$additional_libdir"
22898              found_so="$additional_libdir/lib$name.$shlibext"
22899              if test -f "$additional_libdir/lib$name.la"; then
22900                found_la="$additional_libdir/lib$name.la"
22901              fi
22902            else
22903              if test -f "$additional_libdir/lib$name.$libext"; then
22904                found_dir="$additional_libdir"
22905                found_a="$additional_libdir/lib$name.$libext"
22906                if test -f "$additional_libdir/lib$name.la"; then
22907                  found_la="$additional_libdir/lib$name.la"
22908                fi
22909              fi
22910            fi
22911          fi
22912          if test "X$found_dir" = "X"; then
22913            for x in $LDFLAGS $LTLIBICONV; do
22914
22915  acl_save_prefix="$prefix"
22916  prefix="$acl_final_prefix"
22917  acl_save_exec_prefix="$exec_prefix"
22918  exec_prefix="$acl_final_exec_prefix"
22919  eval x=\"$x\"
22920  exec_prefix="$acl_save_exec_prefix"
22921  prefix="$acl_save_prefix"
22922
22923              case "$x" in
22924                -L*)
22925                  dir=`echo "X$x" | sed -e 's/^X-L//'`
22926                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22927                    found_dir="$dir"
22928                    found_so="$dir/lib$name.$shlibext"
22929                    if test -f "$dir/lib$name.la"; then
22930                      found_la="$dir/lib$name.la"
22931                    fi
22932                  else
22933                    if test -f "$dir/lib$name.$libext"; then
22934                      found_dir="$dir"
22935                      found_a="$dir/lib$name.$libext"
22936                      if test -f "$dir/lib$name.la"; then
22937                        found_la="$dir/lib$name.la"
22938                      fi
22939                    fi
22940                  fi
22941                  ;;
22942              esac
22943              if test "X$found_dir" != "X"; then
22944                break
22945              fi
22946            done
22947          fi
22948          if test "X$found_dir" != "X"; then
22949                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22950            if test "X$found_so" != "X"; then
22951                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22952                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22953              else
22954                                                                                haveit=
22955                for x in $ltrpathdirs; do
22956                  if test "X$x" = "X$found_dir"; then
22957                    haveit=yes
22958                    break
22959                  fi
22960                done
22961                if test -z "$haveit"; then
22962                  ltrpathdirs="$ltrpathdirs $found_dir"
22963                fi
22964                                if test "$hardcode_direct" = yes; then
22965                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22966                else
22967                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22968                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22969                                                            haveit=
22970                    for x in $rpathdirs; do
22971                      if test "X$x" = "X$found_dir"; then
22972                        haveit=yes
22973                        break
22974                      fi
22975                    done
22976                    if test -z "$haveit"; then
22977                      rpathdirs="$rpathdirs $found_dir"
22978                    fi
22979                  else
22980                                                                                haveit=
22981                    for x in $LDFLAGS $LIBICONV; do
22982
22983  acl_save_prefix="$prefix"
22984  prefix="$acl_final_prefix"
22985  acl_save_exec_prefix="$exec_prefix"
22986  exec_prefix="$acl_final_exec_prefix"
22987  eval x=\"$x\"
22988  exec_prefix="$acl_save_exec_prefix"
22989  prefix="$acl_save_prefix"
22990
22991                      if test "X$x" = "X-L$found_dir"; then
22992                        haveit=yes
22993                        break
22994                      fi
22995                    done
22996                    if test -z "$haveit"; then
22997                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22998                    fi
22999                    if test "$hardcode_minus_L" != no; then
23000                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23001                    else
23002                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23003                    fi
23004                  fi
23005                fi
23006              fi
23007            else
23008              if test "X$found_a" != "X"; then
23009                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
23010              else
23011                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
23012              fi
23013            fi
23014                        additional_includedir=
23015            case "$found_dir" in
23016              */lib | */lib/)
23017                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23018                additional_includedir="$basedir/include"
23019                ;;
23020            esac
23021            if test "X$additional_includedir" != "X"; then
23022                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23023                haveit=
23024                if test "X$additional_includedir" = "X/usr/local/include"; then
23025                  if test -n "$GCC"; then
23026                    case $host_os in
23027                      linux*) haveit=yes;;
23028                    esac
23029                  fi
23030                fi
23031                if test -z "$haveit"; then
23032                  for x in $CPPFLAGS $INCICONV; do
23033
23034  acl_save_prefix="$prefix"
23035  prefix="$acl_final_prefix"
23036  acl_save_exec_prefix="$exec_prefix"
23037  exec_prefix="$acl_final_exec_prefix"
23038  eval x=\"$x\"
23039  exec_prefix="$acl_save_exec_prefix"
23040  prefix="$acl_save_prefix"
23041
23042                    if test "X$x" = "X-I$additional_includedir"; then
23043                      haveit=yes
23044                      break
23045                    fi
23046                  done
23047                  if test -z "$haveit"; then
23048                    if test -d "$additional_includedir"; then
23049                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23050                    fi
23051                  fi
23052                fi
23053              fi
23054            fi
23055                        if test -n "$found_la"; then
23056                                                        save_libdir="$libdir"
23057              case "$found_la" in
23058                */* | *\\*) . "$found_la" ;;
23059                *) . "./$found_la" ;;
23060              esac
23061              libdir="$save_libdir"
23062                            for dep in $dependency_libs; do
23063                case "$dep" in
23064                  -L*)
23065                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23066                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
23067                      haveit=
23068                      if test "X$additional_libdir" = "X/usr/local/lib"; then
23069                        if test -n "$GCC"; then
23070                          case $host_os in
23071                            linux*) haveit=yes;;
23072                          esac
23073                        fi
23074                      fi
23075                      if test -z "$haveit"; then
23076                        haveit=
23077                        for x in $LDFLAGS $LIBICONV; do
23078
23079  acl_save_prefix="$prefix"
23080  prefix="$acl_final_prefix"
23081  acl_save_exec_prefix="$exec_prefix"
23082  exec_prefix="$acl_final_exec_prefix"
23083  eval x=\"$x\"
23084  exec_prefix="$acl_save_exec_prefix"
23085  prefix="$acl_save_prefix"
23086
23087                          if test "X$x" = "X-L$additional_libdir"; then
23088                            haveit=yes
23089                            break
23090                          fi
23091                        done
23092                        if test -z "$haveit"; then
23093                          if test -d "$additional_libdir"; then
23094                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23095                          fi
23096                        fi
23097                        haveit=
23098                        for x in $LDFLAGS $LTLIBICONV; do
23099
23100  acl_save_prefix="$prefix"
23101  prefix="$acl_final_prefix"
23102  acl_save_exec_prefix="$exec_prefix"
23103  exec_prefix="$acl_final_exec_prefix"
23104  eval x=\"$x\"
23105  exec_prefix="$acl_save_exec_prefix"
23106  prefix="$acl_save_prefix"
23107
23108                          if test "X$x" = "X-L$additional_libdir"; then
23109                            haveit=yes
23110                            break
23111                          fi
23112                        done
23113                        if test -z "$haveit"; then
23114                          if test -d "$additional_libdir"; then
23115                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23116                          fi
23117                        fi
23118                      fi
23119                    fi
23120                    ;;
23121                  -R*)
23122                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
23123                    if test "$enable_rpath" != no; then
23124                                                                  haveit=
23125                      for x in $rpathdirs; do
23126                        if test "X$x" = "X$dir"; then
23127                          haveit=yes
23128                          break
23129                        fi
23130                      done
23131                      if test -z "$haveit"; then
23132                        rpathdirs="$rpathdirs $dir"
23133                      fi
23134                                                                  haveit=
23135                      for x in $ltrpathdirs; do
23136                        if test "X$x" = "X$dir"; then
23137                          haveit=yes
23138                          break
23139                        fi
23140                      done
23141                      if test -z "$haveit"; then
23142                        ltrpathdirs="$ltrpathdirs $dir"
23143                      fi
23144                    fi
23145                    ;;
23146                  -l*)
23147                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23148                    ;;
23149                  *.la)
23150                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23151                    ;;
23152                  *)
23153                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
23154                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23155                    ;;
23156                esac
23157              done
23158            fi
23159          else
23160                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23161            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23162          fi
23163        fi
23164      fi
23165    done
23166  done
23167  if test "X$rpathdirs" != "X"; then
23168    if test -n "$hardcode_libdir_separator"; then
23169                        alldirs=
23170      for found_dir in $rpathdirs; do
23171        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23172      done
23173            acl_save_libdir="$libdir"
23174      libdir="$alldirs"
23175      eval flag=\"$hardcode_libdir_flag_spec\"
23176      libdir="$acl_save_libdir"
23177      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23178    else
23179            for found_dir in $rpathdirs; do
23180        acl_save_libdir="$libdir"
23181        libdir="$found_dir"
23182        eval flag=\"$hardcode_libdir_flag_spec\"
23183        libdir="$acl_save_libdir"
23184        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23185      done
23186    fi
23187  fi
23188  if test "X$ltrpathdirs" != "X"; then
23189            for found_dir in $ltrpathdirs; do
23190      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23191    done
23192  fi
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23211echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
23212    # Check whether --enable-nls or --disable-nls was given.
23213if test "${enable_nls+set}" = set; then
23214  enableval="$enable_nls"
23215  USE_NLS=$enableval
23216else
23217  USE_NLS=yes
23218fi;
23219  echo "$as_me:$LINENO: result: $USE_NLS" >&5
23220echo "${ECHO_T}$USE_NLS" >&6
23221
23222
23223
23224  LIBINTL=
23225  LTLIBINTL=
23226  POSUB=
23227
23228    if test "$USE_NLS" = "yes"; then
23229    gt_use_preinstalled_gnugettext=no
23230
23231
23232
23233
23234
23235
23236        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23237echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
23238if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23239  echo $ECHO_N "(cached) $ECHO_C" >&6
23240else
23241  cat >conftest.$ac_ext <<_ACEOF
23242/* confdefs.h.  */
23243_ACEOF
23244cat confdefs.h >>conftest.$ac_ext
23245cat >>conftest.$ac_ext <<_ACEOF
23246/* end confdefs.h.  */
23247#include <libintl.h>
23248extern int _nl_msg_cat_cntr;
23249extern int *_nl_domain_bindings;
23250int
23251main ()
23252{
23253bindtextdomain ("", "");
23254return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23255  ;
23256  return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext conftest$ac_exeext
23260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261  (eval $ac_link) 2>conftest.er1
23262  ac_status=$?
23263  grep -v '^ *+' conftest.er1 >conftest.err
23264  rm -f conftest.er1
23265  cat conftest.err >&5
23266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267  (exit $ac_status); } &&
23268	 { ac_try='test -z "$ac_c_werror_flag"
23269			 || test ! -s conftest.err'
23270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271  (eval $ac_try) 2>&5
23272  ac_status=$?
23273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274  (exit $ac_status); }; } &&
23275	 { ac_try='test -s conftest$ac_exeext'
23276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277  (eval $ac_try) 2>&5
23278  ac_status=$?
23279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280  (exit $ac_status); }; }; then
23281  gt_cv_func_gnugettext1_libc=yes
23282else
23283  echo "$as_me: failed program was:" >&5
23284sed 's/^/| /' conftest.$ac_ext >&5
23285
23286gt_cv_func_gnugettext1_libc=no
23287fi
23288rm -f conftest.err conftest.$ac_objext \
23289      conftest$ac_exeext conftest.$ac_ext
23290fi
23291echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23292echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
23293
23294        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23295
23296
23297
23298
23299
23300          am_save_CPPFLAGS="$CPPFLAGS"
23301
23302  for element in $INCICONV; do
23303    haveit=
23304    for x in $CPPFLAGS; do
23305
23306  acl_save_prefix="$prefix"
23307  prefix="$acl_final_prefix"
23308  acl_save_exec_prefix="$exec_prefix"
23309  exec_prefix="$acl_final_exec_prefix"
23310  eval x=\"$x\"
23311  exec_prefix="$acl_save_exec_prefix"
23312  prefix="$acl_save_prefix"
23313
23314      if test "X$x" = "X$element"; then
23315        haveit=yes
23316        break
23317      fi
23318    done
23319    if test -z "$haveit"; then
23320      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23321    fi
23322  done
23323
23324
23325  echo "$as_me:$LINENO: checking for iconv" >&5
23326echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23327if test "${am_cv_func_iconv+set}" = set; then
23328  echo $ECHO_N "(cached) $ECHO_C" >&6
23329else
23330
23331    am_cv_func_iconv="no, consider installing GNU libiconv"
23332    am_cv_lib_iconv=no
23333    cat >conftest.$ac_ext <<_ACEOF
23334/* confdefs.h.  */
23335_ACEOF
23336cat confdefs.h >>conftest.$ac_ext
23337cat >>conftest.$ac_ext <<_ACEOF
23338/* end confdefs.h.  */
23339#include <stdlib.h>
23340#include <iconv.h>
23341int
23342main ()
23343{
23344iconv_t cd = iconv_open("","");
23345       iconv(cd,NULL,NULL,NULL,NULL);
23346       iconv_close(cd);
23347  ;
23348  return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext conftest$ac_exeext
23352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23353  (eval $ac_link) 2>conftest.er1
23354  ac_status=$?
23355  grep -v '^ *+' conftest.er1 >conftest.err
23356  rm -f conftest.er1
23357  cat conftest.err >&5
23358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359  (exit $ac_status); } &&
23360	 { ac_try='test -z "$ac_c_werror_flag"
23361			 || test ! -s conftest.err'
23362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363  (eval $ac_try) 2>&5
23364  ac_status=$?
23365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366  (exit $ac_status); }; } &&
23367	 { ac_try='test -s conftest$ac_exeext'
23368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369  (eval $ac_try) 2>&5
23370  ac_status=$?
23371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372  (exit $ac_status); }; }; then
23373  am_cv_func_iconv=yes
23374else
23375  echo "$as_me: failed program was:" >&5
23376sed 's/^/| /' conftest.$ac_ext >&5
23377
23378fi
23379rm -f conftest.err conftest.$ac_objext \
23380      conftest$ac_exeext conftest.$ac_ext
23381    if test "$am_cv_func_iconv" != yes; then
23382      am_save_LIBS="$LIBS"
23383      LIBS="$LIBS $LIBICONV"
23384      cat >conftest.$ac_ext <<_ACEOF
23385/* confdefs.h.  */
23386_ACEOF
23387cat confdefs.h >>conftest.$ac_ext
23388cat >>conftest.$ac_ext <<_ACEOF
23389/* end confdefs.h.  */
23390#include <stdlib.h>
23391#include <iconv.h>
23392int
23393main ()
23394{
23395iconv_t cd = iconv_open("","");
23396         iconv(cd,NULL,NULL,NULL,NULL);
23397         iconv_close(cd);
23398  ;
23399  return 0;
23400}
23401_ACEOF
23402rm -f conftest.$ac_objext conftest$ac_exeext
23403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23404  (eval $ac_link) 2>conftest.er1
23405  ac_status=$?
23406  grep -v '^ *+' conftest.er1 >conftest.err
23407  rm -f conftest.er1
23408  cat conftest.err >&5
23409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410  (exit $ac_status); } &&
23411	 { ac_try='test -z "$ac_c_werror_flag"
23412			 || test ! -s conftest.err'
23413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414  (eval $ac_try) 2>&5
23415  ac_status=$?
23416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417  (exit $ac_status); }; } &&
23418	 { ac_try='test -s conftest$ac_exeext'
23419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420  (eval $ac_try) 2>&5
23421  ac_status=$?
23422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423  (exit $ac_status); }; }; then
23424  am_cv_lib_iconv=yes
23425        am_cv_func_iconv=yes
23426else
23427  echo "$as_me: failed program was:" >&5
23428sed 's/^/| /' conftest.$ac_ext >&5
23429
23430fi
23431rm -f conftest.err conftest.$ac_objext \
23432      conftest$ac_exeext conftest.$ac_ext
23433      LIBS="$am_save_LIBS"
23434    fi
23435
23436fi
23437echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23438echo "${ECHO_T}$am_cv_func_iconv" >&6
23439  if test "$am_cv_func_iconv" = yes; then
23440
23441cat >>confdefs.h <<\_ACEOF
23442#define HAVE_ICONV 1
23443_ACEOF
23444
23445  fi
23446  if test "$am_cv_lib_iconv" = yes; then
23447    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23448echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23449    echo "$as_me:$LINENO: result: $LIBICONV" >&5
23450echo "${ECHO_T}$LIBICONV" >&6
23451  else
23452            CPPFLAGS="$am_save_CPPFLAGS"
23453    LIBICONV=
23454    LTLIBICONV=
23455  fi
23456
23457
23458
23459
23460
23461
23462    use_additional=yes
23463
23464  acl_save_prefix="$prefix"
23465  prefix="$acl_final_prefix"
23466  acl_save_exec_prefix="$exec_prefix"
23467  exec_prefix="$acl_final_exec_prefix"
23468
23469    eval additional_includedir=\"$includedir\"
23470    eval additional_libdir=\"$libdir\"
23471
23472  exec_prefix="$acl_save_exec_prefix"
23473  prefix="$acl_save_prefix"
23474
23475
23476# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23477if test "${with_libintl_prefix+set}" = set; then
23478  withval="$with_libintl_prefix"
23479
23480    if test "X$withval" = "Xno"; then
23481      use_additional=no
23482    else
23483      if test "X$withval" = "X"; then
23484
23485  acl_save_prefix="$prefix"
23486  prefix="$acl_final_prefix"
23487  acl_save_exec_prefix="$exec_prefix"
23488  exec_prefix="$acl_final_exec_prefix"
23489
23490          eval additional_includedir=\"$includedir\"
23491          eval additional_libdir=\"$libdir\"
23492
23493  exec_prefix="$acl_save_exec_prefix"
23494  prefix="$acl_save_prefix"
23495
23496      else
23497        additional_includedir="$withval/include"
23498        additional_libdir="$withval/lib"
23499      fi
23500    fi
23501
23502fi;
23503      LIBINTL=
23504  LTLIBINTL=
23505  INCINTL=
23506  rpathdirs=
23507  ltrpathdirs=
23508  names_already_handled=
23509  names_next_round='intl '
23510  while test -n "$names_next_round"; do
23511    names_this_round="$names_next_round"
23512    names_next_round=
23513    for name in $names_this_round; do
23514      already_handled=
23515      for n in $names_already_handled; do
23516        if test "$n" = "$name"; then
23517          already_handled=yes
23518          break
23519        fi
23520      done
23521      if test -z "$already_handled"; then
23522        names_already_handled="$names_already_handled $name"
23523                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23524        eval value=\"\$HAVE_LIB$uppername\"
23525        if test -n "$value"; then
23526          if test "$value" = yes; then
23527            eval value=\"\$LIB$uppername\"
23528            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23529            eval value=\"\$LTLIB$uppername\"
23530            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23531          else
23532                                    :
23533          fi
23534        else
23535                              found_dir=
23536          found_la=
23537          found_so=
23538          found_a=
23539          if test $use_additional = yes; then
23540            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23541              found_dir="$additional_libdir"
23542              found_so="$additional_libdir/lib$name.$shlibext"
23543              if test -f "$additional_libdir/lib$name.la"; then
23544                found_la="$additional_libdir/lib$name.la"
23545              fi
23546            else
23547              if test -f "$additional_libdir/lib$name.$libext"; then
23548                found_dir="$additional_libdir"
23549                found_a="$additional_libdir/lib$name.$libext"
23550                if test -f "$additional_libdir/lib$name.la"; then
23551                  found_la="$additional_libdir/lib$name.la"
23552                fi
23553              fi
23554            fi
23555          fi
23556          if test "X$found_dir" = "X"; then
23557            for x in $LDFLAGS $LTLIBINTL; do
23558
23559  acl_save_prefix="$prefix"
23560  prefix="$acl_final_prefix"
23561  acl_save_exec_prefix="$exec_prefix"
23562  exec_prefix="$acl_final_exec_prefix"
23563  eval x=\"$x\"
23564  exec_prefix="$acl_save_exec_prefix"
23565  prefix="$acl_save_prefix"
23566
23567              case "$x" in
23568                -L*)
23569                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23570                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23571                    found_dir="$dir"
23572                    found_so="$dir/lib$name.$shlibext"
23573                    if test -f "$dir/lib$name.la"; then
23574                      found_la="$dir/lib$name.la"
23575                    fi
23576                  else
23577                    if test -f "$dir/lib$name.$libext"; then
23578                      found_dir="$dir"
23579                      found_a="$dir/lib$name.$libext"
23580                      if test -f "$dir/lib$name.la"; then
23581                        found_la="$dir/lib$name.la"
23582                      fi
23583                    fi
23584                  fi
23585                  ;;
23586              esac
23587              if test "X$found_dir" != "X"; then
23588                break
23589              fi
23590            done
23591          fi
23592          if test "X$found_dir" != "X"; then
23593                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23594            if test "X$found_so" != "X"; then
23595                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23596                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23597              else
23598                                                                                haveit=
23599                for x in $ltrpathdirs; do
23600                  if test "X$x" = "X$found_dir"; then
23601                    haveit=yes
23602                    break
23603                  fi
23604                done
23605                if test -z "$haveit"; then
23606                  ltrpathdirs="$ltrpathdirs $found_dir"
23607                fi
23608                                if test "$hardcode_direct" = yes; then
23609                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23610                else
23611                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23612                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23613                                                            haveit=
23614                    for x in $rpathdirs; do
23615                      if test "X$x" = "X$found_dir"; then
23616                        haveit=yes
23617                        break
23618                      fi
23619                    done
23620                    if test -z "$haveit"; then
23621                      rpathdirs="$rpathdirs $found_dir"
23622                    fi
23623                  else
23624                                                                                haveit=
23625                    for x in $LDFLAGS $LIBINTL; do
23626
23627  acl_save_prefix="$prefix"
23628  prefix="$acl_final_prefix"
23629  acl_save_exec_prefix="$exec_prefix"
23630  exec_prefix="$acl_final_exec_prefix"
23631  eval x=\"$x\"
23632  exec_prefix="$acl_save_exec_prefix"
23633  prefix="$acl_save_prefix"
23634
23635                      if test "X$x" = "X-L$found_dir"; then
23636                        haveit=yes
23637                        break
23638                      fi
23639                    done
23640                    if test -z "$haveit"; then
23641                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23642                    fi
23643                    if test "$hardcode_minus_L" != no; then
23644                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23645                    else
23646                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23647                    fi
23648                  fi
23649                fi
23650              fi
23651            else
23652              if test "X$found_a" != "X"; then
23653                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23654              else
23655                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23656              fi
23657            fi
23658                        additional_includedir=
23659            case "$found_dir" in
23660              */lib | */lib/)
23661                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23662                additional_includedir="$basedir/include"
23663                ;;
23664            esac
23665            if test "X$additional_includedir" != "X"; then
23666                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23667                haveit=
23668                if test "X$additional_includedir" = "X/usr/local/include"; then
23669                  if test -n "$GCC"; then
23670                    case $host_os in
23671                      linux*) haveit=yes;;
23672                    esac
23673                  fi
23674                fi
23675                if test -z "$haveit"; then
23676                  for x in $CPPFLAGS $INCINTL; do
23677
23678  acl_save_prefix="$prefix"
23679  prefix="$acl_final_prefix"
23680  acl_save_exec_prefix="$exec_prefix"
23681  exec_prefix="$acl_final_exec_prefix"
23682  eval x=\"$x\"
23683  exec_prefix="$acl_save_exec_prefix"
23684  prefix="$acl_save_prefix"
23685
23686                    if test "X$x" = "X-I$additional_includedir"; then
23687                      haveit=yes
23688                      break
23689                    fi
23690                  done
23691                  if test -z "$haveit"; then
23692                    if test -d "$additional_includedir"; then
23693                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23694                    fi
23695                  fi
23696                fi
23697              fi
23698            fi
23699                        if test -n "$found_la"; then
23700                                                        save_libdir="$libdir"
23701              case "$found_la" in
23702                */* | *\\*) . "$found_la" ;;
23703                *) . "./$found_la" ;;
23704              esac
23705              libdir="$save_libdir"
23706                            for dep in $dependency_libs; do
23707                case "$dep" in
23708                  -L*)
23709                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23710                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
23711                      haveit=
23712                      if test "X$additional_libdir" = "X/usr/local/lib"; then
23713                        if test -n "$GCC"; then
23714                          case $host_os in
23715                            linux*) haveit=yes;;
23716                          esac
23717                        fi
23718                      fi
23719                      if test -z "$haveit"; then
23720                        haveit=
23721                        for x in $LDFLAGS $LIBINTL; do
23722
23723  acl_save_prefix="$prefix"
23724  prefix="$acl_final_prefix"
23725  acl_save_exec_prefix="$exec_prefix"
23726  exec_prefix="$acl_final_exec_prefix"
23727  eval x=\"$x\"
23728  exec_prefix="$acl_save_exec_prefix"
23729  prefix="$acl_save_prefix"
23730
23731                          if test "X$x" = "X-L$additional_libdir"; then
23732                            haveit=yes
23733                            break
23734                          fi
23735                        done
23736                        if test -z "$haveit"; then
23737                          if test -d "$additional_libdir"; then
23738                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23739                          fi
23740                        fi
23741                        haveit=
23742                        for x in $LDFLAGS $LTLIBINTL; do
23743
23744  acl_save_prefix="$prefix"
23745  prefix="$acl_final_prefix"
23746  acl_save_exec_prefix="$exec_prefix"
23747  exec_prefix="$acl_final_exec_prefix"
23748  eval x=\"$x\"
23749  exec_prefix="$acl_save_exec_prefix"
23750  prefix="$acl_save_prefix"
23751
23752                          if test "X$x" = "X-L$additional_libdir"; then
23753                            haveit=yes
23754                            break
23755                          fi
23756                        done
23757                        if test -z "$haveit"; then
23758                          if test -d "$additional_libdir"; then
23759                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23760                          fi
23761                        fi
23762                      fi
23763                    fi
23764                    ;;
23765                  -R*)
23766                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
23767                    if test "$enable_rpath" != no; then
23768                                                                  haveit=
23769                      for x in $rpathdirs; do
23770                        if test "X$x" = "X$dir"; then
23771                          haveit=yes
23772                          break
23773                        fi
23774                      done
23775                      if test -z "$haveit"; then
23776                        rpathdirs="$rpathdirs $dir"
23777                      fi
23778                                                                  haveit=
23779                      for x in $ltrpathdirs; do
23780                        if test "X$x" = "X$dir"; then
23781                          haveit=yes
23782                          break
23783                        fi
23784                      done
23785                      if test -z "$haveit"; then
23786                        ltrpathdirs="$ltrpathdirs $dir"
23787                      fi
23788                    fi
23789                    ;;
23790                  -l*)
23791                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23792                    ;;
23793                  *.la)
23794                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23795                    ;;
23796                  *)
23797                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23798                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23799                    ;;
23800                esac
23801              done
23802            fi
23803          else
23804                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23805            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23806          fi
23807        fi
23808      fi
23809    done
23810  done
23811  if test "X$rpathdirs" != "X"; then
23812    if test -n "$hardcode_libdir_separator"; then
23813                        alldirs=
23814      for found_dir in $rpathdirs; do
23815        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23816      done
23817            acl_save_libdir="$libdir"
23818      libdir="$alldirs"
23819      eval flag=\"$hardcode_libdir_flag_spec\"
23820      libdir="$acl_save_libdir"
23821      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23822    else
23823            for found_dir in $rpathdirs; do
23824        acl_save_libdir="$libdir"
23825        libdir="$found_dir"
23826        eval flag=\"$hardcode_libdir_flag_spec\"
23827        libdir="$acl_save_libdir"
23828        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23829      done
23830    fi
23831  fi
23832  if test "X$ltrpathdirs" != "X"; then
23833            for found_dir in $ltrpathdirs; do
23834      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23835    done
23836  fi
23837
23838          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23839echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23840if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23841  echo $ECHO_N "(cached) $ECHO_C" >&6
23842else
23843  gt_save_CPPFLAGS="$CPPFLAGS"
23844            CPPFLAGS="$CPPFLAGS $INCINTL"
23845            gt_save_LIBS="$LIBS"
23846            LIBS="$LIBS $LIBINTL"
23847                        cat >conftest.$ac_ext <<_ACEOF
23848/* confdefs.h.  */
23849_ACEOF
23850cat confdefs.h >>conftest.$ac_ext
23851cat >>conftest.$ac_ext <<_ACEOF
23852/* end confdefs.h.  */
23853#include <libintl.h>
23854extern int _nl_msg_cat_cntr;
23855extern
23856#ifdef __cplusplus
23857"C"
23858#endif
23859const char *_nl_expand_alias ();
23860int
23861main ()
23862{
23863bindtextdomain ("", "");
23864return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23865  ;
23866  return 0;
23867}
23868_ACEOF
23869rm -f conftest.$ac_objext conftest$ac_exeext
23870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23871  (eval $ac_link) 2>conftest.er1
23872  ac_status=$?
23873  grep -v '^ *+' conftest.er1 >conftest.err
23874  rm -f conftest.er1
23875  cat conftest.err >&5
23876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877  (exit $ac_status); } &&
23878	 { ac_try='test -z "$ac_c_werror_flag"
23879			 || test ! -s conftest.err'
23880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881  (eval $ac_try) 2>&5
23882  ac_status=$?
23883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884  (exit $ac_status); }; } &&
23885	 { ac_try='test -s conftest$ac_exeext'
23886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887  (eval $ac_try) 2>&5
23888  ac_status=$?
23889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890  (exit $ac_status); }; }; then
23891  gt_cv_func_gnugettext1_libintl=yes
23892else
23893  echo "$as_me: failed program was:" >&5
23894sed 's/^/| /' conftest.$ac_ext >&5
23895
23896gt_cv_func_gnugettext1_libintl=no
23897fi
23898rm -f conftest.err conftest.$ac_objext \
23899      conftest$ac_exeext conftest.$ac_ext
23900                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23901              LIBS="$LIBS $LIBICONV"
23902              cat >conftest.$ac_ext <<_ACEOF
23903/* confdefs.h.  */
23904_ACEOF
23905cat confdefs.h >>conftest.$ac_ext
23906cat >>conftest.$ac_ext <<_ACEOF
23907/* end confdefs.h.  */
23908#include <libintl.h>
23909extern int _nl_msg_cat_cntr;
23910extern
23911#ifdef __cplusplus
23912"C"
23913#endif
23914const char *_nl_expand_alias ();
23915int
23916main ()
23917{
23918bindtextdomain ("", "");
23919return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23920  ;
23921  return 0;
23922}
23923_ACEOF
23924rm -f conftest.$ac_objext conftest$ac_exeext
23925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23926  (eval $ac_link) 2>conftest.er1
23927  ac_status=$?
23928  grep -v '^ *+' conftest.er1 >conftest.err
23929  rm -f conftest.er1
23930  cat conftest.err >&5
23931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932  (exit $ac_status); } &&
23933	 { ac_try='test -z "$ac_c_werror_flag"
23934			 || test ! -s conftest.err'
23935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936  (eval $ac_try) 2>&5
23937  ac_status=$?
23938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939  (exit $ac_status); }; } &&
23940	 { ac_try='test -s conftest$ac_exeext'
23941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942  (eval $ac_try) 2>&5
23943  ac_status=$?
23944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945  (exit $ac_status); }; }; then
23946  LIBINTL="$LIBINTL $LIBICONV"
23947                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23948                gt_cv_func_gnugettext1_libintl=yes
23949
23950else
23951  echo "$as_me: failed program was:" >&5
23952sed 's/^/| /' conftest.$ac_ext >&5
23953
23954fi
23955rm -f conftest.err conftest.$ac_objext \
23956      conftest$ac_exeext conftest.$ac_ext
23957            fi
23958            CPPFLAGS="$gt_save_CPPFLAGS"
23959            LIBS="$gt_save_LIBS"
23960fi
23961echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23962echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
23963        fi
23964
23965                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23966           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23967                && test "$PACKAGE" != gettext; }; then
23968          gt_use_preinstalled_gnugettext=yes
23969        else
23970                    LIBINTL=
23971          LTLIBINTL=
23972          INCINTL=
23973        fi
23974
23975
23976
23977    if test "$gt_use_preinstalled_gnugettext" = "yes" \
23978       || test "$nls_cv_use_gnu_gettext" = "yes"; then
23979
23980cat >>confdefs.h <<\_ACEOF
23981#define ENABLE_NLS 1
23982_ACEOF
23983
23984    else
23985      USE_NLS=no
23986    fi
23987  fi
23988
23989  if test "$USE_NLS" = "yes"; then
23990
23991    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23992      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23993        echo "$as_me:$LINENO: checking how to link with libintl" >&5
23994echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23995        echo "$as_me:$LINENO: result: $LIBINTL" >&5
23996echo "${ECHO_T}$LIBINTL" >&6
23997
23998  for element in $INCINTL; do
23999    haveit=
24000    for x in $CPPFLAGS; do
24001
24002  acl_save_prefix="$prefix"
24003  prefix="$acl_final_prefix"
24004  acl_save_exec_prefix="$exec_prefix"
24005  exec_prefix="$acl_final_exec_prefix"
24006  eval x=\"$x\"
24007  exec_prefix="$acl_save_exec_prefix"
24008  prefix="$acl_save_prefix"
24009
24010      if test "X$x" = "X$element"; then
24011        haveit=yes
24012        break
24013      fi
24014    done
24015    if test -z "$haveit"; then
24016      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24017    fi
24018  done
24019
24020      fi
24021
24022
24023cat >>confdefs.h <<\_ACEOF
24024#define HAVE_GETTEXT 1
24025_ACEOF
24026
24027
24028cat >>confdefs.h <<\_ACEOF
24029#define HAVE_DCGETTEXT 1
24030_ACEOF
24031
24032    fi
24033
24034        POSUB=po
24035  fi
24036
24037
24038
24039    INTLLIBS="$LIBINTL"
24040
24041
24042
24043
24044
24045
24046
24047
24048echo "$as_me:$LINENO: checking for X" >&5
24049echo $ECHO_N "checking for X... $ECHO_C" >&6
24050
24051
24052# Check whether --with-x or --without-x was given.
24053if test "${with_x+set}" = set; then
24054  withval="$with_x"
24055
24056fi;
24057# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24058if test "x$with_x" = xno; then
24059  # The user explicitly disabled X.
24060  have_x=disabled
24061else
24062  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24063    # Both variables are already set.
24064    have_x=yes
24065  else
24066    if test "${ac_cv_have_x+set}" = set; then
24067  echo $ECHO_N "(cached) $ECHO_C" >&6
24068else
24069  # One or both of the vars are not set, and there is no cached value.
24070ac_x_includes=no ac_x_libraries=no
24071rm -fr conftest.dir
24072if mkdir conftest.dir; then
24073  cd conftest.dir
24074  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24075  cat >Imakefile <<'_ACEOF'
24076acfindx:
24077	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24078_ACEOF
24079  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24080    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24081    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24082    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24083    for ac_extension in a so sl; do
24084      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24085	 test -f $ac_im_libdir/libX11.$ac_extension; then
24086	ac_im_usrlibdir=$ac_im_libdir; break
24087      fi
24088    done
24089    # Screen out bogus values from the imake configuration.  They are
24090    # bogus both because they are the default anyway, and because
24091    # using them would break gcc on systems where it needs fixed includes.
24092    case $ac_im_incroot in
24093	/usr/include) ;;
24094	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24095    esac
24096    case $ac_im_usrlibdir in
24097	/usr/lib | /lib) ;;
24098	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24099    esac
24100  fi
24101  cd ..
24102  rm -fr conftest.dir
24103fi
24104
24105# Standard set of common directories for X headers.
24106# Check X11 before X11Rn because it is often a symlink to the current release.
24107ac_x_header_dirs='
24108/usr/X11/include
24109/usr/X11R6/include
24110/usr/X11R5/include
24111/usr/X11R4/include
24112
24113/usr/include/X11
24114/usr/include/X11R6
24115/usr/include/X11R5
24116/usr/include/X11R4
24117
24118/usr/local/X11/include
24119/usr/local/X11R6/include
24120/usr/local/X11R5/include
24121/usr/local/X11R4/include
24122
24123/usr/local/include/X11
24124/usr/local/include/X11R6
24125/usr/local/include/X11R5
24126/usr/local/include/X11R4
24127
24128/usr/X386/include
24129/usr/x386/include
24130/usr/XFree86/include/X11
24131
24132/usr/include
24133/usr/local/include
24134/usr/unsupported/include
24135/usr/athena/include
24136/usr/local/x11r5/include
24137/usr/lpp/Xamples/include
24138
24139/usr/openwin/include
24140/usr/openwin/share/include'
24141
24142if test "$ac_x_includes" = no; then
24143  # Guess where to find include files, by looking for Xlib.h.
24144  # First, try using that file with no special directory specified.
24145  cat >conftest.$ac_ext <<_ACEOF
24146/* confdefs.h.  */
24147_ACEOF
24148cat confdefs.h >>conftest.$ac_ext
24149cat >>conftest.$ac_ext <<_ACEOF
24150/* end confdefs.h.  */
24151#include <X11/Xlib.h>
24152_ACEOF
24153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24155  ac_status=$?
24156  grep -v '^ *+' conftest.er1 >conftest.err
24157  rm -f conftest.er1
24158  cat conftest.err >&5
24159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160  (exit $ac_status); } >/dev/null; then
24161  if test -s conftest.err; then
24162    ac_cpp_err=$ac_c_preproc_warn_flag
24163    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24164  else
24165    ac_cpp_err=
24166  fi
24167else
24168  ac_cpp_err=yes
24169fi
24170if test -z "$ac_cpp_err"; then
24171  # We can compile using X headers with no special include directory.
24172ac_x_includes=
24173else
24174  echo "$as_me: failed program was:" >&5
24175sed 's/^/| /' conftest.$ac_ext >&5
24176
24177  for ac_dir in $ac_x_header_dirs; do
24178  if test -r "$ac_dir/X11/Xlib.h"; then
24179    ac_x_includes=$ac_dir
24180    break
24181  fi
24182done
24183fi
24184rm -f conftest.err conftest.$ac_ext
24185fi # $ac_x_includes = no
24186
24187if test "$ac_x_libraries" = no; then
24188  # Check for the libraries.
24189  # See if we find them without any special options.
24190  # Don't add to $LIBS permanently.
24191  ac_save_LIBS=$LIBS
24192  LIBS="-lXt $LIBS"
24193  cat >conftest.$ac_ext <<_ACEOF
24194/* confdefs.h.  */
24195_ACEOF
24196cat confdefs.h >>conftest.$ac_ext
24197cat >>conftest.$ac_ext <<_ACEOF
24198/* end confdefs.h.  */
24199#include <X11/Xlib.h>
24200int
24201main ()
24202{
24203XrmInitialize ()
24204  ;
24205  return 0;
24206}
24207_ACEOF
24208rm -f conftest.$ac_objext conftest$ac_exeext
24209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24210  (eval $ac_link) 2>conftest.er1
24211  ac_status=$?
24212  grep -v '^ *+' conftest.er1 >conftest.err
24213  rm -f conftest.er1
24214  cat conftest.err >&5
24215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216  (exit $ac_status); } &&
24217	 { ac_try='test -z "$ac_c_werror_flag"
24218			 || test ! -s conftest.err'
24219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220  (eval $ac_try) 2>&5
24221  ac_status=$?
24222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223  (exit $ac_status); }; } &&
24224	 { ac_try='test -s conftest$ac_exeext'
24225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226  (eval $ac_try) 2>&5
24227  ac_status=$?
24228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229  (exit $ac_status); }; }; then
24230  LIBS=$ac_save_LIBS
24231# We can link X programs with no special library path.
24232ac_x_libraries=
24233else
24234  echo "$as_me: failed program was:" >&5
24235sed 's/^/| /' conftest.$ac_ext >&5
24236
24237LIBS=$ac_save_LIBS
24238for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24239do
24240  # Don't even attempt the hair of trying to link an X program!
24241  for ac_extension in a so sl; do
24242    if test -r $ac_dir/libXt.$ac_extension; then
24243      ac_x_libraries=$ac_dir
24244      break 2
24245    fi
24246  done
24247done
24248fi
24249rm -f conftest.err conftest.$ac_objext \
24250      conftest$ac_exeext conftest.$ac_ext
24251fi # $ac_x_libraries = no
24252
24253if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24254  # Didn't find X anywhere.  Cache the known absence of X.
24255  ac_cv_have_x="have_x=no"
24256else
24257  # Record where we found X for the cache.
24258  ac_cv_have_x="have_x=yes \
24259		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24260fi
24261fi
24262
24263  fi
24264  eval "$ac_cv_have_x"
24265fi # $with_x != no
24266
24267if test "$have_x" != yes; then
24268  echo "$as_me:$LINENO: result: $have_x" >&5
24269echo "${ECHO_T}$have_x" >&6
24270  no_x=yes
24271else
24272  # If each of the values was on the command line, it overrides each guess.
24273  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24274  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24275  # Update the cache value to reflect the command line values.
24276  ac_cv_have_x="have_x=yes \
24277		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24278  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24279echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24280fi
24281
24282
24283echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24284echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
24285if test "${ac_cv_c_bigendian+set}" = set; then
24286  echo $ECHO_N "(cached) $ECHO_C" >&6
24287else
24288  # See if sys/param.h defines the BYTE_ORDER macro.
24289cat >conftest.$ac_ext <<_ACEOF
24290/* confdefs.h.  */
24291_ACEOF
24292cat confdefs.h >>conftest.$ac_ext
24293cat >>conftest.$ac_ext <<_ACEOF
24294/* end confdefs.h.  */
24295#include <sys/types.h>
24296#include <sys/param.h>
24297
24298int
24299main ()
24300{
24301#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24302 bogus endian macros
24303#endif
24304
24305  ;
24306  return 0;
24307}
24308_ACEOF
24309rm -f conftest.$ac_objext
24310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24311  (eval $ac_compile) 2>conftest.er1
24312  ac_status=$?
24313  grep -v '^ *+' conftest.er1 >conftest.err
24314  rm -f conftest.er1
24315  cat conftest.err >&5
24316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317  (exit $ac_status); } &&
24318	 { ac_try='test -z "$ac_c_werror_flag"
24319			 || test ! -s conftest.err'
24320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321  (eval $ac_try) 2>&5
24322  ac_status=$?
24323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324  (exit $ac_status); }; } &&
24325	 { ac_try='test -s conftest.$ac_objext'
24326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327  (eval $ac_try) 2>&5
24328  ac_status=$?
24329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330  (exit $ac_status); }; }; then
24331  # It does; now see whether it defined to BIG_ENDIAN or not.
24332cat >conftest.$ac_ext <<_ACEOF
24333/* confdefs.h.  */
24334_ACEOF
24335cat confdefs.h >>conftest.$ac_ext
24336cat >>conftest.$ac_ext <<_ACEOF
24337/* end confdefs.h.  */
24338#include <sys/types.h>
24339#include <sys/param.h>
24340
24341int
24342main ()
24343{
24344#if BYTE_ORDER != BIG_ENDIAN
24345 not big endian
24346#endif
24347
24348  ;
24349  return 0;
24350}
24351_ACEOF
24352rm -f conftest.$ac_objext
24353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24354  (eval $ac_compile) 2>conftest.er1
24355  ac_status=$?
24356  grep -v '^ *+' conftest.er1 >conftest.err
24357  rm -f conftest.er1
24358  cat conftest.err >&5
24359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360  (exit $ac_status); } &&
24361	 { ac_try='test -z "$ac_c_werror_flag"
24362			 || test ! -s conftest.err'
24363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364  (eval $ac_try) 2>&5
24365  ac_status=$?
24366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367  (exit $ac_status); }; } &&
24368	 { ac_try='test -s conftest.$ac_objext'
24369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24370  (eval $ac_try) 2>&5
24371  ac_status=$?
24372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373  (exit $ac_status); }; }; then
24374  ac_cv_c_bigendian=yes
24375else
24376  echo "$as_me: failed program was:" >&5
24377sed 's/^/| /' conftest.$ac_ext >&5
24378
24379ac_cv_c_bigendian=no
24380fi
24381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24382else
24383  echo "$as_me: failed program was:" >&5
24384sed 's/^/| /' conftest.$ac_ext >&5
24385
24386# It does not; compile a test program.
24387if test "$cross_compiling" = yes; then
24388  # try to guess the endianness by grepping values into an object file
24389  ac_cv_c_bigendian=unknown
24390  cat >conftest.$ac_ext <<_ACEOF
24391/* confdefs.h.  */
24392_ACEOF
24393cat confdefs.h >>conftest.$ac_ext
24394cat >>conftest.$ac_ext <<_ACEOF
24395/* end confdefs.h.  */
24396short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24397short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24398void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24399short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24400short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24401void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24402int
24403main ()
24404{
24405 _ascii (); _ebcdic ();
24406  ;
24407  return 0;
24408}
24409_ACEOF
24410rm -f conftest.$ac_objext
24411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24412  (eval $ac_compile) 2>conftest.er1
24413  ac_status=$?
24414  grep -v '^ *+' conftest.er1 >conftest.err
24415  rm -f conftest.er1
24416  cat conftest.err >&5
24417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418  (exit $ac_status); } &&
24419	 { ac_try='test -z "$ac_c_werror_flag"
24420			 || test ! -s conftest.err'
24421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422  (eval $ac_try) 2>&5
24423  ac_status=$?
24424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425  (exit $ac_status); }; } &&
24426	 { ac_try='test -s conftest.$ac_objext'
24427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428  (eval $ac_try) 2>&5
24429  ac_status=$?
24430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431  (exit $ac_status); }; }; then
24432  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24433  ac_cv_c_bigendian=yes
24434fi
24435if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24436  if test "$ac_cv_c_bigendian" = unknown; then
24437    ac_cv_c_bigendian=no
24438  else
24439    # finding both strings is unlikely to happen, but who knows?
24440    ac_cv_c_bigendian=unknown
24441  fi
24442fi
24443else
24444  echo "$as_me: failed program was:" >&5
24445sed 's/^/| /' conftest.$ac_ext >&5
24446
24447fi
24448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24449else
24450  cat >conftest.$ac_ext <<_ACEOF
24451/* confdefs.h.  */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h.  */
24456int
24457main ()
24458{
24459  /* Are we little or big endian?  From Harbison&Steele.  */
24460  union
24461  {
24462    long l;
24463    char c[sizeof (long)];
24464  } u;
24465  u.l = 1;
24466  exit (u.c[sizeof (long) - 1] == 1);
24467}
24468_ACEOF
24469rm -f conftest$ac_exeext
24470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24471  (eval $ac_link) 2>&5
24472  ac_status=$?
24473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476  (eval $ac_try) 2>&5
24477  ac_status=$?
24478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479  (exit $ac_status); }; }; then
24480  ac_cv_c_bigendian=no
24481else
24482  echo "$as_me: program exited with status $ac_status" >&5
24483echo "$as_me: failed program was:" >&5
24484sed 's/^/| /' conftest.$ac_ext >&5
24485
24486( exit $ac_status )
24487ac_cv_c_bigendian=yes
24488fi
24489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24490fi
24491fi
24492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24493fi
24494echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24495echo "${ECHO_T}$ac_cv_c_bigendian" >&6
24496case $ac_cv_c_bigendian in
24497  yes)
24498
24499cat >>confdefs.h <<\_ACEOF
24500#define WORDS_BIGENDIAN 1
24501_ACEOF
24502 ;;
24503  no)
24504     ;;
24505  *)
24506    { { echo "$as_me:$LINENO: error: unknown endianness
24507presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24508echo "$as_me: error: unknown endianness
24509presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24510   { (exit 1); exit 1; }; } ;;
24511esac
24512
24513
24514for ac_header in libgen.h
24515do
24516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24517if eval "test \"\${$as_ac_Header+set}\" = set"; then
24518  echo "$as_me:$LINENO: checking for $ac_header" >&5
24519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24520if eval "test \"\${$as_ac_Header+set}\" = set"; then
24521  echo $ECHO_N "(cached) $ECHO_C" >&6
24522fi
24523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24525else
24526  # Is the header compilable?
24527echo "$as_me:$LINENO: checking $ac_header usability" >&5
24528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24529cat >conftest.$ac_ext <<_ACEOF
24530/* confdefs.h.  */
24531_ACEOF
24532cat confdefs.h >>conftest.$ac_ext
24533cat >>conftest.$ac_ext <<_ACEOF
24534/* end confdefs.h.  */
24535$ac_includes_default
24536#include <$ac_header>
24537_ACEOF
24538rm -f conftest.$ac_objext
24539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24540  (eval $ac_compile) 2>conftest.er1
24541  ac_status=$?
24542  grep -v '^ *+' conftest.er1 >conftest.err
24543  rm -f conftest.er1
24544  cat conftest.err >&5
24545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546  (exit $ac_status); } &&
24547	 { ac_try='test -z "$ac_c_werror_flag"
24548			 || test ! -s conftest.err'
24549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550  (eval $ac_try) 2>&5
24551  ac_status=$?
24552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553  (exit $ac_status); }; } &&
24554	 { ac_try='test -s conftest.$ac_objext'
24555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556  (eval $ac_try) 2>&5
24557  ac_status=$?
24558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559  (exit $ac_status); }; }; then
24560  ac_header_compiler=yes
24561else
24562  echo "$as_me: failed program was:" >&5
24563sed 's/^/| /' conftest.$ac_ext >&5
24564
24565ac_header_compiler=no
24566fi
24567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24568echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24569echo "${ECHO_T}$ac_header_compiler" >&6
24570
24571# Is the header present?
24572echo "$as_me:$LINENO: checking $ac_header presence" >&5
24573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24574cat >conftest.$ac_ext <<_ACEOF
24575/* confdefs.h.  */
24576_ACEOF
24577cat confdefs.h >>conftest.$ac_ext
24578cat >>conftest.$ac_ext <<_ACEOF
24579/* end confdefs.h.  */
24580#include <$ac_header>
24581_ACEOF
24582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24583  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24584  ac_status=$?
24585  grep -v '^ *+' conftest.er1 >conftest.err
24586  rm -f conftest.er1
24587  cat conftest.err >&5
24588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589  (exit $ac_status); } >/dev/null; then
24590  if test -s conftest.err; then
24591    ac_cpp_err=$ac_c_preproc_warn_flag
24592    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24593  else
24594    ac_cpp_err=
24595  fi
24596else
24597  ac_cpp_err=yes
24598fi
24599if test -z "$ac_cpp_err"; then
24600  ac_header_preproc=yes
24601else
24602  echo "$as_me: failed program was:" >&5
24603sed 's/^/| /' conftest.$ac_ext >&5
24604
24605  ac_header_preproc=no
24606fi
24607rm -f conftest.err conftest.$ac_ext
24608echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24609echo "${ECHO_T}$ac_header_preproc" >&6
24610
24611# So?  What about this header?
24612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24613  yes:no: )
24614    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24616    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24618    ac_header_preproc=yes
24619    ;;
24620  no:yes:* )
24621    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24623    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24624echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24625    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24627    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24628echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24631    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24633    (
24634      cat <<\_ASBOX
24635## ------------------------------------------ ##
24636## Report this to the AC_PACKAGE_NAME lists.  ##
24637## ------------------------------------------ ##
24638_ASBOX
24639    ) |
24640      sed "s/^/$as_me: WARNING:     /" >&2
24641    ;;
24642esac
24643echo "$as_me:$LINENO: checking for $ac_header" >&5
24644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24645if eval "test \"\${$as_ac_Header+set}\" = set"; then
24646  echo $ECHO_N "(cached) $ECHO_C" >&6
24647else
24648  eval "$as_ac_Header=\$ac_header_preproc"
24649fi
24650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24652
24653fi
24654if test `eval echo '${'$as_ac_Header'}'` = yes; then
24655  cat >>confdefs.h <<_ACEOF
24656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24657_ACEOF
24658
24659fi
24660
24661done
24662
24663
24664
24665if test "$no_x" = yes; then
24666  # Not all programs may use this symbol, but it does not hurt to define it.
24667
24668cat >>confdefs.h <<\_ACEOF
24669#define X_DISPLAY_MISSING 1
24670_ACEOF
24671
24672  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24673else
24674  if test -n "$x_includes"; then
24675    X_CFLAGS="$X_CFLAGS -I$x_includes"
24676  fi
24677
24678  # It would also be nice to do this for all -L options, not just this one.
24679  if test -n "$x_libraries"; then
24680    X_LIBS="$X_LIBS -L$x_libraries"
24681    # For Solaris; some versions of Sun CC require a space after -R and
24682    # others require no space.  Words are not sufficient . . . .
24683    case `(uname -sr) 2>/dev/null` in
24684    "SunOS 5"*)
24685      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24686echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24687      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24688      cat >conftest.$ac_ext <<_ACEOF
24689/* confdefs.h.  */
24690_ACEOF
24691cat confdefs.h >>conftest.$ac_ext
24692cat >>conftest.$ac_ext <<_ACEOF
24693/* end confdefs.h.  */
24694
24695int
24696main ()
24697{
24698
24699  ;
24700  return 0;
24701}
24702_ACEOF
24703rm -f conftest.$ac_objext conftest$ac_exeext
24704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705  (eval $ac_link) 2>conftest.er1
24706  ac_status=$?
24707  grep -v '^ *+' conftest.er1 >conftest.err
24708  rm -f conftest.er1
24709  cat conftest.err >&5
24710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711  (exit $ac_status); } &&
24712	 { ac_try='test -z "$ac_c_werror_flag"
24713			 || test ! -s conftest.err'
24714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715  (eval $ac_try) 2>&5
24716  ac_status=$?
24717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718  (exit $ac_status); }; } &&
24719	 { ac_try='test -s conftest$ac_exeext'
24720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721  (eval $ac_try) 2>&5
24722  ac_status=$?
24723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724  (exit $ac_status); }; }; then
24725  ac_R_nospace=yes
24726else
24727  echo "$as_me: failed program was:" >&5
24728sed 's/^/| /' conftest.$ac_ext >&5
24729
24730ac_R_nospace=no
24731fi
24732rm -f conftest.err conftest.$ac_objext \
24733      conftest$ac_exeext conftest.$ac_ext
24734      if test $ac_R_nospace = yes; then
24735	echo "$as_me:$LINENO: result: no" >&5
24736echo "${ECHO_T}no" >&6
24737	X_LIBS="$X_LIBS -R$x_libraries"
24738      else
24739	LIBS="$ac_xsave_LIBS -R $x_libraries"
24740	cat >conftest.$ac_ext <<_ACEOF
24741/* confdefs.h.  */
24742_ACEOF
24743cat confdefs.h >>conftest.$ac_ext
24744cat >>conftest.$ac_ext <<_ACEOF
24745/* end confdefs.h.  */
24746
24747int
24748main ()
24749{
24750
24751  ;
24752  return 0;
24753}
24754_ACEOF
24755rm -f conftest.$ac_objext conftest$ac_exeext
24756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757  (eval $ac_link) 2>conftest.er1
24758  ac_status=$?
24759  grep -v '^ *+' conftest.er1 >conftest.err
24760  rm -f conftest.er1
24761  cat conftest.err >&5
24762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763  (exit $ac_status); } &&
24764	 { ac_try='test -z "$ac_c_werror_flag"
24765			 || test ! -s conftest.err'
24766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767  (eval $ac_try) 2>&5
24768  ac_status=$?
24769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770  (exit $ac_status); }; } &&
24771	 { ac_try='test -s conftest$ac_exeext'
24772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773  (eval $ac_try) 2>&5
24774  ac_status=$?
24775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776  (exit $ac_status); }; }; then
24777  ac_R_space=yes
24778else
24779  echo "$as_me: failed program was:" >&5
24780sed 's/^/| /' conftest.$ac_ext >&5
24781
24782ac_R_space=no
24783fi
24784rm -f conftest.err conftest.$ac_objext \
24785      conftest$ac_exeext conftest.$ac_ext
24786	if test $ac_R_space = yes; then
24787	  echo "$as_me:$LINENO: result: yes" >&5
24788echo "${ECHO_T}yes" >&6
24789	  X_LIBS="$X_LIBS -R $x_libraries"
24790	else
24791	  echo "$as_me:$LINENO: result: neither works" >&5
24792echo "${ECHO_T}neither works" >&6
24793	fi
24794      fi
24795      LIBS=$ac_xsave_LIBS
24796    esac
24797  fi
24798
24799  # Check for system-dependent libraries X programs must link with.
24800  # Do this before checking for the system-independent R6 libraries
24801  # (-lICE), since we may need -lsocket or whatever for X linking.
24802
24803  if test "$ISC" = yes; then
24804    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24805  else
24806    # Martyn Johnson says this is needed for Ultrix, if the X
24807    # libraries were built with DECnet support.  And Karl Berry says
24808    # the Alpha needs dnet_stub (dnet does not exist).
24809    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24810    cat >conftest.$ac_ext <<_ACEOF
24811/* confdefs.h.  */
24812_ACEOF
24813cat confdefs.h >>conftest.$ac_ext
24814cat >>conftest.$ac_ext <<_ACEOF
24815/* end confdefs.h.  */
24816
24817/* Override any gcc2 internal prototype to avoid an error.  */
24818#ifdef __cplusplus
24819extern "C"
24820#endif
24821/* We use char because int might match the return type of a gcc2
24822   builtin and then its argument prototype would still apply.  */
24823char XOpenDisplay ();
24824int
24825main ()
24826{
24827XOpenDisplay ();
24828  ;
24829  return 0;
24830}
24831_ACEOF
24832rm -f conftest.$ac_objext conftest$ac_exeext
24833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24834  (eval $ac_link) 2>conftest.er1
24835  ac_status=$?
24836  grep -v '^ *+' conftest.er1 >conftest.err
24837  rm -f conftest.er1
24838  cat conftest.err >&5
24839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840  (exit $ac_status); } &&
24841	 { ac_try='test -z "$ac_c_werror_flag"
24842			 || test ! -s conftest.err'
24843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844  (eval $ac_try) 2>&5
24845  ac_status=$?
24846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847  (exit $ac_status); }; } &&
24848	 { ac_try='test -s conftest$ac_exeext'
24849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850  (eval $ac_try) 2>&5
24851  ac_status=$?
24852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853  (exit $ac_status); }; }; then
24854  :
24855else
24856  echo "$as_me: failed program was:" >&5
24857sed 's/^/| /' conftest.$ac_ext >&5
24858
24859echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24860echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24861if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24862  echo $ECHO_N "(cached) $ECHO_C" >&6
24863else
24864  ac_check_lib_save_LIBS=$LIBS
24865LIBS="-ldnet  $LIBS"
24866cat >conftest.$ac_ext <<_ACEOF
24867/* confdefs.h.  */
24868_ACEOF
24869cat confdefs.h >>conftest.$ac_ext
24870cat >>conftest.$ac_ext <<_ACEOF
24871/* end confdefs.h.  */
24872
24873/* Override any gcc2 internal prototype to avoid an error.  */
24874#ifdef __cplusplus
24875extern "C"
24876#endif
24877/* We use char because int might match the return type of a gcc2
24878   builtin and then its argument prototype would still apply.  */
24879char dnet_ntoa ();
24880int
24881main ()
24882{
24883dnet_ntoa ();
24884  ;
24885  return 0;
24886}
24887_ACEOF
24888rm -f conftest.$ac_objext conftest$ac_exeext
24889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24890  (eval $ac_link) 2>conftest.er1
24891  ac_status=$?
24892  grep -v '^ *+' conftest.er1 >conftest.err
24893  rm -f conftest.er1
24894  cat conftest.err >&5
24895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896  (exit $ac_status); } &&
24897	 { ac_try='test -z "$ac_c_werror_flag"
24898			 || test ! -s conftest.err'
24899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900  (eval $ac_try) 2>&5
24901  ac_status=$?
24902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903  (exit $ac_status); }; } &&
24904	 { ac_try='test -s conftest$ac_exeext'
24905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906  (eval $ac_try) 2>&5
24907  ac_status=$?
24908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909  (exit $ac_status); }; }; then
24910  ac_cv_lib_dnet_dnet_ntoa=yes
24911else
24912  echo "$as_me: failed program was:" >&5
24913sed 's/^/| /' conftest.$ac_ext >&5
24914
24915ac_cv_lib_dnet_dnet_ntoa=no
24916fi
24917rm -f conftest.err conftest.$ac_objext \
24918      conftest$ac_exeext conftest.$ac_ext
24919LIBS=$ac_check_lib_save_LIBS
24920fi
24921echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24922echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24923if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24924  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24925fi
24926
24927    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24928      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24929echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24930if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24931  echo $ECHO_N "(cached) $ECHO_C" >&6
24932else
24933  ac_check_lib_save_LIBS=$LIBS
24934LIBS="-ldnet_stub  $LIBS"
24935cat >conftest.$ac_ext <<_ACEOF
24936/* confdefs.h.  */
24937_ACEOF
24938cat confdefs.h >>conftest.$ac_ext
24939cat >>conftest.$ac_ext <<_ACEOF
24940/* end confdefs.h.  */
24941
24942/* Override any gcc2 internal prototype to avoid an error.  */
24943#ifdef __cplusplus
24944extern "C"
24945#endif
24946/* We use char because int might match the return type of a gcc2
24947   builtin and then its argument prototype would still apply.  */
24948char dnet_ntoa ();
24949int
24950main ()
24951{
24952dnet_ntoa ();
24953  ;
24954  return 0;
24955}
24956_ACEOF
24957rm -f conftest.$ac_objext conftest$ac_exeext
24958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24959  (eval $ac_link) 2>conftest.er1
24960  ac_status=$?
24961  grep -v '^ *+' conftest.er1 >conftest.err
24962  rm -f conftest.er1
24963  cat conftest.err >&5
24964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965  (exit $ac_status); } &&
24966	 { ac_try='test -z "$ac_c_werror_flag"
24967			 || test ! -s conftest.err'
24968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969  (eval $ac_try) 2>&5
24970  ac_status=$?
24971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972  (exit $ac_status); }; } &&
24973	 { ac_try='test -s conftest$ac_exeext'
24974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24975  (eval $ac_try) 2>&5
24976  ac_status=$?
24977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978  (exit $ac_status); }; }; then
24979  ac_cv_lib_dnet_stub_dnet_ntoa=yes
24980else
24981  echo "$as_me: failed program was:" >&5
24982sed 's/^/| /' conftest.$ac_ext >&5
24983
24984ac_cv_lib_dnet_stub_dnet_ntoa=no
24985fi
24986rm -f conftest.err conftest.$ac_objext \
24987      conftest$ac_exeext conftest.$ac_ext
24988LIBS=$ac_check_lib_save_LIBS
24989fi
24990echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24991echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24992if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24993  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24994fi
24995
24996    fi
24997fi
24998rm -f conftest.err conftest.$ac_objext \
24999      conftest$ac_exeext conftest.$ac_ext
25000    LIBS="$ac_xsave_LIBS"
25001
25002    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25003    # to get the SysV transport functions.
25004    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25005    # needs -lnsl.
25006    # The nsl library prevents programs from opening the X display
25007    # on Irix 5.2, according to T.E. Dickey.
25008    # The functions gethostbyname, getservbyname, and inet_addr are
25009    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25010    echo "$as_me:$LINENO: checking for gethostbyname" >&5
25011echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25012if test "${ac_cv_func_gethostbyname+set}" = set; then
25013  echo $ECHO_N "(cached) $ECHO_C" >&6
25014else
25015  cat >conftest.$ac_ext <<_ACEOF
25016/* confdefs.h.  */
25017_ACEOF
25018cat confdefs.h >>conftest.$ac_ext
25019cat >>conftest.$ac_ext <<_ACEOF
25020/* end confdefs.h.  */
25021/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25023#define gethostbyname innocuous_gethostbyname
25024
25025/* System header to define __stub macros and hopefully few prototypes,
25026    which can conflict with char gethostbyname (); below.
25027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25028    <limits.h> exists even on freestanding compilers.  */
25029
25030#ifdef __STDC__
25031# include <limits.h>
25032#else
25033# include <assert.h>
25034#endif
25035
25036#undef gethostbyname
25037
25038/* Override any gcc2 internal prototype to avoid an error.  */
25039#ifdef __cplusplus
25040extern "C"
25041{
25042#endif
25043/* We use char because int might match the return type of a gcc2
25044   builtin and then its argument prototype would still apply.  */
25045char gethostbyname ();
25046/* The GNU C library defines this for functions which it implements
25047    to always fail with ENOSYS.  Some functions are actually named
25048    something starting with __ and the normal name is an alias.  */
25049#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25050choke me
25051#else
25052char (*f) () = gethostbyname;
25053#endif
25054#ifdef __cplusplus
25055}
25056#endif
25057
25058int
25059main ()
25060{
25061return f != gethostbyname;
25062  ;
25063  return 0;
25064}
25065_ACEOF
25066rm -f conftest.$ac_objext conftest$ac_exeext
25067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25068  (eval $ac_link) 2>conftest.er1
25069  ac_status=$?
25070  grep -v '^ *+' conftest.er1 >conftest.err
25071  rm -f conftest.er1
25072  cat conftest.err >&5
25073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074  (exit $ac_status); } &&
25075	 { ac_try='test -z "$ac_c_werror_flag"
25076			 || test ! -s conftest.err'
25077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078  (eval $ac_try) 2>&5
25079  ac_status=$?
25080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081  (exit $ac_status); }; } &&
25082	 { ac_try='test -s conftest$ac_exeext'
25083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084  (eval $ac_try) 2>&5
25085  ac_status=$?
25086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087  (exit $ac_status); }; }; then
25088  ac_cv_func_gethostbyname=yes
25089else
25090  echo "$as_me: failed program was:" >&5
25091sed 's/^/| /' conftest.$ac_ext >&5
25092
25093ac_cv_func_gethostbyname=no
25094fi
25095rm -f conftest.err conftest.$ac_objext \
25096      conftest$ac_exeext conftest.$ac_ext
25097fi
25098echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25099echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25100
25101    if test $ac_cv_func_gethostbyname = no; then
25102      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25103echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25104if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25105  echo $ECHO_N "(cached) $ECHO_C" >&6
25106else
25107  ac_check_lib_save_LIBS=$LIBS
25108LIBS="-lnsl  $LIBS"
25109cat >conftest.$ac_ext <<_ACEOF
25110/* confdefs.h.  */
25111_ACEOF
25112cat confdefs.h >>conftest.$ac_ext
25113cat >>conftest.$ac_ext <<_ACEOF
25114/* end confdefs.h.  */
25115
25116/* Override any gcc2 internal prototype to avoid an error.  */
25117#ifdef __cplusplus
25118extern "C"
25119#endif
25120/* We use char because int might match the return type of a gcc2
25121   builtin and then its argument prototype would still apply.  */
25122char gethostbyname ();
25123int
25124main ()
25125{
25126gethostbyname ();
25127  ;
25128  return 0;
25129}
25130_ACEOF
25131rm -f conftest.$ac_objext conftest$ac_exeext
25132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25133  (eval $ac_link) 2>conftest.er1
25134  ac_status=$?
25135  grep -v '^ *+' conftest.er1 >conftest.err
25136  rm -f conftest.er1
25137  cat conftest.err >&5
25138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139  (exit $ac_status); } &&
25140	 { ac_try='test -z "$ac_c_werror_flag"
25141			 || test ! -s conftest.err'
25142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143  (eval $ac_try) 2>&5
25144  ac_status=$?
25145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146  (exit $ac_status); }; } &&
25147	 { ac_try='test -s conftest$ac_exeext'
25148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149  (eval $ac_try) 2>&5
25150  ac_status=$?
25151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152  (exit $ac_status); }; }; then
25153  ac_cv_lib_nsl_gethostbyname=yes
25154else
25155  echo "$as_me: failed program was:" >&5
25156sed 's/^/| /' conftest.$ac_ext >&5
25157
25158ac_cv_lib_nsl_gethostbyname=no
25159fi
25160rm -f conftest.err conftest.$ac_objext \
25161      conftest$ac_exeext conftest.$ac_ext
25162LIBS=$ac_check_lib_save_LIBS
25163fi
25164echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25165echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25166if test $ac_cv_lib_nsl_gethostbyname = yes; then
25167  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25168fi
25169
25170      if test $ac_cv_lib_nsl_gethostbyname = no; then
25171	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25172echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25173if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25174  echo $ECHO_N "(cached) $ECHO_C" >&6
25175else
25176  ac_check_lib_save_LIBS=$LIBS
25177LIBS="-lbsd  $LIBS"
25178cat >conftest.$ac_ext <<_ACEOF
25179/* confdefs.h.  */
25180_ACEOF
25181cat confdefs.h >>conftest.$ac_ext
25182cat >>conftest.$ac_ext <<_ACEOF
25183/* end confdefs.h.  */
25184
25185/* Override any gcc2 internal prototype to avoid an error.  */
25186#ifdef __cplusplus
25187extern "C"
25188#endif
25189/* We use char because int might match the return type of a gcc2
25190   builtin and then its argument prototype would still apply.  */
25191char gethostbyname ();
25192int
25193main ()
25194{
25195gethostbyname ();
25196  ;
25197  return 0;
25198}
25199_ACEOF
25200rm -f conftest.$ac_objext conftest$ac_exeext
25201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25202  (eval $ac_link) 2>conftest.er1
25203  ac_status=$?
25204  grep -v '^ *+' conftest.er1 >conftest.err
25205  rm -f conftest.er1
25206  cat conftest.err >&5
25207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208  (exit $ac_status); } &&
25209	 { ac_try='test -z "$ac_c_werror_flag"
25210			 || test ! -s conftest.err'
25211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212  (eval $ac_try) 2>&5
25213  ac_status=$?
25214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215  (exit $ac_status); }; } &&
25216	 { ac_try='test -s conftest$ac_exeext'
25217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218  (eval $ac_try) 2>&5
25219  ac_status=$?
25220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221  (exit $ac_status); }; }; then
25222  ac_cv_lib_bsd_gethostbyname=yes
25223else
25224  echo "$as_me: failed program was:" >&5
25225sed 's/^/| /' conftest.$ac_ext >&5
25226
25227ac_cv_lib_bsd_gethostbyname=no
25228fi
25229rm -f conftest.err conftest.$ac_objext \
25230      conftest$ac_exeext conftest.$ac_ext
25231LIBS=$ac_check_lib_save_LIBS
25232fi
25233echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25234echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25235if test $ac_cv_lib_bsd_gethostbyname = yes; then
25236  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25237fi
25238
25239      fi
25240    fi
25241
25242    # lieder@skyler.mavd.honeywell.com says without -lsocket,
25243    # socket/setsockopt and other routines are undefined under SCO ODT
25244    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25245    # on later versions), says Simon Leinen: it contains gethostby*
25246    # variants that don't use the name server (or something).  -lsocket
25247    # must be given before -lnsl if both are needed.  We assume that
25248    # if connect needs -lnsl, so does gethostbyname.
25249    echo "$as_me:$LINENO: checking for connect" >&5
25250echo $ECHO_N "checking for connect... $ECHO_C" >&6
25251if test "${ac_cv_func_connect+set}" = set; then
25252  echo $ECHO_N "(cached) $ECHO_C" >&6
25253else
25254  cat >conftest.$ac_ext <<_ACEOF
25255/* confdefs.h.  */
25256_ACEOF
25257cat confdefs.h >>conftest.$ac_ext
25258cat >>conftest.$ac_ext <<_ACEOF
25259/* end confdefs.h.  */
25260/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25261   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25262#define connect innocuous_connect
25263
25264/* System header to define __stub macros and hopefully few prototypes,
25265    which can conflict with char connect (); below.
25266    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25267    <limits.h> exists even on freestanding compilers.  */
25268
25269#ifdef __STDC__
25270# include <limits.h>
25271#else
25272# include <assert.h>
25273#endif
25274
25275#undef connect
25276
25277/* Override any gcc2 internal prototype to avoid an error.  */
25278#ifdef __cplusplus
25279extern "C"
25280{
25281#endif
25282/* We use char because int might match the return type of a gcc2
25283   builtin and then its argument prototype would still apply.  */
25284char connect ();
25285/* The GNU C library defines this for functions which it implements
25286    to always fail with ENOSYS.  Some functions are actually named
25287    something starting with __ and the normal name is an alias.  */
25288#if defined (__stub_connect) || defined (__stub___connect)
25289choke me
25290#else
25291char (*f) () = connect;
25292#endif
25293#ifdef __cplusplus
25294}
25295#endif
25296
25297int
25298main ()
25299{
25300return f != connect;
25301  ;
25302  return 0;
25303}
25304_ACEOF
25305rm -f conftest.$ac_objext conftest$ac_exeext
25306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25307  (eval $ac_link) 2>conftest.er1
25308  ac_status=$?
25309  grep -v '^ *+' conftest.er1 >conftest.err
25310  rm -f conftest.er1
25311  cat conftest.err >&5
25312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313  (exit $ac_status); } &&
25314	 { ac_try='test -z "$ac_c_werror_flag"
25315			 || test ! -s conftest.err'
25316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25317  (eval $ac_try) 2>&5
25318  ac_status=$?
25319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320  (exit $ac_status); }; } &&
25321	 { ac_try='test -s conftest$ac_exeext'
25322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323  (eval $ac_try) 2>&5
25324  ac_status=$?
25325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326  (exit $ac_status); }; }; then
25327  ac_cv_func_connect=yes
25328else
25329  echo "$as_me: failed program was:" >&5
25330sed 's/^/| /' conftest.$ac_ext >&5
25331
25332ac_cv_func_connect=no
25333fi
25334rm -f conftest.err conftest.$ac_objext \
25335      conftest$ac_exeext conftest.$ac_ext
25336fi
25337echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25338echo "${ECHO_T}$ac_cv_func_connect" >&6
25339
25340    if test $ac_cv_func_connect = no; then
25341      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25342echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25343if test "${ac_cv_lib_socket_connect+set}" = set; then
25344  echo $ECHO_N "(cached) $ECHO_C" >&6
25345else
25346  ac_check_lib_save_LIBS=$LIBS
25347LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25348cat >conftest.$ac_ext <<_ACEOF
25349/* confdefs.h.  */
25350_ACEOF
25351cat confdefs.h >>conftest.$ac_ext
25352cat >>conftest.$ac_ext <<_ACEOF
25353/* end confdefs.h.  */
25354
25355/* Override any gcc2 internal prototype to avoid an error.  */
25356#ifdef __cplusplus
25357extern "C"
25358#endif
25359/* We use char because int might match the return type of a gcc2
25360   builtin and then its argument prototype would still apply.  */
25361char connect ();
25362int
25363main ()
25364{
25365connect ();
25366  ;
25367  return 0;
25368}
25369_ACEOF
25370rm -f conftest.$ac_objext conftest$ac_exeext
25371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25372  (eval $ac_link) 2>conftest.er1
25373  ac_status=$?
25374  grep -v '^ *+' conftest.er1 >conftest.err
25375  rm -f conftest.er1
25376  cat conftest.err >&5
25377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378  (exit $ac_status); } &&
25379	 { ac_try='test -z "$ac_c_werror_flag"
25380			 || test ! -s conftest.err'
25381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382  (eval $ac_try) 2>&5
25383  ac_status=$?
25384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385  (exit $ac_status); }; } &&
25386	 { ac_try='test -s conftest$ac_exeext'
25387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388  (eval $ac_try) 2>&5
25389  ac_status=$?
25390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391  (exit $ac_status); }; }; then
25392  ac_cv_lib_socket_connect=yes
25393else
25394  echo "$as_me: failed program was:" >&5
25395sed 's/^/| /' conftest.$ac_ext >&5
25396
25397ac_cv_lib_socket_connect=no
25398fi
25399rm -f conftest.err conftest.$ac_objext \
25400      conftest$ac_exeext conftest.$ac_ext
25401LIBS=$ac_check_lib_save_LIBS
25402fi
25403echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25404echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25405if test $ac_cv_lib_socket_connect = yes; then
25406  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25407fi
25408
25409    fi
25410
25411    # Guillermo Gomez says -lposix is necessary on A/UX.
25412    echo "$as_me:$LINENO: checking for remove" >&5
25413echo $ECHO_N "checking for remove... $ECHO_C" >&6
25414if test "${ac_cv_func_remove+set}" = set; then
25415  echo $ECHO_N "(cached) $ECHO_C" >&6
25416else
25417  cat >conftest.$ac_ext <<_ACEOF
25418/* confdefs.h.  */
25419_ACEOF
25420cat confdefs.h >>conftest.$ac_ext
25421cat >>conftest.$ac_ext <<_ACEOF
25422/* end confdefs.h.  */
25423/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25424   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25425#define remove innocuous_remove
25426
25427/* System header to define __stub macros and hopefully few prototypes,
25428    which can conflict with char remove (); below.
25429    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25430    <limits.h> exists even on freestanding compilers.  */
25431
25432#ifdef __STDC__
25433# include <limits.h>
25434#else
25435# include <assert.h>
25436#endif
25437
25438#undef remove
25439
25440/* Override any gcc2 internal prototype to avoid an error.  */
25441#ifdef __cplusplus
25442extern "C"
25443{
25444#endif
25445/* We use char because int might match the return type of a gcc2
25446   builtin and then its argument prototype would still apply.  */
25447char remove ();
25448/* The GNU C library defines this for functions which it implements
25449    to always fail with ENOSYS.  Some functions are actually named
25450    something starting with __ and the normal name is an alias.  */
25451#if defined (__stub_remove) || defined (__stub___remove)
25452choke me
25453#else
25454char (*f) () = remove;
25455#endif
25456#ifdef __cplusplus
25457}
25458#endif
25459
25460int
25461main ()
25462{
25463return f != remove;
25464  ;
25465  return 0;
25466}
25467_ACEOF
25468rm -f conftest.$ac_objext conftest$ac_exeext
25469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25470  (eval $ac_link) 2>conftest.er1
25471  ac_status=$?
25472  grep -v '^ *+' conftest.er1 >conftest.err
25473  rm -f conftest.er1
25474  cat conftest.err >&5
25475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476  (exit $ac_status); } &&
25477	 { ac_try='test -z "$ac_c_werror_flag"
25478			 || test ! -s conftest.err'
25479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480  (eval $ac_try) 2>&5
25481  ac_status=$?
25482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483  (exit $ac_status); }; } &&
25484	 { ac_try='test -s conftest$ac_exeext'
25485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486  (eval $ac_try) 2>&5
25487  ac_status=$?
25488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489  (exit $ac_status); }; }; then
25490  ac_cv_func_remove=yes
25491else
25492  echo "$as_me: failed program was:" >&5
25493sed 's/^/| /' conftest.$ac_ext >&5
25494
25495ac_cv_func_remove=no
25496fi
25497rm -f conftest.err conftest.$ac_objext \
25498      conftest$ac_exeext conftest.$ac_ext
25499fi
25500echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25501echo "${ECHO_T}$ac_cv_func_remove" >&6
25502
25503    if test $ac_cv_func_remove = no; then
25504      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25505echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25506if test "${ac_cv_lib_posix_remove+set}" = set; then
25507  echo $ECHO_N "(cached) $ECHO_C" >&6
25508else
25509  ac_check_lib_save_LIBS=$LIBS
25510LIBS="-lposix  $LIBS"
25511cat >conftest.$ac_ext <<_ACEOF
25512/* confdefs.h.  */
25513_ACEOF
25514cat confdefs.h >>conftest.$ac_ext
25515cat >>conftest.$ac_ext <<_ACEOF
25516/* end confdefs.h.  */
25517
25518/* Override any gcc2 internal prototype to avoid an error.  */
25519#ifdef __cplusplus
25520extern "C"
25521#endif
25522/* We use char because int might match the return type of a gcc2
25523   builtin and then its argument prototype would still apply.  */
25524char remove ();
25525int
25526main ()
25527{
25528remove ();
25529  ;
25530  return 0;
25531}
25532_ACEOF
25533rm -f conftest.$ac_objext conftest$ac_exeext
25534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25535  (eval $ac_link) 2>conftest.er1
25536  ac_status=$?
25537  grep -v '^ *+' conftest.er1 >conftest.err
25538  rm -f conftest.er1
25539  cat conftest.err >&5
25540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541  (exit $ac_status); } &&
25542	 { ac_try='test -z "$ac_c_werror_flag"
25543			 || test ! -s conftest.err'
25544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545  (eval $ac_try) 2>&5
25546  ac_status=$?
25547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548  (exit $ac_status); }; } &&
25549	 { ac_try='test -s conftest$ac_exeext'
25550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551  (eval $ac_try) 2>&5
25552  ac_status=$?
25553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554  (exit $ac_status); }; }; then
25555  ac_cv_lib_posix_remove=yes
25556else
25557  echo "$as_me: failed program was:" >&5
25558sed 's/^/| /' conftest.$ac_ext >&5
25559
25560ac_cv_lib_posix_remove=no
25561fi
25562rm -f conftest.err conftest.$ac_objext \
25563      conftest$ac_exeext conftest.$ac_ext
25564LIBS=$ac_check_lib_save_LIBS
25565fi
25566echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25567echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25568if test $ac_cv_lib_posix_remove = yes; then
25569  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25570fi
25571
25572    fi
25573
25574    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25575    echo "$as_me:$LINENO: checking for shmat" >&5
25576echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25577if test "${ac_cv_func_shmat+set}" = set; then
25578  echo $ECHO_N "(cached) $ECHO_C" >&6
25579else
25580  cat >conftest.$ac_ext <<_ACEOF
25581/* confdefs.h.  */
25582_ACEOF
25583cat confdefs.h >>conftest.$ac_ext
25584cat >>conftest.$ac_ext <<_ACEOF
25585/* end confdefs.h.  */
25586/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25587   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25588#define shmat innocuous_shmat
25589
25590/* System header to define __stub macros and hopefully few prototypes,
25591    which can conflict with char shmat (); below.
25592    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25593    <limits.h> exists even on freestanding compilers.  */
25594
25595#ifdef __STDC__
25596# include <limits.h>
25597#else
25598# include <assert.h>
25599#endif
25600
25601#undef shmat
25602
25603/* Override any gcc2 internal prototype to avoid an error.  */
25604#ifdef __cplusplus
25605extern "C"
25606{
25607#endif
25608/* We use char because int might match the return type of a gcc2
25609   builtin and then its argument prototype would still apply.  */
25610char shmat ();
25611/* The GNU C library defines this for functions which it implements
25612    to always fail with ENOSYS.  Some functions are actually named
25613    something starting with __ and the normal name is an alias.  */
25614#if defined (__stub_shmat) || defined (__stub___shmat)
25615choke me
25616#else
25617char (*f) () = shmat;
25618#endif
25619#ifdef __cplusplus
25620}
25621#endif
25622
25623int
25624main ()
25625{
25626return f != shmat;
25627  ;
25628  return 0;
25629}
25630_ACEOF
25631rm -f conftest.$ac_objext conftest$ac_exeext
25632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25633  (eval $ac_link) 2>conftest.er1
25634  ac_status=$?
25635  grep -v '^ *+' conftest.er1 >conftest.err
25636  rm -f conftest.er1
25637  cat conftest.err >&5
25638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639  (exit $ac_status); } &&
25640	 { ac_try='test -z "$ac_c_werror_flag"
25641			 || test ! -s conftest.err'
25642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643  (eval $ac_try) 2>&5
25644  ac_status=$?
25645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646  (exit $ac_status); }; } &&
25647	 { ac_try='test -s conftest$ac_exeext'
25648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649  (eval $ac_try) 2>&5
25650  ac_status=$?
25651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652  (exit $ac_status); }; }; then
25653  ac_cv_func_shmat=yes
25654else
25655  echo "$as_me: failed program was:" >&5
25656sed 's/^/| /' conftest.$ac_ext >&5
25657
25658ac_cv_func_shmat=no
25659fi
25660rm -f conftest.err conftest.$ac_objext \
25661      conftest$ac_exeext conftest.$ac_ext
25662fi
25663echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25664echo "${ECHO_T}$ac_cv_func_shmat" >&6
25665
25666    if test $ac_cv_func_shmat = no; then
25667      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25668echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25669if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25670  echo $ECHO_N "(cached) $ECHO_C" >&6
25671else
25672  ac_check_lib_save_LIBS=$LIBS
25673LIBS="-lipc  $LIBS"
25674cat >conftest.$ac_ext <<_ACEOF
25675/* confdefs.h.  */
25676_ACEOF
25677cat confdefs.h >>conftest.$ac_ext
25678cat >>conftest.$ac_ext <<_ACEOF
25679/* end confdefs.h.  */
25680
25681/* Override any gcc2 internal prototype to avoid an error.  */
25682#ifdef __cplusplus
25683extern "C"
25684#endif
25685/* We use char because int might match the return type of a gcc2
25686   builtin and then its argument prototype would still apply.  */
25687char shmat ();
25688int
25689main ()
25690{
25691shmat ();
25692  ;
25693  return 0;
25694}
25695_ACEOF
25696rm -f conftest.$ac_objext conftest$ac_exeext
25697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25698  (eval $ac_link) 2>conftest.er1
25699  ac_status=$?
25700  grep -v '^ *+' conftest.er1 >conftest.err
25701  rm -f conftest.er1
25702  cat conftest.err >&5
25703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704  (exit $ac_status); } &&
25705	 { ac_try='test -z "$ac_c_werror_flag"
25706			 || test ! -s conftest.err'
25707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708  (eval $ac_try) 2>&5
25709  ac_status=$?
25710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711  (exit $ac_status); }; } &&
25712	 { ac_try='test -s conftest$ac_exeext'
25713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714  (eval $ac_try) 2>&5
25715  ac_status=$?
25716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717  (exit $ac_status); }; }; then
25718  ac_cv_lib_ipc_shmat=yes
25719else
25720  echo "$as_me: failed program was:" >&5
25721sed 's/^/| /' conftest.$ac_ext >&5
25722
25723ac_cv_lib_ipc_shmat=no
25724fi
25725rm -f conftest.err conftest.$ac_objext \
25726      conftest$ac_exeext conftest.$ac_ext
25727LIBS=$ac_check_lib_save_LIBS
25728fi
25729echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25730echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25731if test $ac_cv_lib_ipc_shmat = yes; then
25732  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25733fi
25734
25735    fi
25736  fi
25737
25738  # Check for libraries that X11R6 Xt/Xaw programs need.
25739  ac_save_LDFLAGS=$LDFLAGS
25740  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25741  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25742  # check for ICE first), but we must link in the order -lSM -lICE or
25743  # we get undefined symbols.  So assume we have SM if we have ICE.
25744  # These have to be linked with before -lX11, unlike the other
25745  # libraries we check for below, so use a different variable.
25746  # John Interrante, Karl Berry
25747  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25748echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25749if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25750  echo $ECHO_N "(cached) $ECHO_C" >&6
25751else
25752  ac_check_lib_save_LIBS=$LIBS
25753LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25754cat >conftest.$ac_ext <<_ACEOF
25755/* confdefs.h.  */
25756_ACEOF
25757cat confdefs.h >>conftest.$ac_ext
25758cat >>conftest.$ac_ext <<_ACEOF
25759/* end confdefs.h.  */
25760
25761/* Override any gcc2 internal prototype to avoid an error.  */
25762#ifdef __cplusplus
25763extern "C"
25764#endif
25765/* We use char because int might match the return type of a gcc2
25766   builtin and then its argument prototype would still apply.  */
25767char IceConnectionNumber ();
25768int
25769main ()
25770{
25771IceConnectionNumber ();
25772  ;
25773  return 0;
25774}
25775_ACEOF
25776rm -f conftest.$ac_objext conftest$ac_exeext
25777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25778  (eval $ac_link) 2>conftest.er1
25779  ac_status=$?
25780  grep -v '^ *+' conftest.er1 >conftest.err
25781  rm -f conftest.er1
25782  cat conftest.err >&5
25783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784  (exit $ac_status); } &&
25785	 { ac_try='test -z "$ac_c_werror_flag"
25786			 || test ! -s conftest.err'
25787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788  (eval $ac_try) 2>&5
25789  ac_status=$?
25790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791  (exit $ac_status); }; } &&
25792	 { ac_try='test -s conftest$ac_exeext'
25793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794  (eval $ac_try) 2>&5
25795  ac_status=$?
25796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797  (exit $ac_status); }; }; then
25798  ac_cv_lib_ICE_IceConnectionNumber=yes
25799else
25800  echo "$as_me: failed program was:" >&5
25801sed 's/^/| /' conftest.$ac_ext >&5
25802
25803ac_cv_lib_ICE_IceConnectionNumber=no
25804fi
25805rm -f conftest.err conftest.$ac_objext \
25806      conftest$ac_exeext conftest.$ac_ext
25807LIBS=$ac_check_lib_save_LIBS
25808fi
25809echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25810echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25811if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25812  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25813fi
25814
25815  LDFLAGS=$ac_save_LDFLAGS
25816
25817fi
25818
25819
25820
25821
25822
25823
25824for ac_func in gettimeofday mkdtemp
25825do
25826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25827echo "$as_me:$LINENO: checking for $ac_func" >&5
25828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25829if eval "test \"\${$as_ac_var+set}\" = set"; then
25830  echo $ECHO_N "(cached) $ECHO_C" >&6
25831else
25832  cat >conftest.$ac_ext <<_ACEOF
25833/* confdefs.h.  */
25834_ACEOF
25835cat confdefs.h >>conftest.$ac_ext
25836cat >>conftest.$ac_ext <<_ACEOF
25837/* end confdefs.h.  */
25838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25839   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25840#define $ac_func innocuous_$ac_func
25841
25842/* System header to define __stub macros and hopefully few prototypes,
25843    which can conflict with char $ac_func (); below.
25844    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25845    <limits.h> exists even on freestanding compilers.  */
25846
25847#ifdef __STDC__
25848# include <limits.h>
25849#else
25850# include <assert.h>
25851#endif
25852
25853#undef $ac_func
25854
25855/* Override any gcc2 internal prototype to avoid an error.  */
25856#ifdef __cplusplus
25857extern "C"
25858{
25859#endif
25860/* We use char because int might match the return type of a gcc2
25861   builtin and then its argument prototype would still apply.  */
25862char $ac_func ();
25863/* The GNU C library defines this for functions which it implements
25864    to always fail with ENOSYS.  Some functions are actually named
25865    something starting with __ and the normal name is an alias.  */
25866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25867choke me
25868#else
25869char (*f) () = $ac_func;
25870#endif
25871#ifdef __cplusplus
25872}
25873#endif
25874
25875int
25876main ()
25877{
25878return f != $ac_func;
25879  ;
25880  return 0;
25881}
25882_ACEOF
25883rm -f conftest.$ac_objext conftest$ac_exeext
25884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25885  (eval $ac_link) 2>conftest.er1
25886  ac_status=$?
25887  grep -v '^ *+' conftest.er1 >conftest.err
25888  rm -f conftest.er1
25889  cat conftest.err >&5
25890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891  (exit $ac_status); } &&
25892	 { ac_try='test -z "$ac_c_werror_flag"
25893			 || test ! -s conftest.err'
25894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25895  (eval $ac_try) 2>&5
25896  ac_status=$?
25897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898  (exit $ac_status); }; } &&
25899	 { ac_try='test -s conftest$ac_exeext'
25900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901  (eval $ac_try) 2>&5
25902  ac_status=$?
25903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904  (exit $ac_status); }; }; then
25905  eval "$as_ac_var=yes"
25906else
25907  echo "$as_me: failed program was:" >&5
25908sed 's/^/| /' conftest.$ac_ext >&5
25909
25910eval "$as_ac_var=no"
25911fi
25912rm -f conftest.err conftest.$ac_objext \
25913      conftest$ac_exeext conftest.$ac_ext
25914fi
25915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25917if test `eval echo '${'$as_ac_var'}'` = yes; then
25918  cat >>confdefs.h <<_ACEOF
25919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25920_ACEOF
25921
25922fi
25923done
25924
25925
25926echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
25927echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
25928if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
25929  echo $ECHO_N "(cached) $ECHO_C" >&6
25930else
25931  ac_check_lib_save_LIBS=$LIBS
25932LIBS="-lz  $LIBS"
25933cat >conftest.$ac_ext <<_ACEOF
25934/* confdefs.h.  */
25935_ACEOF
25936cat confdefs.h >>conftest.$ac_ext
25937cat >>conftest.$ac_ext <<_ACEOF
25938/* end confdefs.h.  */
25939
25940/* Override any gcc2 internal prototype to avoid an error.  */
25941#ifdef __cplusplus
25942extern "C"
25943#endif
25944/* We use char because int might match the return type of a gcc2
25945   builtin and then its argument prototype would still apply.  */
25946char zlibVersion ();
25947int
25948main ()
25949{
25950zlibVersion ();
25951  ;
25952  return 0;
25953}
25954_ACEOF
25955rm -f conftest.$ac_objext conftest$ac_exeext
25956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25957  (eval $ac_link) 2>conftest.er1
25958  ac_status=$?
25959  grep -v '^ *+' conftest.er1 >conftest.err
25960  rm -f conftest.er1
25961  cat conftest.err >&5
25962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963  (exit $ac_status); } &&
25964	 { ac_try='test -z "$ac_c_werror_flag"
25965			 || test ! -s conftest.err'
25966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25967  (eval $ac_try) 2>&5
25968  ac_status=$?
25969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970  (exit $ac_status); }; } &&
25971	 { ac_try='test -s conftest$ac_exeext'
25972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973  (eval $ac_try) 2>&5
25974  ac_status=$?
25975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976  (exit $ac_status); }; }; then
25977  ac_cv_lib_z_zlibVersion=yes
25978else
25979  echo "$as_me: failed program was:" >&5
25980sed 's/^/| /' conftest.$ac_ext >&5
25981
25982ac_cv_lib_z_zlibVersion=no
25983fi
25984rm -f conftest.err conftest.$ac_objext \
25985      conftest$ac_exeext conftest.$ac_ext
25986LIBS=$ac_check_lib_save_LIBS
25987fi
25988echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
25989echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
25990if test $ac_cv_lib_z_zlibVersion = yes; then
25991   if test "${ac_cv_header_zlib_h+set}" = set; then
25992  echo "$as_me:$LINENO: checking for zlib.h" >&5
25993echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25994if test "${ac_cv_header_zlib_h+set}" = set; then
25995  echo $ECHO_N "(cached) $ECHO_C" >&6
25996fi
25997echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25998echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25999else
26000  # Is the header compilable?
26001echo "$as_me:$LINENO: checking zlib.h usability" >&5
26002echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
26003cat >conftest.$ac_ext <<_ACEOF
26004/* confdefs.h.  */
26005_ACEOF
26006cat confdefs.h >>conftest.$ac_ext
26007cat >>conftest.$ac_ext <<_ACEOF
26008/* end confdefs.h.  */
26009$ac_includes_default
26010#include <zlib.h>
26011_ACEOF
26012rm -f conftest.$ac_objext
26013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26014  (eval $ac_compile) 2>conftest.er1
26015  ac_status=$?
26016  grep -v '^ *+' conftest.er1 >conftest.err
26017  rm -f conftest.er1
26018  cat conftest.err >&5
26019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020  (exit $ac_status); } &&
26021	 { ac_try='test -z "$ac_c_werror_flag"
26022			 || test ! -s conftest.err'
26023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024  (eval $ac_try) 2>&5
26025  ac_status=$?
26026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027  (exit $ac_status); }; } &&
26028	 { ac_try='test -s conftest.$ac_objext'
26029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030  (eval $ac_try) 2>&5
26031  ac_status=$?
26032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033  (exit $ac_status); }; }; then
26034  ac_header_compiler=yes
26035else
26036  echo "$as_me: failed program was:" >&5
26037sed 's/^/| /' conftest.$ac_ext >&5
26038
26039ac_header_compiler=no
26040fi
26041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26042echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26043echo "${ECHO_T}$ac_header_compiler" >&6
26044
26045# Is the header present?
26046echo "$as_me:$LINENO: checking zlib.h presence" >&5
26047echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
26048cat >conftest.$ac_ext <<_ACEOF
26049/* confdefs.h.  */
26050_ACEOF
26051cat confdefs.h >>conftest.$ac_ext
26052cat >>conftest.$ac_ext <<_ACEOF
26053/* end confdefs.h.  */
26054#include <zlib.h>
26055_ACEOF
26056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26057  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26058  ac_status=$?
26059  grep -v '^ *+' conftest.er1 >conftest.err
26060  rm -f conftest.er1
26061  cat conftest.err >&5
26062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063  (exit $ac_status); } >/dev/null; then
26064  if test -s conftest.err; then
26065    ac_cpp_err=$ac_c_preproc_warn_flag
26066    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26067  else
26068    ac_cpp_err=
26069  fi
26070else
26071  ac_cpp_err=yes
26072fi
26073if test -z "$ac_cpp_err"; then
26074  ac_header_preproc=yes
26075else
26076  echo "$as_me: failed program was:" >&5
26077sed 's/^/| /' conftest.$ac_ext >&5
26078
26079  ac_header_preproc=no
26080fi
26081rm -f conftest.err conftest.$ac_ext
26082echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26083echo "${ECHO_T}$ac_header_preproc" >&6
26084
26085# So?  What about this header?
26086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26087  yes:no: )
26088    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26089echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26090    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26091echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26092    ac_header_preproc=yes
26093    ;;
26094  no:yes:* )
26095    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26096echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
26097    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
26098echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
26099    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26100echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26101    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
26102echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26103    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26104echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
26105    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26106echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
26107    (
26108      cat <<\_ASBOX
26109## ------------------------------------------ ##
26110## Report this to the AC_PACKAGE_NAME lists.  ##
26111## ------------------------------------------ ##
26112_ASBOX
26113    ) |
26114      sed "s/^/$as_me: WARNING:     /" >&2
26115    ;;
26116esac
26117echo "$as_me:$LINENO: checking for zlib.h" >&5
26118echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
26119if test "${ac_cv_header_zlib_h+set}" = set; then
26120  echo $ECHO_N "(cached) $ECHO_C" >&6
26121else
26122  ac_cv_header_zlib_h=$ac_header_preproc
26123fi
26124echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26125echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26126
26127fi
26128if test $ac_cv_header_zlib_h = yes; then
26129  have_zlib=yes
26130          ZLIB_LIBS="-lz"
26131fi
26132
26133
26134else
26135  { { echo "$as_me:$LINENO: error: zlib needed" >&5
26136echo "$as_me: error: zlib needed" >&2;}
26137   { (exit 1); exit 1; }; }
26138fi
26139
26140
26141
26142
26143
26144
26145no_glib12=no
26146must_gtk=no
26147
26148# Check whether --with-glib-prefix or --without-glib-prefix was given.
26149if test "${with_glib_prefix+set}" = set; then
26150  withval="$with_glib_prefix"
26151  glib_config_prefix="$withval"
26152else
26153  glib_config_prefix=""
26154fi;
26155
26156# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
26157if test "${with_glib_exec_prefix+set}" = set; then
26158  withval="$with_glib_exec_prefix"
26159  glib_config_exec_prefix="$withval"
26160else
26161  glib_config_exec_prefix=""
26162fi;
26163# Check whether --enable-glibtest or --disable-glibtest was given.
26164if test "${enable_glibtest+set}" = set; then
26165  enableval="$enable_glibtest"
26166
26167else
26168  enable_glibtest=yes
26169fi;
26170
26171  if test x$glib_config_exec_prefix != x ; then
26172     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
26173     if test x${GLIB_CONFIG+set} != xset ; then
26174        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
26175     fi
26176  fi
26177  if test x$glib_config_prefix != x ; then
26178     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
26179     if test x${GLIB_CONFIG+set} != xset ; then
26180        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
26181     fi
26182  fi
26183
26184  for module in .
26185  do
26186      case "$module" in
26187         gmodule)
26188             glib_config_args="$glib_config_args gmodule"
26189         ;;
26190         gthread)
26191             glib_config_args="$glib_config_args gthread"
26192         ;;
26193      esac
26194  done
26195
26196  # Extract the first word of "glib-config", so it can be a program name with args.
26197set dummy glib-config; ac_word=$2
26198echo "$as_me:$LINENO: checking for $ac_word" >&5
26199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26200if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
26201  echo $ECHO_N "(cached) $ECHO_C" >&6
26202else
26203  case $GLIB_CONFIG in
26204  [\\/]* | ?:[\\/]*)
26205  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
26206  ;;
26207  *)
26208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26209for as_dir in $PATH
26210do
26211  IFS=$as_save_IFS
26212  test -z "$as_dir" && as_dir=.
26213  for ac_exec_ext in '' $ac_executable_extensions; do
26214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26215    ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26217    break 2
26218  fi
26219done
26220done
26221
26222  test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
26223  ;;
26224esac
26225fi
26226GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
26227
26228if test -n "$GLIB_CONFIG"; then
26229  echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
26230echo "${ECHO_T}$GLIB_CONFIG" >&6
26231else
26232  echo "$as_me:$LINENO: result: no" >&5
26233echo "${ECHO_T}no" >&6
26234fi
26235
26236  min_glib_version=1.2.0
26237  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
26238echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
26239  no_glib=""
26240  if test "$GLIB_CONFIG" = "no" ; then
26241    no_glib=yes
26242  else
26243    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
26244    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
26245    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
26246           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26247    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
26248           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26249    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
26250           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26251    if test "x$enable_glibtest" = "xyes" ; then
26252      ac_save_CFLAGS="$CFLAGS"
26253      ac_save_LIBS="$LIBS"
26254      CFLAGS="$CFLAGS $GLIB_CFLAGS"
26255      LIBS="$GLIB_LIBS $LIBS"
26256      rm -f conf.glibtest
26257      if test "$cross_compiling" = yes; then
26258  echo $ac_n "cross compiling; assumed OK... $ac_c"
26259else
26260  cat >conftest.$ac_ext <<_ACEOF
26261/* confdefs.h.  */
26262_ACEOF
26263cat confdefs.h >>conftest.$ac_ext
26264cat >>conftest.$ac_ext <<_ACEOF
26265/* end confdefs.h.  */
26266
26267#include <glib.h>
26268#include <stdio.h>
26269#include <stdlib.h>
26270
26271int
26272main ()
26273{
26274  int major, minor, micro;
26275  char *tmp_version;
26276
26277  system ("touch conf.glibtest");
26278
26279  /* HP/UX 9 (%@#!) writes to sscanf strings */
26280  tmp_version = g_strdup("$min_glib_version");
26281  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26282     printf("%s, bad version string\n", "$min_glib_version");
26283     exit(1);
26284   }
26285
26286  if ((glib_major_version != $glib_config_major_version) ||
26287      (glib_minor_version != $glib_config_minor_version) ||
26288      (glib_micro_version != $glib_config_micro_version))
26289    {
26290      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
26291             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
26292             glib_major_version, glib_minor_version, glib_micro_version);
26293      printf ("*** was found! If glib-config was correct, then it is best\n");
26294      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
26295      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26296      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26297      printf("*** required on your system.\n");
26298      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
26299      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
26300      printf("*** before re-running configure\n");
26301    }
26302  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
26303	   (glib_minor_version != GLIB_MINOR_VERSION) ||
26304           (glib_micro_version != GLIB_MICRO_VERSION))
26305    {
26306      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
26307	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
26308      printf("*** library (version %d.%d.%d)\n",
26309	     glib_major_version, glib_minor_version, glib_micro_version);
26310    }
26311  else
26312    {
26313      if ((glib_major_version > major) ||
26314        ((glib_major_version == major) && (glib_minor_version > minor)) ||
26315        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
26316      {
26317        return 0;
26318       }
26319     else
26320      {
26321        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
26322               glib_major_version, glib_minor_version, glib_micro_version);
26323        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
26324	       major, minor, micro);
26325        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
26326        printf("***\n");
26327        printf("*** If you have already installed a sufficiently new version, this error\n");
26328        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
26329        printf("*** being found. The easiest way to fix this is to remove the old version\n");
26330        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
26331        printf("*** correct copy of glib-config. (In this case, you will have to\n");
26332        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26333        printf("*** so that the correct libraries are found at run-time))\n");
26334      }
26335    }
26336  return 1;
26337}
26338
26339_ACEOF
26340rm -f conftest$ac_exeext
26341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26342  (eval $ac_link) 2>&5
26343  ac_status=$?
26344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347  (eval $ac_try) 2>&5
26348  ac_status=$?
26349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350  (exit $ac_status); }; }; then
26351  :
26352else
26353  echo "$as_me: program exited with status $ac_status" >&5
26354echo "$as_me: failed program was:" >&5
26355sed 's/^/| /' conftest.$ac_ext >&5
26356
26357( exit $ac_status )
26358no_glib=yes
26359fi
26360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26361fi
26362       CFLAGS="$ac_save_CFLAGS"
26363       LIBS="$ac_save_LIBS"
26364     fi
26365  fi
26366  if test "x$no_glib" = x ; then
26367     echo "$as_me:$LINENO: result: yes" >&5
26368echo "${ECHO_T}yes" >&6
26369
26370cat >>confdefs.h <<\_ACEOF
26371#define ENABLE_GLIB 1
26372_ACEOF
26373
26374  else
26375     echo "$as_me:$LINENO: result: no" >&5
26376echo "${ECHO_T}no" >&6
26377     if test "$GLIB_CONFIG" = "no" ; then
26378       echo "*** The glib-config script installed by GLIB could not be found"
26379       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
26380       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
26381       echo "*** full path to glib-config."
26382     else
26383       if test -f conf.glibtest ; then
26384        :
26385       else
26386          echo "*** Could not run GLIB test program, checking why..."
26387          CFLAGS="$CFLAGS $GLIB_CFLAGS"
26388          LIBS="$LIBS $GLIB_LIBS"
26389          cat >conftest.$ac_ext <<_ACEOF
26390/* confdefs.h.  */
26391_ACEOF
26392cat confdefs.h >>conftest.$ac_ext
26393cat >>conftest.$ac_ext <<_ACEOF
26394/* end confdefs.h.  */
26395
26396#include <glib.h>
26397#include <stdio.h>
26398
26399int
26400main ()
26401{
26402 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
26403  ;
26404  return 0;
26405}
26406_ACEOF
26407rm -f conftest.$ac_objext conftest$ac_exeext
26408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26409  (eval $ac_link) 2>conftest.er1
26410  ac_status=$?
26411  grep -v '^ *+' conftest.er1 >conftest.err
26412  rm -f conftest.er1
26413  cat conftest.err >&5
26414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415  (exit $ac_status); } &&
26416	 { ac_try='test -z "$ac_c_werror_flag"
26417			 || test ! -s conftest.err'
26418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26419  (eval $ac_try) 2>&5
26420  ac_status=$?
26421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422  (exit $ac_status); }; } &&
26423	 { ac_try='test -s conftest$ac_exeext'
26424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425  (eval $ac_try) 2>&5
26426  ac_status=$?
26427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428  (exit $ac_status); }; }; then
26429   echo "*** The test program compiled, but did not run. This usually means"
26430          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
26431          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
26432          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26433          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
26434          echo "*** is required on your system"
26435	  echo "***"
26436          echo "*** If you have an old version installed, it is best to remove it, although"
26437          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26438          echo "***"
26439          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26440          echo "*** came with the system with the command"
26441          echo "***"
26442          echo "***    rpm --erase --nodeps gtk gtk-devel"
26443else
26444  echo "$as_me: failed program was:" >&5
26445sed 's/^/| /' conftest.$ac_ext >&5
26446
26447 echo "*** The test program failed to compile or link. See the file config.log for the"
26448          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
26449          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
26450          echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
26451fi
26452rm -f conftest.err conftest.$ac_objext \
26453      conftest$ac_exeext conftest.$ac_ext
26454          CFLAGS="$ac_save_CFLAGS"
26455          LIBS="$ac_save_LIBS"
26456       fi
26457     fi
26458     GLIB_CFLAGS=""
26459     GLIB_LIBS=""
26460     echo "$as_me:$LINENO: result: No glib-1.2 found. Next check glib-2.0" >&5
26461echo "${ECHO_T}No glib-1.2 found. Next check glib-2.0" >&6
26462     no_glib12=yes
26463
26464
26465  fi
26466
26467
26468  rm -f conf.glibtest
26469
26470
26471if test "x$no_glib12" = xyes; then
26472  # Check whether --enable-glibtest or --disable-glibtest was given.
26473if test "${enable_glibtest+set}" = set; then
26474  enableval="$enable_glibtest"
26475
26476else
26477  enable_glibtest=yes
26478fi;
26479
26480  pkg_config_args=glib-2.0
26481  for module in .
26482  do
26483      case "$module" in
26484         gmodule)
26485             pkg_config_args="$pkg_config_args gmodule-2.0"
26486         ;;
26487         gmodule-no-export)
26488             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
26489         ;;
26490         gobject)
26491             pkg_config_args="$pkg_config_args gobject-2.0"
26492         ;;
26493         gthread)
26494             pkg_config_args="$pkg_config_args gthread-2.0"
26495         ;;
26496      esac
26497  done
26498
26499  # Extract the first word of "pkg-config", so it can be a program name with args.
26500set dummy pkg-config; ac_word=$2
26501echo "$as_me:$LINENO: checking for $ac_word" >&5
26502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26503if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26504  echo $ECHO_N "(cached) $ECHO_C" >&6
26505else
26506  case $PKG_CONFIG in
26507  [\\/]* | ?:[\\/]*)
26508  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26509  ;;
26510  *)
26511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26512for as_dir in $PATH
26513do
26514  IFS=$as_save_IFS
26515  test -z "$as_dir" && as_dir=.
26516  for ac_exec_ext in '' $ac_executable_extensions; do
26517  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26518    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26520    break 2
26521  fi
26522done
26523done
26524
26525  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26526  ;;
26527esac
26528fi
26529PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26530
26531if test -n "$PKG_CONFIG"; then
26532  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26533echo "${ECHO_T}$PKG_CONFIG" >&6
26534else
26535  echo "$as_me:$LINENO: result: no" >&5
26536echo "${ECHO_T}no" >&6
26537fi
26538
26539
26540  no_glib=""
26541
26542  if test x$PKG_CONFIG != xno ; then
26543    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
26544      :
26545    else
26546      echo *** pkg-config too old; version 0.7 or better required.
26547      no_glib=yes
26548      PKG_CONFIG=no
26549    fi
26550  else
26551    no_glib=yes
26552  fi
26553
26554  min_glib_version=2.0.0
26555  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
26556echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
26557
26558  if test x$PKG_CONFIG != xno ; then
26559    ## don't try to run the test against uninstalled libtool libs
26560    if $PKG_CONFIG --uninstalled $pkg_config_args; then
26561	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
26562	  enable_glibtest=no
26563    fi
26564
26565    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
26566	  :
26567    else
26568	  no_glib=yes
26569    fi
26570  fi
26571
26572  if test x"$no_glib" = x ; then
26573    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
26574    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
26575    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
26576
26577    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
26578    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
26579    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
26580           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26581    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
26582           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26583    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
26584           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26585    if test "x$enable_glibtest" = "xyes" ; then
26586      ac_save_CFLAGS="$CFLAGS"
26587      ac_save_LIBS="$LIBS"
26588      CFLAGS="$CFLAGS $GLIB_CFLAGS"
26589      LIBS="$GLIB_LIBS $LIBS"
26590      rm -f conf.glibtest
26591      if test "$cross_compiling" = yes; then
26592  echo $ac_n "cross compiling; assumed OK... $ac_c"
26593else
26594  cat >conftest.$ac_ext <<_ACEOF
26595/* confdefs.h.  */
26596_ACEOF
26597cat confdefs.h >>conftest.$ac_ext
26598cat >>conftest.$ac_ext <<_ACEOF
26599/* end confdefs.h.  */
26600
26601#include <glib.h>
26602#include <stdio.h>
26603#include <stdlib.h>
26604
26605int
26606main ()
26607{
26608  int major, minor, micro;
26609  char *tmp_version;
26610
26611  system ("touch conf.glibtest");
26612
26613  /* HP/UX 9 (%@#!) writes to sscanf strings */
26614  tmp_version = g_strdup("$min_glib_version");
26615  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26616     printf("%s, bad version string\n", "$min_glib_version");
26617     exit(1);
26618   }
26619
26620  if ((glib_major_version != $glib_config_major_version) ||
26621      (glib_minor_version != $glib_config_minor_version) ||
26622      (glib_micro_version != $glib_config_micro_version))
26623    {
26624      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
26625             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
26626             glib_major_version, glib_minor_version, glib_micro_version);
26627      printf ("*** was found! If pkg-config was correct, then it is best\n");
26628      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
26629      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26630      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26631      printf("*** required on your system.\n");
26632      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26633      printf("*** to point to the correct configuration files\n");
26634    }
26635  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
26636	   (glib_minor_version != GLIB_MINOR_VERSION) ||
26637           (glib_micro_version != GLIB_MICRO_VERSION))
26638    {
26639      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
26640	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
26641      printf("*** library (version %d.%d.%d)\n",
26642	     glib_major_version, glib_minor_version, glib_micro_version);
26643    }
26644  else
26645    {
26646      if ((glib_major_version > major) ||
26647        ((glib_major_version == major) && (glib_minor_version > minor)) ||
26648        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
26649      {
26650        return 0;
26651       }
26652     else
26653      {
26654        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
26655               glib_major_version, glib_minor_version, glib_micro_version);
26656        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
26657	       major, minor, micro);
26658        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
26659        printf("***\n");
26660        printf("*** If you have already installed a sufficiently new version, this error\n");
26661        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26662        printf("*** being found. The easiest way to fix this is to remove the old version\n");
26663        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
26664        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26665        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26666        printf("*** so that the correct libraries are found at run-time))\n");
26667      }
26668    }
26669  return 1;
26670}
26671
26672_ACEOF
26673rm -f conftest$ac_exeext
26674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26675  (eval $ac_link) 2>&5
26676  ac_status=$?
26677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680  (eval $ac_try) 2>&5
26681  ac_status=$?
26682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683  (exit $ac_status); }; }; then
26684  :
26685else
26686  echo "$as_me: program exited with status $ac_status" >&5
26687echo "$as_me: failed program was:" >&5
26688sed 's/^/| /' conftest.$ac_ext >&5
26689
26690( exit $ac_status )
26691no_glib=yes
26692fi
26693rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26694fi
26695       CFLAGS="$ac_save_CFLAGS"
26696       LIBS="$ac_save_LIBS"
26697     fi
26698  fi
26699  if test "x$no_glib" = x ; then
26700     echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
26701echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
26702
26703cat >>confdefs.h <<\_ACEOF
26704#define ENABLE_GLIB 1
26705_ACEOF
26706
26707  else
26708     echo "$as_me:$LINENO: result: no" >&5
26709echo "${ECHO_T}no" >&6
26710     if test "$PKG_CONFIG" = "no" ; then
26711       echo "*** A new enough version of pkg-config was not found."
26712       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
26713     else
26714       if test -f conf.glibtest ; then
26715        :
26716       else
26717          echo "*** Could not run GLIB test program, checking why..."
26718          ac_save_CFLAGS="$CFLAGS"
26719          ac_save_LIBS="$LIBS"
26720          CFLAGS="$CFLAGS $GLIB_CFLAGS"
26721          LIBS="$LIBS $GLIB_LIBS"
26722          cat >conftest.$ac_ext <<_ACEOF
26723/* confdefs.h.  */
26724_ACEOF
26725cat confdefs.h >>conftest.$ac_ext
26726cat >>conftest.$ac_ext <<_ACEOF
26727/* end confdefs.h.  */
26728
26729#include <glib.h>
26730#include <stdio.h>
26731
26732int
26733main ()
26734{
26735 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
26736  ;
26737  return 0;
26738}
26739_ACEOF
26740rm -f conftest.$ac_objext conftest$ac_exeext
26741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26742  (eval $ac_link) 2>conftest.er1
26743  ac_status=$?
26744  grep -v '^ *+' conftest.er1 >conftest.err
26745  rm -f conftest.er1
26746  cat conftest.err >&5
26747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748  (exit $ac_status); } &&
26749	 { ac_try='test -z "$ac_c_werror_flag"
26750			 || test ! -s conftest.err'
26751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752  (eval $ac_try) 2>&5
26753  ac_status=$?
26754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755  (exit $ac_status); }; } &&
26756	 { ac_try='test -s conftest$ac_exeext'
26757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758  (eval $ac_try) 2>&5
26759  ac_status=$?
26760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761  (exit $ac_status); }; }; then
26762   echo "*** The test program compiled, but did not run. This usually means"
26763          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
26764          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
26765          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26766          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
26767          echo "*** is required on your system"
26768	  echo "***"
26769          echo "*** If you have an old version installed, it is best to remove it, although"
26770          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26771else
26772  echo "$as_me: failed program was:" >&5
26773sed 's/^/| /' conftest.$ac_ext >&5
26774
26775 echo "*** The test program failed to compile or link. See the file config.log for the"
26776          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
26777fi
26778rm -f conftest.err conftest.$ac_objext \
26779      conftest$ac_exeext conftest.$ac_ext
26780          CFLAGS="$ac_save_CFLAGS"
26781          LIBS="$ac_save_LIBS"
26782       fi
26783     fi
26784     GLIB_CFLAGS=""
26785     GLIB_LIBS=""
26786     GLIB_GENMARSHAL=""
26787     GOBJECT_QUERY=""
26788     GLIB_MKENUMS=""
26789     echo "$as_me:$LINENO: result: No glib-2.x found. Next check glib-1.0 in gtk" >&5
26790echo "${ECHO_T}No glib-2.x found. Next check glib-1.0 in gtk" >&6
26791     must_gtk=yes
26792
26793
26794  fi
26795
26796
26797
26798
26799
26800  rm -f conf.glibtest
26801
26802fi
26803
26804
26805# Check whether --enable-gtk or --disable-gtk was given.
26806if test "${enable_gtk+set}" = set; then
26807  enableval="$enable_gtk"
26808
26809else
26810  enable_gtk=yes
26811fi;
26812if test "x$must_gtk" = xyes; then
26813  if test "x$enable_gtk" != xyes; then
26814    enable_gtk=yes
26815  fi
26816fi
26817
26818no_gtk1x=no
26819have_gtk=no
26820if test "x$enable_gtk" = xyes; then
26821
26822# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26823if test "${with_gtk_prefix+set}" = set; then
26824  withval="$with_gtk_prefix"
26825  gtk_config_prefix="$withval"
26826else
26827  gtk_config_prefix=""
26828fi;
26829
26830# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26831if test "${with_gtk_exec_prefix+set}" = set; then
26832  withval="$with_gtk_exec_prefix"
26833  gtk_config_exec_prefix="$withval"
26834else
26835  gtk_config_exec_prefix=""
26836fi;
26837# Check whether --enable-gtktest or --disable-gtktest was given.
26838if test "${enable_gtktest+set}" = set; then
26839  enableval="$enable_gtktest"
26840
26841else
26842  enable_gtktest=yes
26843fi;
26844
26845  for module in .
26846  do
26847      case "$module" in
26848         gthread)
26849             gtk_config_args="$gtk_config_args gthread"
26850         ;;
26851      esac
26852  done
26853
26854  if test x$gtk_config_exec_prefix != x ; then
26855     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26856     if test x${GTK_CONFIG+set} != xset ; then
26857        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26858     fi
26859  fi
26860  if test x$gtk_config_prefix != x ; then
26861     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26862     if test x${GTK_CONFIG+set} != xset ; then
26863        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26864     fi
26865  fi
26866
26867  # Extract the first word of "gtk-config", so it can be a program name with args.
26868set dummy gtk-config; ac_word=$2
26869echo "$as_me:$LINENO: checking for $ac_word" >&5
26870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26871if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26872  echo $ECHO_N "(cached) $ECHO_C" >&6
26873else
26874  case $GTK_CONFIG in
26875  [\\/]* | ?:[\\/]*)
26876  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26877  ;;
26878  *)
26879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26880for as_dir in $PATH
26881do
26882  IFS=$as_save_IFS
26883  test -z "$as_dir" && as_dir=.
26884  for ac_exec_ext in '' $ac_executable_extensions; do
26885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26886    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26888    break 2
26889  fi
26890done
26891done
26892
26893  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26894  ;;
26895esac
26896fi
26897GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26898
26899if test -n "$GTK_CONFIG"; then
26900  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26901echo "${ECHO_T}$GTK_CONFIG" >&6
26902else
26903  echo "$as_me:$LINENO: result: no" >&5
26904echo "${ECHO_T}no" >&6
26905fi
26906
26907  min_gtk_version=1.0.0
26908  echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26909echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26910  no_gtk=""
26911  if test "$GTK_CONFIG" = "no" ; then
26912    no_gtk=yes
26913  else
26914    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26915    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26916    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26917           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26918    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26919           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26920    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26921           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26922    if test "x$enable_gtktest" = "xyes" ; then
26923      ac_save_CFLAGS="$CFLAGS"
26924      ac_save_LIBS="$LIBS"
26925      CFLAGS="$CFLAGS $GTK_CFLAGS"
26926      LIBS="$GTK_LIBS $LIBS"
26927      rm -f conf.gtktest
26928      if test "$cross_compiling" = yes; then
26929  echo $ac_n "cross compiling; assumed OK... $ac_c"
26930else
26931  cat >conftest.$ac_ext <<_ACEOF
26932/* confdefs.h.  */
26933_ACEOF
26934cat confdefs.h >>conftest.$ac_ext
26935cat >>conftest.$ac_ext <<_ACEOF
26936/* end confdefs.h.  */
26937
26938#include <gtk/gtk.h>
26939#include <stdio.h>
26940#include <stdlib.h>
26941
26942int
26943main ()
26944{
26945  int major, minor, micro;
26946  char *tmp_version;
26947
26948  system ("touch conf.gtktest");
26949
26950  /* HP/UX 9 (%@#!) writes to sscanf strings */
26951  tmp_version = g_strdup("$min_gtk_version");
26952  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26953     printf("%s, bad version string\n", "$min_gtk_version");
26954     exit(1);
26955   }
26956
26957  if ((gtk_major_version != $gtk_config_major_version) ||
26958      (gtk_minor_version != $gtk_config_minor_version) ||
26959      (gtk_micro_version != $gtk_config_micro_version))
26960    {
26961      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26962             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26963             gtk_major_version, gtk_minor_version, gtk_micro_version);
26964      printf ("*** was found! If gtk-config was correct, then it is best\n");
26965      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26966      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26967      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26968      printf("*** required on your system.\n");
26969      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26970      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26971      printf("*** before re-running configure\n");
26972    }
26973#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26974  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26975	   (gtk_minor_version != GTK_MINOR_VERSION) ||
26976           (gtk_micro_version != GTK_MICRO_VERSION))
26977    {
26978      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26979	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26980      printf("*** library (version %d.%d.%d)\n",
26981	     gtk_major_version, gtk_minor_version, gtk_micro_version);
26982    }
26983#endif /* defined (GTK_MAJOR_VERSION) ... */
26984  else
26985    {
26986      if ((gtk_major_version > major) ||
26987        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26988        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26989      {
26990        return 0;
26991       }
26992     else
26993      {
26994        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26995               gtk_major_version, gtk_minor_version, gtk_micro_version);
26996        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26997	       major, minor, micro);
26998        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26999        printf("***\n");
27000        printf("*** If you have already installed a sufficiently new version, this error\n");
27001        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27002        printf("*** being found. The easiest way to fix this is to remove the old version\n");
27003        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27004        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27005        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27006        printf("*** so that the correct libraries are found at run-time))\n");
27007      }
27008    }
27009  return 1;
27010}
27011
27012_ACEOF
27013rm -f conftest$ac_exeext
27014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27015  (eval $ac_link) 2>&5
27016  ac_status=$?
27017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020  (eval $ac_try) 2>&5
27021  ac_status=$?
27022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023  (exit $ac_status); }; }; then
27024  :
27025else
27026  echo "$as_me: program exited with status $ac_status" >&5
27027echo "$as_me: failed program was:" >&5
27028sed 's/^/| /' conftest.$ac_ext >&5
27029
27030( exit $ac_status )
27031no_gtk=yes
27032fi
27033rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27034fi
27035       CFLAGS="$ac_save_CFLAGS"
27036       LIBS="$ac_save_LIBS"
27037     fi
27038  fi
27039  if test "x$no_gtk" = x ; then
27040     echo "$as_me:$LINENO: result: yes" >&5
27041echo "${ECHO_T}yes" >&6
27042
27043cat >>confdefs.h <<\_ACEOF
27044#define ENABLE_GTK 1
27045_ACEOF
27046
27047  else
27048     echo "$as_me:$LINENO: result: no" >&5
27049echo "${ECHO_T}no" >&6
27050     if test "$GTK_CONFIG" = "no" ; then
27051       echo "*** The gtk-config script installed by GTK could not be found"
27052       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27053       echo "*** your path, or set the GTK_CONFIG environment variable to the"
27054       echo "*** full path to gtk-config."
27055     else
27056       if test -f conf.gtktest ; then
27057        :
27058       else
27059          echo "*** Could not run GTK test program, checking why..."
27060          CFLAGS="$CFLAGS $GTK_CFLAGS"
27061          LIBS="$LIBS $GTK_LIBS"
27062          cat >conftest.$ac_ext <<_ACEOF
27063/* confdefs.h.  */
27064_ACEOF
27065cat confdefs.h >>conftest.$ac_ext
27066cat >>conftest.$ac_ext <<_ACEOF
27067/* end confdefs.h.  */
27068
27069#include <gtk/gtk.h>
27070#include <stdio.h>
27071
27072int
27073main ()
27074{
27075 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27076  ;
27077  return 0;
27078}
27079_ACEOF
27080rm -f conftest.$ac_objext conftest$ac_exeext
27081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27082  (eval $ac_link) 2>conftest.er1
27083  ac_status=$?
27084  grep -v '^ *+' conftest.er1 >conftest.err
27085  rm -f conftest.er1
27086  cat conftest.err >&5
27087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088  (exit $ac_status); } &&
27089	 { ac_try='test -z "$ac_c_werror_flag"
27090			 || test ! -s conftest.err'
27091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092  (eval $ac_try) 2>&5
27093  ac_status=$?
27094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095  (exit $ac_status); }; } &&
27096	 { ac_try='test -s conftest$ac_exeext'
27097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098  (eval $ac_try) 2>&5
27099  ac_status=$?
27100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101  (exit $ac_status); }; }; then
27102   echo "*** The test program compiled, but did not run. This usually means"
27103          echo "*** that the run-time linker is not finding GTK or finding the wrong"
27104          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27105          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27106          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27107          echo "*** is required on your system"
27108	  echo "***"
27109          echo "*** If you have an old version installed, it is best to remove it, although"
27110          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27111          echo "***"
27112          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27113          echo "*** came with the system with the command"
27114          echo "***"
27115          echo "***    rpm --erase --nodeps gtk gtk-devel"
27116else
27117  echo "$as_me: failed program was:" >&5
27118sed 's/^/| /' conftest.$ac_ext >&5
27119
27120 echo "*** The test program failed to compile or link. See the file config.log for the"
27121          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27122          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27123          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27124fi
27125rm -f conftest.err conftest.$ac_objext \
27126      conftest$ac_exeext conftest.$ac_ext
27127          CFLAGS="$ac_save_CFLAGS"
27128          LIBS="$ac_save_LIBS"
27129       fi
27130     fi
27131     GTK_CFLAGS=""
27132     GTK_LIBS=""
27133     echo "$as_me:$LINENO: result: No gtk-1.x found. Next check gtk-2.x" >&5
27134echo "${ECHO_T}No gtk-1.x found. Next check gtk-2.x" >&6
27135     no_gtk1x=yes
27136
27137
27138  fi
27139
27140
27141  rm -f conf.gtktest
27142
27143  if test "x$no_gtk1x" = xyes; then
27144    # Check whether --enable-gtktest or --disable-gtktest was given.
27145if test "${enable_gtktest+set}" = set; then
27146  enableval="$enable_gtktest"
27147
27148else
27149  enable_gtktest=yes
27150fi;
27151
27152  pkg_config_args=gtk+-2.0
27153  for module in .
27154  do
27155      case "$module" in
27156         gthread)
27157             pkg_config_args="$pkg_config_args gthread-2.0"
27158         ;;
27159      esac
27160  done
27161
27162  no_gtk=""
27163
27164  # Extract the first word of "pkg-config", so it can be a program name with args.
27165set dummy pkg-config; ac_word=$2
27166echo "$as_me:$LINENO: checking for $ac_word" >&5
27167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27168if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27169  echo $ECHO_N "(cached) $ECHO_C" >&6
27170else
27171  case $PKG_CONFIG in
27172  [\\/]* | ?:[\\/]*)
27173  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27174  ;;
27175  *)
27176  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27177for as_dir in $PATH
27178do
27179  IFS=$as_save_IFS
27180  test -z "$as_dir" && as_dir=.
27181  for ac_exec_ext in '' $ac_executable_extensions; do
27182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27183    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27185    break 2
27186  fi
27187done
27188done
27189
27190  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27191  ;;
27192esac
27193fi
27194PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27195
27196if test -n "$PKG_CONFIG"; then
27197  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27198echo "${ECHO_T}$PKG_CONFIG" >&6
27199else
27200  echo "$as_me:$LINENO: result: no" >&5
27201echo "${ECHO_T}no" >&6
27202fi
27203
27204
27205  if test x$PKG_CONFIG != xno ; then
27206    if pkg-config --atleast-pkgconfig-version 0.7 ; then
27207      :
27208    else
27209      echo "*** pkg-config too old; version 0.7 or better required."
27210      no_gtk=yes
27211      PKG_CONFIG=no
27212    fi
27213  else
27214    no_gtk=yes
27215  fi
27216
27217  min_gtk_version=2.0.0
27218  echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27219echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27220
27221  if test x$PKG_CONFIG != xno ; then
27222    ## don't try to run the test against uninstalled libtool libs
27223    if $PKG_CONFIG --uninstalled $pkg_config_args; then
27224	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27225	  enable_gtktest=no
27226    fi
27227
27228    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27229	  :
27230    else
27231	  no_gtk=yes
27232    fi
27233  fi
27234
27235  if test x"$no_gtk" = x ; then
27236    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27237    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27238    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27239           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27240    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27241           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27242    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27243           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27244    if test "x$enable_gtktest" = "xyes" ; then
27245      ac_save_CFLAGS="$CFLAGS"
27246      ac_save_LIBS="$LIBS"
27247      CFLAGS="$CFLAGS $GTK_CFLAGS"
27248      LIBS="$GTK_LIBS $LIBS"
27249      rm -f conf.gtktest
27250      if test "$cross_compiling" = yes; then
27251  echo $ac_n "cross compiling; assumed OK... $ac_c"
27252else
27253  cat >conftest.$ac_ext <<_ACEOF
27254/* confdefs.h.  */
27255_ACEOF
27256cat confdefs.h >>conftest.$ac_ext
27257cat >>conftest.$ac_ext <<_ACEOF
27258/* end confdefs.h.  */
27259
27260#include <gtk/gtk.h>
27261#include <stdio.h>
27262#include <stdlib.h>
27263
27264int
27265main ()
27266{
27267  int major, minor, micro;
27268  char *tmp_version;
27269
27270  system ("touch conf.gtktest");
27271
27272  /* HP/UX 9 (%@#!) writes to sscanf strings */
27273  tmp_version = g_strdup("$min_gtk_version");
27274  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27275     printf("%s, bad version string\n", "$min_gtk_version");
27276     exit(1);
27277   }
27278
27279  if ((gtk_major_version != $gtk_config_major_version) ||
27280      (gtk_minor_version != $gtk_config_minor_version) ||
27281      (gtk_micro_version != $gtk_config_micro_version))
27282    {
27283      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27284             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27285             gtk_major_version, gtk_minor_version, gtk_micro_version);
27286      printf ("*** was found! If pkg-config was correct, then it is best\n");
27287      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27288      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27289      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27290      printf("*** required on your system.\n");
27291      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27292      printf("*** to point to the correct configuration files\n");
27293    }
27294  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27295	   (gtk_minor_version != GTK_MINOR_VERSION) ||
27296           (gtk_micro_version != GTK_MICRO_VERSION))
27297    {
27298      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27299	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27300      printf("*** library (version %d.%d.%d)\n",
27301	     gtk_major_version, gtk_minor_version, gtk_micro_version);
27302    }
27303  else
27304    {
27305      if ((gtk_major_version > major) ||
27306        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27307        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27308      {
27309        return 0;
27310       }
27311     else
27312      {
27313        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27314               gtk_major_version, gtk_minor_version, gtk_micro_version);
27315        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27316	       major, minor, micro);
27317        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27318        printf("***\n");
27319        printf("*** If you have already installed a sufficiently new version, this error\n");
27320        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27321        printf("*** being found. The easiest way to fix this is to remove the old version\n");
27322        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27323        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27324        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27325        printf("*** so that the correct libraries are found at run-time))\n");
27326      }
27327    }
27328  return 1;
27329}
27330
27331_ACEOF
27332rm -f conftest$ac_exeext
27333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27334  (eval $ac_link) 2>&5
27335  ac_status=$?
27336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27339  (eval $ac_try) 2>&5
27340  ac_status=$?
27341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342  (exit $ac_status); }; }; then
27343  :
27344else
27345  echo "$as_me: program exited with status $ac_status" >&5
27346echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349( exit $ac_status )
27350no_gtk=yes
27351fi
27352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27353fi
27354       CFLAGS="$ac_save_CFLAGS"
27355       LIBS="$ac_save_LIBS"
27356     fi
27357  fi
27358  if test "x$no_gtk" = x ; then
27359     echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27360echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27361
27362cat >>confdefs.h <<\_ACEOF
27363#define ENABLE_GTK 1
27364_ACEOF
27365
27366  else
27367     echo "$as_me:$LINENO: result: no" >&5
27368echo "${ECHO_T}no" >&6
27369     if test "$PKG_CONFIG" = "no" ; then
27370       echo "*** A new enough version of pkg-config was not found."
27371       echo "*** See http://pkgconfig.sourceforge.net"
27372     else
27373       if test -f conf.gtktest ; then
27374        :
27375       else
27376          echo "*** Could not run GTK+ test program, checking why..."
27377	  ac_save_CFLAGS="$CFLAGS"
27378	  ac_save_LIBS="$LIBS"
27379          CFLAGS="$CFLAGS $GTK_CFLAGS"
27380          LIBS="$LIBS $GTK_LIBS"
27381          cat >conftest.$ac_ext <<_ACEOF
27382/* confdefs.h.  */
27383_ACEOF
27384cat confdefs.h >>conftest.$ac_ext
27385cat >>conftest.$ac_ext <<_ACEOF
27386/* end confdefs.h.  */
27387
27388#include <gtk/gtk.h>
27389#include <stdio.h>
27390
27391int
27392main ()
27393{
27394 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27395  ;
27396  return 0;
27397}
27398_ACEOF
27399rm -f conftest.$ac_objext conftest$ac_exeext
27400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27401  (eval $ac_link) 2>conftest.er1
27402  ac_status=$?
27403  grep -v '^ *+' conftest.er1 >conftest.err
27404  rm -f conftest.er1
27405  cat conftest.err >&5
27406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407  (exit $ac_status); } &&
27408	 { ac_try='test -z "$ac_c_werror_flag"
27409			 || test ! -s conftest.err'
27410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411  (eval $ac_try) 2>&5
27412  ac_status=$?
27413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414  (exit $ac_status); }; } &&
27415	 { ac_try='test -s conftest$ac_exeext'
27416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27417  (eval $ac_try) 2>&5
27418  ac_status=$?
27419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420  (exit $ac_status); }; }; then
27421   echo "*** The test program compiled, but did not run. This usually means"
27422          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27423          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27424          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27425          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27426          echo "*** is required on your system"
27427	  echo "***"
27428          echo "*** If you have an old version installed, it is best to remove it, although"
27429          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27430else
27431  echo "$as_me: failed program was:" >&5
27432sed 's/^/| /' conftest.$ac_ext >&5
27433
27434 echo "*** The test program failed to compile or link. See the file config.log for the"
27435          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27436fi
27437rm -f conftest.err conftest.$ac_objext \
27438      conftest$ac_exeext conftest.$ac_ext
27439          CFLAGS="$ac_save_CFLAGS"
27440          LIBS="$ac_save_LIBS"
27441       fi
27442     fi
27443     GTK_CFLAGS=""
27444     GTK_LIBS=""
27445     { { echo "$as_me:$LINENO: error: *** check for GTK failed ***" >&5
27446echo "$as_me: error: *** check for GTK failed ***" >&2;}
27447   { (exit 1); exit 1; }; }
27448
27449  fi
27450
27451
27452  rm -f conf.gtktest
27453
27454  fi
27455  have_gtk=yes
27456fi
27457
27458
27459
27460
27461
27462if test "x$have_gtk" = xyes; then
27463  HAVE_GTK_TRUE=
27464  HAVE_GTK_FALSE='#'
27465else
27466  HAVE_GTK_TRUE='#'
27467  HAVE_GTK_FALSE=
27468fi
27469
27470SRC_MENU=
27471if test "x$have_gtk" = xyes ; then
27472  SRC_MENU="menu.c menu_callback.c menu_gui.c"
27473else
27474  SRC_MENU="menu_null.c"
27475fi
27476
27477
27478if test "x$must_gtk" = xyes; then
27479  GLIB_CFLAGS="$GTK_CFLAGS"
27480  GLIB_LIBS="$GTK_LIBS"
27481fi
27482
27483
27484# Check whether --enable-audio or --disable-audio was given.
27485if test "${enable_audio+set}" = set; then
27486  enableval="$enable_audio"
27487   enable_audio=$enableval
27488else
27489   enable_audio=yes
27490fi;
27491
27492test "x$enable_audio" = xyes && enable_audio=default
27493
27494if test "x$enable_audio" != xno; then
27495  for i in `echo $enable_audio | sed 's/,/ /g'`; do
27496    eval "enable_$i=yes"
27497  done
27498  if test "x$enable_default" = xyes; then
27499    enable_audio=default
27500  fi
27501fi
27502
27503if test "x$enable_audio" = xdefault; then
27504  case "$target" in
27505    *-*-linux*|*-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
27506      enable_oss=yes
27507      ;;
27508    *-*-solaris*)
27509      enable_sun=yes
27510      ;;
27511    *)
27512      enable_esd=yes
27513      ;;
27514  esac
27515fi
27516
27517
27518have_sunaudio=no
27519if test "x$enable_sun" = xyes; then
27520  echo "$as_me:$LINENO: checking for Sun audio support" >&5
27521echo $ECHO_N "checking for Sun audio support... $ECHO_C" >&6
27522  cat >conftest.$ac_ext <<_ACEOF
27523/* confdefs.h.  */
27524_ACEOF
27525cat confdefs.h >>conftest.$ac_ext
27526cat >>conftest.$ac_ext <<_ACEOF
27527/* end confdefs.h.  */
27528
27529            #include <sys/types.h>
27530            #include <sys/audioio.h>
27531
27532int
27533main ()
27534{
27535
27536            audio_info_t audio_info;
27537            AUDIO_INITINFO(&audio_info);
27538
27539  ;
27540  return 0;
27541}
27542_ACEOF
27543rm -f conftest.$ac_objext
27544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27545  (eval $ac_compile) 2>conftest.er1
27546  ac_status=$?
27547  grep -v '^ *+' conftest.er1 >conftest.err
27548  rm -f conftest.er1
27549  cat conftest.err >&5
27550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551  (exit $ac_status); } &&
27552	 { ac_try='test -z "$ac_c_werror_flag"
27553			 || test ! -s conftest.err'
27554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555  (eval $ac_try) 2>&5
27556  ac_status=$?
27557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558  (exit $ac_status); }; } &&
27559	 { ac_try='test -s conftest.$ac_objext'
27560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561  (eval $ac_try) 2>&5
27562  ac_status=$?
27563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564  (exit $ac_status); }; }; then
27565
27566            have_sunaudio=yes
27567
27568else
27569  echo "$as_me: failed program was:" >&5
27570sed 's/^/| /' conftest.$ac_ext >&5
27571
27572fi
27573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27574  echo "$as_me:$LINENO: result: $have_sunaudio" >&5
27575echo "${ECHO_T}$have_sunaudio" >&6
27576  if test "x$have_sunaudio" = xyes; then
27577
27578cat >>confdefs.h <<\_ACEOF
27579#define ENABLE_SUNAUDIO 1
27580_ACEOF
27581
27582 fi
27583fi
27584
27585
27586have_ossaudio=no
27587if test "x$enable_oss" = xyes; then
27588  echo "$as_me:$LINENO: checking for OSS audio support" >&5
27589echo $ECHO_N "checking for OSS audio support... $ECHO_C" >&6
27590  case "$target" in
27591      *-*-netbsd*)
27592        EXTRALIBS="$EXTRALIBS -lossaudio"
27593        have_ossaudio=yes
27594        ;;
27595      *-*-openbsd*)
27596        EXTRACFLAGS="$EXTRACFLAGS -I/usr/local/lib/oss/include"
27597        EXTRALIBS="$EXTRALIBS -lossaudio"
27598        have_ossaudio=yes
27599        ;;
27600      *-*-linux*|*-*-freebsd*)
27601        have_ossaudio=yes
27602        ;;
27603      *)
27604        have_ossaudio=no
27605        ;;
27606  esac
27607  echo "$as_me:$LINENO: result: $have_ossaudio" >&5
27608echo "${ECHO_T}$have_ossaudio" >&6
27609  if test "x$have_ossaudio" = xyes; then
27610
27611cat >>confdefs.h <<\_ACEOF
27612#define ENABLE_OSS 1
27613_ACEOF
27614
27615  fi
27616fi
27617
27618
27619
27620if test "x$enable_alsa" = xyes; then
27621  alsa_save_CFLAGS="$CFLAGS"
27622alsa_save_LDFLAGS="$LDFLAGS"
27623alsa_save_LIBS="$LIBS"
27624alsa_found=yes
27625
27626
27627# Check whether --with-alsa-prefix or --without-alsa-prefix was given.
27628if test "${with_alsa_prefix+set}" = set; then
27629  withval="$with_alsa_prefix"
27630  alsa_prefix="$withval"
27631else
27632  alsa_prefix=""
27633fi;
27634
27635
27636# Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
27637if test "${with_alsa_inc_prefix+set}" = set; then
27638  withval="$with_alsa_inc_prefix"
27639  alsa_inc_prefix="$withval"
27640else
27641  alsa_inc_prefix=""
27642fi;
27643
27644# Check whether --enable-alsatest or --disable-alsatest was given.
27645if test "${enable_alsatest+set}" = set; then
27646  enableval="$enable_alsatest"
27647  enable_alsatest="$enableval"
27648else
27649  enable_alsatest=yes
27650fi;
27651
27652echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
27653echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
27654if test "$alsa_inc_prefix" != "" ; then
27655	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
27656	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
27657fi
27658echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
27659echo "${ECHO_T}$ALSA_CFLAGS" >&6
27660
27661echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
27662echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
27663if test "$alsa_prefix" != "" ; then
27664	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
27665	LDFLAGS="$LDFLAGS $ALSA_LIBS"
27666fi
27667
27668ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
27669LIBS=`echo $LIBS | sed 's/-lm//'`
27670LIBS=`echo $LIBS | sed 's/-ldl//'`
27671LIBS=`echo $LIBS | sed 's/-lpthread//'`
27672LIBS=`echo $LIBS | sed 's/  //'`
27673LIBS="$ALSA_LIBS $LIBS"
27674echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
27675echo "${ECHO_T}$ALSA_LIBS" >&6
27676
27677min_alsa_version=0.9.0
27678echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
27679echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
27680no_alsa=""
27681    alsa_min_major_version=`echo $min_alsa_version | \
27682           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27683    alsa_min_minor_version=`echo $min_alsa_version | \
27684           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27685    alsa_min_micro_version=`echo $min_alsa_version | \
27686           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27687
27688
27689
27690ac_ext=c
27691ac_cpp='$CPP $CPPFLAGS'
27692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27694ac_compiler_gnu=$ac_cv_c_compiler_gnu
27695
27696cat >conftest.$ac_ext <<_ACEOF
27697/* confdefs.h.  */
27698_ACEOF
27699cat confdefs.h >>conftest.$ac_ext
27700cat >>conftest.$ac_ext <<_ACEOF
27701/* end confdefs.h.  */
27702
27703#include <alsa/asoundlib.h>
27704
27705int
27706main ()
27707{
27708
27709/* ensure backward compatibility */
27710#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
27711#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
27712#endif
27713#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
27714#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
27715#endif
27716#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
27717#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
27718#endif
27719
27720#  if(SND_LIB_MAJOR > $alsa_min_major_version)
27721  exit(0);
27722#  else
27723#    if(SND_LIB_MAJOR < $alsa_min_major_version)
27724#       error not present
27725#    endif
27726
27727#   if(SND_LIB_MINOR > $alsa_min_minor_version)
27728  exit(0);
27729#   else
27730#     if(SND_LIB_MINOR < $alsa_min_minor_version)
27731#          error not present
27732#      endif
27733
27734#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
27735#        error not present
27736#      endif
27737#    endif
27738#  endif
27739exit(0);
27740
27741  ;
27742  return 0;
27743}
27744_ACEOF
27745rm -f conftest.$ac_objext
27746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27747  (eval $ac_compile) 2>conftest.er1
27748  ac_status=$?
27749  grep -v '^ *+' conftest.er1 >conftest.err
27750  rm -f conftest.er1
27751  cat conftest.err >&5
27752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753  (exit $ac_status); } &&
27754	 { ac_try='test -z "$ac_c_werror_flag"
27755			 || test ! -s conftest.err'
27756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27757  (eval $ac_try) 2>&5
27758  ac_status=$?
27759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760  (exit $ac_status); }; } &&
27761	 { ac_try='test -s conftest.$ac_objext'
27762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763  (eval $ac_try) 2>&5
27764  ac_status=$?
27765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766  (exit $ac_status); }; }; then
27767  echo "$as_me:$LINENO: result: found." >&5
27768echo "${ECHO_T}found." >&6
27769else
27770  echo "$as_me: failed program was:" >&5
27771sed 's/^/| /' conftest.$ac_ext >&5
27772
27773echo "$as_me:$LINENO: result: not present." >&5
27774echo "${ECHO_T}not present." >&6
27775
27776   alsa_found=no
27777
27778fi
27779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27780ac_ext=c
27781ac_cpp='$CPP $CPPFLAGS'
27782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27784ac_compiler_gnu=$ac_cv_c_compiler_gnu
27785
27786
27787if test "x$enable_alsatest" = "xyes"; then
27788
27789echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
27790echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
27791if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
27792  echo $ECHO_N "(cached) $ECHO_C" >&6
27793else
27794  ac_check_lib_save_LIBS=$LIBS
27795LIBS="-lasound  $LIBS"
27796cat >conftest.$ac_ext <<_ACEOF
27797/* confdefs.h.  */
27798_ACEOF
27799cat confdefs.h >>conftest.$ac_ext
27800cat >>conftest.$ac_ext <<_ACEOF
27801/* end confdefs.h.  */
27802
27803/* Override any gcc2 internal prototype to avoid an error.  */
27804#ifdef __cplusplus
27805extern "C"
27806#endif
27807/* We use char because int might match the return type of a gcc2
27808   builtin and then its argument prototype would still apply.  */
27809char snd_ctl_open ();
27810int
27811main ()
27812{
27813snd_ctl_open ();
27814  ;
27815  return 0;
27816}
27817_ACEOF
27818rm -f conftest.$ac_objext conftest$ac_exeext
27819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27820  (eval $ac_link) 2>conftest.er1
27821  ac_status=$?
27822  grep -v '^ *+' conftest.er1 >conftest.err
27823  rm -f conftest.er1
27824  cat conftest.err >&5
27825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826  (exit $ac_status); } &&
27827	 { ac_try='test -z "$ac_c_werror_flag"
27828			 || test ! -s conftest.err'
27829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27830  (eval $ac_try) 2>&5
27831  ac_status=$?
27832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833  (exit $ac_status); }; } &&
27834	 { ac_try='test -s conftest$ac_exeext'
27835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27836  (eval $ac_try) 2>&5
27837  ac_status=$?
27838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839  (exit $ac_status); }; }; then
27840  ac_cv_lib_asound_snd_ctl_open=yes
27841else
27842  echo "$as_me: failed program was:" >&5
27843sed 's/^/| /' conftest.$ac_ext >&5
27844
27845ac_cv_lib_asound_snd_ctl_open=no
27846fi
27847rm -f conftest.err conftest.$ac_objext \
27848      conftest$ac_exeext conftest.$ac_ext
27849LIBS=$ac_check_lib_save_LIBS
27850fi
27851echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
27852echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
27853if test $ac_cv_lib_asound_snd_ctl_open = yes; then
27854  cat >>confdefs.h <<_ACEOF
27855#define HAVE_LIBASOUND 1
27856_ACEOF
27857
27858  LIBS="-lasound $LIBS"
27859
27860else
27861
27862	 alsa_found=no
27863
27864fi
27865
27866fi
27867
27868if test "x$alsa_found" = "xyes" ; then
27869
27870cat >>confdefs.h <<\_ACEOF
27871#define ENABLE_ALSA09 1
27872_ACEOF
27873
27874                 have_alsa09=yes
27875
27876   LIBS=`echo $LIBS | sed 's/-lasound//g'`
27877   LIBS=`echo $LIBS | sed 's/  //'`
27878   LIBS="-lasound $LIBS"
27879fi
27880if test "x$alsa_found" = "xno" ; then
27881   have_alsa09=no
27882   CFLAGS="$alsa_save_CFLAGS"
27883   LDFLAGS="$alsa_save_LDFLAGS"
27884   LIBS="$alsa_save_LIBS"
27885   ALSA_CFLAGS=""
27886   ALSA_LIBS=""
27887fi
27888
27889
27890
27891
27892  if test "x$have_alsa09" = xno; then
27893    alsa_save_CFLAGS="$CFLAGS"
27894alsa_save_LDFLAGS="$LDFLAGS"
27895alsa_save_LIBS="$LIBS"
27896alsa_found=yes
27897
27898
27899# Check whether --with-alsa-prefix or --without-alsa-prefix was given.
27900if test "${with_alsa_prefix+set}" = set; then
27901  withval="$with_alsa_prefix"
27902  alsa_prefix="$withval"
27903else
27904  alsa_prefix=""
27905fi;
27906
27907
27908# Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
27909if test "${with_alsa_inc_prefix+set}" = set; then
27910  withval="$with_alsa_inc_prefix"
27911  alsa_inc_prefix="$withval"
27912else
27913  alsa_inc_prefix=""
27914fi;
27915
27916# Check whether --enable-alsatest or --disable-alsatest was given.
27917if test "${enable_alsatest+set}" = set; then
27918  enableval="$enable_alsatest"
27919  enable_alsatest="$enableval"
27920else
27921  enable_alsatest=yes
27922fi;
27923
27924echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
27925echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
27926if test "$alsa_inc_prefix" != "" ; then
27927	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
27928	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
27929fi
27930echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
27931echo "${ECHO_T}$ALSA_CFLAGS" >&6
27932
27933echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
27934echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
27935if test "$alsa_prefix" != "" ; then
27936	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
27937	LDFLAGS="$LDFLAGS $ALSA_LIBS"
27938fi
27939
27940ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
27941LIBS=`echo $LIBS | sed 's/-lm//'`
27942LIBS=`echo $LIBS | sed 's/-ldl//'`
27943LIBS=`echo $LIBS | sed 's/-lpthread//'`
27944LIBS=`echo $LIBS | sed 's/  //'`
27945LIBS="$ALSA_LIBS $LIBS"
27946echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
27947echo "${ECHO_T}$ALSA_LIBS" >&6
27948
27949min_alsa_version=0.5.0
27950echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
27951echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
27952no_alsa=""
27953    alsa_min_major_version=`echo $min_alsa_version | \
27954           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27955    alsa_min_minor_version=`echo $min_alsa_version | \
27956           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27957    alsa_min_micro_version=`echo $min_alsa_version | \
27958           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27959
27960
27961
27962ac_ext=c
27963ac_cpp='$CPP $CPPFLAGS'
27964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27966ac_compiler_gnu=$ac_cv_c_compiler_gnu
27967
27968cat >conftest.$ac_ext <<_ACEOF
27969/* confdefs.h.  */
27970_ACEOF
27971cat confdefs.h >>conftest.$ac_ext
27972cat >>conftest.$ac_ext <<_ACEOF
27973/* end confdefs.h.  */
27974
27975#include <alsa/asoundlib.h>
27976
27977int
27978main ()
27979{
27980
27981/* ensure backward compatibility */
27982#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
27983#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
27984#endif
27985#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
27986#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
27987#endif
27988#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
27989#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
27990#endif
27991
27992#  if(SND_LIB_MAJOR > $alsa_min_major_version)
27993  exit(0);
27994#  else
27995#    if(SND_LIB_MAJOR < $alsa_min_major_version)
27996#       error not present
27997#    endif
27998
27999#   if(SND_LIB_MINOR > $alsa_min_minor_version)
28000  exit(0);
28001#   else
28002#     if(SND_LIB_MINOR < $alsa_min_minor_version)
28003#          error not present
28004#      endif
28005
28006#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
28007#        error not present
28008#      endif
28009#    endif
28010#  endif
28011exit(0);
28012
28013  ;
28014  return 0;
28015}
28016_ACEOF
28017rm -f conftest.$ac_objext
28018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28019  (eval $ac_compile) 2>conftest.er1
28020  ac_status=$?
28021  grep -v '^ *+' conftest.er1 >conftest.err
28022  rm -f conftest.er1
28023  cat conftest.err >&5
28024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025  (exit $ac_status); } &&
28026	 { ac_try='test -z "$ac_c_werror_flag"
28027			 || test ! -s conftest.err'
28028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28029  (eval $ac_try) 2>&5
28030  ac_status=$?
28031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032  (exit $ac_status); }; } &&
28033	 { ac_try='test -s conftest.$ac_objext'
28034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035  (eval $ac_try) 2>&5
28036  ac_status=$?
28037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038  (exit $ac_status); }; }; then
28039  echo "$as_me:$LINENO: result: found." >&5
28040echo "${ECHO_T}found." >&6
28041else
28042  echo "$as_me: failed program was:" >&5
28043sed 's/^/| /' conftest.$ac_ext >&5
28044
28045echo "$as_me:$LINENO: result: not present." >&5
28046echo "${ECHO_T}not present." >&6
28047
28048   alsa_found=no
28049
28050fi
28051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28052ac_ext=c
28053ac_cpp='$CPP $CPPFLAGS'
28054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28056ac_compiler_gnu=$ac_cv_c_compiler_gnu
28057
28058
28059if test "x$enable_alsatest" = "xyes"; then
28060
28061echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
28062echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
28063if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
28064  echo $ECHO_N "(cached) $ECHO_C" >&6
28065else
28066  ac_check_lib_save_LIBS=$LIBS
28067LIBS="-lasound  $LIBS"
28068cat >conftest.$ac_ext <<_ACEOF
28069/* confdefs.h.  */
28070_ACEOF
28071cat confdefs.h >>conftest.$ac_ext
28072cat >>conftest.$ac_ext <<_ACEOF
28073/* end confdefs.h.  */
28074
28075/* Override any gcc2 internal prototype to avoid an error.  */
28076#ifdef __cplusplus
28077extern "C"
28078#endif
28079/* We use char because int might match the return type of a gcc2
28080   builtin and then its argument prototype would still apply.  */
28081char snd_ctl_open ();
28082int
28083main ()
28084{
28085snd_ctl_open ();
28086  ;
28087  return 0;
28088}
28089_ACEOF
28090rm -f conftest.$ac_objext conftest$ac_exeext
28091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28092  (eval $ac_link) 2>conftest.er1
28093  ac_status=$?
28094  grep -v '^ *+' conftest.er1 >conftest.err
28095  rm -f conftest.er1
28096  cat conftest.err >&5
28097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098  (exit $ac_status); } &&
28099	 { ac_try='test -z "$ac_c_werror_flag"
28100			 || test ! -s conftest.err'
28101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28102  (eval $ac_try) 2>&5
28103  ac_status=$?
28104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105  (exit $ac_status); }; } &&
28106	 { ac_try='test -s conftest$ac_exeext'
28107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28108  (eval $ac_try) 2>&5
28109  ac_status=$?
28110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111  (exit $ac_status); }; }; then
28112  ac_cv_lib_asound_snd_ctl_open=yes
28113else
28114  echo "$as_me: failed program was:" >&5
28115sed 's/^/| /' conftest.$ac_ext >&5
28116
28117ac_cv_lib_asound_snd_ctl_open=no
28118fi
28119rm -f conftest.err conftest.$ac_objext \
28120      conftest$ac_exeext conftest.$ac_ext
28121LIBS=$ac_check_lib_save_LIBS
28122fi
28123echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
28124echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
28125if test $ac_cv_lib_asound_snd_ctl_open = yes; then
28126  cat >>confdefs.h <<_ACEOF
28127#define HAVE_LIBASOUND 1
28128_ACEOF
28129
28130  LIBS="-lasound $LIBS"
28131
28132else
28133
28134	 alsa_found=no
28135
28136fi
28137
28138fi
28139
28140if test "x$alsa_found" = "xyes" ; then
28141
28142cat >>confdefs.h <<\_ACEOF
28143#define ENABLE_ALSA05 1
28144_ACEOF
28145
28146                   have_alsa05=yes
28147
28148   LIBS=`echo $LIBS | sed 's/-lasound//g'`
28149   LIBS=`echo $LIBS | sed 's/  //'`
28150   LIBS="-lasound $LIBS"
28151fi
28152if test "x$alsa_found" = "xno" ; then
28153   have_alsa05=no
28154   CFLAGS="$alsa_save_CFLAGS"
28155   LDFLAGS="$alsa_save_LDFLAGS"
28156   LIBS="$alsa_save_LIBS"
28157   ALSA_CFLAGS=""
28158   ALSA_LIBS=""
28159fi
28160
28161
28162
28163
28164  fi
28165  if test "x$have_alsa09" = xno -a "x$have_alsa05" = xno; then
28166    echo "$as_me:$LINENO: result: *** All of ALSA dependent parts will be disabled ***" >&5
28167echo "${ECHO_T}*** All of ALSA dependent parts will be disabled ***" >&6
28168  else
28169
28170cat >>confdefs.h <<\_ACEOF
28171#define ENABLE_ALSA 1
28172_ACEOF
28173
28174  fi
28175fi
28176
28177
28178no_esd=yes
28179if test "x$enable_esd" = xyes; then
28180
28181# Check whether --with-esd-prefix or --without-esd-prefix was given.
28182if test "${with_esd_prefix+set}" = set; then
28183  withval="$with_esd_prefix"
28184  esd_prefix="$withval"
28185else
28186  esd_prefix=""
28187fi;
28188
28189# Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
28190if test "${with_esd_exec_prefix+set}" = set; then
28191  withval="$with_esd_exec_prefix"
28192  esd_exec_prefix="$withval"
28193else
28194  esd_exec_prefix=""
28195fi;
28196# Check whether --enable-esdtest or --disable-esdtest was given.
28197if test "${enable_esdtest+set}" = set; then
28198  enableval="$enable_esdtest"
28199
28200else
28201  enable_esdtest=yes
28202fi;
28203
28204  if test x$esd_exec_prefix != x ; then
28205     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
28206     if test x${ESD_CONFIG+set} != xset ; then
28207        ESD_CONFIG=$esd_exec_prefix/bin/esd-config
28208     fi
28209  fi
28210  if test x$esd_prefix != x ; then
28211     esd_args="$esd_args --prefix=$esd_prefix"
28212     if test x${ESD_CONFIG+set} != xset ; then
28213        ESD_CONFIG=$esd_prefix/bin/esd-config
28214     fi
28215  fi
28216
28217  # Extract the first word of "esd-config", so it can be a program name with args.
28218set dummy esd-config; ac_word=$2
28219echo "$as_me:$LINENO: checking for $ac_word" >&5
28220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28221if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
28222  echo $ECHO_N "(cached) $ECHO_C" >&6
28223else
28224  case $ESD_CONFIG in
28225  [\\/]* | ?:[\\/]*)
28226  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
28227  ;;
28228  *)
28229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28230for as_dir in $PATH
28231do
28232  IFS=$as_save_IFS
28233  test -z "$as_dir" && as_dir=.
28234  for ac_exec_ext in '' $ac_executable_extensions; do
28235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28236    ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28238    break 2
28239  fi
28240done
28241done
28242
28243  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
28244  ;;
28245esac
28246fi
28247ESD_CONFIG=$ac_cv_path_ESD_CONFIG
28248
28249if test -n "$ESD_CONFIG"; then
28250  echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
28251echo "${ECHO_T}$ESD_CONFIG" >&6
28252else
28253  echo "$as_me:$LINENO: result: no" >&5
28254echo "${ECHO_T}no" >&6
28255fi
28256
28257  min_esd_version=0.2.8
28258  echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
28259echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
28260  no_esd=""
28261  if test "$ESD_CONFIG" = "no" ; then
28262    no_esd=yes
28263  else
28264
28265
28266    ac_ext=c
28267ac_cpp='$CPP $CPPFLAGS'
28268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28270ac_compiler_gnu=$ac_cv_c_compiler_gnu
28271
28272    ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
28273    ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
28274
28275    esd_major_version=`$ESD_CONFIG $esd_args --version | \
28276           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28277    esd_minor_version=`$ESD_CONFIG $esd_args --version | \
28278           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28279    esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
28280           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28281    if test "x$enable_esdtest" = "xyes" ; then
28282      ac_save_CFLAGS="$CFLAGS"
28283      ac_save_LIBS="$LIBS"
28284      CFLAGS="$CFLAGS $ESD_CFLAGS"
28285      LIBS="$LIBS $ESD_LIBS"
28286      rm -f conf.esdtest
28287      if test "$cross_compiling" = yes; then
28288  echo $ac_n "cross compiling; assumed OK... $ac_c"
28289else
28290  cat >conftest.$ac_ext <<_ACEOF
28291/* confdefs.h.  */
28292_ACEOF
28293cat confdefs.h >>conftest.$ac_ext
28294cat >>conftest.$ac_ext <<_ACEOF
28295/* end confdefs.h.  */
28296
28297#include <stdio.h>
28298#include <stdlib.h>
28299#include <string.h>
28300#include <esd.h>
28301
28302char*
28303my_strdup (char *str)
28304{
28305  char *new_str;
28306
28307  if (str)
28308    {
28309      new_str = malloc ((strlen (str) + 1) * sizeof(char));
28310      strcpy (new_str, str);
28311    }
28312  else
28313    new_str = NULL;
28314
28315  return new_str;
28316}
28317
28318int main ()
28319{
28320  int major, minor, micro;
28321  char *tmp_version;
28322
28323  system ("touch conf.esdtest");
28324
28325  /* HP/UX 9 (%@#!) writes to sscanf strings */
28326  tmp_version = my_strdup("$min_esd_version");
28327  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28328     printf("%s, bad version string\n", "$min_esd_version");
28329     exit(1);
28330   }
28331
28332   if (($esd_major_version > major) ||
28333      (($esd_major_version == major) && ($esd_minor_version > minor)) ||
28334      (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
28335    {
28336      return 0;
28337    }
28338  else
28339    {
28340      printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
28341      printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
28342      printf("*** best to upgrade to the required version.\n");
28343      printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
28344      printf("*** to point to the correct copy of esd-config, and remove the file\n");
28345      printf("*** config.cache before re-running configure\n");
28346      return 1;
28347    }
28348}
28349
28350
28351_ACEOF
28352rm -f conftest$ac_exeext
28353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28354  (eval $ac_link) 2>&5
28355  ac_status=$?
28356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359  (eval $ac_try) 2>&5
28360  ac_status=$?
28361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362  (exit $ac_status); }; }; then
28363  :
28364else
28365  echo "$as_me: program exited with status $ac_status" >&5
28366echo "$as_me: failed program was:" >&5
28367sed 's/^/| /' conftest.$ac_ext >&5
28368
28369( exit $ac_status )
28370no_esd=yes
28371fi
28372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28373fi
28374       CFLAGS="$ac_save_CFLAGS"
28375       LIBS="$ac_save_LIBS"
28376       ac_ext=c
28377ac_cpp='$CPP $CPPFLAGS'
28378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28380ac_compiler_gnu=$ac_cv_c_compiler_gnu
28381
28382     fi
28383  fi
28384  if test "x$no_esd" = x ; then
28385     echo "$as_me:$LINENO: result: yes" >&5
28386echo "${ECHO_T}yes" >&6
28387
28388cat >>confdefs.h <<\_ACEOF
28389#define ENABLE_ESD 1
28390_ACEOF
28391
28392  else
28393     echo "$as_me:$LINENO: result: no" >&5
28394echo "${ECHO_T}no" >&6
28395     if test "$ESD_CONFIG" = "no" ; then
28396       echo "*** The esd-config script installed by ESD could not be found"
28397       echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
28398       echo "*** your path, or set the ESD_CONFIG environment variable to the"
28399       echo "*** full path to esd-config."
28400     else
28401       if test -f conf.esdtest ; then
28402        :
28403       else
28404          echo "*** Could not run ESD test program, checking why..."
28405          CFLAGS="$CFLAGS $ESD_CFLAGS"
28406          LIBS="$LIBS $ESD_LIBS"
28407
28408
28409          ac_ext=c
28410ac_cpp='$CPP $CPPFLAGS'
28411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28413ac_compiler_gnu=$ac_cv_c_compiler_gnu
28414
28415          cat >conftest.$ac_ext <<_ACEOF
28416/* confdefs.h.  */
28417_ACEOF
28418cat confdefs.h >>conftest.$ac_ext
28419cat >>conftest.$ac_ext <<_ACEOF
28420/* end confdefs.h.  */
28421
28422#include <stdio.h>
28423#include <esd.h>
28424
28425int
28426main ()
28427{
28428 return 0;
28429  ;
28430  return 0;
28431}
28432_ACEOF
28433rm -f conftest.$ac_objext conftest$ac_exeext
28434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28435  (eval $ac_link) 2>conftest.er1
28436  ac_status=$?
28437  grep -v '^ *+' conftest.er1 >conftest.err
28438  rm -f conftest.er1
28439  cat conftest.err >&5
28440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441  (exit $ac_status); } &&
28442	 { ac_try='test -z "$ac_c_werror_flag"
28443			 || test ! -s conftest.err'
28444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445  (eval $ac_try) 2>&5
28446  ac_status=$?
28447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448  (exit $ac_status); }; } &&
28449	 { ac_try='test -s conftest$ac_exeext'
28450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451  (eval $ac_try) 2>&5
28452  ac_status=$?
28453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454  (exit $ac_status); }; }; then
28455   echo "*** The test program compiled, but did not run. This usually means"
28456          echo "*** that the run-time linker is not finding ESD or finding the wrong"
28457          echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
28458          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28459          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28460          echo "*** is required on your system"
28461	  echo "***"
28462          echo "*** If you have an old version installed, it is best to remove it, although"
28463          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28464else
28465  echo "$as_me: failed program was:" >&5
28466sed 's/^/| /' conftest.$ac_ext >&5
28467
28468 echo "*** The test program failed to compile or link. See the file config.log for the"
28469          echo "*** exact error that occured. This usually means ESD was incorrectly installed"
28470          echo "*** or that you have moved ESD since it was installed. In the latter case, you"
28471          echo "*** may want to edit the esd-config script: $ESD_CONFIG"
28472fi
28473rm -f conftest.err conftest.$ac_objext \
28474      conftest$ac_exeext conftest.$ac_ext
28475          CFLAGS="$ac_save_CFLAGS"
28476          LIBS="$ac_save_LIBS"
28477          ac_ext=c
28478ac_cpp='$CPP $CPPFLAGS'
28479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28481ac_compiler_gnu=$ac_cv_c_compiler_gnu
28482
28483       fi
28484     fi
28485     ESD_CFLAGS=""
28486     ESD_LIBS=""
28487     echo "$as_me:$LINENO: result: *** All of ESD dependent parts will be disabled ***" >&5
28488echo "${ECHO_T}*** All of ESD dependent parts will be disabled ***" >&6
28489  fi
28490
28491
28492  rm -f conf.esdtest
28493
28494fi
28495
28496
28497DEFAULT_PLAYMODE=
28498
28499# Check whether --with-default-output or --without-default-output was given.
28500if test "${with_default_output+set}" = set; then
28501  withval="$with_default_output"
28502   if test "$enable_audio" != no; then
28503      DEFAULT_PLAYMODE=$withval
28504      eval "enable_$DEFAULT_PLAYMODE=yes"
28505    else
28506      { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
28507echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
28508    fi
28509
28510fi;
28511echo "$as_me:$LINENO: checking default output mode" >&5
28512echo $ECHO_N "checking default output mode... $ECHO_C" >&6
28513if test "x$DEFAULT_PLAYMODE" = x; then
28514  DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
28515fi
28516case ".$DEFAULT_PLAYMODE" in
28517  .default)  def_am=AUDIO_PCM_ANY ;;
28518  .oss)      def_am=AUDIO_PCM_OSS ;;
28519  .alsa)     def_am=AUDIO_PCM_ALSA ;;
28520  .esd)      def_am=AUDIO_PCM_ESD ;;
28521  .sun)      def_am=AUDIO_PCM_SUN ;;
28522  *)         def_am= ;;
28523esac
28524if test "x$have_alsa09" = xyes; then
28525  if test "x$def_am" != x; then
28526    def_am="$def_am09"
28527  fi
28528fi
28529echo "$as_me:$LINENO: result: $def_am" >&5
28530echo "${ECHO_T}$def_am" >&6
28531if test "x$def_am" != x; then
28532
28533cat >>confdefs.h <<_ACEOF
28534#define DEFAULT_AUDIO_MODE $def_am
28535_ACEOF
28536
28537fi
28538
28539
28540
28541SRC_AUDIO=
28542if test "x$have_ossaudio" = xyes; then
28543  SRC_AUDIO="$SRC_AUDIO audio_oss.c"
28544fi
28545if test "x$have_sunaudio" = xyes; then
28546  SRC_AUDIO="$SRC_AUDIO audio_sun.c"
28547fi
28548if test "x$have_alsa05" = xyes; then
28549  SRC_AUDIO="$SRC_AUDIO audio_alsa.c"
28550fi
28551if test "x$have_alsa09" = xyes; then
28552  SRC_AUDIO="$SRC_AUDIO audio_alsa09.c"
28553fi
28554if test "x$no_esd" != xyes; then
28555  SRC_AUDIO="$SRC_AUDIO audio_esd.c"
28556fi
28557
28558
28559# Check whether --enable-cdrom or --disable-cdrom was given.
28560if test "${enable_cdrom+set}" = set; then
28561  enableval="$enable_cdrom"
28562   enable_cdrom=$enableval
28563else
28564   enable_cdrom=yes
28565fi;
28566
28567test "x$enable_cdrom" = xyes -a enable_cdrom=default
28568
28569if test "x$enable_cdrom" != xno; then
28570  for i in `echo $enable_cdrom | sed 's/,/ /g'`; do
28571    eval "enable_cd_$i=yes"
28572  done
28573  if test "x$enable_cd_default" = xyes; then
28574    enable_cdrom=default
28575  fi
28576fi
28577
28578if test "x$enable_cdrom" = xdefault; then
28579  case "$target" in
28580    *-*-linux*|*-*-solaris*)
28581      enable_cd_linux=yes
28582      ;;
28583    *-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
28584      enable_cd_bsd=yes
28585      ;;
28586    *-irix*)
28587      enable_cd_irix=yes
28588      ;;
28589    *-dec-*)
28590      enable_cd_mp3=yes
28591      ;;
28592    *)
28593      { echo "$as_me:$LINENO: WARNING: No --enable-cdrom=default cdrom for $target" >&5
28594echo "$as_me: WARNING: No --enable-cdrom=default cdrom for $target" >&2;}
28595      ;;
28596  esac
28597fi
28598
28599SRC_CDROM=
28600if test "x$enable_cd_linux" = xyes; then
28601  SRC_CDROM="cdrom.Linux.c"
28602
28603cat >>confdefs.h <<\_ACEOF
28604#define ENABLE_CDROM_LINUX 1
28605_ACEOF
28606
28607elif test "x$enable_cd_bsd" = xyes; then
28608  SRC_CDROM="$SRC_CROM cdrom.FreeBSD.c"
28609
28610cat >>confdefs.h <<\_ACEOF
28611#define ENABLE_CDROM_BSD 1
28612_ACEOF
28613
28614elif test "x$enable_cd_irix" = xyes; then
28615  SRC_CDROM="$SRC_CDROM cdrom.Irix.c"
28616
28617cat >>confdefs.h <<\_ACEOF
28618#define ENABLE_CDROM_IRIX 1
28619_ACEOF
28620
28621else
28622  SRC_CDROM="$SRC_CDROM cdrom.empty.c"
28623fi
28624if test "x$enable_cd_mp3" = xyes; then
28625  SRC_CDROM="$SRC_CDROM cdrom.mp3.c"
28626
28627cat >>confdefs.h <<\_ACEOF
28628#define ENABLE_CDROM_MP3 1
28629_ACEOF
28630
28631fi
28632
28633
28634
28635# Check whether --with-cdromdev or --without-cdromdev was given.
28636if test "${with_cdromdev+set}" = set; then
28637  withval="$with_cdromdev"
28638  cdromdev="$withval"
28639else
28640  cdromdev="/dev/cdrom"
28641fi;
28642
28643cat >>confdefs.h <<_ACEOF
28644#define CDROM_DEVICE "$cdromdev"
28645_ACEOF
28646
28647
28648
28649# Check whether --with-locale or --without-locale was given.
28650if test "${with_locale+set}" = set; then
28651  withval="$with_locale"
28652
28653fi;
28654echo "$as_me:$LINENO: checking need -DX_LOCALE" >&5
28655echo $ECHO_N "checking need -DX_LOCALE... $ECHO_C" >&6
28656
28657if test "$cross_compiling" = yes; then
28658  need_x_locale=no
28659else
28660  cat >conftest.$ac_ext <<_ACEOF
28661/* confdefs.h.  */
28662_ACEOF
28663cat confdefs.h >>conftest.$ac_ext
28664cat >>conftest.$ac_ext <<_ACEOF
28665/* end confdefs.h.  */
28666
28667#include <stdio.h>
28668#include <locale.h>
28669
28670int
28671main ()
28672{
28673  return setlocale (LC_ALL, "${with_locale}") == NULL;
28674}
28675_ACEOF
28676rm -f conftest$ac_exeext
28677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28678  (eval $ac_link) 2>&5
28679  ac_status=$?
28680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683  (eval $ac_try) 2>&5
28684  ac_status=$?
28685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686  (exit $ac_status); }; }; then
28687  need_x_locale=no
28688else
28689  echo "$as_me: program exited with status $ac_status" >&5
28690echo "$as_me: failed program was:" >&5
28691sed 's/^/| /' conftest.$ac_ext >&5
28692
28693( exit $ac_status )
28694need_x_locale=yes
28695fi
28696rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28697fi
28698echo "$as_me:$LINENO: result: $need_x_locale" >&5
28699echo "${ECHO_T}$need_x_locale" >&6
28700
28701if test "x$need_x_locale" = xyes; then
28702  EXTRACFLAGS="$EXTRACFLAGS -DX_LOCALE"
28703fi
28704
28705case "$target" in
28706  *-*-linux*)
28707    ;;
28708  *-*-freebsd*)
28709    EXTRACFLAGS="$EXTRACFLAGS -I/usr/local/include"
28710    EXTRALDFLAGS="$EXTRALDFLAGS -L/usr/local/lib"
28711    ;;
28712  *-irix*)
28713    chk_rgb=yes
28714    EXTRALIBS="$EXTRALIBS -lcdaudio -lds -lmediad"
28715    ;;
28716  sparc-*)
28717    chk_rgb=yes
28718    ;;
28719esac
28720
28721if test "x$chk_rgb" = xyes; then
28722  # Check whether --enable-bgr or --disable-bgr was given.
28723if test "${enable_bgr+set}" = set; then
28724  enableval="$enable_bgr"
28725
28726else
28727   enable_bgr=yes
28728fi;
28729fi
28730if test "x$enable_bgr" = xyes; then
28731
28732cat >>confdefs.h <<\_ACEOF
28733#define BGR_ORDER 1
28734_ACEOF
28735
28736else
28737
28738cat >>confdefs.h <<\_ACEOF
28739#define RGB_ORDER 1
28740_ACEOF
28741
28742fi
28743
28744if test "x$have_alsa" = xyes ; then
28745
28746# Check whether --with-alsa-card or --without-alsa-card was given.
28747if test "${with_alsa_card+set}" = set; then
28748  withval="$with_alsa_card"
28749  alsacard="$withval"
28750else
28751  alsacard="0"
28752fi;
28753
28754# Check whether --with-alsa-pcmdev or --without-alsa-pcmdev was given.
28755if test "${with_alsa_pcmdev+set}" = set; then
28756  withval="$with_alsa_pcmdev"
28757  alsapcmdev="$withval"
28758else
28759  alsapcmdev="0"
28760fi;
28761
28762# Check whether --with-alsa-mixerdev or --without-alsa-mixerdev was given.
28763if test "${with_alsa_mixerdev+set}" = set; then
28764  withval="$with_alsa_mixerdev"
28765  alsamixerdev="$withval"
28766else
28767  alsamixerdev="0"
28768fi;
28769    ALSACARD=$alsacard
28770
28771cat >>confdefs.h <<_ACEOF
28772#define ALSACARD "$alsacard"
28773_ACEOF
28774
28775    MIXERDEV_ALSA=$alsamixerdev
28776    AUDIODEV_ALSA=$alsapcmdev
28777
28778cat >>confdefs.h <<_ACEOF
28779#define AUDIODEV_ALSA "$AUDIODEV_ALSA"
28780_ACEOF
28781
28782
28783cat >>confdefs.h <<_ACEOF
28784#define MIXERDEV_ALSA "$MIXERDEV_ALSA"
28785_ACEOF
28786
28787    echo "$as_me:$LINENO: checking for snd_mixer_element_read in -lasound" >&5
28788echo $ECHO_N "checking for snd_mixer_element_read in -lasound... $ECHO_C" >&6
28789if test "${ac_cv_lib_asound_snd_mixer_element_read+set}" = set; then
28790  echo $ECHO_N "(cached) $ECHO_C" >&6
28791else
28792  ac_check_lib_save_LIBS=$LIBS
28793LIBS="-lasound  $LIBS"
28794cat >conftest.$ac_ext <<_ACEOF
28795/* confdefs.h.  */
28796_ACEOF
28797cat confdefs.h >>conftest.$ac_ext
28798cat >>conftest.$ac_ext <<_ACEOF
28799/* end confdefs.h.  */
28800
28801/* Override any gcc2 internal prototype to avoid an error.  */
28802#ifdef __cplusplus
28803extern "C"
28804#endif
28805/* We use char because int might match the return type of a gcc2
28806   builtin and then its argument prototype would still apply.  */
28807char snd_mixer_element_read ();
28808int
28809main ()
28810{
28811snd_mixer_element_read ();
28812  ;
28813  return 0;
28814}
28815_ACEOF
28816rm -f conftest.$ac_objext conftest$ac_exeext
28817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28818  (eval $ac_link) 2>conftest.er1
28819  ac_status=$?
28820  grep -v '^ *+' conftest.er1 >conftest.err
28821  rm -f conftest.er1
28822  cat conftest.err >&5
28823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824  (exit $ac_status); } &&
28825	 { ac_try='test -z "$ac_c_werror_flag"
28826			 || test ! -s conftest.err'
28827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828  (eval $ac_try) 2>&5
28829  ac_status=$?
28830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831  (exit $ac_status); }; } &&
28832	 { ac_try='test -s conftest$ac_exeext'
28833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28834  (eval $ac_try) 2>&5
28835  ac_status=$?
28836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837  (exit $ac_status); }; }; then
28838  ac_cv_lib_asound_snd_mixer_element_read=yes
28839else
28840  echo "$as_me: failed program was:" >&5
28841sed 's/^/| /' conftest.$ac_ext >&5
28842
28843ac_cv_lib_asound_snd_mixer_element_read=no
28844fi
28845rm -f conftest.err conftest.$ac_objext \
28846      conftest$ac_exeext conftest.$ac_ext
28847LIBS=$ac_check_lib_save_LIBS
28848fi
28849echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_mixer_element_read" >&5
28850echo "${ECHO_T}$ac_cv_lib_asound_snd_mixer_element_read" >&6
28851if test $ac_cv_lib_asound_snd_mixer_element_read = yes; then
28852  ALSAMIX_H=mixer_alsa.h
28853fi
28854
28855
28856fi
28857
28858if test "x$have_ossaudio" = xyes ; then
28859
28860# Check whether --with-audiodev or --without-audiodev was given.
28861if test "${with_audiodev+set}" = set; then
28862  withval="$with_audiodev"
28863  audiodev="$withval"
28864else
28865  ossaudiodev="/dev/dsp"
28866fi;
28867
28868# Check whether --with-mixerdev or --without-mixerdev was given.
28869if test "${with_mixerdev+set}" = set; then
28870  withval="$with_mixerdev"
28871  mixerdev="Ec$withval"
28872else
28873  ossmixerdev="/dev/mixer"
28874fi;
28875    AUDIODEV_OSS=$ossaudiodev
28876    MIXERDEV_OSS=$ossmixerdev
28877
28878cat >>confdefs.h <<_ACEOF
28879#define AUDIODEV_OSS "$AUDIODEV_OSS"
28880_ACEOF
28881
28882
28883cat >>confdefs.h <<_ACEOF
28884#define MIXERDEV_OSS "$MIXERDEV_OSS"
28885_ACEOF
28886
28887fi
28888
28889
28890# Check whether --enable-midi or --disable-midi was given.
28891if test "${enable_midi+set}" = set; then
28892  enableval="$enable_midi"
28893   enable_midi=$enableval
28894else
28895   enable_midi=yes
28896fi;
28897
28898test "x$enable_midi" = xyes && enable_midi=default
28899
28900if test "x$enable_midi" != xno; then
28901  for i in `echo $enable_midi | sed 's/,/ /g'`; do
28902    eval "enable_midi_$i=yes"
28903  done
28904fi
28905
28906if test "x$enable_midi" = xdefault; then
28907  case "$target" in
28908    *)
28909      enable_midi_extp=yes
28910      ;;
28911  esac
28912fi
28913
28914SRC_MIDI=
28915if test "x$enable_midi_extp" = xyes; then
28916  SRC_MIDI="midi.extplayer.c"
28917
28918cat >>confdefs.h <<\_ACEOF
28919#define ENABLE_MIDI_EXTPLAYER 1
28920_ACEOF
28921
28922fi
28923if test "x$enable_midi_raw" = xyes || test "x$enable_midi_seq" = xyes; then
28924  SRC_MIDI="$SRC_MIDI midi.rawmidi.c midifile.c"
28925  if  test "x$enable_midi_raw" = xyes; then
28926
28927cat >>confdefs.h <<\_ACEOF
28928#define ENABLE_MIDI_RAWMIDI 1
28929_ACEOF
28930
28931  fi
28932  if  test "x$enable_midi_seq" = xyes; then
28933
28934cat >>confdefs.h <<\_ACEOF
28935#define ENABLE_MIDI_SEQMIDI 1
28936_ACEOF
28937
28938  fi
28939fi
28940
28941
28942
28943# Check whether --with-midi-player or --without-midi-player was given.
28944if test "${with_midi_player+set}" = set; then
28945  withval="$with_midi_player"
28946  midiplayer="$withval"
28947else
28948  midiplayer="playmidi -4"
28949fi;
28950
28951cat >>confdefs.h <<_ACEOF
28952#define MIDI_PLAYER "$midiplayer"
28953_ACEOF
28954
28955
28956# Check whether --enable-qmidi or --disable-qmidi was given.
28957if test "${enable_qmidi+set}" = set; then
28958  enableval="$enable_qmidi"
28959
28960cat >>confdefs.h <<\_ACEOF
28961#define QUITE_MIDI 1
28962_ACEOF
28963
28964fi;
28965
28966
28967# Check whether --with-mididev or --without-mididev was given.
28968if test "${with_mididev+set}" = set; then
28969  withval="$with_mididev"
28970  mididev="$withval"
28971else
28972  mididev="/dev/midi"
28973fi;
28974
28975cat >>confdefs.h <<_ACEOF
28976#define MIDI_DEVICE "$mididev"
28977_ACEOF
28978
28979
28980
28981# Check whether --with-seqdev or --without-seqdev was given.
28982if test "${with_seqdev+set}" = set; then
28983  withval="$with_seqdev"
28984  mididev="$withval"
28985else
28986  seqdev="/dev/sequencer"
28987fi;
28988
28989cat >>confdefs.h <<_ACEOF
28990#define SEQ_DEVICE "$seqdev"
28991_ACEOF
28992
28993
28994
28995
28996# Check whether --with-cachesize or --without-cachesize was given.
28997if test "${with_cachesize+set}" = set; then
28998  withval="$with_cachesize"
28999
29000cat >>confdefs.h <<_ACEOF
29001#define CACHE_TOTALSIZE $withval
29002_ACEOF
29003
29004fi;
29005
29006
29007SRC_GRAPHDEV="xcore_draw.c xcore_video.c xcore_mode.c xcore_event.c xcore_cursor.c xcore_maskupdate.c image.c"
29008# Check whether --enable-sdl or --disable-sdl was given.
29009if test "${enable_sdl+set}" = set; then
29010  enableval="$enable_sdl"
29011
29012else
29013   enable_sdl=no
29014fi;
29015if test "x$enable_sdl" = xyes ; then
29016  KEEPLIBS=$LIBS
29017  KEEPCFLAGS=$CFLAGS
29018  KEEPLDFLAGS=$LDFLAGS
29019
29020# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
29021if test "${with_sdl_prefix+set}" = set; then
29022  withval="$with_sdl_prefix"
29023  sdl_prefix="$withval"
29024else
29025  sdl_prefix=""
29026fi;
29027
29028# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
29029if test "${with_sdl_exec_prefix+set}" = set; then
29030  withval="$with_sdl_exec_prefix"
29031  sdl_exec_prefix="$withval"
29032else
29033  sdl_exec_prefix=""
29034fi;
29035# Check whether --enable-sdltest or --disable-sdltest was given.
29036if test "${enable_sdltest+set}" = set; then
29037  enableval="$enable_sdltest"
29038
29039else
29040  enable_sdltest=yes
29041fi;
29042
29043  if test x$sdl_exec_prefix != x ; then
29044     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
29045     if test x${SDL_CONFIG+set} != xset ; then
29046        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
29047     fi
29048  fi
29049  if test x$sdl_prefix != x ; then
29050     sdl_args="$sdl_args --prefix=$sdl_prefix"
29051     if test x${SDL_CONFIG+set} != xset ; then
29052        SDL_CONFIG=$sdl_prefix/bin/sdl-config
29053     fi
29054  fi
29055
29056
29057  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
29058  # Extract the first word of "sdl-config", so it can be a program name with args.
29059set dummy sdl-config; ac_word=$2
29060echo "$as_me:$LINENO: checking for $ac_word" >&5
29061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29062if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
29063  echo $ECHO_N "(cached) $ECHO_C" >&6
29064else
29065  case $SDL_CONFIG in
29066  [\\/]* | ?:[\\/]*)
29067  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
29068  ;;
29069  *)
29070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29071for as_dir in $PATH
29072do
29073  IFS=$as_save_IFS
29074  test -z "$as_dir" && as_dir=.
29075  for ac_exec_ext in '' $ac_executable_extensions; do
29076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29077    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29079    break 2
29080  fi
29081done
29082done
29083
29084  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
29085  ;;
29086esac
29087fi
29088SDL_CONFIG=$ac_cv_path_SDL_CONFIG
29089
29090if test -n "$SDL_CONFIG"; then
29091  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
29092echo "${ECHO_T}$SDL_CONFIG" >&6
29093else
29094  echo "$as_me:$LINENO: result: no" >&5
29095echo "${ECHO_T}no" >&6
29096fi
29097
29098  min_sdl_version=1.0.0
29099  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
29100echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
29101  no_sdl=""
29102  if test "$SDL_CONFIG" = "no" ; then
29103    no_sdl=yes
29104  else
29105    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
29106    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
29107
29108    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
29109           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29110    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
29111           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29112    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
29113           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29114    if test "x$enable_sdltest" = "xyes" ; then
29115      ac_save_CFLAGS="$CFLAGS"
29116      ac_save_CXXFLAGS="$CXXFLAGS"
29117      ac_save_LIBS="$LIBS"
29118      CFLAGS="$CFLAGS $SDL_CFLAGS"
29119      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
29120      LIBS="$LIBS $SDL_LIBS"
29121      rm -f conf.sdltest
29122      if test "$cross_compiling" = yes; then
29123  echo $ac_n "cross compiling; assumed OK... $ac_c"
29124else
29125  cat >conftest.$ac_ext <<_ACEOF
29126/* confdefs.h.  */
29127_ACEOF
29128cat confdefs.h >>conftest.$ac_ext
29129cat >>conftest.$ac_ext <<_ACEOF
29130/* end confdefs.h.  */
29131
29132#include <stdio.h>
29133#include <stdlib.h>
29134#include <string.h>
29135#include "SDL.h"
29136
29137char*
29138my_strdup (char *str)
29139{
29140  char *new_str;
29141
29142  if (str)
29143    {
29144      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
29145      strcpy (new_str, str);
29146    }
29147  else
29148    new_str = NULL;
29149
29150  return new_str;
29151}
29152
29153int main (int argc, char *argv[])
29154{
29155  int major, minor, micro;
29156  char *tmp_version;
29157
29158  /* This hangs on some systems (?)
29159  system ("touch conf.sdltest");
29160  */
29161  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
29162
29163  /* HP/UX 9 (%@#!) writes to sscanf strings */
29164  tmp_version = my_strdup("$min_sdl_version");
29165  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29166     printf("%s, bad version string\n", "$min_sdl_version");
29167     exit(1);
29168   }
29169
29170   if (($sdl_major_version > major) ||
29171      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
29172      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
29173    {
29174      return 0;
29175    }
29176  else
29177    {
29178      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
29179      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
29180      printf("*** best to upgrade to the required version.\n");
29181      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
29182      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
29183      printf("*** config.cache before re-running configure\n");
29184      return 1;
29185    }
29186}
29187
29188
29189_ACEOF
29190rm -f conftest$ac_exeext
29191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192  (eval $ac_link) 2>&5
29193  ac_status=$?
29194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197  (eval $ac_try) 2>&5
29198  ac_status=$?
29199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200  (exit $ac_status); }; }; then
29201  :
29202else
29203  echo "$as_me: program exited with status $ac_status" >&5
29204echo "$as_me: failed program was:" >&5
29205sed 's/^/| /' conftest.$ac_ext >&5
29206
29207( exit $ac_status )
29208no_sdl=yes
29209fi
29210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29211fi
29212       CFLAGS="$ac_save_CFLAGS"
29213       LIBS="$ac_save_LIBS"
29214     fi
29215  fi
29216  if test "x$no_sdl" = x ; then
29217     echo "$as_me:$LINENO: result: yes" >&5
29218echo "${ECHO_T}yes" >&6
29219     have_sdl=yes
29220  else
29221     echo "$as_me:$LINENO: result: no" >&5
29222echo "${ECHO_T}no" >&6
29223     if test "$SDL_CONFIG" = "no" ; then
29224       echo "*** The sdl-config script installed by SDL could not be found"
29225       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
29226       echo "*** your path, or set the SDL_CONFIG environment variable to the"
29227       echo "*** full path to sdl-config."
29228     else
29229       if test -f conf.sdltest ; then
29230        :
29231       else
29232          echo "*** Could not run SDL test program, checking why..."
29233          CFLAGS="$CFLAGS $SDL_CFLAGS"
29234          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
29235          LIBS="$LIBS $SDL_LIBS"
29236          cat >conftest.$ac_ext <<_ACEOF
29237/* confdefs.h.  */
29238_ACEOF
29239cat confdefs.h >>conftest.$ac_ext
29240cat >>conftest.$ac_ext <<_ACEOF
29241/* end confdefs.h.  */
29242
29243#include <stdio.h>
29244#include "SDL.h"
29245
29246int main(int argc, char *argv[])
29247{ return 0; }
29248#undef  main
29249#define main K_and_R_C_main
29250
29251int
29252main ()
29253{
29254 return 0;
29255  ;
29256  return 0;
29257}
29258_ACEOF
29259rm -f conftest.$ac_objext conftest$ac_exeext
29260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29261  (eval $ac_link) 2>conftest.er1
29262  ac_status=$?
29263  grep -v '^ *+' conftest.er1 >conftest.err
29264  rm -f conftest.er1
29265  cat conftest.err >&5
29266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267  (exit $ac_status); } &&
29268	 { ac_try='test -z "$ac_c_werror_flag"
29269			 || test ! -s conftest.err'
29270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271  (eval $ac_try) 2>&5
29272  ac_status=$?
29273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274  (exit $ac_status); }; } &&
29275	 { ac_try='test -s conftest$ac_exeext'
29276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277  (eval $ac_try) 2>&5
29278  ac_status=$?
29279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280  (exit $ac_status); }; }; then
29281   echo "*** The test program compiled, but did not run. This usually means"
29282          echo "*** that the run-time linker is not finding SDL or finding the wrong"
29283          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
29284          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29285          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29286          echo "*** is required on your system"
29287	  echo "***"
29288          echo "*** If you have an old version installed, it is best to remove it, although"
29289          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29290else
29291  echo "$as_me: failed program was:" >&5
29292sed 's/^/| /' conftest.$ac_ext >&5
29293
29294 echo "*** The test program failed to compile or link. See the file config.log for the"
29295          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
29296          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
29297          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
29298fi
29299rm -f conftest.err conftest.$ac_objext \
29300      conftest$ac_exeext conftest.$ac_ext
29301          CFLAGS="$ac_save_CFLAGS"
29302          CXXFLAGS="$ac_save_CXXFLAGS"
29303          LIBS="$ac_save_LIBS"
29304       fi
29305     fi
29306     SDL_CFLAGS=""
29307     SDL_CXXFLAGS=""
29308     SDL_LIBS=""
29309     have_sdl=no
29310  fi
29311
29312
29313  rm -f conf.sdltest
29314
29315  LIBS=$SDL_LIBS
29316  CFLAGS=$SDL_CFLAGS
29317  echo "$as_me:$LINENO: checking for SDL_NumJoysticks in -lSDL" >&5
29318echo $ECHO_N "checking for SDL_NumJoysticks in -lSDL... $ECHO_C" >&6
29319if test "${ac_cv_lib_SDL_SDL_NumJoysticks+set}" = set; then
29320  echo $ECHO_N "(cached) $ECHO_C" >&6
29321else
29322  ac_check_lib_save_LIBS=$LIBS
29323LIBS="-lSDL  $LIBS"
29324cat >conftest.$ac_ext <<_ACEOF
29325/* confdefs.h.  */
29326_ACEOF
29327cat confdefs.h >>conftest.$ac_ext
29328cat >>conftest.$ac_ext <<_ACEOF
29329/* end confdefs.h.  */
29330
29331/* Override any gcc2 internal prototype to avoid an error.  */
29332#ifdef __cplusplus
29333extern "C"
29334#endif
29335/* We use char because int might match the return type of a gcc2
29336   builtin and then its argument prototype would still apply.  */
29337char SDL_NumJoysticks ();
29338int
29339main ()
29340{
29341SDL_NumJoysticks ();
29342  ;
29343  return 0;
29344}
29345_ACEOF
29346rm -f conftest.$ac_objext conftest$ac_exeext
29347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29348  (eval $ac_link) 2>conftest.er1
29349  ac_status=$?
29350  grep -v '^ *+' conftest.er1 >conftest.err
29351  rm -f conftest.er1
29352  cat conftest.err >&5
29353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354  (exit $ac_status); } &&
29355	 { ac_try='test -z "$ac_c_werror_flag"
29356			 || test ! -s conftest.err'
29357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358  (eval $ac_try) 2>&5
29359  ac_status=$?
29360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361  (exit $ac_status); }; } &&
29362	 { ac_try='test -s conftest$ac_exeext'
29363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364  (eval $ac_try) 2>&5
29365  ac_status=$?
29366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367  (exit $ac_status); }; }; then
29368  ac_cv_lib_SDL_SDL_NumJoysticks=yes
29369else
29370  echo "$as_me: failed program was:" >&5
29371sed 's/^/| /' conftest.$ac_ext >&5
29372
29373ac_cv_lib_SDL_SDL_NumJoysticks=no
29374fi
29375rm -f conftest.err conftest.$ac_objext \
29376      conftest$ac_exeext conftest.$ac_ext
29377LIBS=$ac_check_lib_save_LIBS
29378fi
29379echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_NumJoysticks" >&5
29380echo "${ECHO_T}$ac_cv_lib_SDL_SDL_NumJoysticks" >&6
29381if test $ac_cv_lib_SDL_SDL_NumJoysticks = yes; then
29382  have_sdljoy=yes
29383fi
29384
29385  echo "$as_me:$LINENO: checking for SDL RLE accell" >&5
29386echo $ECHO_N "checking for SDL RLE accell... $ECHO_C" >&6
29387  sdlrle=no
29388  sdlralpha=no
29389  if test "$cross_compiling" = yes; then
29390  echo "$as_me:$LINENO: result: \"unknown\"" >&5
29391echo "${ECHO_T}\"unknown\"" >&6
29392
29393else
29394  cat >conftest.$ac_ext <<_ACEOF
29395/* confdefs.h.  */
29396_ACEOF
29397cat confdefs.h >>conftest.$ac_ext
29398cat >>conftest.$ac_ext <<_ACEOF
29399/* end confdefs.h.  */
29400
29401#include <SDL.h>
29402int main( int argc,char **argv) {
29403#ifndef SDL_RLEACCEL
29404  exit(1);
29405#else
29406  exit(0);
29407#endif
29408}
29409
29410_ACEOF
29411rm -f conftest$ac_exeext
29412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29413  (eval $ac_link) 2>&5
29414  ac_status=$?
29415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29418  (eval $ac_try) 2>&5
29419  ac_status=$?
29420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421  (exit $ac_status); }; }; then
29422  echo "$as_me:$LINENO: result: \"yes\"" >&5
29423echo "${ECHO_T}\"yes\"" >&6;sdlrle=yes
29424else
29425  echo "$as_me: program exited with status $ac_status" >&5
29426echo "$as_me: failed program was:" >&5
29427sed 's/^/| /' conftest.$ac_ext >&5
29428
29429( exit $ac_status )
29430echo "$as_me:$LINENO: result: \"no\"" >&5
29431echo "${ECHO_T}\"no\"" >&6
29432fi
29433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29434fi
29435  if test "x$sdlrle" = xyes ; then
29436    echo "$as_me:$LINENO: checking for SDL alpha value" >&5
29437echo $ECHO_N "checking for SDL alpha value... $ECHO_C" >&6
29438    if test "$cross_compiling" = yes; then
29439  echo "$as_me:$LINENO: result: \"unknown\"" >&5
29440echo "${ECHO_T}\"unknown\"" >&6
29441
29442else
29443  cat >conftest.$ac_ext <<_ACEOF
29444/* confdefs.h.  */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h.  */
29449
29450#include <SDL.h>
29451int main( int argc,char **argv) {
29452	SDL_Surface *s1,*s2;
29453	unsigned short *x;
29454	s1=SDL_AllocSurface(SDL_SWSURFACE,8,8,16,0,0,0,0);
29455	s2=SDL_AllocSurface(SDL_SWSURFACE,8,8,16,0,0,0,0);
29456	SDL_FillRect(s1,NULL,0);
29457	SDL_FillRect(s2,NULL,0xFFFF);
29458	SDL_SetAlpha(s2,SDL_SRCALPHA|SDL_RLEACCEL,255);
29459	SDL_BlitSurface(s2,NULL,s1,NULL);
29460	x=s1->pixels;
29461	if( *x )
29462		exit(1);
29463	exit(0);
29464}
29465
29466_ACEOF
29467rm -f conftest$ac_exeext
29468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29469  (eval $ac_link) 2>&5
29470  ac_status=$?
29471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474  (eval $ac_try) 2>&5
29475  ac_status=$?
29476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477  (exit $ac_status); }; }; then
29478  echo "$as_me:$LINENO: result: \"normal\"" >&5
29479echo "${ECHO_T}\"normal\"" >&6
29480else
29481  echo "$as_me: program exited with status $ac_status" >&5
29482echo "$as_me: failed program was:" >&5
29483sed 's/^/| /' conftest.$ac_ext >&5
29484
29485( exit $ac_status )
29486echo "$as_me:$LINENO: result: \"revese\"" >&5
29487echo "${ECHO_T}\"revese\"" >&6;sdlralpha=yes
29488fi
29489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29490fi
29491  fi
29492  LIBS=$KEEPLIBS
29493  CFLAGS=$KEEPCFLAGS
29494  LDFLAGS=$KEEPLDFLAGS
29495fi
29496if test "x$have_sdl" = xyes ; then
29497
29498cat >>confdefs.h <<\_ACEOF
29499#define ENABLE_SDL 1
29500_ACEOF
29501
29502  SDL=1
29503  SRC_GRAPHDEV="sdl_video.c sdl_mode.c sdl_draw.c sdl_event.c sdl_image.c sdl_cursor.c image.c"
29504
29505  if test "x$sdlrle" = xyes ; then
29506
29507cat >>confdefs.h <<\_ACEOF
29508#define HAVE_SDLRLE 1
29509_ACEOF
29510
29511  fi
29512  if test "x$sdlralpha" = xyes ; then
29513
29514cat >>confdefs.h <<\_ACEOF
29515#define HAVE_SDLRALPHA 1
29516_ACEOF
29517
29518  fi
29519fi
29520
29521
29522# Check whether --enable-joy or --disable-joy was given.
29523if test "${enable_joy+set}" = set; then
29524  enableval="$enable_joy"
29525
29526else
29527    enable_joy=no
29528fi;
29529if test "x$enable_joy" = xyes ; then
29530  if test "x$have_sdljoy" = xyes ; then
29531
29532cat >>confdefs.h <<\_ACEOF
29533#define HAVE_SDLJOY 1
29534_ACEOF
29535
29536    JOY_S=joystick_sdl
29537  else
29538
29539for ac_header in linux/joystick.h
29540do
29541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29542if eval "test \"\${$as_ac_Header+set}\" = set"; then
29543  echo "$as_me:$LINENO: checking for $ac_header" >&5
29544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29545if eval "test \"\${$as_ac_Header+set}\" = set"; then
29546  echo $ECHO_N "(cached) $ECHO_C" >&6
29547fi
29548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29550else
29551  # Is the header compilable?
29552echo "$as_me:$LINENO: checking $ac_header usability" >&5
29553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29554cat >conftest.$ac_ext <<_ACEOF
29555/* confdefs.h.  */
29556_ACEOF
29557cat confdefs.h >>conftest.$ac_ext
29558cat >>conftest.$ac_ext <<_ACEOF
29559/* end confdefs.h.  */
29560$ac_includes_default
29561#include <$ac_header>
29562_ACEOF
29563rm -f conftest.$ac_objext
29564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29565  (eval $ac_compile) 2>conftest.er1
29566  ac_status=$?
29567  grep -v '^ *+' conftest.er1 >conftest.err
29568  rm -f conftest.er1
29569  cat conftest.err >&5
29570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571  (exit $ac_status); } &&
29572	 { ac_try='test -z "$ac_c_werror_flag"
29573			 || test ! -s conftest.err'
29574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29575  (eval $ac_try) 2>&5
29576  ac_status=$?
29577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578  (exit $ac_status); }; } &&
29579	 { ac_try='test -s conftest.$ac_objext'
29580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581  (eval $ac_try) 2>&5
29582  ac_status=$?
29583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584  (exit $ac_status); }; }; then
29585  ac_header_compiler=yes
29586else
29587  echo "$as_me: failed program was:" >&5
29588sed 's/^/| /' conftest.$ac_ext >&5
29589
29590ac_header_compiler=no
29591fi
29592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29594echo "${ECHO_T}$ac_header_compiler" >&6
29595
29596# Is the header present?
29597echo "$as_me:$LINENO: checking $ac_header presence" >&5
29598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29599cat >conftest.$ac_ext <<_ACEOF
29600/* confdefs.h.  */
29601_ACEOF
29602cat confdefs.h >>conftest.$ac_ext
29603cat >>conftest.$ac_ext <<_ACEOF
29604/* end confdefs.h.  */
29605#include <$ac_header>
29606_ACEOF
29607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29609  ac_status=$?
29610  grep -v '^ *+' conftest.er1 >conftest.err
29611  rm -f conftest.er1
29612  cat conftest.err >&5
29613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614  (exit $ac_status); } >/dev/null; then
29615  if test -s conftest.err; then
29616    ac_cpp_err=$ac_c_preproc_warn_flag
29617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29618  else
29619    ac_cpp_err=
29620  fi
29621else
29622  ac_cpp_err=yes
29623fi
29624if test -z "$ac_cpp_err"; then
29625  ac_header_preproc=yes
29626else
29627  echo "$as_me: failed program was:" >&5
29628sed 's/^/| /' conftest.$ac_ext >&5
29629
29630  ac_header_preproc=no
29631fi
29632rm -f conftest.err conftest.$ac_ext
29633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29634echo "${ECHO_T}$ac_header_preproc" >&6
29635
29636# So?  What about this header?
29637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29638  yes:no: )
29639    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29641    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29642echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29643    ac_header_preproc=yes
29644    ;;
29645  no:yes:* )
29646    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29648    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29649echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29650    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29651echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29652    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29653echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29654    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29656    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29657echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29658    (
29659      cat <<\_ASBOX
29660## ------------------------------------------ ##
29661## Report this to the AC_PACKAGE_NAME lists.  ##
29662## ------------------------------------------ ##
29663_ASBOX
29664    ) |
29665      sed "s/^/$as_me: WARNING:     /" >&2
29666    ;;
29667esac
29668echo "$as_me:$LINENO: checking for $ac_header" >&5
29669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29670if eval "test \"\${$as_ac_Header+set}\" = set"; then
29671  echo $ECHO_N "(cached) $ECHO_C" >&6
29672else
29673  eval "$as_ac_Header=\$ac_header_preproc"
29674fi
29675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29677
29678fi
29679if test `eval echo '${'$as_ac_Header'}'` = yes; then
29680  cat >>confdefs.h <<_ACEOF
29681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29682_ACEOF
29683 JOY_S=joystick_linux
29684else
29685  JOY_S=joystick_dmy
29686fi
29687
29688done
29689
29690  fi
29691else
29692  JOY_S=joystick_dmy
29693fi
29694
29695
29696
29697# Check whether --with-joydev or --without-joydev was given.
29698if test "${with_joydev+set}" = set; then
29699  withval="$with_joydev"
29700  joydev="$withval"
29701else
29702  joydev="/dev/js0"
29703fi;
29704
29705cat >>confdefs.h <<_ACEOF
29706#define JOY_DEVICE "$joydev"
29707_ACEOF
29708
29709
29710
29711have_ttf=no
29712SRC_FONT=
29713if test "x$have_sdl" = xyes; then
29714  if test "x$enable_gtk" = xyes; then
29715    SRC_FONT="font_gtk.c"
29716
29717cat >>confdefs.h <<\_ACEOF
29718#define ENABLE_GTKFONT 1
29719_ACEOF
29720
29721  fi
29722else
29723  SRC_FONT="font_x11.c"
29724
29725cat >>confdefs.h <<\_ACEOF
29726#define ENABLE_X11FONT 1
29727_ACEOF
29728
29729fi
29730# Get the cflags and libraries from the freetype-config script
29731   #
29732
29733# Check whether --with-ft-prefix or --without-ft-prefix was given.
29734if test "${with_ft_prefix+set}" = set; then
29735  withval="$with_ft_prefix"
29736  ft_config_prefix="$withval"
29737else
29738  ft_config_prefix=""
29739fi;
29740
29741
29742# Check whether --with-ft-exec-prefix or --without-ft-exec-prefix was given.
29743if test "${with_ft_exec_prefix+set}" = set; then
29744  withval="$with_ft_exec_prefix"
29745  ft_config_exec_prefix="$withval"
29746else
29747  ft_config_exec_prefix=""
29748fi;
29749
29750   # Check whether --enable-freetypetest or --disable-freetypetest was given.
29751if test "${enable_freetypetest+set}" = set; then
29752  enableval="$enable_freetypetest"
29753
29754else
29755  enable_fttest=yes
29756fi;
29757
29758   if test x$ft_config_exec_prefix != x ; then
29759     ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
29760     if test x${FT2_CONFIG+set} != xset ; then
29761       FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
29762     fi
29763   fi
29764
29765   if test x$ft_config_prefix != x ; then
29766     ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
29767     if test x${FT2_CONFIG+set} != xset ; then
29768       FT2_CONFIG=$ft_config_prefix/bin/freetype-config
29769     fi
29770   fi
29771
29772   # Extract the first word of "freetype-config", so it can be a program name with args.
29773set dummy freetype-config; ac_word=$2
29774echo "$as_me:$LINENO: checking for $ac_word" >&5
29775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29776if test "${ac_cv_path_FT2_CONFIG+set}" = set; then
29777  echo $ECHO_N "(cached) $ECHO_C" >&6
29778else
29779  case $FT2_CONFIG in
29780  [\\/]* | ?:[\\/]*)
29781  ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path.
29782  ;;
29783  *)
29784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29785for as_dir in $PATH
29786do
29787  IFS=$as_save_IFS
29788  test -z "$as_dir" && as_dir=.
29789  for ac_exec_ext in '' $ac_executable_extensions; do
29790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29791    ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29793    break 2
29794  fi
29795done
29796done
29797
29798  test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no"
29799  ;;
29800esac
29801fi
29802FT2_CONFIG=$ac_cv_path_FT2_CONFIG
29803
29804if test -n "$FT2_CONFIG"; then
29805  echo "$as_me:$LINENO: result: $FT2_CONFIG" >&5
29806echo "${ECHO_T}$FT2_CONFIG" >&6
29807else
29808  echo "$as_me:$LINENO: result: no" >&5
29809echo "${ECHO_T}no" >&6
29810fi
29811
29812
29813   min_ft_version=2.0.0
29814   echo "$as_me:$LINENO: checking for FreeType -- version >= $min_ft_version" >&5
29815echo $ECHO_N "checking for FreeType -- version >= $min_ft_version... $ECHO_C" >&6
29816   no_ft=""
29817   if test "$FT2_CONFIG" = "no" ; then
29818     no_ft=yes
29819   else
29820     FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
29821     FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
29822     ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
29823       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29824     ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
29825       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29826     ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
29827       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29828     ft_min_major_version=`echo $min_ft_version | \
29829       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29830     ft_min_minor_version=`echo $min_ft_version | \
29831       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29832     ft_min_micro_version=`echo $min_ft_version | \
29833       sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29834     if test x$enable_fttest = xyes ; then
29835       ft_config_is_lt=""
29836       if test $ft_config_major_version -lt $ft_min_major_version ; then
29837         ft_config_is_lt=yes
29838       else
29839         if test $ft_config_major_version -eq $ft_min_major_version ; then
29840           if test $ft_config_minor_version -lt $ft_min_minor_version ; then
29841             ft_config_is_lt=yes
29842           else
29843             if test $ft_config_minor_version -eq $ft_min_minor_version ; then
29844               if test $ft_config_micro_version -lt $ft_min_micro_version ; then
29845                 ft_config_is_lt=yes
29846               fi
29847             fi
29848           fi
29849         fi
29850       fi
29851       if test x$ft_config_is_lt = xyes ; then
29852         no_ft=yes
29853       else
29854         ac_save_CFLAGS="$CFLAGS"
29855         ac_save_LIBS="$LIBS"
29856         CFLAGS="$CFLAGS $FT2_CFLAGS"
29857         LIBS="$FT2_LIBS $LIBS"
29858
29859         #
29860         # Sanity checks for the results of freetype-config to some extent.
29861         #
29862         if test "$cross_compiling" = yes; then
29863  echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"
29864else
29865  cat >conftest.$ac_ext <<_ACEOF
29866
29867             /* confdefs.h.  */
29868_ACEOF
29869cat confdefs.h >>conftest.$ac_ext
29870cat >>conftest.$ac_ext <<_ACEOF
29871/* end confdefs.h.  */
29872
29873
29874#include <ft2build.h>
29875#include FT_FREETYPE_H
29876#include <stdio.h>
29877#include <stdlib.h>
29878
29879int
29880main()
29881{
29882  FT_Library library;
29883  FT_Error  error;
29884
29885  error = FT_Init_FreeType(&library);
29886
29887  if (error)
29888    return 1;
29889  else
29890  {
29891    FT_Done_FreeType(library);
29892    return 0;
29893  }
29894}
29895
29896
29897
29898_ACEOF
29899rm -f conftest$ac_exeext
29900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29901  (eval $ac_link) 2>&5
29902  ac_status=$?
29903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906  (eval $ac_try) 2>&5
29907  ac_status=$?
29908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909  (exit $ac_status); }; }; then
29910  :
29911else
29912  echo "$as_me: program exited with status $ac_status" >&5
29913echo "$as_me: failed program was:" >&5
29914sed 's/^/| /' conftest.$ac_ext >&5
29915
29916( exit $ac_status )
29917no_ft=yes
29918fi
29919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29920fi
29921
29922         CFLAGS="$ac_save_CFLAGS"
29923         LIBS="$ac_save_LIBS"
29924       fi             # test $ft_config_version -lt $ft_min_version
29925     fi               # test x$enable_fttest = xyes
29926   fi                 # test "$FT2_CONFIG" = "no"
29927
29928   if test x$no_ft = x ; then
29929     echo "$as_me:$LINENO: result: yes" >&5
29930echo "${ECHO_T}yes" >&6
29931
29932cat >>confdefs.h <<\_ACEOF
29933#define ENABLE_FT2 1
29934_ACEOF
29935
29936   else
29937     echo "$as_me:$LINENO: result: no" >&5
29938echo "${ECHO_T}no" >&6
29939     if test "$FT2_CONFIG" = "no" ; then
29940       { echo "$as_me:$LINENO: WARNING:
29941
29942  The freetype-config script installed by FreeType 2 could not be found.
29943  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
29944  your path, or set the FT2_CONFIG environment variable to the
29945  full path to freetype-config.
29946       " >&5
29947echo "$as_me: WARNING:
29948
29949  The freetype-config script installed by FreeType 2 could not be found.
29950  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
29951  your path, or set the FT2_CONFIG environment variable to the
29952  full path to freetype-config.
29953       " >&2;}
29954     else
29955       if test x$ft_config_is_lt = xyes ; then
29956         { echo "$as_me:$LINENO: WARNING:
29957
29958  Your installed version of the FreeType 2 library is too old.
29959  If you have different versions of FreeType 2, make sure that
29960  correct values for --with-ft-prefix or --with-ft-exec-prefix
29961  are used, or set the FT2_CONFIG environment variable to the
29962  full path to freetype-config.
29963         " >&5
29964echo "$as_me: WARNING:
29965
29966  Your installed version of the FreeType 2 library is too old.
29967  If you have different versions of FreeType 2, make sure that
29968  correct values for --with-ft-prefix or --with-ft-exec-prefix
29969  are used, or set the FT2_CONFIG environment variable to the
29970  full path to freetype-config.
29971         " >&2;}
29972       else
29973         { echo "$as_me:$LINENO: WARNING:
29974
29975  The FreeType test program failed to run.  If your system uses
29976  shared libraries and they are installed outside the normal
29977  system library path, make sure the variable LD_LIBRARY_PATH
29978  (or whatever is appropiate for your system) is correctly set.
29979         " >&5
29980echo "$as_me: WARNING:
29981
29982  The FreeType test program failed to run.  If your system uses
29983  shared libraries and they are installed outside the normal
29984  system library path, make sure the variable LD_LIBRARY_PATH
29985  (or whatever is appropiate for your system) is correctly set.
29986         " >&2;}
29987       fi
29988     fi
29989
29990     FT2_CFLAGS=""
29991     FT2_LIBS=""
29992     :
29993   fi
29994
29995
29996
29997if test "x$no_ft" = xyes; then
29998
29999
30000  ac_ext=c
30001ac_cpp='$CPP $CPPFLAGS'
30002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30004ac_compiler_gnu=$ac_cv_c_compiler_gnu
30005
30006
30007# Check whether --with-freetype-prefix or --without-freetype-prefix was given.
30008if test "${with_freetype_prefix+set}" = set; then
30009  withval="$with_freetype_prefix"
30010  freetype_prefix="$withval"
30011else
30012  freetype_prefix=""
30013fi;
30014
30015  if test ".$freetype_prefix" != . ; then
30016    FREETYPE_INCLUDES=-I$freetype_prefix/include
30017  fi
30018  save_CPPFLAGS="$CPPFLAGS"
30019  CPPFLAGS="$FREETYPE_INCLUDES $CPPFLAGS"
30020  if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
30021  echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
30022echo $ECHO_N "checking for freetype/freetype.h... $ECHO_C" >&6
30023if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
30024  echo $ECHO_N "(cached) $ECHO_C" >&6
30025fi
30026echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
30027echo "${ECHO_T}$ac_cv_header_freetype_freetype_h" >&6
30028else
30029  # Is the header compilable?
30030echo "$as_me:$LINENO: checking freetype/freetype.h usability" >&5
30031echo $ECHO_N "checking freetype/freetype.h usability... $ECHO_C" >&6
30032cat >conftest.$ac_ext <<_ACEOF
30033/* confdefs.h.  */
30034_ACEOF
30035cat confdefs.h >>conftest.$ac_ext
30036cat >>conftest.$ac_ext <<_ACEOF
30037/* end confdefs.h.  */
30038$ac_includes_default
30039#include <freetype/freetype.h>
30040_ACEOF
30041rm -f conftest.$ac_objext
30042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30043  (eval $ac_compile) 2>conftest.er1
30044  ac_status=$?
30045  grep -v '^ *+' conftest.er1 >conftest.err
30046  rm -f conftest.er1
30047  cat conftest.err >&5
30048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049  (exit $ac_status); } &&
30050	 { ac_try='test -z "$ac_c_werror_flag"
30051			 || test ! -s conftest.err'
30052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053  (eval $ac_try) 2>&5
30054  ac_status=$?
30055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056  (exit $ac_status); }; } &&
30057	 { ac_try='test -s conftest.$ac_objext'
30058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059  (eval $ac_try) 2>&5
30060  ac_status=$?
30061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062  (exit $ac_status); }; }; then
30063  ac_header_compiler=yes
30064else
30065  echo "$as_me: failed program was:" >&5
30066sed 's/^/| /' conftest.$ac_ext >&5
30067
30068ac_header_compiler=no
30069fi
30070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30072echo "${ECHO_T}$ac_header_compiler" >&6
30073
30074# Is the header present?
30075echo "$as_me:$LINENO: checking freetype/freetype.h presence" >&5
30076echo $ECHO_N "checking freetype/freetype.h presence... $ECHO_C" >&6
30077cat >conftest.$ac_ext <<_ACEOF
30078/* confdefs.h.  */
30079_ACEOF
30080cat confdefs.h >>conftest.$ac_ext
30081cat >>conftest.$ac_ext <<_ACEOF
30082/* end confdefs.h.  */
30083#include <freetype/freetype.h>
30084_ACEOF
30085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30087  ac_status=$?
30088  grep -v '^ *+' conftest.er1 >conftest.err
30089  rm -f conftest.er1
30090  cat conftest.err >&5
30091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092  (exit $ac_status); } >/dev/null; then
30093  if test -s conftest.err; then
30094    ac_cpp_err=$ac_c_preproc_warn_flag
30095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30096  else
30097    ac_cpp_err=
30098  fi
30099else
30100  ac_cpp_err=yes
30101fi
30102if test -z "$ac_cpp_err"; then
30103  ac_header_preproc=yes
30104else
30105  echo "$as_me: failed program was:" >&5
30106sed 's/^/| /' conftest.$ac_ext >&5
30107
30108  ac_header_preproc=no
30109fi
30110rm -f conftest.err conftest.$ac_ext
30111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30112echo "${ECHO_T}$ac_header_preproc" >&6
30113
30114# So?  What about this header?
30115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30116  yes:no: )
30117    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: accepted by the compiler, rejected by the preprocessor!" >&5
30118echo "$as_me: WARNING: freetype/freetype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30119    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: proceeding with the compiler's result" >&5
30120echo "$as_me: WARNING: freetype/freetype.h: proceeding with the compiler's result" >&2;}
30121    ac_header_preproc=yes
30122    ;;
30123  no:yes:* )
30124    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: present but cannot be compiled" >&5
30125echo "$as_me: WARNING: freetype/freetype.h: present but cannot be compiled" >&2;}
30126    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h:     check for missing prerequisite headers?" >&5
30127echo "$as_me: WARNING: freetype/freetype.h:     check for missing prerequisite headers?" >&2;}
30128    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: see the Autoconf documentation" >&5
30129echo "$as_me: WARNING: freetype/freetype.h: see the Autoconf documentation" >&2;}
30130    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h:     section \"Present But Cannot Be Compiled\"" >&5
30131echo "$as_me: WARNING: freetype/freetype.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30132    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&5
30133echo "$as_me: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&2;}
30134    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: in the future, the compiler will take precedence" >&5
30135echo "$as_me: WARNING: freetype/freetype.h: in the future, the compiler will take precedence" >&2;}
30136    (
30137      cat <<\_ASBOX
30138## ------------------------------------------ ##
30139## Report this to the AC_PACKAGE_NAME lists.  ##
30140## ------------------------------------------ ##
30141_ASBOX
30142    ) |
30143      sed "s/^/$as_me: WARNING:     /" >&2
30144    ;;
30145esac
30146echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
30147echo $ECHO_N "checking for freetype/freetype.h... $ECHO_C" >&6
30148if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
30149  echo $ECHO_N "(cached) $ECHO_C" >&6
30150else
30151  ac_cv_header_freetype_freetype_h=$ac_header_preproc
30152fi
30153echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
30154echo "${ECHO_T}$ac_cv_header_freetype_freetype_h" >&6
30155
30156fi
30157if test $ac_cv_header_freetype_freetype_h = yes; then
30158
30159cat >>confdefs.h <<\_ACEOF
30160#define FREETYPE_HAVE_DIR 1
30161_ACEOF
30162
30163fi
30164
30165
30166  CPPFLAGS="$save_CPPFLAGS"
30167
30168  if test x$no_freetype = x ; then
30169    if test x$freetype_prefix != x ; then
30170      freetype_libs=-L$freetype_prefix/lib
30171    fi
30172    freetype_libs="$freetype_libs -lttf"
30173
30174    echo "$as_me:$LINENO: checking for working Freetype environment" >&5
30175echo $ECHO_N "checking for working Freetype environment... $ECHO_C" >&6
30176if test "${ac_cv_lib_freetype+set}" = set; then
30177  echo $ECHO_N "(cached) $ECHO_C" >&6
30178else
30179
30180		save_LDFLAGS="$LDFLAGS"
30181		save_CPPFLAGS="$CPPFLAGS"
30182		save_LIBS="$LIBS"
30183		LIBS="$LIBS $freetype_libs"
30184		LDFLAGS="$LDFLAGS"
30185		CPPFLAGS="$CPPFLAGS $FREETYPE_INCLUDES"
30186
30187				if test "$cross_compiling" = yes; then
30188  ac_cv_lib_freetype=yes
30189else
30190  cat >conftest.$ac_ext <<_ACEOF
30191/* confdefs.h.  */
30192_ACEOF
30193cat confdefs.h >>conftest.$ac_ext
30194cat >>conftest.$ac_ext <<_ACEOF
30195/* end confdefs.h.  */
30196
30197#ifdef FREETYPE_HAVE_DIR
30198#include <freetype/freetype.h>
30199#else
30200#include <freetype.h>
30201#endif
30202#include <stdio.h>
30203int main (int argc, char* argv[])
30204{
30205  TT_Engine library;
30206  if(TT_Init_FreeType(&library) != 0)
30207    {
30208     printf("Error: Could not initialize FreeType engine!\n");
30209      return 1;
30210    }
30211  return 0;
30212}
30213
30214_ACEOF
30215rm -f conftest$ac_exeext
30216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30217  (eval $ac_link) 2>&5
30218  ac_status=$?
30219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222  (eval $ac_try) 2>&5
30223  ac_status=$?
30224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225  (exit $ac_status); }; }; then
30226  ac_cv_lib_freetype=yes
30227else
30228  echo "$as_me: program exited with status $ac_status" >&5
30229echo "$as_me: failed program was:" >&5
30230sed 's/^/| /' conftest.$ac_ext >&5
30231
30232( exit $ac_status )
30233ac_cv_lib_freetype=no
30234fi
30235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30236fi
30237
30238	CPPFLAGS="$save_CPPFLAGS"
30239	LDFLAGS="$save_LDFLAGS"
30240 	LIBS="$save_LIBS"
30241
30242fi
30243echo "$as_me:$LINENO: result: $ac_cv_lib_freetype" >&5
30244echo "${ECHO_T}$ac_cv_lib_freetype" >&6
30245  fi
30246
30247  if test x$ac_cv_lib_freetype = xyes ; then
30248    FREETYPE_LIBS=$freetype_libs
30249
30250cat >>confdefs.h <<\_ACEOF
30251#define ENABLE_TTF 1
30252_ACEOF
30253 have_ttf=yes
30254  else
30255
30256  if test ".1.0.0" = .mandatory ; then
30257    { { echo "$as_me:$LINENO: error: Could not find freetype library!" >&5
30258echo "$as_me: error: Could not find freetype library!" >&2;}
30259   { (exit 1); exit 1; }; }
30260  fi
30261  have_ttf=no
30262  fi
30263
30264
30265
30266
30267  ac_ext=c
30268ac_cpp='$CPP $CPPFLAGS'
30269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30271ac_compiler_gnu=$ac_cv_c_compiler_gnu
30272
30273
30274fi
30275if test "x$no_ft" != xyes; then
30276   SRC_FONT="$SRC_FONT font_freetype2.c cp932tojis0213.c"
30277   EXTRALIBS="$EXTRALIBS $FT2_LIBS"
30278   EXTRACFLAGS="$EXTRACFLAGS $FT2_CFLAGS"
30279elif test "x$have_ttf" = xyes; then
30280   SRC_FONT="$SRC_FONT font_ttf.c"
30281   EXTRALIBS="$EXTRALIBS $FREETYPE_LIBS"
30282   EXTRACFLAGS="$EXTRACFLAGS $FREETYPE_INCLUDES"
30283fi
30284if test x"SRC_FONT" = "x"; then
30285  { { echo "$as_me:$LINENO: error: \"*** No font device available ***\"" >&5
30286echo "$as_me: error: \"*** No font device available ***\"" >&2;}
30287   { (exit 1); exit 1; }; };
30288fi
30289
30290
30291
30292echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
30293echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
30294if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
30295  echo $ECHO_N "(cached) $ECHO_C" >&6
30296else
30297  ac_check_lib_save_LIBS=$LIBS
30298LIBS="-lXxf86vm $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
30299cat >conftest.$ac_ext <<_ACEOF
30300/* confdefs.h.  */
30301_ACEOF
30302cat confdefs.h >>conftest.$ac_ext
30303cat >>conftest.$ac_ext <<_ACEOF
30304/* end confdefs.h.  */
30305
30306/* Override any gcc2 internal prototype to avoid an error.  */
30307#ifdef __cplusplus
30308extern "C"
30309#endif
30310/* We use char because int might match the return type of a gcc2
30311   builtin and then its argument prototype would still apply.  */
30312char XF86VidModeQueryExtension ();
30313int
30314main ()
30315{
30316XF86VidModeQueryExtension ();
30317  ;
30318  return 0;
30319}
30320_ACEOF
30321rm -f conftest.$ac_objext conftest$ac_exeext
30322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30323  (eval $ac_link) 2>conftest.er1
30324  ac_status=$?
30325  grep -v '^ *+' conftest.er1 >conftest.err
30326  rm -f conftest.er1
30327  cat conftest.err >&5
30328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329  (exit $ac_status); } &&
30330	 { ac_try='test -z "$ac_c_werror_flag"
30331			 || test ! -s conftest.err'
30332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333  (eval $ac_try) 2>&5
30334  ac_status=$?
30335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336  (exit $ac_status); }; } &&
30337	 { ac_try='test -s conftest$ac_exeext'
30338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30339  (eval $ac_try) 2>&5
30340  ac_status=$?
30341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342  (exit $ac_status); }; }; then
30343  ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
30344else
30345  echo "$as_me: failed program was:" >&5
30346sed 's/^/| /' conftest.$ac_ext >&5
30347
30348ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
30349fi
30350rm -f conftest.err conftest.$ac_objext \
30351      conftest$ac_exeext conftest.$ac_ext
30352LIBS=$ac_check_lib_save_LIBS
30353fi
30354echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
30355echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
30356if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
30357
30358cat >>confdefs.h <<\_ACEOF
30359#define HAVE_XF86VMODE 1
30360_ACEOF
30361
30362        XXF86VM_LIB="-lXxf86vm"
30363fi
30364
30365X_LIBS="$X_LIBS $XXF86VM_LIB -lXext"
30366
30367# Check whether --enable-xrender or --disable-xrender was given.
30368if test "${enable_xrender+set}" = set; then
30369  enableval="$enable_xrender"
30370
30371else
30372  enable_xrender="no"
30373fi;
30374if test "x$enable-xrender" = xyes; then
30375
30376cat >>confdefs.h <<\_ACEOF
30377#define ENABLE_XRENDER 1
30378_ACEOF
30379
30380fi
30381
30382
30383SRC_ABLEND=
30384# Extract the first word of "nasm", so it can be a program name with args.
30385set dummy nasm; ac_word=$2
30386echo "$as_me:$LINENO: checking for $ac_word" >&5
30387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30388if test "${ac_cv_path_HAVE_NASM+set}" = set; then
30389  echo $ECHO_N "(cached) $ECHO_C" >&6
30390else
30391  case $HAVE_NASM in
30392  [\\/]* | ?:[\\/]*)
30393  ac_cv_path_HAVE_NASM="$HAVE_NASM" # Let the user override the test with a path.
30394  ;;
30395  *)
30396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30397for as_dir in $PATH
30398do
30399  IFS=$as_save_IFS
30400  test -z "$as_dir" && as_dir=.
30401  for ac_exec_ext in '' $ac_executable_extensions; do
30402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30403    ac_cv_path_HAVE_NASM="$as_dir/$ac_word$ac_exec_ext"
30404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30405    break 2
30406  fi
30407done
30408done
30409
30410  test -z "$ac_cv_path_HAVE_NASM" && ac_cv_path_HAVE_NASM="no"
30411  ;;
30412esac
30413fi
30414HAVE_NASM=$ac_cv_path_HAVE_NASM
30415
30416if test -n "$HAVE_NASM"; then
30417  echo "$as_me:$LINENO: result: $HAVE_NASM" >&5
30418echo "${ECHO_T}$HAVE_NASM" >&6
30419else
30420  echo "$as_me:$LINENO: result: no" >&5
30421echo "${ECHO_T}no" >&6
30422fi
30423
30424if test "x$HAVE_NASM" != xno; then
30425  case "$target" in
30426    *i*86-*)
30427      # Check whether --enable-mmx or --disable-mmx was given.
30428if test "${enable_mmx+set}" = set; then
30429  enableval="$enable_mmx"
30430
30431else
30432   enable_mmx=yes
30433fi;
30434      if test "x$enable_mmx" = xyes ; then
30435
30436cat >>confdefs.h <<\_ACEOF
30437#define ENABLE_MMX 1
30438_ACEOF
30439
30440        SRC_ABLEND="alpha_blend16.s haveunit.s"
30441      fi;;
30442  esac
30443fi
30444
30445
30446
30447
30448# Check whether --with-ogg-prefix or --without-ogg-prefix was given.
30449if test "${with_ogg_prefix+set}" = set; then
30450  withval="$with_ogg_prefix"
30451  ogg_prefix="$withval"
30452else
30453  ogg_prefix=""
30454fi;
30455# Check whether --enable-oggtest or --disable-oggtest was given.
30456if test "${enable_oggtest+set}" = set; then
30457  enableval="$enable_oggtest"
30458
30459else
30460  enable_oggtest=yes
30461fi;
30462
30463  if test x$ogg_prefix != x ; then
30464    ogg_args="$ogg_args --prefix=$ogg_prefix"
30465    OGG_CFLAGS="-I$ogg_prefix/include"
30466    OGG_LIBS="-L$ogg_prefix/lib"
30467  fi
30468
30469  OGG_LIBS="$OGG_LIBS -logg"
30470
30471  echo "$as_me:$LINENO: checking for Ogg" >&5
30472echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
30473  no_ogg=""
30474
30475
30476  if test "x$enable_oggtest" = "xyes" ; then
30477    ac_save_CFLAGS="$CFLAGS"
30478    ac_save_LIBS="$LIBS"
30479    CFLAGS="$CFLAGS $OGG_CFLAGS"
30480    LIBS="$LIBS $OGG_LIBS"
30481      rm -f conf.oggtest
30482      if test "$cross_compiling" = yes; then
30483  echo $ac_n "cross compiling; assumed OK... $ac_c"
30484else
30485  cat >conftest.$ac_ext <<_ACEOF
30486/* confdefs.h.  */
30487_ACEOF
30488cat confdefs.h >>conftest.$ac_ext
30489cat >>conftest.$ac_ext <<_ACEOF
30490/* end confdefs.h.  */
30491
30492#include <stdio.h>
30493#include <stdlib.h>
30494#include <string.h>
30495#include <ogg/ogg.h>
30496
30497int main ()
30498{
30499  system("touch conf.oggtest");
30500  return 0;
30501}
30502
30503
30504_ACEOF
30505rm -f conftest$ac_exeext
30506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30507  (eval $ac_link) 2>&5
30508  ac_status=$?
30509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30512  (eval $ac_try) 2>&5
30513  ac_status=$?
30514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515  (exit $ac_status); }; }; then
30516  :
30517else
30518  echo "$as_me: program exited with status $ac_status" >&5
30519echo "$as_me: failed program was:" >&5
30520sed 's/^/| /' conftest.$ac_ext >&5
30521
30522( exit $ac_status )
30523no_ogg=yes
30524fi
30525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30526fi
30527       CFLAGS="$ac_save_CFLAGS"
30528       LIBS="$ac_save_LIBS"
30529  fi
30530
30531  if test "x$no_ogg" = x ; then
30532     echo "$as_me:$LINENO: result: yes" >&5
30533echo "${ECHO_T}yes" >&6
30534
30535# Check whether --with-vorbis-prefix or --without-vorbis-prefix was given.
30536if test "${with_vorbis_prefix+set}" = set; then
30537  withval="$with_vorbis_prefix"
30538  vorbis_prefix="$withval"
30539else
30540  vorbis_prefix=""
30541fi;
30542# Check whether --enable-vorbistest or --disable-vorbistest was given.
30543if test "${enable_vorbistest+set}" = set; then
30544  enableval="$enable_vorbistest"
30545
30546else
30547  enable_vorbistest=yes
30548fi;
30549
30550  if test x$vorbis_prefix != x ; then
30551    vorbis_args="$vorbis_args --prefix=$vorbis_prefix"
30552    VORBIS_CFLAGS="-I$vorbis_prefix/include"
30553    VORBIS_LIBDIR="-L$vorbis_prefix/lib"
30554  fi
30555
30556  VORBIS_LIBS="$VORBIS_LIBDIR -lvorbis -lm"
30557  VORBISFILE_LIBS="-lvorbisfile"
30558  VORBISENC_LIBS="-lvorbisenc"
30559
30560  echo "$as_me:$LINENO: checking for Vorbis" >&5
30561echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
30562  no_vorbis=""
30563
30564
30565  if test "x$enable_vorbistest" = "xyes" ; then
30566    ac_save_CFLAGS="$CFLAGS"
30567    ac_save_LIBS="$LIBS"
30568    CFLAGS="$CFLAGS $VORBIS_CFLAGS"
30569    LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
30570      rm -f conf.vorbistest
30571      if test "$cross_compiling" = yes; then
30572  echo $ac_n "cross compiling; assumed OK... $ac_c"
30573else
30574  cat >conftest.$ac_ext <<_ACEOF
30575/* confdefs.h.  */
30576_ACEOF
30577cat confdefs.h >>conftest.$ac_ext
30578cat >>conftest.$ac_ext <<_ACEOF
30579/* end confdefs.h.  */
30580
30581#include <stdio.h>
30582#include <stdlib.h>
30583#include <string.h>
30584#include <vorbis/codec.h>
30585
30586int main ()
30587{
30588  system("touch conf.vorbistest");
30589  return 0;
30590}
30591
30592
30593_ACEOF
30594rm -f conftest$ac_exeext
30595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30596  (eval $ac_link) 2>&5
30597  ac_status=$?
30598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601  (eval $ac_try) 2>&5
30602  ac_status=$?
30603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604  (exit $ac_status); }; }; then
30605  :
30606else
30607  echo "$as_me: program exited with status $ac_status" >&5
30608echo "$as_me: failed program was:" >&5
30609sed 's/^/| /' conftest.$ac_ext >&5
30610
30611( exit $ac_status )
30612no_vorbis=yes
30613fi
30614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30615fi
30616       CFLAGS="$ac_save_CFLAGS"
30617       LIBS="$ac_save_LIBS"
30618  fi
30619
30620  if test "x$no_vorbis" = x ; then
30621     echo "$as_me:$LINENO: result: yes" >&5
30622echo "${ECHO_T}yes" >&6
30623     :
30624  else
30625     echo "$as_me:$LINENO: result: no" >&5
30626echo "${ECHO_T}no" >&6
30627     if test -f conf.vorbistest ; then
30628       :
30629     else
30630       echo "*** Could not run Vorbis test program, checking why..."
30631       CFLAGS="$CFLAGS $VORBIS_CFLAGS"
30632       LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
30633       cat >conftest.$ac_ext <<_ACEOF
30634/* confdefs.h.  */
30635_ACEOF
30636cat confdefs.h >>conftest.$ac_ext
30637cat >>conftest.$ac_ext <<_ACEOF
30638/* end confdefs.h.  */
30639
30640#include <stdio.h>
30641#include <vorbis/codec.h>
30642
30643int
30644main ()
30645{
30646 return 0;
30647  ;
30648  return 0;
30649}
30650_ACEOF
30651rm -f conftest.$ac_objext conftest$ac_exeext
30652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30653  (eval $ac_link) 2>conftest.er1
30654  ac_status=$?
30655  grep -v '^ *+' conftest.er1 >conftest.err
30656  rm -f conftest.er1
30657  cat conftest.err >&5
30658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659  (exit $ac_status); } &&
30660	 { ac_try='test -z "$ac_c_werror_flag"
30661			 || test ! -s conftest.err'
30662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663  (eval $ac_try) 2>&5
30664  ac_status=$?
30665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666  (exit $ac_status); }; } &&
30667	 { ac_try='test -s conftest$ac_exeext'
30668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30669  (eval $ac_try) 2>&5
30670  ac_status=$?
30671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672  (exit $ac_status); }; }; then
30673   echo "*** The test program compiled, but did not run. This usually means"
30674       echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
30675       echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
30676       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30677       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30678       echo "*** is required on your system"
30679       echo "***"
30680       echo "*** If you have an old version installed, it is best to remove it, although"
30681       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30682else
30683  echo "$as_me: failed program was:" >&5
30684sed 's/^/| /' conftest.$ac_ext >&5
30685
30686 echo "*** The test program failed to compile or link. See the file config.log for the"
30687       echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
30688       echo "*** or that you have moved Vorbis since it was installed."
30689fi
30690rm -f conftest.err conftest.$ac_objext \
30691      conftest$ac_exeext conftest.$ac_ext
30692       CFLAGS="$ac_save_CFLAGS"
30693       LIBS="$ac_save_LIBS"
30694     fi
30695     VORBIS_CFLAGS=""
30696     VORBIS_LIBS=""
30697     VORBISFILE_LIBS=""
30698     VORBISENC_LIBS=""
30699     { { echo "$as_me:$LINENO: error: OGG/VORBIS needed" >&5
30700echo "$as_me: error: OGG/VORBIS needed" >&2;}
30701   { (exit 1); exit 1; }; }
30702  fi
30703
30704
30705
30706
30707  rm -f conf.vorbistest
30708
30709
30710  else
30711     echo "$as_me:$LINENO: result: no" >&5
30712echo "${ECHO_T}no" >&6
30713     if test -f conf.oggtest ; then
30714       :
30715     else
30716       echo "*** Could not run Ogg test program, checking why..."
30717       CFLAGS="$CFLAGS $OGG_CFLAGS"
30718       LIBS="$LIBS $OGG_LIBS"
30719       cat >conftest.$ac_ext <<_ACEOF
30720/* confdefs.h.  */
30721_ACEOF
30722cat confdefs.h >>conftest.$ac_ext
30723cat >>conftest.$ac_ext <<_ACEOF
30724/* end confdefs.h.  */
30725
30726#include <stdio.h>
30727#include <ogg/ogg.h>
30728
30729int
30730main ()
30731{
30732 return 0;
30733  ;
30734  return 0;
30735}
30736_ACEOF
30737rm -f conftest.$ac_objext conftest$ac_exeext
30738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30739  (eval $ac_link) 2>conftest.er1
30740  ac_status=$?
30741  grep -v '^ *+' conftest.er1 >conftest.err
30742  rm -f conftest.er1
30743  cat conftest.err >&5
30744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745  (exit $ac_status); } &&
30746	 { ac_try='test -z "$ac_c_werror_flag"
30747			 || test ! -s conftest.err'
30748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30749  (eval $ac_try) 2>&5
30750  ac_status=$?
30751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752  (exit $ac_status); }; } &&
30753	 { ac_try='test -s conftest$ac_exeext'
30754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755  (eval $ac_try) 2>&5
30756  ac_status=$?
30757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758  (exit $ac_status); }; }; then
30759   echo "*** The test program compiled, but did not run. This usually means"
30760       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
30761       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
30762       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30763       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30764       echo "*** is required on your system"
30765       echo "***"
30766       echo "*** If you have an old version installed, it is best to remove it, although"
30767       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30768else
30769  echo "$as_me: failed program was:" >&5
30770sed 's/^/| /' conftest.$ac_ext >&5
30771
30772 echo "*** The test program failed to compile or link. See the file config.log for the"
30773       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
30774       echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
30775       echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
30776fi
30777rm -f conftest.err conftest.$ac_objext \
30778      conftest$ac_exeext conftest.$ac_ext
30779       CFLAGS="$ac_save_CFLAGS"
30780       LIBS="$ac_save_LIBS"
30781     fi
30782     OGG_CFLAGS=""
30783     OGG_LIBS=""
30784     { { echo "$as_me:$LINENO: error: OGG/VORBIS needed" >&5
30785echo "$as_me: error: OGG/VORBIS needed" >&2;}
30786   { (exit 1); exit 1; }; }
30787  fi
30788
30789
30790  rm -f conf.oggtest
30791
30792
30793
30794if test "x$no_ogg" != xyes -a "x$no_vorbis" != xyes; then
30795  HAVE_VORBIS_TRUE=
30796  HAVE_VORBIS_FALSE='#'
30797else
30798  HAVE_VORBIS_TRUE='#'
30799  HAVE_VORBIS_FALSE=
30800fi
30801
30802
30803JPEG_CFLAGS=""
30804JPEG_LIBS=""
30805available_jpeg=no
30806
30807# Check whether --with-libjpeg-prefix or --without-libjpeg-prefix was given.
30808if test "${with_libjpeg_prefix+set}" = set; then
30809  withval="$with_libjpeg_prefix"
30810  libjpeg_prefix="$withval"
30811else
30812  libjpeg_prefix=""
30813fi;
30814
30815if test "x$libjpeg_prefix" != x ; then
30816  JPEG_CFLAGS="-I$libjpeg_prefix/include"
30817  JPEG_LIBS="-L$libjpeg_prefix/lib"
30818fi
30819
30820ac_save_CFLAGS="$CFLAGS"
30821ac_save_LIBS="$LIBS"
30822CFLAGS="$CFLAGS $JPEG_CFLAGS"
30823LIBS="$LIBS $JPEG_LIBS"
30824
30825echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5
30826echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6
30827if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
30828  echo $ECHO_N "(cached) $ECHO_C" >&6
30829else
30830  ac_check_lib_save_LIBS=$LIBS
30831LIBS="-ljpeg  $LIBS"
30832cat >conftest.$ac_ext <<_ACEOF
30833/* confdefs.h.  */
30834_ACEOF
30835cat confdefs.h >>conftest.$ac_ext
30836cat >>conftest.$ac_ext <<_ACEOF
30837/* end confdefs.h.  */
30838
30839/* Override any gcc2 internal prototype to avoid an error.  */
30840#ifdef __cplusplus
30841extern "C"
30842#endif
30843/* We use char because int might match the return type of a gcc2
30844   builtin and then its argument prototype would still apply.  */
30845char jpeg_destroy_decompress ();
30846int
30847main ()
30848{
30849jpeg_destroy_decompress ();
30850  ;
30851  return 0;
30852}
30853_ACEOF
30854rm -f conftest.$ac_objext conftest$ac_exeext
30855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30856  (eval $ac_link) 2>conftest.er1
30857  ac_status=$?
30858  grep -v '^ *+' conftest.er1 >conftest.err
30859  rm -f conftest.er1
30860  cat conftest.err >&5
30861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862  (exit $ac_status); } &&
30863	 { ac_try='test -z "$ac_c_werror_flag"
30864			 || test ! -s conftest.err'
30865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866  (eval $ac_try) 2>&5
30867  ac_status=$?
30868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869  (exit $ac_status); }; } &&
30870	 { ac_try='test -s conftest$ac_exeext'
30871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872  (eval $ac_try) 2>&5
30873  ac_status=$?
30874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875  (exit $ac_status); }; }; then
30876  ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
30877else
30878  echo "$as_me: failed program was:" >&5
30879sed 's/^/| /' conftest.$ac_ext >&5
30880
30881ac_cv_lib_jpeg_jpeg_destroy_decompress=no
30882fi
30883rm -f conftest.err conftest.$ac_objext \
30884      conftest$ac_exeext conftest.$ac_ext
30885LIBS=$ac_check_lib_save_LIBS
30886fi
30887echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
30888echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6
30889if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
30890  available_jpeg=yes
30891else
30892  available_jpeg=no
30893fi
30894
30895
30896if test "x$available_jpeg" = xyes; then
30897   echo "$as_me:$LINENO: checking for jpeglib.h" >&5
30898echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
30899   cat >conftest.$ac_ext <<_ACEOF
30900/* confdefs.h.  */
30901_ACEOF
30902cat confdefs.h >>conftest.$ac_ext
30903cat >>conftest.$ac_ext <<_ACEOF
30904/* end confdefs.h.  */
30905#include <stdio.h>
30906#undef PACKAGE
30907#undef VERSION
30908#undef HAVE_STDLIB_H
30909#include <jpeglib.h>
30910_ACEOF
30911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30912  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30913  ac_status=$?
30914  grep -v '^ *+' conftest.er1 >conftest.err
30915  rm -f conftest.er1
30916  cat conftest.err >&5
30917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918  (exit $ac_status); } >/dev/null; then
30919  if test -s conftest.err; then
30920    ac_cpp_err=$ac_c_preproc_warn_flag
30921    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30922  else
30923    ac_cpp_err=
30924  fi
30925else
30926  ac_cpp_err=yes
30927fi
30928if test -z "$ac_cpp_err"; then
30929  available_jpeg=yes
30930else
30931  echo "$as_me: failed program was:" >&5
30932sed 's/^/| /' conftest.$ac_ext >&5
30933
30934  available_jpeg=no
30935fi
30936rm -f conftest.err conftest.$ac_ext
30937   echo "$as_me:$LINENO: result: $available_jpeg" >&5
30938echo "${ECHO_T}$available_jpeg" >&6
30939   if test "x$available_jpeg" = xyes; then
30940     JPEG_LIBS="$JPEG_LIBS -ljpeg"
30941   fi
30942fi
30943CFLAGS="$ac_save_CFLAGS"
30944LIBS="$ac_save_LIBS"
30945
30946if test "x$available_jpeg" != xyes; then
30947   { { echo "$as_me:$LINENO: error: libjpeg needed" >&5
30948echo "$as_me: error: libjpeg needed" >&2;}
30949   { (exit 1); exit 1; }; }
30950fi
30951
30952
30953
30954if test "x$available_jpeg" = xyes; then
30955  ENABLE_JPEG_TRUE=
30956  ENABLE_JPEG_FALSE='#'
30957else
30958  ENABLE_JPEG_TRUE='#'
30959  ENABLE_JPEG_FALSE=
30960fi
30961
30962
30963
30964
30965enable_jpeg=$available_jpeg
30966
30967
30968# Check whether --enable-debug or --disable-debug was given.
30969if test "${enable_debug+set}" = set; then
30970  enableval="$enable_debug"
30971
30972else
30973  enable_debug=no
30974fi;
30975
30976if test "x$enable_debug" = xyes; then
30977  DEBUG_CFLAGS="-g"
30978  if test "x$GCC" = xyes; then
30979    DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
30980  fi
30981
30982cat >>confdefs.h <<\_ACEOF
30983#define DEBUG 1
30984_ACEOF
30985
30986else
30987  CFLAGS="`echo $CFLAGS | sed 's/-g//g'`"
30988  DEBUG_CFLAGS=""
30989fi
30990
30991
30992
30993echo "xsystem35 summary:"
30994echo "------------------"
30995
30996echo " * audio output:"
30997if test "x$have_ossaudio" = xyes; then
30998    echo "    - oss (Open Sound System)"
30999fi
31000if test "x$have_sunaudio" = xyes; then
31001    echo "    - sun ()"
31002fi
31003if test "x$no_alsa" != xyes; then
31004  if test "x$have_alsa05" = xyes; then
31005    echo "    - alsa05 (Alsa 0.5.x)"
31006  fi
31007  if test "x$have_alsa09" = xyes; then
31008    echo "    - alsa09 (Alsa 0.9.x)"
31009  fi
31010fi
31011if test "x$no_esd" != xyes; then
31012  echo "    - esd (Enlightened Sound Daemon)"
31013fi
31014echo ""
31015
31016echo " * cdrom output:"
31017if test "x$enable_cd_linux" = xyes; then
31018  echo "    - Linux|Solaris ioctl"
31019fi
31020if test "x$enable_cd_bsd" = xyes; then
31021  echo "    - *BSD ioctl"
31022fi
31023if test "x$enable_cd_irix" = xyes; then
31024  echo "    - Irix cdrom library"
31025fi
31026if test "x$enable_cd_mp3" = xyes; then
31027  echo "    - External player (wav|mp3|ogg...)"
31028fi
31029echo ""
31030
31031echo " * midi output:"
31032if test "x$enable_midi_raw" = xyes; then
31033  echo "    - raw midi interface"
31034fi
31035if test "x$enable_midi_seq" = xyes; then
31036  echo "    - OSS sequencer interface"
31037fi
31038if test "x$enable_midi_extp" = xyes; then
31039  echo "    - External MIDI Player"
31040fi
31041echo ""
31042
31043echo " * font device:"
31044if test "x$have_sdl" = xyes; then
31045  if test "x$enable_gtk" = xyes; then
31046    echo "    - gtk(gdk) font"
31047  fi
31048else
31049  echo "    - x11 font"
31050fi
31051if test "x$have_ttf" = xyes; then
31052  echo "    - old truetype font library"
31053fi
31054if test "x$no_ft" != xyes; then
31055  echo "    - freetype2 library"
31056fi
31057echo ""
31058
31059echo "----"
31060
31061
31062
31063
31064                                                                                                                                                                                                                                                                                                            ac_config_files="$ac_config_files po/Makefile.in Makefile xsystem35.spec modules/ShArray/Makefile modules/ShCalc/Makefile modules/ShString/Makefile modules/ShPort/Makefile modules/nDEMO/Makefile modules/nDEMOE/Makefile modules/NIGHTDLL/Makefile modules/oujimisc/Makefile modules/RandMT/Makefile modules/Math/Makefile modules/Gpx/Makefile modules/MsgSkip/Makefile modules/ShSound/Makefile modules/ShGraph/Makefile modules/dDemo/Makefile modules/oDEMO/Makefile modules/SACT/Makefile modules/tDemo/Makefile modules/eDemo/Makefile modules/eeDemo/Makefile modules/Confirm/Makefile modules/AliceLogo/Makefile modules/NightDemonDemo/Makefile modules/lib/Makefile modules/Makefile src/Makefile macros/Makefile"
31065
31066cat >confcache <<\_ACEOF
31067# This file is a shell script that caches the results of configure
31068# tests run on this system so they can be shared between configure
31069# scripts and configure runs, see configure's option --config-cache.
31070# It is not useful on other systems.  If it contains results you don't
31071# want to keep, you may remove or edit it.
31072#
31073# config.status only pays attention to the cache file if you give it
31074# the --recheck option to rerun configure.
31075#
31076# `ac_cv_env_foo' variables (set or unset) will be overridden when
31077# loading this file, other *unset* `ac_cv_foo' will be assigned the
31078# following values.
31079
31080_ACEOF
31081
31082# The following way of writing the cache mishandles newlines in values,
31083# but we know of no workaround that is simple, portable, and efficient.
31084# So, don't put newlines in cache variables' values.
31085# Ultrix sh set writes to stderr and can't be redirected directly,
31086# and sets the high bit in the cache file unless we assign to the vars.
31087{
31088  (set) 2>&1 |
31089    case `(ac_space=' '; set | grep ac_space) 2>&1` in
31090    *ac_space=\ *)
31091      # `set' does not quote correctly, so add quotes (double-quote
31092      # substitution turns \\\\ into \\, and sed turns \\ into \).
31093      sed -n \
31094	"s/'/'\\\\''/g;
31095	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31096      ;;
31097    *)
31098      # `set' quotes correctly as required by POSIX, so do not add quotes.
31099      sed -n \
31100	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31101      ;;
31102    esac;
31103} |
31104  sed '
31105     t clear
31106     : clear
31107     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31108     t end
31109     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31110     : end' >>confcache
31111if diff $cache_file confcache >/dev/null 2>&1; then :; else
31112  if test -w $cache_file; then
31113    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31114    cat confcache >$cache_file
31115  else
31116    echo "not updating unwritable cache $cache_file"
31117  fi
31118fi
31119rm -f confcache
31120
31121test "x$prefix" = xNONE && prefix=$ac_default_prefix
31122# Let make expand exec_prefix.
31123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31124
31125# VPATH may cause trouble with some makes, so we remove $(srcdir),
31126# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31127# trailing colons and then remove the whole line if VPATH becomes empty
31128# (actually we leave an empty line to preserve line numbers).
31129if test "x$srcdir" = x.; then
31130  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31131s/:*\$(srcdir):*/:/;
31132s/:*\${srcdir}:*/:/;
31133s/:*@srcdir@:*/:/;
31134s/^\([^=]*=[	 ]*\):*/\1/;
31135s/:*$//;
31136s/^[^=]*=[	 ]*$//;
31137}'
31138fi
31139
31140DEFS=-DHAVE_CONFIG_H
31141
31142ac_libobjs=
31143ac_ltlibobjs=
31144for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31145  # 1. Remove the extension, and $U if already installed.
31146  ac_i=`echo "$ac_i" |
31147	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31148  # 2. Add them.
31149  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31150  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31151done
31152LIBOBJS=$ac_libobjs
31153
31154LTLIBOBJS=$ac_ltlibobjs
31155
31156
31157if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31158  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
31159Usually this means the macro was only invoked conditionally." >&5
31160echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
31161Usually this means the macro was only invoked conditionally." >&2;}
31162   { (exit 1); exit 1; }; }
31163fi
31164if test -z "${INSIDE_GNOME_COMMON_TRUE}" && test -z "${INSIDE_GNOME_COMMON_FALSE}"; then
31165  { { echo "$as_me:$LINENO: error: conditional \"INSIDE_GNOME_COMMON\" was never defined.
31166Usually this means the macro was only invoked conditionally." >&5
31167echo "$as_me: error: conditional \"INSIDE_GNOME_COMMON\" was never defined.
31168Usually this means the macro was only invoked conditionally." >&2;}
31169   { (exit 1); exit 1; }; }
31170fi
31171if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31172  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31173Usually this means the macro was only invoked conditionally." >&5
31174echo "$as_me: error: conditional \"AMDEP\" was never defined.
31175Usually this means the macro was only invoked conditionally." >&2;}
31176   { (exit 1); exit 1; }; }
31177fi
31178if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31179  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31180Usually this means the macro was only invoked conditionally." >&5
31181echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31182Usually this means the macro was only invoked conditionally." >&2;}
31183   { (exit 1); exit 1; }; }
31184fi
31185if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31186  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31187Usually this means the macro was only invoked conditionally." >&5
31188echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31189Usually this means the macro was only invoked conditionally." >&2;}
31190   { (exit 1); exit 1; }; }
31191fi
31192if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31193  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31194Usually this means the macro was only invoked conditionally." >&5
31195echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31196Usually this means the macro was only invoked conditionally." >&2;}
31197   { (exit 1); exit 1; }; }
31198fi
31199if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31200  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31201Usually this means the macro was only invoked conditionally." >&5
31202echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31203Usually this means the macro was only invoked conditionally." >&2;}
31204   { (exit 1); exit 1; }; }
31205fi
31206if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
31207  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
31208Usually this means the macro was only invoked conditionally." >&5
31209echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
31210Usually this means the macro was only invoked conditionally." >&2;}
31211   { (exit 1); exit 1; }; }
31212fi
31213if test -z "${HAVE_VORBIS_TRUE}" && test -z "${HAVE_VORBIS_FALSE}"; then
31214  { { echo "$as_me:$LINENO: error: conditional \"HAVE_VORBIS\" was never defined.
31215Usually this means the macro was only invoked conditionally." >&5
31216echo "$as_me: error: conditional \"HAVE_VORBIS\" was never defined.
31217Usually this means the macro was only invoked conditionally." >&2;}
31218   { (exit 1); exit 1; }; }
31219fi
31220if test -z "${ENABLE_JPEG_TRUE}" && test -z "${ENABLE_JPEG_FALSE}"; then
31221  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_JPEG\" was never defined.
31222Usually this means the macro was only invoked conditionally." >&5
31223echo "$as_me: error: conditional \"ENABLE_JPEG\" was never defined.
31224Usually this means the macro was only invoked conditionally." >&2;}
31225   { (exit 1); exit 1; }; }
31226fi
31227
31228: ${CONFIG_STATUS=./config.status}
31229ac_clean_files_save=$ac_clean_files
31230ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31231{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31232echo "$as_me: creating $CONFIG_STATUS" >&6;}
31233cat >$CONFIG_STATUS <<_ACEOF
31234#! $SHELL
31235# Generated by $as_me.
31236# Run this file to recreate the current configuration.
31237# Compiler output produced by configure, useful for debugging
31238# configure, is in config.log if it exists.
31239
31240debug=false
31241ac_cs_recheck=false
31242ac_cs_silent=false
31243SHELL=\${CONFIG_SHELL-$SHELL}
31244_ACEOF
31245
31246cat >>$CONFIG_STATUS <<\_ACEOF
31247## --------------------- ##
31248## M4sh Initialization.  ##
31249## --------------------- ##
31250
31251# Be Bourne compatible
31252if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31253  emulate sh
31254  NULLCMD=:
31255  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31256  # is contrary to our usage.  Disable this feature.
31257  alias -g '${1+"$@"}'='"$@"'
31258elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31259  set -o posix
31260fi
31261DUALCASE=1; export DUALCASE # for MKS sh
31262
31263# Support unset when possible.
31264if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31265  as_unset=unset
31266else
31267  as_unset=false
31268fi
31269
31270
31271# Work around bugs in pre-3.0 UWIN ksh.
31272$as_unset ENV MAIL MAILPATH
31273PS1='$ '
31274PS2='> '
31275PS4='+ '
31276
31277# NLS nuisances.
31278for as_var in \
31279  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31280  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31281  LC_TELEPHONE LC_TIME
31282do
31283  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31284    eval $as_var=C; export $as_var
31285  else
31286    $as_unset $as_var
31287  fi
31288done
31289
31290# Required to use basename.
31291if expr a : '\(a\)' >/dev/null 2>&1; then
31292  as_expr=expr
31293else
31294  as_expr=false
31295fi
31296
31297if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31298  as_basename=basename
31299else
31300  as_basename=false
31301fi
31302
31303
31304# Name of the executable.
31305as_me=`$as_basename "$0" ||
31306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31307	 X"$0" : 'X\(//\)$' \| \
31308	 X"$0" : 'X\(/\)$' \| \
31309	 .     : '\(.\)' 2>/dev/null ||
31310echo X/"$0" |
31311    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31312  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
31313  	  /^X\/\(\/\).*/{ s//\1/; q; }
31314  	  s/.*/./; q'`
31315
31316
31317# PATH needs CR, and LINENO needs CR and PATH.
31318# Avoid depending upon Character Ranges.
31319as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31320as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31321as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31322as_cr_digits='0123456789'
31323as_cr_alnum=$as_cr_Letters$as_cr_digits
31324
31325# The user is always right.
31326if test "${PATH_SEPARATOR+set}" != set; then
31327  echo "#! /bin/sh" >conf$$.sh
31328  echo  "exit 0"   >>conf$$.sh
31329  chmod +x conf$$.sh
31330  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31331    PATH_SEPARATOR=';'
31332  else
31333    PATH_SEPARATOR=:
31334  fi
31335  rm -f conf$$.sh
31336fi
31337
31338
31339  as_lineno_1=$LINENO
31340  as_lineno_2=$LINENO
31341  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31342  test "x$as_lineno_1" != "x$as_lineno_2" &&
31343  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31344  # Find who we are.  Look in the path if we contain no path at all
31345  # relative or not.
31346  case $0 in
31347    *[\\/]* ) as_myself=$0 ;;
31348    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31349for as_dir in $PATH
31350do
31351  IFS=$as_save_IFS
31352  test -z "$as_dir" && as_dir=.
31353  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31354done
31355
31356       ;;
31357  esac
31358  # We did not find ourselves, most probably we were run as `sh COMMAND'
31359  # in which case we are not to be found in the path.
31360  if test "x$as_myself" = x; then
31361    as_myself=$0
31362  fi
31363  if test ! -f "$as_myself"; then
31364    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31365echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31366   { (exit 1); exit 1; }; }
31367  fi
31368  case $CONFIG_SHELL in
31369  '')
31370    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31371for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31372do
31373  IFS=$as_save_IFS
31374  test -z "$as_dir" && as_dir=.
31375  for as_base in sh bash ksh sh5; do
31376	 case $as_dir in
31377	 /*)
31378	   if ("$as_dir/$as_base" -c '
31379  as_lineno_1=$LINENO
31380  as_lineno_2=$LINENO
31381  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31382  test "x$as_lineno_1" != "x$as_lineno_2" &&
31383  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31384	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31385	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31386	     CONFIG_SHELL=$as_dir/$as_base
31387	     export CONFIG_SHELL
31388	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31389	   fi;;
31390	 esac
31391       done
31392done
31393;;
31394  esac
31395
31396  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31397  # uniformly replaced by the line number.  The first 'sed' inserts a
31398  # line-number line before each line; the second 'sed' does the real
31399  # work.  The second script uses 'N' to pair each line-number line
31400  # with the numbered line, and appends trailing '-' during
31401  # substitution so that $LINENO is not a special case at line end.
31402  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31403  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31404  sed '=' <$as_myself |
31405    sed '
31406      N
31407      s,$,-,
31408      : loop
31409      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31410      t loop
31411      s,-$,,
31412      s,^['$as_cr_digits']*\n,,
31413    ' >$as_me.lineno &&
31414  chmod +x $as_me.lineno ||
31415    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31416echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31417   { (exit 1); exit 1; }; }
31418
31419  # Don't try to exec as it changes $[0], causing all sort of problems
31420  # (the dirname of $[0] is not the place where we might find the
31421  # original and so on.  Autoconf is especially sensible to this).
31422  . ./$as_me.lineno
31423  # Exit status is that of the last command.
31424  exit
31425}
31426
31427
31428case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31429  *c*,-n*) ECHO_N= ECHO_C='
31430' ECHO_T='	' ;;
31431  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31432  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31433esac
31434
31435if expr a : '\(a\)' >/dev/null 2>&1; then
31436  as_expr=expr
31437else
31438  as_expr=false
31439fi
31440
31441rm -f conf$$ conf$$.exe conf$$.file
31442echo >conf$$.file
31443if ln -s conf$$.file conf$$ 2>/dev/null; then
31444  # We could just check for DJGPP; but this test a) works b) is more generic
31445  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31446  if test -f conf$$.exe; then
31447    # Don't use ln at all; we don't have any links
31448    as_ln_s='cp -p'
31449  else
31450    as_ln_s='ln -s'
31451  fi
31452elif ln conf$$.file conf$$ 2>/dev/null; then
31453  as_ln_s=ln
31454else
31455  as_ln_s='cp -p'
31456fi
31457rm -f conf$$ conf$$.exe conf$$.file
31458
31459if mkdir -p . 2>/dev/null; then
31460  as_mkdir_p=:
31461else
31462  test -d ./-p && rmdir ./-p
31463  as_mkdir_p=false
31464fi
31465
31466as_executable_p="test -f"
31467
31468# Sed expression to map a string onto a valid CPP name.
31469as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31470
31471# Sed expression to map a string onto a valid variable name.
31472as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31473
31474
31475# IFS
31476# We need space, tab and new line, in precisely that order.
31477as_nl='
31478'
31479IFS=" 	$as_nl"
31480
31481# CDPATH.
31482$as_unset CDPATH
31483
31484exec 6>&1
31485
31486# Open the log real soon, to keep \$[0] and so on meaningful, and to
31487# report actual input values of CONFIG_FILES etc. instead of their
31488# values after options handling.  Logging --version etc. is OK.
31489exec 5>>config.log
31490{
31491  echo
31492  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31493## Running $as_me. ##
31494_ASBOX
31495} >&5
31496cat >&5 <<_CSEOF
31497
31498This file was extended by $as_me, which was
31499generated by GNU Autoconf 2.59.  Invocation command line was
31500
31501  CONFIG_FILES    = $CONFIG_FILES
31502  CONFIG_HEADERS  = $CONFIG_HEADERS
31503  CONFIG_LINKS    = $CONFIG_LINKS
31504  CONFIG_COMMANDS = $CONFIG_COMMANDS
31505  $ $0 $@
31506
31507_CSEOF
31508echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31509echo >&5
31510_ACEOF
31511
31512# Files that config.status was made for.
31513if test -n "$ac_config_files"; then
31514  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31515fi
31516
31517if test -n "$ac_config_headers"; then
31518  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31519fi
31520
31521if test -n "$ac_config_links"; then
31522  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31523fi
31524
31525if test -n "$ac_config_commands"; then
31526  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31527fi
31528
31529cat >>$CONFIG_STATUS <<\_ACEOF
31530
31531ac_cs_usage="\
31532\`$as_me' instantiates files from templates according to the
31533current configuration.
31534
31535Usage: $0 [OPTIONS] [FILE]...
31536
31537  -h, --help       print this help, then exit
31538  -V, --version    print version number, then exit
31539  -q, --quiet      do not print progress messages
31540  -d, --debug      don't remove temporary files
31541      --recheck    update $as_me by reconfiguring in the same conditions
31542  --file=FILE[:TEMPLATE]
31543		   instantiate the configuration file FILE
31544  --header=FILE[:TEMPLATE]
31545		   instantiate the configuration header FILE
31546
31547Configuration files:
31548$config_files
31549
31550Configuration headers:
31551$config_headers
31552
31553Configuration commands:
31554$config_commands
31555
31556Report bugs to <bug-autoconf@gnu.org>."
31557_ACEOF
31558
31559cat >>$CONFIG_STATUS <<_ACEOF
31560ac_cs_version="\\
31561config.status
31562configured by $0, generated by GNU Autoconf 2.59,
31563  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31564
31565Copyright (C) 2003 Free Software Foundation, Inc.
31566This config.status script is free software; the Free Software Foundation
31567gives unlimited permission to copy, distribute and modify it."
31568srcdir=$srcdir
31569INSTALL="$INSTALL"
31570_ACEOF
31571
31572cat >>$CONFIG_STATUS <<\_ACEOF
31573# If no file are specified by the user, then we need to provide default
31574# value.  By we need to know if files were specified by the user.
31575ac_need_defaults=:
31576while test $# != 0
31577do
31578  case $1 in
31579  --*=*)
31580    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31581    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31582    ac_shift=:
31583    ;;
31584  -*)
31585    ac_option=$1
31586    ac_optarg=$2
31587    ac_shift=shift
31588    ;;
31589  *) # This is not an option, so the user has probably given explicit
31590     # arguments.
31591     ac_option=$1
31592     ac_need_defaults=false;;
31593  esac
31594
31595  case $ac_option in
31596  # Handling of the options.
31597_ACEOF
31598cat >>$CONFIG_STATUS <<\_ACEOF
31599  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31600    ac_cs_recheck=: ;;
31601  --version | --vers* | -V )
31602    echo "$ac_cs_version"; exit 0 ;;
31603  --he | --h)
31604    # Conflict between --help and --header
31605    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31606Try \`$0 --help' for more information." >&5
31607echo "$as_me: error: ambiguous option: $1
31608Try \`$0 --help' for more information." >&2;}
31609   { (exit 1); exit 1; }; };;
31610  --help | --hel | -h )
31611    echo "$ac_cs_usage"; exit 0 ;;
31612  --debug | --d* | -d )
31613    debug=: ;;
31614  --file | --fil | --fi | --f )
31615    $ac_shift
31616    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31617    ac_need_defaults=false;;
31618  --header | --heade | --head | --hea )
31619    $ac_shift
31620    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31621    ac_need_defaults=false;;
31622  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31623  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31624    ac_cs_silent=: ;;
31625
31626  # This is an error.
31627  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31628Try \`$0 --help' for more information." >&5
31629echo "$as_me: error: unrecognized option: $1
31630Try \`$0 --help' for more information." >&2;}
31631   { (exit 1); exit 1; }; } ;;
31632
31633  *) ac_config_targets="$ac_config_targets $1" ;;
31634
31635  esac
31636  shift
31637done
31638
31639ac_configure_extra_args=
31640
31641if $ac_cs_silent; then
31642  exec 6>/dev/null
31643  ac_configure_extra_args="$ac_configure_extra_args --silent"
31644fi
31645
31646_ACEOF
31647cat >>$CONFIG_STATUS <<_ACEOF
31648if \$ac_cs_recheck; then
31649  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31650  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31651fi
31652
31653_ACEOF
31654
31655cat >>$CONFIG_STATUS <<_ACEOF
31656#
31657# INIT-COMMANDS section.
31658#
31659
31660AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31661# Capture the value of obsolete ALL_LINGUAS because we need it to compute
31662    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
31663    # from automake.
31664    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
31665    # Capture the value of LINGUAS because we need it to compute CATALOGS.
31666    LINGUAS="${LINGUAS-%UNSET%}"
31667
31668
31669_ACEOF
31670
31671
31672
31673cat >>$CONFIG_STATUS <<\_ACEOF
31674for ac_config_target in $ac_config_targets
31675do
31676  case "$ac_config_target" in
31677  # Handling of arguments.
31678  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31679  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31680  "xsystem35.spec" ) CONFIG_FILES="$CONFIG_FILES xsystem35.spec" ;;
31681  "modules/ShArray/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/ShArray/Makefile" ;;
31682  "modules/ShCalc/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/ShCalc/Makefile" ;;
31683  "modules/ShString/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/ShString/Makefile" ;;
31684  "modules/ShPort/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/ShPort/Makefile" ;;
31685  "modules/nDEMO/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/nDEMO/Makefile" ;;
31686  "modules/nDEMOE/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/nDEMOE/Makefile" ;;
31687  "modules/NIGHTDLL/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/NIGHTDLL/Makefile" ;;
31688  "modules/oujimisc/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/oujimisc/Makefile" ;;
31689  "modules/RandMT/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/RandMT/Makefile" ;;
31690  "modules/Math/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Math/Makefile" ;;
31691  "modules/Gpx/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Gpx/Makefile" ;;
31692  "modules/MsgSkip/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/MsgSkip/Makefile" ;;
31693  "modules/ShSound/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/ShSound/Makefile" ;;
31694  "modules/ShGraph/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/ShGraph/Makefile" ;;
31695  "modules/dDemo/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/dDemo/Makefile" ;;
31696  "modules/oDEMO/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/oDEMO/Makefile" ;;
31697  "modules/SACT/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/SACT/Makefile" ;;
31698  "modules/tDemo/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/tDemo/Makefile" ;;
31699  "modules/eDemo/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/eDemo/Makefile" ;;
31700  "modules/eeDemo/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/eeDemo/Makefile" ;;
31701  "modules/Confirm/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Confirm/Makefile" ;;
31702  "modules/AliceLogo/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/AliceLogo/Makefile" ;;
31703  "modules/NightDemonDemo/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/NightDemonDemo/Makefile" ;;
31704  "modules/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/lib/Makefile" ;;
31705  "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
31706  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31707  "macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
31708  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31709  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31710  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31711  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31712echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31713   { (exit 1); exit 1; }; };;
31714  esac
31715done
31716
31717# If the user did not use the arguments to specify the items to instantiate,
31718# then the envvar interface is used.  Set only those that are not.
31719# We use the long form for the default assignment because of an extremely
31720# bizarre bug on SunOS 4.1.3.
31721if $ac_need_defaults; then
31722  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31723  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31724  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31725fi
31726
31727# Have a temporary directory for convenience.  Make it in the build tree
31728# simply because there is no reason to put it here, and in addition,
31729# creating and moving files from /tmp can sometimes cause problems.
31730# Create a temporary directory, and hook for its removal unless debugging.
31731$debug ||
31732{
31733  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31734  trap '{ (exit 1); exit 1; }' 1 2 13 15
31735}
31736
31737# Create a (secure) tmp directory for tmp files.
31738
31739{
31740  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31741  test -n "$tmp" && test -d "$tmp"
31742}  ||
31743{
31744  tmp=./confstat$$-$RANDOM
31745  (umask 077 && mkdir $tmp)
31746} ||
31747{
31748   echo "$me: cannot create a temporary directory in ." >&2
31749   { (exit 1); exit 1; }
31750}
31751
31752_ACEOF
31753
31754cat >>$CONFIG_STATUS <<_ACEOF
31755
31756#
31757# CONFIG_FILES section.
31758#
31759
31760# No need to generate the scripts if there are no CONFIG_FILES.
31761# This happens for instance when ./config.status config.h
31762if test -n "\$CONFIG_FILES"; then
31763  # Protect against being on the right side of a sed subst in config.status.
31764  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31765   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31766s,@SHELL@,$SHELL,;t t
31767s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31768s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31769s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31770s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31771s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31772s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31773s,@exec_prefix@,$exec_prefix,;t t
31774s,@prefix@,$prefix,;t t
31775s,@program_transform_name@,$program_transform_name,;t t
31776s,@bindir@,$bindir,;t t
31777s,@sbindir@,$sbindir,;t t
31778s,@libexecdir@,$libexecdir,;t t
31779s,@datadir@,$datadir,;t t
31780s,@sysconfdir@,$sysconfdir,;t t
31781s,@sharedstatedir@,$sharedstatedir,;t t
31782s,@localstatedir@,$localstatedir,;t t
31783s,@libdir@,$libdir,;t t
31784s,@includedir@,$includedir,;t t
31785s,@oldincludedir@,$oldincludedir,;t t
31786s,@infodir@,$infodir,;t t
31787s,@mandir@,$mandir,;t t
31788s,@build_alias@,$build_alias,;t t
31789s,@host_alias@,$host_alias,;t t
31790s,@target_alias@,$target_alias,;t t
31791s,@DEFS@,$DEFS,;t t
31792s,@ECHO_C@,$ECHO_C,;t t
31793s,@ECHO_N@,$ECHO_N,;t t
31794s,@ECHO_T@,$ECHO_T,;t t
31795s,@LIBS@,$LIBS,;t t
31796s,@build@,$build,;t t
31797s,@build_cpu@,$build_cpu,;t t
31798s,@build_vendor@,$build_vendor,;t t
31799s,@build_os@,$build_os,;t t
31800s,@host@,$host,;t t
31801s,@host_cpu@,$host_cpu,;t t
31802s,@host_vendor@,$host_vendor,;t t
31803s,@host_os@,$host_os,;t t
31804s,@target@,$target,;t t
31805s,@target_cpu@,$target_cpu,;t t
31806s,@target_vendor@,$target_vendor,;t t
31807s,@target_os@,$target_os,;t t
31808s,@VERSION_MA@,$VERSION_MA,;t t
31809s,@VERSION_MI@,$VERSION_MI,;t t
31810s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31811s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31812s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31813s,@CYGPATH_W@,$CYGPATH_W,;t t
31814s,@PACKAGE@,$PACKAGE,;t t
31815s,@VERSION@,$VERSION,;t t
31816s,@ACLOCAL@,$ACLOCAL,;t t
31817s,@AUTOCONF@,$AUTOCONF,;t t
31818s,@AUTOMAKE@,$AUTOMAKE,;t t
31819s,@AUTOHEADER@,$AUTOHEADER,;t t
31820s,@MAKEINFO@,$MAKEINFO,;t t
31821s,@install_sh@,$install_sh,;t t
31822s,@STRIP@,$STRIP,;t t
31823s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31824s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31825s,@mkdir_p@,$mkdir_p,;t t
31826s,@AWK@,$AWK,;t t
31827s,@SET_MAKE@,$SET_MAKE,;t t
31828s,@am__leading_dot@,$am__leading_dot,;t t
31829s,@AMTAR@,$AMTAR,;t t
31830s,@am__tar@,$am__tar,;t t
31831s,@am__untar@,$am__untar,;t t
31832s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
31833s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
31834s,@MAINT@,$MAINT,;t t
31835s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
31836s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
31837s,@CC@,$CC,;t t
31838s,@CFLAGS@,$CFLAGS,;t t
31839s,@LDFLAGS@,$LDFLAGS,;t t
31840s,@CPPFLAGS@,$CPPFLAGS,;t t
31841s,@ac_ct_CC@,$ac_ct_CC,;t t
31842s,@EXEEXT@,$EXEEXT,;t t
31843s,@OBJEXT@,$OBJEXT,;t t
31844s,@DEPDIR@,$DEPDIR,;t t
31845s,@am__include@,$am__include,;t t
31846s,@am__quote@,$am__quote,;t t
31847s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31848s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31849s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31850s,@CCDEPMODE@,$CCDEPMODE,;t t
31851s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31852s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31853s,@subdirs@,$subdirs,;t t
31854s,@CPP@,$CPP,;t t
31855s,@EGREP@,$EGREP,;t t
31856s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31857s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31858s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31859s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31860s,@LIBADD_DL@,$LIBADD_DL,;t t
31861s,@LN_S@,$LN_S,;t t
31862s,@ECHO@,$ECHO,;t t
31863s,@AR@,$AR,;t t
31864s,@ac_ct_AR@,$ac_ct_AR,;t t
31865s,@RANLIB@,$RANLIB,;t t
31866s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31867s,@CXX@,$CXX,;t t
31868s,@CXXFLAGS@,$CXXFLAGS,;t t
31869s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31870s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31871s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31872s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31873s,@CXXCPP@,$CXXCPP,;t t
31874s,@F77@,$F77,;t t
31875s,@FFLAGS@,$FFLAGS,;t t
31876s,@ac_ct_F77@,$ac_ct_F77,;t t
31877s,@LIBTOOL@,$LIBTOOL,;t t
31878s,@LTDLINCL@,$LTDLINCL,;t t
31879s,@LIBLTDL@,$LIBLTDL,;t t
31880s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31881s,@MSGFMT@,$MSGFMT,;t t
31882s,@GMSGFMT@,$GMSGFMT,;t t
31883s,@XGETTEXT@,$XGETTEXT,;t t
31884s,@MSGMERGE@,$MSGMERGE,;t t
31885s,@USE_NLS@,$USE_NLS,;t t
31886s,@LIBICONV@,$LIBICONV,;t t
31887s,@LTLIBICONV@,$LTLIBICONV,;t t
31888s,@INTLLIBS@,$INTLLIBS,;t t
31889s,@LIBINTL@,$LIBINTL,;t t
31890s,@LTLIBINTL@,$LTLIBINTL,;t t
31891s,@POSUB@,$POSUB,;t t
31892s,@X_CFLAGS@,$X_CFLAGS,;t t
31893s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31894s,@X_LIBS@,$X_LIBS,;t t
31895s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31896s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
31897s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
31898s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
31899s,@GLIB_LIBS@,$GLIB_LIBS,;t t
31900s,@PKG_CONFIG@,$PKG_CONFIG,;t t
31901s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
31902s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
31903s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
31904s,@GTK_CONFIG@,$GTK_CONFIG,;t t
31905s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
31906s,@GTK_LIBS@,$GTK_LIBS,;t t
31907s,@HAVE_GTK_TRUE@,$HAVE_GTK_TRUE,;t t
31908s,@HAVE_GTK_FALSE@,$HAVE_GTK_FALSE,;t t
31909s,@SRC_MENU@,$SRC_MENU,;t t
31910s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
31911s,@ALSA_LIBS@,$ALSA_LIBS,;t t
31912s,@ESD_CONFIG@,$ESD_CONFIG,;t t
31913s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
31914s,@ESD_LIBS@,$ESD_LIBS,;t t
31915s,@SRC_AUDIO@,$SRC_AUDIO,;t t
31916s,@SRC_CDROM@,$SRC_CDROM,;t t
31917s,@ALSAMIX_H@,$ALSAMIX_H,;t t
31918s,@SRC_MIDI@,$SRC_MIDI,;t t
31919s,@SDL_CONFIG@,$SDL_CONFIG,;t t
31920s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
31921s,@SDL_LIBS@,$SDL_LIBS,;t t
31922s,@SDL@,$SDL,;t t
31923s,@SRC_GRAPHDEV@,$SRC_GRAPHDEV,;t t
31924s,@JOY_S@,$JOY_S,;t t
31925s,@FT2_CONFIG@,$FT2_CONFIG,;t t
31926s,@FT2_CFLAGS@,$FT2_CFLAGS,;t t
31927s,@FT2_LIBS@,$FT2_LIBS,;t t
31928s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
31929s,@FREETYPE_INCLUDES@,$FREETYPE_INCLUDES,;t t
31930s,@SRC_FONT@,$SRC_FONT,;t t
31931s,@HAVE_NASM@,$HAVE_NASM,;t t
31932s,@SRC_ABLEND@,$SRC_ABLEND,;t t
31933s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
31934s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
31935s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
31936s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
31937s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
31938s,@OGG_LIBS@,$OGG_LIBS,;t t
31939s,@HAVE_VORBIS_TRUE@,$HAVE_VORBIS_TRUE,;t t
31940s,@HAVE_VORBIS_FALSE@,$HAVE_VORBIS_FALSE,;t t
31941s,@ENABLE_JPEG_TRUE@,$ENABLE_JPEG_TRUE,;t t
31942s,@ENABLE_JPEG_FALSE@,$ENABLE_JPEG_FALSE,;t t
31943s,@JPEG_CFLAGS@,$JPEG_CFLAGS,;t t
31944s,@JPEG_LIBS@,$JPEG_LIBS,;t t
31945s,@DEBUG_CFLAGS@,$DEBUG_CFLAGS,;t t
31946s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
31947s,@EXTRALIBS@,$EXTRALIBS,;t t
31948s,@EXTRALDFLAGS@,$EXTRALDFLAGS,;t t
31949s,@LIBOBJS@,$LIBOBJS,;t t
31950s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31951CEOF
31952
31953_ACEOF
31954
31955  cat >>$CONFIG_STATUS <<\_ACEOF
31956  # Split the substitutions into bite-sized pieces for seds with
31957  # small command number limits, like on Digital OSF/1 and HP-UX.
31958  ac_max_sed_lines=48
31959  ac_sed_frag=1 # Number of current file.
31960  ac_beg=1 # First line for current file.
31961  ac_end=$ac_max_sed_lines # Line after last line for current file.
31962  ac_more_lines=:
31963  ac_sed_cmds=
31964  while $ac_more_lines; do
31965    if test $ac_beg -gt 1; then
31966      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31967    else
31968      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31969    fi
31970    if test ! -s $tmp/subs.frag; then
31971      ac_more_lines=false
31972    else
31973      # The purpose of the label and of the branching condition is to
31974      # speed up the sed processing (if there are no `@' at all, there
31975      # is no need to browse any of the substitutions).
31976      # These are the two extra sed commands mentioned above.
31977      (echo ':t
31978  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31979      if test -z "$ac_sed_cmds"; then
31980	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31981      else
31982	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31983      fi
31984      ac_sed_frag=`expr $ac_sed_frag + 1`
31985      ac_beg=$ac_end
31986      ac_end=`expr $ac_end + $ac_max_sed_lines`
31987    fi
31988  done
31989  if test -z "$ac_sed_cmds"; then
31990    ac_sed_cmds=cat
31991  fi
31992fi # test -n "$CONFIG_FILES"
31993
31994_ACEOF
31995cat >>$CONFIG_STATUS <<\_ACEOF
31996for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31997  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31998  case $ac_file in
31999  - | *:- | *:-:* ) # input from stdin
32000	cat >$tmp/stdin
32001	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32002	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32003  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32004	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32005  * )   ac_file_in=$ac_file.in ;;
32006  esac
32007
32008  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32009  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32010$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32011	 X"$ac_file" : 'X\(//\)[^/]' \| \
32012	 X"$ac_file" : 'X\(//\)$' \| \
32013	 X"$ac_file" : 'X\(/\)' \| \
32014	 .     : '\(.\)' 2>/dev/null ||
32015echo X"$ac_file" |
32016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32017  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32018  	  /^X\(\/\/\)$/{ s//\1/; q; }
32019  	  /^X\(\/\).*/{ s//\1/; q; }
32020  	  s/.*/./; q'`
32021  { if $as_mkdir_p; then
32022    mkdir -p "$ac_dir"
32023  else
32024    as_dir="$ac_dir"
32025    as_dirs=
32026    while test ! -d "$as_dir"; do
32027      as_dirs="$as_dir $as_dirs"
32028      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32030	 X"$as_dir" : 'X\(//\)[^/]' \| \
32031	 X"$as_dir" : 'X\(//\)$' \| \
32032	 X"$as_dir" : 'X\(/\)' \| \
32033	 .     : '\(.\)' 2>/dev/null ||
32034echo X"$as_dir" |
32035    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32036  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32037  	  /^X\(\/\/\)$/{ s//\1/; q; }
32038  	  /^X\(\/\).*/{ s//\1/; q; }
32039  	  s/.*/./; q'`
32040    done
32041    test ! -n "$as_dirs" || mkdir $as_dirs
32042  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32043echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32044   { (exit 1); exit 1; }; }; }
32045
32046  ac_builddir=.
32047
32048if test "$ac_dir" != .; then
32049  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32050  # A "../" for each directory in $ac_dir_suffix.
32051  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32052else
32053  ac_dir_suffix= ac_top_builddir=
32054fi
32055
32056case $srcdir in
32057  .)  # No --srcdir option.  We are building in place.
32058    ac_srcdir=.
32059    if test -z "$ac_top_builddir"; then
32060       ac_top_srcdir=.
32061    else
32062       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32063    fi ;;
32064  [\\/]* | ?:[\\/]* )  # Absolute path.
32065    ac_srcdir=$srcdir$ac_dir_suffix;
32066    ac_top_srcdir=$srcdir ;;
32067  *) # Relative path.
32068    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32069    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32070esac
32071
32072# Do not use `cd foo && pwd` to compute absolute paths, because
32073# the directories may not exist.
32074case `pwd` in
32075.) ac_abs_builddir="$ac_dir";;
32076*)
32077  case "$ac_dir" in
32078  .) ac_abs_builddir=`pwd`;;
32079  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32080  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32081  esac;;
32082esac
32083case $ac_abs_builddir in
32084.) ac_abs_top_builddir=${ac_top_builddir}.;;
32085*)
32086  case ${ac_top_builddir}. in
32087  .) ac_abs_top_builddir=$ac_abs_builddir;;
32088  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32089  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32090  esac;;
32091esac
32092case $ac_abs_builddir in
32093.) ac_abs_srcdir=$ac_srcdir;;
32094*)
32095  case $ac_srcdir in
32096  .) ac_abs_srcdir=$ac_abs_builddir;;
32097  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32098  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32099  esac;;
32100esac
32101case $ac_abs_builddir in
32102.) ac_abs_top_srcdir=$ac_top_srcdir;;
32103*)
32104  case $ac_top_srcdir in
32105  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32106  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32107  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32108  esac;;
32109esac
32110
32111
32112  case $INSTALL in
32113  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32114  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32115  esac
32116
32117  if test x"$ac_file" != x-; then
32118    { echo "$as_me:$LINENO: creating $ac_file" >&5
32119echo "$as_me: creating $ac_file" >&6;}
32120    rm -f "$ac_file"
32121  fi
32122  # Let's still pretend it is `configure' which instantiates (i.e., don't
32123  # use $as_me), people would be surprised to read:
32124  #    /* config.h.  Generated by config.status.  */
32125  if test x"$ac_file" = x-; then
32126    configure_input=
32127  else
32128    configure_input="$ac_file.  "
32129  fi
32130  configure_input=$configure_input"Generated from `echo $ac_file_in |
32131				     sed 's,.*/,,'` by configure."
32132
32133  # First look for the input files in the build tree, otherwise in the
32134  # src tree.
32135  ac_file_inputs=`IFS=:
32136    for f in $ac_file_in; do
32137      case $f in
32138      -) echo $tmp/stdin ;;
32139      [\\/$]*)
32140	 # Absolute (can't be DOS-style, as IFS=:)
32141	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32142echo "$as_me: error: cannot find input file: $f" >&2;}
32143   { (exit 1); exit 1; }; }
32144	 echo "$f";;
32145      *) # Relative
32146	 if test -f "$f"; then
32147	   # Build tree
32148	   echo "$f"
32149	 elif test -f "$srcdir/$f"; then
32150	   # Source tree
32151	   echo "$srcdir/$f"
32152	 else
32153	   # /dev/null tree
32154	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32155echo "$as_me: error: cannot find input file: $f" >&2;}
32156   { (exit 1); exit 1; }; }
32157	 fi;;
32158      esac
32159    done` || { (exit 1); exit 1; }
32160_ACEOF
32161cat >>$CONFIG_STATUS <<_ACEOF
32162  sed "$ac_vpsub
32163$extrasub
32164_ACEOF
32165cat >>$CONFIG_STATUS <<\_ACEOF
32166:t
32167/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32168s,@configure_input@,$configure_input,;t t
32169s,@srcdir@,$ac_srcdir,;t t
32170s,@abs_srcdir@,$ac_abs_srcdir,;t t
32171s,@top_srcdir@,$ac_top_srcdir,;t t
32172s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32173s,@builddir@,$ac_builddir,;t t
32174s,@abs_builddir@,$ac_abs_builddir,;t t
32175s,@top_builddir@,$ac_top_builddir,;t t
32176s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32177s,@INSTALL@,$ac_INSTALL,;t t
32178" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32179  rm -f $tmp/stdin
32180  if test x"$ac_file" != x-; then
32181    mv $tmp/out $ac_file
32182  else
32183    cat $tmp/out
32184    rm -f $tmp/out
32185  fi
32186
32187done
32188_ACEOF
32189cat >>$CONFIG_STATUS <<\_ACEOF
32190
32191#
32192# CONFIG_HEADER section.
32193#
32194
32195# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32196# NAME is the cpp macro being defined and VALUE is the value it is being given.
32197#
32198# ac_d sets the value in "#define NAME VALUE" lines.
32199ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
32200ac_dB='[	 ].*$,\1#\2'
32201ac_dC=' '
32202ac_dD=',;t'
32203# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32204ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
32205ac_uB='$,\1#\2define\3'
32206ac_uC=' '
32207ac_uD=',;t'
32208
32209for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32210  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32211  case $ac_file in
32212  - | *:- | *:-:* ) # input from stdin
32213	cat >$tmp/stdin
32214	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32215	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32216  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32217	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32218  * )   ac_file_in=$ac_file.in ;;
32219  esac
32220
32221  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32222echo "$as_me: creating $ac_file" >&6;}
32223
32224  # First look for the input files in the build tree, otherwise in the
32225  # src tree.
32226  ac_file_inputs=`IFS=:
32227    for f in $ac_file_in; do
32228      case $f in
32229      -) echo $tmp/stdin ;;
32230      [\\/$]*)
32231	 # Absolute (can't be DOS-style, as IFS=:)
32232	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32233echo "$as_me: error: cannot find input file: $f" >&2;}
32234   { (exit 1); exit 1; }; }
32235	 # Do quote $f, to prevent DOS paths from being IFS'd.
32236	 echo "$f";;
32237      *) # Relative
32238	 if test -f "$f"; then
32239	   # Build tree
32240	   echo "$f"
32241	 elif test -f "$srcdir/$f"; then
32242	   # Source tree
32243	   echo "$srcdir/$f"
32244	 else
32245	   # /dev/null tree
32246	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32247echo "$as_me: error: cannot find input file: $f" >&2;}
32248   { (exit 1); exit 1; }; }
32249	 fi;;
32250      esac
32251    done` || { (exit 1); exit 1; }
32252  # Remove the trailing spaces.
32253  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
32254
32255_ACEOF
32256
32257# Transform confdefs.h into two sed scripts, `conftest.defines' and
32258# `conftest.undefs', that substitutes the proper values into
32259# config.h.in to produce config.h.  The first handles `#define'
32260# templates, and the second `#undef' templates.
32261# And first: Protect against being on the right side of a sed subst in
32262# config.status.  Protect against being in an unquoted here document
32263# in config.status.
32264rm -f conftest.defines conftest.undefs
32265# Using a here document instead of a string reduces the quoting nightmare.
32266# Putting comments in sed scripts is not portable.
32267#
32268# `end' is used to avoid that the second main sed command (meant for
32269# 0-ary CPP macros) applies to n-ary macro definitions.
32270# See the Autoconf documentation for `clear'.
32271cat >confdef2sed.sed <<\_ACEOF
32272s/[\\&,]/\\&/g
32273s,[\\$`],\\&,g
32274t clear
32275: clear
32276s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32277t end
32278s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32279: end
32280_ACEOF
32281# If some macros were called several times there might be several times
32282# the same #defines, which is useless.  Nevertheless, we may not want to
32283# sort them, since we want the *last* AC-DEFINE to be honored.
32284uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32285sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32286rm -f confdef2sed.sed
32287
32288# This sed command replaces #undef with comments.  This is necessary, for
32289# example, in the case of _POSIX_SOURCE, which is predefined and required
32290# on some systems where configure will not decide to define it.
32291cat >>conftest.undefs <<\_ACEOF
32292s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32293_ACEOF
32294
32295# Break up conftest.defines because some shells have a limit on the size
32296# of here documents, and old seds have small limits too (100 cmds).
32297echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32298echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32299echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32300echo '  :' >>$CONFIG_STATUS
32301rm -f conftest.tail
32302while grep . conftest.defines >/dev/null
32303do
32304  # Write a limited-size here document to $tmp/defines.sed.
32305  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32306  # Speed up: don't consider the non `#define' lines.
32307  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
32308  # Work around the forget-to-reset-the-flag bug.
32309  echo 't clr' >>$CONFIG_STATUS
32310  echo ': clr' >>$CONFIG_STATUS
32311  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32312  echo 'CEOF
32313  sed -f $tmp/defines.sed $tmp/in >$tmp/out
32314  rm -f $tmp/in
32315  mv $tmp/out $tmp/in
32316' >>$CONFIG_STATUS
32317  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32318  rm -f conftest.defines
32319  mv conftest.tail conftest.defines
32320done
32321rm -f conftest.defines
32322echo '  fi # grep' >>$CONFIG_STATUS
32323echo >>$CONFIG_STATUS
32324
32325# Break up conftest.undefs because some shells have a limit on the size
32326# of here documents, and old seds have small limits too (100 cmds).
32327echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32328rm -f conftest.tail
32329while grep . conftest.undefs >/dev/null
32330do
32331  # Write a limited-size here document to $tmp/undefs.sed.
32332  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32333  # Speed up: don't consider the non `#undef'
32334  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
32335  # Work around the forget-to-reset-the-flag bug.
32336  echo 't clr' >>$CONFIG_STATUS
32337  echo ': clr' >>$CONFIG_STATUS
32338  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32339  echo 'CEOF
32340  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32341  rm -f $tmp/in
32342  mv $tmp/out $tmp/in
32343' >>$CONFIG_STATUS
32344  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32345  rm -f conftest.undefs
32346  mv conftest.tail conftest.undefs
32347done
32348rm -f conftest.undefs
32349
32350cat >>$CONFIG_STATUS <<\_ACEOF
32351  # Let's still pretend it is `configure' which instantiates (i.e., don't
32352  # use $as_me), people would be surprised to read:
32353  #    /* config.h.  Generated by config.status.  */
32354  if test x"$ac_file" = x-; then
32355    echo "/* Generated by configure.  */" >$tmp/config.h
32356  else
32357    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32358  fi
32359  cat $tmp/in >>$tmp/config.h
32360  rm -f $tmp/in
32361  if test x"$ac_file" != x-; then
32362    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32363      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32364echo "$as_me: $ac_file is unchanged" >&6;}
32365    else
32366      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32367$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32368	 X"$ac_file" : 'X\(//\)[^/]' \| \
32369	 X"$ac_file" : 'X\(//\)$' \| \
32370	 X"$ac_file" : 'X\(/\)' \| \
32371	 .     : '\(.\)' 2>/dev/null ||
32372echo X"$ac_file" |
32373    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32374  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32375  	  /^X\(\/\/\)$/{ s//\1/; q; }
32376  	  /^X\(\/\).*/{ s//\1/; q; }
32377  	  s/.*/./; q'`
32378      { if $as_mkdir_p; then
32379    mkdir -p "$ac_dir"
32380  else
32381    as_dir="$ac_dir"
32382    as_dirs=
32383    while test ! -d "$as_dir"; do
32384      as_dirs="$as_dir $as_dirs"
32385      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32387	 X"$as_dir" : 'X\(//\)[^/]' \| \
32388	 X"$as_dir" : 'X\(//\)$' \| \
32389	 X"$as_dir" : 'X\(/\)' \| \
32390	 .     : '\(.\)' 2>/dev/null ||
32391echo X"$as_dir" |
32392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32393  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32394  	  /^X\(\/\/\)$/{ s//\1/; q; }
32395  	  /^X\(\/\).*/{ s//\1/; q; }
32396  	  s/.*/./; q'`
32397    done
32398    test ! -n "$as_dirs" || mkdir $as_dirs
32399  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32400echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32401   { (exit 1); exit 1; }; }; }
32402
32403      rm -f $ac_file
32404      mv $tmp/config.h $ac_file
32405    fi
32406  else
32407    cat $tmp/config.h
32408    rm -f $tmp/config.h
32409  fi
32410# Compute $ac_file's index in $config_headers.
32411_am_stamp_count=1
32412for _am_header in $config_headers :; do
32413  case $_am_header in
32414    $ac_file | $ac_file:* )
32415      break ;;
32416    * )
32417      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32418  esac
32419done
32420echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32421$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32422	 X$ac_file : 'X\(//\)[^/]' \| \
32423	 X$ac_file : 'X\(//\)$' \| \
32424	 X$ac_file : 'X\(/\)' \| \
32425	 .     : '\(.\)' 2>/dev/null ||
32426echo X$ac_file |
32427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32428  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32429  	  /^X\(\/\/\)$/{ s//\1/; q; }
32430  	  /^X\(\/\).*/{ s//\1/; q; }
32431  	  s/.*/./; q'`/stamp-h$_am_stamp_count
32432done
32433_ACEOF
32434cat >>$CONFIG_STATUS <<\_ACEOF
32435
32436#
32437# CONFIG_COMMANDS section.
32438#
32439for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32440  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32441  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32442  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32443$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32444	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32445	 X"$ac_dest" : 'X\(//\)$' \| \
32446	 X"$ac_dest" : 'X\(/\)' \| \
32447	 .     : '\(.\)' 2>/dev/null ||
32448echo X"$ac_dest" |
32449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32450  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32451  	  /^X\(\/\/\)$/{ s//\1/; q; }
32452  	  /^X\(\/\).*/{ s//\1/; q; }
32453  	  s/.*/./; q'`
32454  { if $as_mkdir_p; then
32455    mkdir -p "$ac_dir"
32456  else
32457    as_dir="$ac_dir"
32458    as_dirs=
32459    while test ! -d "$as_dir"; do
32460      as_dirs="$as_dir $as_dirs"
32461      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32463	 X"$as_dir" : 'X\(//\)[^/]' \| \
32464	 X"$as_dir" : 'X\(//\)$' \| \
32465	 X"$as_dir" : 'X\(/\)' \| \
32466	 .     : '\(.\)' 2>/dev/null ||
32467echo X"$as_dir" |
32468    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32469  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32470  	  /^X\(\/\/\)$/{ s//\1/; q; }
32471  	  /^X\(\/\).*/{ s//\1/; q; }
32472  	  s/.*/./; q'`
32473    done
32474    test ! -n "$as_dirs" || mkdir $as_dirs
32475  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32476echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32477   { (exit 1); exit 1; }; }; }
32478
32479  ac_builddir=.
32480
32481if test "$ac_dir" != .; then
32482  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32483  # A "../" for each directory in $ac_dir_suffix.
32484  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32485else
32486  ac_dir_suffix= ac_top_builddir=
32487fi
32488
32489case $srcdir in
32490  .)  # No --srcdir option.  We are building in place.
32491    ac_srcdir=.
32492    if test -z "$ac_top_builddir"; then
32493       ac_top_srcdir=.
32494    else
32495       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32496    fi ;;
32497  [\\/]* | ?:[\\/]* )  # Absolute path.
32498    ac_srcdir=$srcdir$ac_dir_suffix;
32499    ac_top_srcdir=$srcdir ;;
32500  *) # Relative path.
32501    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32502    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32503esac
32504
32505# Do not use `cd foo && pwd` to compute absolute paths, because
32506# the directories may not exist.
32507case `pwd` in
32508.) ac_abs_builddir="$ac_dir";;
32509*)
32510  case "$ac_dir" in
32511  .) ac_abs_builddir=`pwd`;;
32512  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32513  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32514  esac;;
32515esac
32516case $ac_abs_builddir in
32517.) ac_abs_top_builddir=${ac_top_builddir}.;;
32518*)
32519  case ${ac_top_builddir}. in
32520  .) ac_abs_top_builddir=$ac_abs_builddir;;
32521  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32522  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32523  esac;;
32524esac
32525case $ac_abs_builddir in
32526.) ac_abs_srcdir=$ac_srcdir;;
32527*)
32528  case $ac_srcdir in
32529  .) ac_abs_srcdir=$ac_abs_builddir;;
32530  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32531  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32532  esac;;
32533esac
32534case $ac_abs_builddir in
32535.) ac_abs_top_srcdir=$ac_top_srcdir;;
32536*)
32537  case $ac_top_srcdir in
32538  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32539  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32540  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32541  esac;;
32542esac
32543
32544
32545  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32546echo "$as_me: executing $ac_dest commands" >&6;}
32547  case $ac_dest in
32548    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32549  # Strip MF so we end up with the name of the file.
32550  mf=`echo "$mf" | sed -e 's/:.*$//'`
32551  # Check whether this is an Automake generated Makefile or not.
32552  # We used to match only the files named `Makefile.in', but
32553  # some people rename them; so instead we look at the file content.
32554  # Grep'ing the first line is not enough: some people post-process
32555  # each Makefile.in and add a new line on top of each file to say so.
32556  # So let's grep whole file.
32557  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32558    dirpart=`(dirname "$mf") 2>/dev/null ||
32559$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32560	 X"$mf" : 'X\(//\)[^/]' \| \
32561	 X"$mf" : 'X\(//\)$' \| \
32562	 X"$mf" : 'X\(/\)' \| \
32563	 .     : '\(.\)' 2>/dev/null ||
32564echo X"$mf" |
32565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32566  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32567  	  /^X\(\/\/\)$/{ s//\1/; q; }
32568  	  /^X\(\/\).*/{ s//\1/; q; }
32569  	  s/.*/./; q'`
32570  else
32571    continue
32572  fi
32573  # Extract the definition of DEPDIR, am__include, and am__quote
32574  # from the Makefile without running `make'.
32575  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32576  test -z "$DEPDIR" && continue
32577  am__include=`sed -n 's/^am__include = //p' < "$mf"`
32578  test -z "am__include" && continue
32579  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32580  # When using ansi2knr, U may be empty or an underscore; expand it
32581  U=`sed -n 's/^U = //p' < "$mf"`
32582  # Find all dependency output files, they are included files with
32583  # $(DEPDIR) in their names.  We invoke sed twice because it is the
32584  # simplest approach to changing $(DEPDIR) to its actual value in the
32585  # expansion.
32586  for file in `sed -n "
32587    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32588       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32589    # Make sure the directory exists.
32590    test -f "$dirpart/$file" && continue
32591    fdir=`(dirname "$file") 2>/dev/null ||
32592$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32593	 X"$file" : 'X\(//\)[^/]' \| \
32594	 X"$file" : 'X\(//\)$' \| \
32595	 X"$file" : 'X\(/\)' \| \
32596	 .     : '\(.\)' 2>/dev/null ||
32597echo X"$file" |
32598    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32599  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32600  	  /^X\(\/\/\)$/{ s//\1/; q; }
32601  	  /^X\(\/\).*/{ s//\1/; q; }
32602  	  s/.*/./; q'`
32603    { if $as_mkdir_p; then
32604    mkdir -p $dirpart/$fdir
32605  else
32606    as_dir=$dirpart/$fdir
32607    as_dirs=
32608    while test ! -d "$as_dir"; do
32609      as_dirs="$as_dir $as_dirs"
32610      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32612	 X"$as_dir" : 'X\(//\)[^/]' \| \
32613	 X"$as_dir" : 'X\(//\)$' \| \
32614	 X"$as_dir" : 'X\(/\)' \| \
32615	 .     : '\(.\)' 2>/dev/null ||
32616echo X"$as_dir" |
32617    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32618  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32619  	  /^X\(\/\/\)$/{ s//\1/; q; }
32620  	  /^X\(\/\).*/{ s//\1/; q; }
32621  	  s/.*/./; q'`
32622    done
32623    test ! -n "$as_dirs" || mkdir $as_dirs
32624  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32625echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32626   { (exit 1); exit 1; }; }; }
32627
32628    # echo "creating $dirpart/$file"
32629    echo '# dummy' > "$dirpart/$file"
32630  done
32631done
32632 ;;
32633    default-1 )
32634    for ac_file in $CONFIG_FILES; do
32635      # Support "outfile[:infile[:infile...]]"
32636      case "$ac_file" in
32637        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32638      esac
32639      # PO directories have a Makefile.in generated from Makefile.in.in.
32640      case "$ac_file" in */Makefile.in)
32641        # Adjust a relative srcdir.
32642        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32643        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32644        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32645        # In autoconf-2.13 it is called $ac_given_srcdir.
32646        # In autoconf-2.50 it is called $srcdir.
32647        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32648        case "$ac_given_srcdir" in
32649          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32650          /*) top_srcdir="$ac_given_srcdir" ;;
32651          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32652        esac
32653        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32654          rm -f "$ac_dir/POTFILES"
32655          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32656          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32657          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32658          # on $ac_dir but don't depend on user-specified configuration
32659          # parameters.
32660          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32661            # The LINGUAS file contains the set of available languages.
32662            if test -n "$ALL_LINGUAS"; then
32663              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32664            fi
32665            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32666            # Hide the ALL_LINGUAS assigment from automake.
32667            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32668          fi
32669          case "$ac_given_srcdir" in
32670            .) srcdirpre= ;;
32671            *) srcdirpre='$(srcdir)/' ;;
32672          esac
32673          POFILES=
32674          GMOFILES=
32675          UPDATEPOFILES=
32676          DUMMYPOFILES=
32677          for lang in $ALL_LINGUAS; do
32678            POFILES="$POFILES $srcdirpre$lang.po"
32679            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32680            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32681            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32682          done
32683          # CATALOGS depends on both $ac_dir and the user's LINGUAS
32684          # environment variable.
32685          INST_LINGUAS=
32686          if test -n "$ALL_LINGUAS"; then
32687            for presentlang in $ALL_LINGUAS; do
32688              useit=no
32689              if test "%UNSET%" != "$LINGUAS"; then
32690                desiredlanguages="$LINGUAS"
32691              else
32692                desiredlanguages="$ALL_LINGUAS"
32693              fi
32694              for desiredlang in $desiredlanguages; do
32695                # Use the presentlang catalog if desiredlang is
32696                #   a. equal to presentlang, or
32697                #   b. a variant of presentlang (because in this case,
32698                #      presentlang can be used as a fallback for messages
32699                #      which are not translated in the desiredlang catalog).
32700                case "$desiredlang" in
32701                  "$presentlang"*) useit=yes;;
32702                esac
32703              done
32704              if test $useit = yes; then
32705                INST_LINGUAS="$INST_LINGUAS $presentlang"
32706              fi
32707            done
32708          fi
32709          CATALOGS=
32710          if test -n "$INST_LINGUAS"; then
32711            for lang in $INST_LINGUAS; do
32712              CATALOGS="$CATALOGS $lang.gmo"
32713            done
32714          fi
32715          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32716          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32717          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32718            if test -f "$f"; then
32719              case "$f" in
32720                *.orig | *.bak | *~) ;;
32721                *) cat "$f" >> "$ac_dir/Makefile" ;;
32722              esac
32723            fi
32724          done
32725        fi
32726        ;;
32727      esac
32728    done ;;
32729  esac
32730done
32731_ACEOF
32732
32733cat >>$CONFIG_STATUS <<\_ACEOF
32734
32735{ (exit 0); exit 0; }
32736_ACEOF
32737chmod +x $CONFIG_STATUS
32738ac_clean_files=$ac_clean_files_save
32739
32740
32741# configure is writing to config.log, and then calls config.status.
32742# config.status does its own redirection, appending to config.log.
32743# Unfortunately, on DOS this fails, as config.log is still kept open
32744# by configure, so config.status won't be able to write to it; its
32745# output is simply discarded.  So we exec the FD to /dev/null,
32746# effectively closing config.log, so it can be properly (re)opened and
32747# appended to by config.status.  When coming back to configure, we
32748# need to make the FD available again.
32749if test "$no_create" != yes; then
32750  ac_cs_success=:
32751  ac_config_status_args=
32752  test "$silent" = yes &&
32753    ac_config_status_args="$ac_config_status_args --quiet"
32754  exec 5>/dev/null
32755  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32756  exec 5>>config.log
32757  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32758  # would make configure fail if this is the last instruction.
32759  $ac_cs_success || { (exit 1); exit 1; }
32760fi
32761
32762#
32763# CONFIG_SUBDIRS section.
32764#
32765if test "$no_recursion" != yes; then
32766
32767  # Remove --cache-file and --srcdir arguments so they do not pile up.
32768  ac_sub_configure_args=
32769  ac_prev=
32770  for ac_arg in $ac_configure_args; do
32771    if test -n "$ac_prev"; then
32772      ac_prev=
32773      continue
32774    fi
32775    case $ac_arg in
32776    -cache-file | --cache-file | --cache-fil | --cache-fi \
32777    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32778      ac_prev=cache_file ;;
32779    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32780    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32781    | --c=*)
32782      ;;
32783    --config-cache | -C)
32784      ;;
32785    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32786      ac_prev=srcdir ;;
32787    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32788      ;;
32789    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32790      ac_prev=prefix ;;
32791    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32792      ;;
32793    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32794    esac
32795  done
32796
32797  # Always prepend --prefix to ensure using the same prefix
32798  # in subdir configurations.
32799  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32800
32801  ac_popdir=`pwd`
32802  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32803
32804    # Do not complain, so a configure script can configure whichever
32805    # parts of a large source tree are present.
32806    test -d $srcdir/$ac_dir || continue
32807
32808    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32809echo "$as_me: configuring in $ac_dir" >&6;}
32810    { if $as_mkdir_p; then
32811    mkdir -p "$ac_dir"
32812  else
32813    as_dir="$ac_dir"
32814    as_dirs=
32815    while test ! -d "$as_dir"; do
32816      as_dirs="$as_dir $as_dirs"
32817      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32819	 X"$as_dir" : 'X\(//\)[^/]' \| \
32820	 X"$as_dir" : 'X\(//\)$' \| \
32821	 X"$as_dir" : 'X\(/\)' \| \
32822	 .     : '\(.\)' 2>/dev/null ||
32823echo X"$as_dir" |
32824    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32825  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32826  	  /^X\(\/\/\)$/{ s//\1/; q; }
32827  	  /^X\(\/\).*/{ s//\1/; q; }
32828  	  s/.*/./; q'`
32829    done
32830    test ! -n "$as_dirs" || mkdir $as_dirs
32831  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32832echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32833   { (exit 1); exit 1; }; }; }
32834
32835    ac_builddir=.
32836
32837if test "$ac_dir" != .; then
32838  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32839  # A "../" for each directory in $ac_dir_suffix.
32840  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32841else
32842  ac_dir_suffix= ac_top_builddir=
32843fi
32844
32845case $srcdir in
32846  .)  # No --srcdir option.  We are building in place.
32847    ac_srcdir=.
32848    if test -z "$ac_top_builddir"; then
32849       ac_top_srcdir=.
32850    else
32851       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32852    fi ;;
32853  [\\/]* | ?:[\\/]* )  # Absolute path.
32854    ac_srcdir=$srcdir$ac_dir_suffix;
32855    ac_top_srcdir=$srcdir ;;
32856  *) # Relative path.
32857    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32858    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32859esac
32860
32861# Do not use `cd foo && pwd` to compute absolute paths, because
32862# the directories may not exist.
32863case `pwd` in
32864.) ac_abs_builddir="$ac_dir";;
32865*)
32866  case "$ac_dir" in
32867  .) ac_abs_builddir=`pwd`;;
32868  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32869  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32870  esac;;
32871esac
32872case $ac_abs_builddir in
32873.) ac_abs_top_builddir=${ac_top_builddir}.;;
32874*)
32875  case ${ac_top_builddir}. in
32876  .) ac_abs_top_builddir=$ac_abs_builddir;;
32877  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32878  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32879  esac;;
32880esac
32881case $ac_abs_builddir in
32882.) ac_abs_srcdir=$ac_srcdir;;
32883*)
32884  case $ac_srcdir in
32885  .) ac_abs_srcdir=$ac_abs_builddir;;
32886  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32887  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32888  esac;;
32889esac
32890case $ac_abs_builddir in
32891.) ac_abs_top_srcdir=$ac_top_srcdir;;
32892*)
32893  case $ac_top_srcdir in
32894  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32895  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32896  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32897  esac;;
32898esac
32899
32900
32901    cd $ac_dir
32902
32903    # Check for guested configure; otherwise get Cygnus style configure.
32904    if test -f $ac_srcdir/configure.gnu; then
32905      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32906    elif test -f $ac_srcdir/configure; then
32907      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32908    elif test -f $ac_srcdir/configure.in; then
32909      ac_sub_configure=$ac_configure
32910    else
32911      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32912echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32913      ac_sub_configure=
32914    fi
32915
32916    # The recursion is here.
32917    if test -n "$ac_sub_configure"; then
32918      # Make the cache file name correct relative to the subdirectory.
32919      case $cache_file in
32920      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32921      *) # Relative path.
32922	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32923      esac
32924
32925      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32926echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32927      # The eval makes quoting arguments work.
32928      eval $ac_sub_configure $ac_sub_configure_args \
32929	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32930	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32931echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32932   { (exit 1); exit 1; }; }
32933    fi
32934
32935    cd $ac_popdir
32936  done
32937fi
32938
32939