1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/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 -n "`(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  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Find the correct PATH separator.  Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246  UNAME=${UNAME-`uname 2>/dev/null`}
247  case X$UNAME in
248    *-DOS) lt_cv_sys_path_separator=';' ;;
249    *)     lt_cv_sys_path_separator=':' ;;
250  esac
251  PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260  # Remove one level of quotation (which was required for Make).
261  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262  ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267  # Discard the --no-reexec flag, and continue.
268  shift
269elif test "X$1" = X--fallback-echo; then
270  # Avoid inline document here, it may be left over
271  :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273  # Yippee, $echo works!
274  :
275else
276  # Restart under the correct shell.
277  exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281  # used as fallback echo
282  shift
283  cat <<EOF
284
285EOF
286  exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299       echo_test_string="`eval $cmd`" &&
300       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301    then
302      break
303    fi
304  done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309   test "X$echo_testing_string" = "X$echo_test_string"; then
310  :
311else
312  # The Solaris, AIX, and Digital Unix default echo programs unquote
313  # backslashes.  This makes it impossible to quote backslashes using
314  #   echo "$something" | sed 's/\\/\\\\/g'
315  #
316  # So, first we look for a working echo in the user's PATH.
317
318  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319  for dir in $PATH /usr/ucb; do
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338	 test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350	 test "X$echo_testing_string" = "X$echo_test_string"; then
351	# Cool, printf works
352	:
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358	export CONFIG_SHELL
359	SHELL="$CONFIG_SHELL"
360	export SHELL
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363	   test "X$echo_testing_string" = 'X\t' &&
364	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365	   test "X$echo_testing_string" = "X$echo_test_string"; then
366	echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368	# maybe with a smaller string...
369	prev=:
370
371	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373	  then
374	    break
375	  fi
376	  prev="$cmd"
377	done
378
379	if test "$prev" != 'sed 50q "$0"'; then
380	  echo_test_string=`eval $prev`
381	  export echo_test_string
382	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383	else
384	  # Oops.  We lost completely, so just stick with echo.
385	  echo=echo
386	fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
432ac_unique_file="src/gle.h"
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447#  include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452#  include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463#  include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS LTLIBOBJS'
471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514  # If the previous option needs an argument, assign it.
515  if test -n "$ac_prev"; then
516    eval "$ac_prev=\$ac_option"
517    ac_prev=
518    continue
519  fi
520
521  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523  # Accept the important Cygnus configure options, so we can diagnose typos.
524
525  case $ac_option in
526
527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528    ac_prev=bindir ;;
529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530    bindir=$ac_optarg ;;
531
532  -build | --build | --buil | --bui | --bu)
533    ac_prev=build_alias ;;
534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535    build_alias=$ac_optarg ;;
536
537  -cache-file | --cache-file | --cache-fil | --cache-fi \
538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539    ac_prev=cache_file ;;
540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542    cache_file=$ac_optarg ;;
543
544  --config-cache | -C)
545    cache_file=config.cache ;;
546
547  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548    ac_prev=datadir ;;
549  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550  | --da=*)
551    datadir=$ac_optarg ;;
552
553  -disable-* | --disable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    eval "enable_$ac_feature=no" ;;
561
562  -enable-* | --enable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    case $ac_option in
570      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571      *) ac_optarg=yes ;;
572    esac
573    eval "enable_$ac_feature='$ac_optarg'" ;;
574
575  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577  | --exec | --exe | --ex)
578    ac_prev=exec_prefix ;;
579  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581  | --exec=* | --exe=* | --ex=*)
582    exec_prefix=$ac_optarg ;;
583
584  -gas | --gas | --ga | --g)
585    # Obsolete; use --with-gas.
586    with_gas=yes ;;
587
588  -help | --help | --hel | --he | -h)
589    ac_init_help=long ;;
590  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591    ac_init_help=recursive ;;
592  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593    ac_init_help=short ;;
594
595  -host | --host | --hos | --ho)
596    ac_prev=host_alias ;;
597  -host=* | --host=* | --hos=* | --ho=*)
598    host_alias=$ac_optarg ;;
599
600  -includedir | --includedir | --includedi | --included | --include \
601  | --includ | --inclu | --incl | --inc)
602    ac_prev=includedir ;;
603  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604  | --includ=* | --inclu=* | --incl=* | --inc=*)
605    includedir=$ac_optarg ;;
606
607  -infodir | --infodir | --infodi | --infod | --info | --inf)
608    ac_prev=infodir ;;
609  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610    infodir=$ac_optarg ;;
611
612  -libdir | --libdir | --libdi | --libd)
613    ac_prev=libdir ;;
614  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615    libdir=$ac_optarg ;;
616
617  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618  | --libexe | --libex | --libe)
619    ac_prev=libexecdir ;;
620  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621  | --libexe=* | --libex=* | --libe=*)
622    libexecdir=$ac_optarg ;;
623
624  -localstatedir | --localstatedir | --localstatedi | --localstated \
625  | --localstate | --localstat | --localsta | --localst \
626  | --locals | --local | --loca | --loc | --lo)
627    ac_prev=localstatedir ;;
628  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631    localstatedir=$ac_optarg ;;
632
633  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634    ac_prev=mandir ;;
635  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636    mandir=$ac_optarg ;;
637
638  -nfp | --nfp | --nf)
639    # Obsolete; use --without-fp.
640    with_fp=no ;;
641
642  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643  | --no-cr | --no-c | -n)
644    no_create=yes ;;
645
646  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648    no_recursion=yes ;;
649
650  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652  | --oldin | --oldi | --old | --ol | --o)
653    ac_prev=oldincludedir ;;
654  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657    oldincludedir=$ac_optarg ;;
658
659  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660    ac_prev=prefix ;;
661  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662    prefix=$ac_optarg ;;
663
664  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665  | --program-pre | --program-pr | --program-p)
666    ac_prev=program_prefix ;;
667  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669    program_prefix=$ac_optarg ;;
670
671  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672  | --program-suf | --program-su | --program-s)
673    ac_prev=program_suffix ;;
674  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676    program_suffix=$ac_optarg ;;
677
678  -program-transform-name | --program-transform-name \
679  | --program-transform-nam | --program-transform-na \
680  | --program-transform-n | --program-transform- \
681  | --program-transform | --program-transfor \
682  | --program-transfo | --program-transf \
683  | --program-trans | --program-tran \
684  | --progr-tra | --program-tr | --program-t)
685    ac_prev=program_transform_name ;;
686  -program-transform-name=* | --program-transform-name=* \
687  | --program-transform-nam=* | --program-transform-na=* \
688  | --program-transform-n=* | --program-transform-=* \
689  | --program-transform=* | --program-transfor=* \
690  | --program-transfo=* | --program-transf=* \
691  | --program-trans=* | --program-tran=* \
692  | --progr-tra=* | --program-tr=* | --program-t=*)
693    program_transform_name=$ac_optarg ;;
694
695  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696  | -silent | --silent | --silen | --sile | --sil)
697    silent=yes ;;
698
699  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700    ac_prev=sbindir ;;
701  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702  | --sbi=* | --sb=*)
703    sbindir=$ac_optarg ;;
704
705  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707  | --sharedst | --shareds | --shared | --share | --shar \
708  | --sha | --sh)
709    ac_prev=sharedstatedir ;;
710  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713  | --sha=* | --sh=*)
714    sharedstatedir=$ac_optarg ;;
715
716  -site | --site | --sit)
717    ac_prev=site ;;
718  -site=* | --site=* | --sit=*)
719    site=$ac_optarg ;;
720
721  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722    ac_prev=srcdir ;;
723  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724    srcdir=$ac_optarg ;;
725
726  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727  | --syscon | --sysco | --sysc | --sys | --sy)
728    ac_prev=sysconfdir ;;
729  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731    sysconfdir=$ac_optarg ;;
732
733  -target | --target | --targe | --targ | --tar | --ta | --t)
734    ac_prev=target_alias ;;
735  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736    target_alias=$ac_optarg ;;
737
738  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739    verbose=yes ;;
740
741  -version | --version | --versio | --versi | --vers | -V)
742    ac_init_version=: ;;
743
744  -with-* | --with-*)
745    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package| sed 's/-/_/g'`
751    case $ac_option in
752      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753      *) ac_optarg=yes ;;
754    esac
755    eval "with_$ac_package='$ac_optarg'" ;;
756
757  -without-* | --without-*)
758    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package | sed 's/-/_/g'`
764    eval "with_$ac_package=no" ;;
765
766  --x)
767    # Obsolete; use --with-x.
768    with_x=yes ;;
769
770  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771  | --x-incl | --x-inc | --x-in | --x-i)
772    ac_prev=x_includes ;;
773  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775    x_includes=$ac_optarg ;;
776
777  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779    ac_prev=x_libraries ;;
780  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782    x_libraries=$ac_optarg ;;
783
784  -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786   { (exit 1); exit 1; }; }
787    ;;
788
789  *=*)
790    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794   { (exit 1); exit 1; }; }
795    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796    eval "$ac_envvar='$ac_optarg'"
797    export $ac_envvar ;;
798
799  *)
800    # FIXME: should be removed in autoconf 3.0.
801    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805    ;;
806
807  esac
808done
809
810if test -n "$ac_prev"; then
811  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812  { echo "$as_me: error: missing argument to $ac_option" >&2
813   { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819  eval ac_val=$`echo $ac_var`
820  case $ac_val in
821    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823   { (exit 1); exit 1; }; };;
824  esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829              localstatedir libdir includedir oldincludedir infodir mandir
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848  if test "x$build_alias" = x; then
849    cross_compiling=maybe
850    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851    If a cross compiler is detected then cross compile mode will be used." >&2
852  elif test "x$build_alias" != "x$host_alias"; then
853    cross_compiling=yes
854  fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865  ac_srcdir_defaulted=yes
866  # Try the directory containing this script, then its parent.
867  ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869         X"$0" : 'X\(//\)[^/]' \| \
870         X"$0" : 'X\(//\)$' \| \
871         X"$0" : 'X\(/\)' \| \
872         .     : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876  	  /^X\(\/\/\)$/{ s//\1/; q; }
877  	  /^X\(\/\).*/{ s//\1/; q; }
878  	  s/.*/./; q'`
879  srcdir=$ac_confdir
880  if test ! -r $srcdir/$ac_unique_file; then
881    srcdir=..
882  fi
883else
884  ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887  if test "$ac_srcdir_defaulted" = yes; then
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889   { (exit 1); exit 1; }; }
890  else
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892   { (exit 1); exit 1; }; }
893  fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897   { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
931
932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936  # Omit some internal or obsolete options to make the list less imposing.
937  # This message is too long to be a string in the A/UX 3.1 sh.
938  cat <<_ACEOF
939\`configure' configures this package to adapt to many kinds of systems.
940
941Usage: $0 [OPTION]... [VAR=VALUE]...
942
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946Defaults for the options are specified in brackets.
947
948Configuration:
949  -h, --help              display this help and exit
950      --help=short        display options specific to this package
951      --help=recursive    display the short help of all the included packages
952  -V, --version           display version information and exit
953  -q, --quiet, --silent   do not print \`checking...' messages
954      --cache-file=FILE   cache test results in FILE [disabled]
955  -C, --config-cache      alias for \`--cache-file=config.cache'
956  -n, --no-create         do not create output files
957      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959_ACEOF
960
961  cat <<_ACEOF
962Installation directories:
963  --prefix=PREFIX         install architecture-independent files in PREFIX
964                          [$ac_default_prefix]
965  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                          [PREFIX]
967
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
972
973For better control, use the options below.
974
975Fine tuning of the installation directories:
976  --bindir=DIR           user executables [EPREFIX/bin]
977  --sbindir=DIR          system admin executables [EPREFIX/sbin]
978  --libexecdir=DIR       program executables [EPREFIX/libexec]
979  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983  --libdir=DIR           object code libraries [EPREFIX/lib]
984  --includedir=DIR       C header files [PREFIX/include]
985  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986  --infodir=DIR          info documentation [PREFIX/info]
987  --mandir=DIR           man documentation [PREFIX/man]
988_ACEOF
989
990  cat <<\_ACEOF
991
992Program names:
993  --program-prefix=PREFIX            prepend PREFIX to installed program names
994  --program-suffix=SUFFIX            append SUFFIX to installed program names
995  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997X features:
998  --x-includes=DIR    X include files are in DIR
999  --x-libraries=DIR   X library files are in DIR
1000
1001System types:
1002  --build=BUILD     configure for building on BUILD [guessed]
1003  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1004_ACEOF
1005fi
1006
1007if test -n "$ac_init_help"; then
1008
1009  cat <<\_ACEOF
1010
1011Optional Features:
1012  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014  --enable-shared=PKGS  build shared libraries default=yes
1015  --enable-static=PKGS  build static libraries default=yes
1016  --enable-fast-install=PKGS  optimize for fast installation default=yes
1017  --disable-libtool-lock  avoid locking (might break parallel builds)
1018  --enable-lenient-tess    compile for lenient tesselator
1019  --disable-auto-texture   compile with texture mapping disabled
1020  --enable-irisgl          compile for old IrisGL/GL-3.2
1021  --enable-debug           compile with debugging flags set
1022  --enable-profile         compile with profiling set
1023  --enable-warnings         compile with lots of warnings
1024generated
1025
1026Optional Packages:
1027  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1028  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1029  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1030  --with-pic              try to use only PIC/non-PIC objects default=use both
1031  --with-x                use the X Window System
1032
1033Some influential environment variables:
1034  CC          C compiler command
1035  CFLAGS      C compiler flags
1036  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1037              nonstandard directory <lib dir>
1038  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039              headers in a nonstandard directory <include dir>
1040  CPP         C preprocessor
1041
1042Use these variables to override the choices made by `configure' or to help
1043it to find libraries and programs with nonstandard names/locations.
1044
1045_ACEOF
1046fi
1047
1048if test "$ac_init_help" = "recursive"; then
1049  # If there are subdirs, report their specific --help.
1050  ac_popdir=`pwd`
1051  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1052    test -d $ac_dir || continue
1053    ac_builddir=.
1054
1055if test "$ac_dir" != .; then
1056  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1057  # A "../" for each directory in $ac_dir_suffix.
1058  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1059else
1060  ac_dir_suffix= ac_top_builddir=
1061fi
1062
1063case $srcdir in
1064  .)  # No --srcdir option.  We are building in place.
1065    ac_srcdir=.
1066    if test -z "$ac_top_builddir"; then
1067       ac_top_srcdir=.
1068    else
1069       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1070    fi ;;
1071  [\\/]* | ?:[\\/]* )  # Absolute path.
1072    ac_srcdir=$srcdir$ac_dir_suffix;
1073    ac_top_srcdir=$srcdir ;;
1074  *) # Relative path.
1075    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1076    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1077esac
1078# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1079# absolute.
1080ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1081ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1082ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1083ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1084
1085    cd $ac_dir
1086    # Check for guested configure; otherwise get Cygnus style configure.
1087    if test -f $ac_srcdir/configure.gnu; then
1088      echo
1089      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1090    elif test -f $ac_srcdir/configure; then
1091      echo
1092      $SHELL $ac_srcdir/configure  --help=recursive
1093    elif test -f $ac_srcdir/configure.ac ||
1094           test -f $ac_srcdir/configure.in; then
1095      echo
1096      $ac_configure --help
1097    else
1098      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1099    fi
1100    cd $ac_popdir
1101  done
1102fi
1103
1104test -n "$ac_init_help" && exit 0
1105if $ac_init_version; then
1106  cat <<\_ACEOF
1107
1108Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1109Free Software Foundation, Inc.
1110This configure script is free software; the Free Software Foundation
1111gives unlimited permission to copy, distribute and modify it.
1112_ACEOF
1113  exit 0
1114fi
1115exec 5>config.log
1116cat >&5 <<_ACEOF
1117This file contains any messages produced by compilers while
1118running configure, to aid debugging if configure makes a mistake.
1119
1120It was created by $as_me, which was
1121generated by GNU Autoconf 2.57.  Invocation command line was
1122
1123  $ $0 $@
1124
1125_ACEOF
1126{
1127cat <<_ASUNAME
1128## --------- ##
1129## Platform. ##
1130## --------- ##
1131
1132hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1133uname -m = `(uname -m) 2>/dev/null || echo unknown`
1134uname -r = `(uname -r) 2>/dev/null || echo unknown`
1135uname -s = `(uname -s) 2>/dev/null || echo unknown`
1136uname -v = `(uname -v) 2>/dev/null || echo unknown`
1137
1138/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1139/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1140
1141/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1142/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1143/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1144hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1145/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1146/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1147/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1148
1149_ASUNAME
1150
1151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1152for as_dir in $PATH
1153do
1154  IFS=$as_save_IFS
1155  test -z "$as_dir" && as_dir=.
1156  echo "PATH: $as_dir"
1157done
1158
1159} >&5
1160
1161cat >&5 <<_ACEOF
1162
1163
1164## ----------- ##
1165## Core tests. ##
1166## ----------- ##
1167
1168_ACEOF
1169
1170
1171# Keep a trace of the command line.
1172# Strip out --no-create and --no-recursion so they do not pile up.
1173# Strip out --silent because we don't want to record it for future runs.
1174# Also quote any args containing shell meta-characters.
1175# Make two passes to allow for proper duplicate-argument suppression.
1176ac_configure_args=
1177ac_configure_args0=
1178ac_configure_args1=
1179ac_sep=
1180ac_must_keep_next=false
1181for ac_pass in 1 2
1182do
1183  for ac_arg
1184  do
1185    case $ac_arg in
1186    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1187    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188    | -silent | --silent | --silen | --sile | --sil)
1189      continue ;;
1190    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1191      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1192    esac
1193    case $ac_pass in
1194    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1195    2)
1196      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1197      if test $ac_must_keep_next = true; then
1198        ac_must_keep_next=false # Got value, back to normal.
1199      else
1200        case $ac_arg in
1201          *=* | --config-cache | -C | -disable-* | --disable-* \
1202          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1203          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1204          | -with-* | --with-* | -without-* | --without-* | --x)
1205            case "$ac_configure_args0 " in
1206              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1207            esac
1208            ;;
1209          -* ) ac_must_keep_next=true ;;
1210        esac
1211      fi
1212      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1213      # Get rid of the leading space.
1214      ac_sep=" "
1215      ;;
1216    esac
1217  done
1218done
1219$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1220$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1221
1222# When interrupted or exit'd, cleanup temporary files, and complete
1223# config.log.  We remove comments because anyway the quotes in there
1224# would cause problems or look ugly.
1225# WARNING: Be sure not to use single quotes in there, as some shells,
1226# such as our DU 5.0 friend, will then `close' the trap.
1227trap 'exit_status=$?
1228  # Save into config.log some information that might help in debugging.
1229  {
1230    echo
1231
1232    cat <<\_ASBOX
1233## ---------------- ##
1234## Cache variables. ##
1235## ---------------- ##
1236_ASBOX
1237    echo
1238    # The following way of writing the cache mishandles newlines in values,
1239{
1240  (set) 2>&1 |
1241    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1242    *ac_space=\ *)
1243      sed -n \
1244        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1245    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1246      ;;
1247    *)
1248      sed -n \
1249        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1250      ;;
1251    esac;
1252}
1253    echo
1254
1255    cat <<\_ASBOX
1256## ----------------- ##
1257## Output variables. ##
1258## ----------------- ##
1259_ASBOX
1260    echo
1261    for ac_var in $ac_subst_vars
1262    do
1263      eval ac_val=$`echo $ac_var`
1264      echo "$ac_var='"'"'$ac_val'"'"'"
1265    done | sort
1266    echo
1267
1268    if test -n "$ac_subst_files"; then
1269      cat <<\_ASBOX
1270## ------------- ##
1271## Output files. ##
1272## ------------- ##
1273_ASBOX
1274      echo
1275      for ac_var in $ac_subst_files
1276      do
1277	eval ac_val=$`echo $ac_var`
1278        echo "$ac_var='"'"'$ac_val'"'"'"
1279      done | sort
1280      echo
1281    fi
1282
1283    if test -s confdefs.h; then
1284      cat <<\_ASBOX
1285## ----------- ##
1286## confdefs.h. ##
1287## ----------- ##
1288_ASBOX
1289      echo
1290      sed "/^$/d" confdefs.h | sort
1291      echo
1292    fi
1293    test "$ac_signal" != 0 &&
1294      echo "$as_me: caught signal $ac_signal"
1295    echo "$as_me: exit $exit_status"
1296  } >&5
1297  rm -f core core.* *.core &&
1298  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1299    exit $exit_status
1300     ' 0
1301for ac_signal in 1 2 13 15; do
1302  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1303done
1304ac_signal=0
1305
1306# confdefs.h avoids OS command line length limits that DEFS can exceed.
1307rm -rf conftest* confdefs.h
1308# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1309echo >confdefs.h
1310
1311# Predefined preprocessor variables.
1312
1313cat >>confdefs.h <<_ACEOF
1314#define PACKAGE_NAME "$PACKAGE_NAME"
1315_ACEOF
1316
1317
1318cat >>confdefs.h <<_ACEOF
1319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1320_ACEOF
1321
1322
1323cat >>confdefs.h <<_ACEOF
1324#define PACKAGE_VERSION "$PACKAGE_VERSION"
1325_ACEOF
1326
1327
1328cat >>confdefs.h <<_ACEOF
1329#define PACKAGE_STRING "$PACKAGE_STRING"
1330_ACEOF
1331
1332
1333cat >>confdefs.h <<_ACEOF
1334#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1335_ACEOF
1336
1337
1338# Let the site file select an alternate cache file if it wants to.
1339# Prefer explicitly selected file to automatically selected ones.
1340if test -z "$CONFIG_SITE"; then
1341  if test "x$prefix" != xNONE; then
1342    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1343  else
1344    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1345  fi
1346fi
1347for ac_site_file in $CONFIG_SITE; do
1348  if test -r "$ac_site_file"; then
1349    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1350echo "$as_me: loading site script $ac_site_file" >&6;}
1351    sed 's/^/| /' "$ac_site_file" >&5
1352    . "$ac_site_file"
1353  fi
1354done
1355
1356if test -r "$cache_file"; then
1357  # Some versions of bash will fail to source /dev/null (special
1358  # files actually), so we avoid doing that.
1359  if test -f "$cache_file"; then
1360    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1361echo "$as_me: loading cache $cache_file" >&6;}
1362    case $cache_file in
1363      [\\/]* | ?:[\\/]* ) . $cache_file;;
1364      *)                      . ./$cache_file;;
1365    esac
1366  fi
1367else
1368  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1369echo "$as_me: creating cache $cache_file" >&6;}
1370  >$cache_file
1371fi
1372
1373# Check that the precious variables saved in the cache have kept the same
1374# value.
1375ac_cache_corrupted=false
1376for ac_var in `(set) 2>&1 |
1377               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1378  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1379  eval ac_new_set=\$ac_env_${ac_var}_set
1380  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1381  eval ac_new_val="\$ac_env_${ac_var}_value"
1382  case $ac_old_set,$ac_new_set in
1383    set,)
1384      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1385echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1386      ac_cache_corrupted=: ;;
1387    ,set)
1388      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1389echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1390      ac_cache_corrupted=: ;;
1391    ,);;
1392    *)
1393      if test "x$ac_old_val" != "x$ac_new_val"; then
1394        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1395echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1396        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1397echo "$as_me:   former value:  $ac_old_val" >&2;}
1398        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1399echo "$as_me:   current value: $ac_new_val" >&2;}
1400        ac_cache_corrupted=:
1401      fi;;
1402  esac
1403  # Pass precious variables to config.status.
1404  if test "$ac_new_set" = set; then
1405    case $ac_new_val in
1406    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1407      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1408    *) ac_arg=$ac_var=$ac_new_val ;;
1409    esac
1410    case " $ac_configure_args " in
1411      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1412      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1413    esac
1414  fi
1415done
1416if $ac_cache_corrupted; then
1417  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1418echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1419  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1420echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1421   { (exit 1); exit 1; }; }
1422fi
1423
1424ac_ext=c
1425ac_cpp='$CPP $CPPFLAGS'
1426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1428ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448am__api_version="1.4"
1449ac_aux_dir=
1450for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1451  if test -f $ac_dir/install-sh; then
1452    ac_aux_dir=$ac_dir
1453    ac_install_sh="$ac_aux_dir/install-sh -c"
1454    break
1455  elif test -f $ac_dir/install.sh; then
1456    ac_aux_dir=$ac_dir
1457    ac_install_sh="$ac_aux_dir/install.sh -c"
1458    break
1459  elif test -f $ac_dir/shtool; then
1460    ac_aux_dir=$ac_dir
1461    ac_install_sh="$ac_aux_dir/shtool install -c"
1462    break
1463  fi
1464done
1465if test -z "$ac_aux_dir"; then
1466  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1467echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1468   { (exit 1); exit 1; }; }
1469fi
1470ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1471ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1472ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1473
1474# Find a good install program.  We prefer a C program (faster),
1475# so one script is as good as another.  But avoid the broken or
1476# incompatible versions:
1477# SysV /etc/install, /usr/sbin/install
1478# SunOS /usr/etc/install
1479# IRIX /sbin/install
1480# AIX /bin/install
1481# AmigaOS /C/install, which installs bootblocks on floppy discs
1482# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1483# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1484# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1485# ./install, which can be erroneously created by make from ./install.sh.
1486echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1487echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1488if test -z "$INSTALL"; then
1489if test "${ac_cv_path_install+set}" = set; then
1490  echo $ECHO_N "(cached) $ECHO_C" >&6
1491else
1492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493for as_dir in $PATH
1494do
1495  IFS=$as_save_IFS
1496  test -z "$as_dir" && as_dir=.
1497  # Account for people who put trailing slashes in PATH elements.
1498case $as_dir/ in
1499  ./ | .// | /cC/* | \
1500  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1501  /usr/ucb/* ) ;;
1502  *)
1503    # OSF1 and SCO ODT 3.0 have their own names for install.
1504    # Don't use installbsd from OSF since it installs stuff as root
1505    # by default.
1506    for ac_prog in ginstall scoinst install; do
1507      for ac_exec_ext in '' $ac_executable_extensions; do
1508        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1509          if test $ac_prog = install &&
1510            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1511            # AIX install.  It has an incompatible calling convention.
1512            :
1513          elif test $ac_prog = install &&
1514            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1515            # program-specific install script used by HP pwplus--don't use.
1516            :
1517          else
1518            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1519            break 3
1520          fi
1521        fi
1522      done
1523    done
1524    ;;
1525esac
1526done
1527
1528
1529fi
1530  if test "${ac_cv_path_install+set}" = set; then
1531    INSTALL=$ac_cv_path_install
1532  else
1533    # As a last resort, use the slow shell script.  We don't cache a
1534    # path for INSTALL within a source directory, because that will
1535    # break other packages using the cache if that directory is
1536    # removed, or if the path is relative.
1537    INSTALL=$ac_install_sh
1538  fi
1539fi
1540echo "$as_me:$LINENO: result: $INSTALL" >&5
1541echo "${ECHO_T}$INSTALL" >&6
1542
1543# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1544# It thinks the first close brace ends the variable substitution.
1545test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1546
1547test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1548
1549test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1550
1551echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1552echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1553# Just in case
1554sleep 1
1555echo timestamp > conftestfile
1556# Do `set' in a subshell so we don't clobber the current shell's
1557# arguments.  Must try -L first in case configure is actually a
1558# symlink; some systems play weird games with the mod time of symlinks
1559# (eg FreeBSD returns the mod time of the symlink's containing
1560# directory).
1561if (
1562   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1563   if test "$*" = "X"; then
1564      # -L didn't work.
1565      set X `ls -t $srcdir/configure conftestfile`
1566   fi
1567   if test "$*" != "X $srcdir/configure conftestfile" \
1568      && test "$*" != "X conftestfile $srcdir/configure"; then
1569
1570      # If neither matched, then we have a broken ls.  This can happen
1571      # if, for instance, CONFIG_SHELL is bash and it inherits a
1572      # broken ls alias from the environment.  This has actually
1573      # happened.  Such a system could not be considered "sane".
1574      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1575alias in your environment" >&5
1576echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1577alias in your environment" >&2;}
1578   { (exit 1); exit 1; }; }
1579   fi
1580
1581   test "$2" = conftestfile
1582   )
1583then
1584   # Ok.
1585   :
1586else
1587   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1588Check your system clock" >&5
1589echo "$as_me: error: newly created file is older than distributed files!
1590Check your system clock" >&2;}
1591   { (exit 1); exit 1; }; }
1592fi
1593rm -f conftest*
1594echo "$as_me:$LINENO: result: yes" >&5
1595echo "${ECHO_T}yes" >&6
1596test "$program_prefix" != NONE &&
1597  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1598# Use a double $ so make ignores it.
1599test "$program_suffix" != NONE &&
1600  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1601# Double any \ or $.  echo might interpret backslashes.
1602# By default was `s,x,x', remove it if useless.
1603cat <<\_ACEOF >conftest.sed
1604s/[\\$]/&&/g;s/;s,x,x,$//
1605_ACEOF
1606program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1607rm conftest.sed
1608
1609echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1610echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1611set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1612if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1613  echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615  cat >conftest.make <<\_ACEOF
1616all:
1617	@echo 'ac_maketemp="$(MAKE)"'
1618_ACEOF
1619# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1620eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1621if test -n "$ac_maketemp"; then
1622  eval ac_cv_prog_make_${ac_make}_set=yes
1623else
1624  eval ac_cv_prog_make_${ac_make}_set=no
1625fi
1626rm -f conftest.make
1627fi
1628if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1629  echo "$as_me:$LINENO: result: yes" >&5
1630echo "${ECHO_T}yes" >&6
1631  SET_MAKE=
1632else
1633  echo "$as_me:$LINENO: result: no" >&5
1634echo "${ECHO_T}no" >&6
1635  SET_MAKE="MAKE=${MAKE-make}"
1636fi
1637
1638
1639PACKAGE=gle
1640
1641VERSION=3.1.0
1642
1643if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1644  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1645echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1646   { (exit 1); exit 1; }; }
1647fi
1648
1649cat >>confdefs.h <<_ACEOF
1650#define PACKAGE "$PACKAGE"
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define VERSION "$VERSION"
1656_ACEOF
1657
1658
1659
1660missing_dir=`cd $ac_aux_dir && pwd`
1661echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1662echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1663# Run test in a subshell; some versions of sh will print an error if
1664# an executable is not found, even if stderr is redirected.
1665# Redirect stdin to placate older versions of autoconf.  Sigh.
1666if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1667   ACLOCAL=aclocal-${am__api_version}
1668   echo "$as_me:$LINENO: result: found" >&5
1669echo "${ECHO_T}found" >&6
1670else
1671   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1672   echo "$as_me:$LINENO: result: missing" >&5
1673echo "${ECHO_T}missing" >&6
1674fi
1675
1676echo "$as_me:$LINENO: checking for working autoconf" >&5
1677echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1678# Run test in a subshell; some versions of sh will print an error if
1679# an executable is not found, even if stderr is redirected.
1680# Redirect stdin to placate older versions of autoconf.  Sigh.
1681if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1682   AUTOCONF=autoconf
1683   echo "$as_me:$LINENO: result: found" >&5
1684echo "${ECHO_T}found" >&6
1685else
1686   AUTOCONF="$missing_dir/missing autoconf"
1687   echo "$as_me:$LINENO: result: missing" >&5
1688echo "${ECHO_T}missing" >&6
1689fi
1690
1691echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1692echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1693# Run test in a subshell; some versions of sh will print an error if
1694# an executable is not found, even if stderr is redirected.
1695# Redirect stdin to placate older versions of autoconf.  Sigh.
1696if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1697   AUTOMAKE=automake-${am__api_version}
1698   echo "$as_me:$LINENO: result: found" >&5
1699echo "${ECHO_T}found" >&6
1700else
1701   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1702   echo "$as_me:$LINENO: result: missing" >&5
1703echo "${ECHO_T}missing" >&6
1704fi
1705
1706echo "$as_me:$LINENO: checking for working autoheader" >&5
1707echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1708# Run test in a subshell; some versions of sh will print an error if
1709# an executable is not found, even if stderr is redirected.
1710# Redirect stdin to placate older versions of autoconf.  Sigh.
1711if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1712   AUTOHEADER=autoheader
1713   echo "$as_me:$LINENO: result: found" >&5
1714echo "${ECHO_T}found" >&6
1715else
1716   AUTOHEADER="$missing_dir/missing autoheader"
1717   echo "$as_me:$LINENO: result: missing" >&5
1718echo "${ECHO_T}missing" >&6
1719fi
1720
1721echo "$as_me:$LINENO: checking for working makeinfo" >&5
1722echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1723# Run test in a subshell; some versions of sh will print an error if
1724# an executable is not found, even if stderr is redirected.
1725# Redirect stdin to placate older versions of autoconf.  Sigh.
1726if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1727   MAKEINFO=makeinfo
1728   echo "$as_me:$LINENO: result: found" >&5
1729echo "${ECHO_T}found" >&6
1730else
1731   MAKEINFO="$missing_dir/missing makeinfo"
1732   echo "$as_me:$LINENO: result: missing" >&5
1733echo "${ECHO_T}missing" >&6
1734fi
1735
1736
1737
1738          ac_config_headers="$ac_config_headers config.h"
1739
1740          ac_config_commands="$ac_config_commands default-1"
1741
1742
1743ac_ext=c
1744ac_cpp='$CPP $CPPFLAGS'
1745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747ac_compiler_gnu=$ac_cv_c_compiler_gnu
1748if test -n "$ac_tool_prefix"; then
1749  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1750set dummy ${ac_tool_prefix}gcc; ac_word=$2
1751echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753if test "${ac_cv_prog_CC+set}" = set; then
1754  echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756  if test -n "$CC"; then
1757  ac_cv_prog_CC="$CC" # Let the user override the test.
1758else
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762  IFS=$as_save_IFS
1763  test -z "$as_dir" && as_dir=.
1764  for ac_exec_ext in '' $ac_executable_extensions; do
1765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768    break 2
1769  fi
1770done
1771done
1772
1773fi
1774fi
1775CC=$ac_cv_prog_CC
1776if test -n "$CC"; then
1777  echo "$as_me:$LINENO: result: $CC" >&5
1778echo "${ECHO_T}$CC" >&6
1779else
1780  echo "$as_me:$LINENO: result: no" >&5
1781echo "${ECHO_T}no" >&6
1782fi
1783
1784fi
1785if test -z "$ac_cv_prog_CC"; then
1786  ac_ct_CC=$CC
1787  # Extract the first word of "gcc", so it can be a program name with args.
1788set dummy gcc; ac_word=$2
1789echo "$as_me:$LINENO: checking for $ac_word" >&5
1790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792  echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794  if test -n "$ac_ct_CC"; then
1795  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796else
1797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798for as_dir in $PATH
1799do
1800  IFS=$as_save_IFS
1801  test -z "$as_dir" && as_dir=.
1802  for ac_exec_ext in '' $ac_executable_extensions; do
1803  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804    ac_cv_prog_ac_ct_CC="gcc"
1805    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806    break 2
1807  fi
1808done
1809done
1810
1811fi
1812fi
1813ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814if test -n "$ac_ct_CC"; then
1815  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816echo "${ECHO_T}$ac_ct_CC" >&6
1817else
1818  echo "$as_me:$LINENO: result: no" >&5
1819echo "${ECHO_T}no" >&6
1820fi
1821
1822  CC=$ac_ct_CC
1823else
1824  CC="$ac_cv_prog_CC"
1825fi
1826
1827if test -z "$CC"; then
1828  if test -n "$ac_tool_prefix"; then
1829  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1830set dummy ${ac_tool_prefix}cc; ac_word=$2
1831echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833if test "${ac_cv_prog_CC+set}" = set; then
1834  echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836  if test -n "$CC"; then
1837  ac_cv_prog_CC="$CC" # Let the user override the test.
1838else
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842  IFS=$as_save_IFS
1843  test -z "$as_dir" && as_dir=.
1844  for ac_exec_ext in '' $ac_executable_extensions; do
1845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846    ac_cv_prog_CC="${ac_tool_prefix}cc"
1847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848    break 2
1849  fi
1850done
1851done
1852
1853fi
1854fi
1855CC=$ac_cv_prog_CC
1856if test -n "$CC"; then
1857  echo "$as_me:$LINENO: result: $CC" >&5
1858echo "${ECHO_T}$CC" >&6
1859else
1860  echo "$as_me:$LINENO: result: no" >&5
1861echo "${ECHO_T}no" >&6
1862fi
1863
1864fi
1865if test -z "$ac_cv_prog_CC"; then
1866  ac_ct_CC=$CC
1867  # Extract the first word of "cc", so it can be a program name with args.
1868set dummy cc; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  if test -n "$ac_ct_CC"; then
1875  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880  IFS=$as_save_IFS
1881  test -z "$as_dir" && as_dir=.
1882  for ac_exec_ext in '' $ac_executable_extensions; do
1883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884    ac_cv_prog_ac_ct_CC="cc"
1885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886    break 2
1887  fi
1888done
1889done
1890
1891fi
1892fi
1893ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894if test -n "$ac_ct_CC"; then
1895  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896echo "${ECHO_T}$ac_ct_CC" >&6
1897else
1898  echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
1901
1902  CC=$ac_ct_CC
1903else
1904  CC="$ac_cv_prog_CC"
1905fi
1906
1907fi
1908if test -z "$CC"; then
1909  # Extract the first word of "cc", so it can be a program name with args.
1910set dummy cc; ac_word=$2
1911echo "$as_me:$LINENO: checking for $ac_word" >&5
1912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913if test "${ac_cv_prog_CC+set}" = set; then
1914  echo $ECHO_N "(cached) $ECHO_C" >&6
1915else
1916  if test -n "$CC"; then
1917  ac_cv_prog_CC="$CC" # Let the user override the test.
1918else
1919  ac_prog_rejected=no
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923  IFS=$as_save_IFS
1924  test -z "$as_dir" && as_dir=.
1925  for ac_exec_ext in '' $ac_executable_extensions; do
1926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1928       ac_prog_rejected=yes
1929       continue
1930     fi
1931    ac_cv_prog_CC="cc"
1932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933    break 2
1934  fi
1935done
1936done
1937
1938if test $ac_prog_rejected = yes; then
1939  # We found a bogon in the path, so make sure we never use it.
1940  set dummy $ac_cv_prog_CC
1941  shift
1942  if test $# != 0; then
1943    # We chose a different compiler from the bogus one.
1944    # However, it has the same basename, so the bogon will be chosen
1945    # first if we set CC to just the basename; use the full file name.
1946    shift
1947    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1948  fi
1949fi
1950fi
1951fi
1952CC=$ac_cv_prog_CC
1953if test -n "$CC"; then
1954  echo "$as_me:$LINENO: result: $CC" >&5
1955echo "${ECHO_T}$CC" >&6
1956else
1957  echo "$as_me:$LINENO: result: no" >&5
1958echo "${ECHO_T}no" >&6
1959fi
1960
1961fi
1962if test -z "$CC"; then
1963  if test -n "$ac_tool_prefix"; then
1964  for ac_prog in cl
1965  do
1966    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  if test -n "$CC"; then
1974  ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994  echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001    test -n "$CC" && break
2002  done
2003fi
2004if test -z "$CC"; then
2005  ac_ct_CC=$CC
2006  for ac_prog in cl
2007do
2008  # Extract the first word of "$ac_prog", so it can be a program name with args.
2009set dummy $ac_prog; ac_word=$2
2010echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2013  echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015  if test -n "$ac_ct_CC"; then
2016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2017else
2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021  IFS=$as_save_IFS
2022  test -z "$as_dir" && as_dir=.
2023  for ac_exec_ext in '' $ac_executable_extensions; do
2024  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025    ac_cv_prog_ac_ct_CC="$ac_prog"
2026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027    break 2
2028  fi
2029done
2030done
2031
2032fi
2033fi
2034ac_ct_CC=$ac_cv_prog_ac_ct_CC
2035if test -n "$ac_ct_CC"; then
2036  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2037echo "${ECHO_T}$ac_ct_CC" >&6
2038else
2039  echo "$as_me:$LINENO: result: no" >&5
2040echo "${ECHO_T}no" >&6
2041fi
2042
2043  test -n "$ac_ct_CC" && break
2044done
2045
2046  CC=$ac_ct_CC
2047fi
2048
2049fi
2050
2051
2052test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2053See \`config.log' for more details." >&5
2054echo "$as_me: error: no acceptable C compiler found in \$PATH
2055See \`config.log' for more details." >&2;}
2056   { (exit 1); exit 1; }; }
2057
2058# Provide some information about the compiler.
2059echo "$as_me:$LINENO:" \
2060     "checking for C compiler version" >&5
2061ac_compiler=`set X $ac_compile; echo $2`
2062{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2063  (eval $ac_compiler --version </dev/null >&5) 2>&5
2064  ac_status=$?
2065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066  (exit $ac_status); }
2067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2068  (eval $ac_compiler -v </dev/null >&5) 2>&5
2069  ac_status=$?
2070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071  (exit $ac_status); }
2072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2073  (eval $ac_compiler -V </dev/null >&5) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }
2077
2078cat >conftest.$ac_ext <<_ACEOF
2079#line $LINENO "configure"
2080/* confdefs.h.  */
2081_ACEOF
2082cat confdefs.h >>conftest.$ac_ext
2083cat >>conftest.$ac_ext <<_ACEOF
2084/* end confdefs.h.  */
2085
2086int
2087main ()
2088{
2089
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094ac_clean_files_save=$ac_clean_files
2095ac_clean_files="$ac_clean_files a.out a.exe b.out"
2096# Try to create an executable without -o first, disregard a.out.
2097# It will help us diagnose broken compilers, and finding out an intuition
2098# of exeext.
2099echo "$as_me:$LINENO: checking for C compiler default output" >&5
2100echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2101ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2103  (eval $ac_link_default) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); }; then
2107  # Find the output, starting from the most likely.  This scheme is
2108# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2109# resort.
2110
2111# Be careful to initialize this variable, since it used to be cached.
2112# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2113ac_cv_exeext=
2114# b.out is created by i960 compilers.
2115for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2116do
2117  test -f "$ac_file" || continue
2118  case $ac_file in
2119    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2120        ;;
2121    conftest.$ac_ext )
2122        # This is the source file.
2123        ;;
2124    [ab].out )
2125        # We found the default executable, but exeext='' is most
2126        # certainly right.
2127        break;;
2128    *.* )
2129        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130        # FIXME: I believe we export ac_cv_exeext for Libtool,
2131        # but it would be cool to find out if it's true.  Does anybody
2132        # maintain Libtool? --akim.
2133        export ac_cv_exeext
2134        break;;
2135    * )
2136        break;;
2137  esac
2138done
2139else
2140  echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
2143{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2144See \`config.log' for more details." >&5
2145echo "$as_me: error: C compiler cannot create executables
2146See \`config.log' for more details." >&2;}
2147   { (exit 77); exit 77; }; }
2148fi
2149
2150ac_exeext=$ac_cv_exeext
2151echo "$as_me:$LINENO: result: $ac_file" >&5
2152echo "${ECHO_T}$ac_file" >&6
2153
2154# Check the compiler produces executables we can run.  If not, either
2155# the compiler is broken, or we cross compile.
2156echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2157echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2158# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2159# If not cross compiling, check that we can run a simple program.
2160if test "$cross_compiling" != yes; then
2161  if { ac_try='./$ac_file'
2162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163  (eval $ac_try) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }; }; then
2167    cross_compiling=no
2168  else
2169    if test "$cross_compiling" = maybe; then
2170	cross_compiling=yes
2171    else
2172	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2173If you meant to cross compile, use \`--host'.
2174See \`config.log' for more details." >&5
2175echo "$as_me: error: cannot run C compiled programs.
2176If you meant to cross compile, use \`--host'.
2177See \`config.log' for more details." >&2;}
2178   { (exit 1); exit 1; }; }
2179    fi
2180  fi
2181fi
2182echo "$as_me:$LINENO: result: yes" >&5
2183echo "${ECHO_T}yes" >&6
2184
2185rm -f a.out a.exe conftest$ac_cv_exeext b.out
2186ac_clean_files=$ac_clean_files_save
2187# Check the compiler produces executables we can run.  If not, either
2188# the compiler is broken, or we cross compile.
2189echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2190echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2191echo "$as_me:$LINENO: result: $cross_compiling" >&5
2192echo "${ECHO_T}$cross_compiling" >&6
2193
2194echo "$as_me:$LINENO: checking for suffix of executables" >&5
2195echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2197  (eval $ac_link) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; then
2201  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2203# work properly (i.e., refer to `conftest.exe'), while it won't with
2204# `rm'.
2205for ac_file in conftest.exe conftest conftest.*; do
2206  test -f "$ac_file" || continue
2207  case $ac_file in
2208    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2209    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210          export ac_cv_exeext
2211          break;;
2212    * ) break;;
2213  esac
2214done
2215else
2216  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2217See \`config.log' for more details." >&5
2218echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2219See \`config.log' for more details." >&2;}
2220   { (exit 1); exit 1; }; }
2221fi
2222
2223rm -f conftest$ac_cv_exeext
2224echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2225echo "${ECHO_T}$ac_cv_exeext" >&6
2226
2227rm -f conftest.$ac_ext
2228EXEEXT=$ac_cv_exeext
2229ac_exeext=$EXEEXT
2230echo "$as_me:$LINENO: checking for suffix of object files" >&5
2231echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2232if test "${ac_cv_objext+set}" = set; then
2233  echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235  cat >conftest.$ac_ext <<_ACEOF
2236#line $LINENO "configure"
2237/* confdefs.h.  */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h.  */
2242
2243int
2244main ()
2245{
2246
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251rm -f conftest.o conftest.obj
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253  (eval $ac_compile) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; then
2257  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2258  case $ac_file in
2259    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2260    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2261       break;;
2262  esac
2263done
2264else
2265  echo "$as_me: failed program was:" >&5
2266sed 's/^/| /' conftest.$ac_ext >&5
2267
2268{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: cannot compute suffix of object files: cannot compile
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273fi
2274
2275rm -f conftest.$ac_cv_objext conftest.$ac_ext
2276fi
2277echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2278echo "${ECHO_T}$ac_cv_objext" >&6
2279OBJEXT=$ac_cv_objext
2280ac_objext=$OBJEXT
2281echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2282echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2283if test "${ac_cv_c_compiler_gnu+set}" = set; then
2284  echo $ECHO_N "(cached) $ECHO_C" >&6
2285else
2286  cat >conftest.$ac_ext <<_ACEOF
2287#line $LINENO "configure"
2288/* confdefs.h.  */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
2292/* end confdefs.h.  */
2293
2294int
2295main ()
2296{
2297#ifndef __GNUC__
2298       choke me
2299#endif
2300
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307  (eval $ac_compile) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); } &&
2311         { ac_try='test -s conftest.$ac_objext'
2312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313  (eval $ac_try) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; }; then
2317  ac_compiler_gnu=yes
2318else
2319  echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322ac_compiler_gnu=no
2323fi
2324rm -f conftest.$ac_objext conftest.$ac_ext
2325ac_cv_c_compiler_gnu=$ac_compiler_gnu
2326
2327fi
2328echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330GCC=`test $ac_compiler_gnu = yes && echo yes`
2331ac_test_CFLAGS=${CFLAGS+set}
2332ac_save_CFLAGS=$CFLAGS
2333CFLAGS="-g"
2334echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336if test "${ac_cv_prog_cc_g+set}" = set; then
2337  echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339  cat >conftest.$ac_ext <<_ACEOF
2340#line $LINENO "configure"
2341/* confdefs.h.  */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h.  */
2346
2347int
2348main ()
2349{
2350
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355rm -f conftest.$ac_objext
2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357  (eval $ac_compile) 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361         { ac_try='test -s conftest.$ac_objext'
2362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363  (eval $ac_try) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; }; then
2367  ac_cv_prog_cc_g=yes
2368else
2369  echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372ac_cv_prog_cc_g=no
2373fi
2374rm -f conftest.$ac_objext conftest.$ac_ext
2375fi
2376echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2377echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2378if test "$ac_test_CFLAGS" = set; then
2379  CFLAGS=$ac_save_CFLAGS
2380elif test $ac_cv_prog_cc_g = yes; then
2381  if test "$GCC" = yes; then
2382    CFLAGS="-g -O2"
2383  else
2384    CFLAGS="-g"
2385  fi
2386else
2387  if test "$GCC" = yes; then
2388    CFLAGS="-O2"
2389  else
2390    CFLAGS=
2391  fi
2392fi
2393echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2394echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2395if test "${ac_cv_prog_cc_stdc+set}" = set; then
2396  echo $ECHO_N "(cached) $ECHO_C" >&6
2397else
2398  ac_cv_prog_cc_stdc=no
2399ac_save_CC=$CC
2400cat >conftest.$ac_ext <<_ACEOF
2401#line $LINENO "configure"
2402/* confdefs.h.  */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h.  */
2407#include <stdarg.h>
2408#include <stdio.h>
2409#include <sys/types.h>
2410#include <sys/stat.h>
2411/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2412struct buf { int x; };
2413FILE * (*rcsopen) (struct buf *, struct stat *, int);
2414static char *e (p, i)
2415     char **p;
2416     int i;
2417{
2418  return p[i];
2419}
2420static char *f (char * (*g) (char **, int), char **p, ...)
2421{
2422  char *s;
2423  va_list v;
2424  va_start (v,p);
2425  s = g (p, va_arg (v,int));
2426  va_end (v);
2427  return s;
2428}
2429int test (int i, double x);
2430struct s1 {int (*f) (int a);};
2431struct s2 {int (*f) (double a);};
2432int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2433int argc;
2434char **argv;
2435int
2436main ()
2437{
2438return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2439  ;
2440  return 0;
2441}
2442_ACEOF
2443# Don't try gcc -ansi; that turns off useful extensions and
2444# breaks some systems' header files.
2445# AIX			-qlanglvl=ansi
2446# Ultrix and OSF/1	-std1
2447# HP-UX 10.20 and later	-Ae
2448# HP-UX older versions	-Aa -D_HPUX_SOURCE
2449# SVR4			-Xc -D__EXTENSIONS__
2450for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2451do
2452  CC="$ac_save_CC $ac_arg"
2453  rm -f conftest.$ac_objext
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455  (eval $ac_compile) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); } &&
2459         { ac_try='test -s conftest.$ac_objext'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; }; then
2465  ac_cv_prog_cc_stdc=$ac_arg
2466break
2467else
2468  echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.$ac_objext
2473done
2474rm -f conftest.$ac_ext conftest.$ac_objext
2475CC=$ac_save_CC
2476
2477fi
2478
2479case "x$ac_cv_prog_cc_stdc" in
2480  x|xno)
2481    echo "$as_me:$LINENO: result: none needed" >&5
2482echo "${ECHO_T}none needed" >&6 ;;
2483  *)
2484    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486    CC="$CC $ac_cv_prog_cc_stdc" ;;
2487esac
2488
2489# Some people use a C++ compiler to compile C.  Since we use `exit',
2490# in C++ we need to declare it.  In case someone uses the same compiler
2491# for both compiling C and C++ we need to have the C++ compiler decide
2492# the declaration of exit, since it's the most demanding environment.
2493cat >conftest.$ac_ext <<_ACEOF
2494#ifndef __cplusplus
2495  choke me
2496#endif
2497_ACEOF
2498rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500  (eval $ac_compile) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); } &&
2504         { ac_try='test -s conftest.$ac_objext'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; }; then
2510  for ac_declaration in \
2511   ''\
2512   '#include <stdlib.h>' \
2513   'extern "C" void std::exit (int) throw (); using std::exit;' \
2514   'extern "C" void std::exit (int); using std::exit;' \
2515   'extern "C" void exit (int) throw ();' \
2516   'extern "C" void exit (int);' \
2517   'void exit (int);'
2518do
2519  cat >conftest.$ac_ext <<_ACEOF
2520#line $LINENO "configure"
2521/* confdefs.h.  */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h.  */
2526#include <stdlib.h>
2527$ac_declaration
2528int
2529main ()
2530{
2531exit (42);
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536rm -f conftest.$ac_objext
2537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538  (eval $ac_compile) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); } &&
2542         { ac_try='test -s conftest.$ac_objext'
2543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544  (eval $ac_try) 2>&5
2545  ac_status=$?
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); }; }; then
2548  :
2549else
2550  echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
2552
2553continue
2554fi
2555rm -f conftest.$ac_objext conftest.$ac_ext
2556  cat >conftest.$ac_ext <<_ACEOF
2557#line $LINENO "configure"
2558/* confdefs.h.  */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h.  */
2563$ac_declaration
2564int
2565main ()
2566{
2567exit (42);
2568  ;
2569  return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574  (eval $ac_compile) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } &&
2578         { ac_try='test -s conftest.$ac_objext'
2579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580  (eval $ac_try) 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }; }; then
2584  break
2585else
2586  echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589fi
2590rm -f conftest.$ac_objext conftest.$ac_ext
2591done
2592rm -f conftest*
2593if test -n "$ac_declaration"; then
2594  echo '#ifdef __cplusplus' >>confdefs.h
2595  echo $ac_declaration      >>confdefs.h
2596  echo '#endif'             >>confdefs.h
2597fi
2598
2599else
2600  echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603fi
2604rm -f conftest.$ac_objext conftest.$ac_ext
2605ac_ext=c
2606ac_cpp='$CPP $CPPFLAGS'
2607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610
2611# Find a good install program.  We prefer a C program (faster),
2612# so one script is as good as another.  But avoid the broken or
2613# incompatible versions:
2614# SysV /etc/install, /usr/sbin/install
2615# SunOS /usr/etc/install
2616# IRIX /sbin/install
2617# AIX /bin/install
2618# AmigaOS /C/install, which installs bootblocks on floppy discs
2619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622# ./install, which can be erroneously created by make from ./install.sh.
2623echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2624echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2625if test -z "$INSTALL"; then
2626if test "${ac_cv_path_install+set}" = set; then
2627  echo $ECHO_N "(cached) $ECHO_C" >&6
2628else
2629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634  # Account for people who put trailing slashes in PATH elements.
2635case $as_dir/ in
2636  ./ | .// | /cC/* | \
2637  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2638  /usr/ucb/* ) ;;
2639  *)
2640    # OSF1 and SCO ODT 3.0 have their own names for install.
2641    # Don't use installbsd from OSF since it installs stuff as root
2642    # by default.
2643    for ac_prog in ginstall scoinst install; do
2644      for ac_exec_ext in '' $ac_executable_extensions; do
2645        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2646          if test $ac_prog = install &&
2647            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648            # AIX install.  It has an incompatible calling convention.
2649            :
2650          elif test $ac_prog = install &&
2651            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652            # program-specific install script used by HP pwplus--don't use.
2653            :
2654          else
2655            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2656            break 3
2657          fi
2658        fi
2659      done
2660    done
2661    ;;
2662esac
2663done
2664
2665
2666fi
2667  if test "${ac_cv_path_install+set}" = set; then
2668    INSTALL=$ac_cv_path_install
2669  else
2670    # As a last resort, use the slow shell script.  We don't cache a
2671    # path for INSTALL within a source directory, because that will
2672    # break other packages using the cache if that directory is
2673    # removed, or if the path is relative.
2674    INSTALL=$ac_install_sh
2675  fi
2676fi
2677echo "$as_me:$LINENO: result: $INSTALL" >&5
2678echo "${ECHO_T}$INSTALL" >&6
2679
2680# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2681# It thinks the first close brace ends the variable substitution.
2682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683
2684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685
2686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687
2688# Check whether --enable-shared or --disable-shared was given.
2689if test "${enable_shared+set}" = set; then
2690  enableval="$enable_shared"
2691  p=${PACKAGE-default}
2692case $enableval in
2693yes) enable_shared=yes ;;
2694no) enable_shared=no ;;
2695*)
2696  enable_shared=no
2697  # Look at the argument we got.  We use all the common list separators.
2698  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2699  for pkg in $enableval; do
2700    if test "X$pkg" = "X$p"; then
2701      enable_shared=yes
2702    fi
2703  done
2704  IFS="$ac_save_ifs"
2705  ;;
2706esac
2707else
2708  enable_shared=yes
2709fi;
2710# Check whether --enable-static or --disable-static was given.
2711if test "${enable_static+set}" = set; then
2712  enableval="$enable_static"
2713  p=${PACKAGE-default}
2714case $enableval in
2715yes) enable_static=yes ;;
2716no) enable_static=no ;;
2717*)
2718  enable_static=no
2719  # Look at the argument we got.  We use all the common list separators.
2720  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2721  for pkg in $enableval; do
2722    if test "X$pkg" = "X$p"; then
2723      enable_static=yes
2724    fi
2725  done
2726  IFS="$ac_save_ifs"
2727  ;;
2728esac
2729else
2730  enable_static=yes
2731fi;
2732# Check whether --enable-fast-install or --disable-fast-install was given.
2733if test "${enable_fast_install+set}" = set; then
2734  enableval="$enable_fast_install"
2735  p=${PACKAGE-default}
2736case $enableval in
2737yes) enable_fast_install=yes ;;
2738no) enable_fast_install=no ;;
2739*)
2740  enable_fast_install=no
2741  # Look at the argument we got.  We use all the common list separators.
2742  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2743  for pkg in $enableval; do
2744    if test "X$pkg" = "X$p"; then
2745      enable_fast_install=yes
2746    fi
2747  done
2748  IFS="$ac_save_ifs"
2749  ;;
2750esac
2751else
2752  enable_fast_install=yes
2753fi;
2754# Make sure we can run config.sub.
2755$ac_config_sub sun4 >/dev/null 2>&1 ||
2756  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2757echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2758   { (exit 1); exit 1; }; }
2759
2760echo "$as_me:$LINENO: checking build system type" >&5
2761echo $ECHO_N "checking build system type... $ECHO_C" >&6
2762if test "${ac_cv_build+set}" = set; then
2763  echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765  ac_cv_build_alias=$build_alias
2766test -z "$ac_cv_build_alias" &&
2767  ac_cv_build_alias=`$ac_config_guess`
2768test -z "$ac_cv_build_alias" &&
2769  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2770echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2771   { (exit 1); exit 1; }; }
2772ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2773  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2774echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2775   { (exit 1); exit 1; }; }
2776
2777fi
2778echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2779echo "${ECHO_T}$ac_cv_build" >&6
2780build=$ac_cv_build
2781build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2782build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2783build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2784
2785
2786echo "$as_me:$LINENO: checking host system type" >&5
2787echo $ECHO_N "checking host system type... $ECHO_C" >&6
2788if test "${ac_cv_host+set}" = set; then
2789  echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
2791  ac_cv_host_alias=$host_alias
2792test -z "$ac_cv_host_alias" &&
2793  ac_cv_host_alias=$ac_cv_build_alias
2794ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2795  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2796echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2797   { (exit 1); exit 1; }; }
2798
2799fi
2800echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2801echo "${ECHO_T}$ac_cv_host" >&6
2802host=$ac_cv_host
2803host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2804host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2805host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2806
2807
2808# Find the correct PATH separator.  Usually this is `:', but
2809# DJGPP uses `;' like DOS.
2810if test "X${PATH_SEPARATOR+set}" != Xset; then
2811  UNAME=${UNAME-`uname 2>/dev/null`}
2812  case X$UNAME in
2813    *-DOS) lt_cv_sys_path_separator=';' ;;
2814    *)     lt_cv_sys_path_separator=':' ;;
2815  esac
2816  PATH_SEPARATOR=$lt_cv_sys_path_separator
2817fi
2818
2819
2820# Check whether --with-gnu-ld or --without-gnu-ld was given.
2821if test "${with_gnu_ld+set}" = set; then
2822  withval="$with_gnu_ld"
2823  test "$withval" = no || with_gnu_ld=yes
2824else
2825  with_gnu_ld=no
2826fi;
2827ac_prog=ld
2828if test "$GCC" = yes; then
2829  # Check if gcc -print-prog-name=ld gives a path.
2830  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2831echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2832  case $host in
2833  *-*-mingw*)
2834    # gcc leaves a trailing carriage return which upsets mingw
2835    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2836  *)
2837    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2838  esac
2839  case $ac_prog in
2840    # Accept absolute paths.
2841    [\\/]* | [A-Za-z]:[\\/]*)
2842      re_direlt='/[^/][^/]*/\.\./'
2843      # Canonicalize the path of ld
2844      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2845      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2846	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2847      done
2848      test -z "$LD" && LD="$ac_prog"
2849      ;;
2850  "")
2851    # If it fails, then pretend we aren't using GCC.
2852    ac_prog=ld
2853    ;;
2854  *)
2855    # If it is relative, then search for the first ld in PATH.
2856    with_gnu_ld=unknown
2857    ;;
2858  esac
2859elif test "$with_gnu_ld" = yes; then
2860  echo "$as_me:$LINENO: checking for GNU ld" >&5
2861echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2862else
2863  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2864echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2865fi
2866if test "${lt_cv_path_LD+set}" = set; then
2867  echo $ECHO_N "(cached) $ECHO_C" >&6
2868else
2869  if test -z "$LD"; then
2870  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2871  for ac_dir in $PATH; do
2872    test -z "$ac_dir" && ac_dir=.
2873    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2874      lt_cv_path_LD="$ac_dir/$ac_prog"
2875      # Check to see if the program is GNU ld.  I'd rather use --version,
2876      # but apparently some GNU ld's only accept -v.
2877      # Break only if it was the GNU/non-GNU ld that we prefer.
2878      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2879	test "$with_gnu_ld" != no && break
2880      else
2881	test "$with_gnu_ld" != yes && break
2882      fi
2883    fi
2884  done
2885  IFS="$ac_save_ifs"
2886else
2887  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2888fi
2889fi
2890
2891LD="$lt_cv_path_LD"
2892if test -n "$LD"; then
2893  echo "$as_me:$LINENO: result: $LD" >&5
2894echo "${ECHO_T}$LD" >&6
2895else
2896  echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
2898fi
2899test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2900echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2901   { (exit 1); exit 1; }; }
2902echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2903echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2904if test "${lt_cv_prog_gnu_ld+set}" = set; then
2905  echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2908if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2909  lt_cv_prog_gnu_ld=yes
2910else
2911  lt_cv_prog_gnu_ld=no
2912fi
2913fi
2914echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2915echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2916with_gnu_ld=$lt_cv_prog_gnu_ld
2917
2918
2919echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2920echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2921if test "${lt_cv_ld_reload_flag+set}" = set; then
2922  echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924  lt_cv_ld_reload_flag='-r'
2925fi
2926echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2927echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2928reload_flag=$lt_cv_ld_reload_flag
2929test -n "$reload_flag" && reload_flag=" $reload_flag"
2930
2931echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2932echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2933if test "${lt_cv_path_NM+set}" = set; then
2934  echo $ECHO_N "(cached) $ECHO_C" >&6
2935else
2936  if test -n "$NM"; then
2937  # Let the user override the test.
2938  lt_cv_path_NM="$NM"
2939else
2940  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2941  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2942    test -z "$ac_dir" && ac_dir=.
2943    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2944    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2945      # Check to see if the nm accepts a BSD-compat flag.
2946      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2947      #   nm: unknown option "B" ignored
2948      # Tru64's nm complains that /dev/null is an invalid object file
2949      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2950	lt_cv_path_NM="$tmp_nm -B"
2951	break
2952      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2953	lt_cv_path_NM="$tmp_nm -p"
2954	break
2955      else
2956	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2957	continue # so that we can try to find one that supports BSD flags
2958      fi
2959    fi
2960  done
2961  IFS="$ac_save_ifs"
2962  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2963fi
2964fi
2965
2966NM="$lt_cv_path_NM"
2967echo "$as_me:$LINENO: result: $NM" >&5
2968echo "${ECHO_T}$NM" >&6
2969
2970echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2971echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2972if test "${lt_cv_path_SED+set}" = set; then
2973  echo $ECHO_N "(cached) $ECHO_C" >&6
2974else
2975  # Loop through the user's path and test for sed and gsed.
2976# Then use that list of sed's as ones to test for truncation.
2977as_executable_p="test -f"
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983  for ac_prog in sed gsed; do
2984    for ac_exec_ext in '' $ac_executable_extensions; do
2985      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2986        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2987      fi
2988    done
2989  done
2990done
2991
2992  # Create a temporary directory, and hook for its removal unless debugging.
2993$debug ||
2994{
2995  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2996  trap '{ (exit 1); exit 1; }' 1 2 13 15
2997}
2998
2999# Create a (secure) tmp directory for tmp files.
3000: ${TMPDIR=/tmp}
3001{
3002  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3003  test -n "$tmp" && test -d "$tmp"
3004}  ||
3005{
3006  tmp=$TMPDIR/sed$$-$RANDOM
3007  (umask 077 && mkdir $tmp)
3008} ||
3009{
3010   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3011   { (exit 1); exit 1; }
3012}
3013  _max=0
3014  _count=0
3015  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3016  # along with /bin/sed that truncates output.
3017  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3018    test ! -f ${_sed} && break
3019    cat /dev/null > "$tmp/sed.in"
3020    _count=0
3021    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3022    # Check for GNU sed and select it if it is found.
3023    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3024      lt_cv_path_SED=${_sed}
3025      break
3026    fi
3027    while true; do
3028      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3029      mv "$tmp/sed.tmp" "$tmp/sed.in"
3030      cp "$tmp/sed.in" "$tmp/sed.nl"
3031      echo >>"$tmp/sed.nl"
3032      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3033      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3034      # 40000 chars as input seems more than enough
3035      test $_count -gt 10 && break
3036      _count=`expr $_count + 1`
3037      if test $_count -gt $_max; then
3038        _max=$_count
3039        lt_cv_path_SED=$_sed
3040      fi
3041    done
3042  done
3043  rm -rf "$tmp"
3044
3045fi
3046
3047if test "X$SED" != "X"; then
3048  lt_cv_path_SED=$SED
3049else
3050  SED=$lt_cv_path_SED
3051fi
3052echo "$as_me:$LINENO: result: $SED" >&5
3053echo "${ECHO_T}$SED" >&6
3054
3055echo "$as_me:$LINENO: checking whether ln -s works" >&5
3056echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3057LN_S=$as_ln_s
3058if test "$LN_S" = "ln -s"; then
3059  echo "$as_me:$LINENO: result: yes" >&5
3060echo "${ECHO_T}yes" >&6
3061else
3062  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3063echo "${ECHO_T}no, using $LN_S" >&6
3064fi
3065
3066echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3067echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3068if test "${lt_cv_deplibs_check_method+set}" = set; then
3069  echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071  lt_cv_file_magic_cmd='$MAGIC_CMD'
3072lt_cv_file_magic_test_file=
3073lt_cv_deplibs_check_method='unknown'
3074# Need to set the preceding variable on all platforms that support
3075# interlibrary dependencies.
3076# 'none' -- dependencies not supported.
3077# `unknown' -- same as none, but documents that we really don't know.
3078# 'pass_all' -- all dependencies passed with no checks.
3079# 'test_compile' -- check by making test program.
3080# 'file_magic [[regex]]' -- check by looking for files in library path
3081# which responds to the $file_magic_cmd with a given egrep regex.
3082# If you have `file' or equivalent on your system and you're not sure
3083# whether `pass_all' will *always* work, you probably want this one.
3084
3085case $host_os in
3086aix4* | aix5*)
3087  lt_cv_deplibs_check_method=pass_all
3088  ;;
3089
3090beos*)
3091  lt_cv_deplibs_check_method=pass_all
3092  ;;
3093
3094bsdi4*)
3095  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3096  lt_cv_file_magic_cmd='/usr/bin/file -L'
3097  lt_cv_file_magic_test_file=/shlib/libc.so
3098  ;;
3099
3100cygwin* | mingw* | pw32*)
3101  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3102  lt_cv_file_magic_cmd='$OBJDUMP -f'
3103  ;;
3104
3105darwin* | rhapsody*)
3106  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3107  lt_cv_file_magic_cmd='/usr/bin/file -L'
3108  case "$host_os" in
3109  rhapsody* | darwin1.[012])
3110    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3111    ;;
3112  *) # Darwin 1.3 on
3113    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3114    ;;
3115  esac
3116  ;;
3117
3118freebsd*)
3119  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3120    case $host_cpu in
3121    i*86 )
3122      # Not sure whether the presence of OpenBSD here was a mistake.
3123      # Let's accept both of them until this is cleared up.
3124      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3125      lt_cv_file_magic_cmd=/usr/bin/file
3126      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3127      ;;
3128    esac
3129  else
3130    lt_cv_deplibs_check_method=pass_all
3131  fi
3132  ;;
3133
3134gnu*)
3135  lt_cv_deplibs_check_method=pass_all
3136  ;;
3137
3138hpux10.20*|hpux11*)
3139  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3140  lt_cv_file_magic_cmd=/usr/bin/file
3141  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3142  ;;
3143
3144irix5* | irix6* | nonstopux*)
3145  case $host_os in
3146  irix5* | nonstopux*)
3147    # this will be overridden with pass_all, but let us keep it just in case
3148    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3149    ;;
3150  *)
3151    case $LD in
3152    *-32|*"-32 ") libmagic=32-bit;;
3153    *-n32|*"-n32 ") libmagic=N32;;
3154    *-64|*"-64 ") libmagic=64-bit;;
3155    *) libmagic=never-match;;
3156    esac
3157    # this will be overridden with pass_all, but let us keep it just in case
3158    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3159    ;;
3160  esac
3161  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3162  lt_cv_deplibs_check_method=pass_all
3163  ;;
3164
3165# This must be Linux ELF.
3166linux-gnu*)
3167  case $host_cpu in
3168  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3169    lt_cv_deplibs_check_method=pass_all ;;
3170  *)
3171    # glibc up to 2.1.1 does not perform some relocations on ARM
3172    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3173  esac
3174  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3175  ;;
3176
3177netbsd*)
3178  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3179    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3180  else
3181    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3182  fi
3183  ;;
3184
3185newos6*)
3186  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3187  lt_cv_file_magic_cmd=/usr/bin/file
3188  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3189  ;;
3190
3191openbsd*)
3192  lt_cv_file_magic_cmd=/usr/bin/file
3193  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3194  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3195    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3196  else
3197    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3198  fi
3199  ;;
3200
3201osf3* | osf4* | osf5*)
3202  # this will be overridden with pass_all, but let us keep it just in case
3203  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3204  lt_cv_file_magic_test_file=/shlib/libc.so
3205  lt_cv_deplibs_check_method=pass_all
3206  ;;
3207
3208sco3.2v5*)
3209  lt_cv_deplibs_check_method=pass_all
3210  ;;
3211
3212solaris*)
3213  lt_cv_deplibs_check_method=pass_all
3214  lt_cv_file_magic_test_file=/lib/libc.so
3215  ;;
3216
3217sysv5uw[78]* | sysv4*uw2*)
3218  lt_cv_deplibs_check_method=pass_all
3219  ;;
3220
3221sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3222  case $host_vendor in
3223  motorola)
3224    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]'
3225    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3226    ;;
3227  ncr)
3228    lt_cv_deplibs_check_method=pass_all
3229    ;;
3230  sequent)
3231    lt_cv_file_magic_cmd='/bin/file'
3232    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3233    ;;
3234  sni)
3235    lt_cv_file_magic_cmd='/bin/file'
3236    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3237    lt_cv_file_magic_test_file=/lib/libc.so
3238    ;;
3239  siemens)
3240    lt_cv_deplibs_check_method=pass_all
3241    ;;
3242  esac
3243  ;;
3244esac
3245
3246fi
3247echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3248echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3249file_magic_cmd=$lt_cv_file_magic_cmd
3250deplibs_check_method=$lt_cv_deplibs_check_method
3251
3252
3253
3254
3255
3256
3257
3258
3259# Check for command to grab the raw symbol name followed by C symbol from nm.
3260echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3261echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3262if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3263  echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265
3266# These are sane defaults that work on at least a few old systems.
3267# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3268
3269# Character class describing NM global symbol codes.
3270symcode='[BCDEGRST]'
3271
3272# Regexp to match symbols that can be accessed directly from C.
3273sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3274
3275# Transform the above into a raw symbol and a C symbol.
3276symxfrm='\1 \2\3 \3'
3277
3278# Transform an extracted symbol line into a proper C declaration
3279lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3280
3281# Transform an extracted symbol line into symbol name and symbol address
3282lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3283
3284# Define system-specific variables.
3285case $host_os in
3286aix*)
3287  symcode='[BCDT]'
3288  ;;
3289cygwin* | mingw* | pw32*)
3290  symcode='[ABCDGISTW]'
3291  ;;
3292hpux*) # Its linker distinguishes data from code symbols
3293  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3294  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3295  ;;
3296irix* | nonstopux*)
3297  symcode='[BCDEGRST]'
3298  ;;
3299osf*)
3300  symcode='[BCDEGQRST]'
3301  ;;
3302solaris* | sysv5*)
3303  symcode='[BDT]'
3304  ;;
3305sysv4)
3306  symcode='[DFNSTU]'
3307  ;;
3308esac
3309
3310# Handle CRLF in mingw tool chain
3311opt_cr=
3312case $host_os in
3313mingw*)
3314  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3315  ;;
3316esac
3317
3318# If we're using GNU nm, then use its standard symbol codes.
3319if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3320  symcode='[ABCDGISTW]'
3321fi
3322
3323# Try without a prefix undercore, then with it.
3324for ac_symprfx in "" "_"; do
3325
3326  # Write the raw and C identifiers.
3327lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3328
3329  # Check to see that the pipe works correctly.
3330  pipe_works=no
3331  rm -f conftest*
3332  cat > conftest.$ac_ext <<EOF
3333#ifdef __cplusplus
3334extern "C" {
3335#endif
3336char nm_test_var;
3337void nm_test_func(){}
3338#ifdef __cplusplus
3339}
3340#endif
3341int main(){nm_test_var='a';nm_test_func();return(0);}
3342EOF
3343
3344  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345  (eval $ac_compile) 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }; then
3349    # Now try to grab the symbols.
3350    nlist=conftest.nm
3351    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3352  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3353  ac_status=$?
3354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); } && test -s "$nlist"; then
3356      # Try sorting and uniquifying the output.
3357      if sort "$nlist" | uniq > "$nlist"T; then
3358	mv -f "$nlist"T "$nlist"
3359      else
3360	rm -f "$nlist"T
3361      fi
3362
3363      # Make sure that we snagged all the symbols we need.
3364      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3365	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3366	  cat <<EOF > conftest.$ac_ext
3367#ifdef __cplusplus
3368extern "C" {
3369#endif
3370
3371EOF
3372	  # Now generate the symbol file.
3373	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3374
3375	  cat <<EOF >> conftest.$ac_ext
3376#if defined (__STDC__) && __STDC__
3377# define lt_ptr void *
3378#else
3379# define lt_ptr char *
3380# define const
3381#endif
3382
3383/* The mapping between symbol names and symbols. */
3384const struct {
3385  const char *name;
3386  lt_ptr address;
3387}
3388lt_preloaded_symbols[] =
3389{
3390EOF
3391	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3392	  cat <<\EOF >> conftest.$ac_ext
3393  {0, (lt_ptr) 0}
3394};
3395
3396#ifdef __cplusplus
3397}
3398#endif
3399EOF
3400	  # Now try linking the two files.
3401	  mv conftest.$ac_objext conftstm.$ac_objext
3402	  save_LIBS="$LIBS"
3403	  save_CFLAGS="$CFLAGS"
3404	  LIBS="conftstm.$ac_objext"
3405	  CFLAGS="$CFLAGS$no_builtin_flag"
3406	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3407  (eval $ac_link) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); } && test -s conftest$ac_exeext; then
3411	    pipe_works=yes
3412	  fi
3413	  LIBS="$save_LIBS"
3414	  CFLAGS="$save_CFLAGS"
3415	else
3416	  echo "cannot find nm_test_func in $nlist" >&5
3417	fi
3418      else
3419	echo "cannot find nm_test_var in $nlist" >&5
3420      fi
3421    else
3422      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3423    fi
3424  else
3425    echo "$progname: failed program was:" >&5
3426    cat conftest.$ac_ext >&5
3427  fi
3428  rm -f conftest* conftst*
3429
3430  # Do not use the global_symbol_pipe unless it works.
3431  if test "$pipe_works" = yes; then
3432    break
3433  else
3434    lt_cv_sys_global_symbol_pipe=
3435  fi
3436done
3437
3438fi
3439
3440global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3441if test -z "$lt_cv_sys_global_symbol_pipe"; then
3442  global_symbol_to_cdecl=
3443  global_symbol_to_c_name_address=
3444else
3445  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3446  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3447fi
3448if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3449then
3450  echo "$as_me:$LINENO: result: failed" >&5
3451echo "${ECHO_T}failed" >&6
3452else
3453  echo "$as_me:$LINENO: result: ok" >&5
3454echo "${ECHO_T}ok" >&6
3455fi
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3463echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3464# On Suns, sometimes $CPP names a directory.
3465if test -n "$CPP" && test -d "$CPP"; then
3466  CPP=
3467fi
3468if test -z "$CPP"; then
3469  if test "${ac_cv_prog_CPP+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472      # Double quotes because CPP needs to be expanded
3473    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3474    do
3475      ac_preproc_ok=false
3476for ac_c_preproc_warn_flag in '' yes
3477do
3478  # Use a header file that comes with gcc, so configuring glibc
3479  # with a fresh cross-compiler works.
3480  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481  # <limits.h> exists even on freestanding compilers.
3482  # On the NeXT, cc -E runs the code through the compiler's parser,
3483  # not just through cpp. "Syntax error" is here to catch this case.
3484  cat >conftest.$ac_ext <<_ACEOF
3485#line $LINENO "configure"
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491#ifdef __STDC__
3492# include <limits.h>
3493#else
3494# include <assert.h>
3495#endif
3496                     Syntax error
3497_ACEOF
3498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3499  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3500  ac_status=$?
3501  grep -v '^ *+' conftest.er1 >conftest.err
3502  rm -f conftest.er1
3503  cat conftest.err >&5
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); } >/dev/null; then
3506  if test -s conftest.err; then
3507    ac_cpp_err=$ac_c_preproc_warn_flag
3508  else
3509    ac_cpp_err=
3510  fi
3511else
3512  ac_cpp_err=yes
3513fi
3514if test -z "$ac_cpp_err"; then
3515  :
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520  # Broken: fails on valid input.
3521continue
3522fi
3523rm -f conftest.err conftest.$ac_ext
3524
3525  # OK, works on sane cases.  Now check whether non-existent headers
3526  # can be detected and how.
3527  cat >conftest.$ac_ext <<_ACEOF
3528#line $LINENO "configure"
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534#include <ac_nonexistent.h>
3535_ACEOF
3536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } >/dev/null; then
3544  if test -s conftest.err; then
3545    ac_cpp_err=$ac_c_preproc_warn_flag
3546  else
3547    ac_cpp_err=
3548  fi
3549else
3550  ac_cpp_err=yes
3551fi
3552if test -z "$ac_cpp_err"; then
3553  # Broken: success on invalid input.
3554continue
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559  # Passes both tests.
3560ac_preproc_ok=:
3561break
3562fi
3563rm -f conftest.err conftest.$ac_ext
3564
3565done
3566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567rm -f conftest.err conftest.$ac_ext
3568if $ac_preproc_ok; then
3569  break
3570fi
3571
3572    done
3573    ac_cv_prog_CPP=$CPP
3574
3575fi
3576  CPP=$ac_cv_prog_CPP
3577else
3578  ac_cv_prog_CPP=$CPP
3579fi
3580echo "$as_me:$LINENO: result: $CPP" >&5
3581echo "${ECHO_T}$CPP" >&6
3582ac_preproc_ok=false
3583for ac_c_preproc_warn_flag in '' yes
3584do
3585  # Use a header file that comes with gcc, so configuring glibc
3586  # with a fresh cross-compiler works.
3587  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588  # <limits.h> exists even on freestanding compilers.
3589  # On the NeXT, cc -E runs the code through the compiler's parser,
3590  # not just through cpp. "Syntax error" is here to catch this case.
3591  cat >conftest.$ac_ext <<_ACEOF
3592#line $LINENO "configure"
3593/* confdefs.h.  */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h.  */
3598#ifdef __STDC__
3599# include <limits.h>
3600#else
3601# include <assert.h>
3602#endif
3603                     Syntax error
3604_ACEOF
3605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3607  ac_status=$?
3608  grep -v '^ *+' conftest.er1 >conftest.err
3609  rm -f conftest.er1
3610  cat conftest.err >&5
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); } >/dev/null; then
3613  if test -s conftest.err; then
3614    ac_cpp_err=$ac_c_preproc_warn_flag
3615  else
3616    ac_cpp_err=
3617  fi
3618else
3619  ac_cpp_err=yes
3620fi
3621if test -z "$ac_cpp_err"; then
3622  :
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627  # Broken: fails on valid input.
3628continue
3629fi
3630rm -f conftest.err conftest.$ac_ext
3631
3632  # OK, works on sane cases.  Now check whether non-existent headers
3633  # can be detected and how.
3634  cat >conftest.$ac_ext <<_ACEOF
3635#line $LINENO "configure"
3636/* confdefs.h.  */
3637_ACEOF
3638cat confdefs.h >>conftest.$ac_ext
3639cat >>conftest.$ac_ext <<_ACEOF
3640/* end confdefs.h.  */
3641#include <ac_nonexistent.h>
3642_ACEOF
3643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3644  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3645  ac_status=$?
3646  grep -v '^ *+' conftest.er1 >conftest.err
3647  rm -f conftest.er1
3648  cat conftest.err >&5
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } >/dev/null; then
3651  if test -s conftest.err; then
3652    ac_cpp_err=$ac_c_preproc_warn_flag
3653  else
3654    ac_cpp_err=
3655  fi
3656else
3657  ac_cpp_err=yes
3658fi
3659if test -z "$ac_cpp_err"; then
3660  # Broken: success on invalid input.
3661continue
3662else
3663  echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666  # Passes both tests.
3667ac_preproc_ok=:
3668break
3669fi
3670rm -f conftest.err conftest.$ac_ext
3671
3672done
3673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674rm -f conftest.err conftest.$ac_ext
3675if $ac_preproc_ok; then
3676  :
3677else
3678  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3679See \`config.log' for more details." >&5
3680echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3681See \`config.log' for more details." >&2;}
3682   { (exit 1); exit 1; }; }
3683fi
3684
3685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691
3692echo "$as_me:$LINENO: checking for egrep" >&5
3693echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3694if test "${ac_cv_prog_egrep+set}" = set; then
3695  echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
3697  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3698    then ac_cv_prog_egrep='grep -E'
3699    else ac_cv_prog_egrep='egrep'
3700    fi
3701fi
3702echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3703echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3704 EGREP=$ac_cv_prog_egrep
3705
3706
3707echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3708echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3709if test "${ac_cv_header_stdc+set}" = set; then
3710  echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712  cat >conftest.$ac_ext <<_ACEOF
3713#line $LINENO "configure"
3714/* confdefs.h.  */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h.  */
3719#include <stdlib.h>
3720#include <stdarg.h>
3721#include <string.h>
3722#include <float.h>
3723
3724int
3725main ()
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732rm -f conftest.$ac_objext
3733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734  (eval $ac_compile) 2>&5
3735  ac_status=$?
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); } &&
3738         { ac_try='test -s conftest.$ac_objext'
3739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740  (eval $ac_try) 2>&5
3741  ac_status=$?
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); }; }; then
3744  ac_cv_header_stdc=yes
3745else
3746  echo "$as_me: failed program was:" >&5
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3749ac_cv_header_stdc=no
3750fi
3751rm -f conftest.$ac_objext conftest.$ac_ext
3752
3753if test $ac_cv_header_stdc = yes; then
3754  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3755  cat >conftest.$ac_ext <<_ACEOF
3756#line $LINENO "configure"
3757/* confdefs.h.  */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h.  */
3762#include <string.h>
3763
3764_ACEOF
3765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3766  $EGREP "memchr" >/dev/null 2>&1; then
3767  :
3768else
3769  ac_cv_header_stdc=no
3770fi
3771rm -f conftest*
3772
3773fi
3774
3775if test $ac_cv_header_stdc = yes; then
3776  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3777  cat >conftest.$ac_ext <<_ACEOF
3778#line $LINENO "configure"
3779/* confdefs.h.  */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h.  */
3784#include <stdlib.h>
3785
3786_ACEOF
3787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788  $EGREP "free" >/dev/null 2>&1; then
3789  :
3790else
3791  ac_cv_header_stdc=no
3792fi
3793rm -f conftest*
3794
3795fi
3796
3797if test $ac_cv_header_stdc = yes; then
3798  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3799  if test "$cross_compiling" = yes; then
3800  :
3801else
3802  cat >conftest.$ac_ext <<_ACEOF
3803#line $LINENO "configure"
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809#include <ctype.h>
3810#if ((' ' & 0x0FF) == 0x020)
3811# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3812# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3813#else
3814# define ISLOWER(c) \
3815                   (('a' <= (c) && (c) <= 'i') \
3816                     || ('j' <= (c) && (c) <= 'r') \
3817                     || ('s' <= (c) && (c) <= 'z'))
3818# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3819#endif
3820
3821#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3822int
3823main ()
3824{
3825  int i;
3826  for (i = 0; i < 256; i++)
3827    if (XOR (islower (i), ISLOWER (i))
3828        || toupper (i) != TOUPPER (i))
3829      exit(2);
3830  exit (0);
3831}
3832_ACEOF
3833rm -f conftest$ac_exeext
3834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3835  (eval $ac_link) 2>&5
3836  ac_status=$?
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840  (eval $ac_try) 2>&5
3841  ac_status=$?
3842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843  (exit $ac_status); }; }; then
3844  :
3845else
3846  echo "$as_me: program exited with status $ac_status" >&5
3847echo "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5
3849
3850( exit $ac_status )
3851ac_cv_header_stdc=no
3852fi
3853rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3854fi
3855fi
3856fi
3857echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3858echo "${ECHO_T}$ac_cv_header_stdc" >&6
3859if test $ac_cv_header_stdc = yes; then
3860
3861cat >>confdefs.h <<\_ACEOF
3862#define STDC_HEADERS 1
3863_ACEOF
3864
3865fi
3866
3867# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3878                  inttypes.h stdint.h unistd.h
3879do
3880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3881echo "$as_me:$LINENO: checking for $ac_header" >&5
3882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3883if eval "test \"\${$as_ac_Header+set}\" = set"; then
3884  echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886  cat >conftest.$ac_ext <<_ACEOF
3887#line $LINENO "configure"
3888/* confdefs.h.  */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h.  */
3893$ac_includes_default
3894
3895#include <$ac_header>
3896_ACEOF
3897rm -f conftest.$ac_objext
3898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899  (eval $ac_compile) 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); } &&
3903         { ac_try='test -s conftest.$ac_objext'
3904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905  (eval $ac_try) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); }; }; then
3909  eval "$as_ac_Header=yes"
3910else
3911  echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914eval "$as_ac_Header=no"
3915fi
3916rm -f conftest.$ac_objext conftest.$ac_ext
3917fi
3918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3920if test `eval echo '${'$as_ac_Header'}'` = yes; then
3921  cat >>confdefs.h <<_ACEOF
3922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3923_ACEOF
3924
3925fi
3926
3927done
3928
3929
3930
3931for ac_header in dlfcn.h
3932do
3933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3934if eval "test \"\${$as_ac_Header+set}\" = set"; then
3935  echo "$as_me:$LINENO: checking for $ac_header" >&5
3936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3937if eval "test \"\${$as_ac_Header+set}\" = set"; then
3938  echo $ECHO_N "(cached) $ECHO_C" >&6
3939fi
3940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3942else
3943  # Is the header compilable?
3944echo "$as_me:$LINENO: checking $ac_header usability" >&5
3945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3946cat >conftest.$ac_ext <<_ACEOF
3947#line $LINENO "configure"
3948/* confdefs.h.  */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h.  */
3953$ac_includes_default
3954#include <$ac_header>
3955_ACEOF
3956rm -f conftest.$ac_objext
3957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958  (eval $ac_compile) 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); } &&
3962         { ac_try='test -s conftest.$ac_objext'
3963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964  (eval $ac_try) 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; }; then
3968  ac_header_compiler=yes
3969else
3970  echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973ac_header_compiler=no
3974fi
3975rm -f conftest.$ac_objext conftest.$ac_ext
3976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3977echo "${ECHO_T}$ac_header_compiler" >&6
3978
3979# Is the header present?
3980echo "$as_me:$LINENO: checking $ac_header presence" >&5
3981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3982cat >conftest.$ac_ext <<_ACEOF
3983#line $LINENO "configure"
3984/* confdefs.h.  */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h.  */
3989#include <$ac_header>
3990_ACEOF
3991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3992  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } >/dev/null; then
3999  if test -s conftest.err; then
4000    ac_cpp_err=$ac_c_preproc_warn_flag
4001  else
4002    ac_cpp_err=
4003  fi
4004else
4005  ac_cpp_err=yes
4006fi
4007if test -z "$ac_cpp_err"; then
4008  ac_header_preproc=yes
4009else
4010  echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013  ac_header_preproc=no
4014fi
4015rm -f conftest.err conftest.$ac_ext
4016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4017echo "${ECHO_T}$ac_header_preproc" >&6
4018
4019# So?  What about this header?
4020case $ac_header_compiler:$ac_header_preproc in
4021  yes:no )
4022    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4026    (
4027      cat <<\_ASBOX
4028## ------------------------------------ ##
4029## Report this to bug-autoconf@gnu.org. ##
4030## ------------------------------------ ##
4031_ASBOX
4032    ) |
4033      sed "s/^/$as_me: WARNING:     /" >&2
4034    ;;
4035  no:yes )
4036    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4038    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4040    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4042    (
4043      cat <<\_ASBOX
4044## ------------------------------------ ##
4045## Report this to bug-autoconf@gnu.org. ##
4046## ------------------------------------ ##
4047_ASBOX
4048    ) |
4049      sed "s/^/$as_me: WARNING:     /" >&2
4050    ;;
4051esac
4052echo "$as_me:$LINENO: checking for $ac_header" >&5
4053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4054if eval "test \"\${$as_ac_Header+set}\" = set"; then
4055  echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057  eval "$as_ac_Header=$ac_header_preproc"
4058fi
4059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4061
4062fi
4063if test `eval echo '${'$as_ac_Header'}'` = yes; then
4064  cat >>confdefs.h <<_ACEOF
4065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066_ACEOF
4067
4068fi
4069
4070done
4071
4072
4073
4074
4075
4076
4077# Only perform the check for file, if the check method requires it
4078case $deplibs_check_method in
4079file_magic*)
4080  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4081    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4082echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4083if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4084  echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086  case $MAGIC_CMD in
4087  /*)
4088  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4089  ;;
4090  ?:/*)
4091  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4092  ;;
4093  *)
4094  ac_save_MAGIC_CMD="$MAGIC_CMD"
4095  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4096  ac_dummy="/usr/bin:$PATH"
4097  for ac_dir in $ac_dummy; do
4098    test -z "$ac_dir" && ac_dir=.
4099    if test -f $ac_dir/${ac_tool_prefix}file; then
4100      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4101      if test -n "$file_magic_test_file"; then
4102	case $deplibs_check_method in
4103	"file_magic "*)
4104	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4105	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4106	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4107	    egrep "$file_magic_regex" > /dev/null; then
4108	    :
4109	  else
4110	    cat <<EOF 1>&2
4111
4112*** Warning: the command libtool uses to detect shared libraries,
4113*** $file_magic_cmd, produces output that libtool cannot recognize.
4114*** The result is that libtool may fail to recognize shared libraries
4115*** as such.  This will affect the creation of libtool libraries that
4116*** depend on shared libraries, but programs linked with such libtool
4117*** libraries will work regardless of this problem.  Nevertheless, you
4118*** may want to report the problem to your system manager and/or to
4119*** bug-libtool@gnu.org
4120
4121EOF
4122	  fi ;;
4123	esac
4124      fi
4125      break
4126    fi
4127  done
4128  IFS="$ac_save_ifs"
4129  MAGIC_CMD="$ac_save_MAGIC_CMD"
4130  ;;
4131esac
4132fi
4133
4134MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4135if test -n "$MAGIC_CMD"; then
4136  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4137echo "${ECHO_T}$MAGIC_CMD" >&6
4138else
4139  echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141fi
4142
4143if test -z "$lt_cv_path_MAGIC_CMD"; then
4144  if test -n "$ac_tool_prefix"; then
4145    echo "$as_me:$LINENO: checking for file" >&5
4146echo $ECHO_N "checking for file... $ECHO_C" >&6
4147if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  case $MAGIC_CMD in
4151  /*)
4152  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4153  ;;
4154  ?:/*)
4155  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4156  ;;
4157  *)
4158  ac_save_MAGIC_CMD="$MAGIC_CMD"
4159  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4160  ac_dummy="/usr/bin:$PATH"
4161  for ac_dir in $ac_dummy; do
4162    test -z "$ac_dir" && ac_dir=.
4163    if test -f $ac_dir/file; then
4164      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4165      if test -n "$file_magic_test_file"; then
4166	case $deplibs_check_method in
4167	"file_magic "*)
4168	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4169	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4170	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4171	    egrep "$file_magic_regex" > /dev/null; then
4172	    :
4173	  else
4174	    cat <<EOF 1>&2
4175
4176*** Warning: the command libtool uses to detect shared libraries,
4177*** $file_magic_cmd, produces output that libtool cannot recognize.
4178*** The result is that libtool may fail to recognize shared libraries
4179*** as such.  This will affect the creation of libtool libraries that
4180*** depend on shared libraries, but programs linked with such libtool
4181*** libraries will work regardless of this problem.  Nevertheless, you
4182*** may want to report the problem to your system manager and/or to
4183*** bug-libtool@gnu.org
4184
4185EOF
4186	  fi ;;
4187	esac
4188      fi
4189      break
4190    fi
4191  done
4192  IFS="$ac_save_ifs"
4193  MAGIC_CMD="$ac_save_MAGIC_CMD"
4194  ;;
4195esac
4196fi
4197
4198MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4199if test -n "$MAGIC_CMD"; then
4200  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4201echo "${ECHO_T}$MAGIC_CMD" >&6
4202else
4203  echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205fi
4206
4207  else
4208    MAGIC_CMD=:
4209  fi
4210fi
4211
4212  fi
4213  ;;
4214esac
4215
4216if test -n "$ac_tool_prefix"; then
4217  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4218set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4219echo "$as_me:$LINENO: checking for $ac_word" >&5
4220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221if test "${ac_cv_prog_RANLIB+set}" = set; then
4222  echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
4224  if test -n "$RANLIB"; then
4225  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230  IFS=$as_save_IFS
4231  test -z "$as_dir" && as_dir=.
4232  for ac_exec_ext in '' $ac_executable_extensions; do
4233  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236    break 2
4237  fi
4238done
4239done
4240
4241fi
4242fi
4243RANLIB=$ac_cv_prog_RANLIB
4244if test -n "$RANLIB"; then
4245  echo "$as_me:$LINENO: result: $RANLIB" >&5
4246echo "${ECHO_T}$RANLIB" >&6
4247else
4248  echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250fi
4251
4252fi
4253if test -z "$ac_cv_prog_RANLIB"; then
4254  ac_ct_RANLIB=$RANLIB
4255  # Extract the first word of "ranlib", so it can be a program name with args.
4256set dummy ranlib; ac_word=$2
4257echo "$as_me:$LINENO: checking for $ac_word" >&5
4258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4260  echo $ECHO_N "(cached) $ECHO_C" >&6
4261else
4262  if test -n "$ac_ct_RANLIB"; then
4263  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4264else
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268  IFS=$as_save_IFS
4269  test -z "$as_dir" && as_dir=.
4270  for ac_exec_ext in '' $ac_executable_extensions; do
4271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272    ac_cv_prog_ac_ct_RANLIB="ranlib"
4273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274    break 2
4275  fi
4276done
4277done
4278
4279  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4280fi
4281fi
4282ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4283if test -n "$ac_ct_RANLIB"; then
4284  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4285echo "${ECHO_T}$ac_ct_RANLIB" >&6
4286else
4287  echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289fi
4290
4291  RANLIB=$ac_ct_RANLIB
4292else
4293  RANLIB="$ac_cv_prog_RANLIB"
4294fi
4295
4296if test -n "$ac_tool_prefix"; then
4297  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4298set dummy ${ac_tool_prefix}strip; ac_word=$2
4299echo "$as_me:$LINENO: checking for $ac_word" >&5
4300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4301if test "${ac_cv_prog_STRIP+set}" = set; then
4302  echo $ECHO_N "(cached) $ECHO_C" >&6
4303else
4304  if test -n "$STRIP"; then
4305  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4306else
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310  IFS=$as_save_IFS
4311  test -z "$as_dir" && as_dir=.
4312  for ac_exec_ext in '' $ac_executable_extensions; do
4313  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316    break 2
4317  fi
4318done
4319done
4320
4321fi
4322fi
4323STRIP=$ac_cv_prog_STRIP
4324if test -n "$STRIP"; then
4325  echo "$as_me:$LINENO: result: $STRIP" >&5
4326echo "${ECHO_T}$STRIP" >&6
4327else
4328  echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6
4330fi
4331
4332fi
4333if test -z "$ac_cv_prog_STRIP"; then
4334  ac_ct_STRIP=$STRIP
4335  # Extract the first word of "strip", so it can be a program name with args.
4336set dummy strip; ac_word=$2
4337echo "$as_me:$LINENO: checking for $ac_word" >&5
4338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4340  echo $ECHO_N "(cached) $ECHO_C" >&6
4341else
4342  if test -n "$ac_ct_STRIP"; then
4343  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348  IFS=$as_save_IFS
4349  test -z "$as_dir" && as_dir=.
4350  for ac_exec_ext in '' $ac_executable_extensions; do
4351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352    ac_cv_prog_ac_ct_STRIP="strip"
4353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354    break 2
4355  fi
4356done
4357done
4358
4359  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4360fi
4361fi
4362ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4363if test -n "$ac_ct_STRIP"; then
4364  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4365echo "${ECHO_T}$ac_ct_STRIP" >&6
4366else
4367  echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369fi
4370
4371  STRIP=$ac_ct_STRIP
4372else
4373  STRIP="$ac_cv_prog_STRIP"
4374fi
4375
4376
4377enable_dlopen=no
4378enable_win32_dll=no
4379
4380# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4381if test "${enable_libtool_lock+set}" = set; then
4382  enableval="$enable_libtool_lock"
4383
4384fi;
4385test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4386
4387# Some flags need to be propagated to the compiler or linker for good
4388# libtool support.
4389case $host in
4390*-*-irix6*)
4391  # Find out which ABI we are using.
4392  echo '#line 4392 "configure"' > conftest.$ac_ext
4393  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394  (eval $ac_compile) 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; then
4398    case `/usr/bin/file conftest.$ac_objext` in
4399    *32-bit*)
4400      LD="${LD-ld} -32"
4401      ;;
4402    *N32*)
4403      LD="${LD-ld} -n32"
4404      ;;
4405    *64-bit*)
4406      LD="${LD-ld} -64"
4407      ;;
4408    esac
4409  fi
4410  rm -rf conftest*
4411  ;;
4412
4413*-*-sco3.2v5*)
4414  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4415  SAVE_CFLAGS="$CFLAGS"
4416  CFLAGS="$CFLAGS -belf"
4417  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4418echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4419if test "${lt_cv_cc_needs_belf+set}" = set; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422
4423
4424     ac_ext=c
4425ac_cpp='$CPP $CPPFLAGS'
4426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429
4430     cat >conftest.$ac_ext <<_ACEOF
4431#line $LINENO "configure"
4432/* confdefs.h.  */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h.  */
4437
4438int
4439main ()
4440{
4441
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext conftest$ac_exeext
4447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448  (eval $ac_link) 2>&5
4449  ac_status=$?
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); } &&
4452         { ac_try='test -s conftest$ac_exeext'
4453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454  (eval $ac_try) 2>&5
4455  ac_status=$?
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); }; }; then
4458  lt_cv_cc_needs_belf=yes
4459else
4460  echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463lt_cv_cc_needs_belf=no
4464fi
4465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4466     ac_ext=c
4467ac_cpp='$CPP $CPPFLAGS'
4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471
4472fi
4473echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4474echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4475  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4476    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4477    CFLAGS="$SAVE_CFLAGS"
4478  fi
4479  ;;
4480
4481
4482esac
4483
4484# Sed substitution that helps us do robust quoting.  It backslashifies
4485# metacharacters that are still active within double-quoted strings.
4486Xsed='sed -e s/^X//'
4487sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4488
4489# Same as above, but do not quote variable references.
4490double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4491
4492# Sed substitution to delay expansion of an escaped shell variable in a
4493# double_quote_subst'ed string.
4494delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4495
4496# Constants:
4497rm="rm -f"
4498
4499# Global variables:
4500default_ofile=libtool
4501can_build_shared=yes
4502
4503# All known linkers require a `.a' archive for static linking (except M$VC,
4504# which needs '.lib').
4505libext=a
4506ltmain="$ac_aux_dir/ltmain.sh"
4507ofile="$default_ofile"
4508with_gnu_ld="$lt_cv_prog_gnu_ld"
4509need_locks="$enable_libtool_lock"
4510
4511old_CC="$CC"
4512old_CFLAGS="$CFLAGS"
4513
4514# Set sane defaults for various variables
4515test -z "$AR" && AR=ar
4516test -z "$AR_FLAGS" && AR_FLAGS=cru
4517test -z "$AS" && AS=as
4518test -z "$CC" && CC=cc
4519test -z "$DLLTOOL" && DLLTOOL=dlltool
4520test -z "$LD" && LD=ld
4521test -z "$LN_S" && LN_S="ln -s"
4522test -z "$MAGIC_CMD" && MAGIC_CMD=file
4523test -z "$NM" && NM=nm
4524test -z "$OBJDUMP" && OBJDUMP=objdump
4525test -z "$RANLIB" && RANLIB=:
4526test -z "$STRIP" && STRIP=:
4527test -z "$ac_objext" && ac_objext=o
4528
4529if test x"$host" != x"$build"; then
4530  ac_tool_prefix=${host_alias}-
4531else
4532  ac_tool_prefix=
4533fi
4534
4535# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4536case $host_os in
4537linux-gnu*) ;;
4538linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4539esac
4540
4541case $host_os in
4542aix3*)
4543  # AIX sometimes has problems with the GCC collect2 program.  For some
4544  # reason, if we set the COLLECT_NAMES environment variable, the problems
4545  # vanish in a puff of smoke.
4546  if test "X${COLLECT_NAMES+set}" != Xset; then
4547    COLLECT_NAMES=
4548    export COLLECT_NAMES
4549  fi
4550  ;;
4551esac
4552
4553# Determine commands to create old-style static archives.
4554old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4555old_postinstall_cmds='chmod 644 $oldlib'
4556old_postuninstall_cmds=
4557
4558if test -n "$RANLIB"; then
4559  case $host_os in
4560  openbsd*)
4561    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4562    ;;
4563  *)
4564    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4565    ;;
4566  esac
4567  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4568fi
4569
4570# Allow CC to be a program name with arguments.
4571set dummy $CC
4572compiler="$2"
4573
4574echo "$as_me:$LINENO: checking for objdir" >&5
4575echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4576rm -f .libs 2>/dev/null
4577mkdir .libs 2>/dev/null
4578if test -d .libs; then
4579  objdir=.libs
4580else
4581  # MS-DOS does not allow filenames that begin with a dot.
4582  objdir=_libs
4583fi
4584rmdir .libs 2>/dev/null
4585echo "$as_me:$LINENO: result: $objdir" >&5
4586echo "${ECHO_T}$objdir" >&6
4587
4588
4589
4590# Check whether --with-pic or --without-pic was given.
4591if test "${with_pic+set}" = set; then
4592  withval="$with_pic"
4593  pic_mode="$withval"
4594else
4595  pic_mode=default
4596fi;
4597test -z "$pic_mode" && pic_mode=default
4598
4599# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4600# in isolation, and that seeing it set (from the cache) indicates that
4601# the associated values are set (in the cache) correctly too.
4602echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4603echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4604if test "${lt_cv_prog_cc_pic+set}" = set; then
4605  echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607   lt_cv_prog_cc_pic=
4608  lt_cv_prog_cc_shlib=
4609  lt_cv_prog_cc_wl=
4610  lt_cv_prog_cc_static=
4611  lt_cv_prog_cc_no_builtin=
4612  lt_cv_prog_cc_can_build_shared=$can_build_shared
4613
4614  if test "$GCC" = yes; then
4615    lt_cv_prog_cc_wl='-Wl,'
4616    lt_cv_prog_cc_static='-static'
4617
4618    case $host_os in
4619    aix*)
4620      # Below there is a dirty hack to force normal static linking with -ldl
4621      # The problem is because libdl dynamically linked with both libc and
4622      # libC (AIX C++ library), which obviously doesn't included in libraries
4623      # list by gcc. This cause undefined symbols with -static flags.
4624      # This hack allows C programs to be linked with "-static -ldl", but
4625      # not sure about C++ programs.
4626      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4627      ;;
4628    amigaos*)
4629      # FIXME: we need at least 68020 code to build shared libraries, but
4630      # adding the `-m68020' flag to GCC prevents building anything better,
4631      # like `-m68040'.
4632      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4633      ;;
4634    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4635      # PIC is the default for these OSes.
4636      ;;
4637    darwin* | rhapsody*)
4638      # PIC is the default on this platform
4639      # Common symbols not allowed in MH_DYLIB files
4640      lt_cv_prog_cc_pic='-fno-common'
4641      ;;
4642    cygwin* | mingw* | pw32* | os2*)
4643      # This hack is so that the source file can tell whether it is being
4644      # built for inclusion in a dll (and should export symbols for example).
4645      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4646      ;;
4647    sysv4*MP*)
4648      if test -d /usr/nec; then
4649	 lt_cv_prog_cc_pic=-Kconform_pic
4650      fi
4651      ;;
4652    *)
4653      lt_cv_prog_cc_pic='-fPIC'
4654      ;;
4655    esac
4656  else
4657    # PORTME Check for PIC flags for the system compiler.
4658    case $host_os in
4659    aix3* | aix4* | aix5*)
4660      lt_cv_prog_cc_wl='-Wl,'
4661      # All AIX code is PIC.
4662      if test "$host_cpu" = ia64; then
4663	# AIX 5 now supports IA64 processor
4664	lt_cv_prog_cc_static='-Bstatic'
4665      else
4666	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4667      fi
4668      ;;
4669
4670    hpux9* | hpux10* | hpux11*)
4671      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4672      lt_cv_prog_cc_wl='-Wl,'
4673      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4674      lt_cv_prog_cc_pic='+Z'
4675      ;;
4676
4677    irix5* | irix6* | nonstopux*)
4678      lt_cv_prog_cc_wl='-Wl,'
4679      lt_cv_prog_cc_static='-non_shared'
4680      # PIC (with -KPIC) is the default.
4681      ;;
4682
4683    cygwin* | mingw* | pw32* | os2*)
4684      # This hack is so that the source file can tell whether it is being
4685      # built for inclusion in a dll (and should export symbols for example).
4686      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4687      ;;
4688
4689    newsos6)
4690      lt_cv_prog_cc_pic='-KPIC'
4691      lt_cv_prog_cc_static='-Bstatic'
4692      ;;
4693
4694    osf3* | osf4* | osf5*)
4695      # All OSF/1 code is PIC.
4696      lt_cv_prog_cc_wl='-Wl,'
4697      lt_cv_prog_cc_static='-non_shared'
4698      ;;
4699
4700    sco3.2v5*)
4701      lt_cv_prog_cc_pic='-Kpic'
4702      lt_cv_prog_cc_static='-dn'
4703      lt_cv_prog_cc_shlib='-belf'
4704      ;;
4705
4706    solaris*)
4707      lt_cv_prog_cc_pic='-KPIC'
4708      lt_cv_prog_cc_static='-Bstatic'
4709      lt_cv_prog_cc_wl='-Wl,'
4710      ;;
4711
4712    sunos4*)
4713      lt_cv_prog_cc_pic='-PIC'
4714      lt_cv_prog_cc_static='-Bstatic'
4715      lt_cv_prog_cc_wl='-Qoption ld '
4716      ;;
4717
4718    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4719      lt_cv_prog_cc_pic='-KPIC'
4720      lt_cv_prog_cc_static='-Bstatic'
4721      lt_cv_prog_cc_wl='-Wl,'
4722      ;;
4723
4724    uts4*)
4725      lt_cv_prog_cc_pic='-pic'
4726      lt_cv_prog_cc_static='-Bstatic'
4727      ;;
4728
4729    sysv4*MP*)
4730      if test -d /usr/nec ;then
4731	lt_cv_prog_cc_pic='-Kconform_pic'
4732	lt_cv_prog_cc_static='-Bstatic'
4733      fi
4734      ;;
4735
4736    *)
4737      lt_cv_prog_cc_can_build_shared=no
4738      ;;
4739    esac
4740  fi
4741
4742fi
4743
4744if test -z "$lt_cv_prog_cc_pic"; then
4745  echo "$as_me:$LINENO: result: none" >&5
4746echo "${ECHO_T}none" >&6
4747else
4748  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4749echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4750
4751  # Check to make sure the pic_flag actually works.
4752  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4753echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4754  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4755  echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757      save_CFLAGS="$CFLAGS"
4758    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4759    cat >conftest.$ac_ext <<_ACEOF
4760#line $LINENO "configure"
4761/* confdefs.h.  */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h.  */
4766
4767int
4768main ()
4769{
4770
4771  ;
4772  return 0;
4773}
4774_ACEOF
4775rm -f conftest.$ac_objext
4776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777  (eval $ac_compile) 2>&5
4778  ac_status=$?
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); } &&
4781         { ac_try='test -s conftest.$ac_objext'
4782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783  (eval $ac_try) 2>&5
4784  ac_status=$?
4785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786  (exit $ac_status); }; }; then
4787        case $host_os in
4788      hpux9* | hpux10* | hpux11*)
4789	# On HP-UX, both CC and GCC only warn that PIC is supported... then
4790	# they create non-PIC objects.  So, if there were any warnings, we
4791	# assume that PIC is not supported.
4792	if test -s conftest.err; then
4793	  lt_cv_prog_cc_pic_works=no
4794	else
4795	  lt_cv_prog_cc_pic_works=yes
4796	fi
4797	;;
4798      *)
4799	lt_cv_prog_cc_pic_works=yes
4800	;;
4801      esac
4802
4803else
4804  echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807      lt_cv_prog_cc_pic_works=no
4808
4809fi
4810rm -f conftest.$ac_objext conftest.$ac_ext
4811    CFLAGS="$save_CFLAGS"
4812
4813fi
4814
4815
4816  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4817    lt_cv_prog_cc_pic=
4818    lt_cv_prog_cc_can_build_shared=no
4819  else
4820    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4821  fi
4822
4823  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4824echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4825fi
4826
4827# Check for any special shared library compilation flags.
4828if test -n "$lt_cv_prog_cc_shlib"; then
4829  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4830echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4831  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
4832  else
4833   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4834echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4835    lt_cv_prog_cc_can_build_shared=no
4836  fi
4837fi
4838
4839echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4840echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4841if test "${lt_cv_prog_cc_static_works+set}" = set; then
4842  echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844    lt_cv_prog_cc_static_works=no
4845  save_LDFLAGS="$LDFLAGS"
4846  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4847  cat >conftest.$ac_ext <<_ACEOF
4848#line $LINENO "configure"
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854
4855int
4856main ()
4857{
4858
4859  ;
4860  return 0;
4861}
4862_ACEOF
4863rm -f conftest.$ac_objext conftest$ac_exeext
4864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4865  (eval $ac_link) 2>&5
4866  ac_status=$?
4867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868  (exit $ac_status); } &&
4869         { ac_try='test -s conftest$ac_exeext'
4870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871  (eval $ac_try) 2>&5
4872  ac_status=$?
4873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874  (exit $ac_status); }; }; then
4875  lt_cv_prog_cc_static_works=yes
4876else
4877  echo "$as_me: failed program was:" >&5
4878sed 's/^/| /' conftest.$ac_ext >&5
4879
4880fi
4881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4882  LDFLAGS="$save_LDFLAGS"
4883
4884fi
4885
4886
4887# Belt *and* braces to stop my trousers falling down:
4888test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4889echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4890echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4891
4892pic_flag="$lt_cv_prog_cc_pic"
4893special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4894wl="$lt_cv_prog_cc_wl"
4895link_static_flag="$lt_cv_prog_cc_static"
4896no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4897can_build_shared="$lt_cv_prog_cc_can_build_shared"
4898
4899
4900# Check to see if options -o and -c are simultaneously supported by compiler
4901echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4902echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4903if test "${lt_cv_compiler_c_o+set}" = set; then
4904  echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906
4907$rm -r conftest 2>/dev/null
4908mkdir conftest
4909cd conftest
4910echo "int some_variable = 0;" > conftest.$ac_ext
4911mkdir out
4912# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4913# that will create temporary files in the current directory regardless of
4914# the output directory.  Thus, making CWD read-only will cause this test
4915# to fail, enabling locking or at least warning the user not to do parallel
4916# builds.
4917chmod -w .
4918save_CFLAGS="$CFLAGS"
4919CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4920compiler_c_o=no
4921if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4922  # The compiler can only warn and ignore the option if not recognized
4923  # So say no if there are warnings
4924  if test -s out/conftest.err; then
4925    lt_cv_compiler_c_o=no
4926  else
4927    lt_cv_compiler_c_o=yes
4928  fi
4929else
4930  # Append any errors to the config.log.
4931  cat out/conftest.err 1>&5
4932  lt_cv_compiler_c_o=no
4933fi
4934CFLAGS="$save_CFLAGS"
4935chmod u+w .
4936$rm conftest* out/*
4937rmdir out
4938cd ..
4939rmdir conftest
4940$rm -r conftest 2>/dev/null
4941
4942fi
4943
4944compiler_c_o=$lt_cv_compiler_c_o
4945echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4946echo "${ECHO_T}$compiler_c_o" >&6
4947
4948if test x"$compiler_c_o" = x"yes"; then
4949  # Check to see if we can write to a .lo
4950  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4951echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4952  if test "${lt_cv_compiler_o_lo+set}" = set; then
4953  echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955
4956  lt_cv_compiler_o_lo=no
4957  save_CFLAGS="$CFLAGS"
4958  CFLAGS="$CFLAGS -c -o conftest.lo"
4959  save_objext="$ac_objext"
4960  ac_objext=lo
4961  cat >conftest.$ac_ext <<_ACEOF
4962#line $LINENO "configure"
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968
4969int
4970main ()
4971{
4972int some_variable = 0;
4973  ;
4974  return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979  (eval $ac_compile) 2>&5
4980  ac_status=$?
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } &&
4983         { ac_try='test -s conftest.$ac_objext'
4984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985  (eval $ac_try) 2>&5
4986  ac_status=$?
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); }; }; then
4989      # The compiler can only warn and ignore the option if not recognized
4990    # So say no if there are warnings
4991    if test -s conftest.err; then
4992      lt_cv_compiler_o_lo=no
4993    else
4994      lt_cv_compiler_o_lo=yes
4995    fi
4996
4997else
4998  echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001fi
5002rm -f conftest.$ac_objext conftest.$ac_ext
5003  ac_objext="$save_objext"
5004  CFLAGS="$save_CFLAGS"
5005
5006fi
5007
5008  compiler_o_lo=$lt_cv_compiler_o_lo
5009  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5010echo "${ECHO_T}$compiler_o_lo" >&6
5011else
5012  compiler_o_lo=no
5013fi
5014
5015# Check to see if we can do hard links to lock some files if needed
5016hard_links="nottested"
5017if test "$compiler_c_o" = no && test "$need_locks" != no; then
5018  # do not overwrite the value of need_locks provided by the user
5019  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5020echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5021  hard_links=yes
5022  $rm conftest*
5023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5024  touch conftest.a
5025  ln conftest.a conftest.b 2>&5 || hard_links=no
5026  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5027  echo "$as_me:$LINENO: result: $hard_links" >&5
5028echo "${ECHO_T}$hard_links" >&6
5029  if test "$hard_links" = no; then
5030    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5031echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5032    need_locks=warn
5033  fi
5034else
5035  need_locks=no
5036fi
5037
5038if test "$GCC" = yes; then
5039  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5040  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5041echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5042  echo "int some_variable = 0;" > conftest.$ac_ext
5043  save_CFLAGS="$CFLAGS"
5044  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5045  compiler_rtti_exceptions=no
5046  cat >conftest.$ac_ext <<_ACEOF
5047#line $LINENO "configure"
5048/* confdefs.h.  */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h.  */
5053
5054int
5055main ()
5056{
5057int some_variable = 0;
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext
5063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064  (eval $ac_compile) 2>&5
5065  ac_status=$?
5066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067  (exit $ac_status); } &&
5068         { ac_try='test -s conftest.$ac_objext'
5069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070  (eval $ac_try) 2>&5
5071  ac_status=$?
5072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073  (exit $ac_status); }; }; then
5074      # The compiler can only warn and ignore the option if not recognized
5075    # So say no if there are warnings
5076    if test -s conftest.err; then
5077      compiler_rtti_exceptions=no
5078    else
5079      compiler_rtti_exceptions=yes
5080    fi
5081
5082else
5083  echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
5086fi
5087rm -f conftest.$ac_objext conftest.$ac_ext
5088  CFLAGS="$save_CFLAGS"
5089  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5090echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5091
5092  if test "$compiler_rtti_exceptions" = "yes"; then
5093    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5094  else
5095    no_builtin_flag=' -fno-builtin'
5096  fi
5097fi
5098
5099# See if the linker supports building shared libraries.
5100echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5101echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5102
5103allow_undefined_flag=
5104no_undefined_flag=
5105need_lib_prefix=unknown
5106need_version=unknown
5107# when you set need_version to no, make sure it does not cause -set_version
5108# flags to be left without arguments
5109archive_cmds=
5110archive_expsym_cmds=
5111old_archive_from_new_cmds=
5112old_archive_from_expsyms_cmds=
5113export_dynamic_flag_spec=
5114whole_archive_flag_spec=
5115thread_safe_flag_spec=
5116hardcode_into_libs=no
5117hardcode_libdir_flag_spec=
5118hardcode_libdir_separator=
5119hardcode_direct=no
5120hardcode_minus_L=no
5121hardcode_shlibpath_var=unsupported
5122runpath_var=
5123link_all_deplibs=unknown
5124always_export_symbols=no
5125export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5126# include_expsyms should be a list of space-separated symbols to be *always*
5127# included in the symbol list
5128include_expsyms=
5129# exclude_expsyms can be an egrep regular expression of symbols to exclude
5130# it will be wrapped by ` (' and `)$', so one must not match beginning or
5131# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5132# as well as any symbol that contains `d'.
5133exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5134# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5135# platforms (ab)use it in PIC code, but their linkers get confused if
5136# the symbol is explicitly referenced.  Since portable code cannot
5137# rely on this symbol name, it's probably fine to never include it in
5138# preloaded symbol tables.
5139extract_expsyms_cmds=
5140
5141case $host_os in
5142cygwin* | mingw* | pw32*)
5143  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5144  # When not using gcc, we currently assume that we are using
5145  # Microsoft Visual C++.
5146  if test "$GCC" != yes; then
5147    with_gnu_ld=no
5148  fi
5149  ;;
5150openbsd*)
5151  with_gnu_ld=no
5152  ;;
5153esac
5154
5155ld_shlibs=yes
5156if test "$with_gnu_ld" = yes; then
5157  # If archive_cmds runs LD, not CC, wlarc should be empty
5158  wlarc='${wl}'
5159
5160  # See if GNU ld supports shared libraries.
5161  case $host_os in
5162  aix3* | aix4* | aix5*)
5163    # On AIX, the GNU linker is very broken
5164    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5165    ld_shlibs=no
5166    cat <<EOF 1>&2
5167
5168*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5169*** to be unable to reliably create shared libraries on AIX.
5170*** Therefore, libtool is disabling shared libraries support.  If you
5171*** really care for shared libraries, you may want to modify your PATH
5172*** so that a non-GNU linker is found, and then restart.
5173
5174EOF
5175    ;;
5176
5177  amigaos*)
5178    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)'
5179    hardcode_libdir_flag_spec='-L$libdir'
5180    hardcode_minus_L=yes
5181
5182    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5183    # that the semantics of dynamic libraries on AmigaOS, at least up
5184    # to version 4, is to share data among multiple programs linked
5185    # with the same dynamic library.  Since this doesn't match the
5186    # behavior of shared libraries on other platforms, we can use
5187    # them.
5188    ld_shlibs=no
5189    ;;
5190
5191  beos*)
5192    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5193      allow_undefined_flag=unsupported
5194      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5195      # support --undefined.  This deserves some investigation.  FIXME
5196      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5197    else
5198      ld_shlibs=no
5199    fi
5200    ;;
5201
5202  cygwin* | mingw* | pw32*)
5203    # hardcode_libdir_flag_spec is actually meaningless, as there is
5204    # no search path for DLLs.
5205    hardcode_libdir_flag_spec='-L$libdir'
5206    allow_undefined_flag=unsupported
5207    always_export_symbols=yes
5208
5209    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5210      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5211      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5212      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5213      else $CC -o impgen impgen.c ; fi)~
5214      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5215
5216    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5217
5218    # cygwin and mingw dlls have different entry points and sets of symbols
5219    # to exclude.
5220    # FIXME: what about values for MSVC?
5221    dll_entry=__cygwin_dll_entry@12
5222    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5223    case $host_os in
5224    mingw*)
5225      # mingw values
5226      dll_entry=_DllMainCRTStartup@12
5227      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5228      ;;
5229    esac
5230
5231    # mingw and cygwin differ, and it's simplest to just exclude the union
5232    # of the two symbol sets.
5233    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5234
5235    # recent cygwin and mingw systems supply a stub DllMain which the user
5236    # can override, but on older systems we have to supply one (in ltdll.c)
5237    if test "x$lt_cv_need_dllmain" = "xyes"; then
5238      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5239      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5240	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5241    else
5242      ltdll_obj=
5243      ltdll_cmds=
5244    fi
5245
5246    # Extract the symbol export list from an `--export-all' def file,
5247    # then regenerate the def file from the symbol export list, so that
5248    # the compiled dll only exports the symbol export list.
5249    # Be careful not to strip the DATA tag left be newer dlltools.
5250    export_symbols_cmds="$ltdll_cmds"'
5251      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5252      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5253
5254    # If the export-symbols file already is a .def file (1st line
5255    # is EXPORTS), use it as is.
5256    # If DATA tags from a recent dlltool are present, honour them!
5257    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5258	cp $export_symbols $output_objdir/$soname-def;
5259      else
5260	echo EXPORTS > $output_objdir/$soname-def;
5261	_lt_hint=1;
5262	cat $export_symbols | while read symbol; do
5263	 set dummy \$symbol;
5264	 case \$# in
5265	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5266	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5267	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5268	 esac;
5269	 _lt_hint=`expr 1 + \$_lt_hint`;
5270	done;
5271      fi~
5272      '"$ltdll_cmds"'
5273      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5274      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5275      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5276      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5277      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5278    ;;
5279
5280  netbsd*)
5281    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5282      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5283      wlarc=
5284    else
5285      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5286      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5287    fi
5288    ;;
5289
5290  solaris* | sysv5*)
5291    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5292      ld_shlibs=no
5293      cat <<EOF 1>&2
5294
5295*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5296*** create shared libraries on Solaris systems.  Therefore, libtool
5297*** is disabling shared libraries support.  We urge you to upgrade GNU
5298*** binutils to release 2.9.1 or newer.  Another option is to modify
5299*** your PATH or compiler configuration so that the native linker is
5300*** used, and then restart.
5301
5302EOF
5303    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5304      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5305      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5306    else
5307      ld_shlibs=no
5308    fi
5309    ;;
5310
5311  sunos4*)
5312    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5313    wlarc=
5314    hardcode_direct=yes
5315    hardcode_shlibpath_var=no
5316    ;;
5317
5318  *)
5319    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5320      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5321      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5322    else
5323      ld_shlibs=no
5324    fi
5325    ;;
5326  esac
5327
5328  if test "$ld_shlibs" = yes; then
5329    runpath_var=LD_RUN_PATH
5330    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5331    export_dynamic_flag_spec='${wl}--export-dynamic'
5332    case $host_os in
5333    cygwin* | mingw* | pw32*)
5334      # dlltool doesn't understand --whole-archive et. al.
5335      whole_archive_flag_spec=
5336      ;;
5337    *)
5338      # ancient GNU ld didn't support --whole-archive et. al.
5339      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5340	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5341      else
5342	whole_archive_flag_spec=
5343      fi
5344      ;;
5345    esac
5346  fi
5347else
5348  # PORTME fill in a description of your system's linker (not GNU ld)
5349  case $host_os in
5350  aix3*)
5351    allow_undefined_flag=unsupported
5352    always_export_symbols=yes
5353    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'
5354    # Note: this linker hardcodes the directories in LIBPATH if there
5355    # are no directories specified by -L.
5356    hardcode_minus_L=yes
5357    if test "$GCC" = yes && test -z "$link_static_flag"; then
5358      # Neither direct hardcoding nor static linking is supported with a
5359      # broken collect2.
5360      hardcode_direct=unsupported
5361    fi
5362    ;;
5363
5364  aix4* | aix5*)
5365    if test "$host_cpu" = ia64; then
5366      # On IA64, the linker does run time linking by default, so we don't
5367      # have to do anything special.
5368      aix_use_runtimelinking=no
5369      exp_sym_flag='-Bexport'
5370      no_entry_flag=""
5371    else
5372      aix_use_runtimelinking=no
5373
5374      # Test if we are trying to use run time linking or normal
5375      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5376      # need to do runtime linking.
5377      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5378	for ld_flag in $LDFLAGS; do
5379	  case $ld_flag in
5380	  *-brtl*)
5381	    aix_use_runtimelinking=yes
5382	    break
5383	  ;;
5384	  esac
5385	done
5386      esac
5387
5388      exp_sym_flag='-bexport'
5389      no_entry_flag='-bnoentry'
5390    fi
5391
5392    # When large executables or shared objects are built, AIX ld can
5393    # have problems creating the table of contents.  If linking a library
5394    # or program results in "error TOC overflow" add -mminimal-toc to
5395    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5396    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5397
5398    hardcode_direct=yes
5399    archive_cmds=''
5400    hardcode_libdir_separator=':'
5401    if test "$GCC" = yes; then
5402      case $host_os in aix4.[012]|aix4.[012].*)
5403	collect2name=`${CC} -print-prog-name=collect2`
5404	if test -f "$collect2name" && \
5405	  strings "$collect2name" | grep resolve_lib_name >/dev/null
5406	then
5407	  # We have reworked collect2
5408	  hardcode_direct=yes
5409	else
5410	  # We have old collect2
5411	  hardcode_direct=unsupported
5412	  # It fails to find uninstalled libraries when the uninstalled
5413	  # path is not listed in the libpath.  Setting hardcode_minus_L
5414	  # to unsupported forces relinking
5415	  hardcode_minus_L=yes
5416	  hardcode_libdir_flag_spec='-L$libdir'
5417	  hardcode_libdir_separator=
5418	fi
5419      esac
5420
5421      shared_flag='-shared'
5422    else
5423      # not using gcc
5424      if test "$host_cpu" = ia64; then
5425	shared_flag='${wl}-G'
5426      else
5427	if test "$aix_use_runtimelinking" = yes; then
5428	  shared_flag='${wl}-G'
5429	else
5430	  shared_flag='${wl}-bM:SRE'
5431	fi
5432      fi
5433    fi
5434
5435    # It seems that -bexpall can do strange things, so it is better to
5436    # generate a list of symbols to export.
5437    always_export_symbols=yes
5438    if test "$aix_use_runtimelinking" = yes; then
5439      # Warning - without using the other runtime loading flags (-brtl),
5440      # -berok will link without error, but may produce a broken library.
5441      allow_undefined_flag='-berok'
5442      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5443      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5444    else
5445      if test "$host_cpu" = ia64; then
5446	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5447	allow_undefined_flag="-z nodefs"
5448	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5449      else
5450	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5451	# Warning - without using the other run time loading flags,
5452	# -berok will link without error, but may produce a broken library.
5453	allow_undefined_flag='${wl}-berok'
5454	# This is a bit strange, but is similar to how AIX traditionally builds
5455	# it's shared libraries.
5456	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5457      fi
5458    fi
5459    ;;
5460
5461  amigaos*)
5462    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)'
5463    hardcode_libdir_flag_spec='-L$libdir'
5464    hardcode_minus_L=yes
5465    # see comment about different semantics on the GNU ld section
5466    ld_shlibs=no
5467    ;;
5468
5469  cygwin* | mingw* | pw32*)
5470    # When not using gcc, we currently assume that we are using
5471    # Microsoft Visual C++.
5472    # hardcode_libdir_flag_spec is actually meaningless, as there is
5473    # no search path for DLLs.
5474    hardcode_libdir_flag_spec=' '
5475    allow_undefined_flag=unsupported
5476    # Tell ltmain to make .lib files, not .a files.
5477    libext=lib
5478    # FIXME: Setting linknames here is a bad hack.
5479    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5480    # The linker will automatically build a .lib file if we build a DLL.
5481    old_archive_from_new_cmds='true'
5482    # FIXME: Should let the user specify the lib program.
5483    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5484    fix_srcfile_path='`cygpath -w "$srcfile"`'
5485    ;;
5486
5487  darwin* | rhapsody*)
5488    case "$host_os" in
5489    rhapsody* | darwin1.[012])
5490      allow_undefined_flag='-undefined suppress'
5491      ;;
5492    *) # Darwin 1.3 on
5493      allow_undefined_flag='-flat_namespace -undefined suppress'
5494      ;;
5495    esac
5496    # FIXME: Relying on posixy $() will cause problems for
5497    #        cross-compilation, but unfortunately the echo tests do not
5498    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5499    #	     `"' quotes if we put them in here... so don't!
5500    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5501    # We need to add '_' to the symbols in $export_symbols first
5502    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5503    hardcode_direct=yes
5504    hardcode_shlibpath_var=no
5505    whole_archive_flag_spec='-all_load $convenience'
5506    ;;
5507
5508  freebsd1*)
5509    ld_shlibs=no
5510    ;;
5511
5512  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5513  # support.  Future versions do this automatically, but an explicit c++rt0.o
5514  # does not break anything, and helps significantly (at the cost of a little
5515  # extra space).
5516  freebsd2.2*)
5517    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5518    hardcode_libdir_flag_spec='-R$libdir'
5519    hardcode_direct=yes
5520    hardcode_shlibpath_var=no
5521    ;;
5522
5523  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5524  freebsd2*)
5525    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5526    hardcode_direct=yes
5527    hardcode_minus_L=yes
5528    hardcode_shlibpath_var=no
5529    ;;
5530
5531  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5532  freebsd*)
5533    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5534    hardcode_libdir_flag_spec='-R$libdir'
5535    hardcode_direct=yes
5536    hardcode_shlibpath_var=no
5537    ;;
5538
5539  hpux9* | hpux10* | hpux11*)
5540    case $host_os in
5541    hpux9*) 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' ;;
5542    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5543    esac
5544    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5545    hardcode_libdir_separator=:
5546    hardcode_direct=yes
5547    hardcode_minus_L=yes # Not in the search PATH, but as the default
5548			 # location of the library.
5549    export_dynamic_flag_spec='${wl}-E'
5550    ;;
5551
5552  irix5* | irix6* | nonstopux*)
5553    if test "$GCC" = yes; then
5554      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'
5555      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5556    else
5557      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'
5558      hardcode_libdir_flag_spec='-rpath $libdir'
5559    fi
5560    hardcode_libdir_separator=:
5561    link_all_deplibs=yes
5562    ;;
5563
5564  netbsd*)
5565    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5566      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5567    else
5568      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5569    fi
5570    hardcode_libdir_flag_spec='-R$libdir'
5571    hardcode_direct=yes
5572    hardcode_shlibpath_var=no
5573    ;;
5574
5575  newsos6)
5576    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5577    hardcode_direct=yes
5578    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5579    hardcode_libdir_separator=:
5580    hardcode_shlibpath_var=no
5581    ;;
5582
5583  openbsd*)
5584    hardcode_direct=yes
5585    hardcode_shlibpath_var=no
5586    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5587      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5588      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5589      export_dynamic_flag_spec='${wl}-E'
5590    else
5591      case "$host_os" in
5592      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5593	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5594	hardcode_libdir_flag_spec='-R$libdir'
5595        ;;
5596      *)
5597        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5598        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5599        ;;
5600      esac
5601    fi
5602    ;;
5603
5604  os2*)
5605    hardcode_libdir_flag_spec='-L$libdir'
5606    hardcode_minus_L=yes
5607    allow_undefined_flag=unsupported
5608    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'
5609    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5610    ;;
5611
5612  osf3*)
5613    if test "$GCC" = yes; then
5614      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5615      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'
5616    else
5617      allow_undefined_flag=' -expect_unresolved \*'
5618      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'
5619    fi
5620    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5621    hardcode_libdir_separator=:
5622    ;;
5623
5624  osf4* | osf5*)	# as osf3* with the addition of -msym flag
5625    if test "$GCC" = yes; then
5626      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5627      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'
5628      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5629    else
5630      allow_undefined_flag=' -expect_unresolved \*'
5631      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'
5632      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5633      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5634
5635      #Both c and cxx compiler support -rpath directly
5636      hardcode_libdir_flag_spec='-rpath $libdir'
5637    fi
5638    hardcode_libdir_separator=:
5639    ;;
5640
5641  sco3.2v5*)
5642    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5643    hardcode_shlibpath_var=no
5644    runpath_var=LD_RUN_PATH
5645    hardcode_runpath_var=yes
5646    export_dynamic_flag_spec='${wl}-Bexport'
5647    ;;
5648
5649  solaris*)
5650    # gcc --version < 3.0 without binutils cannot create self contained
5651    # shared libraries reliably, requiring libgcc.a to resolve some of
5652    # the object symbols generated in some cases.  Libraries that use
5653    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5654    # a copy of libgcc.a into every shared library to guarantee resolving
5655    # such symbols causes other problems:  According to Tim Van Holder
5656    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5657    # (to the application) exception stack for one thing.
5658    no_undefined_flag=' -z defs'
5659    if test "$GCC" = yes; then
5660      case `$CC --version 2>/dev/null` in
5661      [12].*)
5662	cat <<EOF 1>&2
5663
5664*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5665*** create self contained shared libraries on Solaris systems, without
5666*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5667*** -no-undefined support, which will at least allow you to build shared
5668*** libraries.  However, you may find that when you link such libraries
5669*** into an application without using GCC, you have to manually add
5670*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5671*** upgrade to a newer version of GCC.  Another option is to rebuild your
5672*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5673
5674EOF
5675        no_undefined_flag=
5676	;;
5677      esac
5678    fi
5679    # $CC -shared without GNU ld will not create a library from C++
5680    # object files and a static libstdc++, better avoid it by now
5681    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5682    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5683		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5684    hardcode_libdir_flag_spec='-R$libdir'
5685    hardcode_shlibpath_var=no
5686    case $host_os in
5687    solaris2.[0-5] | solaris2.[0-5].*) ;;
5688    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5689      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5690    esac
5691    link_all_deplibs=yes
5692    ;;
5693
5694  sunos4*)
5695    if test "x$host_vendor" = xsequent; then
5696      # Use $CC to link under sequent, because it throws in some extra .o
5697      # files that make .init and .fini sections work.
5698      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5699    else
5700      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5701    fi
5702    hardcode_libdir_flag_spec='-L$libdir'
5703    hardcode_direct=yes
5704    hardcode_minus_L=yes
5705    hardcode_shlibpath_var=no
5706    ;;
5707
5708  sysv4)
5709    case $host_vendor in
5710      sni)
5711        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5712        hardcode_direct=yes # is this really true???
5713        ;;
5714      siemens)
5715        ## LD is ld it makes a PLAMLIB
5716        ## CC just makes a GrossModule.
5717        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5718        reload_cmds='$CC -r -o $output$reload_objs'
5719        hardcode_direct=no
5720        ;;
5721      motorola)
5722        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5723        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5724        ;;
5725    esac
5726    runpath_var='LD_RUN_PATH'
5727    hardcode_shlibpath_var=no
5728    ;;
5729
5730  sysv4.3*)
5731    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5732    hardcode_shlibpath_var=no
5733    export_dynamic_flag_spec='-Bexport'
5734    ;;
5735
5736  sysv5*)
5737    no_undefined_flag=' -z text'
5738    # $CC -shared without GNU ld will not create a library from C++
5739    # object files and a static libstdc++, better avoid it by now
5740    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5741    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5742		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5743    hardcode_libdir_flag_spec=
5744    hardcode_shlibpath_var=no
5745    runpath_var='LD_RUN_PATH'
5746    ;;
5747
5748  uts4*)
5749    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5750    hardcode_libdir_flag_spec='-L$libdir'
5751    hardcode_shlibpath_var=no
5752    ;;
5753
5754  dgux*)
5755    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5756    hardcode_libdir_flag_spec='-L$libdir'
5757    hardcode_shlibpath_var=no
5758    ;;
5759
5760  sysv4*MP*)
5761    if test -d /usr/nec; then
5762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5763      hardcode_shlibpath_var=no
5764      runpath_var=LD_RUN_PATH
5765      hardcode_runpath_var=yes
5766      ld_shlibs=yes
5767    fi
5768    ;;
5769
5770  sysv4.2uw2*)
5771    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5772    hardcode_direct=yes
5773    hardcode_minus_L=no
5774    hardcode_shlibpath_var=no
5775    hardcode_runpath_var=yes
5776    runpath_var=LD_RUN_PATH
5777    ;;
5778
5779  sysv5uw7* | unixware7*)
5780    no_undefined_flag='${wl}-z ${wl}text'
5781    if test "$GCC" = yes; then
5782      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5783    else
5784      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5785    fi
5786    runpath_var='LD_RUN_PATH'
5787    hardcode_shlibpath_var=no
5788    ;;
5789
5790  *)
5791    ld_shlibs=no
5792    ;;
5793  esac
5794fi
5795echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5796echo "${ECHO_T}$ld_shlibs" >&6
5797test "$ld_shlibs" = no && can_build_shared=no
5798
5799# Check hardcoding attributes.
5800echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5801echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5802hardcode_action=
5803if test -n "$hardcode_libdir_flag_spec" || \
5804   test -n "$runpath_var"; then
5805
5806  # We can hardcode non-existant directories.
5807  if test "$hardcode_direct" != no &&
5808     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5809     # have to relink, otherwise we might link with an installed library
5810     # when we should be linking with a yet-to-be-installed one
5811     ## test "$hardcode_shlibpath_var" != no &&
5812     test "$hardcode_minus_L" != no; then
5813    # Linking always hardcodes the temporary library directory.
5814    hardcode_action=relink
5815  else
5816    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5817    hardcode_action=immediate
5818  fi
5819else
5820  # We cannot hardcode anything, or else we can only hardcode existing
5821  # directories.
5822  hardcode_action=unsupported
5823fi
5824echo "$as_me:$LINENO: result: $hardcode_action" >&5
5825echo "${ECHO_T}$hardcode_action" >&6
5826
5827striplib=
5828old_striplib=
5829echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5830echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5831if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5832  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5833  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5834  echo "$as_me:$LINENO: result: yes" >&5
5835echo "${ECHO_T}yes" >&6
5836else
5837  echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6
5839fi
5840
5841reload_cmds='$LD$reload_flag -o $output$reload_objs'
5842test -z "$deplibs_check_method" && deplibs_check_method=unknown
5843
5844# PORTME Fill in your ld.so characteristics
5845echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5846echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5847library_names_spec=
5848libname_spec='lib$name'
5849soname_spec=
5850postinstall_cmds=
5851postuninstall_cmds=
5852finish_cmds=
5853finish_eval=
5854shlibpath_var=
5855shlibpath_overrides_runpath=unknown
5856version_type=none
5857dynamic_linker="$host_os ld.so"
5858sys_lib_dlsearch_path_spec="/lib /usr/lib"
5859sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5860
5861case $host_os in
5862aix3*)
5863  version_type=linux
5864  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5865  shlibpath_var=LIBPATH
5866
5867  # AIX has no versioning support, so we append a major version to the name.
5868  soname_spec='${libname}${release}.so$major'
5869  ;;
5870
5871aix4* | aix5*)
5872  version_type=linux
5873  need_lib_prefix=no
5874  need_version=no
5875  hardcode_into_libs=yes
5876  if test "$host_cpu" = ia64; then
5877    # AIX 5 supports IA64
5878    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5879    shlibpath_var=LD_LIBRARY_PATH
5880  else
5881    # With GCC up to 2.95.x, collect2 would create an import file
5882    # for dependence libraries.  The import file would start with
5883    # the line `#! .'.  This would cause the generated library to
5884    # depend on `.', always an invalid library.  This was fixed in
5885    # development snapshots of GCC prior to 3.0.
5886    case $host_os in
5887      aix4 | aix4.[01] | aix4.[01].*)
5888	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5889	     echo ' yes '
5890	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5891	  :
5892	else
5893	  can_build_shared=no
5894	fi
5895	;;
5896    esac
5897    # AIX (on Power*) has no versioning support, so currently we can
5898    # not hardcode correct soname into executable. Probably we can
5899    # add versioning support to collect2, so additional links can
5900    # be useful in future.
5901    if test "$aix_use_runtimelinking" = yes; then
5902      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5903      # instead of lib<name>.a to let people know that these are not
5904      # typical AIX shared libraries.
5905      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5906    else
5907      # We preserve .a as extension for shared libraries through AIX4.2
5908      # and later when we are not doing run time linking.
5909      library_names_spec='${libname}${release}.a $libname.a'
5910      soname_spec='${libname}${release}.so$major'
5911    fi
5912    shlibpath_var=LIBPATH
5913  fi
5914  hardcode_into_libs=yes
5915  ;;
5916
5917amigaos*)
5918  library_names_spec='$libname.ixlibrary $libname.a'
5919  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5920  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'
5921  ;;
5922
5923beos*)
5924  library_names_spec='${libname}.so'
5925  dynamic_linker="$host_os ld.so"
5926  shlibpath_var=LIBRARY_PATH
5927  ;;
5928
5929bsdi4*)
5930  version_type=linux
5931  need_version=no
5932  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5933  soname_spec='${libname}${release}.so$major'
5934  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5935  shlibpath_var=LD_LIBRARY_PATH
5936  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5937  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5938  export_dynamic_flag_spec=-rdynamic
5939  # the default ld.so.conf also contains /usr/contrib/lib and
5940  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5941  # libtool to hard-code these into programs
5942  ;;
5943
5944cygwin* | mingw* | pw32*)
5945  version_type=windows
5946  need_version=no
5947  need_lib_prefix=no
5948  case $GCC,$host_os in
5949  yes,cygwin*)
5950    library_names_spec='$libname.dll.a'
5951    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5952    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5953      dldir=$destdir/`dirname \$dlpath`~
5954      test -d \$dldir || mkdir -p \$dldir~
5955      $install_prog .libs/$dlname \$dldir/$dlname'
5956    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5957      dlpath=$dir/\$dldll~
5958       $rm \$dlpath'
5959    ;;
5960  yes,mingw*)
5961    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5962    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5963    ;;
5964  yes,pw32*)
5965    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5966    ;;
5967  *)
5968    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5969    ;;
5970  esac
5971  dynamic_linker='Win32 ld.exe'
5972  # FIXME: first we should search . and the directory the executable is in
5973  shlibpath_var=PATH
5974  ;;
5975
5976darwin* | rhapsody*)
5977  dynamic_linker="$host_os dyld"
5978  version_type=darwin
5979  need_lib_prefix=no
5980  need_version=no
5981  # FIXME: Relying on posixy $() will cause problems for
5982  #        cross-compilation, but unfortunately the echo tests do not
5983  #        yet detect zsh echo's removal of \ escapes.
5984  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5985  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5986  shlibpath_overrides_runpath=yes
5987  shlibpath_var=DYLD_LIBRARY_PATH
5988  ;;
5989
5990freebsd1*)
5991  dynamic_linker=no
5992  ;;
5993
5994freebsd*-gnu*)
5995  version_type=linux
5996  need_lib_prefix=no
5997  need_version=no
5998  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5999  soname_spec='${libname}${release}.so$major'
6000  shlibpath_var=LD_LIBRARY_PATH
6001  shlibpath_overrides_runpath=no
6002  hardcode_into_libs=yes
6003  dynamic_linker='GNU/FreeBSD ld.so'
6004  ;;
6005
6006freebsd*)
6007  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6008  version_type=freebsd-$objformat
6009  case $version_type in
6010    freebsd-elf*)
6011      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6012      need_version=no
6013      need_lib_prefix=no
6014      ;;
6015    freebsd-*)
6016      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6017      need_version=yes
6018      ;;
6019  esac
6020  shlibpath_var=LD_LIBRARY_PATH
6021  case $host_os in
6022  freebsd2*)
6023    shlibpath_overrides_runpath=yes
6024    ;;
6025  *)
6026    shlibpath_overrides_runpath=no
6027    hardcode_into_libs=yes
6028    ;;
6029  esac
6030  ;;
6031
6032gnu*)
6033  version_type=linux
6034  need_lib_prefix=no
6035  need_version=no
6036  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6037  soname_spec='${libname}${release}.so$major'
6038  shlibpath_var=LD_LIBRARY_PATH
6039  hardcode_into_libs=yes
6040  ;;
6041
6042hpux9* | hpux10* | hpux11*)
6043  # Give a soname corresponding to the major version so that dld.sl refuses to
6044  # link against other versions.
6045  dynamic_linker="$host_os dld.sl"
6046  version_type=sunos
6047  need_lib_prefix=no
6048  need_version=no
6049  shlibpath_var=SHLIB_PATH
6050  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6051  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6052  soname_spec='${libname}${release}.sl$major'
6053  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6054  postinstall_cmds='chmod 555 $lib'
6055  ;;
6056
6057irix5* | irix6* | nonstopux*)
6058  case $host_os in
6059    nonstopux*) version_type=nonstopux ;;
6060    *)          version_type=irix ;;
6061  esac
6062  need_lib_prefix=no
6063  need_version=no
6064  soname_spec='${libname}${release}.so$major'
6065  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6066  case $host_os in
6067  irix5* | nonstopux*)
6068    libsuff= shlibsuff=
6069    ;;
6070  *)
6071    case $LD in # libtool.m4 will add one of these switches to LD
6072    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6073    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6074    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6075    *) libsuff= shlibsuff= libmagic=never-match;;
6076    esac
6077    ;;
6078  esac
6079  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6080  shlibpath_overrides_runpath=no
6081  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6082  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6083  ;;
6084
6085# No shared lib support for Linux oldld, aout, or coff.
6086linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6087  dynamic_linker=no
6088  ;;
6089
6090# This must be Linux ELF.
6091linux-gnu*)
6092  version_type=linux
6093  need_lib_prefix=no
6094  need_version=no
6095  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6096  soname_spec='${libname}${release}.so$major'
6097  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6098  shlibpath_var=LD_LIBRARY_PATH
6099  shlibpath_overrides_runpath=no
6100  # This implies no fast_install, which is unacceptable.
6101  # Some rework will be needed to allow for fast_install
6102  # before this can be enabled.
6103  hardcode_into_libs=yes
6104
6105  # We used to test for /lib/ld.so.1 and disable shared libraries on
6106  # powerpc, because MkLinux only supported shared libraries with the
6107  # GNU dynamic linker.  Since this was broken with cross compilers,
6108  # most powerpc-linux boxes support dynamic linking these days and
6109  # people can always --disable-shared, the test was removed, and we
6110  # assume the GNU/Linux dynamic linker is in use.
6111  dynamic_linker='GNU/Linux ld.so'
6112  ;;
6113
6114netbsd*)
6115  version_type=sunos
6116  need_lib_prefix=no
6117  need_version=no
6118  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6119    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6120    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6121    dynamic_linker='NetBSD (a.out) ld.so'
6122  else
6123    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6124    soname_spec='${libname}${release}.so$major'
6125    dynamic_linker='NetBSD ld.elf_so'
6126  fi
6127  shlibpath_var=LD_LIBRARY_PATH
6128  shlibpath_overrides_runpath=yes
6129  hardcode_into_libs=yes
6130  ;;
6131
6132newsos6)
6133  version_type=linux
6134  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6135  shlibpath_var=LD_LIBRARY_PATH
6136  shlibpath_overrides_runpath=yes
6137  ;;
6138
6139openbsd*)
6140  version_type=sunos
6141  need_lib_prefix=no
6142  need_version=no
6143  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6144    case "$host_os" in
6145    openbsd2.[89] | openbsd2.[89].*)
6146      shlibpath_overrides_runpath=no
6147      ;;
6148    *)
6149      shlibpath_overrides_runpath=yes
6150      ;;
6151    esac
6152  else
6153    shlibpath_overrides_runpath=yes
6154  fi
6155  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6156  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6157  shlibpath_var=LD_LIBRARY_PATH
6158  ;;
6159
6160os2*)
6161  libname_spec='$name'
6162  need_lib_prefix=no
6163  library_names_spec='$libname.dll $libname.a'
6164  dynamic_linker='OS/2 ld.exe'
6165  shlibpath_var=LIBPATH
6166  ;;
6167
6168osf3* | osf4* | osf5*)
6169  version_type=osf
6170  need_version=no
6171  need_lib_prefix=no
6172  soname_spec='${libname}${release}.so$major'
6173  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6174  shlibpath_var=LD_LIBRARY_PATH
6175  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6176  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6177  hardcode_into_libs=yes
6178  ;;
6179
6180sco3.2v5*)
6181  version_type=osf
6182  soname_spec='${libname}${release}.so$major'
6183  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6184  shlibpath_var=LD_LIBRARY_PATH
6185  ;;
6186
6187solaris*)
6188  version_type=linux
6189  need_lib_prefix=no
6190  need_version=no
6191  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6192  soname_spec='${libname}${release}.so$major'
6193  shlibpath_var=LD_LIBRARY_PATH
6194  shlibpath_overrides_runpath=yes
6195  hardcode_into_libs=yes
6196  # ldd complains unless libraries are executable
6197  postinstall_cmds='chmod +x $lib'
6198  ;;
6199
6200sunos4*)
6201  version_type=sunos
6202  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6203  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6204  shlibpath_var=LD_LIBRARY_PATH
6205  shlibpath_overrides_runpath=yes
6206  if test "$with_gnu_ld" = yes; then
6207    need_lib_prefix=no
6208  fi
6209  need_version=yes
6210  ;;
6211
6212sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6213  version_type=linux
6214  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6215  soname_spec='${libname}${release}.so$major'
6216  shlibpath_var=LD_LIBRARY_PATH
6217  case $host_vendor in
6218    sni)
6219      shlibpath_overrides_runpath=no
6220      need_lib_prefix=no
6221      export_dynamic_flag_spec='${wl}-Blargedynsym'
6222      runpath_var=LD_RUN_PATH
6223      ;;
6224    siemens)
6225      need_lib_prefix=no
6226      ;;
6227    motorola)
6228      need_lib_prefix=no
6229      need_version=no
6230      shlibpath_overrides_runpath=no
6231      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6232      ;;
6233  esac
6234  ;;
6235
6236uts4*)
6237  version_type=linux
6238  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6239  soname_spec='${libname}${release}.so$major'
6240  shlibpath_var=LD_LIBRARY_PATH
6241  ;;
6242
6243dgux*)
6244  version_type=linux
6245  need_lib_prefix=no
6246  need_version=no
6247  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6248  soname_spec='${libname}${release}.so$major'
6249  shlibpath_var=LD_LIBRARY_PATH
6250  ;;
6251
6252sysv4*MP*)
6253  if test -d /usr/nec ;then
6254    version_type=linux
6255    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6256    soname_spec='$libname.so.$major'
6257    shlibpath_var=LD_LIBRARY_PATH
6258  fi
6259  ;;
6260
6261*)
6262  dynamic_linker=no
6263  ;;
6264esac
6265echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6266echo "${ECHO_T}$dynamic_linker" >&6
6267test "$dynamic_linker" = no && can_build_shared=no
6268
6269# Report the final consequences.
6270echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6271echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6272echo "$as_me:$LINENO: result: $can_build_shared" >&5
6273echo "${ECHO_T}$can_build_shared" >&6
6274
6275echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6276echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6277test "$can_build_shared" = "no" && enable_shared=no
6278
6279# On AIX, shared libraries and static libraries use the same namespace, and
6280# are all built from PIC.
6281case "$host_os" in
6282aix3*)
6283  test "$enable_shared" = yes && enable_static=no
6284  if test -n "$RANLIB"; then
6285    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6286    postinstall_cmds='$RANLIB $lib'
6287  fi
6288  ;;
6289
6290aix4*)
6291  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6292    test "$enable_shared" = yes && enable_static=no
6293  fi
6294  ;;
6295esac
6296echo "$as_me:$LINENO: result: $enable_shared" >&5
6297echo "${ECHO_T}$enable_shared" >&6
6298
6299echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6300echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6301# Make sure either enable_shared or enable_static is yes.
6302test "$enable_shared" = yes || enable_static=yes
6303echo "$as_me:$LINENO: result: $enable_static" >&5
6304echo "${ECHO_T}$enable_static" >&6
6305
6306if test "$hardcode_action" = relink; then
6307  # Fast installation is not supported
6308  enable_fast_install=no
6309elif test "$shlibpath_overrides_runpath" = yes ||
6310     test "$enable_shared" = no; then
6311  # Fast installation is not necessary
6312  enable_fast_install=needless
6313fi
6314
6315variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6316if test "$GCC" = yes; then
6317  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6318fi
6319
6320if test "x$enable_dlopen" != xyes; then
6321  enable_dlopen=unknown
6322  enable_dlopen_self=unknown
6323  enable_dlopen_self_static=unknown
6324else
6325  lt_cv_dlopen=no
6326  lt_cv_dlopen_libs=
6327
6328  case $host_os in
6329  beos*)
6330    lt_cv_dlopen="load_add_on"
6331    lt_cv_dlopen_libs=
6332    lt_cv_dlopen_self=yes
6333    ;;
6334
6335  cygwin* | mingw* | pw32*)
6336    lt_cv_dlopen="LoadLibrary"
6337    lt_cv_dlopen_libs=
6338   ;;
6339
6340  *)
6341    echo "$as_me:$LINENO: checking for shl_load" >&5
6342echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6343if test "${ac_cv_func_shl_load+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346  cat >conftest.$ac_ext <<_ACEOF
6347#line $LINENO "configure"
6348/* confdefs.h.  */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h.  */
6353/* System header to define __stub macros and hopefully few prototypes,
6354    which can conflict with char shl_load (); below.
6355    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6356    <limits.h> exists even on freestanding compilers.  */
6357#ifdef __STDC__
6358# include <limits.h>
6359#else
6360# include <assert.h>
6361#endif
6362/* Override any gcc2 internal prototype to avoid an error.  */
6363#ifdef __cplusplus
6364extern "C"
6365{
6366#endif
6367/* We use char because int might match the return type of a gcc2
6368   builtin and then its argument prototype would still apply.  */
6369char shl_load ();
6370/* The GNU C library defines this for functions which it implements
6371    to always fail with ENOSYS.  Some functions are actually named
6372    something starting with __ and the normal name is an alias.  */
6373#if defined (__stub_shl_load) || defined (__stub___shl_load)
6374choke me
6375#else
6376char (*f) () = shl_load;
6377#endif
6378#ifdef __cplusplus
6379}
6380#endif
6381
6382int
6383main ()
6384{
6385return f != shl_load;
6386  ;
6387  return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext conftest$ac_exeext
6391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392  (eval $ac_link) 2>&5
6393  ac_status=$?
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); } &&
6396         { ac_try='test -s conftest$ac_exeext'
6397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398  (eval $ac_try) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; }; then
6402  ac_cv_func_shl_load=yes
6403else
6404  echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407ac_cv_func_shl_load=no
6408fi
6409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6410fi
6411echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6412echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6413if test $ac_cv_func_shl_load = yes; then
6414  lt_cv_dlopen="shl_load"
6415else
6416  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6417echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6418if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  ac_check_lib_save_LIBS=$LIBS
6422LIBS="-ldld  $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
6424#line $LINENO "configure"
6425/* confdefs.h.  */
6426_ACEOF
6427cat confdefs.h >>conftest.$ac_ext
6428cat >>conftest.$ac_ext <<_ACEOF
6429/* end confdefs.h.  */
6430
6431/* Override any gcc2 internal prototype to avoid an error.  */
6432#ifdef __cplusplus
6433extern "C"
6434#endif
6435/* We use char because int might match the return type of a gcc2
6436   builtin and then its argument prototype would still apply.  */
6437char shl_load ();
6438int
6439main ()
6440{
6441shl_load ();
6442  ;
6443  return 0;
6444}
6445_ACEOF
6446rm -f conftest.$ac_objext conftest$ac_exeext
6447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448  (eval $ac_link) 2>&5
6449  ac_status=$?
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); } &&
6452         { ac_try='test -s conftest$ac_exeext'
6453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454  (eval $ac_try) 2>&5
6455  ac_status=$?
6456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457  (exit $ac_status); }; }; then
6458  ac_cv_lib_dld_shl_load=yes
6459else
6460  echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463ac_cv_lib_dld_shl_load=no
6464fi
6465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6466LIBS=$ac_check_lib_save_LIBS
6467fi
6468echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6469echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6470if test $ac_cv_lib_dld_shl_load = yes; then
6471  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6472else
6473  echo "$as_me:$LINENO: checking for dlopen" >&5
6474echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6475if test "${ac_cv_func_dlopen+set}" = set; then
6476  echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
6478  cat >conftest.$ac_ext <<_ACEOF
6479#line $LINENO "configure"
6480/* confdefs.h.  */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h.  */
6485/* System header to define __stub macros and hopefully few prototypes,
6486    which can conflict with char dlopen (); below.
6487    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6488    <limits.h> exists even on freestanding compilers.  */
6489#ifdef __STDC__
6490# include <limits.h>
6491#else
6492# include <assert.h>
6493#endif
6494/* Override any gcc2 internal prototype to avoid an error.  */
6495#ifdef __cplusplus
6496extern "C"
6497{
6498#endif
6499/* We use char because int might match the return type of a gcc2
6500   builtin and then its argument prototype would still apply.  */
6501char dlopen ();
6502/* The GNU C library defines this for functions which it implements
6503    to always fail with ENOSYS.  Some functions are actually named
6504    something starting with __ and the normal name is an alias.  */
6505#if defined (__stub_dlopen) || defined (__stub___dlopen)
6506choke me
6507#else
6508char (*f) () = dlopen;
6509#endif
6510#ifdef __cplusplus
6511}
6512#endif
6513
6514int
6515main ()
6516{
6517return f != dlopen;
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522rm -f conftest.$ac_objext conftest$ac_exeext
6523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524  (eval $ac_link) 2>&5
6525  ac_status=$?
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } &&
6528         { ac_try='test -s conftest$ac_exeext'
6529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530  (eval $ac_try) 2>&5
6531  ac_status=$?
6532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533  (exit $ac_status); }; }; then
6534  ac_cv_func_dlopen=yes
6535else
6536  echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539ac_cv_func_dlopen=no
6540fi
6541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6542fi
6543echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6544echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6545if test $ac_cv_func_dlopen = yes; then
6546  lt_cv_dlopen="dlopen"
6547else
6548  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6549echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6550if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6551  echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553  ac_check_lib_save_LIBS=$LIBS
6554LIBS="-ldl  $LIBS"
6555cat >conftest.$ac_ext <<_ACEOF
6556#line $LINENO "configure"
6557/* confdefs.h.  */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
6561/* end confdefs.h.  */
6562
6563/* Override any gcc2 internal prototype to avoid an error.  */
6564#ifdef __cplusplus
6565extern "C"
6566#endif
6567/* We use char because int might match the return type of a gcc2
6568   builtin and then its argument prototype would still apply.  */
6569char dlopen ();
6570int
6571main ()
6572{
6573dlopen ();
6574  ;
6575  return 0;
6576}
6577_ACEOF
6578rm -f conftest.$ac_objext conftest$ac_exeext
6579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580  (eval $ac_link) 2>&5
6581  ac_status=$?
6582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583  (exit $ac_status); } &&
6584         { ac_try='test -s conftest$ac_exeext'
6585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586  (eval $ac_try) 2>&5
6587  ac_status=$?
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); }; }; then
6590  ac_cv_lib_dl_dlopen=yes
6591else
6592  echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595ac_cv_lib_dl_dlopen=no
6596fi
6597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS
6599fi
6600echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6601echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6602if test $ac_cv_lib_dl_dlopen = yes; then
6603  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6604else
6605  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6606echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6607if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6608  echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610  ac_check_lib_save_LIBS=$LIBS
6611LIBS="-lsvld  $LIBS"
6612cat >conftest.$ac_ext <<_ACEOF
6613#line $LINENO "configure"
6614/* confdefs.h.  */
6615_ACEOF
6616cat confdefs.h >>conftest.$ac_ext
6617cat >>conftest.$ac_ext <<_ACEOF
6618/* end confdefs.h.  */
6619
6620/* Override any gcc2 internal prototype to avoid an error.  */
6621#ifdef __cplusplus
6622extern "C"
6623#endif
6624/* We use char because int might match the return type of a gcc2
6625   builtin and then its argument prototype would still apply.  */
6626char dlopen ();
6627int
6628main ()
6629{
6630dlopen ();
6631  ;
6632  return 0;
6633}
6634_ACEOF
6635rm -f conftest.$ac_objext conftest$ac_exeext
6636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637  (eval $ac_link) 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); } &&
6641         { ac_try='test -s conftest$ac_exeext'
6642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643  (eval $ac_try) 2>&5
6644  ac_status=$?
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); }; }; then
6647  ac_cv_lib_svld_dlopen=yes
6648else
6649  echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652ac_cv_lib_svld_dlopen=no
6653fi
6654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6655LIBS=$ac_check_lib_save_LIBS
6656fi
6657echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6658echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6659if test $ac_cv_lib_svld_dlopen = yes; then
6660  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6661else
6662  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6663echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6664if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6665  echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667  ac_check_lib_save_LIBS=$LIBS
6668LIBS="-ldld  $LIBS"
6669cat >conftest.$ac_ext <<_ACEOF
6670#line $LINENO "configure"
6671/* confdefs.h.  */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h.  */
6676
6677/* Override any gcc2 internal prototype to avoid an error.  */
6678#ifdef __cplusplus
6679extern "C"
6680#endif
6681/* We use char because int might match the return type of a gcc2
6682   builtin and then its argument prototype would still apply.  */
6683char dld_link ();
6684int
6685main ()
6686{
6687dld_link ();
6688  ;
6689  return 0;
6690}
6691_ACEOF
6692rm -f conftest.$ac_objext conftest$ac_exeext
6693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694  (eval $ac_link) 2>&5
6695  ac_status=$?
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); } &&
6698         { ac_try='test -s conftest$ac_exeext'
6699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700  (eval $ac_try) 2>&5
6701  ac_status=$?
6702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703  (exit $ac_status); }; }; then
6704  ac_cv_lib_dld_dld_link=yes
6705else
6706  echo "$as_me: failed program was:" >&5
6707sed 's/^/| /' conftest.$ac_ext >&5
6708
6709ac_cv_lib_dld_dld_link=no
6710fi
6711rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6712LIBS=$ac_check_lib_save_LIBS
6713fi
6714echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6715echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6716if test $ac_cv_lib_dld_dld_link = yes; then
6717  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6718fi
6719
6720
6721fi
6722
6723
6724fi
6725
6726
6727fi
6728
6729
6730fi
6731
6732
6733fi
6734
6735    ;;
6736  esac
6737
6738  if test "x$lt_cv_dlopen" != xno; then
6739    enable_dlopen=yes
6740  else
6741    enable_dlopen=no
6742  fi
6743
6744  case $lt_cv_dlopen in
6745  dlopen)
6746    save_CPPFLAGS="$CPPFLAGS"
6747        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6748
6749    save_LDFLAGS="$LDFLAGS"
6750    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6751
6752    save_LIBS="$LIBS"
6753    LIBS="$lt_cv_dlopen_libs $LIBS"
6754
6755    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6756echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6757if test "${lt_cv_dlopen_self+set}" = set; then
6758  echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760  	  if test "$cross_compiling" = yes; then :
6761  lt_cv_dlopen_self=cross
6762else
6763    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6764  lt_status=$lt_dlunknown
6765  cat > conftest.$ac_ext <<EOF
6766#line 6766 "configure"
6767#include "confdefs.h"
6768
6769#if HAVE_DLFCN_H
6770#include <dlfcn.h>
6771#endif
6772
6773#include <stdio.h>
6774
6775#ifdef RTLD_GLOBAL
6776#  define LT_DLGLOBAL		RTLD_GLOBAL
6777#else
6778#  ifdef DL_GLOBAL
6779#    define LT_DLGLOBAL		DL_GLOBAL
6780#  else
6781#    define LT_DLGLOBAL		0
6782#  endif
6783#endif
6784
6785/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6786   find out it does not work in some platform. */
6787#ifndef LT_DLLAZY_OR_NOW
6788#  ifdef RTLD_LAZY
6789#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6790#  else
6791#    ifdef DL_LAZY
6792#      define LT_DLLAZY_OR_NOW		DL_LAZY
6793#    else
6794#      ifdef RTLD_NOW
6795#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6796#      else
6797#        ifdef DL_NOW
6798#          define LT_DLLAZY_OR_NOW	DL_NOW
6799#        else
6800#          define LT_DLLAZY_OR_NOW	0
6801#        endif
6802#      endif
6803#    endif
6804#  endif
6805#endif
6806
6807#ifdef __cplusplus
6808extern "C" void exit (int);
6809#endif
6810
6811void fnord() { int i=42;}
6812int main ()
6813{
6814  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6815  int status = $lt_dlunknown;
6816
6817  if (self)
6818    {
6819      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6820      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6821      /* dlclose (self); */
6822    }
6823
6824    exit (status);
6825}
6826EOF
6827  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828  (eval $ac_link) 2>&5
6829  ac_status=$?
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6832    (./conftest; exit; ) 2>/dev/null
6833    lt_status=$?
6834    case x$lt_status in
6835      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6836      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6837      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6838    esac
6839  else :
6840    # compilation failed
6841    lt_cv_dlopen_self=no
6842  fi
6843fi
6844rm -fr conftest*
6845
6846
6847fi
6848echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6849echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6850
6851    if test "x$lt_cv_dlopen_self" = xyes; then
6852      LDFLAGS="$LDFLAGS $link_static_flag"
6853      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6854echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6855if test "${lt_cv_dlopen_self_static+set}" = set; then
6856  echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858  	  if test "$cross_compiling" = yes; then :
6859  lt_cv_dlopen_self_static=cross
6860else
6861    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6862  lt_status=$lt_dlunknown
6863  cat > conftest.$ac_ext <<EOF
6864#line 6864 "configure"
6865#include "confdefs.h"
6866
6867#if HAVE_DLFCN_H
6868#include <dlfcn.h>
6869#endif
6870
6871#include <stdio.h>
6872
6873#ifdef RTLD_GLOBAL
6874#  define LT_DLGLOBAL		RTLD_GLOBAL
6875#else
6876#  ifdef DL_GLOBAL
6877#    define LT_DLGLOBAL		DL_GLOBAL
6878#  else
6879#    define LT_DLGLOBAL		0
6880#  endif
6881#endif
6882
6883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6884   find out it does not work in some platform. */
6885#ifndef LT_DLLAZY_OR_NOW
6886#  ifdef RTLD_LAZY
6887#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6888#  else
6889#    ifdef DL_LAZY
6890#      define LT_DLLAZY_OR_NOW		DL_LAZY
6891#    else
6892#      ifdef RTLD_NOW
6893#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6894#      else
6895#        ifdef DL_NOW
6896#          define LT_DLLAZY_OR_NOW	DL_NOW
6897#        else
6898#          define LT_DLLAZY_OR_NOW	0
6899#        endif
6900#      endif
6901#    endif
6902#  endif
6903#endif
6904
6905#ifdef __cplusplus
6906extern "C" void exit (int);
6907#endif
6908
6909void fnord() { int i=42;}
6910int main ()
6911{
6912  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6913  int status = $lt_dlunknown;
6914
6915  if (self)
6916    {
6917      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6918      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6919      /* dlclose (self); */
6920    }
6921
6922    exit (status);
6923}
6924EOF
6925  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6926  (eval $ac_link) 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6930    (./conftest; exit; ) 2>/dev/null
6931    lt_status=$?
6932    case x$lt_status in
6933      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6934      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6935      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6936    esac
6937  else :
6938    # compilation failed
6939    lt_cv_dlopen_self_static=no
6940  fi
6941fi
6942rm -fr conftest*
6943
6944
6945fi
6946echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6947echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6948    fi
6949
6950    CPPFLAGS="$save_CPPFLAGS"
6951    LDFLAGS="$save_LDFLAGS"
6952    LIBS="$save_LIBS"
6953    ;;
6954  esac
6955
6956  case $lt_cv_dlopen_self in
6957  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6958  *) enable_dlopen_self=unknown ;;
6959  esac
6960
6961  case $lt_cv_dlopen_self_static in
6962  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6963  *) enable_dlopen_self_static=unknown ;;
6964  esac
6965fi
6966
6967
6968if test "$enable_shared" = yes && test "$GCC" = yes; then
6969  case $archive_cmds in
6970  *'~'*)
6971    # FIXME: we may have to deal with multi-command sequences.
6972    ;;
6973  '$CC '*)
6974    # Test whether the compiler implicitly links with -lc since on some
6975    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6976    # to ld, don't add -lc before -lgcc.
6977    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6978echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6979    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6980  echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982  $rm conftest*
6983    echo 'static int dummy;' > conftest.$ac_ext
6984
6985    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986  (eval $ac_compile) 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); }; then
6990      soname=conftest
6991      lib=conftest
6992      libobjs=conftest.$ac_objext
6993      deplibs=
6994      wl=$lt_cv_prog_cc_wl
6995      compiler_flags=-v
6996      linker_flags=-v
6997      verstring=
6998      output_objdir=.
6999      libname=conftest
7000      save_allow_undefined_flag=$allow_undefined_flag
7001      allow_undefined_flag=
7002      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7003  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7004  ac_status=$?
7005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006  (exit $ac_status); }
7007      then
7008	lt_cv_archive_cmds_need_lc=no
7009      else
7010	lt_cv_archive_cmds_need_lc=yes
7011      fi
7012      allow_undefined_flag=$save_allow_undefined_flag
7013    else
7014      cat conftest.err 1>&5
7015    fi
7016fi
7017
7018    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7019echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7020    ;;
7021  esac
7022fi
7023need_lc=${lt_cv_archive_cmds_need_lc-yes}
7024
7025# The second clause should only fire when bootstrapping the
7026# libtool distribution, otherwise you forgot to ship ltmain.sh
7027# with your package, and you will get complaints that there are
7028# no rules to generate ltmain.sh.
7029if test -f "$ltmain"; then
7030  :
7031else
7032  # If there is no Makefile yet, we rely on a make rule to execute
7033  # `config.status --recheck' to rerun these tests and create the
7034  # libtool script then.
7035  test -f Makefile && make "$ltmain"
7036fi
7037
7038if test -f "$ltmain"; then
7039  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7040  $rm -f "${ofile}T"
7041
7042  echo creating $ofile
7043
7044  # Now quote all the things that may contain metacharacters while being
7045  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7046  # variables and quote the copies for generation of the libtool script.
7047  for var in echo old_CC old_CFLAGS SED \
7048    AR AR_FLAGS CC LD LN_S NM SHELL \
7049    reload_flag reload_cmds wl \
7050    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7051    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7052    library_names_spec soname_spec \
7053    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7054    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7055    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7056    old_striplib striplib file_magic_cmd export_symbols_cmds \
7057    deplibs_check_method allow_undefined_flag no_undefined_flag \
7058    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7059    global_symbol_to_c_name_address \
7060    hardcode_libdir_flag_spec hardcode_libdir_separator  \
7061    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7062    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7063
7064    case $var in
7065    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7066    old_postinstall_cmds | old_postuninstall_cmds | \
7067    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7068    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7069    postinstall_cmds | postuninstall_cmds | \
7070    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7071      # Double-quote double-evaled strings.
7072      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7073      ;;
7074    *)
7075      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7076      ;;
7077    esac
7078  done
7079
7080  cat <<__EOF__ > "${ofile}T"
7081#! $SHELL
7082
7083# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7084# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7085# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7086#
7087# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7088# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7089#
7090# This program is free software; you can redistribute it and/or modify
7091# it under the terms of the GNU General Public License as published by
7092# the Free Software Foundation; either version 2 of the License, or
7093# (at your option) any later version.
7094#
7095# This program is distributed in the hope that it will be useful, but
7096# WITHOUT ANY WARRANTY; without even the implied warranty of
7097# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7098# General Public License for more details.
7099#
7100# You should have received a copy of the GNU General Public License
7101# along with this program; if not, write to the Free Software
7102# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7103#
7104# As a special exception to the GNU General Public License, if you
7105# distribute this file as part of a program that contains a
7106# configuration script generated by Autoconf, you may include it under
7107# the same distribution terms that you use for the rest of that program.
7108
7109# A sed that does not truncate output.
7110SED=$lt_SED
7111
7112# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7113Xsed="${SED} -e s/^X//"
7114
7115# The HP-UX ksh and POSIX shell print the target directory to stdout
7116# if CDPATH is set.
7117if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7118
7119# ### BEGIN LIBTOOL CONFIG
7120
7121# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7122
7123# Shell to use when invoking shell scripts.
7124SHELL=$lt_SHELL
7125
7126# Whether or not to build shared libraries.
7127build_libtool_libs=$enable_shared
7128
7129# Whether or not to build static libraries.
7130build_old_libs=$enable_static
7131
7132# Whether or not to add -lc for building shared libraries.
7133build_libtool_need_lc=$need_lc
7134
7135# Whether or not to optimize for fast installation.
7136fast_install=$enable_fast_install
7137
7138# The host system.
7139host_alias=$host_alias
7140host=$host
7141
7142# An echo program that does not interpret backslashes.
7143echo=$lt_echo
7144
7145# The archiver.
7146AR=$lt_AR
7147AR_FLAGS=$lt_AR_FLAGS
7148
7149# The default C compiler.
7150CC=$lt_CC
7151
7152# Is the compiler the GNU C compiler?
7153with_gcc=$GCC
7154
7155# The linker used to build libraries.
7156LD=$lt_LD
7157
7158# Whether we need hard or soft links.
7159LN_S=$lt_LN_S
7160
7161# A BSD-compatible nm program.
7162NM=$lt_NM
7163
7164# A symbol stripping program
7165STRIP=$STRIP
7166
7167# Used to examine libraries when file_magic_cmd begins "file"
7168MAGIC_CMD=$MAGIC_CMD
7169
7170# Used on cygwin: DLL creation program.
7171DLLTOOL="$DLLTOOL"
7172
7173# Used on cygwin: object dumper.
7174OBJDUMP="$OBJDUMP"
7175
7176# Used on cygwin: assembler.
7177AS="$AS"
7178
7179# The name of the directory that contains temporary libtool files.
7180objdir=$objdir
7181
7182# How to create reloadable object files.
7183reload_flag=$lt_reload_flag
7184reload_cmds=$lt_reload_cmds
7185
7186# How to pass a linker flag through the compiler.
7187wl=$lt_wl
7188
7189# Object file suffix (normally "o").
7190objext="$ac_objext"
7191
7192# Old archive suffix (normally "a").
7193libext="$libext"
7194
7195# Executable file suffix (normally "").
7196exeext="$exeext"
7197
7198# Additional compiler flags for building library objects.
7199pic_flag=$lt_pic_flag
7200pic_mode=$pic_mode
7201
7202# Does compiler simultaneously support -c and -o options?
7203compiler_c_o=$lt_compiler_c_o
7204
7205# Can we write directly to a .lo ?
7206compiler_o_lo=$lt_compiler_o_lo
7207
7208# Must we lock files when doing compilation ?
7209need_locks=$lt_need_locks
7210
7211# Do we need the lib prefix for modules?
7212need_lib_prefix=$need_lib_prefix
7213
7214# Do we need a version for libraries?
7215need_version=$need_version
7216
7217# Whether dlopen is supported.
7218dlopen_support=$enable_dlopen
7219
7220# Whether dlopen of programs is supported.
7221dlopen_self=$enable_dlopen_self
7222
7223# Whether dlopen of statically linked programs is supported.
7224dlopen_self_static=$enable_dlopen_self_static
7225
7226# Compiler flag to prevent dynamic linking.
7227link_static_flag=$lt_link_static_flag
7228
7229# Compiler flag to turn off builtin functions.
7230no_builtin_flag=$lt_no_builtin_flag
7231
7232# Compiler flag to allow reflexive dlopens.
7233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7234
7235# Compiler flag to generate shared objects directly from archives.
7236whole_archive_flag_spec=$lt_whole_archive_flag_spec
7237
7238# Compiler flag to generate thread-safe objects.
7239thread_safe_flag_spec=$lt_thread_safe_flag_spec
7240
7241# Library versioning type.
7242version_type=$version_type
7243
7244# Format of library name prefix.
7245libname_spec=$lt_libname_spec
7246
7247# List of archive names.  First name is the real one, the rest are links.
7248# The last name is the one that the linker finds with -lNAME.
7249library_names_spec=$lt_library_names_spec
7250
7251# The coded name of the library, if different from the real name.
7252soname_spec=$lt_soname_spec
7253
7254# Commands used to build and install an old-style archive.
7255RANLIB=$lt_RANLIB
7256old_archive_cmds=$lt_old_archive_cmds
7257old_postinstall_cmds=$lt_old_postinstall_cmds
7258old_postuninstall_cmds=$lt_old_postuninstall_cmds
7259
7260# Create an old-style archive from a shared archive.
7261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7262
7263# Create a temporary old-style archive to link instead of a shared archive.
7264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7265
7266# Commands used to build and install a shared archive.
7267archive_cmds=$lt_archive_cmds
7268archive_expsym_cmds=$lt_archive_expsym_cmds
7269postinstall_cmds=$lt_postinstall_cmds
7270postuninstall_cmds=$lt_postuninstall_cmds
7271
7272# Commands to strip libraries.
7273old_striplib=$lt_old_striplib
7274striplib=$lt_striplib
7275
7276# Method to check whether dependent libraries are shared objects.
7277deplibs_check_method=$lt_deplibs_check_method
7278
7279# Command to use when deplibs_check_method == file_magic.
7280file_magic_cmd=$lt_file_magic_cmd
7281
7282# Flag that allows shared libraries with undefined symbols to be built.
7283allow_undefined_flag=$lt_allow_undefined_flag
7284
7285# Flag that forces no undefined symbols.
7286no_undefined_flag=$lt_no_undefined_flag
7287
7288# Commands used to finish a libtool library installation in a directory.
7289finish_cmds=$lt_finish_cmds
7290
7291# Same as above, but a single script fragment to be evaled but not shown.
7292finish_eval=$lt_finish_eval
7293
7294# Take the output of nm and produce a listing of raw symbols and C names.
7295global_symbol_pipe=$lt_global_symbol_pipe
7296
7297# Transform the output of nm in a proper C declaration
7298global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7299
7300# Transform the output of nm in a C name address pair
7301global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7302
7303# This is the shared library runtime path variable.
7304runpath_var=$runpath_var
7305
7306# This is the shared library path variable.
7307shlibpath_var=$shlibpath_var
7308
7309# Is shlibpath searched before the hard-coded library search path?
7310shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7311
7312# How to hardcode a shared library path into an executable.
7313hardcode_action=$hardcode_action
7314
7315# Whether we should hardcode library paths into libraries.
7316hardcode_into_libs=$hardcode_into_libs
7317
7318# Flag to hardcode \$libdir into a binary during linking.
7319# This must work even if \$libdir does not exist.
7320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7321
7322# Whether we need a single -rpath flag with a separated argument.
7323hardcode_libdir_separator=$lt_hardcode_libdir_separator
7324
7325# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7326# resulting binary.
7327hardcode_direct=$hardcode_direct
7328
7329# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7330# resulting binary.
7331hardcode_minus_L=$hardcode_minus_L
7332
7333# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7334# the resulting binary.
7335hardcode_shlibpath_var=$hardcode_shlibpath_var
7336
7337# Variables whose values should be saved in libtool wrapper scripts and
7338# restored at relink time.
7339variables_saved_for_relink="$variables_saved_for_relink"
7340
7341# Whether libtool must link a program against all its dependency libraries.
7342link_all_deplibs=$link_all_deplibs
7343
7344# Compile-time system search path for libraries
7345sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7346
7347# Run-time system search path for libraries
7348sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7349
7350# Fix the shell variable \$srcfile for the compiler.
7351fix_srcfile_path="$fix_srcfile_path"
7352
7353# Set to yes if exported symbols are required.
7354always_export_symbols=$always_export_symbols
7355
7356# The commands to list exported symbols.
7357export_symbols_cmds=$lt_export_symbols_cmds
7358
7359# The commands to extract the exported symbol list from a shared archive.
7360extract_expsyms_cmds=$lt_extract_expsyms_cmds
7361
7362# Symbols that should not be listed in the preloaded symbols.
7363exclude_expsyms=$lt_exclude_expsyms
7364
7365# Symbols that must always be exported.
7366include_expsyms=$lt_include_expsyms
7367
7368# ### END LIBTOOL CONFIG
7369
7370__EOF__
7371
7372  case $host_os in
7373  aix3*)
7374    cat <<\EOF >> "${ofile}T"
7375
7376# AIX sometimes has problems with the GCC collect2 program.  For some
7377# reason, if we set the COLLECT_NAMES environment variable, the problems
7378# vanish in a puff of smoke.
7379if test "X${COLLECT_NAMES+set}" != Xset; then
7380  COLLECT_NAMES=
7381  export COLLECT_NAMES
7382fi
7383EOF
7384    ;;
7385  esac
7386
7387  case $host_os in
7388  cygwin* | mingw* | pw32* | os2*)
7389    cat <<'EOF' >> "${ofile}T"
7390      # This is a source program that is used to create dlls on Windows
7391      # Don't remove nor modify the starting and closing comments
7392# /* ltdll.c starts here */
7393# #define WIN32_LEAN_AND_MEAN
7394# #include <windows.h>
7395# #undef WIN32_LEAN_AND_MEAN
7396# #include <stdio.h>
7397#
7398# #ifndef __CYGWIN__
7399# #  ifdef __CYGWIN32__
7400# #    define __CYGWIN__ __CYGWIN32__
7401# #  endif
7402# #endif
7403#
7404# #ifdef __cplusplus
7405# extern "C" {
7406# #endif
7407# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7408# #ifdef __cplusplus
7409# }
7410# #endif
7411#
7412# #ifdef __CYGWIN__
7413# #include <cygwin/cygwin_dll.h>
7414# DECLARE_CYGWIN_DLL( DllMain );
7415# #endif
7416# HINSTANCE __hDllInstance_base;
7417#
7418# BOOL APIENTRY
7419# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7420# {
7421#   __hDllInstance_base = hInst;
7422#   return TRUE;
7423# }
7424# /* ltdll.c ends here */
7425	# This is a source program that is used to create import libraries
7426	# on Windows for dlls which lack them. Don't remove nor modify the
7427	# starting and closing comments
7428# /* impgen.c starts here */
7429# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7430#
7431#  This file is part of GNU libtool.
7432#
7433#  This program is free software; you can redistribute it and/or modify
7434#  it under the terms of the GNU General Public License as published by
7435#  the Free Software Foundation; either version 2 of the License, or
7436#  (at your option) any later version.
7437#
7438#  This program is distributed in the hope that it will be useful,
7439#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7440#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7441#  GNU General Public License for more details.
7442#
7443#  You should have received a copy of the GNU General Public License
7444#  along with this program; if not, write to the Free Software
7445#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7446#  */
7447#
7448# #include <stdio.h>		/* for printf() */
7449# #include <unistd.h>		/* for open(), lseek(), read() */
7450# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
7451# #include <string.h>		/* for strdup() */
7452#
7453# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7454# #ifndef O_BINARY
7455# #define O_BINARY 0
7456# #endif
7457#
7458# static unsigned int
7459# pe_get16 (fd, offset)
7460#      int fd;
7461#      int offset;
7462# {
7463#   unsigned char b[2];
7464#   lseek (fd, offset, SEEK_SET);
7465#   read (fd, b, 2);
7466#   return b[0] + (b[1]<<8);
7467# }
7468#
7469# static unsigned int
7470# pe_get32 (fd, offset)
7471#     int fd;
7472#     int offset;
7473# {
7474#   unsigned char b[4];
7475#   lseek (fd, offset, SEEK_SET);
7476#   read (fd, b, 4);
7477#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7478# }
7479#
7480# static unsigned int
7481# pe_as32 (ptr)
7482#      void *ptr;
7483# {
7484#   unsigned char *b = ptr;
7485#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7486# }
7487#
7488# int
7489# main (argc, argv)
7490#     int argc;
7491#     char *argv[];
7492# {
7493#     int dll;
7494#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7495#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7496#     unsigned long name_rvas, nexp;
7497#     unsigned char *expdata, *erva;
7498#     char *filename, *dll_name;
7499#
7500#     filename = argv[1];
7501#
7502#     dll = open(filename, O_RDONLY|O_BINARY);
7503#     if (dll < 1)
7504# 	return 1;
7505#
7506#     dll_name = filename;
7507#
7508#     for (i=0; filename[i]; i++)
7509# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7510# 	    dll_name = filename + i +1;
7511#
7512#     pe_header_offset = pe_get32 (dll, 0x3c);
7513#     opthdr_ofs = pe_header_offset + 4 + 20;
7514#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7515#
7516#     if (num_entries < 1) /* no exports */
7517# 	return 1;
7518#
7519#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7520#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7521#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7522#     secptr = (pe_header_offset + 4 + 20 +
7523# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
7524#
7525#     expptr = 0;
7526#     for (i = 0; i < nsections; i++)
7527#     {
7528# 	char sname[8];
7529# 	unsigned long secptr1 = secptr + 40 * i;
7530# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7531# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7532# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7533# 	lseek(dll, secptr1, SEEK_SET);
7534# 	read(dll, sname, 8);
7535# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
7536# 	{
7537# 	    expptr = fptr + (export_rva - vaddr);
7538# 	    if (export_rva + export_size > vaddr + vsize)
7539# 		export_size = vsize - (export_rva - vaddr);
7540# 	    break;
7541# 	}
7542#     }
7543#
7544#     expdata = (unsigned char*)malloc(export_size);
7545#     lseek (dll, expptr, SEEK_SET);
7546#     read (dll, expdata, export_size);
7547#     erva = expdata - export_rva;
7548#
7549#     nexp = pe_as32 (expdata+24);
7550#     name_rvas = pe_as32 (expdata+32);
7551#
7552#     printf ("EXPORTS\n");
7553#     for (i = 0; i<nexp; i++)
7554#     {
7555# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7556# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7557#     }
7558#
7559#     return 0;
7560# }
7561# /* impgen.c ends here */
7562
7563EOF
7564    ;;
7565  esac
7566
7567  # We use sed instead of cat because bash on DJGPP gets confused if
7568  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7569  # text mode, it properly converts lines to CR/LF.  This bash problem
7570  # is reportedly fixed, but why not run on old versions too?
7571  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7572
7573  mv -f "${ofile}T" "$ofile" || \
7574    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7575  chmod +x "$ofile"
7576fi
7577
7578
7579
7580
7581
7582# This can be used to rebuild libtool when needed
7583LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7584
7585# Always use our own libtool.
7586LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7587
7588# Prevent multiple expansion
7589
7590
7591
7592
7593        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7594echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
7595if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7596  echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598  ac_check_lib_save_LIBS=$LIBS
7599LIBS="-lcposix  $LIBS"
7600cat >conftest.$ac_ext <<_ACEOF
7601#line $LINENO "configure"
7602/* confdefs.h.  */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h.  */
7607
7608/* Override any gcc2 internal prototype to avoid an error.  */
7609#ifdef __cplusplus
7610extern "C"
7611#endif
7612/* We use char because int might match the return type of a gcc2
7613   builtin and then its argument prototype would still apply.  */
7614char strerror ();
7615int
7616main ()
7617{
7618strerror ();
7619  ;
7620  return 0;
7621}
7622_ACEOF
7623rm -f conftest.$ac_objext conftest$ac_exeext
7624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625  (eval $ac_link) 2>&5
7626  ac_status=$?
7627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628  (exit $ac_status); } &&
7629         { ac_try='test -s conftest$ac_exeext'
7630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631  (eval $ac_try) 2>&5
7632  ac_status=$?
7633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634  (exit $ac_status); }; }; then
7635  ac_cv_lib_cposix_strerror=yes
7636else
7637  echo "$as_me: failed program was:" >&5
7638sed 's/^/| /' conftest.$ac_ext >&5
7639
7640ac_cv_lib_cposix_strerror=no
7641fi
7642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7643LIBS=$ac_check_lib_save_LIBS
7644fi
7645echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7646echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
7647if test $ac_cv_lib_cposix_strerror = yes; then
7648  LIBS="$LIBS -lcposix"
7649fi
7650
7651
7652
7653echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7654echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7655set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
7656if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7657  echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659  cat >conftest.make <<\_ACEOF
7660all:
7661	@echo 'ac_maketemp="$(MAKE)"'
7662_ACEOF
7663# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7664eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7665if test -n "$ac_maketemp"; then
7666  eval ac_cv_prog_make_${ac_make}_set=yes
7667else
7668  eval ac_cv_prog_make_${ac_make}_set=no
7669fi
7670rm -f conftest.make
7671fi
7672if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7673  echo "$as_me:$LINENO: result: yes" >&5
7674echo "${ECHO_T}yes" >&6
7675  SET_MAKE=
7676else
7677  echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679  SET_MAKE="MAKE=${MAKE-make}"
7680fi
7681
7682echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7683echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7684if test "${ac_cv_header_stdc+set}" = set; then
7685  echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687  cat >conftest.$ac_ext <<_ACEOF
7688#line $LINENO "configure"
7689/* confdefs.h.  */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h.  */
7694#include <stdlib.h>
7695#include <stdarg.h>
7696#include <string.h>
7697#include <float.h>
7698
7699int
7700main ()
7701{
7702
7703  ;
7704  return 0;
7705}
7706_ACEOF
7707rm -f conftest.$ac_objext
7708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709  (eval $ac_compile) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); } &&
7713         { ac_try='test -s conftest.$ac_objext'
7714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715  (eval $ac_try) 2>&5
7716  ac_status=$?
7717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718  (exit $ac_status); }; }; then
7719  ac_cv_header_stdc=yes
7720else
7721  echo "$as_me: failed program was:" >&5
7722sed 's/^/| /' conftest.$ac_ext >&5
7723
7724ac_cv_header_stdc=no
7725fi
7726rm -f conftest.$ac_objext conftest.$ac_ext
7727
7728if test $ac_cv_header_stdc = yes; then
7729  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7730  cat >conftest.$ac_ext <<_ACEOF
7731#line $LINENO "configure"
7732/* confdefs.h.  */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h.  */
7737#include <string.h>
7738
7739_ACEOF
7740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741  $EGREP "memchr" >/dev/null 2>&1; then
7742  :
7743else
7744  ac_cv_header_stdc=no
7745fi
7746rm -f conftest*
7747
7748fi
7749
7750if test $ac_cv_header_stdc = yes; then
7751  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7752  cat >conftest.$ac_ext <<_ACEOF
7753#line $LINENO "configure"
7754/* confdefs.h.  */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h.  */
7759#include <stdlib.h>
7760
7761_ACEOF
7762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7763  $EGREP "free" >/dev/null 2>&1; then
7764  :
7765else
7766  ac_cv_header_stdc=no
7767fi
7768rm -f conftest*
7769
7770fi
7771
7772if test $ac_cv_header_stdc = yes; then
7773  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7774  if test "$cross_compiling" = yes; then
7775  :
7776else
7777  cat >conftest.$ac_ext <<_ACEOF
7778#line $LINENO "configure"
7779/* confdefs.h.  */
7780_ACEOF
7781cat confdefs.h >>conftest.$ac_ext
7782cat >>conftest.$ac_ext <<_ACEOF
7783/* end confdefs.h.  */
7784#include <ctype.h>
7785#if ((' ' & 0x0FF) == 0x020)
7786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7788#else
7789# define ISLOWER(c) \
7790                   (('a' <= (c) && (c) <= 'i') \
7791                     || ('j' <= (c) && (c) <= 'r') \
7792                     || ('s' <= (c) && (c) <= 'z'))
7793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7794#endif
7795
7796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7797int
7798main ()
7799{
7800  int i;
7801  for (i = 0; i < 256; i++)
7802    if (XOR (islower (i), ISLOWER (i))
7803        || toupper (i) != TOUPPER (i))
7804      exit(2);
7805  exit (0);
7806}
7807_ACEOF
7808rm -f conftest$ac_exeext
7809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810  (eval $ac_link) 2>&5
7811  ac_status=$?
7812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815  (eval $ac_try) 2>&5
7816  ac_status=$?
7817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818  (exit $ac_status); }; }; then
7819  :
7820else
7821  echo "$as_me: program exited with status $ac_status" >&5
7822echo "$as_me: failed program was:" >&5
7823sed 's/^/| /' conftest.$ac_ext >&5
7824
7825( exit $ac_status )
7826ac_cv_header_stdc=no
7827fi
7828rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7829fi
7830fi
7831fi
7832echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7833echo "${ECHO_T}$ac_cv_header_stdc" >&6
7834if test $ac_cv_header_stdc = yes; then
7835
7836cat >>confdefs.h <<\_ACEOF
7837#define STDC_HEADERS 1
7838_ACEOF
7839
7840fi
7841
7842
7843
7844for ac_func in memcpy
7845do
7846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7847echo "$as_me:$LINENO: checking for $ac_func" >&5
7848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7849if eval "test \"\${$as_ac_var+set}\" = set"; then
7850  echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852  cat >conftest.$ac_ext <<_ACEOF
7853#line $LINENO "configure"
7854/* confdefs.h.  */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h.  */
7859/* System header to define __stub macros and hopefully few prototypes,
7860    which can conflict with char $ac_func (); below.
7861    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7862    <limits.h> exists even on freestanding compilers.  */
7863#ifdef __STDC__
7864# include <limits.h>
7865#else
7866# include <assert.h>
7867#endif
7868/* Override any gcc2 internal prototype to avoid an error.  */
7869#ifdef __cplusplus
7870extern "C"
7871{
7872#endif
7873/* We use char because int might match the return type of a gcc2
7874   builtin and then its argument prototype would still apply.  */
7875char $ac_func ();
7876/* The GNU C library defines this for functions which it implements
7877    to always fail with ENOSYS.  Some functions are actually named
7878    something starting with __ and the normal name is an alias.  */
7879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7880choke me
7881#else
7882char (*f) () = $ac_func;
7883#endif
7884#ifdef __cplusplus
7885}
7886#endif
7887
7888int
7889main ()
7890{
7891return f != $ac_func;
7892  ;
7893  return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext conftest$ac_exeext
7897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898  (eval $ac_link) 2>&5
7899  ac_status=$?
7900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901  (exit $ac_status); } &&
7902         { ac_try='test -s conftest$ac_exeext'
7903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904  (eval $ac_try) 2>&5
7905  ac_status=$?
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); }; }; then
7908  eval "$as_ac_var=yes"
7909else
7910  echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
7913eval "$as_ac_var=no"
7914fi
7915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916fi
7917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7919if test `eval echo '${'$as_ac_var'}'` = yes; then
7920  cat >>confdefs.h <<_ACEOF
7921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7922_ACEOF
7923
7924fi
7925done
7926
7927
7928### --------------------------------------------------------------------------
7929### Variables
7930### Set up all the initial variable values...
7931
7932# We should always see these errors...
7933CFLAGS="${CFLAGS} -Wall"
7934
7935# Strict, or lenient tesselator?
7936# Check whether --enable-lenient-tess or --disable-lenient-tess was given.
7937if test "${enable_lenient_tess+set}" = set; then
7938  enableval="$enable_lenient_tess"
7939  cat >>confdefs.h <<\_ACEOF
7940#define LENIENT_TESSELATOR 1
7941_ACEOF
7942
7943else
7944  cat >>confdefs.h <<\_ACEOF
7945#define DELICATE_TESSELATOR 1
7946_ACEOF
7947
7948fi;
7949
7950# Disable texture mapping?
7951# Check whether --enable-auto-texture or --disable-auto-texture was given.
7952if test "${enable_auto_texture+set}" = set; then
7953  enableval="$enable_auto_texture"
7954  cat >>confdefs.h <<\_ACEOF
7955#define AUTO_TEXTURE 0
7956_ACEOF
7957
7958else
7959  cat >>confdefs.h <<\_ACEOF
7960#define AUTO_TEXTURE 1
7961_ACEOF
7962
7963fi;
7964
7965# Should we build for old IrisGL?
7966# Check whether --enable-irisgl or --disable-irisgl was given.
7967if test "${enable_irisgl+set}" = set; then
7968  enableval="$enable_irisgl"
7969  cat >>confdefs.h <<\_ACEOF
7970#define GL_32 1
7971_ACEOF
7972
7973else
7974  cat >>confdefs.h <<\_ACEOF
7975#define OPENGL_10 1
7976_ACEOF
7977
7978fi;
7979
7980# Check whether --enable-debug or --disable-debug was given.
7981if test "${enable_debug+set}" = set; then
7982  enableval="$enable_debug"
7983  CFLAGS="${CFLAGS} -g"
7984       LDFLAGS="${LDFLAGS} -g"
7985       cat >>confdefs.h <<\_ACEOF
7986#define DEBUG_OUTPUT 1
7987_ACEOF
7988
7989fi;
7990
7991# Check whether --enable-profile or --disable-profile was given.
7992if test "${enable_profile+set}" = set; then
7993  enableval="$enable_profile"
7994  CFLAGS="${CFLAGS} -pg"
7995       LDFLAGS="${LDFLAGS} -pg"
7996fi;
7997
7998# Check whether --enable-warnings or --disable-warnings was given.
7999if test "${enable_warnings+set}" = set; then
8000  enableval="$enable_warnings"
8001  CFLAGS="${CFLAGS} -g -Wall -ansi -pedantic -Wwrite-strings -Wid-clash-31 -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Woverloaded-virtual -Winline -felide-constructors -fnonnull-objects"
8002       LDFLAGS="${LDFLAGS} -g -Wall"
8003
8004fi;
8005
8006
8007### --------------------------------------------------------------------------
8008### Libraries
8009LIBS="$LIBS -lm"
8010
8011# We're going to set up our own X configure variables.  These are only
8012# used in side configure.  At the end, we use them to set X_LIBS.
8013# This allows us to be careful about libarary ordering, in case that's
8014# important.
8015
8016echo "$as_me:$LINENO: checking for X" >&5
8017echo $ECHO_N "checking for X... $ECHO_C" >&6
8018
8019
8020# Check whether --with-x or --without-x was given.
8021if test "${with_x+set}" = set; then
8022  withval="$with_x"
8023
8024fi;
8025# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8026if test "x$with_x" = xno; then
8027  # The user explicitly disabled X.
8028  have_x=disabled
8029else
8030  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8031    # Both variables are already set.
8032    have_x=yes
8033  else
8034    if test "${ac_cv_have_x+set}" = set; then
8035  echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037  # One or both of the vars are not set, and there is no cached value.
8038ac_x_includes=no ac_x_libraries=no
8039rm -fr conftest.dir
8040if mkdir conftest.dir; then
8041  cd conftest.dir
8042  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8043  cat >Imakefile <<'_ACEOF'
8044acfindx:
8045	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8046_ACEOF
8047  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8048    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8049    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8050    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8051    for ac_extension in a so sl; do
8052      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8053         test -f $ac_im_libdir/libX11.$ac_extension; then
8054        ac_im_usrlibdir=$ac_im_libdir; break
8055      fi
8056    done
8057    # Screen out bogus values from the imake configuration.  They are
8058    # bogus both because they are the default anyway, and because
8059    # using them would break gcc on systems where it needs fixed includes.
8060    case $ac_im_incroot in
8061	/usr/include) ;;
8062	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8063    esac
8064    case $ac_im_usrlibdir in
8065	/usr/lib | /lib) ;;
8066	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8067    esac
8068  fi
8069  cd ..
8070  rm -fr conftest.dir
8071fi
8072
8073# Standard set of common directories for X headers.
8074# Check X11 before X11Rn because it is often a symlink to the current release.
8075ac_x_header_dirs='
8076/usr/X11/include
8077/usr/X11R6/include
8078/usr/X11R5/include
8079/usr/X11R4/include
8080
8081/usr/include/X11
8082/usr/include/X11R6
8083/usr/include/X11R5
8084/usr/include/X11R4
8085
8086/usr/local/X11/include
8087/usr/local/X11R6/include
8088/usr/local/X11R5/include
8089/usr/local/X11R4/include
8090
8091/usr/local/include/X11
8092/usr/local/include/X11R6
8093/usr/local/include/X11R5
8094/usr/local/include/X11R4
8095
8096/usr/X386/include
8097/usr/x386/include
8098/usr/XFree86/include/X11
8099
8100/usr/include
8101/usr/local/include
8102/usr/unsupported/include
8103/usr/athena/include
8104/usr/local/x11r5/include
8105/usr/lpp/Xamples/include
8106
8107/usr/openwin/include
8108/usr/openwin/share/include'
8109
8110if test "$ac_x_includes" = no; then
8111  # Guess where to find include files, by looking for Intrinsic.h.
8112  # First, try using that file with no special directory specified.
8113  cat >conftest.$ac_ext <<_ACEOF
8114#line $LINENO "configure"
8115/* confdefs.h.  */
8116_ACEOF
8117cat confdefs.h >>conftest.$ac_ext
8118cat >>conftest.$ac_ext <<_ACEOF
8119/* end confdefs.h.  */
8120#include <X11/Intrinsic.h>
8121_ACEOF
8122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8123  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8124  ac_status=$?
8125  grep -v '^ *+' conftest.er1 >conftest.err
8126  rm -f conftest.er1
8127  cat conftest.err >&5
8128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129  (exit $ac_status); } >/dev/null; then
8130  if test -s conftest.err; then
8131    ac_cpp_err=$ac_c_preproc_warn_flag
8132  else
8133    ac_cpp_err=
8134  fi
8135else
8136  ac_cpp_err=yes
8137fi
8138if test -z "$ac_cpp_err"; then
8139  # We can compile using X headers with no special include directory.
8140ac_x_includes=
8141else
8142  echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145  for ac_dir in $ac_x_header_dirs; do
8146  if test -r "$ac_dir/X11/Intrinsic.h"; then
8147    ac_x_includes=$ac_dir
8148    break
8149  fi
8150done
8151fi
8152rm -f conftest.err conftest.$ac_ext
8153fi # $ac_x_includes = no
8154
8155if test "$ac_x_libraries" = no; then
8156  # Check for the libraries.
8157  # See if we find them without any special options.
8158  # Don't add to $LIBS permanently.
8159  ac_save_LIBS=$LIBS
8160  LIBS="-lXt $LIBS"
8161  cat >conftest.$ac_ext <<_ACEOF
8162#line $LINENO "configure"
8163/* confdefs.h.  */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h.  */
8168#include <X11/Intrinsic.h>
8169int
8170main ()
8171{
8172XtMalloc (0)
8173  ;
8174  return 0;
8175}
8176_ACEOF
8177rm -f conftest.$ac_objext conftest$ac_exeext
8178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179  (eval $ac_link) 2>&5
8180  ac_status=$?
8181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182  (exit $ac_status); } &&
8183         { ac_try='test -s conftest$ac_exeext'
8184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185  (eval $ac_try) 2>&5
8186  ac_status=$?
8187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188  (exit $ac_status); }; }; then
8189  LIBS=$ac_save_LIBS
8190# We can link X programs with no special library path.
8191ac_x_libraries=
8192else
8193  echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196LIBS=$ac_save_LIBS
8197for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8198do
8199  # Don't even attempt the hair of trying to link an X program!
8200  for ac_extension in a so sl; do
8201    if test -r $ac_dir/libXt.$ac_extension; then
8202      ac_x_libraries=$ac_dir
8203      break 2
8204    fi
8205  done
8206done
8207fi
8208rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209fi # $ac_x_libraries = no
8210
8211if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8212  # Didn't find X anywhere.  Cache the known absence of X.
8213  ac_cv_have_x="have_x=no"
8214else
8215  # Record where we found X for the cache.
8216  ac_cv_have_x="have_x=yes \
8217	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8218fi
8219fi
8220
8221  fi
8222  eval "$ac_cv_have_x"
8223fi # $with_x != no
8224
8225if test "$have_x" != yes; then
8226  echo "$as_me:$LINENO: result: $have_x" >&5
8227echo "${ECHO_T}$have_x" >&6
8228  no_x=yes
8229else
8230  # If each of the values was on the command line, it overrides each guess.
8231  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8232  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8233  # Update the cache value to reflect the command line values.
8234  ac_cv_have_x="have_x=yes \
8235		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8236  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8237echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8238fi
8239
8240if test "$no_x" = yes; then
8241  # Not all programs may use this symbol, but it does not hurt to define it.
8242
8243cat >>confdefs.h <<\_ACEOF
8244#define X_DISPLAY_MISSING 1
8245_ACEOF
8246
8247  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8248else
8249  if test -n "$x_includes"; then
8250    X_CFLAGS="$X_CFLAGS -I$x_includes"
8251  fi
8252
8253  # It would also be nice to do this for all -L options, not just this one.
8254  if test -n "$x_libraries"; then
8255    X_LIBS="$X_LIBS -L$x_libraries"
8256    # For Solaris; some versions of Sun CC require a space after -R and
8257    # others require no space.  Words are not sufficient . . . .
8258    case `(uname -sr) 2>/dev/null` in
8259    "SunOS 5"*)
8260      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8261echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8262      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8263      cat >conftest.$ac_ext <<_ACEOF
8264#line $LINENO "configure"
8265/* confdefs.h.  */
8266_ACEOF
8267cat confdefs.h >>conftest.$ac_ext
8268cat >>conftest.$ac_ext <<_ACEOF
8269/* end confdefs.h.  */
8270
8271int
8272main ()
8273{
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext conftest$ac_exeext
8280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281  (eval $ac_link) 2>&5
8282  ac_status=$?
8283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284  (exit $ac_status); } &&
8285         { ac_try='test -s conftest$ac_exeext'
8286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287  (eval $ac_try) 2>&5
8288  ac_status=$?
8289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290  (exit $ac_status); }; }; then
8291  ac_R_nospace=yes
8292else
8293  echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
8296ac_R_nospace=no
8297fi
8298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8299      if test $ac_R_nospace = yes; then
8300	echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
8302	X_LIBS="$X_LIBS -R$x_libraries"
8303      else
8304	LIBS="$ac_xsave_LIBS -R $x_libraries"
8305	cat >conftest.$ac_ext <<_ACEOF
8306#line $LINENO "configure"
8307/* confdefs.h.  */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h.  */
8312
8313int
8314main ()
8315{
8316
8317  ;
8318  return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext conftest$ac_exeext
8322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323  (eval $ac_link) 2>&5
8324  ac_status=$?
8325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326  (exit $ac_status); } &&
8327         { ac_try='test -s conftest$ac_exeext'
8328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329  (eval $ac_try) 2>&5
8330  ac_status=$?
8331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332  (exit $ac_status); }; }; then
8333  ac_R_space=yes
8334else
8335  echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338ac_R_space=no
8339fi
8340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8341	if test $ac_R_space = yes; then
8342	  echo "$as_me:$LINENO: result: yes" >&5
8343echo "${ECHO_T}yes" >&6
8344	  X_LIBS="$X_LIBS -R $x_libraries"
8345	else
8346	  echo "$as_me:$LINENO: result: neither works" >&5
8347echo "${ECHO_T}neither works" >&6
8348	fi
8349      fi
8350      LIBS=$ac_xsave_LIBS
8351    esac
8352  fi
8353
8354  # Check for system-dependent libraries X programs must link with.
8355  # Do this before checking for the system-independent R6 libraries
8356  # (-lICE), since we may need -lsocket or whatever for X linking.
8357
8358  if test "$ISC" = yes; then
8359    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8360  else
8361    # Martyn Johnson says this is needed for Ultrix, if the X
8362    # libraries were built with DECnet support.  And Karl Berry says
8363    # the Alpha needs dnet_stub (dnet does not exist).
8364    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8365    cat >conftest.$ac_ext <<_ACEOF
8366#line $LINENO "configure"
8367/* confdefs.h.  */
8368_ACEOF
8369cat confdefs.h >>conftest.$ac_ext
8370cat >>conftest.$ac_ext <<_ACEOF
8371/* end confdefs.h.  */
8372
8373/* Override any gcc2 internal prototype to avoid an error.  */
8374#ifdef __cplusplus
8375extern "C"
8376#endif
8377/* We use char because int might match the return type of a gcc2
8378   builtin and then its argument prototype would still apply.  */
8379char XOpenDisplay ();
8380int
8381main ()
8382{
8383XOpenDisplay ();
8384  ;
8385  return 0;
8386}
8387_ACEOF
8388rm -f conftest.$ac_objext conftest$ac_exeext
8389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390  (eval $ac_link) 2>&5
8391  ac_status=$?
8392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393  (exit $ac_status); } &&
8394         { ac_try='test -s conftest$ac_exeext'
8395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396  (eval $ac_try) 2>&5
8397  ac_status=$?
8398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399  (exit $ac_status); }; }; then
8400  :
8401else
8402  echo "$as_me: failed program was:" >&5
8403sed 's/^/| /' conftest.$ac_ext >&5
8404
8405echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8406echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8407if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8408  echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410  ac_check_lib_save_LIBS=$LIBS
8411LIBS="-ldnet  $LIBS"
8412cat >conftest.$ac_ext <<_ACEOF
8413#line $LINENO "configure"
8414/* confdefs.h.  */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h.  */
8419
8420/* Override any gcc2 internal prototype to avoid an error.  */
8421#ifdef __cplusplus
8422extern "C"
8423#endif
8424/* We use char because int might match the return type of a gcc2
8425   builtin and then its argument prototype would still apply.  */
8426char dnet_ntoa ();
8427int
8428main ()
8429{
8430dnet_ntoa ();
8431  ;
8432  return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext conftest$ac_exeext
8436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437  (eval $ac_link) 2>&5
8438  ac_status=$?
8439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440  (exit $ac_status); } &&
8441         { ac_try='test -s conftest$ac_exeext'
8442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443  (eval $ac_try) 2>&5
8444  ac_status=$?
8445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446  (exit $ac_status); }; }; then
8447  ac_cv_lib_dnet_dnet_ntoa=yes
8448else
8449  echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8451
8452ac_cv_lib_dnet_dnet_ntoa=no
8453fi
8454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8455LIBS=$ac_check_lib_save_LIBS
8456fi
8457echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8458echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8459if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8460  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8461fi
8462
8463    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8464      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8465echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8466if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8467  echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469  ac_check_lib_save_LIBS=$LIBS
8470LIBS="-ldnet_stub  $LIBS"
8471cat >conftest.$ac_ext <<_ACEOF
8472#line $LINENO "configure"
8473/* confdefs.h.  */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h.  */
8478
8479/* Override any gcc2 internal prototype to avoid an error.  */
8480#ifdef __cplusplus
8481extern "C"
8482#endif
8483/* We use char because int might match the return type of a gcc2
8484   builtin and then its argument prototype would still apply.  */
8485char dnet_ntoa ();
8486int
8487main ()
8488{
8489dnet_ntoa ();
8490  ;
8491  return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496  (eval $ac_link) 2>&5
8497  ac_status=$?
8498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499  (exit $ac_status); } &&
8500         { ac_try='test -s conftest$ac_exeext'
8501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502  (eval $ac_try) 2>&5
8503  ac_status=$?
8504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505  (exit $ac_status); }; }; then
8506  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8507else
8508  echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511ac_cv_lib_dnet_stub_dnet_ntoa=no
8512fi
8513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514LIBS=$ac_check_lib_save_LIBS
8515fi
8516echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8517echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8518if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8519  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8520fi
8521
8522    fi
8523fi
8524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8525    LIBS="$ac_xsave_LIBS"
8526
8527    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8528    # to get the SysV transport functions.
8529    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8530    # needs -lnsl.
8531    # The nsl library prevents programs from opening the X display
8532    # on Irix 5.2, according to T.E. Dickey.
8533    # The functions gethostbyname, getservbyname, and inet_addr are
8534    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8535    echo "$as_me:$LINENO: checking for gethostbyname" >&5
8536echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8537if test "${ac_cv_func_gethostbyname+set}" = set; then
8538  echo $ECHO_N "(cached) $ECHO_C" >&6
8539else
8540  cat >conftest.$ac_ext <<_ACEOF
8541#line $LINENO "configure"
8542/* confdefs.h.  */
8543_ACEOF
8544cat confdefs.h >>conftest.$ac_ext
8545cat >>conftest.$ac_ext <<_ACEOF
8546/* end confdefs.h.  */
8547/* System header to define __stub macros and hopefully few prototypes,
8548    which can conflict with char gethostbyname (); below.
8549    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8550    <limits.h> exists even on freestanding compilers.  */
8551#ifdef __STDC__
8552# include <limits.h>
8553#else
8554# include <assert.h>
8555#endif
8556/* Override any gcc2 internal prototype to avoid an error.  */
8557#ifdef __cplusplus
8558extern "C"
8559{
8560#endif
8561/* We use char because int might match the return type of a gcc2
8562   builtin and then its argument prototype would still apply.  */
8563char gethostbyname ();
8564/* The GNU C library defines this for functions which it implements
8565    to always fail with ENOSYS.  Some functions are actually named
8566    something starting with __ and the normal name is an alias.  */
8567#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8568choke me
8569#else
8570char (*f) () = gethostbyname;
8571#endif
8572#ifdef __cplusplus
8573}
8574#endif
8575
8576int
8577main ()
8578{
8579return f != gethostbyname;
8580  ;
8581  return 0;
8582}
8583_ACEOF
8584rm -f conftest.$ac_objext conftest$ac_exeext
8585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586  (eval $ac_link) 2>&5
8587  ac_status=$?
8588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589  (exit $ac_status); } &&
8590         { ac_try='test -s conftest$ac_exeext'
8591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592  (eval $ac_try) 2>&5
8593  ac_status=$?
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); }; }; then
8596  ac_cv_func_gethostbyname=yes
8597else
8598  echo "$as_me: failed program was:" >&5
8599sed 's/^/| /' conftest.$ac_ext >&5
8600
8601ac_cv_func_gethostbyname=no
8602fi
8603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8604fi
8605echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8606echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8607
8608    if test $ac_cv_func_gethostbyname = no; then
8609      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8610echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8611if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8612  echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614  ac_check_lib_save_LIBS=$LIBS
8615LIBS="-lnsl  $LIBS"
8616cat >conftest.$ac_ext <<_ACEOF
8617#line $LINENO "configure"
8618/* confdefs.h.  */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h.  */
8623
8624/* Override any gcc2 internal prototype to avoid an error.  */
8625#ifdef __cplusplus
8626extern "C"
8627#endif
8628/* We use char because int might match the return type of a gcc2
8629   builtin and then its argument prototype would still apply.  */
8630char gethostbyname ();
8631int
8632main ()
8633{
8634gethostbyname ();
8635  ;
8636  return 0;
8637}
8638_ACEOF
8639rm -f conftest.$ac_objext conftest$ac_exeext
8640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641  (eval $ac_link) 2>&5
8642  ac_status=$?
8643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644  (exit $ac_status); } &&
8645         { ac_try='test -s conftest$ac_exeext'
8646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  (eval $ac_try) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; }; then
8651  ac_cv_lib_nsl_gethostbyname=yes
8652else
8653  echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
8656ac_cv_lib_nsl_gethostbyname=no
8657fi
8658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8659LIBS=$ac_check_lib_save_LIBS
8660fi
8661echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8662echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8663if test $ac_cv_lib_nsl_gethostbyname = yes; then
8664  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8665fi
8666
8667      if test $ac_cv_lib_nsl_gethostbyname = no; then
8668        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8669echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8670if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8671  echo $ECHO_N "(cached) $ECHO_C" >&6
8672else
8673  ac_check_lib_save_LIBS=$LIBS
8674LIBS="-lbsd  $LIBS"
8675cat >conftest.$ac_ext <<_ACEOF
8676#line $LINENO "configure"
8677/* confdefs.h.  */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h.  */
8682
8683/* Override any gcc2 internal prototype to avoid an error.  */
8684#ifdef __cplusplus
8685extern "C"
8686#endif
8687/* We use char because int might match the return type of a gcc2
8688   builtin and then its argument prototype would still apply.  */
8689char gethostbyname ();
8690int
8691main ()
8692{
8693gethostbyname ();
8694  ;
8695  return 0;
8696}
8697_ACEOF
8698rm -f conftest.$ac_objext conftest$ac_exeext
8699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700  (eval $ac_link) 2>&5
8701  ac_status=$?
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); } &&
8704         { ac_try='test -s conftest$ac_exeext'
8705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706  (eval $ac_try) 2>&5
8707  ac_status=$?
8708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709  (exit $ac_status); }; }; then
8710  ac_cv_lib_bsd_gethostbyname=yes
8711else
8712  echo "$as_me: failed program was:" >&5
8713sed 's/^/| /' conftest.$ac_ext >&5
8714
8715ac_cv_lib_bsd_gethostbyname=no
8716fi
8717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8718LIBS=$ac_check_lib_save_LIBS
8719fi
8720echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8721echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8722if test $ac_cv_lib_bsd_gethostbyname = yes; then
8723  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8724fi
8725
8726      fi
8727    fi
8728
8729    # lieder@skyler.mavd.honeywell.com says without -lsocket,
8730    # socket/setsockopt and other routines are undefined under SCO ODT
8731    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8732    # on later versions), says Simon Leinen: it contains gethostby*
8733    # variants that don't use the name server (or something).  -lsocket
8734    # must be given before -lnsl if both are needed.  We assume that
8735    # if connect needs -lnsl, so does gethostbyname.
8736    echo "$as_me:$LINENO: checking for connect" >&5
8737echo $ECHO_N "checking for connect... $ECHO_C" >&6
8738if test "${ac_cv_func_connect+set}" = set; then
8739  echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741  cat >conftest.$ac_ext <<_ACEOF
8742#line $LINENO "configure"
8743/* confdefs.h.  */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h.  */
8748/* System header to define __stub macros and hopefully few prototypes,
8749    which can conflict with char connect (); below.
8750    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8751    <limits.h> exists even on freestanding compilers.  */
8752#ifdef __STDC__
8753# include <limits.h>
8754#else
8755# include <assert.h>
8756#endif
8757/* Override any gcc2 internal prototype to avoid an error.  */
8758#ifdef __cplusplus
8759extern "C"
8760{
8761#endif
8762/* We use char because int might match the return type of a gcc2
8763   builtin and then its argument prototype would still apply.  */
8764char connect ();
8765/* The GNU C library defines this for functions which it implements
8766    to always fail with ENOSYS.  Some functions are actually named
8767    something starting with __ and the normal name is an alias.  */
8768#if defined (__stub_connect) || defined (__stub___connect)
8769choke me
8770#else
8771char (*f) () = connect;
8772#endif
8773#ifdef __cplusplus
8774}
8775#endif
8776
8777int
8778main ()
8779{
8780return f != connect;
8781  ;
8782  return 0;
8783}
8784_ACEOF
8785rm -f conftest.$ac_objext conftest$ac_exeext
8786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787  (eval $ac_link) 2>&5
8788  ac_status=$?
8789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790  (exit $ac_status); } &&
8791         { ac_try='test -s conftest$ac_exeext'
8792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793  (eval $ac_try) 2>&5
8794  ac_status=$?
8795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796  (exit $ac_status); }; }; then
8797  ac_cv_func_connect=yes
8798else
8799  echo "$as_me: failed program was:" >&5
8800sed 's/^/| /' conftest.$ac_ext >&5
8801
8802ac_cv_func_connect=no
8803fi
8804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8805fi
8806echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8807echo "${ECHO_T}$ac_cv_func_connect" >&6
8808
8809    if test $ac_cv_func_connect = no; then
8810      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8811echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8812if test "${ac_cv_lib_socket_connect+set}" = set; then
8813  echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815  ac_check_lib_save_LIBS=$LIBS
8816LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8817cat >conftest.$ac_ext <<_ACEOF
8818#line $LINENO "configure"
8819/* confdefs.h.  */
8820_ACEOF
8821cat confdefs.h >>conftest.$ac_ext
8822cat >>conftest.$ac_ext <<_ACEOF
8823/* end confdefs.h.  */
8824
8825/* Override any gcc2 internal prototype to avoid an error.  */
8826#ifdef __cplusplus
8827extern "C"
8828#endif
8829/* We use char because int might match the return type of a gcc2
8830   builtin and then its argument prototype would still apply.  */
8831char connect ();
8832int
8833main ()
8834{
8835connect ();
8836  ;
8837  return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext conftest$ac_exeext
8841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842  (eval $ac_link) 2>&5
8843  ac_status=$?
8844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845  (exit $ac_status); } &&
8846         { ac_try='test -s conftest$ac_exeext'
8847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848  (eval $ac_try) 2>&5
8849  ac_status=$?
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); }; }; then
8852  ac_cv_lib_socket_connect=yes
8853else
8854  echo "$as_me: failed program was:" >&5
8855sed 's/^/| /' conftest.$ac_ext >&5
8856
8857ac_cv_lib_socket_connect=no
8858fi
8859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8860LIBS=$ac_check_lib_save_LIBS
8861fi
8862echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8863echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8864if test $ac_cv_lib_socket_connect = yes; then
8865  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8866fi
8867
8868    fi
8869
8870    # Guillermo Gomez says -lposix is necessary on A/UX.
8871    echo "$as_me:$LINENO: checking for remove" >&5
8872echo $ECHO_N "checking for remove... $ECHO_C" >&6
8873if test "${ac_cv_func_remove+set}" = set; then
8874  echo $ECHO_N "(cached) $ECHO_C" >&6
8875else
8876  cat >conftest.$ac_ext <<_ACEOF
8877#line $LINENO "configure"
8878/* confdefs.h.  */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h.  */
8883/* System header to define __stub macros and hopefully few prototypes,
8884    which can conflict with char remove (); below.
8885    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8886    <limits.h> exists even on freestanding compilers.  */
8887#ifdef __STDC__
8888# include <limits.h>
8889#else
8890# include <assert.h>
8891#endif
8892/* Override any gcc2 internal prototype to avoid an error.  */
8893#ifdef __cplusplus
8894extern "C"
8895{
8896#endif
8897/* We use char because int might match the return type of a gcc2
8898   builtin and then its argument prototype would still apply.  */
8899char remove ();
8900/* The GNU C library defines this for functions which it implements
8901    to always fail with ENOSYS.  Some functions are actually named
8902    something starting with __ and the normal name is an alias.  */
8903#if defined (__stub_remove) || defined (__stub___remove)
8904choke me
8905#else
8906char (*f) () = remove;
8907#endif
8908#ifdef __cplusplus
8909}
8910#endif
8911
8912int
8913main ()
8914{
8915return f != remove;
8916  ;
8917  return 0;
8918}
8919_ACEOF
8920rm -f conftest.$ac_objext conftest$ac_exeext
8921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922  (eval $ac_link) 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); } &&
8926         { ac_try='test -s conftest$ac_exeext'
8927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928  (eval $ac_try) 2>&5
8929  ac_status=$?
8930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931  (exit $ac_status); }; }; then
8932  ac_cv_func_remove=yes
8933else
8934  echo "$as_me: failed program was:" >&5
8935sed 's/^/| /' conftest.$ac_ext >&5
8936
8937ac_cv_func_remove=no
8938fi
8939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8940fi
8941echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8942echo "${ECHO_T}$ac_cv_func_remove" >&6
8943
8944    if test $ac_cv_func_remove = no; then
8945      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8946echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8947if test "${ac_cv_lib_posix_remove+set}" = set; then
8948  echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950  ac_check_lib_save_LIBS=$LIBS
8951LIBS="-lposix  $LIBS"
8952cat >conftest.$ac_ext <<_ACEOF
8953#line $LINENO "configure"
8954/* confdefs.h.  */
8955_ACEOF
8956cat confdefs.h >>conftest.$ac_ext
8957cat >>conftest.$ac_ext <<_ACEOF
8958/* end confdefs.h.  */
8959
8960/* Override any gcc2 internal prototype to avoid an error.  */
8961#ifdef __cplusplus
8962extern "C"
8963#endif
8964/* We use char because int might match the return type of a gcc2
8965   builtin and then its argument prototype would still apply.  */
8966char remove ();
8967int
8968main ()
8969{
8970remove ();
8971  ;
8972  return 0;
8973}
8974_ACEOF
8975rm -f conftest.$ac_objext conftest$ac_exeext
8976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977  (eval $ac_link) 2>&5
8978  ac_status=$?
8979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); } &&
8981         { ac_try='test -s conftest$ac_exeext'
8982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983  (eval $ac_try) 2>&5
8984  ac_status=$?
8985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986  (exit $ac_status); }; }; then
8987  ac_cv_lib_posix_remove=yes
8988else
8989  echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992ac_cv_lib_posix_remove=no
8993fi
8994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8995LIBS=$ac_check_lib_save_LIBS
8996fi
8997echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8998echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8999if test $ac_cv_lib_posix_remove = yes; then
9000  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9001fi
9002
9003    fi
9004
9005    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9006    echo "$as_me:$LINENO: checking for shmat" >&5
9007echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9008if test "${ac_cv_func_shmat+set}" = set; then
9009  echo $ECHO_N "(cached) $ECHO_C" >&6
9010else
9011  cat >conftest.$ac_ext <<_ACEOF
9012#line $LINENO "configure"
9013/* confdefs.h.  */
9014_ACEOF
9015cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h.  */
9018/* System header to define __stub macros and hopefully few prototypes,
9019    which can conflict with char shmat (); below.
9020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9021    <limits.h> exists even on freestanding compilers.  */
9022#ifdef __STDC__
9023# include <limits.h>
9024#else
9025# include <assert.h>
9026#endif
9027/* Override any gcc2 internal prototype to avoid an error.  */
9028#ifdef __cplusplus
9029extern "C"
9030{
9031#endif
9032/* We use char because int might match the return type of a gcc2
9033   builtin and then its argument prototype would still apply.  */
9034char shmat ();
9035/* The GNU C library defines this for functions which it implements
9036    to always fail with ENOSYS.  Some functions are actually named
9037    something starting with __ and the normal name is an alias.  */
9038#if defined (__stub_shmat) || defined (__stub___shmat)
9039choke me
9040#else
9041char (*f) () = shmat;
9042#endif
9043#ifdef __cplusplus
9044}
9045#endif
9046
9047int
9048main ()
9049{
9050return f != shmat;
9051  ;
9052  return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext conftest$ac_exeext
9056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057  (eval $ac_link) 2>&5
9058  ac_status=$?
9059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060  (exit $ac_status); } &&
9061         { ac_try='test -s conftest$ac_exeext'
9062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063  (eval $ac_try) 2>&5
9064  ac_status=$?
9065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066  (exit $ac_status); }; }; then
9067  ac_cv_func_shmat=yes
9068else
9069  echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072ac_cv_func_shmat=no
9073fi
9074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9075fi
9076echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9077echo "${ECHO_T}$ac_cv_func_shmat" >&6
9078
9079    if test $ac_cv_func_shmat = no; then
9080      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9081echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9082if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9083  echo $ECHO_N "(cached) $ECHO_C" >&6
9084else
9085  ac_check_lib_save_LIBS=$LIBS
9086LIBS="-lipc  $LIBS"
9087cat >conftest.$ac_ext <<_ACEOF
9088#line $LINENO "configure"
9089/* confdefs.h.  */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h.  */
9094
9095/* Override any gcc2 internal prototype to avoid an error.  */
9096#ifdef __cplusplus
9097extern "C"
9098#endif
9099/* We use char because int might match the return type of a gcc2
9100   builtin and then its argument prototype would still apply.  */
9101char shmat ();
9102int
9103main ()
9104{
9105shmat ();
9106  ;
9107  return 0;
9108}
9109_ACEOF
9110rm -f conftest.$ac_objext conftest$ac_exeext
9111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112  (eval $ac_link) 2>&5
9113  ac_status=$?
9114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115  (exit $ac_status); } &&
9116         { ac_try='test -s conftest$ac_exeext'
9117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118  (eval $ac_try) 2>&5
9119  ac_status=$?
9120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121  (exit $ac_status); }; }; then
9122  ac_cv_lib_ipc_shmat=yes
9123else
9124  echo "$as_me: failed program was:" >&5
9125sed 's/^/| /' conftest.$ac_ext >&5
9126
9127ac_cv_lib_ipc_shmat=no
9128fi
9129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9130LIBS=$ac_check_lib_save_LIBS
9131fi
9132echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9133echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9134if test $ac_cv_lib_ipc_shmat = yes; then
9135  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9136fi
9137
9138    fi
9139  fi
9140
9141  # Check for libraries that X11R6 Xt/Xaw programs need.
9142  ac_save_LDFLAGS=$LDFLAGS
9143  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9144  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9145  # check for ICE first), but we must link in the order -lSM -lICE or
9146  # we get undefined symbols.  So assume we have SM if we have ICE.
9147  # These have to be linked with before -lX11, unlike the other
9148  # libraries we check for below, so use a different variable.
9149  # John Interrante, Karl Berry
9150  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9151echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9152if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9153  echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155  ac_check_lib_save_LIBS=$LIBS
9156LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9157cat >conftest.$ac_ext <<_ACEOF
9158#line $LINENO "configure"
9159/* confdefs.h.  */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h.  */
9164
9165/* Override any gcc2 internal prototype to avoid an error.  */
9166#ifdef __cplusplus
9167extern "C"
9168#endif
9169/* We use char because int might match the return type of a gcc2
9170   builtin and then its argument prototype would still apply.  */
9171char IceConnectionNumber ();
9172int
9173main ()
9174{
9175IceConnectionNumber ();
9176  ;
9177  return 0;
9178}
9179_ACEOF
9180rm -f conftest.$ac_objext conftest$ac_exeext
9181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182  (eval $ac_link) 2>&5
9183  ac_status=$?
9184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185  (exit $ac_status); } &&
9186         { ac_try='test -s conftest$ac_exeext'
9187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188  (eval $ac_try) 2>&5
9189  ac_status=$?
9190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191  (exit $ac_status); }; }; then
9192  ac_cv_lib_ICE_IceConnectionNumber=yes
9193else
9194  echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197ac_cv_lib_ICE_IceConnectionNumber=no
9198fi
9199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9200LIBS=$ac_check_lib_save_LIBS
9201fi
9202echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9203echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9204if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9205  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9206fi
9207
9208  LDFLAGS=$ac_save_LDFLAGS
9209
9210fi
9211
9212if test x"$no_x" = xyes; then
9213      { { echo "$as_me:$LINENO: error: Can not find X11 development headers or libraries." >&5
9214echo "$as_me: error: Can not find X11 development headers or libraries." >&2;}
9215   { (exit 1); exit 1; }; }
9216fi
9217
9218# AC_CHECK_HEADER(GL/gl.h)
9219# AC_CHECK_HEADER(GL/glut.h)
9220
9221# configure seems to work best when tested subroutines take no arguments
9222echo "$as_me:$LINENO: checking for glGetError in -lGL" >&5
9223echo $ECHO_N "checking for glGetError in -lGL... $ECHO_C" >&6
9224if test "${ac_cv_lib_GL_glGetError+set}" = set; then
9225  echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227  ac_check_lib_save_LIBS=$LIBS
9228LIBS="-lGL $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9229cat >conftest.$ac_ext <<_ACEOF
9230#line $LINENO "configure"
9231/* confdefs.h.  */
9232_ACEOF
9233cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h.  */
9236
9237/* Override any gcc2 internal prototype to avoid an error.  */
9238#ifdef __cplusplus
9239extern "C"
9240#endif
9241/* We use char because int might match the return type of a gcc2
9242   builtin and then its argument prototype would still apply.  */
9243char glGetError ();
9244int
9245main ()
9246{
9247glGetError ();
9248  ;
9249  return 0;
9250}
9251_ACEOF
9252rm -f conftest.$ac_objext conftest$ac_exeext
9253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254  (eval $ac_link) 2>&5
9255  ac_status=$?
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); } &&
9258         { ac_try='test -s conftest$ac_exeext'
9259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260  (eval $ac_try) 2>&5
9261  ac_status=$?
9262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263  (exit $ac_status); }; }; then
9264  ac_cv_lib_GL_glGetError=yes
9265else
9266  echo "$as_me: failed program was:" >&5
9267sed 's/^/| /' conftest.$ac_ext >&5
9268
9269ac_cv_lib_GL_glGetError=no
9270fi
9271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9272LIBS=$ac_check_lib_save_LIBS
9273fi
9274echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glGetError" >&5
9275echo "${ECHO_T}$ac_cv_lib_GL_glGetError" >&6
9276if test $ac_cv_lib_GL_glGetError = yes; then
9277  X_LIBS="-lGL $X_LIBS"
9278else
9279  { { echo "$as_me:$LINENO: error: Cannot find required GL library" >&5
9280echo "$as_me: error: Cannot find required GL library" >&2;}
9281   { (exit 1); exit 1; }; }
9282fi
9283
9284
9285echo "$as_me:$LINENO: checking for gluNewQuadric in -lGLU" >&5
9286echo $ECHO_N "checking for gluNewQuadric in -lGLU... $ECHO_C" >&6
9287if test "${ac_cv_lib_GLU_gluNewQuadric+set}" = set; then
9288  echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290  ac_check_lib_save_LIBS=$LIBS
9291LIBS="-lGLU $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9292cat >conftest.$ac_ext <<_ACEOF
9293#line $LINENO "configure"
9294/* confdefs.h.  */
9295_ACEOF
9296cat confdefs.h >>conftest.$ac_ext
9297cat >>conftest.$ac_ext <<_ACEOF
9298/* end confdefs.h.  */
9299
9300/* Override any gcc2 internal prototype to avoid an error.  */
9301#ifdef __cplusplus
9302extern "C"
9303#endif
9304/* We use char because int might match the return type of a gcc2
9305   builtin and then its argument prototype would still apply.  */
9306char gluNewQuadric ();
9307int
9308main ()
9309{
9310gluNewQuadric ();
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315rm -f conftest.$ac_objext conftest$ac_exeext
9316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317  (eval $ac_link) 2>&5
9318  ac_status=$?
9319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320  (exit $ac_status); } &&
9321         { ac_try='test -s conftest$ac_exeext'
9322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323  (eval $ac_try) 2>&5
9324  ac_status=$?
9325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326  (exit $ac_status); }; }; then
9327  ac_cv_lib_GLU_gluNewQuadric=yes
9328else
9329  echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332ac_cv_lib_GLU_gluNewQuadric=no
9333fi
9334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9335LIBS=$ac_check_lib_save_LIBS
9336fi
9337echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluNewQuadric" >&5
9338echo "${ECHO_T}$ac_cv_lib_GLU_gluNewQuadric" >&6
9339if test $ac_cv_lib_GLU_gluNewQuadric = yes; then
9340  X_LIBS="-lGLU $X_LIBS"
9341else
9342  { { echo "$as_me:$LINENO: error: Cannot find required GLU library" >&5
9343echo "$as_me: error: Cannot find required GLU library" >&2;}
9344   { (exit 1); exit 1; }; }
9345fi
9346
9347
9348# ----------------------------------------------------------
9349# Newest versions of glut require Xmu, which doesn't show up
9350# by default in X_LIBS
9351echo "$as_me:$LINENO: checking for XmuLookupStandardColormap in -lXmu" >&5
9352echo $ECHO_N "checking for XmuLookupStandardColormap in -lXmu... $ECHO_C" >&6
9353if test "${ac_cv_lib_Xmu_XmuLookupStandardColormap+set}" = set; then
9354  echo $ECHO_N "(cached) $ECHO_C" >&6
9355else
9356  ac_check_lib_save_LIBS=$LIBS
9357LIBS="-lXmu $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9358cat >conftest.$ac_ext <<_ACEOF
9359#line $LINENO "configure"
9360/* confdefs.h.  */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h.  */
9365
9366/* Override any gcc2 internal prototype to avoid an error.  */
9367#ifdef __cplusplus
9368extern "C"
9369#endif
9370/* We use char because int might match the return type of a gcc2
9371   builtin and then its argument prototype would still apply.  */
9372char XmuLookupStandardColormap ();
9373int
9374main ()
9375{
9376XmuLookupStandardColormap ();
9377  ;
9378  return 0;
9379}
9380_ACEOF
9381rm -f conftest.$ac_objext conftest$ac_exeext
9382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383  (eval $ac_link) 2>&5
9384  ac_status=$?
9385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386  (exit $ac_status); } &&
9387         { ac_try='test -s conftest$ac_exeext'
9388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389  (eval $ac_try) 2>&5
9390  ac_status=$?
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); }; }; then
9393  ac_cv_lib_Xmu_XmuLookupStandardColormap=yes
9394else
9395  echo "$as_me: failed program was:" >&5
9396sed 's/^/| /' conftest.$ac_ext >&5
9397
9398ac_cv_lib_Xmu_XmuLookupStandardColormap=no
9399fi
9400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9401LIBS=$ac_check_lib_save_LIBS
9402fi
9403echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuLookupStandardColormap" >&5
9404echo "${ECHO_T}$ac_cv_lib_Xmu_XmuLookupStandardColormap" >&6
9405if test $ac_cv_lib_Xmu_XmuLookupStandardColormap = yes; then
9406  X_LIBS="-lXmu $X_LIBS"
9407else
9408  { { echo "$as_me:$LINENO: error: Cannot find required Xmu library" >&5
9409echo "$as_me: error: Cannot find required Xmu library" >&2;}
9410   { (exit 1); exit 1; }; }
9411fi
9412
9413
9414echo "$as_me:$LINENO: checking for XListInputDevices in -lXi" >&5
9415echo $ECHO_N "checking for XListInputDevices in -lXi... $ECHO_C" >&6
9416if test "${ac_cv_lib_Xi_XListInputDevices+set}" = set; then
9417  echo $ECHO_N "(cached) $ECHO_C" >&6
9418else
9419  ac_check_lib_save_LIBS=$LIBS
9420LIBS="-lXi $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9421cat >conftest.$ac_ext <<_ACEOF
9422#line $LINENO "configure"
9423/* confdefs.h.  */
9424_ACEOF
9425cat confdefs.h >>conftest.$ac_ext
9426cat >>conftest.$ac_ext <<_ACEOF
9427/* end confdefs.h.  */
9428
9429/* Override any gcc2 internal prototype to avoid an error.  */
9430#ifdef __cplusplus
9431extern "C"
9432#endif
9433/* We use char because int might match the return type of a gcc2
9434   builtin and then its argument prototype would still apply.  */
9435char XListInputDevices ();
9436int
9437main ()
9438{
9439XListInputDevices ();
9440  ;
9441  return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext conftest$ac_exeext
9445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446  (eval $ac_link) 2>&5
9447  ac_status=$?
9448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449  (exit $ac_status); } &&
9450         { ac_try='test -s conftest$ac_exeext'
9451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452  (eval $ac_try) 2>&5
9453  ac_status=$?
9454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455  (exit $ac_status); }; }; then
9456  ac_cv_lib_Xi_XListInputDevices=yes
9457else
9458  echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461ac_cv_lib_Xi_XListInputDevices=no
9462fi
9463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9464LIBS=$ac_check_lib_save_LIBS
9465fi
9466echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_XListInputDevices" >&5
9467echo "${ECHO_T}$ac_cv_lib_Xi_XListInputDevices" >&6
9468if test $ac_cv_lib_Xi_XListInputDevices = yes; then
9469  X_LIBS="-lXi -lXext $X_LIBS"
9470else
9471  { { echo "$as_me:$LINENO: error: Cannot find required Xi (X11 Input Extension) library" >&5
9472echo "$as_me: error: Cannot find required Xi (X11 Input Extension) library" >&2;}
9473   { (exit 1); exit 1; }; }
9474fi
9475
9476
9477# latest versions of glut also use Xi the XInput extension
9478echo "$as_me:$LINENO: checking for glutSwapBuffers in -lglut" >&5
9479echo $ECHO_N "checking for glutSwapBuffers in -lglut... $ECHO_C" >&6
9480if test "${ac_cv_lib_glut_glutSwapBuffers+set}" = set; then
9481  echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483  ac_check_lib_save_LIBS=$LIBS
9484LIBS="-lglut $X_PRE_LIBS -lXmu $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9485cat >conftest.$ac_ext <<_ACEOF
9486#line $LINENO "configure"
9487/* confdefs.h.  */
9488_ACEOF
9489cat confdefs.h >>conftest.$ac_ext
9490cat >>conftest.$ac_ext <<_ACEOF
9491/* end confdefs.h.  */
9492
9493/* Override any gcc2 internal prototype to avoid an error.  */
9494#ifdef __cplusplus
9495extern "C"
9496#endif
9497/* We use char because int might match the return type of a gcc2
9498   builtin and then its argument prototype would still apply.  */
9499char glutSwapBuffers ();
9500int
9501main ()
9502{
9503glutSwapBuffers ();
9504  ;
9505  return 0;
9506}
9507_ACEOF
9508rm -f conftest.$ac_objext conftest$ac_exeext
9509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510  (eval $ac_link) 2>&5
9511  ac_status=$?
9512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513  (exit $ac_status); } &&
9514         { ac_try='test -s conftest$ac_exeext'
9515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516  (eval $ac_try) 2>&5
9517  ac_status=$?
9518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519  (exit $ac_status); }; }; then
9520  ac_cv_lib_glut_glutSwapBuffers=yes
9521else
9522  echo "$as_me: failed program was:" >&5
9523sed 's/^/| /' conftest.$ac_ext >&5
9524
9525ac_cv_lib_glut_glutSwapBuffers=no
9526fi
9527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9528LIBS=$ac_check_lib_save_LIBS
9529fi
9530echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutSwapBuffers" >&5
9531echo "${ECHO_T}$ac_cv_lib_glut_glutSwapBuffers" >&6
9532if test $ac_cv_lib_glut_glutSwapBuffers = yes; then
9533  X_LIBS="-lglut $X_LIBS"
9534else
9535  { { echo "$as_me:$LINENO: error: Cannot find required glut library" >&5
9536echo "$as_me: error: Cannot find required glut library" >&2;}
9537   { (exit 1); exit 1; }; }
9538fi
9539
9540
9541
9542# This is how to use the variables set by AC_PATH_XTRA:
9543#       cc @X_CFLAGS@ -c -o foo.o foo.c
9544#       cc @X_LIBS@ (-lfoo...) @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
9545# (Perhaps X_LIBS should have been called X_LDFLAGS.)
9546
9547X_LIBS="-lgle $X_LIBS -lXt -lX11"
9548
9549                                                                                          ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/html/Makefile examples/Makefile man/Makefile ms-visual-c/Makefile ms-visual-c/gle/Makefile swig/Makefile"
9550          ac_config_commands="$ac_config_commands default"
9551cat >confcache <<\_ACEOF
9552# This file is a shell script that caches the results of configure
9553# tests run on this system so they can be shared between configure
9554# scripts and configure runs, see configure's option --config-cache.
9555# It is not useful on other systems.  If it contains results you don't
9556# want to keep, you may remove or edit it.
9557#
9558# config.status only pays attention to the cache file if you give it
9559# the --recheck option to rerun configure.
9560#
9561# `ac_cv_env_foo' variables (set or unset) will be overridden when
9562# loading this file, other *unset* `ac_cv_foo' will be assigned the
9563# following values.
9564
9565_ACEOF
9566
9567# The following way of writing the cache mishandles newlines in values,
9568# but we know of no workaround that is simple, portable, and efficient.
9569# So, don't put newlines in cache variables' values.
9570# Ultrix sh set writes to stderr and can't be redirected directly,
9571# and sets the high bit in the cache file unless we assign to the vars.
9572{
9573  (set) 2>&1 |
9574    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9575    *ac_space=\ *)
9576      # `set' does not quote correctly, so add quotes (double-quote
9577      # substitution turns \\\\ into \\, and sed turns \\ into \).
9578      sed -n \
9579        "s/'/'\\\\''/g;
9580    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9581      ;;
9582    *)
9583      # `set' quotes correctly as required by POSIX, so do not add quotes.
9584      sed -n \
9585        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9586      ;;
9587    esac;
9588} |
9589  sed '
9590     t clear
9591     : clear
9592     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9593     t end
9594     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9595     : end' >>confcache
9596if diff $cache_file confcache >/dev/null 2>&1; then :; else
9597  if test -w $cache_file; then
9598    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9599    cat confcache >$cache_file
9600  else
9601    echo "not updating unwritable cache $cache_file"
9602  fi
9603fi
9604rm -f confcache
9605
9606test "x$prefix" = xNONE && prefix=$ac_default_prefix
9607# Let make expand exec_prefix.
9608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9609
9610# VPATH may cause trouble with some makes, so we remove $(srcdir),
9611# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9612# trailing colons and then remove the whole line if VPATH becomes empty
9613# (actually we leave an empty line to preserve line numbers).
9614if test "x$srcdir" = x.; then
9615  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
9616s/:*\$(srcdir):*/:/;
9617s/:*\${srcdir}:*/:/;
9618s/:*@srcdir@:*/:/;
9619s/^\([^=]*=[ 	]*\):*/\1/;
9620s/:*$//;
9621s/^[^=]*=[ 	]*$//;
9622}'
9623fi
9624
9625DEFS=-DHAVE_CONFIG_H
9626
9627ac_libobjs=
9628ac_ltlibobjs=
9629for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9630  # 1. Remove the extension, and $U if already installed.
9631  ac_i=`echo "$ac_i" |
9632         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9633  # 2. Add them.
9634  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9635  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9636done
9637LIBOBJS=$ac_libobjs
9638
9639LTLIBOBJS=$ac_ltlibobjs
9640
9641
9642
9643: ${CONFIG_STATUS=./config.status}
9644ac_clean_files_save=$ac_clean_files
9645ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9646{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9647echo "$as_me: creating $CONFIG_STATUS" >&6;}
9648cat >$CONFIG_STATUS <<_ACEOF
9649#! $SHELL
9650# Generated by $as_me.
9651# Run this file to recreate the current configuration.
9652# Compiler output produced by configure, useful for debugging
9653# configure, is in config.log if it exists.
9654
9655debug=false
9656ac_cs_recheck=false
9657ac_cs_silent=false
9658SHELL=\${CONFIG_SHELL-$SHELL}
9659_ACEOF
9660
9661cat >>$CONFIG_STATUS <<\_ACEOF
9662## --------------------- ##
9663## M4sh Initialization.  ##
9664## --------------------- ##
9665
9666# Be Bourne compatible
9667if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9668  emulate sh
9669  NULLCMD=:
9670  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9671  # is contrary to our usage.  Disable this feature.
9672  alias -g '${1+"$@"}'='"$@"'
9673elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9674  set -o posix
9675fi
9676
9677# Support unset when possible.
9678if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9679  as_unset=unset
9680else
9681  as_unset=false
9682fi
9683
9684
9685# Work around bugs in pre-3.0 UWIN ksh.
9686$as_unset ENV MAIL MAILPATH
9687PS1='$ '
9688PS2='> '
9689PS4='+ '
9690
9691# NLS nuisances.
9692for as_var in \
9693  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9694  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9695  LC_TELEPHONE LC_TIME
9696do
9697  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9698    eval $as_var=C; export $as_var
9699  else
9700    $as_unset $as_var
9701  fi
9702done
9703
9704# Required to use basename.
9705if expr a : '\(a\)' >/dev/null 2>&1; then
9706  as_expr=expr
9707else
9708  as_expr=false
9709fi
9710
9711if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9712  as_basename=basename
9713else
9714  as_basename=false
9715fi
9716
9717
9718# Name of the executable.
9719as_me=`$as_basename "$0" ||
9720$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9721	 X"$0" : 'X\(//\)$' \| \
9722	 X"$0" : 'X\(/\)$' \| \
9723	 .     : '\(.\)' 2>/dev/null ||
9724echo X/"$0" |
9725    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9726  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9727  	  /^X\/\(\/\).*/{ s//\1/; q; }
9728  	  s/.*/./; q'`
9729
9730
9731# PATH needs CR, and LINENO needs CR and PATH.
9732# Avoid depending upon Character Ranges.
9733as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9734as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9735as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9736as_cr_digits='0123456789'
9737as_cr_alnum=$as_cr_Letters$as_cr_digits
9738
9739# The user is always right.
9740if test "${PATH_SEPARATOR+set}" != set; then
9741  echo "#! /bin/sh" >conf$$.sh
9742  echo  "exit 0"   >>conf$$.sh
9743  chmod +x conf$$.sh
9744  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9745    PATH_SEPARATOR=';'
9746  else
9747    PATH_SEPARATOR=:
9748  fi
9749  rm -f conf$$.sh
9750fi
9751
9752
9753  as_lineno_1=$LINENO
9754  as_lineno_2=$LINENO
9755  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9756  test "x$as_lineno_1" != "x$as_lineno_2" &&
9757  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9758  # Find who we are.  Look in the path if we contain no path at all
9759  # relative or not.
9760  case $0 in
9761    *[\\/]* ) as_myself=$0 ;;
9762    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765  IFS=$as_save_IFS
9766  test -z "$as_dir" && as_dir=.
9767  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9768done
9769
9770       ;;
9771  esac
9772  # We did not find ourselves, most probably we were run as `sh COMMAND'
9773  # in which case we are not to be found in the path.
9774  if test "x$as_myself" = x; then
9775    as_myself=$0
9776  fi
9777  if test ! -f "$as_myself"; then
9778    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9779echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9780   { (exit 1); exit 1; }; }
9781  fi
9782  case $CONFIG_SHELL in
9783  '')
9784    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9786do
9787  IFS=$as_save_IFS
9788  test -z "$as_dir" && as_dir=.
9789  for as_base in sh bash ksh sh5; do
9790	 case $as_dir in
9791	 /*)
9792	   if ("$as_dir/$as_base" -c '
9793  as_lineno_1=$LINENO
9794  as_lineno_2=$LINENO
9795  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9796  test "x$as_lineno_1" != "x$as_lineno_2" &&
9797  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9798	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9799	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9800	     CONFIG_SHELL=$as_dir/$as_base
9801	     export CONFIG_SHELL
9802	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9803	   fi;;
9804	 esac
9805       done
9806done
9807;;
9808  esac
9809
9810  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9811  # uniformly replaced by the line number.  The first 'sed' inserts a
9812  # line-number line before each line; the second 'sed' does the real
9813  # work.  The second script uses 'N' to pair each line-number line
9814  # with the numbered line, and appends trailing '-' during
9815  # substitution so that $LINENO is not a special case at line end.
9816  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9817  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9818  sed '=' <$as_myself |
9819    sed '
9820      N
9821      s,$,-,
9822      : loop
9823      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9824      t loop
9825      s,-$,,
9826      s,^['$as_cr_digits']*\n,,
9827    ' >$as_me.lineno &&
9828  chmod +x $as_me.lineno ||
9829    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9830echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9831   { (exit 1); exit 1; }; }
9832
9833  # Don't try to exec as it changes $[0], causing all sort of problems
9834  # (the dirname of $[0] is not the place where we might find the
9835  # original and so on.  Autoconf is especially sensible to this).
9836  . ./$as_me.lineno
9837  # Exit status is that of the last command.
9838  exit
9839}
9840
9841
9842case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9843  *c*,-n*) ECHO_N= ECHO_C='
9844' ECHO_T='	' ;;
9845  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9846  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9847esac
9848
9849if expr a : '\(a\)' >/dev/null 2>&1; then
9850  as_expr=expr
9851else
9852  as_expr=false
9853fi
9854
9855rm -f conf$$ conf$$.exe conf$$.file
9856echo >conf$$.file
9857if ln -s conf$$.file conf$$ 2>/dev/null; then
9858  # We could just check for DJGPP; but this test a) works b) is more generic
9859  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9860  if test -f conf$$.exe; then
9861    # Don't use ln at all; we don't have any links
9862    as_ln_s='cp -p'
9863  else
9864    as_ln_s='ln -s'
9865  fi
9866elif ln conf$$.file conf$$ 2>/dev/null; then
9867  as_ln_s=ln
9868else
9869  as_ln_s='cp -p'
9870fi
9871rm -f conf$$ conf$$.exe conf$$.file
9872
9873if mkdir -p . 2>/dev/null; then
9874  as_mkdir_p=:
9875else
9876  as_mkdir_p=false
9877fi
9878
9879as_executable_p="test -f"
9880
9881# Sed expression to map a string onto a valid CPP name.
9882as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9883
9884# Sed expression to map a string onto a valid variable name.
9885as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9886
9887
9888# IFS
9889# We need space, tab and new line, in precisely that order.
9890as_nl='
9891'
9892IFS=" 	$as_nl"
9893
9894# CDPATH.
9895$as_unset CDPATH
9896
9897exec 6>&1
9898
9899# Open the log real soon, to keep \$[0] and so on meaningful, and to
9900# report actual input values of CONFIG_FILES etc. instead of their
9901# values after options handling.  Logging --version etc. is OK.
9902exec 5>>config.log
9903{
9904  echo
9905  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9906## Running $as_me. ##
9907_ASBOX
9908} >&5
9909cat >&5 <<_CSEOF
9910
9911This file was extended by $as_me, which was
9912generated by GNU Autoconf 2.57.  Invocation command line was
9913
9914  CONFIG_FILES    = $CONFIG_FILES
9915  CONFIG_HEADERS  = $CONFIG_HEADERS
9916  CONFIG_LINKS    = $CONFIG_LINKS
9917  CONFIG_COMMANDS = $CONFIG_COMMANDS
9918  $ $0 $@
9919
9920_CSEOF
9921echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9922echo >&5
9923_ACEOF
9924
9925# Files that config.status was made for.
9926if test -n "$ac_config_files"; then
9927  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9928fi
9929
9930if test -n "$ac_config_headers"; then
9931  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9932fi
9933
9934if test -n "$ac_config_links"; then
9935  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9936fi
9937
9938if test -n "$ac_config_commands"; then
9939  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9940fi
9941
9942cat >>$CONFIG_STATUS <<\_ACEOF
9943
9944ac_cs_usage="\
9945\`$as_me' instantiates files from templates according to the
9946current configuration.
9947
9948Usage: $0 [OPTIONS] [FILE]...
9949
9950  -h, --help       print this help, then exit
9951  -V, --version    print version number, then exit
9952  -q, --quiet      do not print progress messages
9953  -d, --debug      don't remove temporary files
9954      --recheck    update $as_me by reconfiguring in the same conditions
9955  --file=FILE[:TEMPLATE]
9956                   instantiate the configuration file FILE
9957  --header=FILE[:TEMPLATE]
9958                   instantiate the configuration header FILE
9959
9960Configuration files:
9961$config_files
9962
9963Configuration headers:
9964$config_headers
9965
9966Configuration commands:
9967$config_commands
9968
9969Report bugs to <bug-autoconf@gnu.org>."
9970_ACEOF
9971
9972cat >>$CONFIG_STATUS <<_ACEOF
9973ac_cs_version="\\
9974config.status
9975configured by $0, generated by GNU Autoconf 2.57,
9976  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9977
9978Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9979Free Software Foundation, Inc.
9980This config.status script is free software; the Free Software Foundation
9981gives unlimited permission to copy, distribute and modify it."
9982srcdir=$srcdir
9983INSTALL="$INSTALL"
9984_ACEOF
9985
9986cat >>$CONFIG_STATUS <<\_ACEOF
9987# If no file are specified by the user, then we need to provide default
9988# value.  By we need to know if files were specified by the user.
9989ac_need_defaults=:
9990while test $# != 0
9991do
9992  case $1 in
9993  --*=*)
9994    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9995    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9996    ac_shift=:
9997    ;;
9998  -*)
9999    ac_option=$1
10000    ac_optarg=$2
10001    ac_shift=shift
10002    ;;
10003  *) # This is not an option, so the user has probably given explicit
10004     # arguments.
10005     ac_option=$1
10006     ac_need_defaults=false;;
10007  esac
10008
10009  case $ac_option in
10010  # Handling of the options.
10011_ACEOF
10012cat >>$CONFIG_STATUS <<\_ACEOF
10013  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10014    ac_cs_recheck=: ;;
10015  --version | --vers* | -V )
10016    echo "$ac_cs_version"; exit 0 ;;
10017  --he | --h)
10018    # Conflict between --help and --header
10019    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10020Try \`$0 --help' for more information." >&5
10021echo "$as_me: error: ambiguous option: $1
10022Try \`$0 --help' for more information." >&2;}
10023   { (exit 1); exit 1; }; };;
10024  --help | --hel | -h )
10025    echo "$ac_cs_usage"; exit 0 ;;
10026  --debug | --d* | -d )
10027    debug=: ;;
10028  --file | --fil | --fi | --f )
10029    $ac_shift
10030    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10031    ac_need_defaults=false;;
10032  --header | --heade | --head | --hea )
10033    $ac_shift
10034    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10035    ac_need_defaults=false;;
10036  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10037  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10038    ac_cs_silent=: ;;
10039
10040  # This is an error.
10041  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10042Try \`$0 --help' for more information." >&5
10043echo "$as_me: error: unrecognized option: $1
10044Try \`$0 --help' for more information." >&2;}
10045   { (exit 1); exit 1; }; } ;;
10046
10047  *) ac_config_targets="$ac_config_targets $1" ;;
10048
10049  esac
10050  shift
10051done
10052
10053ac_configure_extra_args=
10054
10055if $ac_cs_silent; then
10056  exec 6>/dev/null
10057  ac_configure_extra_args="$ac_configure_extra_args --silent"
10058fi
10059
10060_ACEOF
10061cat >>$CONFIG_STATUS <<_ACEOF
10062if \$ac_cs_recheck; then
10063  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10064  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10065fi
10066
10067_ACEOF
10068
10069cat >>$CONFIG_STATUS <<_ACEOF
10070#
10071# INIT-COMMANDS section.
10072#
10073
10074
10075
10076_ACEOF
10077
10078
10079
10080cat >>$CONFIG_STATUS <<\_ACEOF
10081for ac_config_target in $ac_config_targets
10082do
10083  case "$ac_config_target" in
10084  # Handling of arguments.
10085  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10086  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10087  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10088  "doc/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
10089  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
10090  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10091  "ms-visual-c/Makefile" ) CONFIG_FILES="$CONFIG_FILES ms-visual-c/Makefile" ;;
10092  "ms-visual-c/gle/Makefile" ) CONFIG_FILES="$CONFIG_FILES ms-visual-c/gle/Makefile" ;;
10093  "swig/Makefile" ) CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
10094  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10095  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10096  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10097  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10098echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10099   { (exit 1); exit 1; }; };;
10100  esac
10101done
10102
10103# If the user did not use the arguments to specify the items to instantiate,
10104# then the envvar interface is used.  Set only those that are not.
10105# We use the long form for the default assignment because of an extremely
10106# bizarre bug on SunOS 4.1.3.
10107if $ac_need_defaults; then
10108  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10109  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10110  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10111fi
10112
10113# Have a temporary directory for convenience.  Make it in the build tree
10114# simply because there is no reason to put it here, and in addition,
10115# creating and moving files from /tmp can sometimes cause problems.
10116# Create a temporary directory, and hook for its removal unless debugging.
10117$debug ||
10118{
10119  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10120  trap '{ (exit 1); exit 1; }' 1 2 13 15
10121}
10122
10123# Create a (secure) tmp directory for tmp files.
10124
10125{
10126  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10127  test -n "$tmp" && test -d "$tmp"
10128}  ||
10129{
10130  tmp=./confstat$$-$RANDOM
10131  (umask 077 && mkdir $tmp)
10132} ||
10133{
10134   echo "$me: cannot create a temporary directory in ." >&2
10135   { (exit 1); exit 1; }
10136}
10137
10138_ACEOF
10139
10140cat >>$CONFIG_STATUS <<_ACEOF
10141
10142#
10143# CONFIG_FILES section.
10144#
10145
10146# No need to generate the scripts if there are no CONFIG_FILES.
10147# This happens for instance when ./config.status config.h
10148if test -n "\$CONFIG_FILES"; then
10149  # Protect against being on the right side of a sed subst in config.status.
10150  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10151   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10152s,@SHELL@,$SHELL,;t t
10153s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10154s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10155s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10156s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10157s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10158s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10159s,@exec_prefix@,$exec_prefix,;t t
10160s,@prefix@,$prefix,;t t
10161s,@program_transform_name@,$program_transform_name,;t t
10162s,@bindir@,$bindir,;t t
10163s,@sbindir@,$sbindir,;t t
10164s,@libexecdir@,$libexecdir,;t t
10165s,@datadir@,$datadir,;t t
10166s,@sysconfdir@,$sysconfdir,;t t
10167s,@sharedstatedir@,$sharedstatedir,;t t
10168s,@localstatedir@,$localstatedir,;t t
10169s,@libdir@,$libdir,;t t
10170s,@includedir@,$includedir,;t t
10171s,@oldincludedir@,$oldincludedir,;t t
10172s,@infodir@,$infodir,;t t
10173s,@mandir@,$mandir,;t t
10174s,@build_alias@,$build_alias,;t t
10175s,@host_alias@,$host_alias,;t t
10176s,@target_alias@,$target_alias,;t t
10177s,@DEFS@,$DEFS,;t t
10178s,@ECHO_C@,$ECHO_C,;t t
10179s,@ECHO_N@,$ECHO_N,;t t
10180s,@ECHO_T@,$ECHO_T,;t t
10181s,@LIBS@,$LIBS,;t t
10182s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10183s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10184s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10185s,@PACKAGE@,$PACKAGE,;t t
10186s,@VERSION@,$VERSION,;t t
10187s,@ACLOCAL@,$ACLOCAL,;t t
10188s,@AUTOCONF@,$AUTOCONF,;t t
10189s,@AUTOMAKE@,$AUTOMAKE,;t t
10190s,@AUTOHEADER@,$AUTOHEADER,;t t
10191s,@MAKEINFO@,$MAKEINFO,;t t
10192s,@SET_MAKE@,$SET_MAKE,;t t
10193s,@CC@,$CC,;t t
10194s,@CFLAGS@,$CFLAGS,;t t
10195s,@LDFLAGS@,$LDFLAGS,;t t
10196s,@CPPFLAGS@,$CPPFLAGS,;t t
10197s,@ac_ct_CC@,$ac_ct_CC,;t t
10198s,@EXEEXT@,$EXEEXT,;t t
10199s,@OBJEXT@,$OBJEXT,;t t
10200s,@build@,$build,;t t
10201s,@build_cpu@,$build_cpu,;t t
10202s,@build_vendor@,$build_vendor,;t t
10203s,@build_os@,$build_os,;t t
10204s,@host@,$host,;t t
10205s,@host_cpu@,$host_cpu,;t t
10206s,@host_vendor@,$host_vendor,;t t
10207s,@host_os@,$host_os,;t t
10208s,@LN_S@,$LN_S,;t t
10209s,@ECHO@,$ECHO,;t t
10210s,@RANLIB@,$RANLIB,;t t
10211s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10212s,@STRIP@,$STRIP,;t t
10213s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10214s,@CPP@,$CPP,;t t
10215s,@EGREP@,$EGREP,;t t
10216s,@LIBTOOL@,$LIBTOOL,;t t
10217s,@X_CFLAGS@,$X_CFLAGS,;t t
10218s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10219s,@X_LIBS@,$X_LIBS,;t t
10220s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10221s,@LIBOBJS@,$LIBOBJS,;t t
10222s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10223CEOF
10224
10225_ACEOF
10226
10227  cat >>$CONFIG_STATUS <<\_ACEOF
10228  # Split the substitutions into bite-sized pieces for seds with
10229  # small command number limits, like on Digital OSF/1 and HP-UX.
10230  ac_max_sed_lines=48
10231  ac_sed_frag=1 # Number of current file.
10232  ac_beg=1 # First line for current file.
10233  ac_end=$ac_max_sed_lines # Line after last line for current file.
10234  ac_more_lines=:
10235  ac_sed_cmds=
10236  while $ac_more_lines; do
10237    if test $ac_beg -gt 1; then
10238      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10239    else
10240      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10241    fi
10242    if test ! -s $tmp/subs.frag; then
10243      ac_more_lines=false
10244    else
10245      # The purpose of the label and of the branching condition is to
10246      # speed up the sed processing (if there are no `@' at all, there
10247      # is no need to browse any of the substitutions).
10248      # These are the two extra sed commands mentioned above.
10249      (echo ':t
10250  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10251      if test -z "$ac_sed_cmds"; then
10252  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10253      else
10254  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10255      fi
10256      ac_sed_frag=`expr $ac_sed_frag + 1`
10257      ac_beg=$ac_end
10258      ac_end=`expr $ac_end + $ac_max_sed_lines`
10259    fi
10260  done
10261  if test -z "$ac_sed_cmds"; then
10262    ac_sed_cmds=cat
10263  fi
10264fi # test -n "$CONFIG_FILES"
10265
10266_ACEOF
10267cat >>$CONFIG_STATUS <<\_ACEOF
10268for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10269  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10270  case $ac_file in
10271  - | *:- | *:-:* ) # input from stdin
10272        cat >$tmp/stdin
10273        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10274        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10275  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10276        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10277  * )   ac_file_in=$ac_file.in ;;
10278  esac
10279
10280  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10281  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10282$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10283         X"$ac_file" : 'X\(//\)[^/]' \| \
10284         X"$ac_file" : 'X\(//\)$' \| \
10285         X"$ac_file" : 'X\(/\)' \| \
10286         .     : '\(.\)' 2>/dev/null ||
10287echo X"$ac_file" |
10288    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10289  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10290  	  /^X\(\/\/\)$/{ s//\1/; q; }
10291  	  /^X\(\/\).*/{ s//\1/; q; }
10292  	  s/.*/./; q'`
10293  { if $as_mkdir_p; then
10294    mkdir -p "$ac_dir"
10295  else
10296    as_dir="$ac_dir"
10297    as_dirs=
10298    while test ! -d "$as_dir"; do
10299      as_dirs="$as_dir $as_dirs"
10300      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10302         X"$as_dir" : 'X\(//\)[^/]' \| \
10303         X"$as_dir" : 'X\(//\)$' \| \
10304         X"$as_dir" : 'X\(/\)' \| \
10305         .     : '\(.\)' 2>/dev/null ||
10306echo X"$as_dir" |
10307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10308  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10309  	  /^X\(\/\/\)$/{ s//\1/; q; }
10310  	  /^X\(\/\).*/{ s//\1/; q; }
10311  	  s/.*/./; q'`
10312    done
10313    test ! -n "$as_dirs" || mkdir $as_dirs
10314  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10315echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10316   { (exit 1); exit 1; }; }; }
10317
10318  ac_builddir=.
10319
10320if test "$ac_dir" != .; then
10321  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10322  # A "../" for each directory in $ac_dir_suffix.
10323  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10324else
10325  ac_dir_suffix= ac_top_builddir=
10326fi
10327
10328case $srcdir in
10329  .)  # No --srcdir option.  We are building in place.
10330    ac_srcdir=.
10331    if test -z "$ac_top_builddir"; then
10332       ac_top_srcdir=.
10333    else
10334       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10335    fi ;;
10336  [\\/]* | ?:[\\/]* )  # Absolute path.
10337    ac_srcdir=$srcdir$ac_dir_suffix;
10338    ac_top_srcdir=$srcdir ;;
10339  *) # Relative path.
10340    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10341    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10342esac
10343# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10344# absolute.
10345ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10346ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10347ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10348ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10349
10350
10351  case $INSTALL in
10352  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10353  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10354  esac
10355
10356  if test x"$ac_file" != x-; then
10357    { echo "$as_me:$LINENO: creating $ac_file" >&5
10358echo "$as_me: creating $ac_file" >&6;}
10359    rm -f "$ac_file"
10360  fi
10361  # Let's still pretend it is `configure' which instantiates (i.e., don't
10362  # use $as_me), people would be surprised to read:
10363  #    /* config.h.  Generated by config.status.  */
10364  if test x"$ac_file" = x-; then
10365    configure_input=
10366  else
10367    configure_input="$ac_file.  "
10368  fi
10369  configure_input=$configure_input"Generated from `echo $ac_file_in |
10370                                     sed 's,.*/,,'` by configure."
10371
10372  # First look for the input files in the build tree, otherwise in the
10373  # src tree.
10374  ac_file_inputs=`IFS=:
10375    for f in $ac_file_in; do
10376      case $f in
10377      -) echo $tmp/stdin ;;
10378      [\\/$]*)
10379         # Absolute (can't be DOS-style, as IFS=:)
10380         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10381echo "$as_me: error: cannot find input file: $f" >&2;}
10382   { (exit 1); exit 1; }; }
10383         echo $f;;
10384      *) # Relative
10385         if test -f "$f"; then
10386           # Build tree
10387           echo $f
10388         elif test -f "$srcdir/$f"; then
10389           # Source tree
10390           echo $srcdir/$f
10391         else
10392           # /dev/null tree
10393           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10394echo "$as_me: error: cannot find input file: $f" >&2;}
10395   { (exit 1); exit 1; }; }
10396         fi;;
10397      esac
10398    done` || { (exit 1); exit 1; }
10399_ACEOF
10400cat >>$CONFIG_STATUS <<_ACEOF
10401  sed "$ac_vpsub
10402$extrasub
10403_ACEOF
10404cat >>$CONFIG_STATUS <<\_ACEOF
10405:t
10406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10407s,@configure_input@,$configure_input,;t t
10408s,@srcdir@,$ac_srcdir,;t t
10409s,@abs_srcdir@,$ac_abs_srcdir,;t t
10410s,@top_srcdir@,$ac_top_srcdir,;t t
10411s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10412s,@builddir@,$ac_builddir,;t t
10413s,@abs_builddir@,$ac_abs_builddir,;t t
10414s,@top_builddir@,$ac_top_builddir,;t t
10415s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10416s,@INSTALL@,$ac_INSTALL,;t t
10417" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10418  rm -f $tmp/stdin
10419  if test x"$ac_file" != x-; then
10420    mv $tmp/out $ac_file
10421  else
10422    cat $tmp/out
10423    rm -f $tmp/out
10424  fi
10425
10426done
10427_ACEOF
10428cat >>$CONFIG_STATUS <<\_ACEOF
10429
10430#
10431# CONFIG_HEADER section.
10432#
10433
10434# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10435# NAME is the cpp macro being defined and VALUE is the value it is being given.
10436#
10437# ac_d sets the value in "#define NAME VALUE" lines.
10438ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
10439ac_dB='[ 	].*$,\1#\2'
10440ac_dC=' '
10441ac_dD=',;t'
10442# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10443ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
10444ac_uB='$,\1#\2define\3'
10445ac_uC=' '
10446ac_uD=',;t'
10447
10448for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10449  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10450  case $ac_file in
10451  - | *:- | *:-:* ) # input from stdin
10452        cat >$tmp/stdin
10453        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10454        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10455  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10456        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10457  * )   ac_file_in=$ac_file.in ;;
10458  esac
10459
10460  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10461echo "$as_me: creating $ac_file" >&6;}
10462
10463  # First look for the input files in the build tree, otherwise in the
10464  # src tree.
10465  ac_file_inputs=`IFS=:
10466    for f in $ac_file_in; do
10467      case $f in
10468      -) echo $tmp/stdin ;;
10469      [\\/$]*)
10470         # Absolute (can't be DOS-style, as IFS=:)
10471         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10472echo "$as_me: error: cannot find input file: $f" >&2;}
10473   { (exit 1); exit 1; }; }
10474         echo $f;;
10475      *) # Relative
10476         if test -f "$f"; then
10477           # Build tree
10478           echo $f
10479         elif test -f "$srcdir/$f"; then
10480           # Source tree
10481           echo $srcdir/$f
10482         else
10483           # /dev/null tree
10484           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10485echo "$as_me: error: cannot find input file: $f" >&2;}
10486   { (exit 1); exit 1; }; }
10487         fi;;
10488      esac
10489    done` || { (exit 1); exit 1; }
10490  # Remove the trailing spaces.
10491  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
10492
10493_ACEOF
10494
10495# Transform confdefs.h into two sed scripts, `conftest.defines' and
10496# `conftest.undefs', that substitutes the proper values into
10497# config.h.in to produce config.h.  The first handles `#define'
10498# templates, and the second `#undef' templates.
10499# And first: Protect against being on the right side of a sed subst in
10500# config.status.  Protect against being in an unquoted here document
10501# in config.status.
10502rm -f conftest.defines conftest.undefs
10503# Using a here document instead of a string reduces the quoting nightmare.
10504# Putting comments in sed scripts is not portable.
10505#
10506# `end' is used to avoid that the second main sed command (meant for
10507# 0-ary CPP macros) applies to n-ary macro definitions.
10508# See the Autoconf documentation for `clear'.
10509cat >confdef2sed.sed <<\_ACEOF
10510s/[\\&,]/\\&/g
10511s,[\\$`],\\&,g
10512t clear
10513: clear
10514s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10515t end
10516s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10517: end
10518_ACEOF
10519# If some macros were called several times there might be several times
10520# the same #defines, which is useless.  Nevertheless, we may not want to
10521# sort them, since we want the *last* AC-DEFINE to be honored.
10522uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10523sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10524rm -f confdef2sed.sed
10525
10526# This sed command replaces #undef with comments.  This is necessary, for
10527# example, in the case of _POSIX_SOURCE, which is predefined and required
10528# on some systems where configure will not decide to define it.
10529cat >>conftest.undefs <<\_ACEOF
10530s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10531_ACEOF
10532
10533# Break up conftest.defines because some shells have a limit on the size
10534# of here documents, and old seds have small limits too (100 cmds).
10535echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10536echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10537echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10538echo '  :' >>$CONFIG_STATUS
10539rm -f conftest.tail
10540while grep . conftest.defines >/dev/null
10541do
10542  # Write a limited-size here document to $tmp/defines.sed.
10543  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10544  # Speed up: don't consider the non `#define' lines.
10545  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
10546  # Work around the forget-to-reset-the-flag bug.
10547  echo 't clr' >>$CONFIG_STATUS
10548  echo ': clr' >>$CONFIG_STATUS
10549  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10550  echo 'CEOF
10551  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10552  rm -f $tmp/in
10553  mv $tmp/out $tmp/in
10554' >>$CONFIG_STATUS
10555  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10556  rm -f conftest.defines
10557  mv conftest.tail conftest.defines
10558done
10559rm -f conftest.defines
10560echo '  fi # grep' >>$CONFIG_STATUS
10561echo >>$CONFIG_STATUS
10562
10563# Break up conftest.undefs because some shells have a limit on the size
10564# of here documents, and old seds have small limits too (100 cmds).
10565echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10566rm -f conftest.tail
10567while grep . conftest.undefs >/dev/null
10568do
10569  # Write a limited-size here document to $tmp/undefs.sed.
10570  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10571  # Speed up: don't consider the non `#undef'
10572  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
10573  # Work around the forget-to-reset-the-flag bug.
10574  echo 't clr' >>$CONFIG_STATUS
10575  echo ': clr' >>$CONFIG_STATUS
10576  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10577  echo 'CEOF
10578  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10579  rm -f $tmp/in
10580  mv $tmp/out $tmp/in
10581' >>$CONFIG_STATUS
10582  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10583  rm -f conftest.undefs
10584  mv conftest.tail conftest.undefs
10585done
10586rm -f conftest.undefs
10587
10588cat >>$CONFIG_STATUS <<\_ACEOF
10589  # Let's still pretend it is `configure' which instantiates (i.e., don't
10590  # use $as_me), people would be surprised to read:
10591  #    /* config.h.  Generated by config.status.  */
10592  if test x"$ac_file" = x-; then
10593    echo "/* Generated by configure.  */" >$tmp/config.h
10594  else
10595    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10596  fi
10597  cat $tmp/in >>$tmp/config.h
10598  rm -f $tmp/in
10599  if test x"$ac_file" != x-; then
10600    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10601      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10602echo "$as_me: $ac_file is unchanged" >&6;}
10603    else
10604      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10605$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10606         X"$ac_file" : 'X\(//\)[^/]' \| \
10607         X"$ac_file" : 'X\(//\)$' \| \
10608         X"$ac_file" : 'X\(/\)' \| \
10609         .     : '\(.\)' 2>/dev/null ||
10610echo X"$ac_file" |
10611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10612  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10613  	  /^X\(\/\/\)$/{ s//\1/; q; }
10614  	  /^X\(\/\).*/{ s//\1/; q; }
10615  	  s/.*/./; q'`
10616      { if $as_mkdir_p; then
10617    mkdir -p "$ac_dir"
10618  else
10619    as_dir="$ac_dir"
10620    as_dirs=
10621    while test ! -d "$as_dir"; do
10622      as_dirs="$as_dir $as_dirs"
10623      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10625         X"$as_dir" : 'X\(//\)[^/]' \| \
10626         X"$as_dir" : 'X\(//\)$' \| \
10627         X"$as_dir" : 'X\(/\)' \| \
10628         .     : '\(.\)' 2>/dev/null ||
10629echo X"$as_dir" |
10630    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10631  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10632  	  /^X\(\/\/\)$/{ s//\1/; q; }
10633  	  /^X\(\/\).*/{ s//\1/; q; }
10634  	  s/.*/./; q'`
10635    done
10636    test ! -n "$as_dirs" || mkdir $as_dirs
10637  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10638echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10639   { (exit 1); exit 1; }; }; }
10640
10641      rm -f $ac_file
10642      mv $tmp/config.h $ac_file
10643    fi
10644  else
10645    cat $tmp/config.h
10646    rm -f $tmp/config.h
10647  fi
10648done
10649_ACEOF
10650cat >>$CONFIG_STATUS <<\_ACEOF
10651
10652#
10653# CONFIG_COMMANDS section.
10654#
10655for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10656  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10657  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10658  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10659$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10660         X"$ac_dest" : 'X\(//\)[^/]' \| \
10661         X"$ac_dest" : 'X\(//\)$' \| \
10662         X"$ac_dest" : 'X\(/\)' \| \
10663         .     : '\(.\)' 2>/dev/null ||
10664echo X"$ac_dest" |
10665    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10666  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10667  	  /^X\(\/\/\)$/{ s//\1/; q; }
10668  	  /^X\(\/\).*/{ s//\1/; q; }
10669  	  s/.*/./; q'`
10670  ac_builddir=.
10671
10672if test "$ac_dir" != .; then
10673  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10674  # A "../" for each directory in $ac_dir_suffix.
10675  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10676else
10677  ac_dir_suffix= ac_top_builddir=
10678fi
10679
10680case $srcdir in
10681  .)  # No --srcdir option.  We are building in place.
10682    ac_srcdir=.
10683    if test -z "$ac_top_builddir"; then
10684       ac_top_srcdir=.
10685    else
10686       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10687    fi ;;
10688  [\\/]* | ?:[\\/]* )  # Absolute path.
10689    ac_srcdir=$srcdir$ac_dir_suffix;
10690    ac_top_srcdir=$srcdir ;;
10691  *) # Relative path.
10692    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10693    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10694esac
10695# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10696# absolute.
10697ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10698ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10699ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10700ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10701
10702
10703  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10704echo "$as_me: executing $ac_dest commands" >&6;}
10705  case $ac_dest in
10706    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10707    default ) ln -sf src GL
10708           ;;
10709  esac
10710done
10711_ACEOF
10712
10713cat >>$CONFIG_STATUS <<\_ACEOF
10714
10715{ (exit 0); exit 0; }
10716_ACEOF
10717chmod +x $CONFIG_STATUS
10718ac_clean_files=$ac_clean_files_save
10719
10720
10721# configure is writing to config.log, and then calls config.status.
10722# config.status does its own redirection, appending to config.log.
10723# Unfortunately, on DOS this fails, as config.log is still kept open
10724# by configure, so config.status won't be able to write to it; its
10725# output is simply discarded.  So we exec the FD to /dev/null,
10726# effectively closing config.log, so it can be properly (re)opened and
10727# appended to by config.status.  When coming back to configure, we
10728# need to make the FD available again.
10729if test "$no_create" != yes; then
10730  ac_cs_success=:
10731  ac_config_status_args=
10732  test "$silent" = yes &&
10733    ac_config_status_args="$ac_config_status_args --quiet"
10734  exec 5>/dev/null
10735  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10736  exec 5>>config.log
10737  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10738  # would make configure fail if this is the last instruction.
10739  $ac_cs_success || { (exit 1); exit 1; }
10740fi
10741
10742