1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.58.
4@%:@
5@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6@%:@ This configure script is free software; the Free Software Foundation
7@%:@ gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Find the correct PATH separator.  Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247  UNAME=${UNAME-`uname 2>/dev/null`}
248  case X$UNAME in
249    *-DOS) lt_cv_sys_path_separator=';' ;;
250    *)     lt_cv_sys_path_separator=':' ;;
251  esac
252  PATH_SEPARATOR=$lt_cv_sys_path_separator
253fi
254
255
256# Check that we are running under the correct shell.
257SHELL=${CONFIG_SHELL-/bin/sh}
258
259case X$ECHO in
260X*--fallback-echo)
261  # Remove one level of quotation (which was required for Make).
262  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263  ;;
264esac
265
266echo=${ECHO-echo}
267if test "X$1" = X--no-reexec; then
268  # Discard the --no-reexec flag, and continue.
269  shift
270elif test "X$1" = X--fallback-echo; then
271  # Avoid inline document here, it may be left over
272  :
273elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274  # Yippee, $echo works!
275  :
276else
277  # Restart under the correct shell.
278  exec $SHELL "$0" --no-reexec ${1+"$@"}
279fi
280
281if test "X$1" = X--fallback-echo; then
282  # used as fallback echo
283  shift
284  cat <<EOF
285
286EOF
287  exit 0
288fi
289
290# The HP-UX ksh and POSIX shell print the target directory to stdout
291# if CDPATH is set.
292if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294if test -z "$ECHO"; then
295if test "X${echo_test_string+set}" != Xset; then
296# find a string as large as possible, as long as the shell can cope with it
297  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300       echo_test_string="`eval $cmd`" &&
301       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302    then
303      break
304    fi
305  done
306fi
307
308if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310   test "X$echo_testing_string" = "X$echo_test_string"; then
311  :
312else
313  # The Solaris, AIX, and Digital Unix default echo programs unquote
314  # backslashes.  This makes it impossible to quote backslashes using
315  #   echo "$something" | sed 's/\\/\\\\/g'
316  #
317  # So, first we look for a working echo in the user's PATH.
318
319  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320  for dir in $PATH /usr/ucb; do
321    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324       test "X$echo_testing_string" = "X$echo_test_string"; then
325      echo="$dir/echo"
326      break
327    fi
328  done
329  IFS="$save_ifs"
330
331  if test "X$echo" = Xecho; then
332    # We didn't find a better echo, so look for alternatives.
333    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335       test "X$echo_testing_string" = "X$echo_test_string"; then
336      # This shell has a builtin print -r that does the trick.
337      echo='print -r'
338    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339	 test "X$CONFIG_SHELL" != X/bin/ksh; then
340      # If we have ksh, try running configure again with it.
341      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342      export ORIGINAL_CONFIG_SHELL
343      CONFIG_SHELL=/bin/ksh
344      export CONFIG_SHELL
345      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346    else
347      # Try using printf.
348      echo='printf %s\n'
349      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351	 test "X$echo_testing_string" = "X$echo_test_string"; then
352	# Cool, printf works
353	:
354      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355	   test "X$echo_testing_string" = 'X\t' &&
356	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357	   test "X$echo_testing_string" = "X$echo_test_string"; then
358	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359	export CONFIG_SHELL
360	SHELL="$CONFIG_SHELL"
361	export SHELL
362	echo="$CONFIG_SHELL $0 --fallback-echo"
363      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364	   test "X$echo_testing_string" = 'X\t' &&
365	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366	   test "X$echo_testing_string" = "X$echo_test_string"; then
367	echo="$CONFIG_SHELL $0 --fallback-echo"
368      else
369	# maybe with a smaller string...
370	prev=:
371
372	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374	  then
375	    break
376	  fi
377	  prev="$cmd"
378	done
379
380	if test "$prev" != 'sed 50q "$0"'; then
381	  echo_test_string=`eval $prev`
382	  export echo_test_string
383	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384	else
385	  # Oops.  We lost completely, so just stick with echo.
386	  echo=echo
387	fi
388      fi
389    fi
390  fi
391fi
392fi
393
394# Copy echo and quote the copy suitably for passing to libtool from
395# the Makefile, instead of quoting the original, which is used later.
396ECHO=$echo
397if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399fi
400
401
402
403# Name of the host.
404# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405# so uname gets run too.
406ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408exec 6>&1
409
410#
411# Initializations.
412#
413ac_default_prefix=/usr/local
414ac_config_libobj_dir=.
415cross_compiling=no
416subdirs=
417MFLAGS=
418MAKEFLAGS=
419SHELL=${CONFIG_SHELL-/bin/sh}
420
421# Maximum number of lines to put in a shell here document.
422# This variable seems obsolete.  It should probably be removed, and
423# only ac_max_sed_lines should be used.
424: ${ac_max_here_lines=38}
425
426# Identity of this package.
427PACKAGE_NAME=
428PACKAGE_TARNAME=
429PACKAGE_VERSION=
430PACKAGE_STRING=
431PACKAGE_BUGREPORT=
432
433ac_unique_file="configure.in"
434# Factoring default headers for most tests.
435ac_includes_default="\
436#include <stdio.h>
437#if HAVE_SYS_TYPES_H
438# include <sys/types.h>
439#endif
440#if HAVE_SYS_STAT_H
441# include <sys/stat.h>
442#endif
443#if STDC_HEADERS
444# include <stdlib.h>
445# include <stddef.h>
446#else
447# if HAVE_STDLIB_H
448#  include <stdlib.h>
449# endif
450#endif
451#if HAVE_STRING_H
452# if !STDC_HEADERS && HAVE_MEMORY_H
453#  include <memory.h>
454# endif
455# include <string.h>
456#endif
457#if HAVE_STRINGS_H
458# include <strings.h>
459#endif
460#if HAVE_INTTYPES_H
461# include <inttypes.h>
462#else
463# if HAVE_STDINT_H
464#  include <stdint.h>
465# endif
466#endif
467#if HAVE_UNISTD_H
468# include <unistd.h>
469#endif"
470
471ac_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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB CXXCPP EGREP LIBTOOL LIBSDL_LIBS LIBSDL_CFLAGS LIBSDL_RPATH LIB@&t@OBJS LTLIBOBJS'
472ac_subst_files=''
473
474# Initialize some variables set by options.
475ac_init_help=
476ac_init_version=false
477# The variables have the same names as the options, with
478# dashes changed to underlines.
479cache_file=/dev/null
480exec_prefix=NONE
481no_create=
482no_recursion=
483prefix=NONE
484program_prefix=NONE
485program_suffix=NONE
486program_transform_name=s,x,x,
487silent=
488site=
489srcdir=
490verbose=
491x_includes=NONE
492x_libraries=NONE
493
494# Installation directory options.
495# These are left unexpanded so users can "make install exec_prefix=/foo"
496# and all the variables that are supposed to be based on exec_prefix
497# by default will actually change.
498# Use braces instead of parens because sh, perl, etc. also accept them.
499bindir='${exec_prefix}/bin'
500sbindir='${exec_prefix}/sbin'
501libexecdir='${exec_prefix}/libexec'
502datadir='${prefix}/share'
503sysconfdir='${prefix}/etc'
504sharedstatedir='${prefix}/com'
505localstatedir='${prefix}/var'
506libdir='${exec_prefix}/lib'
507includedir='${prefix}/include'
508oldincludedir='/usr/include'
509infodir='${prefix}/info'
510mandir='${prefix}/man'
511
512ac_prev=
513for ac_option
514do
515  # If the previous option needs an argument, assign it.
516  if test -n "$ac_prev"; then
517    eval "$ac_prev=\$ac_option"
518    ac_prev=
519    continue
520  fi
521
522  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524  # Accept the important Cygnus configure options, so we can diagnose typos.
525
526  case $ac_option in
527
528  -bindir | --bindir | --bindi | --bind | --bin | --bi)
529    ac_prev=bindir ;;
530  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531    bindir=$ac_optarg ;;
532
533  -build | --build | --buil | --bui | --bu)
534    ac_prev=build_alias ;;
535  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536    build_alias=$ac_optarg ;;
537
538  -cache-file | --cache-file | --cache-fil | --cache-fi \
539  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540    ac_prev=cache_file ;;
541  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543    cache_file=$ac_optarg ;;
544
545  --config-cache | -C)
546    cache_file=config.cache ;;
547
548  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549    ac_prev=datadir ;;
550  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551  | --da=*)
552    datadir=$ac_optarg ;;
553
554  -disable-* | --disable-*)
555    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556    # Reject names that are not valid shell variable names.
557    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559   { (exit 1); exit 1; }; }
560    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561    eval "enable_$ac_feature=no" ;;
562
563  -enable-* | --enable-*)
564    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565    # Reject names that are not valid shell variable names.
566    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568   { (exit 1); exit 1; }; }
569    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570    case $ac_option in
571      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572      *) ac_optarg=yes ;;
573    esac
574    eval "enable_$ac_feature='$ac_optarg'" ;;
575
576  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578  | --exec | --exe | --ex)
579    ac_prev=exec_prefix ;;
580  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582  | --exec=* | --exe=* | --ex=*)
583    exec_prefix=$ac_optarg ;;
584
585  -gas | --gas | --ga | --g)
586    # Obsolete; use --with-gas.
587    with_gas=yes ;;
588
589  -help | --help | --hel | --he | -h)
590    ac_init_help=long ;;
591  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592    ac_init_help=recursive ;;
593  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594    ac_init_help=short ;;
595
596  -host | --host | --hos | --ho)
597    ac_prev=host_alias ;;
598  -host=* | --host=* | --hos=* | --ho=*)
599    host_alias=$ac_optarg ;;
600
601  -includedir | --includedir | --includedi | --included | --include \
602  | --includ | --inclu | --incl | --inc)
603    ac_prev=includedir ;;
604  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605  | --includ=* | --inclu=* | --incl=* | --inc=*)
606    includedir=$ac_optarg ;;
607
608  -infodir | --infodir | --infodi | --infod | --info | --inf)
609    ac_prev=infodir ;;
610  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611    infodir=$ac_optarg ;;
612
613  -libdir | --libdir | --libdi | --libd)
614    ac_prev=libdir ;;
615  -libdir=* | --libdir=* | --libdi=* | --libd=*)
616    libdir=$ac_optarg ;;
617
618  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619  | --libexe | --libex | --libe)
620    ac_prev=libexecdir ;;
621  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622  | --libexe=* | --libex=* | --libe=*)
623    libexecdir=$ac_optarg ;;
624
625  -localstatedir | --localstatedir | --localstatedi | --localstated \
626  | --localstate | --localstat | --localsta | --localst \
627  | --locals | --local | --loca | --loc | --lo)
628    ac_prev=localstatedir ;;
629  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632    localstatedir=$ac_optarg ;;
633
634  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635    ac_prev=mandir ;;
636  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637    mandir=$ac_optarg ;;
638
639  -nfp | --nfp | --nf)
640    # Obsolete; use --without-fp.
641    with_fp=no ;;
642
643  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644  | --no-cr | --no-c | -n)
645    no_create=yes ;;
646
647  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649    no_recursion=yes ;;
650
651  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653  | --oldin | --oldi | --old | --ol | --o)
654    ac_prev=oldincludedir ;;
655  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658    oldincludedir=$ac_optarg ;;
659
660  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661    ac_prev=prefix ;;
662  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663    prefix=$ac_optarg ;;
664
665  -program-prefix | --program-prefix | --program-prefi | --program-pref \
666  | --program-pre | --program-pr | --program-p)
667    ac_prev=program_prefix ;;
668  -program-prefix=* | --program-prefix=* | --program-prefi=* \
669  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670    program_prefix=$ac_optarg ;;
671
672  -program-suffix | --program-suffix | --program-suffi | --program-suff \
673  | --program-suf | --program-su | --program-s)
674    ac_prev=program_suffix ;;
675  -program-suffix=* | --program-suffix=* | --program-suffi=* \
676  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677    program_suffix=$ac_optarg ;;
678
679  -program-transform-name | --program-transform-name \
680  | --program-transform-nam | --program-transform-na \
681  | --program-transform-n | --program-transform- \
682  | --program-transform | --program-transfor \
683  | --program-transfo | --program-transf \
684  | --program-trans | --program-tran \
685  | --progr-tra | --program-tr | --program-t)
686    ac_prev=program_transform_name ;;
687  -program-transform-name=* | --program-transform-name=* \
688  | --program-transform-nam=* | --program-transform-na=* \
689  | --program-transform-n=* | --program-transform-=* \
690  | --program-transform=* | --program-transfor=* \
691  | --program-transfo=* | --program-transf=* \
692  | --program-trans=* | --program-tran=* \
693  | --progr-tra=* | --program-tr=* | --program-t=*)
694    program_transform_name=$ac_optarg ;;
695
696  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697  | -silent | --silent | --silen | --sile | --sil)
698    silent=yes ;;
699
700  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701    ac_prev=sbindir ;;
702  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703  | --sbi=* | --sb=*)
704    sbindir=$ac_optarg ;;
705
706  -sharedstatedir | --sharedstatedir | --sharedstatedi \
707  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708  | --sharedst | --shareds | --shared | --share | --shar \
709  | --sha | --sh)
710    ac_prev=sharedstatedir ;;
711  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714  | --sha=* | --sh=*)
715    sharedstatedir=$ac_optarg ;;
716
717  -site | --site | --sit)
718    ac_prev=site ;;
719  -site=* | --site=* | --sit=*)
720    site=$ac_optarg ;;
721
722  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723    ac_prev=srcdir ;;
724  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725    srcdir=$ac_optarg ;;
726
727  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728  | --syscon | --sysco | --sysc | --sys | --sy)
729    ac_prev=sysconfdir ;;
730  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732    sysconfdir=$ac_optarg ;;
733
734  -target | --target | --targe | --targ | --tar | --ta | --t)
735    ac_prev=target_alias ;;
736  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737    target_alias=$ac_optarg ;;
738
739  -v | -verbose | --verbose | --verbos | --verbo | --verb)
740    verbose=yes ;;
741
742  -version | --version | --versio | --versi | --vers | -V)
743    ac_init_version=: ;;
744
745  -with-* | --with-*)
746    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747    # Reject names that are not valid shell variable names.
748    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749      { echo "$as_me: error: invalid package name: $ac_package" >&2
750   { (exit 1); exit 1; }; }
751    ac_package=`echo $ac_package| sed 's/-/_/g'`
752    case $ac_option in
753      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754      *) ac_optarg=yes ;;
755    esac
756    eval "with_$ac_package='$ac_optarg'" ;;
757
758  -without-* | --without-*)
759    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760    # Reject names that are not valid shell variable names.
761    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762      { echo "$as_me: error: invalid package name: $ac_package" >&2
763   { (exit 1); exit 1; }; }
764    ac_package=`echo $ac_package | sed 's/-/_/g'`
765    eval "with_$ac_package=no" ;;
766
767  --x)
768    # Obsolete; use --with-x.
769    with_x=yes ;;
770
771  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772  | --x-incl | --x-inc | --x-in | --x-i)
773    ac_prev=x_includes ;;
774  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776    x_includes=$ac_optarg ;;
777
778  -x-libraries | --x-libraries | --x-librarie | --x-librari \
779  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780    ac_prev=x_libraries ;;
781  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783    x_libraries=$ac_optarg ;;
784
785  -*) { echo "$as_me: error: unrecognized option: $ac_option
786Try \`$0 --help' for more information." >&2
787   { (exit 1); exit 1; }; }
788    ;;
789
790  *=*)
791    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792    # Reject names that are not valid shell variable names.
793    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795   { (exit 1); exit 1; }; }
796    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797    eval "$ac_envvar='$ac_optarg'"
798    export $ac_envvar ;;
799
800  *)
801    # FIXME: should be removed in autoconf 3.0.
802    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806    ;;
807
808  esac
809done
810
811if test -n "$ac_prev"; then
812  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813  { echo "$as_me: error: missing argument to $ac_option" >&2
814   { (exit 1); exit 1; }; }
815fi
816
817# Be sure to have absolute paths.
818for ac_var in exec_prefix prefix
819do
820  eval ac_val=$`echo $ac_var`
821  case $ac_val in
822    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824   { (exit 1); exit 1; }; };;
825  esac
826done
827
828# Be sure to have absolute paths.
829for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830	      localstatedir libdir includedir oldincludedir infodir mandir
831do
832  eval ac_val=$`echo $ac_var`
833  case $ac_val in
834    [\\/$]* | ?:[\\/]* ) ;;
835    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836   { (exit 1); exit 1; }; };;
837  esac
838done
839
840# There might be people who depend on the old broken behavior: `$host'
841# used to hold the argument of --host etc.
842# FIXME: To remove some day.
843build=$build_alias
844host=$host_alias
845target=$target_alias
846
847# FIXME: To remove some day.
848if test "x$host_alias" != x; then
849  if test "x$build_alias" = x; then
850    cross_compiling=maybe
851    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852    If a cross compiler is detected then cross compile mode will be used." >&2
853  elif test "x$build_alias" != "x$host_alias"; then
854    cross_compiling=yes
855  fi
856fi
857
858ac_tool_prefix=
859test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861test "$silent" = yes && exec 6>/dev/null
862
863
864# Find the source files, if location was not specified.
865if test -z "$srcdir"; then
866  ac_srcdir_defaulted=yes
867  # Try the directory containing this script, then its parent.
868  ac_confdir=`(dirname "$0") 2>/dev/null ||
869$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870	 X"$0" : 'X\(//\)[^/]' \| \
871	 X"$0" : 'X\(//\)$' \| \
872	 X"$0" : 'X\(/\)' \| \
873	 .     : '\(.\)' 2>/dev/null ||
874echo X"$0" |
875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877  	  /^X\(\/\/\)$/{ s//\1/; q; }
878  	  /^X\(\/\).*/{ s//\1/; q; }
879  	  s/.*/./; q'`
880  srcdir=$ac_confdir
881  if test ! -r $srcdir/$ac_unique_file; then
882    srcdir=..
883  fi
884else
885  ac_srcdir_defaulted=no
886fi
887if test ! -r $srcdir/$ac_unique_file; then
888  if test "$ac_srcdir_defaulted" = yes; then
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890   { (exit 1); exit 1; }; }
891  else
892    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893   { (exit 1); exit 1; }; }
894  fi
895fi
896(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898   { (exit 1); exit 1; }; }
899srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900ac_env_build_alias_set=${build_alias+set}
901ac_env_build_alias_value=$build_alias
902ac_cv_env_build_alias_set=${build_alias+set}
903ac_cv_env_build_alias_value=$build_alias
904ac_env_host_alias_set=${host_alias+set}
905ac_env_host_alias_value=$host_alias
906ac_cv_env_host_alias_set=${host_alias+set}
907ac_cv_env_host_alias_value=$host_alias
908ac_env_target_alias_set=${target_alias+set}
909ac_env_target_alias_value=$target_alias
910ac_cv_env_target_alias_set=${target_alias+set}
911ac_cv_env_target_alias_value=$target_alias
912ac_env_CXX_set=${CXX+set}
913ac_env_CXX_value=$CXX
914ac_cv_env_CXX_set=${CXX+set}
915ac_cv_env_CXX_value=$CXX
916ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_env_CXXFLAGS_value=$CXXFLAGS
918ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920ac_env_LDFLAGS_set=${LDFLAGS+set}
921ac_env_LDFLAGS_value=$LDFLAGS
922ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923ac_cv_env_LDFLAGS_value=$LDFLAGS
924ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_env_CPPFLAGS_value=$CPPFLAGS
926ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928ac_env_CC_set=${CC+set}
929ac_env_CC_value=$CC
930ac_cv_env_CC_set=${CC+set}
931ac_cv_env_CC_value=$CC
932ac_env_CFLAGS_set=${CFLAGS+set}
933ac_env_CFLAGS_value=$CFLAGS
934ac_cv_env_CFLAGS_set=${CFLAGS+set}
935ac_cv_env_CFLAGS_value=$CFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940
941#
942# Report the --help message.
943#
944if test "$ac_init_help" = "long"; then
945  # Omit some internal or obsolete options to make the list less imposing.
946  # This message is too long to be a string in the A/UX 3.1 sh.
947  cat <<_ACEOF
948\`configure' configures this package to adapt to many kinds of systems.
949
950Usage: $0 [OPTION]... [VAR=VALUE]...
951
952To assign environment variables (e.g., CC, CFLAGS...), specify them as
953VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955Defaults for the options are specified in brackets.
956
957Configuration:
958  -h, --help              display this help and exit
959      --help=short        display options specific to this package
960      --help=recursive    display the short help of all the included packages
961  -V, --version           display version information and exit
962  -q, --quiet, --silent   do not print \`checking...' messages
963      --cache-file=FILE   cache test results in FILE [disabled]
964  -C, --config-cache      alias for \`--cache-file=config.cache'
965  -n, --no-create         do not create output files
966      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968_ACEOF
969
970  cat <<_ACEOF
971Installation directories:
972  --prefix=PREFIX         install architecture-independent files in PREFIX
973			  [$ac_default_prefix]
974  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975			  [PREFIX]
976
977By default, \`make install' will install all the files in
978\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980for instance \`--prefix=\$HOME'.
981
982For better control, use the options below.
983
984Fine tuning of the installation directories:
985  --bindir=DIR           user executables [EPREFIX/bin]
986  --sbindir=DIR          system admin executables [EPREFIX/sbin]
987  --libexecdir=DIR       program executables [EPREFIX/libexec]
988  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992  --libdir=DIR           object code libraries [EPREFIX/lib]
993  --includedir=DIR       C header files [PREFIX/include]
994  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995  --infodir=DIR          info documentation [PREFIX/info]
996  --mandir=DIR           man documentation [PREFIX/man]
997_ACEOF
998
999  cat <<\_ACEOF
1000
1001Program names:
1002  --program-prefix=PREFIX            prepend PREFIX to installed program names
1003  --program-suffix=SUFFIX            append SUFFIX to installed program names
1004  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006System types:
1007  --build=BUILD     configure for building on BUILD [guessed]
1008  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009_ACEOF
1010fi
1011
1012if test -n "$ac_init_help"; then
1013
1014  cat <<\_ACEOF
1015
1016Optional Features:
1017  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1018  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1019  --disable-dependency-tracking Speeds up one-time builds
1020  --enable-dependency-tracking  Do not reject slow dependency extractors
1021  --enable-shared=PKGS  build shared libraries default=yes
1022  --enable-static=PKGS  build static libraries default=yes
1023  --enable-fast-install=PKGS  optimize for fast installation default=yes
1024  --disable-libtool-lock  avoid locking (might break parallel builds)
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
1032Some influential environment variables:
1033  CXX         C++ compiler command
1034  CXXFLAGS    C++ compiler flags
1035  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1036              nonstandard directory <lib dir>
1037  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038              headers in a nonstandard directory <include dir>
1039  CC          C compiler command
1040  CFLAGS      C compiler flags
1041  CXXCPP      C++ preprocessor
1042
1043Use these variables to override the choices made by `configure' or to help
1044it to find libraries and programs with nonstandard names/locations.
1045
1046_ACEOF
1047fi
1048
1049if test "$ac_init_help" = "recursive"; then
1050  # If there are subdirs, report their specific --help.
1051  ac_popdir=`pwd`
1052  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1053    test -d $ac_dir || continue
1054    ac_builddir=.
1055
1056if test "$ac_dir" != .; then
1057  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1058  # A "../" for each directory in $ac_dir_suffix.
1059  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1060else
1061  ac_dir_suffix= ac_top_builddir=
1062fi
1063
1064case $srcdir in
1065  .)  # No --srcdir option.  We are building in place.
1066    ac_srcdir=.
1067    if test -z "$ac_top_builddir"; then
1068       ac_top_srcdir=.
1069    else
1070       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1071    fi ;;
1072  [\\/]* | ?:[\\/]* )  # Absolute path.
1073    ac_srcdir=$srcdir$ac_dir_suffix;
1074    ac_top_srcdir=$srcdir ;;
1075  *) # Relative path.
1076    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1077    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1078esac
1079case "$ac_dir" in
1080.) ac_abs_builddir=$ac_builddir;;
1081*)
1082  case $ac_builddir in
1083  .) ac_abs_builddir="$ac_dir";;
1084  [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1085  *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1086  esac;;
1087esac
1088case "$ac_dir" in
1089.) ac_abs_top_builddir=${ac_top_builddir}.;;
1090*)
1091  case ${ac_top_builddir}. in
1092  .) ac_abs_top_builddir="$ac_dir";;
1093  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094  *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1095  esac;;
1096esac
1097case "$ac_dir" in
1098.) ac_abs_srcdir=$ac_srcdir;;
1099*)
1100  case $ac_srcdir in
1101  .) ac_abs_srcdir="$ac_dir";;
1102  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103  *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1104  esac;;
1105esac
1106case "$ac_dir" in
1107.) ac_abs_top_srcdir=$ac_top_srcdir;;
1108*)
1109  case $ac_top_srcdir in
1110  .) ac_abs_top_srcdir="$ac_dir";;
1111  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112  *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1113  esac;;
1114esac
1115
1116    cd $ac_dir
1117    # Check for guested configure; otherwise get Cygnus style configure.
1118    if test -f $ac_srcdir/configure.gnu; then
1119      echo
1120      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1121    elif test -f $ac_srcdir/configure; then
1122      echo
1123      $SHELL $ac_srcdir/configure  --help=recursive
1124    elif test -f $ac_srcdir/configure.ac ||
1125	   test -f $ac_srcdir/configure.in; then
1126      echo
1127      $ac_configure --help
1128    else
1129      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130    fi
1131    cd $ac_popdir
1132  done
1133fi
1134
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137  cat <<\_ACEOF
1138
1139Copyright (C) 2003 Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143  exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
1150It was created by $as_me, which was
1151generated by GNU Autoconf 2.58.  Invocation command line was
1152
1153  $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158@%:@@%:@ --------- @%:@@%:@
1159@%:@@%:@ Platform. @%:@@%:@
1160@%:@@%:@ --------- @%:@@%:@
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
1171/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184  IFS=$as_save_IFS
1185  test -z "$as_dir" && as_dir=.
1186  echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194@%:@@%:@ ----------- @%:@@%:@
1195@%:@@%:@ Core tests. @%:@@%:@
1196@%:@@%:@ ----------- @%:@@%:@
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213  for ac_arg
1214  do
1215    case $ac_arg in
1216    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218    | -silent | --silent | --silen | --sile | --sil)
1219      continue ;;
1220    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222    esac
1223    case $ac_pass in
1224    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225    2)
1226      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227      if test $ac_must_keep_next = true; then
1228	ac_must_keep_next=false # Got value, back to normal.
1229      else
1230	case $ac_arg in
1231	  *=* | --config-cache | -C | -disable-* | --disable-* \
1232	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234	  | -with-* | --with-* | -without-* | --without-* | --x)
1235	    case "$ac_configure_args0 " in
1236	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237	    esac
1238	    ;;
1239	  -* ) ac_must_keep_next=true ;;
1240	esac
1241      fi
1242      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243      # Get rid of the leading space.
1244      ac_sep=" "
1245      ;;
1246    esac
1247  done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log.  We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258  # Save into config.log some information that might help in debugging.
1259  {
1260    echo
1261
1262    cat <<\_ASBOX
1263@%:@@%:@ ---------------- @%:@@%:@
1264@%:@@%:@ Cache variables. @%:@@%:@
1265@%:@@%:@ ---------------- @%:@@%:@
1266_ASBOX
1267    echo
1268    # The following way of writing the cache mishandles newlines in values,
1269{
1270  (set) 2>&1 |
1271    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272    *ac_space=\ *)
1273      sed -n \
1274	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276      ;;
1277    *)
1278      sed -n \
1279	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280      ;;
1281    esac;
1282}
1283    echo
1284
1285    cat <<\_ASBOX
1286@%:@@%:@ ----------------- @%:@@%:@
1287@%:@@%:@ Output variables. @%:@@%:@
1288@%:@@%:@ ----------------- @%:@@%:@
1289_ASBOX
1290    echo
1291    for ac_var in $ac_subst_vars
1292    do
1293      eval ac_val=$`echo $ac_var`
1294      echo "$ac_var='"'"'$ac_val'"'"'"
1295    done | sort
1296    echo
1297
1298    if test -n "$ac_subst_files"; then
1299      cat <<\_ASBOX
1300@%:@@%:@ ------------- @%:@@%:@
1301@%:@@%:@ Output files. @%:@@%:@
1302@%:@@%:@ ------------- @%:@@%:@
1303_ASBOX
1304      echo
1305      for ac_var in $ac_subst_files
1306      do
1307	eval ac_val=$`echo $ac_var`
1308	echo "$ac_var='"'"'$ac_val'"'"'"
1309      done | sort
1310      echo
1311    fi
1312
1313    if test -s confdefs.h; then
1314      cat <<\_ASBOX
1315@%:@@%:@ ----------- @%:@@%:@
1316@%:@@%:@ confdefs.h. @%:@@%:@
1317@%:@@%:@ ----------- @%:@@%:@
1318_ASBOX
1319      echo
1320      sed "/^$/d" confdefs.h | sort
1321      echo
1322    fi
1323    test "$ac_signal" != 0 &&
1324      echo "$as_me: caught signal $ac_signal"
1325    echo "$as_me: exit $exit_status"
1326  } >&5
1327  rm -f core *.core &&
1328  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329    exit $exit_status
1330     ' 0
1331for ac_signal in 1 2 13 15; do
1332  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371  if test "x$prefix" != xNONE; then
1372    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373  else
1374    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375  fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378  if test -r "$ac_site_file"; then
1379    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381    sed 's/^/| /' "$ac_site_file" >&5
1382    . "$ac_site_file"
1383  fi
1384done
1385
1386if test -r "$cache_file"; then
1387  # Some versions of bash will fail to source /dev/null (special
1388  # files actually), so we avoid doing that.
1389  if test -f "$cache_file"; then
1390    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392    case $cache_file in
1393      [\\/]* | ?:[\\/]* ) . $cache_file;;
1394      *)                      . ./$cache_file;;
1395    esac
1396  fi
1397else
1398  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400  >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409  eval ac_new_set=\$ac_env_${ac_var}_set
1410  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411  eval ac_new_val="\$ac_env_${ac_var}_value"
1412  case $ac_old_set,$ac_new_set in
1413    set,)
1414      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416      ac_cache_corrupted=: ;;
1417    ,set)
1418      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420      ac_cache_corrupted=: ;;
1421    ,);;
1422    *)
1423      if test "x$ac_old_val" != "x$ac_new_val"; then
1424	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427echo "$as_me:   former value:  $ac_old_val" >&2;}
1428	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429echo "$as_me:   current value: $ac_new_val" >&2;}
1430	ac_cache_corrupted=:
1431      fi;;
1432  esac
1433  # Pass precious variables to config.status.
1434  if test "$ac_new_set" = set; then
1435    case $ac_new_val in
1436    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438    *) ac_arg=$ac_var=$ac_new_val ;;
1439    esac
1440    case " $ac_configure_args " in
1441      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1442      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443    esac
1444  fi
1445done
1446if $ac_cache_corrupted; then
1447  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451   { (exit 1); exit 1; }; }
1452fi
1453
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479# Add the stamp file to the list of files AC keeps track of,
1480# along with our hook.
1481          ac_config_headers="$ac_config_headers config.h"
1482
1483
1484
1485am__api_version="1.6"
1486ac_aux_dir=
1487for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488  if test -f $ac_dir/install-sh; then
1489    ac_aux_dir=$ac_dir
1490    ac_install_sh="$ac_aux_dir/install-sh -c"
1491    break
1492  elif test -f $ac_dir/install.sh; then
1493    ac_aux_dir=$ac_dir
1494    ac_install_sh="$ac_aux_dir/install.sh -c"
1495    break
1496  elif test -f $ac_dir/shtool; then
1497    ac_aux_dir=$ac_dir
1498    ac_install_sh="$ac_aux_dir/shtool install -c"
1499    break
1500  fi
1501done
1502if test -z "$ac_aux_dir"; then
1503  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505   { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511# Find a good install program.  We prefer a C program (faster),
1512# so one script is as good as another.  But avoid the broken or
1513# incompatible versions:
1514# SysV /etc/install, /usr/sbin/install
1515# SunOS /usr/etc/install
1516# IRIX /sbin/install
1517# AIX /bin/install
1518# AmigaOS /C/install, which installs bootblocks on floppy discs
1519# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1520# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1521# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1522# OS/2's system install, which has a completely different semantic
1523# ./install, which can be erroneously created by make from ./install.sh.
1524echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1525echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1526if test -z "$INSTALL"; then
1527if test "${ac_cv_path_install+set}" = set; then
1528  echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531for as_dir in $PATH
1532do
1533  IFS=$as_save_IFS
1534  test -z "$as_dir" && as_dir=.
1535  # Account for people who put trailing slashes in PATH elements.
1536case $as_dir/ in
1537  ./ | .// | /cC/* | \
1538  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1539  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1540  /usr/ucb/* ) ;;
1541  *)
1542    # OSF1 and SCO ODT 3.0 have their own names for install.
1543    # Don't use installbsd from OSF since it installs stuff as root
1544    # by default.
1545    for ac_prog in ginstall scoinst install; do
1546      for ac_exec_ext in '' $ac_executable_extensions; do
1547	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1548	  if test $ac_prog = install &&
1549	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1550	    # AIX install.  It has an incompatible calling convention.
1551	    :
1552	  elif test $ac_prog = install &&
1553	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554	    # program-specific install script used by HP pwplus--don't use.
1555	    :
1556	  else
1557	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1558	    break 3
1559	  fi
1560	fi
1561      done
1562    done
1563    ;;
1564esac
1565done
1566
1567
1568fi
1569  if test "${ac_cv_path_install+set}" = set; then
1570    INSTALL=$ac_cv_path_install
1571  else
1572    # As a last resort, use the slow shell script.  We don't cache a
1573    # path for INSTALL within a source directory, because that will
1574    # break other packages using the cache if that directory is
1575    # removed, or if the path is relative.
1576    INSTALL=$ac_install_sh
1577  fi
1578fi
1579echo "$as_me:$LINENO: result: $INSTALL" >&5
1580echo "${ECHO_T}$INSTALL" >&6
1581
1582# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1583# It thinks the first close brace ends the variable substitution.
1584test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1585
1586test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1587
1588test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1589
1590echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1591echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1592# Just in case
1593sleep 1
1594echo timestamp > conftest.file
1595# Do `set' in a subshell so we don't clobber the current shell's
1596# arguments.  Must try -L first in case configure is actually a
1597# symlink; some systems play weird games with the mod time of symlinks
1598# (eg FreeBSD returns the mod time of the symlink's containing
1599# directory).
1600if (
1601   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1602   if test "$*" = "X"; then
1603      # -L didn't work.
1604      set X `ls -t $srcdir/configure conftest.file`
1605   fi
1606   rm -f conftest.file
1607   if test "$*" != "X $srcdir/configure conftest.file" \
1608      && test "$*" != "X conftest.file $srcdir/configure"; then
1609
1610      # If neither matched, then we have a broken ls.  This can happen
1611      # if, for instance, CONFIG_SHELL is bash and it inherits a
1612      # broken ls alias from the environment.  This has actually
1613      # happened.  Such a system could not be considered "sane".
1614      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1615alias in your environment" >&5
1616echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1617alias in your environment" >&2;}
1618   { (exit 1); exit 1; }; }
1619   fi
1620
1621   test "$2" = conftest.file
1622   )
1623then
1624   # Ok.
1625   :
1626else
1627   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1628Check your system clock" >&5
1629echo "$as_me: error: newly created file is older than distributed files!
1630Check your system clock" >&2;}
1631   { (exit 1); exit 1; }; }
1632fi
1633echo "$as_me:$LINENO: result: yes" >&5
1634echo "${ECHO_T}yes" >&6
1635test "$program_prefix" != NONE &&
1636  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1637# Use a double $ so make ignores it.
1638test "$program_suffix" != NONE &&
1639  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1640# Double any \ or $.  echo might interpret backslashes.
1641# By default was `s,x,x', remove it if useless.
1642cat <<\_ACEOF >conftest.sed
1643s/[\\$]/&&/g;s/;s,x,x,$//
1644_ACEOF
1645program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1646rm conftest.sed
1647
1648
1649# expand $ac_aux_dir to an absolute path
1650am_aux_dir=`cd $ac_aux_dir && pwd`
1651
1652test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1653# Use eval to expand $SHELL
1654if eval "$MISSING --run true"; then
1655  am_missing_run="$MISSING --run "
1656else
1657  am_missing_run=
1658  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1659echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1660fi
1661
1662for ac_prog in gawk mawk nawk awk
1663do
1664  # Extract the first word of "$ac_prog", so it can be a program name with args.
1665set dummy $ac_prog; ac_word=$2
1666echo "$as_me:$LINENO: checking for $ac_word" >&5
1667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668if test "${ac_cv_prog_AWK+set}" = set; then
1669  echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671  if test -n "$AWK"; then
1672  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1673else
1674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675for as_dir in $PATH
1676do
1677  IFS=$as_save_IFS
1678  test -z "$as_dir" && as_dir=.
1679  for ac_exec_ext in '' $ac_executable_extensions; do
1680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681    ac_cv_prog_AWK="$ac_prog"
1682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683    break 2
1684  fi
1685done
1686done
1687
1688fi
1689fi
1690AWK=$ac_cv_prog_AWK
1691if test -n "$AWK"; then
1692  echo "$as_me:$LINENO: result: $AWK" >&5
1693echo "${ECHO_T}$AWK" >&6
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697fi
1698
1699  test -n "$AWK" && break
1700done
1701
1702echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1703echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1704set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1705if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1706  echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708  cat >conftest.make <<\_ACEOF
1709all:
1710	@echo 'ac_maketemp="$(MAKE)"'
1711_ACEOF
1712# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1713eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1714if test -n "$ac_maketemp"; then
1715  eval ac_cv_prog_make_${ac_make}_set=yes
1716else
1717  eval ac_cv_prog_make_${ac_make}_set=no
1718fi
1719rm -f conftest.make
1720fi
1721if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1722  echo "$as_me:$LINENO: result: yes" >&5
1723echo "${ECHO_T}yes" >&6
1724  SET_MAKE=
1725else
1726  echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728  SET_MAKE="MAKE=${MAKE-make}"
1729fi
1730
1731 # test to see if srcdir already configured
1732if test "`cd $srcdir && pwd`" != "`pwd`" &&
1733   test -f $srcdir/config.status; then
1734  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1735echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1736   { (exit 1); exit 1; }; }
1737fi
1738
1739# Define the identity of the package.
1740 PACKAGE=duel
1741 VERSION=0.98
1742
1743
1744cat >>confdefs.h <<_ACEOF
1745@%:@define PACKAGE "$PACKAGE"
1746_ACEOF
1747
1748
1749cat >>confdefs.h <<_ACEOF
1750@%:@define VERSION "$VERSION"
1751_ACEOF
1752
1753# Some tools Automake needs.
1754
1755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1756
1757
1758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1759
1760
1761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1762
1763
1764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1765
1766
1767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1768
1769
1770AMTAR=${AMTAR-"${am_missing_run}tar"}
1771
1772install_sh=${install_sh-"$am_aux_dir/install-sh"}
1773
1774# Installed binaries are usually stripped using `strip' when the user
1775# run `make install-strip'.  However `strip' might not be the right
1776# tool to use in cross-compilation environments, therefore Automake
1777# will honor the `STRIP' environment variable to overrule this program.
1778if test "$cross_compiling" != no; then
1779  if test -n "$ac_tool_prefix"; then
1780  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1781set dummy ${ac_tool_prefix}strip; ac_word=$2
1782echo "$as_me:$LINENO: checking for $ac_word" >&5
1783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784if test "${ac_cv_prog_STRIP+set}" = set; then
1785  echo $ECHO_N "(cached) $ECHO_C" >&6
1786else
1787  if test -n "$STRIP"; then
1788  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1789else
1790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791for as_dir in $PATH
1792do
1793  IFS=$as_save_IFS
1794  test -z "$as_dir" && as_dir=.
1795  for ac_exec_ext in '' $ac_executable_extensions; do
1796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799    break 2
1800  fi
1801done
1802done
1803
1804fi
1805fi
1806STRIP=$ac_cv_prog_STRIP
1807if test -n "$STRIP"; then
1808  echo "$as_me:$LINENO: result: $STRIP" >&5
1809echo "${ECHO_T}$STRIP" >&6
1810else
1811  echo "$as_me:$LINENO: result: no" >&5
1812echo "${ECHO_T}no" >&6
1813fi
1814
1815fi
1816if test -z "$ac_cv_prog_STRIP"; then
1817  ac_ct_STRIP=$STRIP
1818  # Extract the first word of "strip", so it can be a program name with args.
1819set dummy strip; ac_word=$2
1820echo "$as_me:$LINENO: checking for $ac_word" >&5
1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1823  echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
1825  if test -n "$ac_ct_STRIP"; then
1826  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1827else
1828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829for as_dir in $PATH
1830do
1831  IFS=$as_save_IFS
1832  test -z "$as_dir" && as_dir=.
1833  for ac_exec_ext in '' $ac_executable_extensions; do
1834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835    ac_cv_prog_ac_ct_STRIP="strip"
1836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837    break 2
1838  fi
1839done
1840done
1841
1842  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1843fi
1844fi
1845ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1846if test -n "$ac_ct_STRIP"; then
1847  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1848echo "${ECHO_T}$ac_ct_STRIP" >&6
1849else
1850  echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852fi
1853
1854  STRIP=$ac_ct_STRIP
1855else
1856  STRIP="$ac_cv_prog_STRIP"
1857fi
1858
1859fi
1860INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1861
1862# We need awk for the "check" target.  The system "awk" is bad on
1863# some platforms.
1864
1865
1866
1867
1868ac_ext=cc
1869ac_cpp='$CXXCPP $CPPFLAGS'
1870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1873
1874ac_ext=cc
1875ac_cpp='$CXXCPP $CPPFLAGS'
1876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1879if test -n "$ac_tool_prefix"; then
1880  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1881  do
1882    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1884echo "$as_me:$LINENO: checking for $ac_word" >&5
1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886if test "${ac_cv_prog_CXX+set}" = set; then
1887  echo $ECHO_N "(cached) $ECHO_C" >&6
1888else
1889  if test -n "$CXX"; then
1890  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1891else
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901    break 2
1902  fi
1903done
1904done
1905
1906fi
1907fi
1908CXX=$ac_cv_prog_CXX
1909if test -n "$CXX"; then
1910  echo "$as_me:$LINENO: result: $CXX" >&5
1911echo "${ECHO_T}$CXX" >&6
1912else
1913  echo "$as_me:$LINENO: result: no" >&5
1914echo "${ECHO_T}no" >&6
1915fi
1916
1917    test -n "$CXX" && break
1918  done
1919fi
1920if test -z "$CXX"; then
1921  ac_ct_CXX=$CXX
1922  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1923do
1924  # Extract the first word of "$ac_prog", so it can be a program name with args.
1925set dummy $ac_prog; ac_word=$2
1926echo "$as_me:$LINENO: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1929  echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931  if test -n "$ac_ct_CXX"; then
1932  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1933else
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937  IFS=$as_save_IFS
1938  test -z "$as_dir" && as_dir=.
1939  for ac_exec_ext in '' $ac_executable_extensions; do
1940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941    ac_cv_prog_ac_ct_CXX="$ac_prog"
1942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943    break 2
1944  fi
1945done
1946done
1947
1948fi
1949fi
1950ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1951if test -n "$ac_ct_CXX"; then
1952  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1953echo "${ECHO_T}$ac_ct_CXX" >&6
1954else
1955  echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957fi
1958
1959  test -n "$ac_ct_CXX" && break
1960done
1961test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1962
1963  CXX=$ac_ct_CXX
1964fi
1965
1966
1967# Provide some information about the compiler.
1968echo "$as_me:$LINENO:" \
1969     "checking for C++ compiler version" >&5
1970ac_compiler=`set X $ac_compile; echo $2`
1971{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1972  (eval $ac_compiler --version </dev/null >&5) 2>&5
1973  ac_status=$?
1974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975  (exit $ac_status); }
1976{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1977  (eval $ac_compiler -v </dev/null >&5) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }
1981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1982  (eval $ac_compiler -V </dev/null >&5) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }
1986
1987cat >conftest.$ac_ext <<_ACEOF
1988/* confdefs.h.  */
1989_ACEOF
1990cat confdefs.h >>conftest.$ac_ext
1991cat >>conftest.$ac_ext <<_ACEOF
1992/* end confdefs.h.  */
1993
1994int
1995main ()
1996{
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002ac_clean_files_save=$ac_clean_files
2003ac_clean_files="$ac_clean_files a.out a.exe b.out"
2004# Try to create an executable without -o first, disregard a.out.
2005# It will help us diagnose broken compilers, and finding out an intuition
2006# of exeext.
2007echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2008echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2009ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2010if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2011  (eval $ac_link_default) 2>&5
2012  ac_status=$?
2013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014  (exit $ac_status); }; then
2015  # Find the output, starting from the most likely.  This scheme is
2016# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2017# resort.
2018
2019# Be careful to initialize this variable, since it used to be cached.
2020# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2021ac_cv_exeext=
2022# b.out is created by i960 compilers.
2023for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2024do
2025  test -f "$ac_file" || continue
2026  case $ac_file in
2027    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2028	;;
2029    conftest.$ac_ext )
2030	# This is the source file.
2031	;;
2032    [ab].out )
2033	# We found the default executable, but exeext='' is most
2034	# certainly right.
2035	break;;
2036    *.* )
2037	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2038	# FIXME: I believe we export ac_cv_exeext for Libtool,
2039	# but it would be cool to find out if it's true.  Does anybody
2040	# maintain Libtool? --akim.
2041	export ac_cv_exeext
2042	break;;
2043    * )
2044	break;;
2045  esac
2046done
2047else
2048  echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2052See \`config.log' for more details." >&5
2053echo "$as_me: error: C++ compiler cannot create executables
2054See \`config.log' for more details." >&2;}
2055   { (exit 77); exit 77; }; }
2056fi
2057
2058ac_exeext=$ac_cv_exeext
2059echo "$as_me:$LINENO: result: $ac_file" >&5
2060echo "${ECHO_T}$ac_file" >&6
2061
2062# Check the compiler produces executables we can run.  If not, either
2063# the compiler is broken, or we cross compile.
2064echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2065echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2066# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2067# If not cross compiling, check that we can run a simple program.
2068if test "$cross_compiling" != yes; then
2069  if { ac_try='./$ac_file'
2070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071  (eval $ac_try) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; }; then
2075    cross_compiling=no
2076  else
2077    if test "$cross_compiling" = maybe; then
2078	cross_compiling=yes
2079    else
2080	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2081If you meant to cross compile, use \`--host'.
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: cannot run C++ compiled programs.
2084If you meant to cross compile, use \`--host'.
2085See \`config.log' for more details." >&2;}
2086   { (exit 1); exit 1; }; }
2087    fi
2088  fi
2089fi
2090echo "$as_me:$LINENO: result: yes" >&5
2091echo "${ECHO_T}yes" >&6
2092
2093rm -f a.out a.exe conftest$ac_cv_exeext b.out
2094ac_clean_files=$ac_clean_files_save
2095# Check the compiler produces executables we can run.  If not, either
2096# the compiler is broken, or we cross compile.
2097echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2098echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2099echo "$as_me:$LINENO: result: $cross_compiling" >&5
2100echo "${ECHO_T}$cross_compiling" >&6
2101
2102echo "$as_me:$LINENO: checking for suffix of executables" >&5
2103echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2105  (eval $ac_link) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }; then
2109  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2110# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2111# work properly (i.e., refer to `conftest.exe'), while it won't with
2112# `rm'.
2113for ac_file in conftest.exe conftest conftest.*; do
2114  test -f "$ac_file" || continue
2115  case $ac_file in
2116    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2117    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118	  export ac_cv_exeext
2119	  break;;
2120    * ) break;;
2121  esac
2122done
2123else
2124  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2125See \`config.log' for more details." >&5
2126echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&2;}
2128   { (exit 1); exit 1; }; }
2129fi
2130
2131rm -f conftest$ac_cv_exeext
2132echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2133echo "${ECHO_T}$ac_cv_exeext" >&6
2134
2135rm -f conftest.$ac_ext
2136EXEEXT=$ac_cv_exeext
2137ac_exeext=$EXEEXT
2138echo "$as_me:$LINENO: checking for suffix of object files" >&5
2139echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2140if test "${ac_cv_objext+set}" = set; then
2141  echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143  cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h.  */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h.  */
2149
2150int
2151main ()
2152{
2153
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158rm -f conftest.o conftest.obj
2159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160  (eval $ac_compile) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }; then
2164  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2165  case $ac_file in
2166    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2167    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2168       break;;
2169  esac
2170done
2171else
2172  echo "$as_me: failed program was:" >&5
2173sed 's/^/| /' conftest.$ac_ext >&5
2174
2175{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2176See \`config.log' for more details." >&5
2177echo "$as_me: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&2;}
2179   { (exit 1); exit 1; }; }
2180fi
2181
2182rm -f conftest.$ac_cv_objext conftest.$ac_ext
2183fi
2184echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2185echo "${ECHO_T}$ac_cv_objext" >&6
2186OBJEXT=$ac_cv_objext
2187ac_objext=$OBJEXT
2188echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2189echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2190if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2191  echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193  cat >conftest.$ac_ext <<_ACEOF
2194/* confdefs.h.  */
2195_ACEOF
2196cat confdefs.h >>conftest.$ac_ext
2197cat >>conftest.$ac_ext <<_ACEOF
2198/* end confdefs.h.  */
2199
2200int
2201main ()
2202{
2203#ifndef __GNUC__
2204       choke me
2205#endif
2206
2207  ;
2208  return 0;
2209}
2210_ACEOF
2211rm -f conftest.$ac_objext
2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213  (eval $ac_compile) 2>conftest.er1
2214  ac_status=$?
2215  grep -v '^ *+' conftest.er1 >conftest.err
2216  rm -f conftest.er1
2217  cat conftest.err >&5
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); } &&
2220	 { ac_try='test -z "$ac_cxx_werror_flag"
2221			 || test ! -s conftest.err'
2222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223  (eval $ac_try) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }; } &&
2227	 { ac_try='test -s conftest.$ac_objext'
2228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229  (eval $ac_try) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; }; then
2233  ac_compiler_gnu=yes
2234else
2235  echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238ac_compiler_gnu=no
2239fi
2240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2242
2243fi
2244echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2245echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2246GXX=`test $ac_compiler_gnu = yes && echo yes`
2247ac_test_CXXFLAGS=${CXXFLAGS+set}
2248ac_save_CXXFLAGS=$CXXFLAGS
2249CXXFLAGS="-g"
2250echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2251echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2252if test "${ac_cv_prog_cxx_g+set}" = set; then
2253  echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255  cat >conftest.$ac_ext <<_ACEOF
2256/* confdefs.h.  */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h.  */
2261
2262int
2263main ()
2264{
2265
2266  ;
2267  return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272  (eval $ac_compile) 2>conftest.er1
2273  ac_status=$?
2274  grep -v '^ *+' conftest.er1 >conftest.err
2275  rm -f conftest.er1
2276  cat conftest.err >&5
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); } &&
2279	 { ac_try='test -z "$ac_cxx_werror_flag"
2280			 || test ! -s conftest.err'
2281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282  (eval $ac_try) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; } &&
2286	 { ac_try='test -s conftest.$ac_objext'
2287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288  (eval $ac_try) 2>&5
2289  ac_status=$?
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); }; }; then
2292  ac_cv_prog_cxx_g=yes
2293else
2294  echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297ac_cv_prog_cxx_g=no
2298fi
2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300fi
2301echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2302echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2303if test "$ac_test_CXXFLAGS" = set; then
2304  CXXFLAGS=$ac_save_CXXFLAGS
2305elif test $ac_cv_prog_cxx_g = yes; then
2306  if test "$GXX" = yes; then
2307    CXXFLAGS="-g -O2"
2308  else
2309    CXXFLAGS="-g"
2310  fi
2311else
2312  if test "$GXX" = yes; then
2313    CXXFLAGS="-O2"
2314  else
2315    CXXFLAGS=
2316  fi
2317fi
2318for ac_declaration in \
2319   '' \
2320   'extern "C" void std::exit (int) throw (); using std::exit;' \
2321   'extern "C" void std::exit (int); using std::exit;' \
2322   'extern "C" void exit (int) throw ();' \
2323   'extern "C" void exit (int);' \
2324   'void exit (int);'
2325do
2326  cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h.  */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h.  */
2332$ac_declaration
2333@%:@include <stdlib.h>
2334int
2335main ()
2336{
2337exit (42);
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344  (eval $ac_compile) 2>conftest.er1
2345  ac_status=$?
2346  grep -v '^ *+' conftest.er1 >conftest.err
2347  rm -f conftest.er1
2348  cat conftest.err >&5
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); } &&
2351	 { ac_try='test -z "$ac_cxx_werror_flag"
2352			 || test ! -s conftest.err'
2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354  (eval $ac_try) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; } &&
2358	 { ac_try='test -s conftest.$ac_objext'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; }; then
2364  :
2365else
2366  echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369continue
2370fi
2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372  cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378$ac_declaration
2379int
2380main ()
2381{
2382exit (42);
2383  ;
2384  return 0;
2385}
2386_ACEOF
2387rm -f conftest.$ac_objext
2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389  (eval $ac_compile) 2>conftest.er1
2390  ac_status=$?
2391  grep -v '^ *+' conftest.er1 >conftest.err
2392  rm -f conftest.er1
2393  cat conftest.err >&5
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); } &&
2396	 { ac_try='test -z "$ac_cxx_werror_flag"
2397			 || test ! -s conftest.err'
2398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399  (eval $ac_try) 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; } &&
2403	 { ac_try='test -s conftest.$ac_objext'
2404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405  (eval $ac_try) 2>&5
2406  ac_status=$?
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); }; }; then
2409  break
2410else
2411  echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414fi
2415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416done
2417rm -f conftest*
2418if test -n "$ac_declaration"; then
2419  echo '#ifdef __cplusplus' >>confdefs.h
2420  echo $ac_declaration      >>confdefs.h
2421  echo '#endif'             >>confdefs.h
2422fi
2423
2424ac_ext=cc
2425ac_cpp='$CXXCPP $CPPFLAGS'
2426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2429rm -f .deps 2>/dev/null
2430mkdir .deps 2>/dev/null
2431if test -d .deps; then
2432  DEPDIR=.deps
2433else
2434  # MS-DOS does not allow filenames that begin with a dot.
2435  DEPDIR=_deps
2436fi
2437rmdir .deps 2>/dev/null
2438
2439
2440          ac_config_commands="$ac_config_commands depfiles"
2441
2442
2443am_make=${MAKE-make}
2444cat > confinc << 'END'
2445doit:
2446	@echo done
2447END
2448# If we don't find an include directive, just comment out the code.
2449echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2450echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2451am__include="#"
2452am__quote=
2453_am_result=none
2454# First try GNU make style include.
2455echo "include confinc" > confmf
2456# We grep out `Entering directory' and `Leaving directory'
2457# messages which can occur if `w' ends up in MAKEFLAGS.
2458# In particular we don't look at `^make:' because GNU make might
2459# be invoked under some other name (usually "gmake"), in which
2460# case it prints its new name instead of `make'.
2461if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2462   am__include=include
2463   am__quote=
2464   _am_result=GNU
2465fi
2466# Now try BSD make style include.
2467if test "$am__include" = "#"; then
2468   echo '.include "confinc"' > confmf
2469   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2470      am__include=.include
2471      am__quote="\""
2472      _am_result=BSD
2473   fi
2474fi
2475
2476
2477echo "$as_me:$LINENO: result: $_am_result" >&5
2478echo "${ECHO_T}$_am_result" >&6
2479rm -f confinc confmf
2480
2481# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2482if test "${enable_dependency_tracking+set}" = set; then
2483  enableval="$enable_dependency_tracking"
2484
2485fi;
2486if test "x$enable_dependency_tracking" != xno; then
2487  am_depcomp="$ac_aux_dir/depcomp"
2488  AMDEPBACKSLASH='\'
2489fi
2490
2491
2492if test "x$enable_dependency_tracking" != xno; then
2493  AMDEP_TRUE=
2494  AMDEP_FALSE='#'
2495else
2496  AMDEP_TRUE='#'
2497  AMDEP_FALSE=
2498fi
2499
2500
2501
2502
2503depcc="$CXX"  am_compiler_list=
2504
2505echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2506echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2507if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2511  # We make a subdir and do the tests there.  Otherwise we can end up
2512  # making bogus files that we don't know about and never remove.  For
2513  # instance it was reported that on HP-UX the gcc test will end up
2514  # making a dummy file named `D' -- because `-MD' means `put the output
2515  # in D'.
2516  mkdir conftest.dir
2517  # Copy depcomp to subdir because otherwise we won't find it if we're
2518  # using a relative directory.
2519  cp "$am_depcomp" conftest.dir
2520  cd conftest.dir
2521
2522  am_cv_CXX_dependencies_compiler_type=none
2523  if test "$am_compiler_list" = ""; then
2524     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2525  fi
2526  for depmode in $am_compiler_list; do
2527    # We need to recreate these files for each test, as the compiler may
2528    # overwrite some of them when testing with obscure command lines.
2529    # This happens at least with the AIX C compiler.
2530    echo '#include "conftest.h"' > conftest.c
2531    echo 'int i;' > conftest.h
2532    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2533
2534    case $depmode in
2535    nosideeffect)
2536      # after this tag, mechanisms are not by side-effect, so they'll
2537      # only be used when explicitly requested
2538      if test "x$enable_dependency_tracking" = xyes; then
2539	continue
2540      else
2541	break
2542      fi
2543      ;;
2544    none) break ;;
2545    esac
2546    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2547    # mode.  It turns out that the SunPro C++ compiler does not properly
2548    # handle `-M -o', and we need to detect this.
2549    if depmode=$depmode \
2550       source=conftest.c object=conftest.o \
2551       depfile=conftest.Po tmpdepfile=conftest.TPo \
2552       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2553       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2554       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2555      am_cv_CXX_dependencies_compiler_type=$depmode
2556      break
2557    fi
2558  done
2559
2560  cd ..
2561  rm -rf conftest.dir
2562else
2563  am_cv_CXX_dependencies_compiler_type=none
2564fi
2565
2566fi
2567echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2568echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2569CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2570
2571
2572# Check whether --enable-shared or --disable-shared was given.
2573if test "${enable_shared+set}" = set; then
2574  enableval="$enable_shared"
2575  p=${PACKAGE-default}
2576case $enableval in
2577yes) enable_shared=yes ;;
2578no) enable_shared=no ;;
2579*)
2580  enable_shared=no
2581  # Look at the argument we got.  We use all the common list separators.
2582  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2583  for pkg in $enableval; do
2584    if test "X$pkg" = "X$p"; then
2585      enable_shared=yes
2586    fi
2587  done
2588  IFS="$ac_save_ifs"
2589  ;;
2590esac
2591else
2592  enable_shared=yes
2593fi;
2594# Check whether --enable-static or --disable-static was given.
2595if test "${enable_static+set}" = set; then
2596  enableval="$enable_static"
2597  p=${PACKAGE-default}
2598case $enableval in
2599yes) enable_static=yes ;;
2600no) enable_static=no ;;
2601*)
2602  enable_static=no
2603  # Look at the argument we got.  We use all the common list separators.
2604  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2605  for pkg in $enableval; do
2606    if test "X$pkg" = "X$p"; then
2607      enable_static=yes
2608    fi
2609  done
2610  IFS="$ac_save_ifs"
2611  ;;
2612esac
2613else
2614  enable_static=yes
2615fi;
2616# Check whether --enable-fast-install or --disable-fast-install was given.
2617if test "${enable_fast_install+set}" = set; then
2618  enableval="$enable_fast_install"
2619  p=${PACKAGE-default}
2620case $enableval in
2621yes) enable_fast_install=yes ;;
2622no) enable_fast_install=no ;;
2623*)
2624  enable_fast_install=no
2625  # Look at the argument we got.  We use all the common list separators.
2626  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2627  for pkg in $enableval; do
2628    if test "X$pkg" = "X$p"; then
2629      enable_fast_install=yes
2630    fi
2631  done
2632  IFS="$ac_save_ifs"
2633  ;;
2634esac
2635else
2636  enable_fast_install=yes
2637fi;
2638# Make sure we can run config.sub.
2639$ac_config_sub sun4 >/dev/null 2>&1 ||
2640  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2641echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2642   { (exit 1); exit 1; }; }
2643
2644echo "$as_me:$LINENO: checking build system type" >&5
2645echo $ECHO_N "checking build system type... $ECHO_C" >&6
2646if test "${ac_cv_build+set}" = set; then
2647  echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
2649  ac_cv_build_alias=$build_alias
2650test -z "$ac_cv_build_alias" &&
2651  ac_cv_build_alias=`$ac_config_guess`
2652test -z "$ac_cv_build_alias" &&
2653  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2654echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2655   { (exit 1); exit 1; }; }
2656ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2657  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2658echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2659   { (exit 1); exit 1; }; }
2660
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2663echo "${ECHO_T}$ac_cv_build" >&6
2664build=$ac_cv_build
2665build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2666build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2667build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2668
2669
2670echo "$as_me:$LINENO: checking host system type" >&5
2671echo $ECHO_N "checking host system type... $ECHO_C" >&6
2672if test "${ac_cv_host+set}" = set; then
2673  echo $ECHO_N "(cached) $ECHO_C" >&6
2674else
2675  ac_cv_host_alias=$host_alias
2676test -z "$ac_cv_host_alias" &&
2677  ac_cv_host_alias=$ac_cv_build_alias
2678ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2679  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2680echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2681   { (exit 1); exit 1; }; }
2682
2683fi
2684echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2685echo "${ECHO_T}$ac_cv_host" >&6
2686host=$ac_cv_host
2687host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2688host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2689host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2690
2691
2692ac_ext=c
2693ac_cpp='$CPP $CPPFLAGS'
2694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697if test -n "$ac_tool_prefix"; then
2698  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2699set dummy ${ac_tool_prefix}gcc; ac_word=$2
2700echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702if test "${ac_cv_prog_CC+set}" = set; then
2703  echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705  if test -n "$CC"; then
2706  ac_cv_prog_CC="$CC" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713  for ac_exec_ext in '' $ac_executable_extensions; do
2714  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717    break 2
2718  fi
2719done
2720done
2721
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
2726  echo "$as_me:$LINENO: result: $CC" >&5
2727echo "${ECHO_T}$CC" >&6
2728else
2729  echo "$as_me:$LINENO: result: no" >&5
2730echo "${ECHO_T}no" >&6
2731fi
2732
2733fi
2734if test -z "$ac_cv_prog_CC"; then
2735  ac_ct_CC=$CC
2736  # Extract the first word of "gcc", so it can be a program name with args.
2737set dummy gcc; ac_word=$2
2738echo "$as_me:$LINENO: checking for $ac_word" >&5
2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2741  echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
2743  if test -n "$ac_ct_CC"; then
2744  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751  for ac_exec_ext in '' $ac_executable_extensions; do
2752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753    ac_cv_prog_ac_ct_CC="gcc"
2754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758done
2759
2760fi
2761fi
2762ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763if test -n "$ac_ct_CC"; then
2764  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765echo "${ECHO_T}$ac_ct_CC" >&6
2766else
2767  echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6
2769fi
2770
2771  CC=$ac_ct_CC
2772else
2773  CC="$ac_cv_prog_CC"
2774fi
2775
2776if test -z "$CC"; then
2777  if test -n "$ac_tool_prefix"; then
2778  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}cc; ac_word=$2
2780echo "$as_me:$LINENO: checking for $ac_word" >&5
2781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782if test "${ac_cv_prog_CC+set}" = set; then
2783  echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785  if test -n "$CC"; then
2786  ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793  for ac_exec_ext in '' $ac_executable_extensions; do
2794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795    ac_cv_prog_CC="${ac_tool_prefix}cc"
2796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800done
2801
2802fi
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
2806  echo "$as_me:$LINENO: result: $CC" >&5
2807echo "${ECHO_T}$CC" >&6
2808else
2809  echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811fi
2812
2813fi
2814if test -z "$ac_cv_prog_CC"; then
2815  ac_ct_CC=$CC
2816  # Extract the first word of "cc", so it can be a program name with args.
2817set dummy cc; ac_word=$2
2818echo "$as_me:$LINENO: checking for $ac_word" >&5
2819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2821  echo $ECHO_N "(cached) $ECHO_C" >&6
2822else
2823  if test -n "$ac_ct_CC"; then
2824  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829  IFS=$as_save_IFS
2830  test -z "$as_dir" && as_dir=.
2831  for ac_exec_ext in '' $ac_executable_extensions; do
2832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833    ac_cv_prog_ac_ct_CC="cc"
2834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835    break 2
2836  fi
2837done
2838done
2839
2840fi
2841fi
2842ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843if test -n "$ac_ct_CC"; then
2844  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845echo "${ECHO_T}$ac_ct_CC" >&6
2846else
2847  echo "$as_me:$LINENO: result: no" >&5
2848echo "${ECHO_T}no" >&6
2849fi
2850
2851  CC=$ac_ct_CC
2852else
2853  CC="$ac_cv_prog_CC"
2854fi
2855
2856fi
2857if test -z "$CC"; then
2858  # Extract the first word of "cc", so it can be a program name with args.
2859set dummy cc; ac_word=$2
2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862if test "${ac_cv_prog_CC+set}" = set; then
2863  echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865  if test -n "$CC"; then
2866  ac_cv_prog_CC="$CC" # Let the user override the test.
2867else
2868  ac_prog_rejected=no
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872  IFS=$as_save_IFS
2873  test -z "$as_dir" && as_dir=.
2874  for ac_exec_ext in '' $ac_executable_extensions; do
2875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2877       ac_prog_rejected=yes
2878       continue
2879     fi
2880    ac_cv_prog_CC="cc"
2881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885done
2886
2887if test $ac_prog_rejected = yes; then
2888  # We found a bogon in the path, so make sure we never use it.
2889  set dummy $ac_cv_prog_CC
2890  shift
2891  if test $@%:@ != 0; then
2892    # We chose a different compiler from the bogus one.
2893    # However, it has the same basename, so the bogon will be chosen
2894    # first if we set CC to just the basename; use the full file name.
2895    shift
2896    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2897  fi
2898fi
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903  echo "$as_me:$LINENO: result: $CC" >&5
2904echo "${ECHO_T}$CC" >&6
2905else
2906  echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910fi
2911if test -z "$CC"; then
2912  if test -n "$ac_tool_prefix"; then
2913  for ac_prog in cl
2914  do
2915    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917echo "$as_me:$LINENO: checking for $ac_word" >&5
2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919if test "${ac_cv_prog_CC+set}" = set; then
2920  echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922  if test -n "$CC"; then
2923  ac_cv_prog_CC="$CC" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930  for ac_exec_ext in '' $ac_executable_extensions; do
2931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937done
2938
2939fi
2940fi
2941CC=$ac_cv_prog_CC
2942if test -n "$CC"; then
2943  echo "$as_me:$LINENO: result: $CC" >&5
2944echo "${ECHO_T}$CC" >&6
2945else
2946  echo "$as_me:$LINENO: result: no" >&5
2947echo "${ECHO_T}no" >&6
2948fi
2949
2950    test -n "$CC" && break
2951  done
2952fi
2953if test -z "$CC"; then
2954  ac_ct_CC=$CC
2955  for ac_prog in cl
2956do
2957  # Extract the first word of "$ac_prog", so it can be a program name with args.
2958set dummy $ac_prog; ac_word=$2
2959echo "$as_me:$LINENO: checking for $ac_word" >&5
2960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2962  echo $ECHO_N "(cached) $ECHO_C" >&6
2963else
2964  if test -n "$ac_ct_CC"; then
2965  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966else
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970  IFS=$as_save_IFS
2971  test -z "$as_dir" && as_dir=.
2972  for ac_exec_ext in '' $ac_executable_extensions; do
2973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974    ac_cv_prog_ac_ct_CC="$ac_prog"
2975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976    break 2
2977  fi
2978done
2979done
2980
2981fi
2982fi
2983ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984if test -n "$ac_ct_CC"; then
2985  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2986echo "${ECHO_T}$ac_ct_CC" >&6
2987else
2988  echo "$as_me:$LINENO: result: no" >&5
2989echo "${ECHO_T}no" >&6
2990fi
2991
2992  test -n "$ac_ct_CC" && break
2993done
2994
2995  CC=$ac_ct_CC
2996fi
2997
2998fi
2999
3000
3001test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3002See \`config.log' for more details." >&5
3003echo "$as_me: error: no acceptable C compiler found in \$PATH
3004See \`config.log' for more details." >&2;}
3005   { (exit 1); exit 1; }; }
3006
3007# Provide some information about the compiler.
3008echo "$as_me:$LINENO:" \
3009     "checking for C compiler version" >&5
3010ac_compiler=`set X $ac_compile; echo $2`
3011{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3012  (eval $ac_compiler --version </dev/null >&5) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }
3016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3017  (eval $ac_compiler -v </dev/null >&5) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }
3021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3022  (eval $ac_compiler -V </dev/null >&5) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }
3026
3027echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3028echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3029if test "${ac_cv_c_compiler_gnu+set}" = set; then
3030  echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032  cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h.  */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h.  */
3038
3039int
3040main ()
3041{
3042#ifndef __GNUC__
3043       choke me
3044#endif
3045
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext
3051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052  (eval $ac_compile) 2>conftest.er1
3053  ac_status=$?
3054  grep -v '^ *+' conftest.er1 >conftest.err
3055  rm -f conftest.er1
3056  cat conftest.err >&5
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); } &&
3059	 { ac_try='test -z "$ac_c_werror_flag"
3060			 || test ! -s conftest.err'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; } &&
3066	 { ac_try='test -s conftest.$ac_objext'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; }; then
3072  ac_compiler_gnu=yes
3073else
3074  echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077ac_compiler_gnu=no
3078fi
3079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080ac_cv_c_compiler_gnu=$ac_compiler_gnu
3081
3082fi
3083echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3085GCC=`test $ac_compiler_gnu = yes && echo yes`
3086ac_test_CFLAGS=${CFLAGS+set}
3087ac_save_CFLAGS=$CFLAGS
3088CFLAGS="-g"
3089echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3091if test "${ac_cv_prog_cc_g+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  cat >conftest.$ac_ext <<_ACEOF
3095/* confdefs.h.  */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h.  */
3100
3101int
3102main ()
3103{
3104
3105  ;
3106  return 0;
3107}
3108_ACEOF
3109rm -f conftest.$ac_objext
3110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111  (eval $ac_compile) 2>conftest.er1
3112  ac_status=$?
3113  grep -v '^ *+' conftest.er1 >conftest.err
3114  rm -f conftest.er1
3115  cat conftest.err >&5
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); } &&
3118	 { ac_try='test -z "$ac_c_werror_flag"
3119			 || test ! -s conftest.err'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; } &&
3125	 { ac_try='test -s conftest.$ac_objext'
3126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127  (eval $ac_try) 2>&5
3128  ac_status=$?
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); }; }; then
3131  ac_cv_prog_cc_g=yes
3132else
3133  echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136ac_cv_prog_cc_g=no
3137fi
3138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3139fi
3140echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3141echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3142if test "$ac_test_CFLAGS" = set; then
3143  CFLAGS=$ac_save_CFLAGS
3144elif test $ac_cv_prog_cc_g = yes; then
3145  if test "$GCC" = yes; then
3146    CFLAGS="-g -O2"
3147  else
3148    CFLAGS="-g"
3149  fi
3150else
3151  if test "$GCC" = yes; then
3152    CFLAGS="-O2"
3153  else
3154    CFLAGS=
3155  fi
3156fi
3157echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3158echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3159if test "${ac_cv_prog_cc_stdc+set}" = set; then
3160  echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162  ac_cv_prog_cc_stdc=no
3163ac_save_CC=$CC
3164cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170#include <stdarg.h>
3171#include <stdio.h>
3172#include <sys/types.h>
3173#include <sys/stat.h>
3174/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3175struct buf { int x; };
3176FILE * (*rcsopen) (struct buf *, struct stat *, int);
3177static char *e (p, i)
3178     char **p;
3179     int i;
3180{
3181  return p[i];
3182}
3183static char *f (char * (*g) (char **, int), char **p, ...)
3184{
3185  char *s;
3186  va_list v;
3187  va_start (v,p);
3188  s = g (p, va_arg (v,int));
3189  va_end (v);
3190  return s;
3191}
3192
3193/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3194   function prototypes and stuff, but not '\xHH' hex character constants.
3195   These don't provoke an error unfortunately, instead are silently treated
3196   as 'x'.  The following induces an error, until -std1 is added to get
3197   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3198   array size at least.  It's necessary to write '\x00'==0 to get something
3199   that's true only with -std1.  */
3200int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3201
3202int test (int i, double x);
3203struct s1 {int (*f) (int a);};
3204struct s2 {int (*f) (double a);};
3205int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206int argc;
3207char **argv;
3208int
3209main ()
3210{
3211return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3212  ;
3213  return 0;
3214}
3215_ACEOF
3216# Don't try gcc -ansi; that turns off useful extensions and
3217# breaks some systems' header files.
3218# AIX			-qlanglvl=ansi
3219# Ultrix and OSF/1	-std1
3220# HP-UX 10.20 and later	-Ae
3221# HP-UX older versions	-Aa -D_HPUX_SOURCE
3222# SVR4			-Xc -D__EXTENSIONS__
3223for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3224do
3225  CC="$ac_save_CC $ac_arg"
3226  rm -f conftest.$ac_objext
3227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228  (eval $ac_compile) 2>conftest.er1
3229  ac_status=$?
3230  grep -v '^ *+' conftest.er1 >conftest.err
3231  rm -f conftest.er1
3232  cat conftest.err >&5
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); } &&
3235	 { ac_try='test -z "$ac_c_werror_flag"
3236			 || test ! -s conftest.err'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; } &&
3242	 { ac_try='test -s conftest.$ac_objext'
3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244  (eval $ac_try) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }; }; then
3248  ac_cv_prog_cc_stdc=$ac_arg
3249break
3250else
3251  echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254fi
3255rm -f conftest.err conftest.$ac_objext
3256done
3257rm -f conftest.$ac_ext conftest.$ac_objext
3258CC=$ac_save_CC
3259
3260fi
3261
3262case "x$ac_cv_prog_cc_stdc" in
3263  x|xno)
3264    echo "$as_me:$LINENO: result: none needed" >&5
3265echo "${ECHO_T}none needed" >&6 ;;
3266  *)
3267    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3268echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3269    CC="$CC $ac_cv_prog_cc_stdc" ;;
3270esac
3271
3272# Some people use a C++ compiler to compile C.  Since we use `exit',
3273# in C++ we need to declare it.  In case someone uses the same compiler
3274# for both compiling C and C++ we need to have the C++ compiler decide
3275# the declaration of exit, since it's the most demanding environment.
3276cat >conftest.$ac_ext <<_ACEOF
3277@%:@ifndef __cplusplus
3278  choke me
3279@%:@endif
3280_ACEOF
3281rm -f conftest.$ac_objext
3282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283  (eval $ac_compile) 2>conftest.er1
3284  ac_status=$?
3285  grep -v '^ *+' conftest.er1 >conftest.err
3286  rm -f conftest.er1
3287  cat conftest.err >&5
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); } &&
3290	 { ac_try='test -z "$ac_c_werror_flag"
3291			 || test ! -s conftest.err'
3292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293  (eval $ac_try) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }; } &&
3297	 { ac_try='test -s conftest.$ac_objext'
3298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299  (eval $ac_try) 2>&5
3300  ac_status=$?
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); }; }; then
3303  for ac_declaration in \
3304   '' \
3305   'extern "C" void std::exit (int) throw (); using std::exit;' \
3306   'extern "C" void std::exit (int); using std::exit;' \
3307   'extern "C" void exit (int) throw ();' \
3308   'extern "C" void exit (int);' \
3309   'void exit (int);'
3310do
3311  cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h.  */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h.  */
3317$ac_declaration
3318@%:@include <stdlib.h>
3319int
3320main ()
3321{
3322exit (42);
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext
3328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329  (eval $ac_compile) 2>conftest.er1
3330  ac_status=$?
3331  grep -v '^ *+' conftest.er1 >conftest.err
3332  rm -f conftest.er1
3333  cat conftest.err >&5
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); } &&
3336	 { ac_try='test -z "$ac_c_werror_flag"
3337			 || test ! -s conftest.err'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; } &&
3343	 { ac_try='test -s conftest.$ac_objext'
3344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345  (eval $ac_try) 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }; }; then
3349  :
3350else
3351  echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354continue
3355fi
3356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357  cat >conftest.$ac_ext <<_ACEOF
3358/* confdefs.h.  */
3359_ACEOF
3360cat confdefs.h >>conftest.$ac_ext
3361cat >>conftest.$ac_ext <<_ACEOF
3362/* end confdefs.h.  */
3363$ac_declaration
3364int
3365main ()
3366{
3367exit (42);
3368  ;
3369  return 0;
3370}
3371_ACEOF
3372rm -f conftest.$ac_objext
3373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374  (eval $ac_compile) 2>conftest.er1
3375  ac_status=$?
3376  grep -v '^ *+' conftest.er1 >conftest.err
3377  rm -f conftest.er1
3378  cat conftest.err >&5
3379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); } &&
3381	 { ac_try='test -z "$ac_c_werror_flag"
3382			 || test ! -s conftest.err'
3383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384  (eval $ac_try) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }; } &&
3388	 { ac_try='test -s conftest.$ac_objext'
3389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390  (eval $ac_try) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }; }; then
3394  break
3395else
3396  echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399fi
3400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3401done
3402rm -f conftest*
3403if test -n "$ac_declaration"; then
3404  echo '#ifdef __cplusplus' >>confdefs.h
3405  echo $ac_declaration      >>confdefs.h
3406  echo '#endif'             >>confdefs.h
3407fi
3408
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413fi
3414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415ac_ext=cc
3416ac_cpp='$CXXCPP $CPPFLAGS'
3417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3420
3421depcc="$CC"   am_compiler_list=
3422
3423echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3424echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3425if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3429  # We make a subdir and do the tests there.  Otherwise we can end up
3430  # making bogus files that we don't know about and never remove.  For
3431  # instance it was reported that on HP-UX the gcc test will end up
3432  # making a dummy file named `D' -- because `-MD' means `put the output
3433  # in D'.
3434  mkdir conftest.dir
3435  # Copy depcomp to subdir because otherwise we won't find it if we're
3436  # using a relative directory.
3437  cp "$am_depcomp" conftest.dir
3438  cd conftest.dir
3439
3440  am_cv_CC_dependencies_compiler_type=none
3441  if test "$am_compiler_list" = ""; then
3442     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3443  fi
3444  for depmode in $am_compiler_list; do
3445    # We need to recreate these files for each test, as the compiler may
3446    # overwrite some of them when testing with obscure command lines.
3447    # This happens at least with the AIX C compiler.
3448    echo '#include "conftest.h"' > conftest.c
3449    echo 'int i;' > conftest.h
3450    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3451
3452    case $depmode in
3453    nosideeffect)
3454      # after this tag, mechanisms are not by side-effect, so they'll
3455      # only be used when explicitly requested
3456      if test "x$enable_dependency_tracking" = xyes; then
3457	continue
3458      else
3459	break
3460      fi
3461      ;;
3462    none) break ;;
3463    esac
3464    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3465    # mode.  It turns out that the SunPro C++ compiler does not properly
3466    # handle `-M -o', and we need to detect this.
3467    if depmode=$depmode \
3468       source=conftest.c object=conftest.o \
3469       depfile=conftest.Po tmpdepfile=conftest.TPo \
3470       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3471       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3472       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3473      am_cv_CC_dependencies_compiler_type=$depmode
3474      break
3475    fi
3476  done
3477
3478  cd ..
3479  rm -rf conftest.dir
3480else
3481  am_cv_CC_dependencies_compiler_type=none
3482fi
3483
3484fi
3485echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3486echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3487CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3488
3489
3490# Find the correct PATH separator.  Usually this is `:', but
3491# DJGPP uses `;' like DOS.
3492if test "X${PATH_SEPARATOR+set}" != Xset; then
3493  UNAME=${UNAME-`uname 2>/dev/null`}
3494  case X$UNAME in
3495    *-DOS) lt_cv_sys_path_separator=';' ;;
3496    *)     lt_cv_sys_path_separator=':' ;;
3497  esac
3498  PATH_SEPARATOR=$lt_cv_sys_path_separator
3499fi
3500
3501
3502# Check whether --with-gnu-ld or --without-gnu-ld was given.
3503if test "${with_gnu_ld+set}" = set; then
3504  withval="$with_gnu_ld"
3505  test "$withval" = no || with_gnu_ld=yes
3506else
3507  with_gnu_ld=no
3508fi;
3509ac_prog=ld
3510if test "$GCC" = yes; then
3511  # Check if gcc -print-prog-name=ld gives a path.
3512  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3513echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3514  case $host in
3515  *-*-mingw*)
3516    # gcc leaves a trailing carriage return which upsets mingw
3517    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3518  *)
3519    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3520  esac
3521  case $ac_prog in
3522    # Accept absolute paths.
3523    [\\/]* | [A-Za-z]:[\\/]*)
3524      re_direlt='/[^/][^/]*/\.\./'
3525      # Canonicalize the path of ld
3526      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3527      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3528	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3529      done
3530      test -z "$LD" && LD="$ac_prog"
3531      ;;
3532  "")
3533    # If it fails, then pretend we aren't using GCC.
3534    ac_prog=ld
3535    ;;
3536  *)
3537    # If it is relative, then search for the first ld in PATH.
3538    with_gnu_ld=unknown
3539    ;;
3540  esac
3541elif test "$with_gnu_ld" = yes; then
3542  echo "$as_me:$LINENO: checking for GNU ld" >&5
3543echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3544else
3545  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3546echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3547fi
3548if test "${lt_cv_path_LD+set}" = set; then
3549  echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551  if test -z "$LD"; then
3552  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3553  for ac_dir in $PATH; do
3554    test -z "$ac_dir" && ac_dir=.
3555    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3556      lt_cv_path_LD="$ac_dir/$ac_prog"
3557      # Check to see if the program is GNU ld.  I'd rather use --version,
3558      # but apparently some GNU ld's only accept -v.
3559      # Break only if it was the GNU/non-GNU ld that we prefer.
3560      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3561	test "$with_gnu_ld" != no && break
3562      else
3563	test "$with_gnu_ld" != yes && break
3564      fi
3565    fi
3566  done
3567  IFS="$ac_save_ifs"
3568else
3569  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3570fi
3571fi
3572
3573LD="$lt_cv_path_LD"
3574if test -n "$LD"; then
3575  echo "$as_me:$LINENO: result: $LD" >&5
3576echo "${ECHO_T}$LD" >&6
3577else
3578  echo "$as_me:$LINENO: result: no" >&5
3579echo "${ECHO_T}no" >&6
3580fi
3581test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3582echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3583   { (exit 1); exit 1; }; }
3584echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3585echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3586if test "${lt_cv_prog_gnu_ld+set}" = set; then
3587  echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3590if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3591  lt_cv_prog_gnu_ld=yes
3592else
3593  lt_cv_prog_gnu_ld=no
3594fi
3595fi
3596echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3597echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3598with_gnu_ld=$lt_cv_prog_gnu_ld
3599
3600
3601echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3602echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3603if test "${lt_cv_ld_reload_flag+set}" = set; then
3604  echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606  lt_cv_ld_reload_flag='-r'
3607fi
3608echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3609echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3610reload_flag=$lt_cv_ld_reload_flag
3611test -n "$reload_flag" && reload_flag=" $reload_flag"
3612
3613echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3614echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3615if test "${lt_cv_path_NM+set}" = set; then
3616  echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
3618  if test -n "$NM"; then
3619  # Let the user override the test.
3620  lt_cv_path_NM="$NM"
3621else
3622  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3623  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3624    test -z "$ac_dir" && ac_dir=.
3625    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3626    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3627      # Check to see if the nm accepts a BSD-compat flag.
3628      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3629      #   nm: unknown option "B" ignored
3630      # Tru64's nm complains that /dev/null is an invalid object file
3631      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3632	lt_cv_path_NM="$tmp_nm -B"
3633	break
3634      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3635	lt_cv_path_NM="$tmp_nm -p"
3636	break
3637      else
3638	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3639	continue # so that we can try to find one that supports BSD flags
3640      fi
3641    fi
3642  done
3643  IFS="$ac_save_ifs"
3644  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3645fi
3646fi
3647
3648NM="$lt_cv_path_NM"
3649echo "$as_me:$LINENO: result: $NM" >&5
3650echo "${ECHO_T}$NM" >&6
3651
3652echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3653echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3654if test "${lt_cv_path_SED+set}" = set; then
3655  echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657  # Loop through the user's path and test for sed and gsed.
3658# Then use that list of sed's as ones to test for truncation.
3659as_executable_p="test -f"
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663  IFS=$as_save_IFS
3664  test -z "$as_dir" && as_dir=.
3665  for ac_prog in sed gsed; do
3666    for ac_exec_ext in '' $ac_executable_extensions; do
3667      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3668        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3669      fi
3670    done
3671  done
3672done
3673
3674  # Create a temporary directory, and hook for its removal unless debugging.
3675$debug ||
3676{
3677  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3678  trap '{ (exit 1); exit 1; }' 1 2 13 15
3679}
3680
3681# Create a (secure) tmp directory for tmp files.
3682: ${TMPDIR=/tmp}
3683{
3684  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3685  test -n "$tmp" && test -d "$tmp"
3686}  ||
3687{
3688  tmp=$TMPDIR/sed$$-$RANDOM
3689  (umask 077 && mkdir $tmp)
3690} ||
3691{
3692   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3693   { (exit 1); exit 1; }
3694}
3695  _max=0
3696  _count=0
3697  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3698  # along with /bin/sed that truncates output.
3699  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3700    test ! -f ${_sed} && break
3701    cat /dev/null > "$tmp/sed.in"
3702    _count=0
3703    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3704    # Check for GNU sed and select it if it is found.
3705    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3706      lt_cv_path_SED=${_sed}
3707      break
3708    fi
3709    while true; do
3710      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3711      mv "$tmp/sed.tmp" "$tmp/sed.in"
3712      cp "$tmp/sed.in" "$tmp/sed.nl"
3713      echo >>"$tmp/sed.nl"
3714      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3715      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3716      # 40000 chars as input seems more than enough
3717      test $_count -gt 10 && break
3718      _count=`expr $_count + 1`
3719      if test $_count -gt $_max; then
3720        _max=$_count
3721        lt_cv_path_SED=$_sed
3722      fi
3723    done
3724  done
3725  rm -rf "$tmp"
3726
3727fi
3728
3729if test "X$SED" != "X"; then
3730  lt_cv_path_SED=$SED
3731else
3732  SED=$lt_cv_path_SED
3733fi
3734echo "$as_me:$LINENO: result: $SED" >&5
3735echo "${ECHO_T}$SED" >&6
3736
3737echo "$as_me:$LINENO: checking whether ln -s works" >&5
3738echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3739LN_S=$as_ln_s
3740if test "$LN_S" = "ln -s"; then
3741  echo "$as_me:$LINENO: result: yes" >&5
3742echo "${ECHO_T}yes" >&6
3743else
3744  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3745echo "${ECHO_T}no, using $LN_S" >&6
3746fi
3747
3748echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3749echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3750if test "${lt_cv_deplibs_check_method+set}" = set; then
3751  echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753  lt_cv_file_magic_cmd='$MAGIC_CMD'
3754lt_cv_file_magic_test_file=
3755lt_cv_deplibs_check_method='unknown'
3756# Need to set the preceding variable on all platforms that support
3757# interlibrary dependencies.
3758# 'none' -- dependencies not supported.
3759# `unknown' -- same as none, but documents that we really don't know.
3760# 'pass_all' -- all dependencies passed with no checks.
3761# 'test_compile' -- check by making test program.
3762# 'file_magic [[regex]]' -- check by looking for files in library path
3763# which responds to the $file_magic_cmd with a given egrep regex.
3764# If you have `file' or equivalent on your system and you're not sure
3765# whether `pass_all' will *always* work, you probably want this one.
3766
3767case $host_os in
3768aix4* | aix5*)
3769  lt_cv_deplibs_check_method=pass_all
3770  ;;
3771
3772beos*)
3773  lt_cv_deplibs_check_method=pass_all
3774  ;;
3775
3776bsdi4*)
3777  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3778  lt_cv_file_magic_cmd='/usr/bin/file -L'
3779  lt_cv_file_magic_test_file=/shlib/libc.so
3780  ;;
3781
3782cygwin* | mingw* | pw32*)
3783  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3784  lt_cv_file_magic_cmd='$OBJDUMP -f'
3785  ;;
3786
3787darwin* | rhapsody*)
3788  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3789  lt_cv_file_magic_cmd='/usr/bin/file -L'
3790  case "$host_os" in
3791  rhapsody* | darwin1.[012])
3792    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3793    ;;
3794  *) # Darwin 1.3 on
3795    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3796    ;;
3797  esac
3798  ;;
3799
3800freebsd*)
3801  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3802    case $host_cpu in
3803    i*86 )
3804      # Not sure whether the presence of OpenBSD here was a mistake.
3805      # Let's accept both of them until this is cleared up.
3806      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3807      lt_cv_file_magic_cmd=/usr/bin/file
3808      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3809      ;;
3810    esac
3811  else
3812    lt_cv_deplibs_check_method=pass_all
3813  fi
3814  ;;
3815
3816gnu*)
3817  lt_cv_deplibs_check_method=pass_all
3818  ;;
3819
3820hpux10.20*|hpux11*)
3821  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3822  lt_cv_file_magic_cmd=/usr/bin/file
3823  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3824  ;;
3825
3826irix5* | irix6* | nonstopux*)
3827  case $host_os in
3828  irix5* | nonstopux*)
3829    # this will be overridden with pass_all, but let us keep it just in case
3830    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3831    ;;
3832  *)
3833    case $LD in
3834    *-32|*"-32 ") libmagic=32-bit;;
3835    *-n32|*"-n32 ") libmagic=N32;;
3836    *-64|*"-64 ") libmagic=64-bit;;
3837    *) libmagic=never-match;;
3838    esac
3839    # this will be overridden with pass_all, but let us keep it just in case
3840    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3841    ;;
3842  esac
3843  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3844  lt_cv_deplibs_check_method=pass_all
3845  ;;
3846
3847# This must be Linux ELF.
3848linux-gnu*)
3849  case $host_cpu in
3850  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3851    lt_cv_deplibs_check_method=pass_all ;;
3852  *)
3853    # glibc up to 2.1.1 does not perform some relocations on ARM
3854    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3855  esac
3856  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3857  ;;
3858
3859netbsd*)
3860  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3861    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3862  else
3863    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3864  fi
3865  ;;
3866
3867newos6*)
3868  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3869  lt_cv_file_magic_cmd=/usr/bin/file
3870  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3871  ;;
3872
3873openbsd*)
3874  lt_cv_file_magic_cmd=/usr/bin/file
3875  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3876  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3877    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3878  else
3879    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3880  fi
3881  ;;
3882
3883osf3* | osf4* | osf5*)
3884  # this will be overridden with pass_all, but let us keep it just in case
3885  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3886  lt_cv_file_magic_test_file=/shlib/libc.so
3887  lt_cv_deplibs_check_method=pass_all
3888  ;;
3889
3890sco3.2v5*)
3891  lt_cv_deplibs_check_method=pass_all
3892  ;;
3893
3894solaris*)
3895  lt_cv_deplibs_check_method=pass_all
3896  lt_cv_file_magic_test_file=/lib/libc.so
3897  ;;
3898
3899sysv5uw[78]* | sysv4*uw2*)
3900  lt_cv_deplibs_check_method=pass_all
3901  ;;
3902
3903sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3904  case $host_vendor in
3905  motorola)
3906    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]'
3907    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3908    ;;
3909  ncr)
3910    lt_cv_deplibs_check_method=pass_all
3911    ;;
3912  sequent)
3913    lt_cv_file_magic_cmd='/bin/file'
3914    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3915    ;;
3916  sni)
3917    lt_cv_file_magic_cmd='/bin/file'
3918    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3919    lt_cv_file_magic_test_file=/lib/libc.so
3920    ;;
3921  siemens)
3922    lt_cv_deplibs_check_method=pass_all
3923    ;;
3924  esac
3925  ;;
3926esac
3927
3928fi
3929echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3930echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3931file_magic_cmd=$lt_cv_file_magic_cmd
3932deplibs_check_method=$lt_cv_deplibs_check_method
3933
3934
3935
3936
3937
3938
3939
3940
3941# Check for command to grab the raw symbol name followed by C symbol from nm.
3942echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3943echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3944if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3945  echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947
3948# These are sane defaults that work on at least a few old systems.
3949# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3950
3951# Character class describing NM global symbol codes.
3952symcode='[BCDEGRST]'
3953
3954# Regexp to match symbols that can be accessed directly from C.
3955sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3956
3957# Transform the above into a raw symbol and a C symbol.
3958symxfrm='\1 \2\3 \3'
3959
3960# Transform an extracted symbol line into a proper C declaration
3961lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3962
3963# Transform an extracted symbol line into symbol name and symbol address
3964lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3965
3966# Define system-specific variables.
3967case $host_os in
3968aix*)
3969  symcode='[BCDT]'
3970  ;;
3971cygwin* | mingw* | pw32*)
3972  symcode='[ABCDGISTW]'
3973  ;;
3974hpux*) # Its linker distinguishes data from code symbols
3975  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3976  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'"
3977  ;;
3978irix* | nonstopux*)
3979  symcode='[BCDEGRST]'
3980  ;;
3981osf*)
3982  symcode='[BCDEGQRST]'
3983  ;;
3984solaris* | sysv5*)
3985  symcode='[BDT]'
3986  ;;
3987sysv4)
3988  symcode='[DFNSTU]'
3989  ;;
3990esac
3991
3992# Handle CRLF in mingw tool chain
3993opt_cr=
3994case $host_os in
3995mingw*)
3996  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3997  ;;
3998esac
3999
4000# If we're using GNU nm, then use its standard symbol codes.
4001if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4002  symcode='[ABCDGISTW]'
4003fi
4004
4005# Try without a prefix undercore, then with it.
4006for ac_symprfx in "" "_"; do
4007
4008  # Write the raw and C identifiers.
4009lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4010
4011  # Check to see that the pipe works correctly.
4012  pipe_works=no
4013  rm -f conftest*
4014  cat > conftest.$ac_ext <<EOF
4015#ifdef __cplusplus
4016extern "C" {
4017#endif
4018char nm_test_var;
4019void nm_test_func(){}
4020#ifdef __cplusplus
4021}
4022#endif
4023int main(){nm_test_var='a';nm_test_func();return(0);}
4024EOF
4025
4026  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027  (eval $ac_compile) 2>&5
4028  ac_status=$?
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); }; then
4031    # Now try to grab the symbols.
4032    nlist=conftest.nm
4033    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4034  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4035  ac_status=$?
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); } && test -s "$nlist"; then
4038      # Try sorting and uniquifying the output.
4039      if sort "$nlist" | uniq > "$nlist"T; then
4040	mv -f "$nlist"T "$nlist"
4041      else
4042	rm -f "$nlist"T
4043      fi
4044
4045      # Make sure that we snagged all the symbols we need.
4046      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4047	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4048	  cat <<EOF > conftest.$ac_ext
4049#ifdef __cplusplus
4050extern "C" {
4051#endif
4052
4053EOF
4054	  # Now generate the symbol file.
4055	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4056
4057	  cat <<EOF >> conftest.$ac_ext
4058#if defined (__STDC__) && __STDC__
4059# define lt_ptr void *
4060#else
4061# define lt_ptr char *
4062# define const
4063#endif
4064
4065/* The mapping between symbol names and symbols. */
4066const struct {
4067  const char *name;
4068  lt_ptr address;
4069}
4070lt_preloaded_symbols[] =
4071{
4072EOF
4073	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4074	  cat <<\EOF >> conftest.$ac_ext
4075  {0, (lt_ptr) 0}
4076};
4077
4078#ifdef __cplusplus
4079}
4080#endif
4081EOF
4082	  # Now try linking the two files.
4083	  mv conftest.$ac_objext conftstm.$ac_objext
4084	  save_LIBS="$LIBS"
4085	  save_CFLAGS="$CFLAGS"
4086	  LIBS="conftstm.$ac_objext"
4087	  CFLAGS="$CFLAGS$no_builtin_flag"
4088	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4089  (eval $ac_link) 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); } && test -s conftest$ac_exeext; then
4093	    pipe_works=yes
4094	  fi
4095	  LIBS="$save_LIBS"
4096	  CFLAGS="$save_CFLAGS"
4097	else
4098	  echo "cannot find nm_test_func in $nlist" >&5
4099	fi
4100      else
4101	echo "cannot find nm_test_var in $nlist" >&5
4102      fi
4103    else
4104      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4105    fi
4106  else
4107    echo "$progname: failed program was:" >&5
4108    cat conftest.$ac_ext >&5
4109  fi
4110  rm -f conftest* conftst*
4111
4112  # Do not use the global_symbol_pipe unless it works.
4113  if test "$pipe_works" = yes; then
4114    break
4115  else
4116    lt_cv_sys_global_symbol_pipe=
4117  fi
4118done
4119
4120fi
4121
4122global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4123if test -z "$lt_cv_sys_global_symbol_pipe"; then
4124  global_symbol_to_cdecl=
4125  global_symbol_to_c_name_address=
4126else
4127  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4128  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4129fi
4130if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4131then
4132  echo "$as_me:$LINENO: result: failed" >&5
4133echo "${ECHO_T}failed" >&6
4134else
4135  echo "$as_me:$LINENO: result: ok" >&5
4136echo "${ECHO_T}ok" >&6
4137fi
4138
4139
4140ac_ext=cc
4141ac_cpp='$CXXCPP $CPPFLAGS'
4142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4145echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4146echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4147if test -z "$CXXCPP"; then
4148  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4149  echo $ECHO_N "(cached) $ECHO_C" >&6
4150else
4151      # Double quotes because CXXCPP needs to be expanded
4152    for CXXCPP in "$CXX -E" "/lib/cpp"
4153    do
4154      ac_preproc_ok=false
4155for ac_cxx_preproc_warn_flag in '' yes
4156do
4157  # Use a header file that comes with gcc, so configuring glibc
4158  # with a fresh cross-compiler works.
4159  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4160  # <limits.h> exists even on freestanding compilers.
4161  # On the NeXT, cc -E runs the code through the compiler's parser,
4162  # not just through cpp. "Syntax error" is here to catch this case.
4163  cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h.  */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h.  */
4169@%:@ifdef __STDC__
4170@%:@ include <limits.h>
4171@%:@else
4172@%:@ include <assert.h>
4173@%:@endif
4174		     Syntax error
4175_ACEOF
4176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4177  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4178  ac_status=$?
4179  grep -v '^ *+' conftest.er1 >conftest.err
4180  rm -f conftest.er1
4181  cat conftest.err >&5
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); } >/dev/null; then
4184  if test -s conftest.err; then
4185    ac_cpp_err=$ac_cxx_preproc_warn_flag
4186    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4187  else
4188    ac_cpp_err=
4189  fi
4190else
4191  ac_cpp_err=yes
4192fi
4193if test -z "$ac_cpp_err"; then
4194  :
4195else
4196  echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199  # Broken: fails on valid input.
4200continue
4201fi
4202rm -f conftest.err conftest.$ac_ext
4203
4204  # OK, works on sane cases.  Now check whether non-existent headers
4205  # can be detected and how.
4206  cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h.  */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h.  */
4212@%:@include <ac_nonexistent.h>
4213_ACEOF
4214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216  ac_status=$?
4217  grep -v '^ *+' conftest.er1 >conftest.err
4218  rm -f conftest.er1
4219  cat conftest.err >&5
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); } >/dev/null; then
4222  if test -s conftest.err; then
4223    ac_cpp_err=$ac_cxx_preproc_warn_flag
4224    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4225  else
4226    ac_cpp_err=
4227  fi
4228else
4229  ac_cpp_err=yes
4230fi
4231if test -z "$ac_cpp_err"; then
4232  # Broken: success on invalid input.
4233continue
4234else
4235  echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238  # Passes both tests.
4239ac_preproc_ok=:
4240break
4241fi
4242rm -f conftest.err conftest.$ac_ext
4243
4244done
4245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246rm -f conftest.err conftest.$ac_ext
4247if $ac_preproc_ok; then
4248  break
4249fi
4250
4251    done
4252    ac_cv_prog_CXXCPP=$CXXCPP
4253
4254fi
4255  CXXCPP=$ac_cv_prog_CXXCPP
4256else
4257  ac_cv_prog_CXXCPP=$CXXCPP
4258fi
4259echo "$as_me:$LINENO: result: $CXXCPP" >&5
4260echo "${ECHO_T}$CXXCPP" >&6
4261ac_preproc_ok=false
4262for ac_cxx_preproc_warn_flag in '' yes
4263do
4264  # Use a header file that comes with gcc, so configuring glibc
4265  # with a fresh cross-compiler works.
4266  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267  # <limits.h> exists even on freestanding compilers.
4268  # On the NeXT, cc -E runs the code through the compiler's parser,
4269  # not just through cpp. "Syntax error" is here to catch this case.
4270  cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h.  */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h.  */
4276@%:@ifdef __STDC__
4277@%:@ include <limits.h>
4278@%:@else
4279@%:@ include <assert.h>
4280@%:@endif
4281		     Syntax error
4282_ACEOF
4283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285  ac_status=$?
4286  grep -v '^ *+' conftest.er1 >conftest.err
4287  rm -f conftest.er1
4288  cat conftest.err >&5
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); } >/dev/null; then
4291  if test -s conftest.err; then
4292    ac_cpp_err=$ac_cxx_preproc_warn_flag
4293    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4294  else
4295    ac_cpp_err=
4296  fi
4297else
4298  ac_cpp_err=yes
4299fi
4300if test -z "$ac_cpp_err"; then
4301  :
4302else
4303  echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306  # Broken: fails on valid input.
4307continue
4308fi
4309rm -f conftest.err conftest.$ac_ext
4310
4311  # OK, works on sane cases.  Now check whether non-existent headers
4312  # can be detected and how.
4313  cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h.  */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h.  */
4319@%:@include <ac_nonexistent.h>
4320_ACEOF
4321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4322  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4323  ac_status=$?
4324  grep -v '^ *+' conftest.er1 >conftest.err
4325  rm -f conftest.er1
4326  cat conftest.err >&5
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); } >/dev/null; then
4329  if test -s conftest.err; then
4330    ac_cpp_err=$ac_cxx_preproc_warn_flag
4331    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4332  else
4333    ac_cpp_err=
4334  fi
4335else
4336  ac_cpp_err=yes
4337fi
4338if test -z "$ac_cpp_err"; then
4339  # Broken: success on invalid input.
4340continue
4341else
4342  echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345  # Passes both tests.
4346ac_preproc_ok=:
4347break
4348fi
4349rm -f conftest.err conftest.$ac_ext
4350
4351done
4352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353rm -f conftest.err conftest.$ac_ext
4354if $ac_preproc_ok; then
4355  :
4356else
4357  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4358See \`config.log' for more details." >&5
4359echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4360See \`config.log' for more details." >&2;}
4361   { (exit 1); exit 1; }; }
4362fi
4363
4364ac_ext=cc
4365ac_cpp='$CXXCPP $CPPFLAGS'
4366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4369
4370
4371echo "$as_me:$LINENO: checking for egrep" >&5
4372echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4373if test "${ac_cv_prog_egrep+set}" = set; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4377    then ac_cv_prog_egrep='grep -E'
4378    else ac_cv_prog_egrep='egrep'
4379    fi
4380fi
4381echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4382echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4383 EGREP=$ac_cv_prog_egrep
4384
4385
4386echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4387echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4388if test "${ac_cv_header_stdc+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h.  */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h.  */
4397#include <stdlib.h>
4398#include <stdarg.h>
4399#include <string.h>
4400#include <float.h>
4401
4402int
4403main ()
4404{
4405
4406  ;
4407  return 0;
4408}
4409_ACEOF
4410rm -f conftest.$ac_objext
4411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412  (eval $ac_compile) 2>conftest.er1
4413  ac_status=$?
4414  grep -v '^ *+' conftest.er1 >conftest.err
4415  rm -f conftest.er1
4416  cat conftest.err >&5
4417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); } &&
4419	 { ac_try='test -z "$ac_cxx_werror_flag"
4420			 || test ! -s conftest.err'
4421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422  (eval $ac_try) 2>&5
4423  ac_status=$?
4424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425  (exit $ac_status); }; } &&
4426	 { ac_try='test -s conftest.$ac_objext'
4427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428  (eval $ac_try) 2>&5
4429  ac_status=$?
4430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431  (exit $ac_status); }; }; then
4432  ac_cv_header_stdc=yes
4433else
4434  echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
4437ac_cv_header_stdc=no
4438fi
4439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440
4441if test $ac_cv_header_stdc = yes; then
4442  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4443  cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h.  */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h.  */
4449#include <string.h>
4450
4451_ACEOF
4452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453  $EGREP "memchr" >/dev/null 2>&1; then
4454  :
4455else
4456  ac_cv_header_stdc=no
4457fi
4458rm -f conftest*
4459
4460fi
4461
4462if test $ac_cv_header_stdc = yes; then
4463  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4464  cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h.  */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h.  */
4470#include <stdlib.h>
4471
4472_ACEOF
4473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474  $EGREP "free" >/dev/null 2>&1; then
4475  :
4476else
4477  ac_cv_header_stdc=no
4478fi
4479rm -f conftest*
4480
4481fi
4482
4483if test $ac_cv_header_stdc = yes; then
4484  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4485  if test "$cross_compiling" = yes; then
4486  :
4487else
4488  cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h.  */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h.  */
4494#include <ctype.h>
4495#if ((' ' & 0x0FF) == 0x020)
4496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4498#else
4499# define ISLOWER(c) \
4500		   (('a' <= (c) && (c) <= 'i') \
4501		     || ('j' <= (c) && (c) <= 'r') \
4502		     || ('s' <= (c) && (c) <= 'z'))
4503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4504#endif
4505
4506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4507int
4508main ()
4509{
4510  int i;
4511  for (i = 0; i < 256; i++)
4512    if (XOR (islower (i), ISLOWER (i))
4513	|| toupper (i) != TOUPPER (i))
4514      exit(2);
4515  exit (0);
4516}
4517_ACEOF
4518rm -f conftest$ac_exeext
4519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4520  (eval $ac_link) 2>&5
4521  ac_status=$?
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525  (eval $ac_try) 2>&5
4526  ac_status=$?
4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528  (exit $ac_status); }; }; then
4529  :
4530else
4531  echo "$as_me: program exited with status $ac_status" >&5
4532echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535( exit $ac_status )
4536ac_cv_header_stdc=no
4537fi
4538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4539fi
4540fi
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4543echo "${ECHO_T}$ac_cv_header_stdc" >&6
4544if test $ac_cv_header_stdc = yes; then
4545
4546cat >>confdefs.h <<\_ACEOF
4547@%:@define STDC_HEADERS 1
4548_ACEOF
4549
4550fi
4551
4552# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4563		  inttypes.h stdint.h unistd.h
4564do
4565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566echo "$as_me:$LINENO: checking for $ac_header" >&5
4567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4568if eval "test \"\${$as_ac_Header+set}\" = set"; then
4569  echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571  cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h.  */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h.  */
4577$ac_includes_default
4578
4579@%:@include <$ac_header>
4580_ACEOF
4581rm -f conftest.$ac_objext
4582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583  (eval $ac_compile) 2>conftest.er1
4584  ac_status=$?
4585  grep -v '^ *+' conftest.er1 >conftest.err
4586  rm -f conftest.er1
4587  cat conftest.err >&5
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } &&
4590	 { ac_try='test -z "$ac_cxx_werror_flag"
4591			 || test ! -s conftest.err'
4592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593  (eval $ac_try) 2>&5
4594  ac_status=$?
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); }; } &&
4597	 { ac_try='test -s conftest.$ac_objext'
4598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599  (eval $ac_try) 2>&5
4600  ac_status=$?
4601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602  (exit $ac_status); }; }; then
4603  eval "$as_ac_Header=yes"
4604else
4605  echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608eval "$as_ac_Header=no"
4609fi
4610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611fi
4612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4614if test `eval echo '${'$as_ac_Header'}'` = yes; then
4615  cat >>confdefs.h <<_ACEOF
4616@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4617_ACEOF
4618
4619fi
4620
4621done
4622
4623
4624
4625for ac_header in dlfcn.h
4626do
4627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4628if eval "test \"\${$as_ac_Header+set}\" = set"; then
4629  echo "$as_me:$LINENO: checking for $ac_header" >&5
4630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4631if eval "test \"\${$as_ac_Header+set}\" = set"; then
4632  echo $ECHO_N "(cached) $ECHO_C" >&6
4633fi
4634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636else
4637  # Is the header compilable?
4638echo "$as_me:$LINENO: checking $ac_header usability" >&5
4639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4640cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h.  */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h.  */
4646$ac_includes_default
4647@%:@include <$ac_header>
4648_ACEOF
4649rm -f conftest.$ac_objext
4650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651  (eval $ac_compile) 2>conftest.er1
4652  ac_status=$?
4653  grep -v '^ *+' conftest.er1 >conftest.err
4654  rm -f conftest.er1
4655  cat conftest.err >&5
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } &&
4658	 { ac_try='test -z "$ac_cxx_werror_flag"
4659			 || test ! -s conftest.err'
4660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661  (eval $ac_try) 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); }; } &&
4665	 { ac_try='test -s conftest.$ac_objext'
4666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667  (eval $ac_try) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }; }; then
4671  ac_header_compiler=yes
4672else
4673  echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676ac_header_compiler=no
4677fi
4678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4680echo "${ECHO_T}$ac_header_compiler" >&6
4681
4682# Is the header present?
4683echo "$as_me:$LINENO: checking $ac_header presence" >&5
4684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4685cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h.  */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h.  */
4691@%:@include <$ac_header>
4692_ACEOF
4693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4694  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4695  ac_status=$?
4696  grep -v '^ *+' conftest.er1 >conftest.err
4697  rm -f conftest.er1
4698  cat conftest.err >&5
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); } >/dev/null; then
4701  if test -s conftest.err; then
4702    ac_cpp_err=$ac_cxx_preproc_warn_flag
4703    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4704  else
4705    ac_cpp_err=
4706  fi
4707else
4708  ac_cpp_err=yes
4709fi
4710if test -z "$ac_cpp_err"; then
4711  ac_header_preproc=yes
4712else
4713  echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
4716  ac_header_preproc=no
4717fi
4718rm -f conftest.err conftest.$ac_ext
4719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4720echo "${ECHO_T}$ac_header_preproc" >&6
4721
4722# So?  What about this header?
4723case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4724  yes:no: )
4725    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4727    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4729    ac_header_preproc=yes
4730    ;;
4731  no:yes:* )
4732    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4734    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4735echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4736    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4738    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4739echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4742    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4744    (
4745      cat <<\_ASBOX
4746@%:@@%:@ ------------------------------------------ @%:@@%:@
4747@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
4748@%:@@%:@ ------------------------------------------ @%:@@%:@
4749_ASBOX
4750    ) |
4751      sed "s/^/$as_me: WARNING:     /" >&2
4752    ;;
4753esac
4754echo "$as_me:$LINENO: checking for $ac_header" >&5
4755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4756if eval "test \"\${$as_ac_Header+set}\" = set"; then
4757  echo $ECHO_N "(cached) $ECHO_C" >&6
4758else
4759  eval "$as_ac_Header=\$ac_header_preproc"
4760fi
4761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4763
4764fi
4765if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766  cat >>confdefs.h <<_ACEOF
4767@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768_ACEOF
4769
4770fi
4771
4772done
4773
4774
4775
4776
4777
4778
4779# Only perform the check for file, if the check method requires it
4780case $deplibs_check_method in
4781file_magic*)
4782  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4783    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4784echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4785if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  case $MAGIC_CMD in
4789  /*)
4790  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4791  ;;
4792  ?:/*)
4793  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4794  ;;
4795  *)
4796  ac_save_MAGIC_CMD="$MAGIC_CMD"
4797  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4798  ac_dummy="/usr/bin:$PATH"
4799  for ac_dir in $ac_dummy; do
4800    test -z "$ac_dir" && ac_dir=.
4801    if test -f $ac_dir/${ac_tool_prefix}file; then
4802      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4803      if test -n "$file_magic_test_file"; then
4804	case $deplibs_check_method in
4805	"file_magic "*)
4806	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4807	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4808	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4809	    egrep "$file_magic_regex" > /dev/null; then
4810	    :
4811	  else
4812	    cat <<EOF 1>&2
4813
4814*** Warning: the command libtool uses to detect shared libraries,
4815*** $file_magic_cmd, produces output that libtool cannot recognize.
4816*** The result is that libtool may fail to recognize shared libraries
4817*** as such.  This will affect the creation of libtool libraries that
4818*** depend on shared libraries, but programs linked with such libtool
4819*** libraries will work regardless of this problem.  Nevertheless, you
4820*** may want to report the problem to your system manager and/or to
4821*** bug-libtool@gnu.org
4822
4823EOF
4824	  fi ;;
4825	esac
4826      fi
4827      break
4828    fi
4829  done
4830  IFS="$ac_save_ifs"
4831  MAGIC_CMD="$ac_save_MAGIC_CMD"
4832  ;;
4833esac
4834fi
4835
4836MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4837if test -n "$MAGIC_CMD"; then
4838  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4839echo "${ECHO_T}$MAGIC_CMD" >&6
4840else
4841  echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843fi
4844
4845if test -z "$lt_cv_path_MAGIC_CMD"; then
4846  if test -n "$ac_tool_prefix"; then
4847    echo "$as_me:$LINENO: checking for file" >&5
4848echo $ECHO_N "checking for file... $ECHO_C" >&6
4849if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4850  echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852  case $MAGIC_CMD in
4853  /*)
4854  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4855  ;;
4856  ?:/*)
4857  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4858  ;;
4859  *)
4860  ac_save_MAGIC_CMD="$MAGIC_CMD"
4861  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4862  ac_dummy="/usr/bin:$PATH"
4863  for ac_dir in $ac_dummy; do
4864    test -z "$ac_dir" && ac_dir=.
4865    if test -f $ac_dir/file; then
4866      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4867      if test -n "$file_magic_test_file"; then
4868	case $deplibs_check_method in
4869	"file_magic "*)
4870	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4871	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4872	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4873	    egrep "$file_magic_regex" > /dev/null; then
4874	    :
4875	  else
4876	    cat <<EOF 1>&2
4877
4878*** Warning: the command libtool uses to detect shared libraries,
4879*** $file_magic_cmd, produces output that libtool cannot recognize.
4880*** The result is that libtool may fail to recognize shared libraries
4881*** as such.  This will affect the creation of libtool libraries that
4882*** depend on shared libraries, but programs linked with such libtool
4883*** libraries will work regardless of this problem.  Nevertheless, you
4884*** may want to report the problem to your system manager and/or to
4885*** bug-libtool@gnu.org
4886
4887EOF
4888	  fi ;;
4889	esac
4890      fi
4891      break
4892    fi
4893  done
4894  IFS="$ac_save_ifs"
4895  MAGIC_CMD="$ac_save_MAGIC_CMD"
4896  ;;
4897esac
4898fi
4899
4900MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4901if test -n "$MAGIC_CMD"; then
4902  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4903echo "${ECHO_T}$MAGIC_CMD" >&6
4904else
4905  echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6
4907fi
4908
4909  else
4910    MAGIC_CMD=:
4911  fi
4912fi
4913
4914  fi
4915  ;;
4916esac
4917
4918if test -n "$ac_tool_prefix"; then
4919  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4920set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4921echo "$as_me:$LINENO: checking for $ac_word" >&5
4922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923if test "${ac_cv_prog_RANLIB+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  if test -n "$RANLIB"; then
4927  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932  IFS=$as_save_IFS
4933  test -z "$as_dir" && as_dir=.
4934  for ac_exec_ext in '' $ac_executable_extensions; do
4935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938    break 2
4939  fi
4940done
4941done
4942
4943fi
4944fi
4945RANLIB=$ac_cv_prog_RANLIB
4946if test -n "$RANLIB"; then
4947  echo "$as_me:$LINENO: result: $RANLIB" >&5
4948echo "${ECHO_T}$RANLIB" >&6
4949else
4950  echo "$as_me:$LINENO: result: no" >&5
4951echo "${ECHO_T}no" >&6
4952fi
4953
4954fi
4955if test -z "$ac_cv_prog_RANLIB"; then
4956  ac_ct_RANLIB=$RANLIB
4957  # Extract the first word of "ranlib", so it can be a program name with args.
4958set dummy ranlib; ac_word=$2
4959echo "$as_me:$LINENO: checking for $ac_word" >&5
4960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4962  echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964  if test -n "$ac_ct_RANLIB"; then
4965  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4966else
4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970  IFS=$as_save_IFS
4971  test -z "$as_dir" && as_dir=.
4972  for ac_exec_ext in '' $ac_executable_extensions; do
4973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974    ac_cv_prog_ac_ct_RANLIB="ranlib"
4975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976    break 2
4977  fi
4978done
4979done
4980
4981  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4982fi
4983fi
4984ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4985if test -n "$ac_ct_RANLIB"; then
4986  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4987echo "${ECHO_T}$ac_ct_RANLIB" >&6
4988else
4989  echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991fi
4992
4993  RANLIB=$ac_ct_RANLIB
4994else
4995  RANLIB="$ac_cv_prog_RANLIB"
4996fi
4997
4998if test -n "$ac_tool_prefix"; then
4999  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5000set dummy ${ac_tool_prefix}strip; ac_word=$2
5001echo "$as_me:$LINENO: checking for $ac_word" >&5
5002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003if test "${ac_cv_prog_STRIP+set}" = set; then
5004  echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006  if test -n "$STRIP"; then
5007  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012  IFS=$as_save_IFS
5013  test -z "$as_dir" && as_dir=.
5014  for ac_exec_ext in '' $ac_executable_extensions; do
5015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018    break 2
5019  fi
5020done
5021done
5022
5023fi
5024fi
5025STRIP=$ac_cv_prog_STRIP
5026if test -n "$STRIP"; then
5027  echo "$as_me:$LINENO: result: $STRIP" >&5
5028echo "${ECHO_T}$STRIP" >&6
5029else
5030  echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032fi
5033
5034fi
5035if test -z "$ac_cv_prog_STRIP"; then
5036  ac_ct_STRIP=$STRIP
5037  # Extract the first word of "strip", so it can be a program name with args.
5038set dummy strip; ac_word=$2
5039echo "$as_me:$LINENO: checking for $ac_word" >&5
5040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044  if test -n "$ac_ct_STRIP"; then
5045  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5046else
5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048for as_dir in $PATH
5049do
5050  IFS=$as_save_IFS
5051  test -z "$as_dir" && as_dir=.
5052  for ac_exec_ext in '' $ac_executable_extensions; do
5053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054    ac_cv_prog_ac_ct_STRIP="strip"
5055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056    break 2
5057  fi
5058done
5059done
5060
5061  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5062fi
5063fi
5064ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5065if test -n "$ac_ct_STRIP"; then
5066  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5067echo "${ECHO_T}$ac_ct_STRIP" >&6
5068else
5069  echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6
5071fi
5072
5073  STRIP=$ac_ct_STRIP
5074else
5075  STRIP="$ac_cv_prog_STRIP"
5076fi
5077
5078
5079enable_dlopen=no
5080enable_win32_dll=no
5081
5082# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5083if test "${enable_libtool_lock+set}" = set; then
5084  enableval="$enable_libtool_lock"
5085
5086fi;
5087test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5088
5089# Some flags need to be propagated to the compiler or linker for good
5090# libtool support.
5091case $host in
5092*-*-irix6*)
5093  # Find out which ABI we are using.
5094  echo '#line __oline__ "configure"' > conftest.$ac_ext
5095  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096  (eval $ac_compile) 2>&5
5097  ac_status=$?
5098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099  (exit $ac_status); }; then
5100    case `/usr/bin/file conftest.$ac_objext` in
5101    *32-bit*)
5102      LD="${LD-ld} -32"
5103      ;;
5104    *N32*)
5105      LD="${LD-ld} -n32"
5106      ;;
5107    *64-bit*)
5108      LD="${LD-ld} -64"
5109      ;;
5110    esac
5111  fi
5112  rm -rf conftest*
5113  ;;
5114
5115*-*-linux*)
5116  # Test if the compiler is 64bit
5117  echo 'int i;' > conftest.$ac_ext
5118  lt_cv_cc_64bit_output=no
5119  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120  (eval $ac_compile) 2>&5
5121  ac_status=$?
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); }; then
5124    case `/usr/bin/file conftest.$ac_objext` in
5125    *"ELF 64"*)
5126      lt_cv_cc_64bit_output=yes
5127      ;;
5128    esac
5129  fi
5130  rm -rf conftest*
5131  ;;
5132
5133*-*-sco3.2v5*)
5134  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5135  SAVE_CFLAGS="$CFLAGS"
5136  CFLAGS="$CFLAGS -belf"
5137  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5138echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5139if test "${lt_cv_cc_needs_belf+set}" = set; then
5140  echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142
5143
5144     ac_ext=c
5145ac_cpp='$CPP $CPPFLAGS'
5146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
5150     cat >conftest.$ac_ext <<_ACEOF
5151/* confdefs.h.  */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h.  */
5156
5157int
5158main ()
5159{
5160
5161  ;
5162  return 0;
5163}
5164_ACEOF
5165rm -f conftest.$ac_objext conftest$ac_exeext
5166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167  (eval $ac_link) 2>conftest.er1
5168  ac_status=$?
5169  grep -v '^ *+' conftest.er1 >conftest.err
5170  rm -f conftest.er1
5171  cat conftest.err >&5
5172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); } &&
5174	 { ac_try='test -z "$ac_c_werror_flag"
5175			 || test ! -s conftest.err'
5176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177  (eval $ac_try) 2>&5
5178  ac_status=$?
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); }; } &&
5181	 { ac_try='test -s conftest$ac_exeext'
5182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183  (eval $ac_try) 2>&5
5184  ac_status=$?
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); }; }; then
5187  lt_cv_cc_needs_belf=yes
5188else
5189  echo "$as_me: failed program was:" >&5
5190sed 's/^/| /' conftest.$ac_ext >&5
5191
5192lt_cv_cc_needs_belf=no
5193fi
5194rm -f conftest.err conftest.$ac_objext \
5195      conftest$ac_exeext conftest.$ac_ext
5196     ac_ext=cc
5197ac_cpp='$CXXCPP $CPPFLAGS'
5198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5201
5202fi
5203echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5204echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5205  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5206    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5207    CFLAGS="$SAVE_CFLAGS"
5208  fi
5209  ;;
5210
5211
5212esac
5213
5214# Sed substitution that helps us do robust quoting.  It backslashifies
5215# metacharacters that are still active within double-quoted strings.
5216Xsed='sed -e s/^X//'
5217sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5218
5219# Same as above, but do not quote variable references.
5220double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5221
5222# Sed substitution to delay expansion of an escaped shell variable in a
5223# double_quote_subst'ed string.
5224delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5225
5226# Constants:
5227rm="rm -f"
5228
5229# Global variables:
5230default_ofile=libtool
5231can_build_shared=yes
5232
5233# All known linkers require a `.a' archive for static linking (except M$VC,
5234# which needs '.lib').
5235libext=a
5236ltmain="$ac_aux_dir/ltmain.sh"
5237ofile="$default_ofile"
5238with_gnu_ld="$lt_cv_prog_gnu_ld"
5239need_locks="$enable_libtool_lock"
5240
5241old_CC="$CC"
5242old_CFLAGS="$CFLAGS"
5243
5244# Set sane defaults for various variables
5245test -z "$AR" && AR=ar
5246test -z "$AR_FLAGS" && AR_FLAGS=cru
5247test -z "$AS" && AS=as
5248test -z "$CC" && CC=cc
5249test -z "$DLLTOOL" && DLLTOOL=dlltool
5250test -z "$LD" && LD=ld
5251test -z "$LN_S" && LN_S="ln -s"
5252test -z "$MAGIC_CMD" && MAGIC_CMD=file
5253test -z "$NM" && NM=nm
5254test -z "$OBJDUMP" && OBJDUMP=objdump
5255test -z "$RANLIB" && RANLIB=:
5256test -z "$STRIP" && STRIP=:
5257test -z "$ac_objext" && ac_objext=o
5258
5259if test x"$host" != x"$build"; then
5260  ac_tool_prefix=${host_alias}-
5261else
5262  ac_tool_prefix=
5263fi
5264
5265# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5266case $host_os in
5267linux-gnu*) ;;
5268linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5269esac
5270
5271case $host_os in
5272aix3*)
5273  # AIX sometimes has problems with the GCC collect2 program.  For some
5274  # reason, if we set the COLLECT_NAMES environment variable, the problems
5275  # vanish in a puff of smoke.
5276  if test "X${COLLECT_NAMES+set}" != Xset; then
5277    COLLECT_NAMES=
5278    export COLLECT_NAMES
5279  fi
5280  ;;
5281esac
5282
5283# Determine commands to create old-style static archives.
5284old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5285old_postinstall_cmds='chmod 644 $oldlib'
5286old_postuninstall_cmds=
5287
5288if test -n "$RANLIB"; then
5289  case $host_os in
5290  openbsd*)
5291    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5292    ;;
5293  *)
5294    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5295    ;;
5296  esac
5297  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5298fi
5299
5300# Allow CC to be a program name with arguments.
5301set dummy $CC
5302compiler="$2"
5303
5304echo "$as_me:$LINENO: checking for objdir" >&5
5305echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5306rm -f .libs 2>/dev/null
5307mkdir .libs 2>/dev/null
5308if test -d .libs; then
5309  objdir=.libs
5310else
5311  # MS-DOS does not allow filenames that begin with a dot.
5312  objdir=_libs
5313fi
5314rmdir .libs 2>/dev/null
5315echo "$as_me:$LINENO: result: $objdir" >&5
5316echo "${ECHO_T}$objdir" >&6
5317
5318
5319
5320# Check whether --with-pic or --without-pic was given.
5321if test "${with_pic+set}" = set; then
5322  withval="$with_pic"
5323  pic_mode="$withval"
5324else
5325  pic_mode=default
5326fi;
5327test -z "$pic_mode" && pic_mode=default
5328
5329# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5330# in isolation, and that seeing it set (from the cache) indicates that
5331# the associated values are set (in the cache) correctly too.
5332echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5333echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5334if test "${lt_cv_prog_cc_pic+set}" = set; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337   lt_cv_prog_cc_pic=
5338  lt_cv_prog_cc_shlib=
5339  lt_cv_prog_cc_wl=
5340  lt_cv_prog_cc_static=
5341  lt_cv_prog_cc_no_builtin=
5342  lt_cv_prog_cc_can_build_shared=$can_build_shared
5343
5344  if test "$GCC" = yes; then
5345    lt_cv_prog_cc_wl='-Wl,'
5346    lt_cv_prog_cc_static='-static'
5347
5348    case $host_os in
5349    aix*)
5350      # Below there is a dirty hack to force normal static linking with -ldl
5351      # The problem is because libdl dynamically linked with both libc and
5352      # libC (AIX C++ library), which obviously doesn't included in libraries
5353      # list by gcc. This cause undefined symbols with -static flags.
5354      # This hack allows C programs to be linked with "-static -ldl", but
5355      # not sure about C++ programs.
5356      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5357      ;;
5358    amigaos*)
5359      # FIXME: we need at least 68020 code to build shared libraries, but
5360      # adding the `-m68020' flag to GCC prevents building anything better,
5361      # like `-m68040'.
5362      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5363      ;;
5364    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5365      # PIC is the default for these OSes.
5366      ;;
5367    darwin* | rhapsody*)
5368      # PIC is the default on this platform
5369      # Common symbols not allowed in MH_DYLIB files
5370      lt_cv_prog_cc_pic='-fno-common'
5371      ;;
5372    cygwin* | mingw* | pw32* | os2*)
5373      # This hack is so that the source file can tell whether it is being
5374      # built for inclusion in a dll (and should export symbols for example).
5375      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5376      ;;
5377    sysv4*MP*)
5378      if test -d /usr/nec; then
5379	 lt_cv_prog_cc_pic=-Kconform_pic
5380      fi
5381      ;;
5382    *)
5383      lt_cv_prog_cc_pic='-fPIC'
5384      ;;
5385    esac
5386  else
5387    # PORTME Check for PIC flags for the system compiler.
5388    case $host_os in
5389    aix3* | aix4* | aix5*)
5390      lt_cv_prog_cc_wl='-Wl,'
5391      # All AIX code is PIC.
5392      if test "$host_cpu" = ia64; then
5393	# AIX 5 now supports IA64 processor
5394	lt_cv_prog_cc_static='-Bstatic'
5395      else
5396	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5397      fi
5398      ;;
5399
5400    hpux9* | hpux10* | hpux11*)
5401      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5402      lt_cv_prog_cc_wl='-Wl,'
5403      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5404      lt_cv_prog_cc_pic='+Z'
5405      ;;
5406
5407    irix5* | irix6* | nonstopux*)
5408      lt_cv_prog_cc_wl='-Wl,'
5409      lt_cv_prog_cc_static='-non_shared'
5410      # PIC (with -KPIC) is the default.
5411      ;;
5412
5413    cygwin* | mingw* | pw32* | os2*)
5414      # This hack is so that the source file can tell whether it is being
5415      # built for inclusion in a dll (and should export symbols for example).
5416      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5417      ;;
5418
5419    newsos6)
5420      lt_cv_prog_cc_pic='-KPIC'
5421      lt_cv_prog_cc_static='-Bstatic'
5422      ;;
5423
5424    osf3* | osf4* | osf5*)
5425      # All OSF/1 code is PIC.
5426      lt_cv_prog_cc_wl='-Wl,'
5427      lt_cv_prog_cc_static='-non_shared'
5428      ;;
5429
5430    sco3.2v5*)
5431      lt_cv_prog_cc_pic='-Kpic'
5432      lt_cv_prog_cc_static='-dn'
5433      lt_cv_prog_cc_shlib='-belf'
5434      ;;
5435
5436    solaris*)
5437      lt_cv_prog_cc_pic='-KPIC'
5438      lt_cv_prog_cc_static='-Bstatic'
5439      lt_cv_prog_cc_wl='-Wl,'
5440      ;;
5441
5442    sunos4*)
5443      lt_cv_prog_cc_pic='-PIC'
5444      lt_cv_prog_cc_static='-Bstatic'
5445      lt_cv_prog_cc_wl='-Qoption ld '
5446      ;;
5447
5448    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5449      lt_cv_prog_cc_pic='-KPIC'
5450      lt_cv_prog_cc_static='-Bstatic'
5451      lt_cv_prog_cc_wl='-Wl,'
5452      ;;
5453
5454    uts4*)
5455      lt_cv_prog_cc_pic='-pic'
5456      lt_cv_prog_cc_static='-Bstatic'
5457      ;;
5458
5459    sysv4*MP*)
5460      if test -d /usr/nec ;then
5461	lt_cv_prog_cc_pic='-Kconform_pic'
5462	lt_cv_prog_cc_static='-Bstatic'
5463      fi
5464      ;;
5465
5466    *)
5467      lt_cv_prog_cc_can_build_shared=no
5468      ;;
5469    esac
5470  fi
5471
5472fi
5473
5474if test -z "$lt_cv_prog_cc_pic"; then
5475  echo "$as_me:$LINENO: result: none" >&5
5476echo "${ECHO_T}none" >&6
5477else
5478  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5479echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5480
5481  # Check to make sure the pic_flag actually works.
5482  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5483echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5484  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5485  echo $ECHO_N "(cached) $ECHO_C" >&6
5486else
5487      save_CFLAGS="$CFLAGS"
5488    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5489    cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495
5496int
5497main ()
5498{
5499
5500  ;
5501  return 0;
5502}
5503_ACEOF
5504rm -f conftest.$ac_objext
5505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506  (eval $ac_compile) 2>conftest.er1
5507  ac_status=$?
5508  grep -v '^ *+' conftest.er1 >conftest.err
5509  rm -f conftest.er1
5510  cat conftest.err >&5
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); } &&
5513	 { ac_try='test -z "$ac_cxx_werror_flag"
5514			 || test ! -s conftest.err'
5515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516  (eval $ac_try) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); }; } &&
5520	 { ac_try='test -s conftest.$ac_objext'
5521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522  (eval $ac_try) 2>&5
5523  ac_status=$?
5524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }; }; then
5526        case $host_os in
5527      hpux9* | hpux10* | hpux11*)
5528	# On HP-UX, both CC and GCC only warn that PIC is supported... then
5529	# they create non-PIC objects.  So, if there were any warnings, we
5530	# assume that PIC is not supported.
5531	if test -s conftest.err; then
5532	  lt_cv_prog_cc_pic_works=no
5533	else
5534	  lt_cv_prog_cc_pic_works=yes
5535	fi
5536	;;
5537      *)
5538	lt_cv_prog_cc_pic_works=yes
5539	;;
5540      esac
5541
5542else
5543  echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546      lt_cv_prog_cc_pic_works=no
5547
5548fi
5549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5550    CFLAGS="$save_CFLAGS"
5551
5552fi
5553
5554
5555  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5556    lt_cv_prog_cc_pic=
5557    lt_cv_prog_cc_can_build_shared=no
5558  else
5559    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5560  fi
5561
5562  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5563echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5564fi
5565
5566# Check for any special shared library compilation flags.
5567if test -n "$lt_cv_prog_cc_shlib"; then
5568  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5569echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5570  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
5571  else
5572   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5573echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5574    lt_cv_prog_cc_can_build_shared=no
5575  fi
5576fi
5577
5578echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5579echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5580if test "${lt_cv_prog_cc_static_works+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583    lt_cv_prog_cc_static_works=no
5584  save_LDFLAGS="$LDFLAGS"
5585  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5586  cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h.  */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h.  */
5592
5593int
5594main ()
5595{
5596
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601rm -f conftest.$ac_objext conftest$ac_exeext
5602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603  (eval $ac_link) 2>conftest.er1
5604  ac_status=$?
5605  grep -v '^ *+' conftest.er1 >conftest.err
5606  rm -f conftest.er1
5607  cat conftest.err >&5
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); } &&
5610	 { ac_try='test -z "$ac_cxx_werror_flag"
5611			 || test ! -s conftest.err'
5612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613  (eval $ac_try) 2>&5
5614  ac_status=$?
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); }; } &&
5617	 { ac_try='test -s conftest$ac_exeext'
5618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619  (eval $ac_try) 2>&5
5620  ac_status=$?
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); }; }; then
5623  lt_cv_prog_cc_static_works=yes
5624else
5625  echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628fi
5629rm -f conftest.err conftest.$ac_objext \
5630      conftest$ac_exeext conftest.$ac_ext
5631  LDFLAGS="$save_LDFLAGS"
5632
5633fi
5634
5635
5636# Belt *and* braces to stop my trousers falling down:
5637test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5638echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5639echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5640
5641pic_flag="$lt_cv_prog_cc_pic"
5642special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5643wl="$lt_cv_prog_cc_wl"
5644link_static_flag="$lt_cv_prog_cc_static"
5645no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5646can_build_shared="$lt_cv_prog_cc_can_build_shared"
5647
5648
5649# Check to see if options -o and -c are simultaneously supported by compiler
5650echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5651echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5652if test "${lt_cv_compiler_c_o+set}" = set; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655
5656$rm -r conftest 2>/dev/null
5657mkdir conftest
5658cd conftest
5659echo "int some_variable = 0;" > conftest.$ac_ext
5660mkdir out
5661# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5662# that will create temporary files in the current directory regardless of
5663# the output directory.  Thus, making CWD read-only will cause this test
5664# to fail, enabling locking or at least warning the user not to do parallel
5665# builds.
5666chmod -w .
5667save_CFLAGS="$CFLAGS"
5668CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5669compiler_c_o=no
5670if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5671  # The compiler can only warn and ignore the option if not recognized
5672  # So say no if there are warnings
5673  if test -s out/conftest.err; then
5674    lt_cv_compiler_c_o=no
5675  else
5676    lt_cv_compiler_c_o=yes
5677  fi
5678else
5679  # Append any errors to the config.log.
5680  cat out/conftest.err 1>&5
5681  lt_cv_compiler_c_o=no
5682fi
5683CFLAGS="$save_CFLAGS"
5684chmod u+w .
5685$rm conftest* out/*
5686rmdir out
5687cd ..
5688rmdir conftest
5689$rm -r conftest 2>/dev/null
5690
5691fi
5692
5693compiler_c_o=$lt_cv_compiler_c_o
5694echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5695echo "${ECHO_T}$compiler_c_o" >&6
5696
5697if test x"$compiler_c_o" = x"yes"; then
5698  # Check to see if we can write to a .lo
5699  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5700echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5701  if test "${lt_cv_compiler_o_lo+set}" = set; then
5702  echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704
5705  lt_cv_compiler_o_lo=no
5706  save_CFLAGS="$CFLAGS"
5707  CFLAGS="$CFLAGS -c -o conftest.lo"
5708  save_objext="$ac_objext"
5709  ac_objext=lo
5710  cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h.  */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h.  */
5716
5717int
5718main ()
5719{
5720int some_variable = 0;
5721  ;
5722  return 0;
5723}
5724_ACEOF
5725rm -f conftest.$ac_objext
5726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727  (eval $ac_compile) 2>conftest.er1
5728  ac_status=$?
5729  grep -v '^ *+' conftest.er1 >conftest.err
5730  rm -f conftest.er1
5731  cat conftest.err >&5
5732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733  (exit $ac_status); } &&
5734	 { ac_try='test -z "$ac_cxx_werror_flag"
5735			 || test ! -s conftest.err'
5736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737  (eval $ac_try) 2>&5
5738  ac_status=$?
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); }; } &&
5741	 { ac_try='test -s conftest.$ac_objext'
5742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743  (eval $ac_try) 2>&5
5744  ac_status=$?
5745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); }; }; then
5747      # The compiler can only warn and ignore the option if not recognized
5748    # So say no if there are warnings
5749    if test -s conftest.err; then
5750      lt_cv_compiler_o_lo=no
5751    else
5752      lt_cv_compiler_o_lo=yes
5753    fi
5754
5755else
5756  echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759fi
5760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5761  ac_objext="$save_objext"
5762  CFLAGS="$save_CFLAGS"
5763
5764fi
5765
5766  compiler_o_lo=$lt_cv_compiler_o_lo
5767  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5768echo "${ECHO_T}$compiler_o_lo" >&6
5769else
5770  compiler_o_lo=no
5771fi
5772
5773# Check to see if we can do hard links to lock some files if needed
5774hard_links="nottested"
5775if test "$compiler_c_o" = no && test "$need_locks" != no; then
5776  # do not overwrite the value of need_locks provided by the user
5777  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5778echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5779  hard_links=yes
5780  $rm conftest*
5781  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5782  touch conftest.a
5783  ln conftest.a conftest.b 2>&5 || hard_links=no
5784  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5785  echo "$as_me:$LINENO: result: $hard_links" >&5
5786echo "${ECHO_T}$hard_links" >&6
5787  if test "$hard_links" = no; then
5788    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5789echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5790    need_locks=warn
5791  fi
5792else
5793  need_locks=no
5794fi
5795
5796if test "$GCC" = yes; then
5797  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5798  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5799echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5800  echo "int some_variable = 0;" > conftest.$ac_ext
5801  save_CFLAGS="$CFLAGS"
5802  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5803  compiler_rtti_exceptions=no
5804  cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810
5811int
5812main ()
5813{
5814int some_variable = 0;
5815  ;
5816  return 0;
5817}
5818_ACEOF
5819rm -f conftest.$ac_objext
5820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821  (eval $ac_compile) 2>conftest.er1
5822  ac_status=$?
5823  grep -v '^ *+' conftest.er1 >conftest.err
5824  rm -f conftest.er1
5825  cat conftest.err >&5
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); } &&
5828	 { ac_try='test -z "$ac_cxx_werror_flag"
5829			 || test ! -s conftest.err'
5830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831  (eval $ac_try) 2>&5
5832  ac_status=$?
5833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834  (exit $ac_status); }; } &&
5835	 { ac_try='test -s conftest.$ac_objext'
5836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837  (eval $ac_try) 2>&5
5838  ac_status=$?
5839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840  (exit $ac_status); }; }; then
5841      # The compiler can only warn and ignore the option if not recognized
5842    # So say no if there are warnings
5843    if test -s conftest.err; then
5844      compiler_rtti_exceptions=no
5845    else
5846      compiler_rtti_exceptions=yes
5847    fi
5848
5849else
5850  echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853fi
5854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855  CFLAGS="$save_CFLAGS"
5856  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5857echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5858
5859  if test "$compiler_rtti_exceptions" = "yes"; then
5860    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5861  else
5862    no_builtin_flag=' -fno-builtin'
5863  fi
5864fi
5865
5866# See if the linker supports building shared libraries.
5867echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5868echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5869
5870allow_undefined_flag=
5871no_undefined_flag=
5872need_lib_prefix=unknown
5873need_version=unknown
5874# when you set need_version to no, make sure it does not cause -set_version
5875# flags to be left without arguments
5876archive_cmds=
5877archive_expsym_cmds=
5878old_archive_from_new_cmds=
5879old_archive_from_expsyms_cmds=
5880export_dynamic_flag_spec=
5881whole_archive_flag_spec=
5882thread_safe_flag_spec=
5883hardcode_into_libs=no
5884hardcode_libdir_flag_spec=
5885hardcode_libdir_separator=
5886hardcode_direct=no
5887hardcode_minus_L=no
5888hardcode_shlibpath_var=unsupported
5889runpath_var=
5890link_all_deplibs=unknown
5891always_export_symbols=no
5892export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5893# include_expsyms should be a list of space-separated symbols to be *always*
5894# included in the symbol list
5895include_expsyms=
5896# exclude_expsyms can be an egrep regular expression of symbols to exclude
5897# it will be wrapped by ` (' and `)$', so one must not match beginning or
5898# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5899# as well as any symbol that contains `d'.
5900exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5901# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5902# platforms (ab)use it in PIC code, but their linkers get confused if
5903# the symbol is explicitly referenced.  Since portable code cannot
5904# rely on this symbol name, it's probably fine to never include it in
5905# preloaded symbol tables.
5906extract_expsyms_cmds=
5907
5908case $host_os in
5909cygwin* | mingw* | pw32*)
5910  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5911  # When not using gcc, we currently assume that we are using
5912  # Microsoft Visual C++.
5913  if test "$GCC" != yes; then
5914    with_gnu_ld=no
5915  fi
5916  ;;
5917openbsd*)
5918  with_gnu_ld=no
5919  ;;
5920esac
5921
5922ld_shlibs=yes
5923if test "$with_gnu_ld" = yes; then
5924  # If archive_cmds runs LD, not CC, wlarc should be empty
5925  wlarc='${wl}'
5926
5927  # See if GNU ld supports shared libraries.
5928  case $host_os in
5929  aix3* | aix4* | aix5*)
5930    # On AIX, the GNU linker is very broken
5931    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5932    ld_shlibs=no
5933    cat <<EOF 1>&2
5934
5935*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5936*** to be unable to reliably create shared libraries on AIX.
5937*** Therefore, libtool is disabling shared libraries support.  If you
5938*** really care for shared libraries, you may want to modify your PATH
5939*** so that a non-GNU linker is found, and then restart.
5940
5941EOF
5942    ;;
5943
5944  amigaos*)
5945    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)'
5946    hardcode_libdir_flag_spec='-L$libdir'
5947    hardcode_minus_L=yes
5948
5949    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5950    # that the semantics of dynamic libraries on AmigaOS, at least up
5951    # to version 4, is to share data among multiple programs linked
5952    # with the same dynamic library.  Since this doesn't match the
5953    # behavior of shared libraries on other platforms, we can use
5954    # them.
5955    ld_shlibs=no
5956    ;;
5957
5958  beos*)
5959    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5960      allow_undefined_flag=unsupported
5961      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5962      # support --undefined.  This deserves some investigation.  FIXME
5963      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5964    else
5965      ld_shlibs=no
5966    fi
5967    ;;
5968
5969  cygwin* | mingw* | pw32*)
5970    # hardcode_libdir_flag_spec is actually meaningless, as there is
5971    # no search path for DLLs.
5972    hardcode_libdir_flag_spec='-L$libdir'
5973    allow_undefined_flag=unsupported
5974    always_export_symbols=yes
5975
5976    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5977      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5978      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5979      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5980      else $CC -o impgen impgen.c ; fi)~
5981      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5982
5983    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5984
5985    # cygwin and mingw dlls have different entry points and sets of symbols
5986    # to exclude.
5987    # FIXME: what about values for MSVC?
5988    dll_entry=__cygwin_dll_entry@12
5989    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5990    case $host_os in
5991    mingw*)
5992      # mingw values
5993      dll_entry=_DllMainCRTStartup@12
5994      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5995      ;;
5996    esac
5997
5998    # mingw and cygwin differ, and it's simplest to just exclude the union
5999    # of the two symbol sets.
6000    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6001
6002    # recent cygwin and mingw systems supply a stub DllMain which the user
6003    # can override, but on older systems we have to supply one (in ltdll.c)
6004    if test "x$lt_cv_need_dllmain" = "xyes"; then
6005      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6006      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~
6007	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6008    else
6009      ltdll_obj=
6010      ltdll_cmds=
6011    fi
6012
6013    # Extract the symbol export list from an `--export-all' def file,
6014    # then regenerate the def file from the symbol export list, so that
6015    # the compiled dll only exports the symbol export list.
6016    # Be careful not to strip the DATA tag left be newer dlltools.
6017    export_symbols_cmds="$ltdll_cmds"'
6018      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6019      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6020
6021    # If the export-symbols file already is a .def file (1st line
6022    # is EXPORTS), use it as is.
6023    # If DATA tags from a recent dlltool are present, honour them!
6024    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6025	cp $export_symbols $output_objdir/$soname-def;
6026      else
6027	echo EXPORTS > $output_objdir/$soname-def;
6028	_lt_hint=1;
6029	cat $export_symbols | while read symbol; do
6030	 set dummy \$symbol;
6031	 case \$# in
6032	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6033	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6034	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6035	 esac;
6036	 _lt_hint=`expr 1 + \$_lt_hint`;
6037	done;
6038      fi~
6039      '"$ltdll_cmds"'
6040      $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~
6041      $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~
6042      $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~
6043      $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~
6044      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6045    ;;
6046
6047  netbsd*)
6048    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6049      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6050      wlarc=
6051    else
6052      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6053      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6054    fi
6055    ;;
6056
6057  solaris* | sysv5*)
6058    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6059      ld_shlibs=no
6060      cat <<EOF 1>&2
6061
6062*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6063*** create shared libraries on Solaris systems.  Therefore, libtool
6064*** is disabling shared libraries support.  We urge you to upgrade GNU
6065*** binutils to release 2.9.1 or newer.  Another option is to modify
6066*** your PATH or compiler configuration so that the native linker is
6067*** used, and then restart.
6068
6069EOF
6070    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6071      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6072      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6073    else
6074      ld_shlibs=no
6075    fi
6076    ;;
6077
6078  sunos4*)
6079    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6080    wlarc=
6081    hardcode_direct=yes
6082    hardcode_shlibpath_var=no
6083    ;;
6084
6085  linux*)
6086    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6087      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6088      supports_anon_versioning=no
6089      case `$LD -v 2>/dev/null` in
6090        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6091        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6092        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6093        *\ 2.11.*) ;; # other 2.11 versions
6094        *) supports_anon_versioning=yes ;;
6095      esac
6096      if test $supports_anon_versioning = yes; then
6097        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6098cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6099$echo "local: *; };" >> $output_objdir/$libname.ver~
6100        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6101      else
6102        $archive_expsym_cmds="$archive_cmds"
6103      fi
6104    else
6105      ld_shlibs=no
6106    fi
6107    ;;
6108
6109  *)
6110    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6111      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6112      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6113    else
6114      ld_shlibs=no
6115    fi
6116    ;;
6117  esac
6118
6119  if test "$ld_shlibs" = yes; then
6120    runpath_var=LD_RUN_PATH
6121    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6122    export_dynamic_flag_spec='${wl}--export-dynamic'
6123    case $host_os in
6124    cygwin* | mingw* | pw32*)
6125      # dlltool doesn't understand --whole-archive et. al.
6126      whole_archive_flag_spec=
6127      ;;
6128    *)
6129      # ancient GNU ld didn't support --whole-archive et. al.
6130      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6131	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6132      else
6133	whole_archive_flag_spec=
6134      fi
6135      ;;
6136    esac
6137  fi
6138else
6139  # PORTME fill in a description of your system's linker (not GNU ld)
6140  case $host_os in
6141  aix3*)
6142    allow_undefined_flag=unsupported
6143    always_export_symbols=yes
6144    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'
6145    # Note: this linker hardcodes the directories in LIBPATH if there
6146    # are no directories specified by -L.
6147    hardcode_minus_L=yes
6148    if test "$GCC" = yes && test -z "$link_static_flag"; then
6149      # Neither direct hardcoding nor static linking is supported with a
6150      # broken collect2.
6151      hardcode_direct=unsupported
6152    fi
6153    ;;
6154
6155  aix4* | aix5*)
6156    if test "$host_cpu" = ia64; then
6157      # On IA64, the linker does run time linking by default, so we don't
6158      # have to do anything special.
6159      aix_use_runtimelinking=no
6160      exp_sym_flag='-Bexport'
6161      no_entry_flag=""
6162    else
6163      aix_use_runtimelinking=no
6164
6165      # Test if we are trying to use run time linking or normal
6166      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6167      # need to do runtime linking.
6168      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6169	for ld_flag in $LDFLAGS; do
6170	  case $ld_flag in
6171	  *-brtl*)
6172	    aix_use_runtimelinking=yes
6173	    break
6174	  ;;
6175	  esac
6176	done
6177      esac
6178
6179      exp_sym_flag='-bexport'
6180      no_entry_flag='-bnoentry'
6181    fi
6182
6183    # When large executables or shared objects are built, AIX ld can
6184    # have problems creating the table of contents.  If linking a library
6185    # or program results in "error TOC overflow" add -mminimal-toc to
6186    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6187    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6188
6189    hardcode_direct=yes
6190    archive_cmds=''
6191    hardcode_libdir_separator=':'
6192    if test "$GCC" = yes; then
6193      case $host_os in aix4.[012]|aix4.[012].*)
6194	collect2name=`${CC} -print-prog-name=collect2`
6195	if test -f "$collect2name" && \
6196	  strings "$collect2name" | grep resolve_lib_name >/dev/null
6197	then
6198	  # We have reworked collect2
6199	  hardcode_direct=yes
6200	else
6201	  # We have old collect2
6202	  hardcode_direct=unsupported
6203	  # It fails to find uninstalled libraries when the uninstalled
6204	  # path is not listed in the libpath.  Setting hardcode_minus_L
6205	  # to unsupported forces relinking
6206	  hardcode_minus_L=yes
6207	  hardcode_libdir_flag_spec='-L$libdir'
6208	  hardcode_libdir_separator=
6209	fi
6210      esac
6211
6212      shared_flag='-shared'
6213    else
6214      # not using gcc
6215      if test "$host_cpu" = ia64; then
6216	shared_flag='${wl}-G'
6217      else
6218	if test "$aix_use_runtimelinking" = yes; then
6219	  shared_flag='${wl}-G'
6220	else
6221	  shared_flag='${wl}-bM:SRE'
6222	fi
6223      fi
6224    fi
6225
6226    # It seems that -bexpall can do strange things, so it is better to
6227    # generate a list of symbols to export.
6228    always_export_symbols=yes
6229    if test "$aix_use_runtimelinking" = yes; then
6230      # Warning - without using the other runtime loading flags (-brtl),
6231      # -berok will link without error, but may produce a broken library.
6232      allow_undefined_flag='-berok'
6233      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6234      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"
6235    else
6236      if test "$host_cpu" = ia64; then
6237	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6238	allow_undefined_flag="-z nodefs"
6239	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"
6240      else
6241	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6242	# Warning - without using the other run time loading flags,
6243	# -berok will link without error, but may produce a broken library.
6244	allow_undefined_flag='${wl}-berok'
6245	# This is a bit strange, but is similar to how AIX traditionally builds
6246	# it's shared libraries.
6247	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'
6248      fi
6249    fi
6250    ;;
6251
6252  amigaos*)
6253    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)'
6254    hardcode_libdir_flag_spec='-L$libdir'
6255    hardcode_minus_L=yes
6256    # see comment about different semantics on the GNU ld section
6257    ld_shlibs=no
6258    ;;
6259
6260  cygwin* | mingw* | pw32*)
6261    # When not using gcc, we currently assume that we are using
6262    # Microsoft Visual C++.
6263    # hardcode_libdir_flag_spec is actually meaningless, as there is
6264    # no search path for DLLs.
6265    hardcode_libdir_flag_spec=' '
6266    allow_undefined_flag=unsupported
6267    # Tell ltmain to make .lib files, not .a files.
6268    libext=lib
6269    # FIXME: Setting linknames here is a bad hack.
6270    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6271    # The linker will automatically build a .lib file if we build a DLL.
6272    old_archive_from_new_cmds='true'
6273    # FIXME: Should let the user specify the lib program.
6274    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6275    fix_srcfile_path='`cygpath -w "$srcfile"`'
6276    ;;
6277
6278  darwin* | rhapsody*)
6279    case "$host_os" in
6280    rhapsody* | darwin1.[012])
6281      allow_undefined_flag='-undefined suppress'
6282      ;;
6283    *) # Darwin 1.3 on
6284      allow_undefined_flag='-flat_namespace -undefined suppress'
6285      ;;
6286    esac
6287    # FIXME: Relying on posixy $() will cause problems for
6288    #        cross-compilation, but unfortunately the echo tests do not
6289    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6290    #	     `"' quotes if we put them in here... so don't!
6291    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)'
6292    # We need to add '_' to the symbols in $export_symbols first
6293    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6294    hardcode_direct=yes
6295    hardcode_shlibpath_var=no
6296    whole_archive_flag_spec='-all_load $convenience'
6297    ;;
6298
6299  freebsd1*)
6300    ld_shlibs=no
6301    ;;
6302
6303  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6304  # support.  Future versions do this automatically, but an explicit c++rt0.o
6305  # does not break anything, and helps significantly (at the cost of a little
6306  # extra space).
6307  freebsd2.2*)
6308    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6309    hardcode_libdir_flag_spec='-R$libdir'
6310    hardcode_direct=yes
6311    hardcode_shlibpath_var=no
6312    ;;
6313
6314  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6315  freebsd2*)
6316    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6317    hardcode_direct=yes
6318    hardcode_minus_L=yes
6319    hardcode_shlibpath_var=no
6320    ;;
6321
6322  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6323  freebsd*)
6324    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6325    hardcode_libdir_flag_spec='-R$libdir'
6326    hardcode_direct=yes
6327    hardcode_shlibpath_var=no
6328    ;;
6329
6330  hpux9* | hpux10* | hpux11*)
6331    case $host_os in
6332    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' ;;
6333    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6334    esac
6335    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6336    hardcode_libdir_separator=:
6337    hardcode_direct=yes
6338    hardcode_minus_L=yes # Not in the search PATH, but as the default
6339			 # location of the library.
6340    export_dynamic_flag_spec='${wl}-E'
6341    ;;
6342
6343  irix5* | irix6* | nonstopux*)
6344    if test "$GCC" = yes; then
6345      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'
6346      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6347    else
6348      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'
6349      hardcode_libdir_flag_spec='-rpath $libdir'
6350    fi
6351    hardcode_libdir_separator=:
6352    link_all_deplibs=yes
6353    ;;
6354
6355  netbsd*)
6356    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6357      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6358    else
6359      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6360    fi
6361    hardcode_libdir_flag_spec='-R$libdir'
6362    hardcode_direct=yes
6363    hardcode_shlibpath_var=no
6364    ;;
6365
6366  newsos6)
6367    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6368    hardcode_direct=yes
6369    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6370    hardcode_libdir_separator=:
6371    hardcode_shlibpath_var=no
6372    ;;
6373
6374  openbsd*)
6375    hardcode_direct=yes
6376    hardcode_shlibpath_var=no
6377    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6378      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6379      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6380      export_dynamic_flag_spec='${wl}-E'
6381    else
6382      case "$host_os" in
6383      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6384	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6385	hardcode_libdir_flag_spec='-R$libdir'
6386        ;;
6387      *)
6388        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6389        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6390        ;;
6391      esac
6392    fi
6393    ;;
6394
6395  os2*)
6396    hardcode_libdir_flag_spec='-L$libdir'
6397    hardcode_minus_L=yes
6398    allow_undefined_flag=unsupported
6399    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'
6400    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6401    ;;
6402
6403  osf3*)
6404    if test "$GCC" = yes; then
6405      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6406      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'
6407    else
6408      allow_undefined_flag=' -expect_unresolved \*'
6409      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'
6410    fi
6411    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6412    hardcode_libdir_separator=:
6413    ;;
6414
6415  osf4* | osf5*)	# as osf3* with the addition of -msym flag
6416    if test "$GCC" = yes; then
6417      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6418      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'
6419      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6420    else
6421      allow_undefined_flag=' -expect_unresolved \*'
6422      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'
6423      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6424      $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'
6425
6426      #Both c and cxx compiler support -rpath directly
6427      hardcode_libdir_flag_spec='-rpath $libdir'
6428    fi
6429    hardcode_libdir_separator=:
6430    ;;
6431
6432  sco3.2v5*)
6433    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6434    hardcode_shlibpath_var=no
6435    runpath_var=LD_RUN_PATH
6436    hardcode_runpath_var=yes
6437    export_dynamic_flag_spec='${wl}-Bexport'
6438    ;;
6439
6440  solaris*)
6441    # gcc --version < 3.0 without binutils cannot create self contained
6442    # shared libraries reliably, requiring libgcc.a to resolve some of
6443    # the object symbols generated in some cases.  Libraries that use
6444    # assert need libgcc.a to resolve __eprintf, for example.  Linking
6445    # a copy of libgcc.a into every shared library to guarantee resolving
6446    # such symbols causes other problems:  According to Tim Van Holder
6447    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6448    # (to the application) exception stack for one thing.
6449    no_undefined_flag=' -z defs'
6450    if test "$GCC" = yes; then
6451      case `$CC --version 2>/dev/null` in
6452      [12].*)
6453	cat <<EOF 1>&2
6454
6455*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6456*** create self contained shared libraries on Solaris systems, without
6457*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6458*** -no-undefined support, which will at least allow you to build shared
6459*** libraries.  However, you may find that when you link such libraries
6460*** into an application without using GCC, you have to manually add
6461*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6462*** upgrade to a newer version of GCC.  Another option is to rebuild your
6463*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6464
6465EOF
6466        no_undefined_flag=
6467	;;
6468      esac
6469    fi
6470    # $CC -shared without GNU ld will not create a library from C++
6471    # object files and a static libstdc++, better avoid it by now
6472    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6473    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6474		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6475    hardcode_libdir_flag_spec='-R$libdir'
6476    hardcode_shlibpath_var=no
6477    case $host_os in
6478    solaris2.[0-5] | solaris2.[0-5].*) ;;
6479    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6480      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6481    esac
6482    link_all_deplibs=yes
6483    ;;
6484
6485  sunos4*)
6486    if test "x$host_vendor" = xsequent; then
6487      # Use $CC to link under sequent, because it throws in some extra .o
6488      # files that make .init and .fini sections work.
6489      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6490    else
6491      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6492    fi
6493    hardcode_libdir_flag_spec='-L$libdir'
6494    hardcode_direct=yes
6495    hardcode_minus_L=yes
6496    hardcode_shlibpath_var=no
6497    ;;
6498
6499  sysv4)
6500    case $host_vendor in
6501      sni)
6502        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6503        hardcode_direct=yes # is this really true???
6504        ;;
6505      siemens)
6506        ## LD is ld it makes a PLAMLIB
6507        ## CC just makes a GrossModule.
6508        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6509        reload_cmds='$CC -r -o $output$reload_objs'
6510        hardcode_direct=no
6511        ;;
6512      motorola)
6513        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6514        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6515        ;;
6516    esac
6517    runpath_var='LD_RUN_PATH'
6518    hardcode_shlibpath_var=no
6519    ;;
6520
6521  sysv4.3*)
6522    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6523    hardcode_shlibpath_var=no
6524    export_dynamic_flag_spec='-Bexport'
6525    ;;
6526
6527  sysv5*)
6528    no_undefined_flag=' -z text'
6529    # $CC -shared without GNU ld will not create a library from C++
6530    # object files and a static libstdc++, better avoid it by now
6531    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6532    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6533		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6534    hardcode_libdir_flag_spec=
6535    hardcode_shlibpath_var=no
6536    runpath_var='LD_RUN_PATH'
6537    ;;
6538
6539  uts4*)
6540    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6541    hardcode_libdir_flag_spec='-L$libdir'
6542    hardcode_shlibpath_var=no
6543    ;;
6544
6545  dgux*)
6546    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6547    hardcode_libdir_flag_spec='-L$libdir'
6548    hardcode_shlibpath_var=no
6549    ;;
6550
6551  sysv4*MP*)
6552    if test -d /usr/nec; then
6553      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6554      hardcode_shlibpath_var=no
6555      runpath_var=LD_RUN_PATH
6556      hardcode_runpath_var=yes
6557      ld_shlibs=yes
6558    fi
6559    ;;
6560
6561  sysv4.2uw2*)
6562    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6563    hardcode_direct=yes
6564    hardcode_minus_L=no
6565    hardcode_shlibpath_var=no
6566    hardcode_runpath_var=yes
6567    runpath_var=LD_RUN_PATH
6568    ;;
6569
6570  sysv5uw7* | unixware7*)
6571    no_undefined_flag='${wl}-z ${wl}text'
6572    if test "$GCC" = yes; then
6573      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6574    else
6575      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6576    fi
6577    runpath_var='LD_RUN_PATH'
6578    hardcode_shlibpath_var=no
6579    ;;
6580
6581  *)
6582    ld_shlibs=no
6583    ;;
6584  esac
6585fi
6586echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6587echo "${ECHO_T}$ld_shlibs" >&6
6588test "$ld_shlibs" = no && can_build_shared=no
6589
6590# Check hardcoding attributes.
6591echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6592echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6593hardcode_action=
6594if test -n "$hardcode_libdir_flag_spec" || \
6595   test -n "$runpath_var"; then
6596
6597  # We can hardcode non-existant directories.
6598  if test "$hardcode_direct" != no &&
6599     # If the only mechanism to avoid hardcoding is shlibpath_var, we
6600     # have to relink, otherwise we might link with an installed library
6601     # when we should be linking with a yet-to-be-installed one
6602     ## test "$hardcode_shlibpath_var" != no &&
6603     test "$hardcode_minus_L" != no; then
6604    # Linking always hardcodes the temporary library directory.
6605    hardcode_action=relink
6606  else
6607    # We can link without hardcoding, and we can hardcode nonexisting dirs.
6608    hardcode_action=immediate
6609  fi
6610else
6611  # We cannot hardcode anything, or else we can only hardcode existing
6612  # directories.
6613  hardcode_action=unsupported
6614fi
6615echo "$as_me:$LINENO: result: $hardcode_action" >&5
6616echo "${ECHO_T}$hardcode_action" >&6
6617
6618striplib=
6619old_striplib=
6620echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6621echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6622if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6623  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6624  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6625  echo "$as_me:$LINENO: result: yes" >&5
6626echo "${ECHO_T}yes" >&6
6627else
6628  echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630fi
6631
6632reload_cmds='$LD$reload_flag -o $output$reload_objs'
6633test -z "$deplibs_check_method" && deplibs_check_method=unknown
6634
6635# PORTME Fill in your ld.so characteristics
6636echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6637echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6638library_names_spec=
6639libname_spec='lib$name'
6640soname_spec=
6641postinstall_cmds=
6642postuninstall_cmds=
6643finish_cmds=
6644finish_eval=
6645shlibpath_var=
6646shlibpath_overrides_runpath=unknown
6647version_type=none
6648dynamic_linker="$host_os ld.so"
6649sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6650sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6651
6652case $host_os in
6653aix3*)
6654  version_type=linux
6655  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6656  shlibpath_var=LIBPATH
6657
6658  # AIX has no versioning support, so we append a major version to the name.
6659  soname_spec='${libname}${release}.so$major'
6660  ;;
6661
6662aix4* | aix5*)
6663  version_type=linux
6664  need_lib_prefix=no
6665  need_version=no
6666  hardcode_into_libs=yes
6667  if test "$host_cpu" = ia64; then
6668    # AIX 5 supports IA64
6669    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6670    shlibpath_var=LD_LIBRARY_PATH
6671  else
6672    # With GCC up to 2.95.x, collect2 would create an import file
6673    # for dependence libraries.  The import file would start with
6674    # the line `#! .'.  This would cause the generated library to
6675    # depend on `.', always an invalid library.  This was fixed in
6676    # development snapshots of GCC prior to 3.0.
6677    case $host_os in
6678      aix4 | aix4.[01] | aix4.[01].*)
6679	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6680	     echo ' yes '
6681	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6682	  :
6683	else
6684	  can_build_shared=no
6685	fi
6686	;;
6687    esac
6688    # AIX (on Power*) has no versioning support, so currently we can
6689    # not hardcode correct soname into executable. Probably we can
6690    # add versioning support to collect2, so additional links can
6691    # be useful in future.
6692    if test "$aix_use_runtimelinking" = yes; then
6693      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6694      # instead of lib<name>.a to let people know that these are not
6695      # typical AIX shared libraries.
6696      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6697    else
6698      # We preserve .a as extension for shared libraries through AIX4.2
6699      # and later when we are not doing run time linking.
6700      library_names_spec='${libname}${release}.a $libname.a'
6701      soname_spec='${libname}${release}.so$major'
6702    fi
6703    shlibpath_var=LIBPATH
6704  fi
6705  hardcode_into_libs=yes
6706  ;;
6707
6708amigaos*)
6709  library_names_spec='$libname.ixlibrary $libname.a'
6710  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6711  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'
6712  ;;
6713
6714beos*)
6715  library_names_spec='${libname}.so'
6716  dynamic_linker="$host_os ld.so"
6717  shlibpath_var=LIBRARY_PATH
6718  ;;
6719
6720bsdi4*)
6721  version_type=linux
6722  need_version=no
6723  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6724  soname_spec='${libname}${release}.so$major'
6725  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6726  shlibpath_var=LD_LIBRARY_PATH
6727  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6728  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6729  export_dynamic_flag_spec=-rdynamic
6730  # the default ld.so.conf also contains /usr/contrib/lib and
6731  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6732  # libtool to hard-code these into programs
6733  ;;
6734
6735cygwin* | mingw* | pw32*)
6736  version_type=windows
6737  need_version=no
6738  need_lib_prefix=no
6739  case $GCC,$host_os in
6740  yes,cygwin*)
6741    library_names_spec='$libname.dll.a'
6742    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6743    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6744      dldir=$destdir/`dirname \$dlpath`~
6745      test -d \$dldir || mkdir -p \$dldir~
6746      $install_prog .libs/$dlname \$dldir/$dlname'
6747    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6748      dlpath=$dir/\$dldll~
6749       $rm \$dlpath'
6750    ;;
6751  yes,mingw*)
6752    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6753    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6754    ;;
6755  yes,pw32*)
6756    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6757    ;;
6758  *)
6759    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6760    ;;
6761  esac
6762  dynamic_linker='Win32 ld.exe'
6763  # FIXME: first we should search . and the directory the executable is in
6764  shlibpath_var=PATH
6765  ;;
6766
6767darwin* | rhapsody*)
6768  dynamic_linker="$host_os dyld"
6769  version_type=darwin
6770  need_lib_prefix=no
6771  need_version=no
6772  # FIXME: Relying on posixy $() will cause problems for
6773  #        cross-compilation, but unfortunately the echo tests do not
6774  #        yet detect zsh echo's removal of \ escapes.
6775  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)'
6776  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6777  shlibpath_overrides_runpath=yes
6778  shlibpath_var=DYLD_LIBRARY_PATH
6779  ;;
6780
6781freebsd1*)
6782  dynamic_linker=no
6783  ;;
6784
6785freebsd*)
6786  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6787  version_type=freebsd-$objformat
6788  case $version_type in
6789    freebsd-elf*)
6790      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6791      need_version=no
6792      need_lib_prefix=no
6793      ;;
6794    freebsd-*)
6795      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6796      need_version=yes
6797      ;;
6798  esac
6799  shlibpath_var=LD_LIBRARY_PATH
6800  case $host_os in
6801  freebsd2*)
6802    shlibpath_overrides_runpath=yes
6803    ;;
6804  *)
6805    shlibpath_overrides_runpath=no
6806    hardcode_into_libs=yes
6807    ;;
6808  esac
6809  ;;
6810
6811gnu*)
6812  version_type=linux
6813  need_lib_prefix=no
6814  need_version=no
6815  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6816  soname_spec='${libname}${release}.so$major'
6817  shlibpath_var=LD_LIBRARY_PATH
6818  hardcode_into_libs=yes
6819  ;;
6820
6821hpux9* | hpux10* | hpux11*)
6822  # Give a soname corresponding to the major version so that dld.sl refuses to
6823  # link against other versions.
6824  dynamic_linker="$host_os dld.sl"
6825  version_type=sunos
6826  need_lib_prefix=no
6827  need_version=no
6828  shlibpath_var=SHLIB_PATH
6829  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6830  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6831  soname_spec='${libname}${release}.sl$major'
6832  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6833  postinstall_cmds='chmod 555 $lib'
6834  ;;
6835
6836irix5* | irix6* | nonstopux*)
6837  case $host_os in
6838    nonstopux*) version_type=nonstopux ;;
6839    *)          version_type=irix ;;
6840  esac
6841  need_lib_prefix=no
6842  need_version=no
6843  soname_spec='${libname}${release}.so$major'
6844  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6845  case $host_os in
6846  irix5* | nonstopux*)
6847    libsuff= shlibsuff=
6848    ;;
6849  *)
6850    case $LD in # libtool.m4 will add one of these switches to LD
6851    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6852    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6853    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6854    *) libsuff= shlibsuff= libmagic=never-match;;
6855    esac
6856    ;;
6857  esac
6858  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6859  shlibpath_overrides_runpath=no
6860  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6861  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6862  ;;
6863
6864# No shared lib support for Linux oldld, aout, or coff.
6865linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6866  dynamic_linker=no
6867  ;;
6868
6869# This must be Linux ELF.
6870linux-gnu*)
6871  version_type=linux
6872  need_lib_prefix=no
6873  need_version=no
6874  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6875  soname_spec='${libname}${release}.so$major'
6876  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6877  shlibpath_var=LD_LIBRARY_PATH
6878  shlibpath_overrides_runpath=no
6879  # This implies no fast_install, which is unacceptable.
6880  # Some rework will be needed to allow for fast_install
6881  # before this can be enabled.
6882  hardcode_into_libs=yes
6883
6884  case $host_cpu:$lt_cv_cc_64bit_output in
6885  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6886    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6887    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6888    ;;
6889  esac
6890
6891  # We used to test for /lib/ld.so.1 and disable shared libraries on
6892  # powerpc, because MkLinux only supported shared libraries with the
6893  # GNU dynamic linker.  Since this was broken with cross compilers,
6894  # most powerpc-linux boxes support dynamic linking these days and
6895  # people can always --disable-shared, the test was removed, and we
6896  # assume the GNU/Linux dynamic linker is in use.
6897  dynamic_linker='GNU/Linux ld.so'
6898
6899  # Find out which ABI we are using (multilib Linux x86_64 hack).
6900  libsuff=
6901  case "$host_cpu" in
6902  x86_64*)
6903    echo '#line __oline__ "configure"' > conftest.$ac_ext
6904    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905  (eval $ac_compile) 2>&5
6906  ac_status=$?
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); }; then
6909      case `/usr/bin/file conftest.$ac_objext` in
6910      *64-bit*)
6911        libsuff=64
6912        ;;
6913      esac
6914    fi
6915    rm -rf conftest*
6916    ;;
6917  *)
6918    ;;
6919  esac
6920  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6921  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6922  ;;
6923
6924netbsd*)
6925  version_type=sunos
6926  need_lib_prefix=no
6927  need_version=no
6928  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6929    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6930    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6931    dynamic_linker='NetBSD (a.out) ld.so'
6932  else
6933    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6934    soname_spec='${libname}${release}.so$major'
6935    dynamic_linker='NetBSD ld.elf_so'
6936  fi
6937  shlibpath_var=LD_LIBRARY_PATH
6938  shlibpath_overrides_runpath=yes
6939  hardcode_into_libs=yes
6940  ;;
6941
6942newsos6)
6943  version_type=linux
6944  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6945  shlibpath_var=LD_LIBRARY_PATH
6946  shlibpath_overrides_runpath=yes
6947  ;;
6948
6949openbsd*)
6950  version_type=sunos
6951  need_lib_prefix=no
6952  need_version=no
6953  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6954    case "$host_os" in
6955    openbsd2.[89] | openbsd2.[89].*)
6956      shlibpath_overrides_runpath=no
6957      ;;
6958    *)
6959      shlibpath_overrides_runpath=yes
6960      ;;
6961    esac
6962  else
6963    shlibpath_overrides_runpath=yes
6964  fi
6965  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6966  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6967  shlibpath_var=LD_LIBRARY_PATH
6968  ;;
6969
6970os2*)
6971  libname_spec='$name'
6972  need_lib_prefix=no
6973  library_names_spec='$libname.dll $libname.a'
6974  dynamic_linker='OS/2 ld.exe'
6975  shlibpath_var=LIBPATH
6976  ;;
6977
6978osf3* | osf4* | osf5*)
6979  version_type=osf
6980  need_version=no
6981  soname_spec='${libname}${release}.so$major'
6982  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6983  shlibpath_var=LD_LIBRARY_PATH
6984  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6985  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6986  hardcode_into_libs=yes
6987  ;;
6988
6989sco3.2v5*)
6990  version_type=osf
6991  soname_spec='${libname}${release}.so$major'
6992  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6993  shlibpath_var=LD_LIBRARY_PATH
6994  ;;
6995
6996solaris*)
6997  version_type=linux
6998  need_lib_prefix=no
6999  need_version=no
7000  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7001  soname_spec='${libname}${release}.so$major'
7002  shlibpath_var=LD_LIBRARY_PATH
7003  shlibpath_overrides_runpath=yes
7004  hardcode_into_libs=yes
7005  # ldd complains unless libraries are executable
7006  postinstall_cmds='chmod +x $lib'
7007  ;;
7008
7009sunos4*)
7010  version_type=sunos
7011  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7012  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7013  shlibpath_var=LD_LIBRARY_PATH
7014  shlibpath_overrides_runpath=yes
7015  if test "$with_gnu_ld" = yes; then
7016    need_lib_prefix=no
7017  fi
7018  need_version=yes
7019  ;;
7020
7021sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7022  version_type=linux
7023  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7024  soname_spec='${libname}${release}.so$major'
7025  shlibpath_var=LD_LIBRARY_PATH
7026  case $host_vendor in
7027    sni)
7028      shlibpath_overrides_runpath=no
7029      need_lib_prefix=no
7030      export_dynamic_flag_spec='${wl}-Blargedynsym'
7031      runpath_var=LD_RUN_PATH
7032      ;;
7033    siemens)
7034      need_lib_prefix=no
7035      ;;
7036    motorola)
7037      need_lib_prefix=no
7038      need_version=no
7039      shlibpath_overrides_runpath=no
7040      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7041      ;;
7042  esac
7043  ;;
7044
7045uts4*)
7046  version_type=linux
7047  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7048  soname_spec='${libname}${release}.so$major'
7049  shlibpath_var=LD_LIBRARY_PATH
7050  ;;
7051
7052dgux*)
7053  version_type=linux
7054  need_lib_prefix=no
7055  need_version=no
7056  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7057  soname_spec='${libname}${release}.so$major'
7058  shlibpath_var=LD_LIBRARY_PATH
7059  ;;
7060
7061sysv4*MP*)
7062  if test -d /usr/nec ;then
7063    version_type=linux
7064    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7065    soname_spec='$libname.so.$major'
7066    shlibpath_var=LD_LIBRARY_PATH
7067  fi
7068  ;;
7069
7070*)
7071  dynamic_linker=no
7072  ;;
7073esac
7074echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7075echo "${ECHO_T}$dynamic_linker" >&6
7076test "$dynamic_linker" = no && can_build_shared=no
7077
7078# Report the final consequences.
7079echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7080echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7081echo "$as_me:$LINENO: result: $can_build_shared" >&5
7082echo "${ECHO_T}$can_build_shared" >&6
7083
7084echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7085echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7086test "$can_build_shared" = "no" && enable_shared=no
7087
7088# On AIX, shared libraries and static libraries use the same namespace, and
7089# are all built from PIC.
7090case "$host_os" in
7091aix3*)
7092  test "$enable_shared" = yes && enable_static=no
7093  if test -n "$RANLIB"; then
7094    archive_cmds="$archive_cmds~\$RANLIB \$lib"
7095    postinstall_cmds='$RANLIB $lib'
7096  fi
7097  ;;
7098
7099aix4*)
7100  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7101    test "$enable_shared" = yes && enable_static=no
7102  fi
7103  ;;
7104esac
7105echo "$as_me:$LINENO: result: $enable_shared" >&5
7106echo "${ECHO_T}$enable_shared" >&6
7107
7108echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7109echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7110# Make sure either enable_shared or enable_static is yes.
7111test "$enable_shared" = yes || enable_static=yes
7112echo "$as_me:$LINENO: result: $enable_static" >&5
7113echo "${ECHO_T}$enable_static" >&6
7114
7115if test "$hardcode_action" = relink; then
7116  # Fast installation is not supported
7117  enable_fast_install=no
7118elif test "$shlibpath_overrides_runpath" = yes ||
7119     test "$enable_shared" = no; then
7120  # Fast installation is not necessary
7121  enable_fast_install=needless
7122fi
7123
7124variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7125if test "$GCC" = yes; then
7126  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7127fi
7128
7129if test "x$enable_dlopen" != xyes; then
7130  enable_dlopen=unknown
7131  enable_dlopen_self=unknown
7132  enable_dlopen_self_static=unknown
7133else
7134  lt_cv_dlopen=no
7135  lt_cv_dlopen_libs=
7136
7137  case $host_os in
7138  beos*)
7139    lt_cv_dlopen="load_add_on"
7140    lt_cv_dlopen_libs=
7141    lt_cv_dlopen_self=yes
7142    ;;
7143
7144  cygwin* | mingw* | pw32*)
7145    lt_cv_dlopen="LoadLibrary"
7146    lt_cv_dlopen_libs=
7147   ;;
7148
7149  *)
7150    echo "$as_me:$LINENO: checking for shl_load" >&5
7151echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7152if test "${ac_cv_func_shl_load+set}" = set; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h.  */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h.  */
7161/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7162   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7163#define shl_load innocuous_shl_load
7164
7165/* System header to define __stub macros and hopefully few prototypes,
7166    which can conflict with char shl_load (); below.
7167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168    <limits.h> exists even on freestanding compilers.  */
7169
7170#ifdef __STDC__
7171# include <limits.h>
7172#else
7173# include <assert.h>
7174#endif
7175
7176#undef shl_load
7177
7178/* Override any gcc2 internal prototype to avoid an error.  */
7179#ifdef __cplusplus
7180extern "C"
7181{
7182#endif
7183/* We use char because int might match the return type of a gcc2
7184   builtin and then its argument prototype would still apply.  */
7185char shl_load ();
7186/* The GNU C library defines this for functions which it implements
7187    to always fail with ENOSYS.  Some functions are actually named
7188    something starting with __ and the normal name is an alias.  */
7189#if defined (__stub_shl_load) || defined (__stub___shl_load)
7190choke me
7191#else
7192char (*f) () = shl_load;
7193#endif
7194#ifdef __cplusplus
7195}
7196#endif
7197
7198int
7199main ()
7200{
7201return f != shl_load;
7202  ;
7203  return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext conftest$ac_exeext
7207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208  (eval $ac_link) 2>conftest.er1
7209  ac_status=$?
7210  grep -v '^ *+' conftest.er1 >conftest.err
7211  rm -f conftest.er1
7212  cat conftest.err >&5
7213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214  (exit $ac_status); } &&
7215	 { ac_try='test -z "$ac_cxx_werror_flag"
7216			 || test ! -s conftest.err'
7217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218  (eval $ac_try) 2>&5
7219  ac_status=$?
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); }; } &&
7222	 { ac_try='test -s conftest$ac_exeext'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; }; then
7228  ac_cv_func_shl_load=yes
7229else
7230  echo "$as_me: failed program was:" >&5
7231sed 's/^/| /' conftest.$ac_ext >&5
7232
7233ac_cv_func_shl_load=no
7234fi
7235rm -f conftest.err conftest.$ac_objext \
7236      conftest$ac_exeext conftest.$ac_ext
7237fi
7238echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7239echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7240if test $ac_cv_func_shl_load = yes; then
7241  lt_cv_dlopen="shl_load"
7242else
7243  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7244echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7245if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7246  echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248  ac_check_lib_save_LIBS=$LIBS
7249LIBS="-ldld  $LIBS"
7250cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h.  */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h.  */
7256
7257/* Override any gcc2 internal prototype to avoid an error.  */
7258#ifdef __cplusplus
7259extern "C"
7260#endif
7261/* We use char because int might match the return type of a gcc2
7262   builtin and then its argument prototype would still apply.  */
7263char shl_load ();
7264int
7265main ()
7266{
7267shl_load ();
7268  ;
7269  return 0;
7270}
7271_ACEOF
7272rm -f conftest.$ac_objext conftest$ac_exeext
7273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7274  (eval $ac_link) 2>conftest.er1
7275  ac_status=$?
7276  grep -v '^ *+' conftest.er1 >conftest.err
7277  rm -f conftest.er1
7278  cat conftest.err >&5
7279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280  (exit $ac_status); } &&
7281	 { ac_try='test -z "$ac_cxx_werror_flag"
7282			 || test ! -s conftest.err'
7283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284  (eval $ac_try) 2>&5
7285  ac_status=$?
7286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287  (exit $ac_status); }; } &&
7288	 { ac_try='test -s conftest$ac_exeext'
7289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290  (eval $ac_try) 2>&5
7291  ac_status=$?
7292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293  (exit $ac_status); }; }; then
7294  ac_cv_lib_dld_shl_load=yes
7295else
7296  echo "$as_me: failed program was:" >&5
7297sed 's/^/| /' conftest.$ac_ext >&5
7298
7299ac_cv_lib_dld_shl_load=no
7300fi
7301rm -f conftest.err conftest.$ac_objext \
7302      conftest$ac_exeext conftest.$ac_ext
7303LIBS=$ac_check_lib_save_LIBS
7304fi
7305echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7306echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7307if test $ac_cv_lib_dld_shl_load = yes; then
7308  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7309else
7310  echo "$as_me:$LINENO: checking for dlopen" >&5
7311echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7312if test "${ac_cv_func_dlopen+set}" = set; then
7313  echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315  cat >conftest.$ac_ext <<_ACEOF
7316/* confdefs.h.  */
7317_ACEOF
7318cat confdefs.h >>conftest.$ac_ext
7319cat >>conftest.$ac_ext <<_ACEOF
7320/* end confdefs.h.  */
7321/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7322   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7323#define dlopen innocuous_dlopen
7324
7325/* System header to define __stub macros and hopefully few prototypes,
7326    which can conflict with char dlopen (); below.
7327    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328    <limits.h> exists even on freestanding compilers.  */
7329
7330#ifdef __STDC__
7331# include <limits.h>
7332#else
7333# include <assert.h>
7334#endif
7335
7336#undef dlopen
7337
7338/* Override any gcc2 internal prototype to avoid an error.  */
7339#ifdef __cplusplus
7340extern "C"
7341{
7342#endif
7343/* We use char because int might match the return type of a gcc2
7344   builtin and then its argument prototype would still apply.  */
7345char dlopen ();
7346/* The GNU C library defines this for functions which it implements
7347    to always fail with ENOSYS.  Some functions are actually named
7348    something starting with __ and the normal name is an alias.  */
7349#if defined (__stub_dlopen) || defined (__stub___dlopen)
7350choke me
7351#else
7352char (*f) () = dlopen;
7353#endif
7354#ifdef __cplusplus
7355}
7356#endif
7357
7358int
7359main ()
7360{
7361return f != dlopen;
7362  ;
7363  return 0;
7364}
7365_ACEOF
7366rm -f conftest.$ac_objext conftest$ac_exeext
7367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368  (eval $ac_link) 2>conftest.er1
7369  ac_status=$?
7370  grep -v '^ *+' conftest.er1 >conftest.err
7371  rm -f conftest.er1
7372  cat conftest.err >&5
7373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374  (exit $ac_status); } &&
7375	 { ac_try='test -z "$ac_cxx_werror_flag"
7376			 || test ! -s conftest.err'
7377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378  (eval $ac_try) 2>&5
7379  ac_status=$?
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); }; } &&
7382	 { ac_try='test -s conftest$ac_exeext'
7383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384  (eval $ac_try) 2>&5
7385  ac_status=$?
7386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); }; }; then
7388  ac_cv_func_dlopen=yes
7389else
7390  echo "$as_me: failed program was:" >&5
7391sed 's/^/| /' conftest.$ac_ext >&5
7392
7393ac_cv_func_dlopen=no
7394fi
7395rm -f conftest.err conftest.$ac_objext \
7396      conftest$ac_exeext conftest.$ac_ext
7397fi
7398echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7399echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7400if test $ac_cv_func_dlopen = yes; then
7401  lt_cv_dlopen="dlopen"
7402else
7403  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7404echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7405if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7406  echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408  ac_check_lib_save_LIBS=$LIBS
7409LIBS="-ldl  $LIBS"
7410cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h.  */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h.  */
7416
7417/* Override any gcc2 internal prototype to avoid an error.  */
7418#ifdef __cplusplus
7419extern "C"
7420#endif
7421/* We use char because int might match the return type of a gcc2
7422   builtin and then its argument prototype would still apply.  */
7423char dlopen ();
7424int
7425main ()
7426{
7427dlopen ();
7428  ;
7429  return 0;
7430}
7431_ACEOF
7432rm -f conftest.$ac_objext conftest$ac_exeext
7433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434  (eval $ac_link) 2>conftest.er1
7435  ac_status=$?
7436  grep -v '^ *+' conftest.er1 >conftest.err
7437  rm -f conftest.er1
7438  cat conftest.err >&5
7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440  (exit $ac_status); } &&
7441	 { ac_try='test -z "$ac_cxx_werror_flag"
7442			 || test ! -s conftest.err'
7443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444  (eval $ac_try) 2>&5
7445  ac_status=$?
7446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447  (exit $ac_status); }; } &&
7448	 { ac_try='test -s conftest$ac_exeext'
7449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450  (eval $ac_try) 2>&5
7451  ac_status=$?
7452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453  (exit $ac_status); }; }; then
7454  ac_cv_lib_dl_dlopen=yes
7455else
7456  echo "$as_me: failed program was:" >&5
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459ac_cv_lib_dl_dlopen=no
7460fi
7461rm -f conftest.err conftest.$ac_objext \
7462      conftest$ac_exeext conftest.$ac_ext
7463LIBS=$ac_check_lib_save_LIBS
7464fi
7465echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7466echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7467if test $ac_cv_lib_dl_dlopen = yes; then
7468  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7469else
7470  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7471echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7472if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7473  echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475  ac_check_lib_save_LIBS=$LIBS
7476LIBS="-lsvld  $LIBS"
7477cat >conftest.$ac_ext <<_ACEOF
7478/* confdefs.h.  */
7479_ACEOF
7480cat confdefs.h >>conftest.$ac_ext
7481cat >>conftest.$ac_ext <<_ACEOF
7482/* end confdefs.h.  */
7483
7484/* Override any gcc2 internal prototype to avoid an error.  */
7485#ifdef __cplusplus
7486extern "C"
7487#endif
7488/* We use char because int might match the return type of a gcc2
7489   builtin and then its argument prototype would still apply.  */
7490char dlopen ();
7491int
7492main ()
7493{
7494dlopen ();
7495  ;
7496  return 0;
7497}
7498_ACEOF
7499rm -f conftest.$ac_objext conftest$ac_exeext
7500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501  (eval $ac_link) 2>conftest.er1
7502  ac_status=$?
7503  grep -v '^ *+' conftest.er1 >conftest.err
7504  rm -f conftest.er1
7505  cat conftest.err >&5
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); } &&
7508	 { ac_try='test -z "$ac_cxx_werror_flag"
7509			 || test ! -s conftest.err'
7510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511  (eval $ac_try) 2>&5
7512  ac_status=$?
7513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514  (exit $ac_status); }; } &&
7515	 { ac_try='test -s conftest$ac_exeext'
7516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517  (eval $ac_try) 2>&5
7518  ac_status=$?
7519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520  (exit $ac_status); }; }; then
7521  ac_cv_lib_svld_dlopen=yes
7522else
7523  echo "$as_me: failed program was:" >&5
7524sed 's/^/| /' conftest.$ac_ext >&5
7525
7526ac_cv_lib_svld_dlopen=no
7527fi
7528rm -f conftest.err conftest.$ac_objext \
7529      conftest$ac_exeext conftest.$ac_ext
7530LIBS=$ac_check_lib_save_LIBS
7531fi
7532echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7533echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7534if test $ac_cv_lib_svld_dlopen = yes; then
7535  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7536else
7537  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7538echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7539if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7540  echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542  ac_check_lib_save_LIBS=$LIBS
7543LIBS="-ldld  $LIBS"
7544cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h.  */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h.  */
7550
7551/* Override any gcc2 internal prototype to avoid an error.  */
7552#ifdef __cplusplus
7553extern "C"
7554#endif
7555/* We use char because int might match the return type of a gcc2
7556   builtin and then its argument prototype would still apply.  */
7557char dld_link ();
7558int
7559main ()
7560{
7561dld_link ();
7562  ;
7563  return 0;
7564}
7565_ACEOF
7566rm -f conftest.$ac_objext conftest$ac_exeext
7567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568  (eval $ac_link) 2>conftest.er1
7569  ac_status=$?
7570  grep -v '^ *+' conftest.er1 >conftest.err
7571  rm -f conftest.er1
7572  cat conftest.err >&5
7573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574  (exit $ac_status); } &&
7575	 { ac_try='test -z "$ac_cxx_werror_flag"
7576			 || test ! -s conftest.err'
7577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578  (eval $ac_try) 2>&5
7579  ac_status=$?
7580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581  (exit $ac_status); }; } &&
7582	 { ac_try='test -s conftest$ac_exeext'
7583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584  (eval $ac_try) 2>&5
7585  ac_status=$?
7586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587  (exit $ac_status); }; }; then
7588  ac_cv_lib_dld_dld_link=yes
7589else
7590  echo "$as_me: failed program was:" >&5
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
7593ac_cv_lib_dld_dld_link=no
7594fi
7595rm -f conftest.err conftest.$ac_objext \
7596      conftest$ac_exeext conftest.$ac_ext
7597LIBS=$ac_check_lib_save_LIBS
7598fi
7599echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7600echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7601if test $ac_cv_lib_dld_dld_link = yes; then
7602  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7603fi
7604
7605
7606fi
7607
7608
7609fi
7610
7611
7612fi
7613
7614
7615fi
7616
7617
7618fi
7619
7620    ;;
7621  esac
7622
7623  if test "x$lt_cv_dlopen" != xno; then
7624    enable_dlopen=yes
7625  else
7626    enable_dlopen=no
7627  fi
7628
7629  case $lt_cv_dlopen in
7630  dlopen)
7631    save_CPPFLAGS="$CPPFLAGS"
7632        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7633
7634    save_LDFLAGS="$LDFLAGS"
7635    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7636
7637    save_LIBS="$LIBS"
7638    LIBS="$lt_cv_dlopen_libs $LIBS"
7639
7640    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7641echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7642if test "${lt_cv_dlopen_self+set}" = set; then
7643  echo $ECHO_N "(cached) $ECHO_C" >&6
7644else
7645  	  if test "$cross_compiling" = yes; then :
7646  lt_cv_dlopen_self=cross
7647else
7648    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7649  lt_status=$lt_dlunknown
7650  cat > conftest.$ac_ext <<EOF
7651#line __oline__ "configure"
7652#include "confdefs.h"
7653
7654#if HAVE_DLFCN_H
7655#include <dlfcn.h>
7656#endif
7657
7658#include <stdio.h>
7659
7660#ifdef RTLD_GLOBAL
7661#  define LT_DLGLOBAL		RTLD_GLOBAL
7662#else
7663#  ifdef DL_GLOBAL
7664#    define LT_DLGLOBAL		DL_GLOBAL
7665#  else
7666#    define LT_DLGLOBAL		0
7667#  endif
7668#endif
7669
7670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7671   find out it does not work in some platform. */
7672#ifndef LT_DLLAZY_OR_NOW
7673#  ifdef RTLD_LAZY
7674#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7675#  else
7676#    ifdef DL_LAZY
7677#      define LT_DLLAZY_OR_NOW		DL_LAZY
7678#    else
7679#      ifdef RTLD_NOW
7680#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7681#      else
7682#        ifdef DL_NOW
7683#          define LT_DLLAZY_OR_NOW	DL_NOW
7684#        else
7685#          define LT_DLLAZY_OR_NOW	0
7686#        endif
7687#      endif
7688#    endif
7689#  endif
7690#endif
7691
7692#ifdef __cplusplus
7693extern "C" void exit (int);
7694#endif
7695
7696void fnord() { int i=42;}
7697int main ()
7698{
7699  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7700  int status = $lt_dlunknown;
7701
7702  if (self)
7703    {
7704      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7705      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7706      /* dlclose (self); */
7707    }
7708
7709    exit (status);
7710}
7711EOF
7712  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7713  (eval $ac_link) 2>&5
7714  ac_status=$?
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7717    (./conftest; exit; ) 2>/dev/null
7718    lt_status=$?
7719    case x$lt_status in
7720      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7721      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7722      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7723    esac
7724  else :
7725    # compilation failed
7726    lt_cv_dlopen_self=no
7727  fi
7728fi
7729rm -fr conftest*
7730
7731
7732fi
7733echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7734echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7735
7736    if test "x$lt_cv_dlopen_self" = xyes; then
7737      LDFLAGS="$LDFLAGS $link_static_flag"
7738      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7739echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7740if test "${lt_cv_dlopen_self_static+set}" = set; then
7741  echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743  	  if test "$cross_compiling" = yes; then :
7744  lt_cv_dlopen_self_static=cross
7745else
7746    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7747  lt_status=$lt_dlunknown
7748  cat > conftest.$ac_ext <<EOF
7749#line __oline__ "configure"
7750#include "confdefs.h"
7751
7752#if HAVE_DLFCN_H
7753#include <dlfcn.h>
7754#endif
7755
7756#include <stdio.h>
7757
7758#ifdef RTLD_GLOBAL
7759#  define LT_DLGLOBAL		RTLD_GLOBAL
7760#else
7761#  ifdef DL_GLOBAL
7762#    define LT_DLGLOBAL		DL_GLOBAL
7763#  else
7764#    define LT_DLGLOBAL		0
7765#  endif
7766#endif
7767
7768/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7769   find out it does not work in some platform. */
7770#ifndef LT_DLLAZY_OR_NOW
7771#  ifdef RTLD_LAZY
7772#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7773#  else
7774#    ifdef DL_LAZY
7775#      define LT_DLLAZY_OR_NOW		DL_LAZY
7776#    else
7777#      ifdef RTLD_NOW
7778#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7779#      else
7780#        ifdef DL_NOW
7781#          define LT_DLLAZY_OR_NOW	DL_NOW
7782#        else
7783#          define LT_DLLAZY_OR_NOW	0
7784#        endif
7785#      endif
7786#    endif
7787#  endif
7788#endif
7789
7790#ifdef __cplusplus
7791extern "C" void exit (int);
7792#endif
7793
7794void fnord() { int i=42;}
7795int main ()
7796{
7797  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7798  int status = $lt_dlunknown;
7799
7800  if (self)
7801    {
7802      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7803      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7804      /* dlclose (self); */
7805    }
7806
7807    exit (status);
7808}
7809EOF
7810  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811  (eval $ac_link) 2>&5
7812  ac_status=$?
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7815    (./conftest; exit; ) 2>/dev/null
7816    lt_status=$?
7817    case x$lt_status in
7818      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7819      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7820      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7821    esac
7822  else :
7823    # compilation failed
7824    lt_cv_dlopen_self_static=no
7825  fi
7826fi
7827rm -fr conftest*
7828
7829
7830fi
7831echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7832echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7833    fi
7834
7835    CPPFLAGS="$save_CPPFLAGS"
7836    LDFLAGS="$save_LDFLAGS"
7837    LIBS="$save_LIBS"
7838    ;;
7839  esac
7840
7841  case $lt_cv_dlopen_self in
7842  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7843  *) enable_dlopen_self=unknown ;;
7844  esac
7845
7846  case $lt_cv_dlopen_self_static in
7847  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7848  *) enable_dlopen_self_static=unknown ;;
7849  esac
7850fi
7851
7852
7853if test "$enable_shared" = yes && test "$GCC" = yes; then
7854  case $archive_cmds in
7855  *'~'*)
7856    # FIXME: we may have to deal with multi-command sequences.
7857    ;;
7858  '$CC '*)
7859    # Test whether the compiler implicitly links with -lc since on some
7860    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7861    # to ld, don't add -lc before -lgcc.
7862    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7863echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7864    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7865  echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867  $rm conftest*
7868    echo 'static int dummy;' > conftest.$ac_ext
7869
7870    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7871  (eval $ac_compile) 2>&5
7872  ac_status=$?
7873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874  (exit $ac_status); }; then
7875      soname=conftest
7876      lib=conftest
7877      libobjs=conftest.$ac_objext
7878      deplibs=
7879      wl=$lt_cv_prog_cc_wl
7880      compiler_flags=-v
7881      linker_flags=-v
7882      verstring=
7883      output_objdir=.
7884      libname=conftest
7885      save_allow_undefined_flag=$allow_undefined_flag
7886      allow_undefined_flag=
7887      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7888  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7889  ac_status=$?
7890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891  (exit $ac_status); }
7892      then
7893	lt_cv_archive_cmds_need_lc=no
7894      else
7895	lt_cv_archive_cmds_need_lc=yes
7896      fi
7897      allow_undefined_flag=$save_allow_undefined_flag
7898    else
7899      cat conftest.err 1>&5
7900    fi
7901fi
7902
7903    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7904echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7905    ;;
7906  esac
7907fi
7908need_lc=${lt_cv_archive_cmds_need_lc-yes}
7909
7910# The second clause should only fire when bootstrapping the
7911# libtool distribution, otherwise you forgot to ship ltmain.sh
7912# with your package, and you will get complaints that there are
7913# no rules to generate ltmain.sh.
7914if test -f "$ltmain"; then
7915  :
7916else
7917  # If there is no Makefile yet, we rely on a make rule to execute
7918  # `config.status --recheck' to rerun these tests and create the
7919  # libtool script then.
7920  test -f Makefile && make "$ltmain"
7921fi
7922
7923if test -f "$ltmain"; then
7924  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7925  $rm -f "${ofile}T"
7926
7927  echo creating $ofile
7928
7929  # Now quote all the things that may contain metacharacters while being
7930  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7931  # variables and quote the copies for generation of the libtool script.
7932  for var in echo old_CC old_CFLAGS SED \
7933    AR AR_FLAGS CC LD LN_S NM SHELL \
7934    reload_flag reload_cmds wl \
7935    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7936    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7937    library_names_spec soname_spec \
7938    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7939    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7940    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7941    old_striplib striplib file_magic_cmd export_symbols_cmds \
7942    deplibs_check_method allow_undefined_flag no_undefined_flag \
7943    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7944    global_symbol_to_c_name_address \
7945    hardcode_libdir_flag_spec hardcode_libdir_separator  \
7946    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7947    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7948
7949    case $var in
7950    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7951    old_postinstall_cmds | old_postuninstall_cmds | \
7952    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7953    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7954    postinstall_cmds | postuninstall_cmds | \
7955    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7956      # Double-quote double-evaled strings.
7957      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7958      ;;
7959    *)
7960      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7961      ;;
7962    esac
7963  done
7964
7965  cat <<__EOF__ > "${ofile}T"
7966#! $SHELL
7967
7968# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7969# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7970# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7971#
7972# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7973# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7974#
7975# This program is free software; you can redistribute it and/or modify
7976# it under the terms of the GNU General Public License as published by
7977# the Free Software Foundation; either version 2 of the License, or
7978# (at your option) any later version.
7979#
7980# This program is distributed in the hope that it will be useful, but
7981# WITHOUT ANY WARRANTY; without even the implied warranty of
7982# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7983# General Public License for more details.
7984#
7985# You should have received a copy of the GNU General Public License
7986# along with this program; if not, write to the Free Software
7987# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7988#
7989# As a special exception to the GNU General Public License, if you
7990# distribute this file as part of a program that contains a
7991# configuration script generated by Autoconf, you may include it under
7992# the same distribution terms that you use for the rest of that program.
7993
7994# A sed that does not truncate output.
7995SED=$lt_SED
7996
7997# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7998Xsed="${SED} -e s/^X//"
7999
8000# The HP-UX ksh and POSIX shell print the target directory to stdout
8001# if CDPATH is set.
8002if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8003
8004# ### BEGIN LIBTOOL CONFIG
8005
8006# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8007
8008# Shell to use when invoking shell scripts.
8009SHELL=$lt_SHELL
8010
8011# Whether or not to build shared libraries.
8012build_libtool_libs=$enable_shared
8013
8014# Whether or not to build static libraries.
8015build_old_libs=$enable_static
8016
8017# Whether or not to add -lc for building shared libraries.
8018build_libtool_need_lc=$need_lc
8019
8020# Whether or not to optimize for fast installation.
8021fast_install=$enable_fast_install
8022
8023# The host system.
8024host_alias=$host_alias
8025host=$host
8026
8027# An echo program that does not interpret backslashes.
8028echo=$lt_echo
8029
8030# The archiver.
8031AR=$lt_AR
8032AR_FLAGS=$lt_AR_FLAGS
8033
8034# The default C compiler.
8035CC=$lt_CC
8036
8037# Is the compiler the GNU C compiler?
8038with_gcc=$GCC
8039
8040# The linker used to build libraries.
8041LD=$lt_LD
8042
8043# Whether we need hard or soft links.
8044LN_S=$lt_LN_S
8045
8046# A BSD-compatible nm program.
8047NM=$lt_NM
8048
8049# A symbol stripping program
8050STRIP=$STRIP
8051
8052# Used to examine libraries when file_magic_cmd begins "file"
8053MAGIC_CMD=$MAGIC_CMD
8054
8055# Used on cygwin: DLL creation program.
8056DLLTOOL="$DLLTOOL"
8057
8058# Used on cygwin: object dumper.
8059OBJDUMP="$OBJDUMP"
8060
8061# Used on cygwin: assembler.
8062AS="$AS"
8063
8064# The name of the directory that contains temporary libtool files.
8065objdir=$objdir
8066
8067# How to create reloadable object files.
8068reload_flag=$lt_reload_flag
8069reload_cmds=$lt_reload_cmds
8070
8071# How to pass a linker flag through the compiler.
8072wl=$lt_wl
8073
8074# Object file suffix (normally "o").
8075objext="$ac_objext"
8076
8077# Old archive suffix (normally "a").
8078libext="$libext"
8079
8080# Executable file suffix (normally "").
8081exeext="$exeext"
8082
8083# Additional compiler flags for building library objects.
8084pic_flag=$lt_pic_flag
8085pic_mode=$pic_mode
8086
8087# Does compiler simultaneously support -c and -o options?
8088compiler_c_o=$lt_compiler_c_o
8089
8090# Can we write directly to a .lo ?
8091compiler_o_lo=$lt_compiler_o_lo
8092
8093# Must we lock files when doing compilation ?
8094need_locks=$lt_need_locks
8095
8096# Do we need the lib prefix for modules?
8097need_lib_prefix=$need_lib_prefix
8098
8099# Do we need a version for libraries?
8100need_version=$need_version
8101
8102# Whether dlopen is supported.
8103dlopen_support=$enable_dlopen
8104
8105# Whether dlopen of programs is supported.
8106dlopen_self=$enable_dlopen_self
8107
8108# Whether dlopen of statically linked programs is supported.
8109dlopen_self_static=$enable_dlopen_self_static
8110
8111# Compiler flag to prevent dynamic linking.
8112link_static_flag=$lt_link_static_flag
8113
8114# Compiler flag to turn off builtin functions.
8115no_builtin_flag=$lt_no_builtin_flag
8116
8117# Compiler flag to allow reflexive dlopens.
8118export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8119
8120# Compiler flag to generate shared objects directly from archives.
8121whole_archive_flag_spec=$lt_whole_archive_flag_spec
8122
8123# Compiler flag to generate thread-safe objects.
8124thread_safe_flag_spec=$lt_thread_safe_flag_spec
8125
8126# Library versioning type.
8127version_type=$version_type
8128
8129# Format of library name prefix.
8130libname_spec=$lt_libname_spec
8131
8132# List of archive names.  First name is the real one, the rest are links.
8133# The last name is the one that the linker finds with -lNAME.
8134library_names_spec=$lt_library_names_spec
8135
8136# The coded name of the library, if different from the real name.
8137soname_spec=$lt_soname_spec
8138
8139# Commands used to build and install an old-style archive.
8140RANLIB=$lt_RANLIB
8141old_archive_cmds=$lt_old_archive_cmds
8142old_postinstall_cmds=$lt_old_postinstall_cmds
8143old_postuninstall_cmds=$lt_old_postuninstall_cmds
8144
8145# Create an old-style archive from a shared archive.
8146old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8147
8148# Create a temporary old-style archive to link instead of a shared archive.
8149old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8150
8151# Commands used to build and install a shared archive.
8152archive_cmds=$lt_archive_cmds
8153archive_expsym_cmds=$lt_archive_expsym_cmds
8154postinstall_cmds=$lt_postinstall_cmds
8155postuninstall_cmds=$lt_postuninstall_cmds
8156
8157# Commands to strip libraries.
8158old_striplib=$lt_old_striplib
8159striplib=$lt_striplib
8160
8161# Method to check whether dependent libraries are shared objects.
8162deplibs_check_method=$lt_deplibs_check_method
8163
8164# Command to use when deplibs_check_method == file_magic.
8165file_magic_cmd=$lt_file_magic_cmd
8166
8167# Flag that allows shared libraries with undefined symbols to be built.
8168allow_undefined_flag=$lt_allow_undefined_flag
8169
8170# Flag that forces no undefined symbols.
8171no_undefined_flag=$lt_no_undefined_flag
8172
8173# Commands used to finish a libtool library installation in a directory.
8174finish_cmds=$lt_finish_cmds
8175
8176# Same as above, but a single script fragment to be evaled but not shown.
8177finish_eval=$lt_finish_eval
8178
8179# Take the output of nm and produce a listing of raw symbols and C names.
8180global_symbol_pipe=$lt_global_symbol_pipe
8181
8182# Transform the output of nm in a proper C declaration
8183global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8184
8185# Transform the output of nm in a C name address pair
8186global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8187
8188# This is the shared library runtime path variable.
8189runpath_var=$runpath_var
8190
8191# This is the shared library path variable.
8192shlibpath_var=$shlibpath_var
8193
8194# Is shlibpath searched before the hard-coded library search path?
8195shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8196
8197# How to hardcode a shared library path into an executable.
8198hardcode_action=$hardcode_action
8199
8200# Whether we should hardcode library paths into libraries.
8201hardcode_into_libs=$hardcode_into_libs
8202
8203# Flag to hardcode \$libdir into a binary during linking.
8204# This must work even if \$libdir does not exist.
8205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8206
8207# Whether we need a single -rpath flag with a separated argument.
8208hardcode_libdir_separator=$lt_hardcode_libdir_separator
8209
8210# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8211# resulting binary.
8212hardcode_direct=$hardcode_direct
8213
8214# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8215# resulting binary.
8216hardcode_minus_L=$hardcode_minus_L
8217
8218# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8219# the resulting binary.
8220hardcode_shlibpath_var=$hardcode_shlibpath_var
8221
8222# Variables whose values should be saved in libtool wrapper scripts and
8223# restored at relink time.
8224variables_saved_for_relink="$variables_saved_for_relink"
8225
8226# Whether libtool must link a program against all its dependency libraries.
8227link_all_deplibs=$link_all_deplibs
8228
8229# Compile-time system search path for libraries
8230sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8231
8232# Run-time system search path for libraries
8233sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8234
8235# Fix the shell variable \$srcfile for the compiler.
8236fix_srcfile_path="$fix_srcfile_path"
8237
8238# Set to yes if exported symbols are required.
8239always_export_symbols=$always_export_symbols
8240
8241# The commands to list exported symbols.
8242export_symbols_cmds=$lt_export_symbols_cmds
8243
8244# The commands to extract the exported symbol list from a shared archive.
8245extract_expsyms_cmds=$lt_extract_expsyms_cmds
8246
8247# Symbols that should not be listed in the preloaded symbols.
8248exclude_expsyms=$lt_exclude_expsyms
8249
8250# Symbols that must always be exported.
8251include_expsyms=$lt_include_expsyms
8252
8253# ### END LIBTOOL CONFIG
8254
8255__EOF__
8256
8257  case $host_os in
8258  aix3*)
8259    cat <<\EOF >> "${ofile}T"
8260
8261# AIX sometimes has problems with the GCC collect2 program.  For some
8262# reason, if we set the COLLECT_NAMES environment variable, the problems
8263# vanish in a puff of smoke.
8264if test "X${COLLECT_NAMES+set}" != Xset; then
8265  COLLECT_NAMES=
8266  export COLLECT_NAMES
8267fi
8268EOF
8269    ;;
8270  esac
8271
8272  case $host_os in
8273  cygwin* | mingw* | pw32* | os2*)
8274    cat <<'EOF' >> "${ofile}T"
8275      # This is a source program that is used to create dlls on Windows
8276      # Don't remove nor modify the starting and closing comments
8277# /* ltdll.c starts here */
8278# #define WIN32_LEAN_AND_MEAN
8279# #include <windows.h>
8280# #undef WIN32_LEAN_AND_MEAN
8281# #include <stdio.h>
8282#
8283# #ifndef __CYGWIN__
8284# #  ifdef __CYGWIN32__
8285# #    define __CYGWIN__ __CYGWIN32__
8286# #  endif
8287# #endif
8288#
8289# #ifdef __cplusplus
8290# extern "C" {
8291# #endif
8292# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8293# #ifdef __cplusplus
8294# }
8295# #endif
8296#
8297# #ifdef __CYGWIN__
8298# #include <cygwin/cygwin_dll.h>
8299# DECLARE_CYGWIN_DLL( DllMain );
8300# #endif
8301# HINSTANCE __hDllInstance_base;
8302#
8303# BOOL APIENTRY
8304# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8305# {
8306#   __hDllInstance_base = hInst;
8307#   return TRUE;
8308# }
8309# /* ltdll.c ends here */
8310	# This is a source program that is used to create import libraries
8311	# on Windows for dlls which lack them. Don't remove nor modify the
8312	# starting and closing comments
8313# /* impgen.c starts here */
8314# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8315#
8316#  This file is part of GNU libtool.
8317#
8318#  This program is free software; you can redistribute it and/or modify
8319#  it under the terms of the GNU General Public License as published by
8320#  the Free Software Foundation; either version 2 of the License, or
8321#  (at your option) any later version.
8322#
8323#  This program is distributed in the hope that it will be useful,
8324#  but WITHOUT ANY WARRANTY; without even the implied warranty of
8325#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8326#  GNU General Public License for more details.
8327#
8328#  You should have received a copy of the GNU General Public License
8329#  along with this program; if not, write to the Free Software
8330#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8331#  */
8332#
8333# #include <stdio.h>		/* for printf() */
8334# #include <unistd.h>		/* for open(), lseek(), read() */
8335# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
8336# #include <string.h>		/* for strdup() */
8337#
8338# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8339# #ifndef O_BINARY
8340# #define O_BINARY 0
8341# #endif
8342#
8343# static unsigned int
8344# pe_get16 (fd, offset)
8345#      int fd;
8346#      int offset;
8347# {
8348#   unsigned char b[2];
8349#   lseek (fd, offset, SEEK_SET);
8350#   read (fd, b, 2);
8351#   return b[0] + (b[1]<<8);
8352# }
8353#
8354# static unsigned int
8355# pe_get32 (fd, offset)
8356#     int fd;
8357#     int offset;
8358# {
8359#   unsigned char b[4];
8360#   lseek (fd, offset, SEEK_SET);
8361#   read (fd, b, 4);
8362#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8363# }
8364#
8365# static unsigned int
8366# pe_as32 (ptr)
8367#      void *ptr;
8368# {
8369#   unsigned char *b = ptr;
8370#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8371# }
8372#
8373# int
8374# main (argc, argv)
8375#     int argc;
8376#     char *argv[];
8377# {
8378#     int dll;
8379#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8380#     unsigned long export_rva, export_size, nsections, secptr, expptr;
8381#     unsigned long name_rvas, nexp;
8382#     unsigned char *expdata, *erva;
8383#     char *filename, *dll_name;
8384#
8385#     filename = argv[1];
8386#
8387#     dll = open(filename, O_RDONLY|O_BINARY);
8388#     if (dll < 1)
8389# 	return 1;
8390#
8391#     dll_name = filename;
8392#
8393#     for (i=0; filename[i]; i++)
8394# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8395# 	    dll_name = filename + i +1;
8396#
8397#     pe_header_offset = pe_get32 (dll, 0x3c);
8398#     opthdr_ofs = pe_header_offset + 4 + 20;
8399#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8400#
8401#     if (num_entries < 1) /* no exports */
8402# 	return 1;
8403#
8404#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8405#     export_size = pe_get32 (dll, opthdr_ofs + 100);
8406#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8407#     secptr = (pe_header_offset + 4 + 20 +
8408# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
8409#
8410#     expptr = 0;
8411#     for (i = 0; i < nsections; i++)
8412#     {
8413# 	char sname[8];
8414# 	unsigned long secptr1 = secptr + 40 * i;
8415# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8416# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8417# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8418# 	lseek(dll, secptr1, SEEK_SET);
8419# 	read(dll, sname, 8);
8420# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
8421# 	{
8422# 	    expptr = fptr + (export_rva - vaddr);
8423# 	    if (export_rva + export_size > vaddr + vsize)
8424# 		export_size = vsize - (export_rva - vaddr);
8425# 	    break;
8426# 	}
8427#     }
8428#
8429#     expdata = (unsigned char*)malloc(export_size);
8430#     lseek (dll, expptr, SEEK_SET);
8431#     read (dll, expdata, export_size);
8432#     erva = expdata - export_rva;
8433#
8434#     nexp = pe_as32 (expdata+24);
8435#     name_rvas = pe_as32 (expdata+32);
8436#
8437#     printf ("EXPORTS\n");
8438#     for (i = 0; i<nexp; i++)
8439#     {
8440# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8441# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8442#     }
8443#
8444#     return 0;
8445# }
8446# /* impgen.c ends here */
8447
8448EOF
8449    ;;
8450  esac
8451
8452  # We use sed instead of cat because bash on DJGPP gets confused if
8453  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8454  # text mode, it properly converts lines to CR/LF.  This bash problem
8455  # is reportedly fixed, but why not run on old versions too?
8456  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8457
8458  mv -f "${ofile}T" "$ofile" || \
8459    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8460  chmod +x "$ofile"
8461fi
8462
8463
8464
8465
8466
8467# This can be used to rebuild libtool when needed
8468LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8469
8470# Always use our own libtool.
8471LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8472
8473# Prevent multiple expansion
8474
8475
8476
8477
8478
8479
8480   echo "$as_me:$LINENO: checking for sdl-config" >&5
8481echo $ECHO_N "checking for sdl-config... $ECHO_C" >&6
8482   if test -n "$LIBSDL_CONFIG"; then
8483        kde_cv_path="$LIBSDL_CONFIG";
8484   else
8485        kde_cache=`echo sdl-config | sed 'y%./+-%__p_%'`
8486
8487        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
8488  echo $ECHO_N "(cached) $ECHO_C" >&6
8489else
8490
8491        kde_cv_path="NONE"
8492        dirs="${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin"
8493        kde_save_IFS=$IFS
8494        IFS=':'
8495        for dir in $PATH; do
8496          dirs="$dirs $dir"
8497        done
8498        IFS=$kde_save_IFS
8499
8500        for dir in $dirs; do
8501          if test -x "$dir/sdl-config"; then
8502            if test -n ""
8503            then
8504              evalstr="$dir/sdl-config  2>&1 "
8505              if eval $evalstr; then
8506                kde_cv_path="$dir/sdl-config"
8507                break
8508              fi
8509            else
8510                kde_cv_path="$dir/sdl-config"
8511                break
8512            fi
8513          fi
8514        done
8515
8516        eval "kde_cv_path_$kde_cache=$kde_cv_path"
8517
8518
8519fi
8520
8521
8522      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
8523
8524   fi
8525
8526   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
8527      echo "$as_me:$LINENO: result: not found" >&5
8528echo "${ECHO_T}not found" >&6
8529
8530  { echo "$as_me:$LINENO: WARNING: Could not find libsdl anywhere, check http://www.sdl.org" >&5
8531echo "$as_me: WARNING: Could not find libsdl anywhere, check http://www.sdl.org" >&2;}
8532
8533   else
8534      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
8535echo "${ECHO_T}$kde_cv_path" >&6
8536      LIBSDL_CONFIG=$kde_cv_path
8537
8538   fi
8539
8540
8541if test -n "$LIBSDL_CONFIG"; then
8542     LIBSDL_LIBS="`$LIBSDL_CONFIG --libs`"
8543     LIBSDL_RPATH=
8544     for args in $LIBSDL_LIBS; do
8545          case $args in
8546            -L*)
8547               LIBSDL_RPATH="$LIBSDL_RPATH $args"
8548               ;;
8549          esac
8550     done
8551     LIBSDL_RPATH=`echo $LIBSDL_RPATH | sed -e "s/-L/-R/g"`
8552     LIBSDL_CFLAGS="`$LIBSDL_CONFIG --cflags`"
8553
8554
8555cat >>confdefs.h <<_ACEOF
8556@%:@define HAVE_LIBSDL 1
8557_ACEOF
8558
8559fi
8560
8561
8562
8563
8564
8565
8566                              ac_config_files="$ac_config_files Makefile src/Makefile src/libDazzle/Makefile"
8567cat >confcache <<\_ACEOF
8568# This file is a shell script that caches the results of configure
8569# tests run on this system so they can be shared between configure
8570# scripts and configure runs, see configure's option --config-cache.
8571# It is not useful on other systems.  If it contains results you don't
8572# want to keep, you may remove or edit it.
8573#
8574# config.status only pays attention to the cache file if you give it
8575# the --recheck option to rerun configure.
8576#
8577# `ac_cv_env_foo' variables (set or unset) will be overridden when
8578# loading this file, other *unset* `ac_cv_foo' will be assigned the
8579# following values.
8580
8581_ACEOF
8582
8583# The following way of writing the cache mishandles newlines in values,
8584# but we know of no workaround that is simple, portable, and efficient.
8585# So, don't put newlines in cache variables' values.
8586# Ultrix sh set writes to stderr and can't be redirected directly,
8587# and sets the high bit in the cache file unless we assign to the vars.
8588{
8589  (set) 2>&1 |
8590    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8591    *ac_space=\ *)
8592      # `set' does not quote correctly, so add quotes (double-quote
8593      # substitution turns \\\\ into \\, and sed turns \\ into \).
8594      sed -n \
8595	"s/'/'\\\\''/g;
8596	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8597      ;;
8598    *)
8599      # `set' quotes correctly as required by POSIX, so do not add quotes.
8600      sed -n \
8601	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8602      ;;
8603    esac;
8604} |
8605  sed '
8606     t clear
8607     : clear
8608     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8609     t end
8610     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8611     : end' >>confcache
8612if diff $cache_file confcache >/dev/null 2>&1; then :; else
8613  if test -w $cache_file; then
8614    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8615    cat confcache >$cache_file
8616  else
8617    echo "not updating unwritable cache $cache_file"
8618  fi
8619fi
8620rm -f confcache
8621
8622test "x$prefix" = xNONE && prefix=$ac_default_prefix
8623# Let make expand exec_prefix.
8624test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8625
8626# VPATH may cause trouble with some makes, so we remove $(srcdir),
8627# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8628# trailing colons and then remove the whole line if VPATH becomes empty
8629# (actually we leave an empty line to preserve line numbers).
8630if test "x$srcdir" = x.; then
8631  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8632s/:*\$(srcdir):*/:/;
8633s/:*\${srcdir}:*/:/;
8634s/:*@srcdir@:*/:/;
8635s/^\([^=]*=[	 ]*\):*/\1/;
8636s/:*$//;
8637s/^[^=]*=[	 ]*$//;
8638}'
8639fi
8640
8641DEFS=-DHAVE_CONFIG_H
8642
8643ac_libobjs=
8644ac_ltlibobjs=
8645for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
8646  # 1. Remove the extension, and $U if already installed.
8647  ac_i=`echo "$ac_i" |
8648	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8649  # 2. Add them.
8650  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8651  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8652done
8653LIB@&t@OBJS=$ac_libobjs
8654
8655LTLIBOBJS=$ac_ltlibobjs
8656
8657
8658if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8659  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8660Usually this means the macro was only invoked conditionally." >&5
8661echo "$as_me: error: conditional \"AMDEP\" was never defined.
8662Usually this means the macro was only invoked conditionally." >&2;}
8663   { (exit 1); exit 1; }; }
8664fi
8665
8666: ${CONFIG_STATUS=./config.status}
8667ac_clean_files_save=$ac_clean_files
8668ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8669{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8670echo "$as_me: creating $CONFIG_STATUS" >&6;}
8671cat >$CONFIG_STATUS <<_ACEOF
8672#! $SHELL
8673# Generated by $as_me.
8674# Run this file to recreate the current configuration.
8675# Compiler output produced by configure, useful for debugging
8676# configure, is in config.log if it exists.
8677
8678debug=false
8679ac_cs_recheck=false
8680ac_cs_silent=false
8681SHELL=\${CONFIG_SHELL-$SHELL}
8682_ACEOF
8683
8684cat >>$CONFIG_STATUS <<\_ACEOF
8685## --------------------- ##
8686## M4sh Initialization.  ##
8687## --------------------- ##
8688
8689# Be Bourne compatible
8690if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8691  emulate sh
8692  NULLCMD=:
8693  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8694  # is contrary to our usage.  Disable this feature.
8695  alias -g '${1+"$@"}'='"$@"'
8696elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8697  set -o posix
8698fi
8699DUALCASE=1; export DUALCASE # for MKS sh
8700
8701# Support unset when possible.
8702if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8703  as_unset=unset
8704else
8705  as_unset=false
8706fi
8707
8708
8709# Work around bugs in pre-3.0 UWIN ksh.
8710$as_unset ENV MAIL MAILPATH
8711PS1='$ '
8712PS2='> '
8713PS4='+ '
8714
8715# NLS nuisances.
8716for as_var in \
8717  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8718  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8719  LC_TELEPHONE LC_TIME
8720do
8721  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8722    eval $as_var=C; export $as_var
8723  else
8724    $as_unset $as_var
8725  fi
8726done
8727
8728# Required to use basename.
8729if expr a : '\(a\)' >/dev/null 2>&1; then
8730  as_expr=expr
8731else
8732  as_expr=false
8733fi
8734
8735if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8736  as_basename=basename
8737else
8738  as_basename=false
8739fi
8740
8741
8742# Name of the executable.
8743as_me=`$as_basename "$0" ||
8744$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8745	 X"$0" : 'X\(//\)$' \| \
8746	 X"$0" : 'X\(/\)$' \| \
8747	 .     : '\(.\)' 2>/dev/null ||
8748echo X/"$0" |
8749    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8750  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8751  	  /^X\/\(\/\).*/{ s//\1/; q; }
8752  	  s/.*/./; q'`
8753
8754
8755# PATH needs CR, and LINENO needs CR and PATH.
8756# Avoid depending upon Character Ranges.
8757as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8758as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8759as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8760as_cr_digits='0123456789'
8761as_cr_alnum=$as_cr_Letters$as_cr_digits
8762
8763# The user is always right.
8764if test "${PATH_SEPARATOR+set}" != set; then
8765  echo "#! /bin/sh" >conf$$.sh
8766  echo  "exit 0"   >>conf$$.sh
8767  chmod +x conf$$.sh
8768  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8769    PATH_SEPARATOR=';'
8770  else
8771    PATH_SEPARATOR=:
8772  fi
8773  rm -f conf$$.sh
8774fi
8775
8776
8777  as_lineno_1=$LINENO
8778  as_lineno_2=$LINENO
8779  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8780  test "x$as_lineno_1" != "x$as_lineno_2" &&
8781  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8782  # Find who we are.  Look in the path if we contain no path at all
8783  # relative or not.
8784  case $0 in
8785    *[\\/]* ) as_myself=$0 ;;
8786    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789  IFS=$as_save_IFS
8790  test -z "$as_dir" && as_dir=.
8791  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8792done
8793
8794       ;;
8795  esac
8796  # We did not find ourselves, most probably we were run as `sh COMMAND'
8797  # in which case we are not to be found in the path.
8798  if test "x$as_myself" = x; then
8799    as_myself=$0
8800  fi
8801  if test ! -f "$as_myself"; then
8802    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8803echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8804   { (exit 1); exit 1; }; }
8805  fi
8806  case $CONFIG_SHELL in
8807  '')
8808    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8810do
8811  IFS=$as_save_IFS
8812  test -z "$as_dir" && as_dir=.
8813  for as_base in sh bash ksh sh5; do
8814	 case $as_dir in
8815	 /*)
8816	   if ("$as_dir/$as_base" -c '
8817  as_lineno_1=$LINENO
8818  as_lineno_2=$LINENO
8819  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8820  test "x$as_lineno_1" != "x$as_lineno_2" &&
8821  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8822	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8823	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8824	     CONFIG_SHELL=$as_dir/$as_base
8825	     export CONFIG_SHELL
8826	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8827	   fi;;
8828	 esac
8829       done
8830done
8831;;
8832  esac
8833
8834  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8835  # uniformly replaced by the line number.  The first 'sed' inserts a
8836  # line-number line before each line; the second 'sed' does the real
8837  # work.  The second script uses 'N' to pair each line-number line
8838  # with the numbered line, and appends trailing '-' during
8839  # substitution so that $LINENO is not a special case at line end.
8840  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8841  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8842  sed '=' <$as_myself |
8843    sed '
8844      N
8845      s,$,-,
8846      : loop
8847      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8848      t loop
8849      s,-$,,
8850      s,^['$as_cr_digits']*\n,,
8851    ' >$as_me.lineno &&
8852  chmod +x $as_me.lineno ||
8853    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8854echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8855   { (exit 1); exit 1; }; }
8856
8857  # Don't try to exec as it changes $[0], causing all sort of problems
8858  # (the dirname of $[0] is not the place where we might find the
8859  # original and so on.  Autoconf is especially sensible to this).
8860  . ./$as_me.lineno
8861  # Exit status is that of the last command.
8862  exit
8863}
8864
8865
8866case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8867  *c*,-n*) ECHO_N= ECHO_C='
8868' ECHO_T='	' ;;
8869  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8870  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8871esac
8872
8873if expr a : '\(a\)' >/dev/null 2>&1; then
8874  as_expr=expr
8875else
8876  as_expr=false
8877fi
8878
8879rm -f conf$$ conf$$.exe conf$$.file
8880echo >conf$$.file
8881if ln -s conf$$.file conf$$ 2>/dev/null; then
8882  # We could just check for DJGPP; but this test a) works b) is more generic
8883  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8884  if test -f conf$$.exe; then
8885    # Don't use ln at all; we don't have any links
8886    as_ln_s='cp -p'
8887  else
8888    as_ln_s='ln -s'
8889  fi
8890elif ln conf$$.file conf$$ 2>/dev/null; then
8891  as_ln_s=ln
8892else
8893  as_ln_s='cp -p'
8894fi
8895rm -f conf$$ conf$$.exe conf$$.file
8896
8897if mkdir -p . 2>/dev/null; then
8898  as_mkdir_p=:
8899else
8900  test -d ./-p && rmdir ./-p
8901  as_mkdir_p=false
8902fi
8903
8904as_executable_p="test -f"
8905
8906# Sed expression to map a string onto a valid CPP name.
8907as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8908
8909# Sed expression to map a string onto a valid variable name.
8910as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8911
8912
8913# IFS
8914# We need space, tab and new line, in precisely that order.
8915as_nl='
8916'
8917IFS=" 	$as_nl"
8918
8919# CDPATH.
8920$as_unset CDPATH
8921
8922exec 6>&1
8923
8924# Open the log real soon, to keep \$[0] and so on meaningful, and to
8925# report actual input values of CONFIG_FILES etc. instead of their
8926# values after options handling.  Logging --version etc. is OK.
8927exec 5>>config.log
8928{
8929  echo
8930  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
8931@%:@@%:@ Running $as_me. @%:@@%:@
8932_ASBOX
8933} >&5
8934cat >&5 <<_CSEOF
8935
8936This file was extended by $as_me, which was
8937generated by GNU Autoconf 2.58.  Invocation command line was
8938
8939  CONFIG_FILES    = $CONFIG_FILES
8940  CONFIG_HEADERS  = $CONFIG_HEADERS
8941  CONFIG_LINKS    = $CONFIG_LINKS
8942  CONFIG_COMMANDS = $CONFIG_COMMANDS
8943  $ $0 $@
8944
8945_CSEOF
8946echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8947echo >&5
8948_ACEOF
8949
8950# Files that config.status was made for.
8951if test -n "$ac_config_files"; then
8952  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8953fi
8954
8955if test -n "$ac_config_headers"; then
8956  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8957fi
8958
8959if test -n "$ac_config_links"; then
8960  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8961fi
8962
8963if test -n "$ac_config_commands"; then
8964  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8965fi
8966
8967cat >>$CONFIG_STATUS <<\_ACEOF
8968
8969ac_cs_usage="\
8970\`$as_me' instantiates files from templates according to the
8971current configuration.
8972
8973Usage: $0 [OPTIONS] [FILE]...
8974
8975  -h, --help       print this help, then exit
8976  -V, --version    print version number, then exit
8977  -q, --quiet      do not print progress messages
8978  -d, --debug      don't remove temporary files
8979      --recheck    update $as_me by reconfiguring in the same conditions
8980  --file=FILE[:TEMPLATE]
8981		   instantiate the configuration file FILE
8982  --header=FILE[:TEMPLATE]
8983		   instantiate the configuration header FILE
8984
8985Configuration files:
8986$config_files
8987
8988Configuration headers:
8989$config_headers
8990
8991Configuration commands:
8992$config_commands
8993
8994Report bugs to <bug-autoconf@gnu.org>."
8995_ACEOF
8996
8997cat >>$CONFIG_STATUS <<_ACEOF
8998ac_cs_version="\\
8999config.status
9000configured by $0, generated by GNU Autoconf 2.58,
9001  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9002
9003Copyright (C) 2003 Free Software Foundation, Inc.
9004This config.status script is free software; the Free Software Foundation
9005gives unlimited permission to copy, distribute and modify it."
9006srcdir=$srcdir
9007INSTALL="$INSTALL"
9008_ACEOF
9009
9010cat >>$CONFIG_STATUS <<\_ACEOF
9011# If no file are specified by the user, then we need to provide default
9012# value.  By we need to know if files were specified by the user.
9013ac_need_defaults=:
9014while test $# != 0
9015do
9016  case $1 in
9017  --*=*)
9018    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9019    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9020    ac_shift=:
9021    ;;
9022  -*)
9023    ac_option=$1
9024    ac_optarg=$2
9025    ac_shift=shift
9026    ;;
9027  *) # This is not an option, so the user has probably given explicit
9028     # arguments.
9029     ac_option=$1
9030     ac_need_defaults=false;;
9031  esac
9032
9033  case $ac_option in
9034  # Handling of the options.
9035_ACEOF
9036cat >>$CONFIG_STATUS <<\_ACEOF
9037  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9038    ac_cs_recheck=: ;;
9039  --version | --vers* | -V )
9040    echo "$ac_cs_version"; exit 0 ;;
9041  --he | --h)
9042    # Conflict between --help and --header
9043    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9044Try \`$0 --help' for more information." >&5
9045echo "$as_me: error: ambiguous option: $1
9046Try \`$0 --help' for more information." >&2;}
9047   { (exit 1); exit 1; }; };;
9048  --help | --hel | -h )
9049    echo "$ac_cs_usage"; exit 0 ;;
9050  --debug | --d* | -d )
9051    debug=: ;;
9052  --file | --fil | --fi | --f )
9053    $ac_shift
9054    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9055    ac_need_defaults=false;;
9056  --header | --heade | --head | --hea )
9057    $ac_shift
9058    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9059    ac_need_defaults=false;;
9060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9061  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9062    ac_cs_silent=: ;;
9063
9064  # This is an error.
9065  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9066Try \`$0 --help' for more information." >&5
9067echo "$as_me: error: unrecognized option: $1
9068Try \`$0 --help' for more information." >&2;}
9069   { (exit 1); exit 1; }; } ;;
9070
9071  *) ac_config_targets="$ac_config_targets $1" ;;
9072
9073  esac
9074  shift
9075done
9076
9077ac_configure_extra_args=
9078
9079if $ac_cs_silent; then
9080  exec 6>/dev/null
9081  ac_configure_extra_args="$ac_configure_extra_args --silent"
9082fi
9083
9084_ACEOF
9085cat >>$CONFIG_STATUS <<_ACEOF
9086if \$ac_cs_recheck; then
9087  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9088  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9089fi
9090
9091_ACEOF
9092
9093cat >>$CONFIG_STATUS <<_ACEOF
9094#
9095# INIT-COMMANDS section.
9096#
9097
9098AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9099
9100_ACEOF
9101
9102
9103
9104cat >>$CONFIG_STATUS <<\_ACEOF
9105for ac_config_target in $ac_config_targets
9106do
9107  case "$ac_config_target" in
9108  # Handling of arguments.
9109  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9110  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9111  "src/libDazzle/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libDazzle/Makefile" ;;
9112  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9113  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9114  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9115echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9116   { (exit 1); exit 1; }; };;
9117  esac
9118done
9119
9120# If the user did not use the arguments to specify the items to instantiate,
9121# then the envvar interface is used.  Set only those that are not.
9122# We use the long form for the default assignment because of an extremely
9123# bizarre bug on SunOS 4.1.3.
9124if $ac_need_defaults; then
9125  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9126  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9127  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9128fi
9129
9130# Have a temporary directory for convenience.  Make it in the build tree
9131# simply because there is no reason to put it here, and in addition,
9132# creating and moving files from /tmp can sometimes cause problems.
9133# Create a temporary directory, and hook for its removal unless debugging.
9134$debug ||
9135{
9136  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9137  trap '{ (exit 1); exit 1; }' 1 2 13 15
9138}
9139
9140# Create a (secure) tmp directory for tmp files.
9141
9142{
9143  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9144  test -n "$tmp" && test -d "$tmp"
9145}  ||
9146{
9147  tmp=./confstat$$-$RANDOM
9148  (umask 077 && mkdir $tmp)
9149} ||
9150{
9151   echo "$me: cannot create a temporary directory in ." >&2
9152   { (exit 1); exit 1; }
9153}
9154
9155_ACEOF
9156
9157cat >>$CONFIG_STATUS <<_ACEOF
9158
9159#
9160# CONFIG_FILES section.
9161#
9162
9163# No need to generate the scripts if there are no CONFIG_FILES.
9164# This happens for instance when ./config.status config.h
9165if test -n "\$CONFIG_FILES"; then
9166  # Protect against being on the right side of a sed subst in config.status.
9167  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9168   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9169s,@SHELL@,$SHELL,;t t
9170s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9171s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9172s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9173s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9174s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9175s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9176s,@exec_prefix@,$exec_prefix,;t t
9177s,@prefix@,$prefix,;t t
9178s,@program_transform_name@,$program_transform_name,;t t
9179s,@bindir@,$bindir,;t t
9180s,@sbindir@,$sbindir,;t t
9181s,@libexecdir@,$libexecdir,;t t
9182s,@datadir@,$datadir,;t t
9183s,@sysconfdir@,$sysconfdir,;t t
9184s,@sharedstatedir@,$sharedstatedir,;t t
9185s,@localstatedir@,$localstatedir,;t t
9186s,@libdir@,$libdir,;t t
9187s,@includedir@,$includedir,;t t
9188s,@oldincludedir@,$oldincludedir,;t t
9189s,@infodir@,$infodir,;t t
9190s,@mandir@,$mandir,;t t
9191s,@build_alias@,$build_alias,;t t
9192s,@host_alias@,$host_alias,;t t
9193s,@target_alias@,$target_alias,;t t
9194s,@DEFS@,$DEFS,;t t
9195s,@ECHO_C@,$ECHO_C,;t t
9196s,@ECHO_N@,$ECHO_N,;t t
9197s,@ECHO_T@,$ECHO_T,;t t
9198s,@LIBS@,$LIBS,;t t
9199s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9200s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9201s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9202s,@PACKAGE@,$PACKAGE,;t t
9203s,@VERSION@,$VERSION,;t t
9204s,@ACLOCAL@,$ACLOCAL,;t t
9205s,@AUTOCONF@,$AUTOCONF,;t t
9206s,@AUTOMAKE@,$AUTOMAKE,;t t
9207s,@AUTOHEADER@,$AUTOHEADER,;t t
9208s,@MAKEINFO@,$MAKEINFO,;t t
9209s,@AMTAR@,$AMTAR,;t t
9210s,@install_sh@,$install_sh,;t t
9211s,@STRIP@,$STRIP,;t t
9212s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9213s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9214s,@AWK@,$AWK,;t t
9215s,@SET_MAKE@,$SET_MAKE,;t t
9216s,@CXX@,$CXX,;t t
9217s,@CXXFLAGS@,$CXXFLAGS,;t t
9218s,@LDFLAGS@,$LDFLAGS,;t t
9219s,@CPPFLAGS@,$CPPFLAGS,;t t
9220s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9221s,@EXEEXT@,$EXEEXT,;t t
9222s,@OBJEXT@,$OBJEXT,;t t
9223s,@DEPDIR@,$DEPDIR,;t t
9224s,@am__include@,$am__include,;t t
9225s,@am__quote@,$am__quote,;t t
9226s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9227s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9228s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9229s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9230s,@build@,$build,;t t
9231s,@build_cpu@,$build_cpu,;t t
9232s,@build_vendor@,$build_vendor,;t t
9233s,@build_os@,$build_os,;t t
9234s,@host@,$host,;t t
9235s,@host_cpu@,$host_cpu,;t t
9236s,@host_vendor@,$host_vendor,;t t
9237s,@host_os@,$host_os,;t t
9238s,@CC@,$CC,;t t
9239s,@CFLAGS@,$CFLAGS,;t t
9240s,@ac_ct_CC@,$ac_ct_CC,;t t
9241s,@CCDEPMODE@,$CCDEPMODE,;t t
9242s,@LN_S@,$LN_S,;t t
9243s,@ECHO@,$ECHO,;t t
9244s,@RANLIB@,$RANLIB,;t t
9245s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9246s,@CXXCPP@,$CXXCPP,;t t
9247s,@EGREP@,$EGREP,;t t
9248s,@LIBTOOL@,$LIBTOOL,;t t
9249s,@LIBSDL_LIBS@,$LIBSDL_LIBS,;t t
9250s,@LIBSDL_CFLAGS@,$LIBSDL_CFLAGS,;t t
9251s,@LIBSDL_RPATH@,$LIBSDL_RPATH,;t t
9252s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
9253s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9254CEOF
9255
9256_ACEOF
9257
9258  cat >>$CONFIG_STATUS <<\_ACEOF
9259  # Split the substitutions into bite-sized pieces for seds with
9260  # small command number limits, like on Digital OSF/1 and HP-UX.
9261  ac_max_sed_lines=48
9262  ac_sed_frag=1 # Number of current file.
9263  ac_beg=1 # First line for current file.
9264  ac_end=$ac_max_sed_lines # Line after last line for current file.
9265  ac_more_lines=:
9266  ac_sed_cmds=
9267  while $ac_more_lines; do
9268    if test $ac_beg -gt 1; then
9269      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9270    else
9271      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9272    fi
9273    if test ! -s $tmp/subs.frag; then
9274      ac_more_lines=false
9275    else
9276      # The purpose of the label and of the branching condition is to
9277      # speed up the sed processing (if there are no `@' at all, there
9278      # is no need to browse any of the substitutions).
9279      # These are the two extra sed commands mentioned above.
9280      (echo ':t
9281  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9282      if test -z "$ac_sed_cmds"; then
9283	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9284      else
9285	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9286      fi
9287      ac_sed_frag=`expr $ac_sed_frag + 1`
9288      ac_beg=$ac_end
9289      ac_end=`expr $ac_end + $ac_max_sed_lines`
9290    fi
9291  done
9292  if test -z "$ac_sed_cmds"; then
9293    ac_sed_cmds=cat
9294  fi
9295fi # test -n "$CONFIG_FILES"
9296
9297_ACEOF
9298cat >>$CONFIG_STATUS <<\_ACEOF
9299for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9300  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9301  case $ac_file in
9302  - | *:- | *:-:* ) # input from stdin
9303	cat >$tmp/stdin
9304	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9305	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9306  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9307	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9308  * )   ac_file_in=$ac_file.in ;;
9309  esac
9310
9311  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9312  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9314	 X"$ac_file" : 'X\(//\)[^/]' \| \
9315	 X"$ac_file" : 'X\(//\)$' \| \
9316	 X"$ac_file" : 'X\(/\)' \| \
9317	 .     : '\(.\)' 2>/dev/null ||
9318echo X"$ac_file" |
9319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9320  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9321  	  /^X\(\/\/\)$/{ s//\1/; q; }
9322  	  /^X\(\/\).*/{ s//\1/; q; }
9323  	  s/.*/./; q'`
9324  { if $as_mkdir_p; then
9325    mkdir -p "$ac_dir"
9326  else
9327    as_dir="$ac_dir"
9328    as_dirs=
9329    while test ! -d "$as_dir"; do
9330      as_dirs="$as_dir $as_dirs"
9331      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9333	 X"$as_dir" : 'X\(//\)[^/]' \| \
9334	 X"$as_dir" : 'X\(//\)$' \| \
9335	 X"$as_dir" : 'X\(/\)' \| \
9336	 .     : '\(.\)' 2>/dev/null ||
9337echo X"$as_dir" |
9338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9339  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9340  	  /^X\(\/\/\)$/{ s//\1/; q; }
9341  	  /^X\(\/\).*/{ s//\1/; q; }
9342  	  s/.*/./; q'`
9343    done
9344    test ! -n "$as_dirs" || mkdir $as_dirs
9345  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9346echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9347   { (exit 1); exit 1; }; }; }
9348
9349  ac_builddir=.
9350
9351if test "$ac_dir" != .; then
9352  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9353  # A "../" for each directory in $ac_dir_suffix.
9354  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9355else
9356  ac_dir_suffix= ac_top_builddir=
9357fi
9358
9359case $srcdir in
9360  .)  # No --srcdir option.  We are building in place.
9361    ac_srcdir=.
9362    if test -z "$ac_top_builddir"; then
9363       ac_top_srcdir=.
9364    else
9365       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9366    fi ;;
9367  [\\/]* | ?:[\\/]* )  # Absolute path.
9368    ac_srcdir=$srcdir$ac_dir_suffix;
9369    ac_top_srcdir=$srcdir ;;
9370  *) # Relative path.
9371    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9372    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9373esac
9374case "$ac_dir" in
9375.) ac_abs_builddir=$ac_builddir;;
9376*)
9377  case $ac_builddir in
9378  .) ac_abs_builddir="$ac_dir";;
9379  [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
9380  *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
9381  esac;;
9382esac
9383case "$ac_dir" in
9384.) ac_abs_top_builddir=${ac_top_builddir}.;;
9385*)
9386  case ${ac_top_builddir}. in
9387  .) ac_abs_top_builddir="$ac_dir";;
9388  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9389  *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
9390  esac;;
9391esac
9392case "$ac_dir" in
9393.) ac_abs_srcdir=$ac_srcdir;;
9394*)
9395  case $ac_srcdir in
9396  .) ac_abs_srcdir="$ac_dir";;
9397  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9398  *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
9399  esac;;
9400esac
9401case "$ac_dir" in
9402.) ac_abs_top_srcdir=$ac_top_srcdir;;
9403*)
9404  case $ac_top_srcdir in
9405  .) ac_abs_top_srcdir="$ac_dir";;
9406  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9407  *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
9408  esac;;
9409esac
9410
9411
9412  case $INSTALL in
9413  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9414  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9415  esac
9416
9417  if test x"$ac_file" != x-; then
9418    { echo "$as_me:$LINENO: creating $ac_file" >&5
9419echo "$as_me: creating $ac_file" >&6;}
9420    rm -f "$ac_file"
9421  fi
9422  # Let's still pretend it is `configure' which instantiates (i.e., don't
9423  # use $as_me), people would be surprised to read:
9424  #    /* config.h.  Generated by config.status.  */
9425  if test x"$ac_file" = x-; then
9426    configure_input=
9427  else
9428    configure_input="$ac_file.  "
9429  fi
9430  configure_input=$configure_input"Generated from `echo $ac_file_in |
9431				     sed 's,.*/,,'` by configure."
9432
9433  # First look for the input files in the build tree, otherwise in the
9434  # src tree.
9435  ac_file_inputs=`IFS=:
9436    for f in $ac_file_in; do
9437      case $f in
9438      -) echo $tmp/stdin ;;
9439      [\\/$]*)
9440	 # Absolute (can't be DOS-style, as IFS=:)
9441	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9442echo "$as_me: error: cannot find input file: $f" >&2;}
9443   { (exit 1); exit 1; }; }
9444	 echo "$f";;
9445      *) # Relative
9446	 if test -f "$f"; then
9447	   # Build tree
9448	   echo "$f"
9449	 elif test -f "$srcdir/$f"; then
9450	   # Source tree
9451	   echo "$srcdir/$f"
9452	 else
9453	   # /dev/null tree
9454	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9455echo "$as_me: error: cannot find input file: $f" >&2;}
9456   { (exit 1); exit 1; }; }
9457	 fi;;
9458      esac
9459    done` || { (exit 1); exit 1; }
9460_ACEOF
9461cat >>$CONFIG_STATUS <<_ACEOF
9462  sed "$ac_vpsub
9463$extrasub
9464_ACEOF
9465cat >>$CONFIG_STATUS <<\_ACEOF
9466:t
9467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9468s,@configure_input@,$configure_input,;t t
9469s,@srcdir@,$ac_srcdir,;t t
9470s,@abs_srcdir@,$ac_abs_srcdir,;t t
9471s,@top_srcdir@,$ac_top_srcdir,;t t
9472s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9473s,@builddir@,$ac_builddir,;t t
9474s,@abs_builddir@,$ac_abs_builddir,;t t
9475s,@top_builddir@,$ac_top_builddir,;t t
9476s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9477s,@INSTALL@,$ac_INSTALL,;t t
9478" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9479  rm -f $tmp/stdin
9480  if test x"$ac_file" != x-; then
9481    mv $tmp/out $ac_file
9482  else
9483    cat $tmp/out
9484    rm -f $tmp/out
9485  fi
9486
9487done
9488_ACEOF
9489cat >>$CONFIG_STATUS <<\_ACEOF
9490
9491#
9492# CONFIG_HEADER section.
9493#
9494
9495# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9496# NAME is the cpp macro being defined and VALUE is the value it is being given.
9497#
9498# ac_d sets the value in "#define NAME VALUE" lines.
9499ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9500ac_dB='[	 ].*$,\1#\2'
9501ac_dC=' '
9502ac_dD=',;t'
9503# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9504ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9505ac_uB='$,\1#\2define\3'
9506ac_uC=' '
9507ac_uD=',;t'
9508
9509for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9510  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9511  case $ac_file in
9512  - | *:- | *:-:* ) # input from stdin
9513	cat >$tmp/stdin
9514	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9515	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9516  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9517	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9518  * )   ac_file_in=$ac_file.in ;;
9519  esac
9520
9521  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9522echo "$as_me: creating $ac_file" >&6;}
9523
9524  # First look for the input files in the build tree, otherwise in the
9525  # src tree.
9526  ac_file_inputs=`IFS=:
9527    for f in $ac_file_in; do
9528      case $f in
9529      -) echo $tmp/stdin ;;
9530      [\\/$]*)
9531	 # Absolute (can't be DOS-style, as IFS=:)
9532	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9533echo "$as_me: error: cannot find input file: $f" >&2;}
9534   { (exit 1); exit 1; }; }
9535	 # Do quote $f, to prevent DOS paths from being IFS'd.
9536	 echo "$f";;
9537      *) # Relative
9538	 if test -f "$f"; then
9539	   # Build tree
9540	   echo "$f"
9541	 elif test -f "$srcdir/$f"; then
9542	   # Source tree
9543	   echo "$srcdir/$f"
9544	 else
9545	   # /dev/null tree
9546	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9547echo "$as_me: error: cannot find input file: $f" >&2;}
9548   { (exit 1); exit 1; }; }
9549	 fi;;
9550      esac
9551    done` || { (exit 1); exit 1; }
9552  # Remove the trailing spaces.
9553  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
9554
9555_ACEOF
9556
9557# Transform confdefs.h into two sed scripts, `conftest.defines' and
9558# `conftest.undefs', that substitutes the proper values into
9559# config.h.in to produce config.h.  The first handles `#define'
9560# templates, and the second `#undef' templates.
9561# And first: Protect against being on the right side of a sed subst in
9562# config.status.  Protect against being in an unquoted here document
9563# in config.status.
9564rm -f conftest.defines conftest.undefs
9565# Using a here document instead of a string reduces the quoting nightmare.
9566# Putting comments in sed scripts is not portable.
9567#
9568# `end' is used to avoid that the second main sed command (meant for
9569# 0-ary CPP macros) applies to n-ary macro definitions.
9570# See the Autoconf documentation for `clear'.
9571cat >confdef2sed.sed <<\_ACEOF
9572s/[\\&,]/\\&/g
9573s,[\\$`],\\&,g
9574t clear
9575: clear
9576s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9577t end
9578s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9579: end
9580_ACEOF
9581# If some macros were called several times there might be several times
9582# the same #defines, which is useless.  Nevertheless, we may not want to
9583# sort them, since we want the *last* AC-DEFINE to be honored.
9584uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9585sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9586rm -f confdef2sed.sed
9587
9588# This sed command replaces #undef with comments.  This is necessary, for
9589# example, in the case of _POSIX_SOURCE, which is predefined and required
9590# on some systems where configure will not decide to define it.
9591cat >>conftest.undefs <<\_ACEOF
9592s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9593_ACEOF
9594
9595# Break up conftest.defines because some shells have a limit on the size
9596# of here documents, and old seds have small limits too (100 cmds).
9597echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9598echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9599echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9600echo '  :' >>$CONFIG_STATUS
9601rm -f conftest.tail
9602while grep . conftest.defines >/dev/null
9603do
9604  # Write a limited-size here document to $tmp/defines.sed.
9605  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9606  # Speed up: don't consider the non `#define' lines.
9607  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
9608  # Work around the forget-to-reset-the-flag bug.
9609  echo 't clr' >>$CONFIG_STATUS
9610  echo ': clr' >>$CONFIG_STATUS
9611  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9612  echo 'CEOF
9613  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9614  rm -f $tmp/in
9615  mv $tmp/out $tmp/in
9616' >>$CONFIG_STATUS
9617  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9618  rm -f conftest.defines
9619  mv conftest.tail conftest.defines
9620done
9621rm -f conftest.defines
9622echo '  fi # grep' >>$CONFIG_STATUS
9623echo >>$CONFIG_STATUS
9624
9625# Break up conftest.undefs because some shells have a limit on the size
9626# of here documents, and old seds have small limits too (100 cmds).
9627echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9628rm -f conftest.tail
9629while grep . conftest.undefs >/dev/null
9630do
9631  # Write a limited-size here document to $tmp/undefs.sed.
9632  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9633  # Speed up: don't consider the non `#undef'
9634  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
9635  # Work around the forget-to-reset-the-flag bug.
9636  echo 't clr' >>$CONFIG_STATUS
9637  echo ': clr' >>$CONFIG_STATUS
9638  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9639  echo 'CEOF
9640  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9641  rm -f $tmp/in
9642  mv $tmp/out $tmp/in
9643' >>$CONFIG_STATUS
9644  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9645  rm -f conftest.undefs
9646  mv conftest.tail conftest.undefs
9647done
9648rm -f conftest.undefs
9649
9650cat >>$CONFIG_STATUS <<\_ACEOF
9651  # Let's still pretend it is `configure' which instantiates (i.e., don't
9652  # use $as_me), people would be surprised to read:
9653  #    /* config.h.  Generated by config.status.  */
9654  if test x"$ac_file" = x-; then
9655    echo "/* Generated by configure.  */" >$tmp/config.h
9656  else
9657    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9658  fi
9659  cat $tmp/in >>$tmp/config.h
9660  rm -f $tmp/in
9661  if test x"$ac_file" != x-; then
9662    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9663      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9664echo "$as_me: $ac_file is unchanged" >&6;}
9665    else
9666      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668	 X"$ac_file" : 'X\(//\)[^/]' \| \
9669	 X"$ac_file" : 'X\(//\)$' \| \
9670	 X"$ac_file" : 'X\(/\)' \| \
9671	 .     : '\(.\)' 2>/dev/null ||
9672echo X"$ac_file" |
9673    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9674  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9675  	  /^X\(\/\/\)$/{ s//\1/; q; }
9676  	  /^X\(\/\).*/{ s//\1/; q; }
9677  	  s/.*/./; q'`
9678      { if $as_mkdir_p; then
9679    mkdir -p "$ac_dir"
9680  else
9681    as_dir="$ac_dir"
9682    as_dirs=
9683    while test ! -d "$as_dir"; do
9684      as_dirs="$as_dir $as_dirs"
9685      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9687	 X"$as_dir" : 'X\(//\)[^/]' \| \
9688	 X"$as_dir" : 'X\(//\)$' \| \
9689	 X"$as_dir" : 'X\(/\)' \| \
9690	 .     : '\(.\)' 2>/dev/null ||
9691echo X"$as_dir" |
9692    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9693  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9694  	  /^X\(\/\/\)$/{ s//\1/; q; }
9695  	  /^X\(\/\).*/{ s//\1/; q; }
9696  	  s/.*/./; q'`
9697    done
9698    test ! -n "$as_dirs" || mkdir $as_dirs
9699  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9701   { (exit 1); exit 1; }; }; }
9702
9703      rm -f $ac_file
9704      mv $tmp/config.h $ac_file
9705    fi
9706  else
9707    cat $tmp/config.h
9708    rm -f $tmp/config.h
9709  fi
9710  # Run the commands associated with the file.
9711  case $ac_file in
9712    config.h ) # update the timestamp
9713echo 'timestamp for config.h' >"./stamp-h1"
9714 ;;
9715  esac
9716done
9717_ACEOF
9718cat >>$CONFIG_STATUS <<\_ACEOF
9719
9720#
9721# CONFIG_COMMANDS section.
9722#
9723for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9724  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9725  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9726  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9727$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9728	 X"$ac_dest" : 'X\(//\)[^/]' \| \
9729	 X"$ac_dest" : 'X\(//\)$' \| \
9730	 X"$ac_dest" : 'X\(/\)' \| \
9731	 .     : '\(.\)' 2>/dev/null ||
9732echo X"$ac_dest" |
9733    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9734  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9735  	  /^X\(\/\/\)$/{ s//\1/; q; }
9736  	  /^X\(\/\).*/{ s//\1/; q; }
9737  	  s/.*/./; q'`
9738  { if $as_mkdir_p; then
9739    mkdir -p "$ac_dir"
9740  else
9741    as_dir="$ac_dir"
9742    as_dirs=
9743    while test ! -d "$as_dir"; do
9744      as_dirs="$as_dir $as_dirs"
9745      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9746$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9747	 X"$as_dir" : 'X\(//\)[^/]' \| \
9748	 X"$as_dir" : 'X\(//\)$' \| \
9749	 X"$as_dir" : 'X\(/\)' \| \
9750	 .     : '\(.\)' 2>/dev/null ||
9751echo X"$as_dir" |
9752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9753  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9754  	  /^X\(\/\/\)$/{ s//\1/; q; }
9755  	  /^X\(\/\).*/{ s//\1/; q; }
9756  	  s/.*/./; q'`
9757    done
9758    test ! -n "$as_dirs" || mkdir $as_dirs
9759  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9760echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9761   { (exit 1); exit 1; }; }; }
9762
9763  ac_builddir=.
9764
9765if test "$ac_dir" != .; then
9766  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9767  # A "../" for each directory in $ac_dir_suffix.
9768  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9769else
9770  ac_dir_suffix= ac_top_builddir=
9771fi
9772
9773case $srcdir in
9774  .)  # No --srcdir option.  We are building in place.
9775    ac_srcdir=.
9776    if test -z "$ac_top_builddir"; then
9777       ac_top_srcdir=.
9778    else
9779       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9780    fi ;;
9781  [\\/]* | ?:[\\/]* )  # Absolute path.
9782    ac_srcdir=$srcdir$ac_dir_suffix;
9783    ac_top_srcdir=$srcdir ;;
9784  *) # Relative path.
9785    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9786    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9787esac
9788case "$ac_dir" in
9789.) ac_abs_builddir=$ac_builddir;;
9790*)
9791  case $ac_builddir in
9792  .) ac_abs_builddir="$ac_dir";;
9793  [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
9794  *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
9795  esac;;
9796esac
9797case "$ac_dir" in
9798.) ac_abs_top_builddir=${ac_top_builddir}.;;
9799*)
9800  case ${ac_top_builddir}. in
9801  .) ac_abs_top_builddir="$ac_dir";;
9802  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9803  *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
9804  esac;;
9805esac
9806case "$ac_dir" in
9807.) ac_abs_srcdir=$ac_srcdir;;
9808*)
9809  case $ac_srcdir in
9810  .) ac_abs_srcdir="$ac_dir";;
9811  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9812  *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
9813  esac;;
9814esac
9815case "$ac_dir" in
9816.) ac_abs_top_srcdir=$ac_top_srcdir;;
9817*)
9818  case $ac_top_srcdir in
9819  .) ac_abs_top_srcdir="$ac_dir";;
9820  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9821  *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
9822  esac;;
9823esac
9824
9825
9826  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9827echo "$as_me: executing $ac_dest commands" >&6;}
9828  case $ac_dest in
9829    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9830  # Strip MF so we end up with the name of the file.
9831  mf=`echo "$mf" | sed -e 's/:.*$//'`
9832  # Check whether this is an Automake generated Makefile or not.
9833  # We used to match only the files named `Makefile.in', but
9834  # some people rename them; so instead we look at the file content.
9835  # Grep'ing the first line is not enough: some people post-process
9836  # each Makefile.in and add a new line on top of each file to say so.
9837  # So let's grep whole file.
9838  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9839    dirpart=`(dirname "$mf") 2>/dev/null ||
9840$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9841	 X"$mf" : 'X\(//\)[^/]' \| \
9842	 X"$mf" : 'X\(//\)$' \| \
9843	 X"$mf" : 'X\(/\)' \| \
9844	 .     : '\(.\)' 2>/dev/null ||
9845echo X"$mf" |
9846    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9847  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9848  	  /^X\(\/\/\)$/{ s//\1/; q; }
9849  	  /^X\(\/\).*/{ s//\1/; q; }
9850  	  s/.*/./; q'`
9851  else
9852    continue
9853  fi
9854  grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
9855  # Extract the definition of DEP_FILES from the Makefile without
9856  # running `make'.
9857  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9858  test -z "$DEPDIR" && continue
9859  # When using ansi2knr, U may be empty or an underscore; expand it
9860  U=`sed -n -e '/^U = / s///p' < "$mf"`
9861  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9862  # We invoke sed twice because it is the simplest approach to
9863  # changing $(DEPDIR) to its actual value in the expansion.
9864  for file in `sed -n -e '
9865    /^DEP_FILES = .*\\\\$/ {
9866      s/^DEP_FILES = //
9867      :loop
9868	s/\\\\$//
9869	p
9870	n
9871	/\\\\$/ b loop
9872      p
9873    }
9874    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9875       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9876    # Make sure the directory exists.
9877    test -f "$dirpart/$file" && continue
9878    fdir=`(dirname "$file") 2>/dev/null ||
9879$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9880	 X"$file" : 'X\(//\)[^/]' \| \
9881	 X"$file" : 'X\(//\)$' \| \
9882	 X"$file" : 'X\(/\)' \| \
9883	 .     : '\(.\)' 2>/dev/null ||
9884echo X"$file" |
9885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9886  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9887  	  /^X\(\/\/\)$/{ s//\1/; q; }
9888  	  /^X\(\/\).*/{ s//\1/; q; }
9889  	  s/.*/./; q'`
9890    { if $as_mkdir_p; then
9891    mkdir -p $dirpart/$fdir
9892  else
9893    as_dir=$dirpart/$fdir
9894    as_dirs=
9895    while test ! -d "$as_dir"; do
9896      as_dirs="$as_dir $as_dirs"
9897      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9898$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9899	 X"$as_dir" : 'X\(//\)[^/]' \| \
9900	 X"$as_dir" : 'X\(//\)$' \| \
9901	 X"$as_dir" : 'X\(/\)' \| \
9902	 .     : '\(.\)' 2>/dev/null ||
9903echo X"$as_dir" |
9904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9905  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9906  	  /^X\(\/\/\)$/{ s//\1/; q; }
9907  	  /^X\(\/\).*/{ s//\1/; q; }
9908  	  s/.*/./; q'`
9909    done
9910    test ! -n "$as_dirs" || mkdir $as_dirs
9911  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9912echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9913   { (exit 1); exit 1; }; }; }
9914
9915    # echo "creating $dirpart/$file"
9916    echo '# dummy' > "$dirpart/$file"
9917  done
9918done
9919 ;;
9920  esac
9921done
9922_ACEOF
9923
9924cat >>$CONFIG_STATUS <<\_ACEOF
9925
9926{ (exit 0); exit 0; }
9927_ACEOF
9928chmod +x $CONFIG_STATUS
9929ac_clean_files=$ac_clean_files_save
9930
9931
9932# configure is writing to config.log, and then calls config.status.
9933# config.status does its own redirection, appending to config.log.
9934# Unfortunately, on DOS this fails, as config.log is still kept open
9935# by configure, so config.status won't be able to write to it; its
9936# output is simply discarded.  So we exec the FD to /dev/null,
9937# effectively closing config.log, so it can be properly (re)opened and
9938# appended to by config.status.  When coming back to configure, we
9939# need to make the FD available again.
9940if test "$no_create" != yes; then
9941  ac_cs_success=:
9942  ac_config_status_args=
9943  test "$silent" = yes &&
9944    ac_config_status_args="$ac_config_status_args --quiet"
9945  exec 5>/dev/null
9946  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9947  exec 5>>config.log
9948  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9949  # would make configure fail if this is the last instruction.
9950  $ac_cs_success || { (exit 1); exit 1; }
9951fi
9952
9953