1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Find the correct PATH separator.  Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246  UNAME=${UNAME-`uname 2>/dev/null`}
247  case X$UNAME in
248    *-DOS) lt_cv_sys_path_separator=';' ;;
249    *)     lt_cv_sys_path_separator=':' ;;
250  esac
251  PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260  # Remove one level of quotation (which was required for Make).
261  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262  ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267  # Discard the --no-reexec flag, and continue.
268  shift
269elif test "X$1" = X--fallback-echo; then
270  # Avoid inline document here, it may be left over
271  :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273  # Yippee, $echo works!
274  :
275else
276  # Restart under the correct shell.
277  exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281  # used as fallback echo
282  shift
283  cat <<EOF
284
285EOF
286  exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299       echo_test_string="`eval $cmd`" &&
300       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301    then
302      break
303    fi
304  done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309   test "X$echo_testing_string" = "X$echo_test_string"; then
310  :
311else
312  # The Solaris, AIX, and Digital Unix default echo programs unquote
313  # backslashes.  This makes it impossible to quote backslashes using
314  #   echo "$something" | sed 's/\\/\\\\/g'
315  #
316  # So, first we look for a working echo in the user's PATH.
317
318  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319  for dir in $PATH /usr/ucb; do
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338	 test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350	 test "X$echo_testing_string" = "X$echo_test_string"; then
351	# Cool, printf works
352	:
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358	export CONFIG_SHELL
359	SHELL="$CONFIG_SHELL"
360	export SHELL
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363	   test "X$echo_testing_string" = 'X\t' &&
364	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365	   test "X$echo_testing_string" = "X$echo_test_string"; then
366	echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368	# maybe with a smaller string...
369	prev=:
370
371	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373	  then
374	    break
375	  fi
376	  prev="$cmd"
377	done
378
379	if test "$prev" != 'sed 50q "$0"'; then
380	  echo_test_string=`eval $prev`
381	  export echo_test_string
382	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383	else
384	  # Oops.  We lost completely, so just stick with echo.
385	  echo=echo
386	fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
432ac_unique_file="src/assetml.c"
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447#  include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452#  include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463#  include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB LIBTOOL PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS XML_CFLAGS XML_LIBS LIBICONV LTLIBICONV POPT_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS GOBJECT_CFLAGS GOBJECT_LIBS ASSETML_DIR TEXINFO TETEX LIBOBJS LTLIBOBJS'
471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514  # If the previous option needs an argument, assign it.
515  if test -n "$ac_prev"; then
516    eval "$ac_prev=\$ac_option"
517    ac_prev=
518    continue
519  fi
520
521  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523  # Accept the important Cygnus configure options, so we can diagnose typos.
524
525  case $ac_option in
526
527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528    ac_prev=bindir ;;
529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530    bindir=$ac_optarg ;;
531
532  -build | --build | --buil | --bui | --bu)
533    ac_prev=build_alias ;;
534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535    build_alias=$ac_optarg ;;
536
537  -cache-file | --cache-file | --cache-fil | --cache-fi \
538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539    ac_prev=cache_file ;;
540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542    cache_file=$ac_optarg ;;
543
544  --config-cache | -C)
545    cache_file=config.cache ;;
546
547  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548    ac_prev=datadir ;;
549  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550  | --da=*)
551    datadir=$ac_optarg ;;
552
553  -disable-* | --disable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    eval "enable_$ac_feature=no" ;;
561
562  -enable-* | --enable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    case $ac_option in
570      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571      *) ac_optarg=yes ;;
572    esac
573    eval "enable_$ac_feature='$ac_optarg'" ;;
574
575  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577  | --exec | --exe | --ex)
578    ac_prev=exec_prefix ;;
579  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581  | --exec=* | --exe=* | --ex=*)
582    exec_prefix=$ac_optarg ;;
583
584  -gas | --gas | --ga | --g)
585    # Obsolete; use --with-gas.
586    with_gas=yes ;;
587
588  -help | --help | --hel | --he | -h)
589    ac_init_help=long ;;
590  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591    ac_init_help=recursive ;;
592  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593    ac_init_help=short ;;
594
595  -host | --host | --hos | --ho)
596    ac_prev=host_alias ;;
597  -host=* | --host=* | --hos=* | --ho=*)
598    host_alias=$ac_optarg ;;
599
600  -includedir | --includedir | --includedi | --included | --include \
601  | --includ | --inclu | --incl | --inc)
602    ac_prev=includedir ;;
603  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604  | --includ=* | --inclu=* | --incl=* | --inc=*)
605    includedir=$ac_optarg ;;
606
607  -infodir | --infodir | --infodi | --infod | --info | --inf)
608    ac_prev=infodir ;;
609  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610    infodir=$ac_optarg ;;
611
612  -libdir | --libdir | --libdi | --libd)
613    ac_prev=libdir ;;
614  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615    libdir=$ac_optarg ;;
616
617  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618  | --libexe | --libex | --libe)
619    ac_prev=libexecdir ;;
620  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621  | --libexe=* | --libex=* | --libe=*)
622    libexecdir=$ac_optarg ;;
623
624  -localstatedir | --localstatedir | --localstatedi | --localstated \
625  | --localstate | --localstat | --localsta | --localst \
626  | --locals | --local | --loca | --loc | --lo)
627    ac_prev=localstatedir ;;
628  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631    localstatedir=$ac_optarg ;;
632
633  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634    ac_prev=mandir ;;
635  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636    mandir=$ac_optarg ;;
637
638  -nfp | --nfp | --nf)
639    # Obsolete; use --without-fp.
640    with_fp=no ;;
641
642  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643  | --no-cr | --no-c | -n)
644    no_create=yes ;;
645
646  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648    no_recursion=yes ;;
649
650  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652  | --oldin | --oldi | --old | --ol | --o)
653    ac_prev=oldincludedir ;;
654  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657    oldincludedir=$ac_optarg ;;
658
659  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660    ac_prev=prefix ;;
661  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662    prefix=$ac_optarg ;;
663
664  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665  | --program-pre | --program-pr | --program-p)
666    ac_prev=program_prefix ;;
667  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669    program_prefix=$ac_optarg ;;
670
671  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672  | --program-suf | --program-su | --program-s)
673    ac_prev=program_suffix ;;
674  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676    program_suffix=$ac_optarg ;;
677
678  -program-transform-name | --program-transform-name \
679  | --program-transform-nam | --program-transform-na \
680  | --program-transform-n | --program-transform- \
681  | --program-transform | --program-transfor \
682  | --program-transfo | --program-transf \
683  | --program-trans | --program-tran \
684  | --progr-tra | --program-tr | --program-t)
685    ac_prev=program_transform_name ;;
686  -program-transform-name=* | --program-transform-name=* \
687  | --program-transform-nam=* | --program-transform-na=* \
688  | --program-transform-n=* | --program-transform-=* \
689  | --program-transform=* | --program-transfor=* \
690  | --program-transfo=* | --program-transf=* \
691  | --program-trans=* | --program-tran=* \
692  | --progr-tra=* | --program-tr=* | --program-t=*)
693    program_transform_name=$ac_optarg ;;
694
695  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696  | -silent | --silent | --silen | --sile | --sil)
697    silent=yes ;;
698
699  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700    ac_prev=sbindir ;;
701  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702  | --sbi=* | --sb=*)
703    sbindir=$ac_optarg ;;
704
705  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707  | --sharedst | --shareds | --shared | --share | --shar \
708  | --sha | --sh)
709    ac_prev=sharedstatedir ;;
710  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713  | --sha=* | --sh=*)
714    sharedstatedir=$ac_optarg ;;
715
716  -site | --site | --sit)
717    ac_prev=site ;;
718  -site=* | --site=* | --sit=*)
719    site=$ac_optarg ;;
720
721  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722    ac_prev=srcdir ;;
723  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724    srcdir=$ac_optarg ;;
725
726  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727  | --syscon | --sysco | --sysc | --sys | --sy)
728    ac_prev=sysconfdir ;;
729  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731    sysconfdir=$ac_optarg ;;
732
733  -target | --target | --targe | --targ | --tar | --ta | --t)
734    ac_prev=target_alias ;;
735  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736    target_alias=$ac_optarg ;;
737
738  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739    verbose=yes ;;
740
741  -version | --version | --versio | --versi | --vers | -V)
742    ac_init_version=: ;;
743
744  -with-* | --with-*)
745    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package| sed 's/-/_/g'`
751    case $ac_option in
752      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753      *) ac_optarg=yes ;;
754    esac
755    eval "with_$ac_package='$ac_optarg'" ;;
756
757  -without-* | --without-*)
758    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package | sed 's/-/_/g'`
764    eval "with_$ac_package=no" ;;
765
766  --x)
767    # Obsolete; use --with-x.
768    with_x=yes ;;
769
770  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771  | --x-incl | --x-inc | --x-in | --x-i)
772    ac_prev=x_includes ;;
773  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775    x_includes=$ac_optarg ;;
776
777  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779    ac_prev=x_libraries ;;
780  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782    x_libraries=$ac_optarg ;;
783
784  -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786   { (exit 1); exit 1; }; }
787    ;;
788
789  *=*)
790    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794   { (exit 1); exit 1; }; }
795    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796    eval "$ac_envvar='$ac_optarg'"
797    export $ac_envvar ;;
798
799  *)
800    # FIXME: should be removed in autoconf 3.0.
801    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805    ;;
806
807  esac
808done
809
810if test -n "$ac_prev"; then
811  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812  { echo "$as_me: error: missing argument to $ac_option" >&2
813   { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819  eval ac_val=$`echo $ac_var`
820  case $ac_val in
821    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823   { (exit 1); exit 1; }; };;
824  esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829              localstatedir libdir includedir oldincludedir infodir mandir
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848  if test "x$build_alias" = x; then
849    cross_compiling=maybe
850    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851    If a cross compiler is detected then cross compile mode will be used." >&2
852  elif test "x$build_alias" != "x$host_alias"; then
853    cross_compiling=yes
854  fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865  ac_srcdir_defaulted=yes
866  # Try the directory containing this script, then its parent.
867  ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869         X"$0" : 'X\(//\)[^/]' \| \
870         X"$0" : 'X\(//\)$' \| \
871         X"$0" : 'X\(/\)' \| \
872         .     : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876  	  /^X\(\/\/\)$/{ s//\1/; q; }
877  	  /^X\(\/\).*/{ s//\1/; q; }
878  	  s/.*/./; q'`
879  srcdir=$ac_confdir
880  if test ! -r $srcdir/$ac_unique_file; then
881    srcdir=..
882  fi
883else
884  ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887  if test "$ac_srcdir_defaulted" = yes; then
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889   { (exit 1); exit 1; }; }
890  else
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892   { (exit 1); exit 1; }; }
893  fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897   { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
931
932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936  # Omit some internal or obsolete options to make the list less imposing.
937  # This message is too long to be a string in the A/UX 3.1 sh.
938  cat <<_ACEOF
939\`configure' configures this package to adapt to many kinds of systems.
940
941Usage: $0 [OPTION]... [VAR=VALUE]...
942
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946Defaults for the options are specified in brackets.
947
948Configuration:
949  -h, --help              display this help and exit
950      --help=short        display options specific to this package
951      --help=recursive    display the short help of all the included packages
952  -V, --version           display version information and exit
953  -q, --quiet, --silent   do not print \`checking...' messages
954      --cache-file=FILE   cache test results in FILE [disabled]
955  -C, --config-cache      alias for \`--cache-file=config.cache'
956  -n, --no-create         do not create output files
957      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959_ACEOF
960
961  cat <<_ACEOF
962Installation directories:
963  --prefix=PREFIX         install architecture-independent files in PREFIX
964                          [$ac_default_prefix]
965  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                          [PREFIX]
967
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
972
973For better control, use the options below.
974
975Fine tuning of the installation directories:
976  --bindir=DIR           user executables [EPREFIX/bin]
977  --sbindir=DIR          system admin executables [EPREFIX/sbin]
978  --libexecdir=DIR       program executables [EPREFIX/libexec]
979  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983  --libdir=DIR           object code libraries [EPREFIX/lib]
984  --includedir=DIR       C header files [PREFIX/include]
985  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986  --infodir=DIR          info documentation [PREFIX/info]
987  --mandir=DIR           man documentation [PREFIX/man]
988_ACEOF
989
990  cat <<\_ACEOF
991
992Program names:
993  --program-prefix=PREFIX            prepend PREFIX to installed program names
994  --program-suffix=SUFFIX            append SUFFIX to installed program names
995  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997System types:
998  --build=BUILD     configure for building on BUILD [guessed]
999  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000_ACEOF
1001fi
1002
1003if test -n "$ac_init_help"; then
1004
1005  cat <<\_ACEOF
1006
1007Optional Features:
1008  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1009  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1010  --enable-maintainer-mode enable make rules and dependencies not useful
1011                          (and sometimes confusing) to the casual installer
1012  --disable-dependency-tracking Speeds up one-time builds
1013  --enable-dependency-tracking  Do not reject slow dependency extractors
1014  --enable-static=PKGS  build static libraries default=no
1015  --enable-shared=PKGS  build shared libraries default=yes
1016  --enable-fast-install=PKGS  optimize for fast installation default=yes
1017  --disable-libtool-lock  avoid locking (might break parallel builds)
1018  --disable-glibtest      do not try to compile and run a test GLIB program
1019  --disable-rpath         do not hardcode runtime library paths
1020
1021Optional Packages:
1022  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1025  --with-pic              try to use only PIC/non-PIC objects default=use both
1026  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1027  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1028
1029Some influential environment variables:
1030  CC          C compiler command
1031  CFLAGS      C compiler flags
1032  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1033              nonstandard directory <lib dir>
1034  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1035              headers in a nonstandard directory <include dir>
1036  CPP         C preprocessor
1037
1038Use these variables to override the choices made by `configure' or to help
1039it to find libraries and programs with nonstandard names/locations.
1040
1041_ACEOF
1042fi
1043
1044if test "$ac_init_help" = "recursive"; then
1045  # If there are subdirs, report their specific --help.
1046  ac_popdir=`pwd`
1047  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048    test -d $ac_dir || continue
1049    ac_builddir=.
1050
1051if test "$ac_dir" != .; then
1052  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053  # A "../" for each directory in $ac_dir_suffix.
1054  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055else
1056  ac_dir_suffix= ac_top_builddir=
1057fi
1058
1059case $srcdir in
1060  .)  # No --srcdir option.  We are building in place.
1061    ac_srcdir=.
1062    if test -z "$ac_top_builddir"; then
1063       ac_top_srcdir=.
1064    else
1065       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066    fi ;;
1067  [\\/]* | ?:[\\/]* )  # Absolute path.
1068    ac_srcdir=$srcdir$ac_dir_suffix;
1069    ac_top_srcdir=$srcdir ;;
1070  *) # Relative path.
1071    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073esac
1074# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1075# absolute.
1076ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1077ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1078ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1079ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1080
1081    cd $ac_dir
1082    # Check for guested configure; otherwise get Cygnus style configure.
1083    if test -f $ac_srcdir/configure.gnu; then
1084      echo
1085      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1086    elif test -f $ac_srcdir/configure; then
1087      echo
1088      $SHELL $ac_srcdir/configure  --help=recursive
1089    elif test -f $ac_srcdir/configure.ac ||
1090           test -f $ac_srcdir/configure.in; then
1091      echo
1092      $ac_configure --help
1093    else
1094      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1095    fi
1096    cd $ac_popdir
1097  done
1098fi
1099
1100test -n "$ac_init_help" && exit 0
1101if $ac_init_version; then
1102  cat <<\_ACEOF
1103
1104Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1105Free Software Foundation, Inc.
1106This configure script is free software; the Free Software Foundation
1107gives unlimited permission to copy, distribute and modify it.
1108_ACEOF
1109  exit 0
1110fi
1111exec 5>config.log
1112cat >&5 <<_ACEOF
1113This file contains any messages produced by compilers while
1114running configure, to aid debugging if configure makes a mistake.
1115
1116It was created by $as_me, which was
1117generated by GNU Autoconf 2.57.  Invocation command line was
1118
1119  $ $0 $@
1120
1121_ACEOF
1122{
1123cat <<_ASUNAME
1124## --------- ##
1125## Platform. ##
1126## --------- ##
1127
1128hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1129uname -m = `(uname -m) 2>/dev/null || echo unknown`
1130uname -r = `(uname -r) 2>/dev/null || echo unknown`
1131uname -s = `(uname -s) 2>/dev/null || echo unknown`
1132uname -v = `(uname -v) 2>/dev/null || echo unknown`
1133
1134/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1135/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1136
1137/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1138/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1139/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1140hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1141/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1142/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1143/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1144
1145_ASUNAME
1146
1147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1148for as_dir in $PATH
1149do
1150  IFS=$as_save_IFS
1151  test -z "$as_dir" && as_dir=.
1152  echo "PATH: $as_dir"
1153done
1154
1155} >&5
1156
1157cat >&5 <<_ACEOF
1158
1159
1160## ----------- ##
1161## Core tests. ##
1162## ----------- ##
1163
1164_ACEOF
1165
1166
1167# Keep a trace of the command line.
1168# Strip out --no-create and --no-recursion so they do not pile up.
1169# Strip out --silent because we don't want to record it for future runs.
1170# Also quote any args containing shell meta-characters.
1171# Make two passes to allow for proper duplicate-argument suppression.
1172ac_configure_args=
1173ac_configure_args0=
1174ac_configure_args1=
1175ac_sep=
1176ac_must_keep_next=false
1177for ac_pass in 1 2
1178do
1179  for ac_arg
1180  do
1181    case $ac_arg in
1182    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1183    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184    | -silent | --silent | --silen | --sile | --sil)
1185      continue ;;
1186    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1187      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1188    esac
1189    case $ac_pass in
1190    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1191    2)
1192      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1193      if test $ac_must_keep_next = true; then
1194        ac_must_keep_next=false # Got value, back to normal.
1195      else
1196        case $ac_arg in
1197          *=* | --config-cache | -C | -disable-* | --disable-* \
1198          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1199          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1200          | -with-* | --with-* | -without-* | --without-* | --x)
1201            case "$ac_configure_args0 " in
1202              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1203            esac
1204            ;;
1205          -* ) ac_must_keep_next=true ;;
1206        esac
1207      fi
1208      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1209      # Get rid of the leading space.
1210      ac_sep=" "
1211      ;;
1212    esac
1213  done
1214done
1215$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1216$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1217
1218# When interrupted or exit'd, cleanup temporary files, and complete
1219# config.log.  We remove comments because anyway the quotes in there
1220# would cause problems or look ugly.
1221# WARNING: Be sure not to use single quotes in there, as some shells,
1222# such as our DU 5.0 friend, will then `close' the trap.
1223trap 'exit_status=$?
1224  # Save into config.log some information that might help in debugging.
1225  {
1226    echo
1227
1228    cat <<\_ASBOX
1229## ---------------- ##
1230## Cache variables. ##
1231## ---------------- ##
1232_ASBOX
1233    echo
1234    # The following way of writing the cache mishandles newlines in values,
1235{
1236  (set) 2>&1 |
1237    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1238    *ac_space=\ *)
1239      sed -n \
1240        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1241    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1242      ;;
1243    *)
1244      sed -n \
1245        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1246      ;;
1247    esac;
1248}
1249    echo
1250
1251    cat <<\_ASBOX
1252## ----------------- ##
1253## Output variables. ##
1254## ----------------- ##
1255_ASBOX
1256    echo
1257    for ac_var in $ac_subst_vars
1258    do
1259      eval ac_val=$`echo $ac_var`
1260      echo "$ac_var='"'"'$ac_val'"'"'"
1261    done | sort
1262    echo
1263
1264    if test -n "$ac_subst_files"; then
1265      cat <<\_ASBOX
1266## ------------- ##
1267## Output files. ##
1268## ------------- ##
1269_ASBOX
1270      echo
1271      for ac_var in $ac_subst_files
1272      do
1273	eval ac_val=$`echo $ac_var`
1274        echo "$ac_var='"'"'$ac_val'"'"'"
1275      done | sort
1276      echo
1277    fi
1278
1279    if test -s confdefs.h; then
1280      cat <<\_ASBOX
1281## ----------- ##
1282## confdefs.h. ##
1283## ----------- ##
1284_ASBOX
1285      echo
1286      sed "/^$/d" confdefs.h | sort
1287      echo
1288    fi
1289    test "$ac_signal" != 0 &&
1290      echo "$as_me: caught signal $ac_signal"
1291    echo "$as_me: exit $exit_status"
1292  } >&5
1293  rm -f core core.* *.core &&
1294  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1295    exit $exit_status
1296     ' 0
1297for ac_signal in 1 2 13 15; do
1298  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1299done
1300ac_signal=0
1301
1302# confdefs.h avoids OS command line length limits that DEFS can exceed.
1303rm -rf conftest* confdefs.h
1304# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1305echo >confdefs.h
1306
1307# Predefined preprocessor variables.
1308
1309cat >>confdefs.h <<_ACEOF
1310#define PACKAGE_NAME "$PACKAGE_NAME"
1311_ACEOF
1312
1313
1314cat >>confdefs.h <<_ACEOF
1315#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1316_ACEOF
1317
1318
1319cat >>confdefs.h <<_ACEOF
1320#define PACKAGE_VERSION "$PACKAGE_VERSION"
1321_ACEOF
1322
1323
1324cat >>confdefs.h <<_ACEOF
1325#define PACKAGE_STRING "$PACKAGE_STRING"
1326_ACEOF
1327
1328
1329cat >>confdefs.h <<_ACEOF
1330#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1331_ACEOF
1332
1333
1334# Let the site file select an alternate cache file if it wants to.
1335# Prefer explicitly selected file to automatically selected ones.
1336if test -z "$CONFIG_SITE"; then
1337  if test "x$prefix" != xNONE; then
1338    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1339  else
1340    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1341  fi
1342fi
1343for ac_site_file in $CONFIG_SITE; do
1344  if test -r "$ac_site_file"; then
1345    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1346echo "$as_me: loading site script $ac_site_file" >&6;}
1347    sed 's/^/| /' "$ac_site_file" >&5
1348    . "$ac_site_file"
1349  fi
1350done
1351
1352if test -r "$cache_file"; then
1353  # Some versions of bash will fail to source /dev/null (special
1354  # files actually), so we avoid doing that.
1355  if test -f "$cache_file"; then
1356    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1357echo "$as_me: loading cache $cache_file" >&6;}
1358    case $cache_file in
1359      [\\/]* | ?:[\\/]* ) . $cache_file;;
1360      *)                      . ./$cache_file;;
1361    esac
1362  fi
1363else
1364  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1365echo "$as_me: creating cache $cache_file" >&6;}
1366  >$cache_file
1367fi
1368
1369# Check that the precious variables saved in the cache have kept the same
1370# value.
1371ac_cache_corrupted=false
1372for ac_var in `(set) 2>&1 |
1373               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1374  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1375  eval ac_new_set=\$ac_env_${ac_var}_set
1376  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1377  eval ac_new_val="\$ac_env_${ac_var}_value"
1378  case $ac_old_set,$ac_new_set in
1379    set,)
1380      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1381echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1382      ac_cache_corrupted=: ;;
1383    ,set)
1384      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1385echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1386      ac_cache_corrupted=: ;;
1387    ,);;
1388    *)
1389      if test "x$ac_old_val" != "x$ac_new_val"; then
1390        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1391echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1392        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1393echo "$as_me:   former value:  $ac_old_val" >&2;}
1394        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1395echo "$as_me:   current value: $ac_new_val" >&2;}
1396        ac_cache_corrupted=:
1397      fi;;
1398  esac
1399  # Pass precious variables to config.status.
1400  if test "$ac_new_set" = set; then
1401    case $ac_new_val in
1402    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1403      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1404    *) ac_arg=$ac_var=$ac_new_val ;;
1405    esac
1406    case " $ac_configure_args " in
1407      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1408      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1409    esac
1410  fi
1411done
1412if $ac_cache_corrupted; then
1413  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1414echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1415  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1416echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1417   { (exit 1); exit 1; }; }
1418fi
1419
1420ac_ext=c
1421ac_cpp='$CPP $CPPFLAGS'
1422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1424ac_compiler_gnu=$ac_cv_c_compiler_gnu
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444am__api_version="1.7"
1445ac_aux_dir=
1446for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1447  if test -f $ac_dir/install-sh; then
1448    ac_aux_dir=$ac_dir
1449    ac_install_sh="$ac_aux_dir/install-sh -c"
1450    break
1451  elif test -f $ac_dir/install.sh; then
1452    ac_aux_dir=$ac_dir
1453    ac_install_sh="$ac_aux_dir/install.sh -c"
1454    break
1455  elif test -f $ac_dir/shtool; then
1456    ac_aux_dir=$ac_dir
1457    ac_install_sh="$ac_aux_dir/shtool install -c"
1458    break
1459  fi
1460done
1461if test -z "$ac_aux_dir"; then
1462  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1463echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1464   { (exit 1); exit 1; }; }
1465fi
1466ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1467ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1468ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1469
1470# Find a good install program.  We prefer a C program (faster),
1471# so one script is as good as another.  But avoid the broken or
1472# incompatible versions:
1473# SysV /etc/install, /usr/sbin/install
1474# SunOS /usr/etc/install
1475# IRIX /sbin/install
1476# AIX /bin/install
1477# AmigaOS /C/install, which installs bootblocks on floppy discs
1478# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1479# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1480# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1481# ./install, which can be erroneously created by make from ./install.sh.
1482echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1483echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1484if test -z "$INSTALL"; then
1485if test "${ac_cv_path_install+set}" = set; then
1486  echo $ECHO_N "(cached) $ECHO_C" >&6
1487else
1488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491  IFS=$as_save_IFS
1492  test -z "$as_dir" && as_dir=.
1493  # Account for people who put trailing slashes in PATH elements.
1494case $as_dir/ in
1495  ./ | .// | /cC/* | \
1496  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1497  /usr/ucb/* ) ;;
1498  *)
1499    # OSF1 and SCO ODT 3.0 have their own names for install.
1500    # Don't use installbsd from OSF since it installs stuff as root
1501    # by default.
1502    for ac_prog in ginstall scoinst install; do
1503      for ac_exec_ext in '' $ac_executable_extensions; do
1504        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1505          if test $ac_prog = install &&
1506            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1507            # AIX install.  It has an incompatible calling convention.
1508            :
1509          elif test $ac_prog = install &&
1510            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1511            # program-specific install script used by HP pwplus--don't use.
1512            :
1513          else
1514            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1515            break 3
1516          fi
1517        fi
1518      done
1519    done
1520    ;;
1521esac
1522done
1523
1524
1525fi
1526  if test "${ac_cv_path_install+set}" = set; then
1527    INSTALL=$ac_cv_path_install
1528  else
1529    # As a last resort, use the slow shell script.  We don't cache a
1530    # path for INSTALL within a source directory, because that will
1531    # break other packages using the cache if that directory is
1532    # removed, or if the path is relative.
1533    INSTALL=$ac_install_sh
1534  fi
1535fi
1536echo "$as_me:$LINENO: result: $INSTALL" >&5
1537echo "${ECHO_T}$INSTALL" >&6
1538
1539# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1540# It thinks the first close brace ends the variable substitution.
1541test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1542
1543test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1544
1545test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1546
1547echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1548echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1549# Just in case
1550sleep 1
1551echo timestamp > conftest.file
1552# Do `set' in a subshell so we don't clobber the current shell's
1553# arguments.  Must try -L first in case configure is actually a
1554# symlink; some systems play weird games with the mod time of symlinks
1555# (eg FreeBSD returns the mod time of the symlink's containing
1556# directory).
1557if (
1558   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1559   if test "$*" = "X"; then
1560      # -L didn't work.
1561      set X `ls -t $srcdir/configure conftest.file`
1562   fi
1563   rm -f conftest.file
1564   if test "$*" != "X $srcdir/configure conftest.file" \
1565      && test "$*" != "X conftest.file $srcdir/configure"; then
1566
1567      # If neither matched, then we have a broken ls.  This can happen
1568      # if, for instance, CONFIG_SHELL is bash and it inherits a
1569      # broken ls alias from the environment.  This has actually
1570      # happened.  Such a system could not be considered "sane".
1571      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1572alias in your environment" >&5
1573echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1574alias in your environment" >&2;}
1575   { (exit 1); exit 1; }; }
1576   fi
1577
1578   test "$2" = conftest.file
1579   )
1580then
1581   # Ok.
1582   :
1583else
1584   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1585Check your system clock" >&5
1586echo "$as_me: error: newly created file is older than distributed files!
1587Check your system clock" >&2;}
1588   { (exit 1); exit 1; }; }
1589fi
1590echo "$as_me:$LINENO: result: yes" >&5
1591echo "${ECHO_T}yes" >&6
1592test "$program_prefix" != NONE &&
1593  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1594# Use a double $ so make ignores it.
1595test "$program_suffix" != NONE &&
1596  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1597# Double any \ or $.  echo might interpret backslashes.
1598# By default was `s,x,x', remove it if useless.
1599cat <<\_ACEOF >conftest.sed
1600s/[\\$]/&&/g;s/;s,x,x,$//
1601_ACEOF
1602program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1603rm conftest.sed
1604
1605
1606# expand $ac_aux_dir to an absolute path
1607am_aux_dir=`cd $ac_aux_dir && pwd`
1608
1609test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1610# Use eval to expand $SHELL
1611if eval "$MISSING --run true"; then
1612  am_missing_run="$MISSING --run "
1613else
1614  am_missing_run=
1615  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1616echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1617fi
1618
1619for ac_prog in gawk mawk nawk awk
1620do
1621  # Extract the first word of "$ac_prog", so it can be a program name with args.
1622set dummy $ac_prog; ac_word=$2
1623echo "$as_me:$LINENO: checking for $ac_word" >&5
1624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625if test "${ac_cv_prog_AWK+set}" = set; then
1626  echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628  if test -n "$AWK"; then
1629  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1630else
1631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632for as_dir in $PATH
1633do
1634  IFS=$as_save_IFS
1635  test -z "$as_dir" && as_dir=.
1636  for ac_exec_ext in '' $ac_executable_extensions; do
1637  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638    ac_cv_prog_AWK="$ac_prog"
1639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640    break 2
1641  fi
1642done
1643done
1644
1645fi
1646fi
1647AWK=$ac_cv_prog_AWK
1648if test -n "$AWK"; then
1649  echo "$as_me:$LINENO: result: $AWK" >&5
1650echo "${ECHO_T}$AWK" >&6
1651else
1652  echo "$as_me:$LINENO: result: no" >&5
1653echo "${ECHO_T}no" >&6
1654fi
1655
1656  test -n "$AWK" && break
1657done
1658
1659echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1660echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1661set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1662if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1663  echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665  cat >conftest.make <<\_ACEOF
1666all:
1667	@echo 'ac_maketemp="$(MAKE)"'
1668_ACEOF
1669# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1670eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1671if test -n "$ac_maketemp"; then
1672  eval ac_cv_prog_make_${ac_make}_set=yes
1673else
1674  eval ac_cv_prog_make_${ac_make}_set=no
1675fi
1676rm -f conftest.make
1677fi
1678if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1679  echo "$as_me:$LINENO: result: yes" >&5
1680echo "${ECHO_T}yes" >&6
1681  SET_MAKE=
1682else
1683  echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685  SET_MAKE="MAKE=${MAKE-make}"
1686fi
1687
1688 # test to see if srcdir already configured
1689if test "`cd $srcdir && pwd`" != "`pwd`" &&
1690   test -f $srcdir/config.status; then
1691  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1692echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1693   { (exit 1); exit 1; }; }
1694fi
1695
1696# test whether we have cygpath
1697if test -z "$CYGPATH_W"; then
1698  if (cygpath --version) >/dev/null 2>/dev/null; then
1699    CYGPATH_W='cygpath -w'
1700  else
1701    CYGPATH_W=echo
1702  fi
1703fi
1704
1705
1706# Define the identity of the package.
1707 PACKAGE=libassetml
1708 VERSION=1.2.1
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712#define PACKAGE "$PACKAGE"
1713_ACEOF
1714
1715
1716cat >>confdefs.h <<_ACEOF
1717#define VERSION "$VERSION"
1718_ACEOF
1719
1720# Some tools Automake needs.
1721
1722ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1723
1724
1725AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1726
1727
1728AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1729
1730
1731AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1732
1733
1734MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1735
1736
1737AMTAR=${AMTAR-"${am_missing_run}tar"}
1738
1739install_sh=${install_sh-"$am_aux_dir/install-sh"}
1740
1741# Installed binaries are usually stripped using `strip' when the user
1742# run `make install-strip'.  However `strip' might not be the right
1743# tool to use in cross-compilation environments, therefore Automake
1744# will honor the `STRIP' environment variable to overrule this program.
1745if test "$cross_compiling" != no; then
1746  if test -n "$ac_tool_prefix"; then
1747  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1748set dummy ${ac_tool_prefix}strip; ac_word=$2
1749echo "$as_me:$LINENO: checking for $ac_word" >&5
1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751if test "${ac_cv_prog_STRIP+set}" = set; then
1752  echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754  if test -n "$STRIP"; then
1755  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1756else
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760  IFS=$as_save_IFS
1761  test -z "$as_dir" && as_dir=.
1762  for ac_exec_ext in '' $ac_executable_extensions; do
1763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766    break 2
1767  fi
1768done
1769done
1770
1771fi
1772fi
1773STRIP=$ac_cv_prog_STRIP
1774if test -n "$STRIP"; then
1775  echo "$as_me:$LINENO: result: $STRIP" >&5
1776echo "${ECHO_T}$STRIP" >&6
1777else
1778  echo "$as_me:$LINENO: result: no" >&5
1779echo "${ECHO_T}no" >&6
1780fi
1781
1782fi
1783if test -z "$ac_cv_prog_STRIP"; then
1784  ac_ct_STRIP=$STRIP
1785  # Extract the first word of "strip", so it can be a program name with args.
1786set dummy strip; ac_word=$2
1787echo "$as_me:$LINENO: checking for $ac_word" >&5
1788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1790  echo $ECHO_N "(cached) $ECHO_C" >&6
1791else
1792  if test -n "$ac_ct_STRIP"; then
1793  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1794else
1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796for as_dir in $PATH
1797do
1798  IFS=$as_save_IFS
1799  test -z "$as_dir" && as_dir=.
1800  for ac_exec_ext in '' $ac_executable_extensions; do
1801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802    ac_cv_prog_ac_ct_STRIP="strip"
1803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804    break 2
1805  fi
1806done
1807done
1808
1809  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1810fi
1811fi
1812ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1813if test -n "$ac_ct_STRIP"; then
1814  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1815echo "${ECHO_T}$ac_ct_STRIP" >&6
1816else
1817  echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821  STRIP=$ac_ct_STRIP
1822else
1823  STRIP="$ac_cv_prog_STRIP"
1824fi
1825
1826fi
1827INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1828
1829# We need awk for the "check" target.  The system "awk" is bad on
1830# some platforms.
1831
1832
1833
1834          ac_config_headers="$ac_config_headers config.h"
1835
1836echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1837echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1838    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1839if test "${enable_maintainer_mode+set}" = set; then
1840  enableval="$enable_maintainer_mode"
1841  USE_MAINTAINER_MODE=$enableval
1842else
1843  USE_MAINTAINER_MODE=no
1844fi;
1845  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1846echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1847
1848
1849if test $USE_MAINTAINER_MODE = yes; then
1850  MAINTAINER_MODE_TRUE=
1851  MAINTAINER_MODE_FALSE='#'
1852else
1853  MAINTAINER_MODE_TRUE='#'
1854  MAINTAINER_MODE_FALSE=
1855fi
1856
1857  MAINT=$MAINTAINER_MODE_TRUE
1858
1859
1860
1861rm -f .deps 2>/dev/null
1862mkdir .deps 2>/dev/null
1863if test -d .deps; then
1864  DEPDIR=.deps
1865else
1866  # MS-DOS does not allow filenames that begin with a dot.
1867  DEPDIR=_deps
1868fi
1869rmdir .deps 2>/dev/null
1870
1871
1872          ac_config_commands="$ac_config_commands depfiles"
1873
1874
1875am_make=${MAKE-make}
1876cat > confinc << 'END'
1877doit:
1878	@echo done
1879END
1880# If we don't find an include directive, just comment out the code.
1881echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1882echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1883am__include="#"
1884am__quote=
1885_am_result=none
1886# First try GNU make style include.
1887echo "include confinc" > confmf
1888# We grep out `Entering directory' and `Leaving directory'
1889# messages which can occur if `w' ends up in MAKEFLAGS.
1890# In particular we don't look at `^make:' because GNU make might
1891# be invoked under some other name (usually "gmake"), in which
1892# case it prints its new name instead of `make'.
1893if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1894   am__include=include
1895   am__quote=
1896   _am_result=GNU
1897fi
1898# Now try BSD make style include.
1899if test "$am__include" = "#"; then
1900   echo '.include "confinc"' > confmf
1901   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1902      am__include=.include
1903      am__quote="\""
1904      _am_result=BSD
1905   fi
1906fi
1907
1908
1909echo "$as_me:$LINENO: result: $_am_result" >&5
1910echo "${ECHO_T}$_am_result" >&6
1911rm -f confinc confmf
1912
1913# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1914if test "${enable_dependency_tracking+set}" = set; then
1915  enableval="$enable_dependency_tracking"
1916
1917fi;
1918if test "x$enable_dependency_tracking" != xno; then
1919  am_depcomp="$ac_aux_dir/depcomp"
1920  AMDEPBACKSLASH='\'
1921fi
1922
1923
1924if test "x$enable_dependency_tracking" != xno; then
1925  AMDEP_TRUE=
1926  AMDEP_FALSE='#'
1927else
1928  AMDEP_TRUE='#'
1929  AMDEP_FALSE=
1930fi
1931
1932
1933
1934ac_ext=c
1935ac_cpp='$CPP $CPPFLAGS'
1936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939if test -n "$ac_tool_prefix"; then
1940  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1941set dummy ${ac_tool_prefix}gcc; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_CC+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  if test -n "$CC"; then
1948  ac_cv_prog_CC="$CC" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955  for ac_exec_ext in '' $ac_executable_extensions; do
1956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959    break 2
1960  fi
1961done
1962done
1963
1964fi
1965fi
1966CC=$ac_cv_prog_CC
1967if test -n "$CC"; then
1968  echo "$as_me:$LINENO: result: $CC" >&5
1969echo "${ECHO_T}$CC" >&6
1970else
1971  echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975fi
1976if test -z "$ac_cv_prog_CC"; then
1977  ac_ct_CC=$CC
1978  # Extract the first word of "gcc", so it can be a program name with args.
1979set dummy gcc; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$ac_ct_CC"; then
1986  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995    ac_cv_prog_ac_ct_CC="gcc"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001
2002fi
2003fi
2004ac_ct_CC=$ac_cv_prog_ac_ct_CC
2005if test -n "$ac_ct_CC"; then
2006  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2007echo "${ECHO_T}$ac_ct_CC" >&6
2008else
2009  echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6
2011fi
2012
2013  CC=$ac_ct_CC
2014else
2015  CC="$ac_cv_prog_CC"
2016fi
2017
2018if test -z "$CC"; then
2019  if test -n "$ac_tool_prefix"; then
2020  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2021set dummy ${ac_tool_prefix}cc; ac_word=$2
2022echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024if test "${ac_cv_prog_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$CC"; then
2028  ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037    ac_cv_prog_CC="${ac_tool_prefix}cc"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043
2044fi
2045fi
2046CC=$ac_cv_prog_CC
2047if test -n "$CC"; then
2048  echo "$as_me:$LINENO: result: $CC" >&5
2049echo "${ECHO_T}$CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055fi
2056if test -z "$ac_cv_prog_CC"; then
2057  ac_ct_CC=$CC
2058  # Extract the first word of "cc", so it can be a program name with args.
2059set dummy cc; ac_word=$2
2060echo "$as_me:$LINENO: checking for $ac_word" >&5
2061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2063  echo $ECHO_N "(cached) $ECHO_C" >&6
2064else
2065  if test -n "$ac_ct_CC"; then
2066  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067else
2068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069for as_dir in $PATH
2070do
2071  IFS=$as_save_IFS
2072  test -z "$as_dir" && as_dir=.
2073  for ac_exec_ext in '' $ac_executable_extensions; do
2074  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075    ac_cv_prog_ac_ct_CC="cc"
2076    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077    break 2
2078  fi
2079done
2080done
2081
2082fi
2083fi
2084ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085if test -n "$ac_ct_CC"; then
2086  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087echo "${ECHO_T}$ac_ct_CC" >&6
2088else
2089  echo "$as_me:$LINENO: result: no" >&5
2090echo "${ECHO_T}no" >&6
2091fi
2092
2093  CC=$ac_ct_CC
2094else
2095  CC="$ac_cv_prog_CC"
2096fi
2097
2098fi
2099if test -z "$CC"; then
2100  # Extract the first word of "cc", so it can be a program name with args.
2101set dummy cc; ac_word=$2
2102echo "$as_me:$LINENO: checking for $ac_word" >&5
2103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104if test "${ac_cv_prog_CC+set}" = set; then
2105  echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107  if test -n "$CC"; then
2108  ac_cv_prog_CC="$CC" # Let the user override the test.
2109else
2110  ac_prog_rejected=no
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116  for ac_exec_ext in '' $ac_executable_extensions; do
2117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2119       ac_prog_rejected=yes
2120       continue
2121     fi
2122    ac_cv_prog_CC="cc"
2123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124    break 2
2125  fi
2126done
2127done
2128
2129if test $ac_prog_rejected = yes; then
2130  # We found a bogon in the path, so make sure we never use it.
2131  set dummy $ac_cv_prog_CC
2132  shift
2133  if test $# != 0; then
2134    # We chose a different compiler from the bogus one.
2135    # However, it has the same basename, so the bogon will be chosen
2136    # first if we set CC to just the basename; use the full file name.
2137    shift
2138    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2139  fi
2140fi
2141fi
2142fi
2143CC=$ac_cv_prog_CC
2144if test -n "$CC"; then
2145  echo "$as_me:$LINENO: result: $CC" >&5
2146echo "${ECHO_T}$CC" >&6
2147else
2148  echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152fi
2153if test -z "$CC"; then
2154  if test -n "$ac_tool_prefix"; then
2155  for ac_prog in cl
2156  do
2157    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2159echo "$as_me:$LINENO: checking for $ac_word" >&5
2160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161if test "${ac_cv_prog_CC+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  if test -n "$CC"; then
2165  ac_cv_prog_CC="$CC" # Let the user override the test.
2166else
2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170  IFS=$as_save_IFS
2171  test -z "$as_dir" && as_dir=.
2172  for ac_exec_ext in '' $ac_executable_extensions; do
2173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176    break 2
2177  fi
2178done
2179done
2180
2181fi
2182fi
2183CC=$ac_cv_prog_CC
2184if test -n "$CC"; then
2185  echo "$as_me:$LINENO: result: $CC" >&5
2186echo "${ECHO_T}$CC" >&6
2187else
2188  echo "$as_me:$LINENO: result: no" >&5
2189echo "${ECHO_T}no" >&6
2190fi
2191
2192    test -n "$CC" && break
2193  done
2194fi
2195if test -z "$CC"; then
2196  ac_ct_CC=$CC
2197  for ac_prog in cl
2198do
2199  # Extract the first word of "$ac_prog", so it can be a program name with args.
2200set dummy $ac_prog; ac_word=$2
2201echo "$as_me:$LINENO: checking for $ac_word" >&5
2202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2204  echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206  if test -n "$ac_ct_CC"; then
2207  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208else
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212  IFS=$as_save_IFS
2213  test -z "$as_dir" && as_dir=.
2214  for ac_exec_ext in '' $ac_executable_extensions; do
2215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216    ac_cv_prog_ac_ct_CC="$ac_prog"
2217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218    break 2
2219  fi
2220done
2221done
2222
2223fi
2224fi
2225ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226if test -n "$ac_ct_CC"; then
2227  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228echo "${ECHO_T}$ac_ct_CC" >&6
2229else
2230  echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6
2232fi
2233
2234  test -n "$ac_ct_CC" && break
2235done
2236
2237  CC=$ac_ct_CC
2238fi
2239
2240fi
2241
2242
2243test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: no acceptable C compiler found in \$PATH
2246See \`config.log' for more details." >&2;}
2247   { (exit 1); exit 1; }; }
2248
2249# Provide some information about the compiler.
2250echo "$as_me:$LINENO:" \
2251     "checking for C compiler version" >&5
2252ac_compiler=`set X $ac_compile; echo $2`
2253{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2254  (eval $ac_compiler --version </dev/null >&5) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }
2258{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2259  (eval $ac_compiler -v </dev/null >&5) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }
2263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2264  (eval $ac_compiler -V </dev/null >&5) 2>&5
2265  ac_status=$?
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); }
2268
2269cat >conftest.$ac_ext <<_ACEOF
2270#line $LINENO "configure"
2271/* confdefs.h.  */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h.  */
2276
2277int
2278main ()
2279{
2280
2281  ;
2282  return 0;
2283}
2284_ACEOF
2285ac_clean_files_save=$ac_clean_files
2286ac_clean_files="$ac_clean_files a.out a.exe b.out"
2287# Try to create an executable without -o first, disregard a.out.
2288# It will help us diagnose broken compilers, and finding out an intuition
2289# of exeext.
2290echo "$as_me:$LINENO: checking for C compiler default output" >&5
2291echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2292ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2293if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2294  (eval $ac_link_default) 2>&5
2295  ac_status=$?
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); }; then
2298  # Find the output, starting from the most likely.  This scheme is
2299# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2300# resort.
2301
2302# Be careful to initialize this variable, since it used to be cached.
2303# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2304ac_cv_exeext=
2305# b.out is created by i960 compilers.
2306for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2307do
2308  test -f "$ac_file" || continue
2309  case $ac_file in
2310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2311        ;;
2312    conftest.$ac_ext )
2313        # This is the source file.
2314        ;;
2315    [ab].out )
2316        # We found the default executable, but exeext='' is most
2317        # certainly right.
2318        break;;
2319    *.* )
2320        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2321        # FIXME: I believe we export ac_cv_exeext for Libtool,
2322        # but it would be cool to find out if it's true.  Does anybody
2323        # maintain Libtool? --akim.
2324        export ac_cv_exeext
2325        break;;
2326    * )
2327        break;;
2328  esac
2329done
2330else
2331  echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: C compiler cannot create executables
2337See \`config.log' for more details." >&2;}
2338   { (exit 77); exit 77; }; }
2339fi
2340
2341ac_exeext=$ac_cv_exeext
2342echo "$as_me:$LINENO: result: $ac_file" >&5
2343echo "${ECHO_T}$ac_file" >&6
2344
2345# Check the compiler produces executables we can run.  If not, either
2346# the compiler is broken, or we cross compile.
2347echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2348echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2349# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2350# If not cross compiling, check that we can run a simple program.
2351if test "$cross_compiling" != yes; then
2352  if { ac_try='./$ac_file'
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); }; }; then
2358    cross_compiling=no
2359  else
2360    if test "$cross_compiling" = maybe; then
2361	cross_compiling=yes
2362    else
2363	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2364If you meant to cross compile, use \`--host'.
2365See \`config.log' for more details." >&5
2366echo "$as_me: error: cannot run C compiled programs.
2367If you meant to cross compile, use \`--host'.
2368See \`config.log' for more details." >&2;}
2369   { (exit 1); exit 1; }; }
2370    fi
2371  fi
2372fi
2373echo "$as_me:$LINENO: result: yes" >&5
2374echo "${ECHO_T}yes" >&6
2375
2376rm -f a.out a.exe conftest$ac_cv_exeext b.out
2377ac_clean_files=$ac_clean_files_save
2378# Check the compiler produces executables we can run.  If not, either
2379# the compiler is broken, or we cross compile.
2380echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2381echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2382echo "$as_me:$LINENO: result: $cross_compiling" >&5
2383echo "${ECHO_T}$cross_compiling" >&6
2384
2385echo "$as_me:$LINENO: checking for suffix of executables" >&5
2386echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2388  (eval $ac_link) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; then
2392  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2393# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2394# work properly (i.e., refer to `conftest.exe'), while it won't with
2395# `rm'.
2396for ac_file in conftest.exe conftest conftest.*; do
2397  test -f "$ac_file" || continue
2398  case $ac_file in
2399    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2400    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401          export ac_cv_exeext
2402          break;;
2403    * ) break;;
2404  esac
2405done
2406else
2407  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2408See \`config.log' for more details." >&5
2409echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2410See \`config.log' for more details." >&2;}
2411   { (exit 1); exit 1; }; }
2412fi
2413
2414rm -f conftest$ac_cv_exeext
2415echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2416echo "${ECHO_T}$ac_cv_exeext" >&6
2417
2418rm -f conftest.$ac_ext
2419EXEEXT=$ac_cv_exeext
2420ac_exeext=$EXEEXT
2421echo "$as_me:$LINENO: checking for suffix of object files" >&5
2422echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2423if test "${ac_cv_objext+set}" = set; then
2424  echo $ECHO_N "(cached) $ECHO_C" >&6
2425else
2426  cat >conftest.$ac_ext <<_ACEOF
2427#line $LINENO "configure"
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433
2434int
2435main ()
2436{
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.o conftest.obj
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444  (eval $ac_compile) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; then
2448  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2449  case $ac_file in
2450    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2451    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2452       break;;
2453  esac
2454done
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2460See \`config.log' for more details." >&5
2461echo "$as_me: error: cannot compute suffix of object files: cannot compile
2462See \`config.log' for more details." >&2;}
2463   { (exit 1); exit 1; }; }
2464fi
2465
2466rm -f conftest.$ac_cv_objext conftest.$ac_ext
2467fi
2468echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2469echo "${ECHO_T}$ac_cv_objext" >&6
2470OBJEXT=$ac_cv_objext
2471ac_objext=$OBJEXT
2472echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2473echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2474if test "${ac_cv_c_compiler_gnu+set}" = set; then
2475  echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477  cat >conftest.$ac_ext <<_ACEOF
2478#line $LINENO "configure"
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484
2485int
2486main ()
2487{
2488#ifndef __GNUC__
2489       choke me
2490#endif
2491
2492  ;
2493  return 0;
2494}
2495_ACEOF
2496rm -f conftest.$ac_objext
2497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498  (eval $ac_compile) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); } &&
2502         { ac_try='test -s conftest.$ac_objext'
2503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504  (eval $ac_try) 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }; }; then
2508  ac_compiler_gnu=yes
2509else
2510  echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513ac_compiler_gnu=no
2514fi
2515rm -f conftest.$ac_objext conftest.$ac_ext
2516ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517
2518fi
2519echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2520echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2521GCC=`test $ac_compiler_gnu = yes && echo yes`
2522ac_test_CFLAGS=${CFLAGS+set}
2523ac_save_CFLAGS=$CFLAGS
2524CFLAGS="-g"
2525echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2526echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2527if test "${ac_cv_prog_cc_g+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  cat >conftest.$ac_ext <<_ACEOF
2531#line $LINENO "configure"
2532/* confdefs.h.  */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h.  */
2537
2538int
2539main ()
2540{
2541
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548  (eval $ac_compile) 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); } &&
2552         { ac_try='test -s conftest.$ac_objext'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; }; then
2558  ac_cv_prog_cc_g=yes
2559else
2560  echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563ac_cv_prog_cc_g=no
2564fi
2565rm -f conftest.$ac_objext conftest.$ac_ext
2566fi
2567echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2568echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2569if test "$ac_test_CFLAGS" = set; then
2570  CFLAGS=$ac_save_CFLAGS
2571elif test $ac_cv_prog_cc_g = yes; then
2572  if test "$GCC" = yes; then
2573    CFLAGS="-g -O2"
2574  else
2575    CFLAGS="-g"
2576  fi
2577else
2578  if test "$GCC" = yes; then
2579    CFLAGS="-O2"
2580  else
2581    CFLAGS=
2582  fi
2583fi
2584echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2585echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2586if test "${ac_cv_prog_cc_stdc+set}" = set; then
2587  echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589  ac_cv_prog_cc_stdc=no
2590ac_save_CC=$CC
2591cat >conftest.$ac_ext <<_ACEOF
2592#line $LINENO "configure"
2593/* confdefs.h.  */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h.  */
2598#include <stdarg.h>
2599#include <stdio.h>
2600#include <sys/types.h>
2601#include <sys/stat.h>
2602/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2603struct buf { int x; };
2604FILE * (*rcsopen) (struct buf *, struct stat *, int);
2605static char *e (p, i)
2606     char **p;
2607     int i;
2608{
2609  return p[i];
2610}
2611static char *f (char * (*g) (char **, int), char **p, ...)
2612{
2613  char *s;
2614  va_list v;
2615  va_start (v,p);
2616  s = g (p, va_arg (v,int));
2617  va_end (v);
2618  return s;
2619}
2620int test (int i, double x);
2621struct s1 {int (*f) (int a);};
2622struct s2 {int (*f) (double a);};
2623int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2624int argc;
2625char **argv;
2626int
2627main ()
2628{
2629return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2630  ;
2631  return 0;
2632}
2633_ACEOF
2634# Don't try gcc -ansi; that turns off useful extensions and
2635# breaks some systems' header files.
2636# AIX			-qlanglvl=ansi
2637# Ultrix and OSF/1	-std1
2638# HP-UX 10.20 and later	-Ae
2639# HP-UX older versions	-Aa -D_HPUX_SOURCE
2640# SVR4			-Xc -D__EXTENSIONS__
2641for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2642do
2643  CC="$ac_save_CC $ac_arg"
2644  rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646  (eval $ac_compile) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650         { ac_try='test -s conftest.$ac_objext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  ac_cv_prog_cc_stdc=$ac_arg
2657break
2658else
2659  echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662fi
2663rm -f conftest.$ac_objext
2664done
2665rm -f conftest.$ac_ext conftest.$ac_objext
2666CC=$ac_save_CC
2667
2668fi
2669
2670case "x$ac_cv_prog_cc_stdc" in
2671  x|xno)
2672    echo "$as_me:$LINENO: result: none needed" >&5
2673echo "${ECHO_T}none needed" >&6 ;;
2674  *)
2675    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2676echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2677    CC="$CC $ac_cv_prog_cc_stdc" ;;
2678esac
2679
2680# Some people use a C++ compiler to compile C.  Since we use `exit',
2681# in C++ we need to declare it.  In case someone uses the same compiler
2682# for both compiling C and C++ we need to have the C++ compiler decide
2683# the declaration of exit, since it's the most demanding environment.
2684cat >conftest.$ac_ext <<_ACEOF
2685#ifndef __cplusplus
2686  choke me
2687#endif
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691  (eval $ac_compile) 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -s conftest.$ac_objext'
2696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697  (eval $ac_try) 2>&5
2698  ac_status=$?
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); }; }; then
2701  for ac_declaration in \
2702   ''\
2703   '#include <stdlib.h>' \
2704   'extern "C" void std::exit (int) throw (); using std::exit;' \
2705   'extern "C" void std::exit (int); using std::exit;' \
2706   'extern "C" void exit (int) throw ();' \
2707   'extern "C" void exit (int);' \
2708   'void exit (int);'
2709do
2710  cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
2712/* confdefs.h.  */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h.  */
2717#include <stdlib.h>
2718$ac_declaration
2719int
2720main ()
2721{
2722exit (42);
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729  (eval $ac_compile) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); } &&
2733         { ac_try='test -s conftest.$ac_objext'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; }; then
2739  :
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744continue
2745fi
2746rm -f conftest.$ac_objext conftest.$ac_ext
2747  cat >conftest.$ac_ext <<_ACEOF
2748#line $LINENO "configure"
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754$ac_declaration
2755int
2756main ()
2757{
2758exit (42);
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765  (eval $ac_compile) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); } &&
2769         { ac_try='test -s conftest.$ac_objext'
2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771  (eval $ac_try) 2>&5
2772  ac_status=$?
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; }; then
2775  break
2776else
2777  echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780fi
2781rm -f conftest.$ac_objext conftest.$ac_ext
2782done
2783rm -f conftest*
2784if test -n "$ac_declaration"; then
2785  echo '#ifdef __cplusplus' >>confdefs.h
2786  echo $ac_declaration      >>confdefs.h
2787  echo '#endif'             >>confdefs.h
2788fi
2789
2790else
2791  echo "$as_me: failed program was:" >&5
2792sed 's/^/| /' conftest.$ac_ext >&5
2793
2794fi
2795rm -f conftest.$ac_objext conftest.$ac_ext
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801
2802depcc="$CC"   am_compiler_list=
2803
2804echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2805echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2806if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2807  echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2810  # We make a subdir and do the tests there.  Otherwise we can end up
2811  # making bogus files that we don't know about and never remove.  For
2812  # instance it was reported that on HP-UX the gcc test will end up
2813  # making a dummy file named `D' -- because `-MD' means `put the output
2814  # in D'.
2815  mkdir conftest.dir
2816  # Copy depcomp to subdir because otherwise we won't find it if we're
2817  # using a relative directory.
2818  cp "$am_depcomp" conftest.dir
2819  cd conftest.dir
2820
2821  am_cv_CC_dependencies_compiler_type=none
2822  if test "$am_compiler_list" = ""; then
2823     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2824  fi
2825  for depmode in $am_compiler_list; do
2826    # We need to recreate these files for each test, as the compiler may
2827    # overwrite some of them when testing with obscure command lines.
2828    # This happens at least with the AIX C compiler.
2829    echo '#include "conftest.h"' > conftest.c
2830    echo 'int i;' > conftest.h
2831    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2832
2833    case $depmode in
2834    nosideeffect)
2835      # after this tag, mechanisms are not by side-effect, so they'll
2836      # only be used when explicitly requested
2837      if test "x$enable_dependency_tracking" = xyes; then
2838	continue
2839      else
2840	break
2841      fi
2842      ;;
2843    none) break ;;
2844    esac
2845    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2846    # mode.  It turns out that the SunPro C++ compiler does not properly
2847    # handle `-M -o', and we need to detect this.
2848    if depmode=$depmode \
2849       source=conftest.c object=conftest.o \
2850       depfile=conftest.Po tmpdepfile=conftest.TPo \
2851       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2852       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2853       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2854      am_cv_CC_dependencies_compiler_type=$depmode
2855      break
2856    fi
2857  done
2858
2859  cd ..
2860  rm -rf conftest.dir
2861else
2862  am_cv_CC_dependencies_compiler_type=none
2863fi
2864
2865fi
2866echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2867echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2868CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2869
2870
2871
2872if
2873  test "x$enable_dependency_tracking" != xno \
2874  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2875  am__fastdepCC_TRUE=
2876  am__fastdepCC_FALSE='#'
2877else
2878  am__fastdepCC_TRUE='#'
2879  am__fastdepCC_FALSE=
2880fi
2881
2882
2883
2884
2885        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2886echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2887if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2888  echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890  ac_check_lib_save_LIBS=$LIBS
2891LIBS="-lcposix  $LIBS"
2892cat >conftest.$ac_ext <<_ACEOF
2893#line $LINENO "configure"
2894/* confdefs.h.  */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h.  */
2899
2900/* Override any gcc2 internal prototype to avoid an error.  */
2901#ifdef __cplusplus
2902extern "C"
2903#endif
2904/* We use char because int might match the return type of a gcc2
2905   builtin and then its argument prototype would still apply.  */
2906char strerror ();
2907int
2908main ()
2909{
2910strerror ();
2911  ;
2912  return 0;
2913}
2914_ACEOF
2915rm -f conftest.$ac_objext conftest$ac_exeext
2916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2917  (eval $ac_link) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); } &&
2921         { ac_try='test -s conftest$ac_exeext'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; }; then
2927  ac_cv_lib_cposix_strerror=yes
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932ac_cv_lib_cposix_strerror=no
2933fi
2934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2935LIBS=$ac_check_lib_save_LIBS
2936fi
2937echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2938echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2939if test $ac_cv_lib_cposix_strerror = yes; then
2940  LIBS="$LIBS -lcposix"
2941fi
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951ac_header_dirent=no
2952for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2953  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2954echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2955echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2956if eval "test \"\${$as_ac_Header+set}\" = set"; then
2957  echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959  cat >conftest.$ac_ext <<_ACEOF
2960#line $LINENO "configure"
2961/* confdefs.h.  */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h.  */
2966#include <sys/types.h>
2967#include <$ac_hdr>
2968
2969int
2970main ()
2971{
2972if ((DIR *) 0)
2973return 0;
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext
2979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980  (eval $ac_compile) 2>&5
2981  ac_status=$?
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); } &&
2984         { ac_try='test -s conftest.$ac_objext'
2985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986  (eval $ac_try) 2>&5
2987  ac_status=$?
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); }; }; then
2990  eval "$as_ac_Header=yes"
2991else
2992  echo "$as_me: failed program was:" >&5
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
2995eval "$as_ac_Header=no"
2996fi
2997rm -f conftest.$ac_objext conftest.$ac_ext
2998fi
2999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3001if test `eval echo '${'$as_ac_Header'}'` = yes; then
3002  cat >>confdefs.h <<_ACEOF
3003#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3004_ACEOF
3005
3006ac_header_dirent=$ac_hdr; break
3007fi
3008
3009done
3010# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3011if test $ac_header_dirent = dirent.h; then
3012  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3013echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3014if test "${ac_cv_search_opendir+set}" = set; then
3015  echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017  ac_func_search_save_LIBS=$LIBS
3018ac_cv_search_opendir=no
3019cat >conftest.$ac_ext <<_ACEOF
3020#line $LINENO "configure"
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026
3027/* Override any gcc2 internal prototype to avoid an error.  */
3028#ifdef __cplusplus
3029extern "C"
3030#endif
3031/* We use char because int might match the return type of a gcc2
3032   builtin and then its argument prototype would still apply.  */
3033char opendir ();
3034int
3035main ()
3036{
3037opendir ();
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext conftest$ac_exeext
3043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3044  (eval $ac_link) 2>&5
3045  ac_status=$?
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); } &&
3048         { ac_try='test -s conftest$ac_exeext'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; }; then
3054  ac_cv_search_opendir="none required"
3055else
3056  echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059fi
3060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3061if test "$ac_cv_search_opendir" = no; then
3062  for ac_lib in dir; do
3063    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3064    cat >conftest.$ac_ext <<_ACEOF
3065#line $LINENO "configure"
3066/* confdefs.h.  */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h.  */
3071
3072/* Override any gcc2 internal prototype to avoid an error.  */
3073#ifdef __cplusplus
3074extern "C"
3075#endif
3076/* We use char because int might match the return type of a gcc2
3077   builtin and then its argument prototype would still apply.  */
3078char opendir ();
3079int
3080main ()
3081{
3082opendir ();
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext conftest$ac_exeext
3088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089  (eval $ac_link) 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); } &&
3093         { ac_try='test -s conftest$ac_exeext'
3094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095  (eval $ac_try) 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }; }; then
3099  ac_cv_search_opendir="-l$ac_lib"
3100break
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105fi
3106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3107  done
3108fi
3109LIBS=$ac_func_search_save_LIBS
3110fi
3111echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3112echo "${ECHO_T}$ac_cv_search_opendir" >&6
3113if test "$ac_cv_search_opendir" != no; then
3114  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3115
3116fi
3117
3118else
3119  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3120echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3121if test "${ac_cv_search_opendir+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  ac_func_search_save_LIBS=$LIBS
3125ac_cv_search_opendir=no
3126cat >conftest.$ac_ext <<_ACEOF
3127#line $LINENO "configure"
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133
3134/* Override any gcc2 internal prototype to avoid an error.  */
3135#ifdef __cplusplus
3136extern "C"
3137#endif
3138/* We use char because int might match the return type of a gcc2
3139   builtin and then its argument prototype would still apply.  */
3140char opendir ();
3141int
3142main ()
3143{
3144opendir ();
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext conftest$ac_exeext
3150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151  (eval $ac_link) 2>&5
3152  ac_status=$?
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); } &&
3155         { ac_try='test -s conftest$ac_exeext'
3156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157  (eval $ac_try) 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; }; then
3161  ac_cv_search_opendir="none required"
3162else
3163  echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166fi
3167rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3168if test "$ac_cv_search_opendir" = no; then
3169  for ac_lib in x; do
3170    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3171    cat >conftest.$ac_ext <<_ACEOF
3172#line $LINENO "configure"
3173/* confdefs.h.  */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h.  */
3178
3179/* Override any gcc2 internal prototype to avoid an error.  */
3180#ifdef __cplusplus
3181extern "C"
3182#endif
3183/* We use char because int might match the return type of a gcc2
3184   builtin and then its argument prototype would still apply.  */
3185char opendir ();
3186int
3187main ()
3188{
3189opendir ();
3190  ;
3191  return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext conftest$ac_exeext
3195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196  (eval $ac_link) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); } &&
3200         { ac_try='test -s conftest$ac_exeext'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; }; then
3206  ac_cv_search_opendir="-l$ac_lib"
3207break
3208else
3209  echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212fi
3213rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3214  done
3215fi
3216LIBS=$ac_func_search_save_LIBS
3217fi
3218echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3219echo "${ECHO_T}$ac_cv_search_opendir" >&6
3220if test "$ac_cv_search_opendir" != no; then
3221  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3222
3223fi
3224
3225fi
3226
3227
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233if test -n "$ac_tool_prefix"; then
3234  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_prog_CC+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  if test -n "$CC"; then
3242  ac_cv_prog_CC="$CC" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249  for ac_exec_ext in '' $ac_executable_extensions; do
3250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256done
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262  echo "$as_me:$LINENO: result: $CC" >&5
3263echo "${ECHO_T}$CC" >&6
3264else
3265  echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267fi
3268
3269fi
3270if test -z "$ac_cv_prog_CC"; then
3271  ac_ct_CC=$CC
3272  # Extract the first word of "gcc", so it can be a program name with args.
3273set dummy gcc; ac_word=$2
3274echo "$as_me:$LINENO: checking for $ac_word" >&5
3275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3277  echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279  if test -n "$ac_ct_CC"; then
3280  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287  for ac_exec_ext in '' $ac_executable_extensions; do
3288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_ac_ct_CC="gcc"
3290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294done
3295
3296fi
3297fi
3298ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299if test -n "$ac_ct_CC"; then
3300  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3301echo "${ECHO_T}$ac_ct_CC" >&6
3302else
3303  echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305fi
3306
3307  CC=$ac_ct_CC
3308else
3309  CC="$ac_cv_prog_CC"
3310fi
3311
3312if test -z "$CC"; then
3313  if test -n "$ac_tool_prefix"; then
3314  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3315set dummy ${ac_tool_prefix}cc; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_CC+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -n "$CC"; then
3322  ac_cv_prog_CC="$CC" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  for ac_exec_ext in '' $ac_executable_extensions; do
3330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_CC="${ac_tool_prefix}cc"
3332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336done
3337
3338fi
3339fi
3340CC=$ac_cv_prog_CC
3341if test -n "$CC"; then
3342  echo "$as_me:$LINENO: result: $CC" >&5
3343echo "${ECHO_T}$CC" >&6
3344else
3345  echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349fi
3350if test -z "$ac_cv_prog_CC"; then
3351  ac_ct_CC=$CC
3352  # Extract the first word of "cc", so it can be a program name with args.
3353set dummy cc; ac_word=$2
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3357  echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359  if test -n "$ac_ct_CC"; then
3360  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367  for ac_exec_ext in '' $ac_executable_extensions; do
3368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_prog_ac_ct_CC="cc"
3370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374done
3375
3376fi
3377fi
3378ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379if test -n "$ac_ct_CC"; then
3380  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3381echo "${ECHO_T}$ac_ct_CC" >&6
3382else
3383  echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
3385fi
3386
3387  CC=$ac_ct_CC
3388else
3389  CC="$ac_cv_prog_CC"
3390fi
3391
3392fi
3393if test -z "$CC"; then
3394  # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_CC+set}" = set; then
3399  echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401  if test -n "$CC"; then
3402  ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404  ac_prog_rejected=no
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410  for ac_exec_ext in '' $ac_executable_extensions; do
3411  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413       ac_prog_rejected=yes
3414       continue
3415     fi
3416    ac_cv_prog_CC="cc"
3417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418    break 2
3419  fi
3420done
3421done
3422
3423if test $ac_prog_rejected = yes; then
3424  # We found a bogon in the path, so make sure we never use it.
3425  set dummy $ac_cv_prog_CC
3426  shift
3427  if test $# != 0; then
3428    # We chose a different compiler from the bogus one.
3429    # However, it has the same basename, so the bogon will be chosen
3430    # first if we set CC to just the basename; use the full file name.
3431    shift
3432    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3433  fi
3434fi
3435fi
3436fi
3437CC=$ac_cv_prog_CC
3438if test -n "$CC"; then
3439  echo "$as_me:$LINENO: result: $CC" >&5
3440echo "${ECHO_T}$CC" >&6
3441else
3442  echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6
3444fi
3445
3446fi
3447if test -z "$CC"; then
3448  if test -n "$ac_tool_prefix"; then
3449  for ac_prog in cl
3450  do
3451    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453echo "$as_me:$LINENO: checking for $ac_word" >&5
3454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3455if test "${ac_cv_prog_CC+set}" = set; then
3456  echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458  if test -n "$CC"; then
3459  ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464  IFS=$as_save_IFS
3465  test -z "$as_dir" && as_dir=.
3466  for ac_exec_ext in '' $ac_executable_extensions; do
3467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473done
3474
3475fi
3476fi
3477CC=$ac_cv_prog_CC
3478if test -n "$CC"; then
3479  echo "$as_me:$LINENO: result: $CC" >&5
3480echo "${ECHO_T}$CC" >&6
3481else
3482  echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484fi
3485
3486    test -n "$CC" && break
3487  done
3488fi
3489if test -z "$CC"; then
3490  ac_ct_CC=$CC
3491  for ac_prog in cl
3492do
3493  # Extract the first word of "$ac_prog", so it can be a program name with args.
3494set dummy $ac_prog; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3498  echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500  if test -n "$ac_ct_CC"; then
3501  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506  IFS=$as_save_IFS
3507  test -z "$as_dir" && as_dir=.
3508  for ac_exec_ext in '' $ac_executable_extensions; do
3509  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510    ac_cv_prog_ac_ct_CC="$ac_prog"
3511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512    break 2
3513  fi
3514done
3515done
3516
3517fi
3518fi
3519ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520if test -n "$ac_ct_CC"; then
3521  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3522echo "${ECHO_T}$ac_ct_CC" >&6
3523else
3524  echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
3526fi
3527
3528  test -n "$ac_ct_CC" && break
3529done
3530
3531  CC=$ac_ct_CC
3532fi
3533
3534fi
3535
3536
3537test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3538See \`config.log' for more details." >&5
3539echo "$as_me: error: no acceptable C compiler found in \$PATH
3540See \`config.log' for more details." >&2;}
3541   { (exit 1); exit 1; }; }
3542
3543# Provide some information about the compiler.
3544echo "$as_me:$LINENO:" \
3545     "checking for C compiler version" >&5
3546ac_compiler=`set X $ac_compile; echo $2`
3547{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3548  (eval $ac_compiler --version </dev/null >&5) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }
3552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3553  (eval $ac_compiler -v </dev/null >&5) 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }
3557{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3558  (eval $ac_compiler -V </dev/null >&5) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }
3562
3563echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3564echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3565if test "${ac_cv_c_compiler_gnu+set}" = set; then
3566  echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568  cat >conftest.$ac_ext <<_ACEOF
3569#line $LINENO "configure"
3570/* confdefs.h.  */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h.  */
3575
3576int
3577main ()
3578{
3579#ifndef __GNUC__
3580       choke me
3581#endif
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587rm -f conftest.$ac_objext
3588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589  (eval $ac_compile) 2>&5
3590  ac_status=$?
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } &&
3593         { ac_try='test -s conftest.$ac_objext'
3594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595  (eval $ac_try) 2>&5
3596  ac_status=$?
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); }; }; then
3599  ac_compiler_gnu=yes
3600else
3601  echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604ac_compiler_gnu=no
3605fi
3606rm -f conftest.$ac_objext conftest.$ac_ext
3607ac_cv_c_compiler_gnu=$ac_compiler_gnu
3608
3609fi
3610echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3611echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3612GCC=`test $ac_compiler_gnu = yes && echo yes`
3613ac_test_CFLAGS=${CFLAGS+set}
3614ac_save_CFLAGS=$CFLAGS
3615CFLAGS="-g"
3616echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3617echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3618if test "${ac_cv_prog_cc_g+set}" = set; then
3619  echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621  cat >conftest.$ac_ext <<_ACEOF
3622#line $LINENO "configure"
3623/* confdefs.h.  */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h.  */
3628
3629int
3630main ()
3631{
3632
3633  ;
3634  return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext
3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639  (eval $ac_compile) 2>&5
3640  ac_status=$?
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643         { ac_try='test -s conftest.$ac_objext'
3644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645  (eval $ac_try) 2>&5
3646  ac_status=$?
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); }; }; then
3649  ac_cv_prog_cc_g=yes
3650else
3651  echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654ac_cv_prog_cc_g=no
3655fi
3656rm -f conftest.$ac_objext conftest.$ac_ext
3657fi
3658echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3659echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3660if test "$ac_test_CFLAGS" = set; then
3661  CFLAGS=$ac_save_CFLAGS
3662elif test $ac_cv_prog_cc_g = yes; then
3663  if test "$GCC" = yes; then
3664    CFLAGS="-g -O2"
3665  else
3666    CFLAGS="-g"
3667  fi
3668else
3669  if test "$GCC" = yes; then
3670    CFLAGS="-O2"
3671  else
3672    CFLAGS=
3673  fi
3674fi
3675echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3676echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3677if test "${ac_cv_prog_cc_stdc+set}" = set; then
3678  echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
3680  ac_cv_prog_cc_stdc=no
3681ac_save_CC=$CC
3682cat >conftest.$ac_ext <<_ACEOF
3683#line $LINENO "configure"
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689#include <stdarg.h>
3690#include <stdio.h>
3691#include <sys/types.h>
3692#include <sys/stat.h>
3693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3694struct buf { int x; };
3695FILE * (*rcsopen) (struct buf *, struct stat *, int);
3696static char *e (p, i)
3697     char **p;
3698     int i;
3699{
3700  return p[i];
3701}
3702static char *f (char * (*g) (char **, int), char **p, ...)
3703{
3704  char *s;
3705  va_list v;
3706  va_start (v,p);
3707  s = g (p, va_arg (v,int));
3708  va_end (v);
3709  return s;
3710}
3711int test (int i, double x);
3712struct s1 {int (*f) (int a);};
3713struct s2 {int (*f) (double a);};
3714int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715int argc;
3716char **argv;
3717int
3718main ()
3719{
3720return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3721  ;
3722  return 0;
3723}
3724_ACEOF
3725# Don't try gcc -ansi; that turns off useful extensions and
3726# breaks some systems' header files.
3727# AIX			-qlanglvl=ansi
3728# Ultrix and OSF/1	-std1
3729# HP-UX 10.20 and later	-Ae
3730# HP-UX older versions	-Aa -D_HPUX_SOURCE
3731# SVR4			-Xc -D__EXTENSIONS__
3732for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3733do
3734  CC="$ac_save_CC $ac_arg"
3735  rm -f conftest.$ac_objext
3736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737  (eval $ac_compile) 2>&5
3738  ac_status=$?
3739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740  (exit $ac_status); } &&
3741         { ac_try='test -s conftest.$ac_objext'
3742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743  (eval $ac_try) 2>&5
3744  ac_status=$?
3745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746  (exit $ac_status); }; }; then
3747  ac_cv_prog_cc_stdc=$ac_arg
3748break
3749else
3750  echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753fi
3754rm -f conftest.$ac_objext
3755done
3756rm -f conftest.$ac_ext conftest.$ac_objext
3757CC=$ac_save_CC
3758
3759fi
3760
3761case "x$ac_cv_prog_cc_stdc" in
3762  x|xno)
3763    echo "$as_me:$LINENO: result: none needed" >&5
3764echo "${ECHO_T}none needed" >&6 ;;
3765  *)
3766    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3767echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3768    CC="$CC $ac_cv_prog_cc_stdc" ;;
3769esac
3770
3771# Some people use a C++ compiler to compile C.  Since we use `exit',
3772# in C++ we need to declare it.  In case someone uses the same compiler
3773# for both compiling C and C++ we need to have the C++ compiler decide
3774# the declaration of exit, since it's the most demanding environment.
3775cat >conftest.$ac_ext <<_ACEOF
3776#ifndef __cplusplus
3777  choke me
3778#endif
3779_ACEOF
3780rm -f conftest.$ac_objext
3781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782  (eval $ac_compile) 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); } &&
3786         { ac_try='test -s conftest.$ac_objext'
3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788  (eval $ac_try) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; }; then
3792  for ac_declaration in \
3793   ''\
3794   '#include <stdlib.h>' \
3795   'extern "C" void std::exit (int) throw (); using std::exit;' \
3796   'extern "C" void std::exit (int); using std::exit;' \
3797   'extern "C" void exit (int) throw ();' \
3798   'extern "C" void exit (int);' \
3799   'void exit (int);'
3800do
3801  cat >conftest.$ac_ext <<_ACEOF
3802#line $LINENO "configure"
3803/* confdefs.h.  */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
3807/* end confdefs.h.  */
3808#include <stdlib.h>
3809$ac_declaration
3810int
3811main ()
3812{
3813exit (42);
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818rm -f conftest.$ac_objext
3819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820  (eval $ac_compile) 2>&5
3821  ac_status=$?
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); } &&
3824         { ac_try='test -s conftest.$ac_objext'
3825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826  (eval $ac_try) 2>&5
3827  ac_status=$?
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); }; }; then
3830  :
3831else
3832  echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835continue
3836fi
3837rm -f conftest.$ac_objext conftest.$ac_ext
3838  cat >conftest.$ac_ext <<_ACEOF
3839#line $LINENO "configure"
3840/* confdefs.h.  */
3841_ACEOF
3842cat confdefs.h >>conftest.$ac_ext
3843cat >>conftest.$ac_ext <<_ACEOF
3844/* end confdefs.h.  */
3845$ac_declaration
3846int
3847main ()
3848{
3849exit (42);
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854rm -f conftest.$ac_objext
3855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856  (eval $ac_compile) 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } &&
3860         { ac_try='test -s conftest.$ac_objext'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; }; then
3866  break
3867else
3868  echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871fi
3872rm -f conftest.$ac_objext conftest.$ac_ext
3873done
3874rm -f conftest*
3875if test -n "$ac_declaration"; then
3876  echo '#ifdef __cplusplus' >>confdefs.h
3877  echo $ac_declaration      >>confdefs.h
3878  echo '#endif'             >>confdefs.h
3879fi
3880
3881else
3882  echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885fi
3886rm -f conftest.$ac_objext conftest.$ac_ext
3887ac_ext=c
3888ac_cpp='$CPP $CPPFLAGS'
3889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892
3893depcc="$CC"   am_compiler_list=
3894
3895echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3896echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3897if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3898  echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3901  # We make a subdir and do the tests there.  Otherwise we can end up
3902  # making bogus files that we don't know about and never remove.  For
3903  # instance it was reported that on HP-UX the gcc test will end up
3904  # making a dummy file named `D' -- because `-MD' means `put the output
3905  # in D'.
3906  mkdir conftest.dir
3907  # Copy depcomp to subdir because otherwise we won't find it if we're
3908  # using a relative directory.
3909  cp "$am_depcomp" conftest.dir
3910  cd conftest.dir
3911
3912  am_cv_CC_dependencies_compiler_type=none
3913  if test "$am_compiler_list" = ""; then
3914     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3915  fi
3916  for depmode in $am_compiler_list; do
3917    # We need to recreate these files for each test, as the compiler may
3918    # overwrite some of them when testing with obscure command lines.
3919    # This happens at least with the AIX C compiler.
3920    echo '#include "conftest.h"' > conftest.c
3921    echo 'int i;' > conftest.h
3922    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3923
3924    case $depmode in
3925    nosideeffect)
3926      # after this tag, mechanisms are not by side-effect, so they'll
3927      # only be used when explicitly requested
3928      if test "x$enable_dependency_tracking" = xyes; then
3929	continue
3930      else
3931	break
3932      fi
3933      ;;
3934    none) break ;;
3935    esac
3936    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3937    # mode.  It turns out that the SunPro C++ compiler does not properly
3938    # handle `-M -o', and we need to detect this.
3939    if depmode=$depmode \
3940       source=conftest.c object=conftest.o \
3941       depfile=conftest.Po tmpdepfile=conftest.TPo \
3942       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3943       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3944       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3945      am_cv_CC_dependencies_compiler_type=$depmode
3946      break
3947    fi
3948  done
3949
3950  cd ..
3951  rm -rf conftest.dir
3952else
3953  am_cv_CC_dependencies_compiler_type=none
3954fi
3955
3956fi
3957echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3958echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3959CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3960
3961
3962
3963if
3964  test "x$enable_dependency_tracking" != xno \
3965  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3966  am__fastdepCC_TRUE=
3967  am__fastdepCC_FALSE='#'
3968else
3969  am__fastdepCC_TRUE='#'
3970  am__fastdepCC_FALSE=
3971fi
3972
3973
3974
3975
3976
3977echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3978echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3979if test "${am_cv_prog_cc_stdc+set}" = set; then
3980  echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982  am_cv_prog_cc_stdc=no
3983ac_save_CC="$CC"
3984# Don't try gcc -ansi; that turns off useful extensions and
3985# breaks some systems' header files.
3986# AIX			-qlanglvl=ansi
3987# Ultrix and OSF/1	-std1
3988# HP-UX 10.20 and later	-Ae
3989# HP-UX older versions	-Aa -D_HPUX_SOURCE
3990# SVR4			-Xc -D__EXTENSIONS__
3991for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3992do
3993  CC="$ac_save_CC $ac_arg"
3994  cat >conftest.$ac_ext <<_ACEOF
3995#line $LINENO "configure"
3996/* confdefs.h.  */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h.  */
4001#include <stdarg.h>
4002#include <stdio.h>
4003#include <sys/types.h>
4004#include <sys/stat.h>
4005/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4006struct buf { int x; };
4007FILE * (*rcsopen) (struct buf *, struct stat *, int);
4008static char *e (p, i)
4009     char **p;
4010     int i;
4011{
4012  return p[i];
4013}
4014static char *f (char * (*g) (char **, int), char **p, ...)
4015{
4016  char *s;
4017  va_list v;
4018  va_start (v,p);
4019  s = g (p, va_arg (v,int));
4020  va_end (v);
4021  return s;
4022}
4023int test (int i, double x);
4024struct s1 {int (*f) (int a);};
4025struct s2 {int (*f) (double a);};
4026int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4027int argc;
4028char **argv;
4029
4030int
4031main ()
4032{
4033
4034return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4035
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042  (eval $ac_compile) 2>&5
4043  ac_status=$?
4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045  (exit $ac_status); } &&
4046         { ac_try='test -s conftest.$ac_objext'
4047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048  (eval $ac_try) 2>&5
4049  ac_status=$?
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); }; }; then
4052  am_cv_prog_cc_stdc="$ac_arg"; break
4053else
4054  echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057fi
4058rm -f conftest.$ac_objext conftest.$ac_ext
4059done
4060CC="$ac_save_CC"
4061
4062fi
4063
4064if test -z "$am_cv_prog_cc_stdc"; then
4065  echo "$as_me:$LINENO: result: none needed" >&5
4066echo "${ECHO_T}none needed" >&6
4067else
4068  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4069echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4070fi
4071case "x$am_cv_prog_cc_stdc" in
4072  x|xno) ;;
4073  *) CC="$CC $am_cv_prog_cc_stdc" ;;
4074esac
4075
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4082echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4083# On Suns, sometimes $CPP names a directory.
4084if test -n "$CPP" && test -d "$CPP"; then
4085  CPP=
4086fi
4087if test -z "$CPP"; then
4088  if test "${ac_cv_prog_CPP+set}" = set; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091      # Double quotes because CPP needs to be expanded
4092    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4093    do
4094      ac_preproc_ok=false
4095for ac_c_preproc_warn_flag in '' yes
4096do
4097  # Use a header file that comes with gcc, so configuring glibc
4098  # with a fresh cross-compiler works.
4099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100  # <limits.h> exists even on freestanding compilers.
4101  # On the NeXT, cc -E runs the code through the compiler's parser,
4102  # not just through cpp. "Syntax error" is here to catch this case.
4103  cat >conftest.$ac_ext <<_ACEOF
4104#line $LINENO "configure"
4105/* confdefs.h.  */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h.  */
4110#ifdef __STDC__
4111# include <limits.h>
4112#else
4113# include <assert.h>
4114#endif
4115                     Syntax error
4116_ACEOF
4117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4118  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4119  ac_status=$?
4120  grep -v '^ *+' conftest.er1 >conftest.err
4121  rm -f conftest.er1
4122  cat conftest.err >&5
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); } >/dev/null; then
4125  if test -s conftest.err; then
4126    ac_cpp_err=$ac_c_preproc_warn_flag
4127  else
4128    ac_cpp_err=
4129  fi
4130else
4131  ac_cpp_err=yes
4132fi
4133if test -z "$ac_cpp_err"; then
4134  :
4135else
4136  echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139  # Broken: fails on valid input.
4140continue
4141fi
4142rm -f conftest.err conftest.$ac_ext
4143
4144  # OK, works on sane cases.  Now check whether non-existent headers
4145  # can be detected and how.
4146  cat >conftest.$ac_ext <<_ACEOF
4147#line $LINENO "configure"
4148/* confdefs.h.  */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h.  */
4153#include <ac_nonexistent.h>
4154_ACEOF
4155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4156  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157  ac_status=$?
4158  grep -v '^ *+' conftest.er1 >conftest.err
4159  rm -f conftest.er1
4160  cat conftest.err >&5
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } >/dev/null; then
4163  if test -s conftest.err; then
4164    ac_cpp_err=$ac_c_preproc_warn_flag
4165  else
4166    ac_cpp_err=
4167  fi
4168else
4169  ac_cpp_err=yes
4170fi
4171if test -z "$ac_cpp_err"; then
4172  # Broken: success on invalid input.
4173continue
4174else
4175  echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
4177
4178  # Passes both tests.
4179ac_preproc_ok=:
4180break
4181fi
4182rm -f conftest.err conftest.$ac_ext
4183
4184done
4185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186rm -f conftest.err conftest.$ac_ext
4187if $ac_preproc_ok; then
4188  break
4189fi
4190
4191    done
4192    ac_cv_prog_CPP=$CPP
4193
4194fi
4195  CPP=$ac_cv_prog_CPP
4196else
4197  ac_cv_prog_CPP=$CPP
4198fi
4199echo "$as_me:$LINENO: result: $CPP" >&5
4200echo "${ECHO_T}$CPP" >&6
4201ac_preproc_ok=false
4202for ac_c_preproc_warn_flag in '' yes
4203do
4204  # Use a header file that comes with gcc, so configuring glibc
4205  # with a fresh cross-compiler works.
4206  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207  # <limits.h> exists even on freestanding compilers.
4208  # On the NeXT, cc -E runs the code through the compiler's parser,
4209  # not just through cpp. "Syntax error" is here to catch this case.
4210  cat >conftest.$ac_ext <<_ACEOF
4211#line $LINENO "configure"
4212/* confdefs.h.  */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h.  */
4217#ifdef __STDC__
4218# include <limits.h>
4219#else
4220# include <assert.h>
4221#endif
4222                     Syntax error
4223_ACEOF
4224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4225  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4226  ac_status=$?
4227  grep -v '^ *+' conftest.er1 >conftest.err
4228  rm -f conftest.er1
4229  cat conftest.err >&5
4230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231  (exit $ac_status); } >/dev/null; then
4232  if test -s conftest.err; then
4233    ac_cpp_err=$ac_c_preproc_warn_flag
4234  else
4235    ac_cpp_err=
4236  fi
4237else
4238  ac_cpp_err=yes
4239fi
4240if test -z "$ac_cpp_err"; then
4241  :
4242else
4243  echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246  # Broken: fails on valid input.
4247continue
4248fi
4249rm -f conftest.err conftest.$ac_ext
4250
4251  # OK, works on sane cases.  Now check whether non-existent headers
4252  # can be detected and how.
4253  cat >conftest.$ac_ext <<_ACEOF
4254#line $LINENO "configure"
4255/* confdefs.h.  */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h.  */
4260#include <ac_nonexistent.h>
4261_ACEOF
4262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4263  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4264  ac_status=$?
4265  grep -v '^ *+' conftest.er1 >conftest.err
4266  rm -f conftest.er1
4267  cat conftest.err >&5
4268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); } >/dev/null; then
4270  if test -s conftest.err; then
4271    ac_cpp_err=$ac_c_preproc_warn_flag
4272  else
4273    ac_cpp_err=
4274  fi
4275else
4276  ac_cpp_err=yes
4277fi
4278if test -z "$ac_cpp_err"; then
4279  # Broken: success on invalid input.
4280continue
4281else
4282  echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285  # Passes both tests.
4286ac_preproc_ok=:
4287break
4288fi
4289rm -f conftest.err conftest.$ac_ext
4290
4291done
4292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293rm -f conftest.err conftest.$ac_ext
4294if $ac_preproc_ok; then
4295  :
4296else
4297  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4298See \`config.log' for more details." >&5
4299echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4300See \`config.log' for more details." >&2;}
4301   { (exit 1); exit 1; }; }
4302fi
4303
4304ac_ext=c
4305ac_cpp='$CPP $CPPFLAGS'
4306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309
4310
4311echo "$as_me:$LINENO: checking for egrep" >&5
4312echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4313if test "${ac_cv_prog_egrep+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4317    then ac_cv_prog_egrep='grep -E'
4318    else ac_cv_prog_egrep='egrep'
4319    fi
4320fi
4321echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4322echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4323 EGREP=$ac_cv_prog_egrep
4324
4325
4326echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4327echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4328if test "${ac_cv_header_stdc+set}" = set; then
4329  echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331  cat >conftest.$ac_ext <<_ACEOF
4332#line $LINENO "configure"
4333/* confdefs.h.  */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h.  */
4338#include <stdlib.h>
4339#include <stdarg.h>
4340#include <string.h>
4341#include <float.h>
4342
4343int
4344main ()
4345{
4346
4347  ;
4348  return 0;
4349}
4350_ACEOF
4351rm -f conftest.$ac_objext
4352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353  (eval $ac_compile) 2>&5
4354  ac_status=$?
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); } &&
4357         { ac_try='test -s conftest.$ac_objext'
4358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359  (eval $ac_try) 2>&5
4360  ac_status=$?
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); }; }; then
4363  ac_cv_header_stdc=yes
4364else
4365  echo "$as_me: failed program was:" >&5
4366sed 's/^/| /' conftest.$ac_ext >&5
4367
4368ac_cv_header_stdc=no
4369fi
4370rm -f conftest.$ac_objext conftest.$ac_ext
4371
4372if test $ac_cv_header_stdc = yes; then
4373  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4374  cat >conftest.$ac_ext <<_ACEOF
4375#line $LINENO "configure"
4376/* confdefs.h.  */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h.  */
4381#include <string.h>
4382
4383_ACEOF
4384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385  $EGREP "memchr" >/dev/null 2>&1; then
4386  :
4387else
4388  ac_cv_header_stdc=no
4389fi
4390rm -f conftest*
4391
4392fi
4393
4394if test $ac_cv_header_stdc = yes; then
4395  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4396  cat >conftest.$ac_ext <<_ACEOF
4397#line $LINENO "configure"
4398/* confdefs.h.  */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h.  */
4403#include <stdlib.h>
4404
4405_ACEOF
4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407  $EGREP "free" >/dev/null 2>&1; then
4408  :
4409else
4410  ac_cv_header_stdc=no
4411fi
4412rm -f conftest*
4413
4414fi
4415
4416if test $ac_cv_header_stdc = yes; then
4417  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418  if test "$cross_compiling" = yes; then
4419  :
4420else
4421  cat >conftest.$ac_ext <<_ACEOF
4422#line $LINENO "configure"
4423/* confdefs.h.  */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h.  */
4428#include <ctype.h>
4429#if ((' ' & 0x0FF) == 0x020)
4430# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4431# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4432#else
4433# define ISLOWER(c) \
4434                   (('a' <= (c) && (c) <= 'i') \
4435                     || ('j' <= (c) && (c) <= 'r') \
4436                     || ('s' <= (c) && (c) <= 'z'))
4437# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4438#endif
4439
4440#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441int
4442main ()
4443{
4444  int i;
4445  for (i = 0; i < 256; i++)
4446    if (XOR (islower (i), ISLOWER (i))
4447        || toupper (i) != TOUPPER (i))
4448      exit(2);
4449  exit (0);
4450}
4451_ACEOF
4452rm -f conftest$ac_exeext
4453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454  (eval $ac_link) 2>&5
4455  ac_status=$?
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  :
4464else
4465  echo "$as_me: program exited with status $ac_status" >&5
4466echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469( exit $ac_status )
4470ac_cv_header_stdc=no
4471fi
4472rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4473fi
4474fi
4475fi
4476echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4477echo "${ECHO_T}$ac_cv_header_stdc" >&6
4478if test $ac_cv_header_stdc = yes; then
4479
4480cat >>confdefs.h <<\_ACEOF
4481#define STDC_HEADERS 1
4482_ACEOF
4483
4484fi
4485
4486
4487# Check whether --enable-static or --disable-static was given.
4488if test "${enable_static+set}" = set; then
4489  enableval="$enable_static"
4490  p=${PACKAGE-default}
4491case $enableval in
4492yes) enable_static=yes ;;
4493no) enable_static=no ;;
4494*)
4495  enable_static=no
4496  # Look at the argument we got.  We use all the common list separators.
4497  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4498  for pkg in $enableval; do
4499    if test "X$pkg" = "X$p"; then
4500      enable_static=yes
4501    fi
4502  done
4503  IFS="$ac_save_ifs"
4504  ;;
4505esac
4506else
4507  enable_static=no
4508fi;
4509
4510# Check whether --enable-shared or --disable-shared was given.
4511if test "${enable_shared+set}" = set; then
4512  enableval="$enable_shared"
4513  p=${PACKAGE-default}
4514case $enableval in
4515yes) enable_shared=yes ;;
4516no) enable_shared=no ;;
4517*)
4518  enable_shared=no
4519  # Look at the argument we got.  We use all the common list separators.
4520  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4521  for pkg in $enableval; do
4522    if test "X$pkg" = "X$p"; then
4523      enable_shared=yes
4524    fi
4525  done
4526  IFS="$ac_save_ifs"
4527  ;;
4528esac
4529else
4530  enable_shared=yes
4531fi;
4532# Check whether --enable-fast-install or --disable-fast-install was given.
4533if test "${enable_fast_install+set}" = set; then
4534  enableval="$enable_fast_install"
4535  p=${PACKAGE-default}
4536case $enableval in
4537yes) enable_fast_install=yes ;;
4538no) enable_fast_install=no ;;
4539*)
4540  enable_fast_install=no
4541  # Look at the argument we got.  We use all the common list separators.
4542  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4543  for pkg in $enableval; do
4544    if test "X$pkg" = "X$p"; then
4545      enable_fast_install=yes
4546    fi
4547  done
4548  IFS="$ac_save_ifs"
4549  ;;
4550esac
4551else
4552  enable_fast_install=yes
4553fi;
4554# Make sure we can run config.sub.
4555$ac_config_sub sun4 >/dev/null 2>&1 ||
4556  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4557echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4558   { (exit 1); exit 1; }; }
4559
4560echo "$as_me:$LINENO: checking build system type" >&5
4561echo $ECHO_N "checking build system type... $ECHO_C" >&6
4562if test "${ac_cv_build+set}" = set; then
4563  echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565  ac_cv_build_alias=$build_alias
4566test -z "$ac_cv_build_alias" &&
4567  ac_cv_build_alias=`$ac_config_guess`
4568test -z "$ac_cv_build_alias" &&
4569  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4570echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4571   { (exit 1); exit 1; }; }
4572ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4573  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4574echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4575   { (exit 1); exit 1; }; }
4576
4577fi
4578echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4579echo "${ECHO_T}$ac_cv_build" >&6
4580build=$ac_cv_build
4581build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4582build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4583build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4584
4585
4586echo "$as_me:$LINENO: checking host system type" >&5
4587echo $ECHO_N "checking host system type... $ECHO_C" >&6
4588if test "${ac_cv_host+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  ac_cv_host_alias=$host_alias
4592test -z "$ac_cv_host_alias" &&
4593  ac_cv_host_alias=$ac_cv_build_alias
4594ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4595  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4596echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4597   { (exit 1); exit 1; }; }
4598
4599fi
4600echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4601echo "${ECHO_T}$ac_cv_host" >&6
4602host=$ac_cv_host
4603host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4604host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4605host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4606
4607
4608# Find the correct PATH separator.  Usually this is `:', but
4609# DJGPP uses `;' like DOS.
4610if test "X${PATH_SEPARATOR+set}" != Xset; then
4611  UNAME=${UNAME-`uname 2>/dev/null`}
4612  case X$UNAME in
4613    *-DOS) lt_cv_sys_path_separator=';' ;;
4614    *)     lt_cv_sys_path_separator=':' ;;
4615  esac
4616  PATH_SEPARATOR=$lt_cv_sys_path_separator
4617fi
4618
4619
4620# Check whether --with-gnu-ld or --without-gnu-ld was given.
4621if test "${with_gnu_ld+set}" = set; then
4622  withval="$with_gnu_ld"
4623  test "$withval" = no || with_gnu_ld=yes
4624else
4625  with_gnu_ld=no
4626fi;
4627ac_prog=ld
4628if test "$GCC" = yes; then
4629  # Check if gcc -print-prog-name=ld gives a path.
4630  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4631echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4632  case $host in
4633  *-*-mingw*)
4634    # gcc leaves a trailing carriage return which upsets mingw
4635    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4636  *)
4637    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4638  esac
4639  case $ac_prog in
4640    # Accept absolute paths.
4641    [\\/]* | [A-Za-z]:[\\/]*)
4642      re_direlt='/[^/][^/]*/\.\./'
4643      # Canonicalize the path of ld
4644      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4645      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4646	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4647      done
4648      test -z "$LD" && LD="$ac_prog"
4649      ;;
4650  "")
4651    # If it fails, then pretend we aren't using GCC.
4652    ac_prog=ld
4653    ;;
4654  *)
4655    # If it is relative, then search for the first ld in PATH.
4656    with_gnu_ld=unknown
4657    ;;
4658  esac
4659elif test "$with_gnu_ld" = yes; then
4660  echo "$as_me:$LINENO: checking for GNU ld" >&5
4661echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4662else
4663  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4664echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4665fi
4666if test "${lt_cv_path_LD+set}" = set; then
4667  echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669  if test -z "$LD"; then
4670  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4671  for ac_dir in $PATH; do
4672    test -z "$ac_dir" && ac_dir=.
4673    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4674      lt_cv_path_LD="$ac_dir/$ac_prog"
4675      # Check to see if the program is GNU ld.  I'd rather use --version,
4676      # but apparently some GNU ld's only accept -v.
4677      # Break only if it was the GNU/non-GNU ld that we prefer.
4678      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4679	test "$with_gnu_ld" != no && break
4680      else
4681	test "$with_gnu_ld" != yes && break
4682      fi
4683    fi
4684  done
4685  IFS="$ac_save_ifs"
4686else
4687  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4688fi
4689fi
4690
4691LD="$lt_cv_path_LD"
4692if test -n "$LD"; then
4693  echo "$as_me:$LINENO: result: $LD" >&5
4694echo "${ECHO_T}$LD" >&6
4695else
4696  echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
4698fi
4699test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4700echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4701   { (exit 1); exit 1; }; }
4702echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4703echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4704if test "${lt_cv_prog_gnu_ld+set}" = set; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4708if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4709  lt_cv_prog_gnu_ld=yes
4710else
4711  lt_cv_prog_gnu_ld=no
4712fi
4713fi
4714echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4715echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4716with_gnu_ld=$lt_cv_prog_gnu_ld
4717
4718
4719echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4720echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4721if test "${lt_cv_ld_reload_flag+set}" = set; then
4722  echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724  lt_cv_ld_reload_flag='-r'
4725fi
4726echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4727echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4728reload_flag=$lt_cv_ld_reload_flag
4729test -n "$reload_flag" && reload_flag=" $reload_flag"
4730
4731echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4732echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4733if test "${lt_cv_path_NM+set}" = set; then
4734  echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736  if test -n "$NM"; then
4737  # Let the user override the test.
4738  lt_cv_path_NM="$NM"
4739else
4740  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4741  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4742    test -z "$ac_dir" && ac_dir=.
4743    tmp_nm=$ac_dir/${ac_tool_prefix}nm
4744    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4745      # Check to see if the nm accepts a BSD-compat flag.
4746      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4747      #   nm: unknown option "B" ignored
4748      # Tru64's nm complains that /dev/null is an invalid object file
4749      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4750	lt_cv_path_NM="$tmp_nm -B"
4751	break
4752      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4753	lt_cv_path_NM="$tmp_nm -p"
4754	break
4755      else
4756	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4757	continue # so that we can try to find one that supports BSD flags
4758      fi
4759    fi
4760  done
4761  IFS="$ac_save_ifs"
4762  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4763fi
4764fi
4765
4766NM="$lt_cv_path_NM"
4767echo "$as_me:$LINENO: result: $NM" >&5
4768echo "${ECHO_T}$NM" >&6
4769
4770echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4771echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4772if test "${lt_cv_path_SED+set}" = set; then
4773  echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775  # Loop through the user's path and test for sed and gsed.
4776# Then use that list of sed's as ones to test for truncation.
4777as_executable_p="test -f"
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781  IFS=$as_save_IFS
4782  test -z "$as_dir" && as_dir=.
4783  for ac_prog in sed gsed; do
4784    for ac_exec_ext in '' $ac_executable_extensions; do
4785      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4786        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4787      fi
4788    done
4789  done
4790done
4791
4792  # Create a temporary directory, and hook for its removal unless debugging.
4793$debug ||
4794{
4795  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4796  trap '{ (exit 1); exit 1; }' 1 2 13 15
4797}
4798
4799# Create a (secure) tmp directory for tmp files.
4800: ${TMPDIR=/tmp}
4801{
4802  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4803  test -n "$tmp" && test -d "$tmp"
4804}  ||
4805{
4806  tmp=$TMPDIR/sed$$-$RANDOM
4807  (umask 077 && mkdir $tmp)
4808} ||
4809{
4810   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4811   { (exit 1); exit 1; }
4812}
4813  _max=0
4814  _count=0
4815  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4816  # along with /bin/sed that truncates output.
4817  for _sed in $_sed_list /usr/xpg4/bin/sed; do
4818    test ! -f ${_sed} && break
4819    cat /dev/null > "$tmp/sed.in"
4820    _count=0
4821    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4822    # Check for GNU sed and select it if it is found.
4823    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4824      lt_cv_path_SED=${_sed}
4825      break
4826    fi
4827    while true; do
4828      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4829      mv "$tmp/sed.tmp" "$tmp/sed.in"
4830      cp "$tmp/sed.in" "$tmp/sed.nl"
4831      echo >>"$tmp/sed.nl"
4832      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4833      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4834      # 40000 chars as input seems more than enough
4835      test $_count -gt 10 && break
4836      _count=`expr $_count + 1`
4837      if test $_count -gt $_max; then
4838        _max=$_count
4839        lt_cv_path_SED=$_sed
4840      fi
4841    done
4842  done
4843  rm -rf "$tmp"
4844
4845fi
4846
4847if test "X$SED" != "X"; then
4848  lt_cv_path_SED=$SED
4849else
4850  SED=$lt_cv_path_SED
4851fi
4852echo "$as_me:$LINENO: result: $SED" >&5
4853echo "${ECHO_T}$SED" >&6
4854
4855echo "$as_me:$LINENO: checking whether ln -s works" >&5
4856echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4857LN_S=$as_ln_s
4858if test "$LN_S" = "ln -s"; then
4859  echo "$as_me:$LINENO: result: yes" >&5
4860echo "${ECHO_T}yes" >&6
4861else
4862  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4863echo "${ECHO_T}no, using $LN_S" >&6
4864fi
4865
4866echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4867echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4868if test "${lt_cv_deplibs_check_method+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  lt_cv_file_magic_cmd='$MAGIC_CMD'
4872lt_cv_file_magic_test_file=
4873lt_cv_deplibs_check_method='unknown'
4874# Need to set the preceding variable on all platforms that support
4875# interlibrary dependencies.
4876# 'none' -- dependencies not supported.
4877# `unknown' -- same as none, but documents that we really don't know.
4878# 'pass_all' -- all dependencies passed with no checks.
4879# 'test_compile' -- check by making test program.
4880# 'file_magic [[regex]]' -- check by looking for files in library path
4881# which responds to the $file_magic_cmd with a given egrep regex.
4882# If you have `file' or equivalent on your system and you're not sure
4883# whether `pass_all' will *always* work, you probably want this one.
4884
4885case $host_os in
4886aix4* | aix5*)
4887  lt_cv_deplibs_check_method=pass_all
4888  ;;
4889
4890beos*)
4891  lt_cv_deplibs_check_method=pass_all
4892  ;;
4893
4894bsdi4*)
4895  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4896  lt_cv_file_magic_cmd='/usr/bin/file -L'
4897  lt_cv_file_magic_test_file=/shlib/libc.so
4898  ;;
4899
4900cygwin* | mingw* | pw32*)
4901  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4902  lt_cv_file_magic_cmd='$OBJDUMP -f'
4903  ;;
4904
4905darwin* | rhapsody*)
4906  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4907  lt_cv_file_magic_cmd='/usr/bin/file -L'
4908  case "$host_os" in
4909  rhapsody* | darwin1.[012])
4910    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4911    ;;
4912  *) # Darwin 1.3 on
4913    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4914    ;;
4915  esac
4916  ;;
4917
4918freebsd*)
4919  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4920    case $host_cpu in
4921    i*86 )
4922      # Not sure whether the presence of OpenBSD here was a mistake.
4923      # Let's accept both of them until this is cleared up.
4924      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4925      lt_cv_file_magic_cmd=/usr/bin/file
4926      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4927      ;;
4928    esac
4929  else
4930    lt_cv_deplibs_check_method=pass_all
4931  fi
4932  ;;
4933
4934gnu*)
4935  lt_cv_deplibs_check_method=pass_all
4936  ;;
4937
4938hpux10.20*|hpux11*)
4939  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4940  lt_cv_file_magic_cmd=/usr/bin/file
4941  lt_cv_file_magic_test_file=/usr/lib/libc.sl
4942  ;;
4943
4944irix5* | irix6* | nonstopux*)
4945  case $host_os in
4946  irix5* | nonstopux*)
4947    # this will be overridden with pass_all, but let us keep it just in case
4948    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4949    ;;
4950  *)
4951    case $LD in
4952    *-32|*"-32 ") libmagic=32-bit;;
4953    *-n32|*"-n32 ") libmagic=N32;;
4954    *-64|*"-64 ") libmagic=64-bit;;
4955    *) libmagic=never-match;;
4956    esac
4957    # this will be overridden with pass_all, but let us keep it just in case
4958    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4959    ;;
4960  esac
4961  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4962  lt_cv_deplibs_check_method=pass_all
4963  ;;
4964
4965# This must be Linux ELF.
4966linux-gnu*)
4967  case $host_cpu in
4968  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
4969    lt_cv_deplibs_check_method=pass_all ;;
4970  *)
4971    # glibc up to 2.1.1 does not perform some relocations on ARM
4972    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4973  esac
4974  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4975  ;;
4976
4977netbsd*)
4978  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4979    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4980  else
4981    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4982  fi
4983  ;;
4984
4985newos6*)
4986  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4987  lt_cv_file_magic_cmd=/usr/bin/file
4988  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4989  ;;
4990
4991openbsd*)
4992  lt_cv_file_magic_cmd=/usr/bin/file
4993  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4994  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4995    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4996  else
4997    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4998  fi
4999  ;;
5000
5001osf3* | osf4* | osf5*)
5002  # this will be overridden with pass_all, but let us keep it just in case
5003  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5004  lt_cv_file_magic_test_file=/shlib/libc.so
5005  lt_cv_deplibs_check_method=pass_all
5006  ;;
5007
5008sco3.2v5*)
5009  lt_cv_deplibs_check_method=pass_all
5010  ;;
5011
5012solaris*)
5013  lt_cv_deplibs_check_method=pass_all
5014  lt_cv_file_magic_test_file=/lib/libc.so
5015  ;;
5016
5017sysv5uw[78]* | sysv4*uw2*)
5018  lt_cv_deplibs_check_method=pass_all
5019  ;;
5020
5021sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5022  case $host_vendor in
5023  motorola)
5024    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]'
5025    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5026    ;;
5027  ncr)
5028    lt_cv_deplibs_check_method=pass_all
5029    ;;
5030  sequent)
5031    lt_cv_file_magic_cmd='/bin/file'
5032    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5033    ;;
5034  sni)
5035    lt_cv_file_magic_cmd='/bin/file'
5036    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5037    lt_cv_file_magic_test_file=/lib/libc.so
5038    ;;
5039  siemens)
5040    lt_cv_deplibs_check_method=pass_all
5041    ;;
5042  esac
5043  ;;
5044esac
5045
5046fi
5047echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5048echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5049file_magic_cmd=$lt_cv_file_magic_cmd
5050deplibs_check_method=$lt_cv_deplibs_check_method
5051
5052
5053
5054
5055
5056
5057
5058# Check for command to grab the raw symbol name followed by C symbol from nm.
5059echo "$as_me:$LINENO: checking command to parse $NM output" >&5
5060echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
5061if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5062  echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064
5065# These are sane defaults that work on at least a few old systems.
5066# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5067
5068# Character class describing NM global symbol codes.
5069symcode='[BCDEGRST]'
5070
5071# Regexp to match symbols that can be accessed directly from C.
5072sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5073
5074# Transform the above into a raw symbol and a C symbol.
5075symxfrm='\1 \2\3 \3'
5076
5077# Transform an extracted symbol line into a proper C declaration
5078lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5079
5080# Transform an extracted symbol line into symbol name and symbol address
5081lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5082
5083# Define system-specific variables.
5084case $host_os in
5085aix*)
5086  symcode='[BCDT]'
5087  ;;
5088cygwin* | mingw* | pw32*)
5089  symcode='[ABCDGISTW]'
5090  ;;
5091hpux*) # Its linker distinguishes data from code symbols
5092  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5093  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'"
5094  ;;
5095irix* | nonstopux*)
5096  symcode='[BCDEGRST]'
5097  ;;
5098osf*)
5099  symcode='[BCDEGQRST]'
5100  ;;
5101solaris* | sysv5*)
5102  symcode='[BDT]'
5103  ;;
5104sysv4)
5105  symcode='[DFNSTU]'
5106  ;;
5107esac
5108
5109# Handle CRLF in mingw tool chain
5110opt_cr=
5111case $host_os in
5112mingw*)
5113  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5114  ;;
5115esac
5116
5117# If we're using GNU nm, then use its standard symbol codes.
5118if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5119  symcode='[ABCDGISTW]'
5120fi
5121
5122# Try without a prefix undercore, then with it.
5123for ac_symprfx in "" "_"; do
5124
5125  # Write the raw and C identifiers.
5126lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5127
5128  # Check to see that the pipe works correctly.
5129  pipe_works=no
5130  rm -f conftest*
5131  cat > conftest.$ac_ext <<EOF
5132#ifdef __cplusplus
5133extern "C" {
5134#endif
5135char nm_test_var;
5136void nm_test_func(){}
5137#ifdef __cplusplus
5138}
5139#endif
5140int main(){nm_test_var='a';nm_test_func();return(0);}
5141EOF
5142
5143  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144  (eval $ac_compile) 2>&5
5145  ac_status=$?
5146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147  (exit $ac_status); }; then
5148    # Now try to grab the symbols.
5149    nlist=conftest.nm
5150    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5151  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5152  ac_status=$?
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } && test -s "$nlist"; then
5155      # Try sorting and uniquifying the output.
5156      if sort "$nlist" | uniq > "$nlist"T; then
5157	mv -f "$nlist"T "$nlist"
5158      else
5159	rm -f "$nlist"T
5160      fi
5161
5162      # Make sure that we snagged all the symbols we need.
5163      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5164	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5165	  cat <<EOF > conftest.$ac_ext
5166#ifdef __cplusplus
5167extern "C" {
5168#endif
5169
5170EOF
5171	  # Now generate the symbol file.
5172	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5173
5174	  cat <<EOF >> conftest.$ac_ext
5175#if defined (__STDC__) && __STDC__
5176# define lt_ptr void *
5177#else
5178# define lt_ptr char *
5179# define const
5180#endif
5181
5182/* The mapping between symbol names and symbols. */
5183const struct {
5184  const char *name;
5185  lt_ptr address;
5186}
5187lt_preloaded_symbols[] =
5188{
5189EOF
5190	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5191	  cat <<\EOF >> conftest.$ac_ext
5192  {0, (lt_ptr) 0}
5193};
5194
5195#ifdef __cplusplus
5196}
5197#endif
5198EOF
5199	  # Now try linking the two files.
5200	  mv conftest.$ac_objext conftstm.$ac_objext
5201	  save_LIBS="$LIBS"
5202	  save_CFLAGS="$CFLAGS"
5203	  LIBS="conftstm.$ac_objext"
5204	  CFLAGS="$CFLAGS$no_builtin_flag"
5205	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206  (eval $ac_link) 2>&5
5207  ac_status=$?
5208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209  (exit $ac_status); } && test -s conftest$ac_exeext; then
5210	    pipe_works=yes
5211	  fi
5212	  LIBS="$save_LIBS"
5213	  CFLAGS="$save_CFLAGS"
5214	else
5215	  echo "cannot find nm_test_func in $nlist" >&5
5216	fi
5217      else
5218	echo "cannot find nm_test_var in $nlist" >&5
5219      fi
5220    else
5221      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5222    fi
5223  else
5224    echo "$progname: failed program was:" >&5
5225    cat conftest.$ac_ext >&5
5226  fi
5227  rm -f conftest* conftst*
5228
5229  # Do not use the global_symbol_pipe unless it works.
5230  if test "$pipe_works" = yes; then
5231    break
5232  else
5233    lt_cv_sys_global_symbol_pipe=
5234  fi
5235done
5236
5237fi
5238
5239global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5240if test -z "$lt_cv_sys_global_symbol_pipe"; then
5241  global_symbol_to_cdecl=
5242  global_symbol_to_c_name_address=
5243else
5244  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5245  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5246fi
5247if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5248then
5249  echo "$as_me:$LINENO: result: failed" >&5
5250echo "${ECHO_T}failed" >&6
5251else
5252  echo "$as_me:$LINENO: result: ok" >&5
5253echo "${ECHO_T}ok" >&6
5254fi
5255
5256# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5267                  inttypes.h stdint.h unistd.h
5268do
5269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5270echo "$as_me:$LINENO: checking for $ac_header" >&5
5271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5272if eval "test \"\${$as_ac_Header+set}\" = set"; then
5273  echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275  cat >conftest.$ac_ext <<_ACEOF
5276#line $LINENO "configure"
5277/* confdefs.h.  */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h.  */
5282$ac_includes_default
5283
5284#include <$ac_header>
5285_ACEOF
5286rm -f conftest.$ac_objext
5287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288  (eval $ac_compile) 2>&5
5289  ac_status=$?
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } &&
5292         { ac_try='test -s conftest.$ac_objext'
5293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294  (eval $ac_try) 2>&5
5295  ac_status=$?
5296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297  (exit $ac_status); }; }; then
5298  eval "$as_ac_Header=yes"
5299else
5300  echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303eval "$as_ac_Header=no"
5304fi
5305rm -f conftest.$ac_objext conftest.$ac_ext
5306fi
5307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5309if test `eval echo '${'$as_ac_Header'}'` = yes; then
5310  cat >>confdefs.h <<_ACEOF
5311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5312_ACEOF
5313
5314fi
5315
5316done
5317
5318
5319
5320for ac_header in dlfcn.h
5321do
5322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5323if eval "test \"\${$as_ac_Header+set}\" = set"; then
5324  echo "$as_me:$LINENO: checking for $ac_header" >&5
5325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5326if eval "test \"\${$as_ac_Header+set}\" = set"; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328fi
5329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5331else
5332  # Is the header compilable?
5333echo "$as_me:$LINENO: checking $ac_header usability" >&5
5334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5335cat >conftest.$ac_ext <<_ACEOF
5336#line $LINENO "configure"
5337/* confdefs.h.  */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h.  */
5342$ac_includes_default
5343#include <$ac_header>
5344_ACEOF
5345rm -f conftest.$ac_objext
5346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347  (eval $ac_compile) 2>&5
5348  ac_status=$?
5349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350  (exit $ac_status); } &&
5351         { ac_try='test -s conftest.$ac_objext'
5352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353  (eval $ac_try) 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }; }; then
5357  ac_header_compiler=yes
5358else
5359  echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362ac_header_compiler=no
5363fi
5364rm -f conftest.$ac_objext conftest.$ac_ext
5365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5366echo "${ECHO_T}$ac_header_compiler" >&6
5367
5368# Is the header present?
5369echo "$as_me:$LINENO: checking $ac_header presence" >&5
5370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5371cat >conftest.$ac_ext <<_ACEOF
5372#line $LINENO "configure"
5373/* confdefs.h.  */
5374_ACEOF
5375cat confdefs.h >>conftest.$ac_ext
5376cat >>conftest.$ac_ext <<_ACEOF
5377/* end confdefs.h.  */
5378#include <$ac_header>
5379_ACEOF
5380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5381  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5382  ac_status=$?
5383  grep -v '^ *+' conftest.er1 >conftest.err
5384  rm -f conftest.er1
5385  cat conftest.err >&5
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); } >/dev/null; then
5388  if test -s conftest.err; then
5389    ac_cpp_err=$ac_c_preproc_warn_flag
5390  else
5391    ac_cpp_err=
5392  fi
5393else
5394  ac_cpp_err=yes
5395fi
5396if test -z "$ac_cpp_err"; then
5397  ac_header_preproc=yes
5398else
5399  echo "$as_me: failed program was:" >&5
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
5402  ac_header_preproc=no
5403fi
5404rm -f conftest.err conftest.$ac_ext
5405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5406echo "${ECHO_T}$ac_header_preproc" >&6
5407
5408# So?  What about this header?
5409case $ac_header_compiler:$ac_header_preproc in
5410  yes:no )
5411    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5412echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5413    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5415    (
5416      cat <<\_ASBOX
5417## ------------------------------------ ##
5418## Report this to bug-autoconf@gnu.org. ##
5419## ------------------------------------ ##
5420_ASBOX
5421    ) |
5422      sed "s/^/$as_me: WARNING:     /" >&2
5423    ;;
5424  no:yes )
5425    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5427    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5429    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5431    (
5432      cat <<\_ASBOX
5433## ------------------------------------ ##
5434## Report this to bug-autoconf@gnu.org. ##
5435## ------------------------------------ ##
5436_ASBOX
5437    ) |
5438      sed "s/^/$as_me: WARNING:     /" >&2
5439    ;;
5440esac
5441echo "$as_me:$LINENO: checking for $ac_header" >&5
5442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5443if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444  echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446  eval "$as_ac_Header=$ac_header_preproc"
5447fi
5448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5450
5451fi
5452if test `eval echo '${'$as_ac_Header'}'` = yes; then
5453  cat >>confdefs.h <<_ACEOF
5454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455_ACEOF
5456
5457fi
5458
5459done
5460
5461
5462
5463
5464
5465
5466# Only perform the check for file, if the check method requires it
5467case $deplibs_check_method in
5468file_magic*)
5469  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5470    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5471echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5472if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5473  echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475  case $MAGIC_CMD in
5476  /*)
5477  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5478  ;;
5479  ?:/*)
5480  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5481  ;;
5482  *)
5483  ac_save_MAGIC_CMD="$MAGIC_CMD"
5484  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5485  ac_dummy="/usr/bin:$PATH"
5486  for ac_dir in $ac_dummy; do
5487    test -z "$ac_dir" && ac_dir=.
5488    if test -f $ac_dir/${ac_tool_prefix}file; then
5489      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5490      if test -n "$file_magic_test_file"; then
5491	case $deplibs_check_method in
5492	"file_magic "*)
5493	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5494	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5495	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5496	    egrep "$file_magic_regex" > /dev/null; then
5497	    :
5498	  else
5499	    cat <<EOF 1>&2
5500
5501*** Warning: the command libtool uses to detect shared libraries,
5502*** $file_magic_cmd, produces output that libtool cannot recognize.
5503*** The result is that libtool may fail to recognize shared libraries
5504*** as such.  This will affect the creation of libtool libraries that
5505*** depend on shared libraries, but programs linked with such libtool
5506*** libraries will work regardless of this problem.  Nevertheless, you
5507*** may want to report the problem to your system manager and/or to
5508*** bug-libtool@gnu.org
5509
5510EOF
5511	  fi ;;
5512	esac
5513      fi
5514      break
5515    fi
5516  done
5517  IFS="$ac_save_ifs"
5518  MAGIC_CMD="$ac_save_MAGIC_CMD"
5519  ;;
5520esac
5521fi
5522
5523MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5524if test -n "$MAGIC_CMD"; then
5525  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5526echo "${ECHO_T}$MAGIC_CMD" >&6
5527else
5528  echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
5530fi
5531
5532if test -z "$lt_cv_path_MAGIC_CMD"; then
5533  if test -n "$ac_tool_prefix"; then
5534    echo "$as_me:$LINENO: checking for file" >&5
5535echo $ECHO_N "checking for file... $ECHO_C" >&6
5536if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5537  echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539  case $MAGIC_CMD in
5540  /*)
5541  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5542  ;;
5543  ?:/*)
5544  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5545  ;;
5546  *)
5547  ac_save_MAGIC_CMD="$MAGIC_CMD"
5548  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5549  ac_dummy="/usr/bin:$PATH"
5550  for ac_dir in $ac_dummy; do
5551    test -z "$ac_dir" && ac_dir=.
5552    if test -f $ac_dir/file; then
5553      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5554      if test -n "$file_magic_test_file"; then
5555	case $deplibs_check_method in
5556	"file_magic "*)
5557	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5558	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5559	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5560	    egrep "$file_magic_regex" > /dev/null; then
5561	    :
5562	  else
5563	    cat <<EOF 1>&2
5564
5565*** Warning: the command libtool uses to detect shared libraries,
5566*** $file_magic_cmd, produces output that libtool cannot recognize.
5567*** The result is that libtool may fail to recognize shared libraries
5568*** as such.  This will affect the creation of libtool libraries that
5569*** depend on shared libraries, but programs linked with such libtool
5570*** libraries will work regardless of this problem.  Nevertheless, you
5571*** may want to report the problem to your system manager and/or to
5572*** bug-libtool@gnu.org
5573
5574EOF
5575	  fi ;;
5576	esac
5577      fi
5578      break
5579    fi
5580  done
5581  IFS="$ac_save_ifs"
5582  MAGIC_CMD="$ac_save_MAGIC_CMD"
5583  ;;
5584esac
5585fi
5586
5587MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5588if test -n "$MAGIC_CMD"; then
5589  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5590echo "${ECHO_T}$MAGIC_CMD" >&6
5591else
5592  echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594fi
5595
5596  else
5597    MAGIC_CMD=:
5598  fi
5599fi
5600
5601  fi
5602  ;;
5603esac
5604
5605if test -n "$ac_tool_prefix"; then
5606  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5607set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5608echo "$as_me:$LINENO: checking for $ac_word" >&5
5609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610if test "${ac_cv_prog_RANLIB+set}" = set; then
5611  echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613  if test -n "$RANLIB"; then
5614  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619  IFS=$as_save_IFS
5620  test -z "$as_dir" && as_dir=.
5621  for ac_exec_ext in '' $ac_executable_extensions; do
5622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625    break 2
5626  fi
5627done
5628done
5629
5630fi
5631fi
5632RANLIB=$ac_cv_prog_RANLIB
5633if test -n "$RANLIB"; then
5634  echo "$as_me:$LINENO: result: $RANLIB" >&5
5635echo "${ECHO_T}$RANLIB" >&6
5636else
5637  echo "$as_me:$LINENO: result: no" >&5
5638echo "${ECHO_T}no" >&6
5639fi
5640
5641fi
5642if test -z "$ac_cv_prog_RANLIB"; then
5643  ac_ct_RANLIB=$RANLIB
5644  # Extract the first word of "ranlib", so it can be a program name with args.
5645set dummy ranlib; ac_word=$2
5646echo "$as_me:$LINENO: checking for $ac_word" >&5
5647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651  if test -n "$ac_ct_RANLIB"; then
5652  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659  for ac_exec_ext in '' $ac_executable_extensions; do
5660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661    ac_cv_prog_ac_ct_RANLIB="ranlib"
5662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666done
5667
5668  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5669fi
5670fi
5671ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5672if test -n "$ac_ct_RANLIB"; then
5673  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5674echo "${ECHO_T}$ac_ct_RANLIB" >&6
5675else
5676  echo "$as_me:$LINENO: result: no" >&5
5677echo "${ECHO_T}no" >&6
5678fi
5679
5680  RANLIB=$ac_ct_RANLIB
5681else
5682  RANLIB="$ac_cv_prog_RANLIB"
5683fi
5684
5685if test -n "$ac_tool_prefix"; then
5686  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5687set dummy ${ac_tool_prefix}strip; ac_word=$2
5688echo "$as_me:$LINENO: checking for $ac_word" >&5
5689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690if test "${ac_cv_prog_STRIP+set}" = set; then
5691  echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693  if test -n "$STRIP"; then
5694  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699  IFS=$as_save_IFS
5700  test -z "$as_dir" && as_dir=.
5701  for ac_exec_ext in '' $ac_executable_extensions; do
5702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705    break 2
5706  fi
5707done
5708done
5709
5710fi
5711fi
5712STRIP=$ac_cv_prog_STRIP
5713if test -n "$STRIP"; then
5714  echo "$as_me:$LINENO: result: $STRIP" >&5
5715echo "${ECHO_T}$STRIP" >&6
5716else
5717  echo "$as_me:$LINENO: result: no" >&5
5718echo "${ECHO_T}no" >&6
5719fi
5720
5721fi
5722if test -z "$ac_cv_prog_STRIP"; then
5723  ac_ct_STRIP=$STRIP
5724  # Extract the first word of "strip", so it can be a program name with args.
5725set dummy strip; ac_word=$2
5726echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5729  echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731  if test -n "$ac_ct_STRIP"; then
5732  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737  IFS=$as_save_IFS
5738  test -z "$as_dir" && as_dir=.
5739  for ac_exec_ext in '' $ac_executable_extensions; do
5740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741    ac_cv_prog_ac_ct_STRIP="strip"
5742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743    break 2
5744  fi
5745done
5746done
5747
5748  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5749fi
5750fi
5751ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5752if test -n "$ac_ct_STRIP"; then
5753  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5754echo "${ECHO_T}$ac_ct_STRIP" >&6
5755else
5756  echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758fi
5759
5760  STRIP=$ac_ct_STRIP
5761else
5762  STRIP="$ac_cv_prog_STRIP"
5763fi
5764
5765
5766enable_dlopen=no
5767enable_win32_dll=no
5768
5769# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5770if test "${enable_libtool_lock+set}" = set; then
5771  enableval="$enable_libtool_lock"
5772
5773fi;
5774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5775
5776# Some flags need to be propagated to the compiler or linker for good
5777# libtool support.
5778case $host in
5779*-*-irix6*)
5780  # Find out which ABI we are using.
5781  echo '#line 5781 "configure"' > conftest.$ac_ext
5782  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783  (eval $ac_compile) 2>&5
5784  ac_status=$?
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); }; then
5787    case `/usr/bin/file conftest.$ac_objext` in
5788    *32-bit*)
5789      LD="${LD-ld} -32"
5790      ;;
5791    *N32*)
5792      LD="${LD-ld} -n32"
5793      ;;
5794    *64-bit*)
5795      LD="${LD-ld} -64"
5796      ;;
5797    esac
5798  fi
5799  rm -rf conftest*
5800  ;;
5801
5802*-*-linux*)
5803  # Test if the compiler is 64bit
5804  echo 'int i;' > conftest.$ac_ext
5805  lt_cv_cc_64bit_output=no
5806  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807  (eval $ac_compile) 2>&5
5808  ac_status=$?
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); }; then
5811    case `/usr/bin/file conftest.$ac_objext` in
5812    *"ELF 64"*)
5813      lt_cv_cc_64bit_output=yes
5814      ;;
5815    esac
5816  fi
5817  rm -rf conftest*
5818  ;;
5819
5820*-*-sco3.2v5*)
5821  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5822  SAVE_CFLAGS="$CFLAGS"
5823  CFLAGS="$CFLAGS -belf"
5824  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5825echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5826if test "${lt_cv_cc_needs_belf+set}" = set; then
5827  echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
5829
5830
5831     ac_ext=c
5832ac_cpp='$CPP $CPPFLAGS'
5833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836
5837     cat >conftest.$ac_ext <<_ACEOF
5838#line $LINENO "configure"
5839/* confdefs.h.  */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h.  */
5844
5845int
5846main ()
5847{
5848
5849  ;
5850  return 0;
5851}
5852_ACEOF
5853rm -f conftest.$ac_objext conftest$ac_exeext
5854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855  (eval $ac_link) 2>&5
5856  ac_status=$?
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); } &&
5859         { ac_try='test -s conftest$ac_exeext'
5860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861  (eval $ac_try) 2>&5
5862  ac_status=$?
5863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864  (exit $ac_status); }; }; then
5865  lt_cv_cc_needs_belf=yes
5866else
5867  echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870lt_cv_cc_needs_belf=no
5871fi
5872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5873     ac_ext=c
5874ac_cpp='$CPP $CPPFLAGS'
5875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877ac_compiler_gnu=$ac_cv_c_compiler_gnu
5878
5879fi
5880echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5881echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5882  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5883    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5884    CFLAGS="$SAVE_CFLAGS"
5885  fi
5886  ;;
5887
5888
5889esac
5890
5891# Sed substitution that helps us do robust quoting.  It backslashifies
5892# metacharacters that are still active within double-quoted strings.
5893Xsed='sed -e s/^X//'
5894sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5895
5896# Same as above, but do not quote variable references.
5897double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5898
5899# Sed substitution to delay expansion of an escaped shell variable in a
5900# double_quote_subst'ed string.
5901delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5902
5903# Constants:
5904rm="rm -f"
5905
5906# Global variables:
5907default_ofile=libtool
5908can_build_shared=yes
5909
5910# All known linkers require a `.a' archive for static linking (except M$VC,
5911# which needs '.lib').
5912libext=a
5913ltmain="$ac_aux_dir/ltmain.sh"
5914ofile="$default_ofile"
5915with_gnu_ld="$lt_cv_prog_gnu_ld"
5916need_locks="$enable_libtool_lock"
5917
5918old_CC="$CC"
5919old_CFLAGS="$CFLAGS"
5920
5921# Set sane defaults for various variables
5922test -z "$AR" && AR=ar
5923test -z "$AR_FLAGS" && AR_FLAGS=cru
5924test -z "$AS" && AS=as
5925test -z "$CC" && CC=cc
5926test -z "$DLLTOOL" && DLLTOOL=dlltool
5927test -z "$LD" && LD=ld
5928test -z "$LN_S" && LN_S="ln -s"
5929test -z "$MAGIC_CMD" && MAGIC_CMD=file
5930test -z "$NM" && NM=nm
5931test -z "$OBJDUMP" && OBJDUMP=objdump
5932test -z "$RANLIB" && RANLIB=:
5933test -z "$STRIP" && STRIP=:
5934test -z "$ac_objext" && ac_objext=o
5935
5936if test x"$host" != x"$build"; then
5937  ac_tool_prefix=${host_alias}-
5938else
5939  ac_tool_prefix=
5940fi
5941
5942# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5943case $host_os in
5944linux-gnu*) ;;
5945linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5946esac
5947
5948case $host_os in
5949aix3*)
5950  # AIX sometimes has problems with the GCC collect2 program.  For some
5951  # reason, if we set the COLLECT_NAMES environment variable, the problems
5952  # vanish in a puff of smoke.
5953  if test "X${COLLECT_NAMES+set}" != Xset; then
5954    COLLECT_NAMES=
5955    export COLLECT_NAMES
5956  fi
5957  ;;
5958esac
5959
5960# Determine commands to create old-style static archives.
5961old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5962old_postinstall_cmds='chmod 644 $oldlib'
5963old_postuninstall_cmds=
5964
5965if test -n "$RANLIB"; then
5966  case $host_os in
5967  openbsd*)
5968    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5969    ;;
5970  *)
5971    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5972    ;;
5973  esac
5974  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5975fi
5976
5977# Allow CC to be a program name with arguments.
5978set dummy $CC
5979compiler="$2"
5980
5981echo "$as_me:$LINENO: checking for objdir" >&5
5982echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5983rm -f .libs 2>/dev/null
5984mkdir .libs 2>/dev/null
5985if test -d .libs; then
5986  objdir=.libs
5987else
5988  # MS-DOS does not allow filenames that begin with a dot.
5989  objdir=_libs
5990fi
5991rmdir .libs 2>/dev/null
5992echo "$as_me:$LINENO: result: $objdir" >&5
5993echo "${ECHO_T}$objdir" >&6
5994
5995
5996
5997# Check whether --with-pic or --without-pic was given.
5998if test "${with_pic+set}" = set; then
5999  withval="$with_pic"
6000  pic_mode="$withval"
6001else
6002  pic_mode=default
6003fi;
6004test -z "$pic_mode" && pic_mode=default
6005
6006# We assume here that the value for lt_cv_prog_cc_pic will not be cached
6007# in isolation, and that seeing it set (from the cache) indicates that
6008# the associated values are set (in the cache) correctly too.
6009echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6010echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6011if test "${lt_cv_prog_cc_pic+set}" = set; then
6012  echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014   lt_cv_prog_cc_pic=
6015  lt_cv_prog_cc_shlib=
6016  lt_cv_prog_cc_wl=
6017  lt_cv_prog_cc_static=
6018  lt_cv_prog_cc_no_builtin=
6019  lt_cv_prog_cc_can_build_shared=$can_build_shared
6020
6021  if test "$GCC" = yes; then
6022    lt_cv_prog_cc_wl='-Wl,'
6023    lt_cv_prog_cc_static='-static'
6024
6025    case $host_os in
6026    aix*)
6027      # Below there is a dirty hack to force normal static linking with -ldl
6028      # The problem is because libdl dynamically linked with both libc and
6029      # libC (AIX C++ library), which obviously doesn't included in libraries
6030      # list by gcc. This cause undefined symbols with -static flags.
6031      # This hack allows C programs to be linked with "-static -ldl", but
6032      # not sure about C++ programs.
6033      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6034      ;;
6035    amigaos*)
6036      # FIXME: we need at least 68020 code to build shared libraries, but
6037      # adding the `-m68020' flag to GCC prevents building anything better,
6038      # like `-m68040'.
6039      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6040      ;;
6041    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6042      # PIC is the default for these OSes.
6043      ;;
6044    darwin* | rhapsody*)
6045      # PIC is the default on this platform
6046      # Common symbols not allowed in MH_DYLIB files
6047      lt_cv_prog_cc_pic='-fno-common'
6048      ;;
6049    cygwin* | mingw* | pw32* | os2*)
6050      # This hack is so that the source file can tell whether it is being
6051      # built for inclusion in a dll (and should export symbols for example).
6052      lt_cv_prog_cc_pic='-DDLL_EXPORT'
6053      ;;
6054    sysv4*MP*)
6055      if test -d /usr/nec; then
6056	 lt_cv_prog_cc_pic=-Kconform_pic
6057      fi
6058      ;;
6059    *)
6060      lt_cv_prog_cc_pic='-fPIC'
6061      ;;
6062    esac
6063  else
6064    # PORTME Check for PIC flags for the system compiler.
6065    case $host_os in
6066    aix3* | aix4* | aix5*)
6067      lt_cv_prog_cc_wl='-Wl,'
6068      # All AIX code is PIC.
6069      if test "$host_cpu" = ia64; then
6070	# AIX 5 now supports IA64 processor
6071	lt_cv_prog_cc_static='-Bstatic'
6072      else
6073	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6074      fi
6075      ;;
6076
6077    hpux9* | hpux10* | hpux11*)
6078      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6079      lt_cv_prog_cc_wl='-Wl,'
6080      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6081      lt_cv_prog_cc_pic='+Z'
6082      ;;
6083
6084    irix5* | irix6* | nonstopux*)
6085      lt_cv_prog_cc_wl='-Wl,'
6086      lt_cv_prog_cc_static='-non_shared'
6087      # PIC (with -KPIC) is the default.
6088      ;;
6089
6090    cygwin* | mingw* | pw32* | os2*)
6091      # This hack is so that the source file can tell whether it is being
6092      # built for inclusion in a dll (and should export symbols for example).
6093      lt_cv_prog_cc_pic='-DDLL_EXPORT'
6094      ;;
6095
6096    newsos6)
6097      lt_cv_prog_cc_pic='-KPIC'
6098      lt_cv_prog_cc_static='-Bstatic'
6099      ;;
6100
6101    osf3* | osf4* | osf5*)
6102      # All OSF/1 code is PIC.
6103      lt_cv_prog_cc_wl='-Wl,'
6104      lt_cv_prog_cc_static='-non_shared'
6105      ;;
6106
6107    sco3.2v5*)
6108      lt_cv_prog_cc_pic='-Kpic'
6109      lt_cv_prog_cc_static='-dn'
6110      lt_cv_prog_cc_shlib='-belf'
6111      ;;
6112
6113    solaris*)
6114      lt_cv_prog_cc_pic='-KPIC'
6115      lt_cv_prog_cc_static='-Bstatic'
6116      lt_cv_prog_cc_wl='-Wl,'
6117      ;;
6118
6119    sunos4*)
6120      lt_cv_prog_cc_pic='-PIC'
6121      lt_cv_prog_cc_static='-Bstatic'
6122      lt_cv_prog_cc_wl='-Qoption ld '
6123      ;;
6124
6125    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6126      lt_cv_prog_cc_pic='-KPIC'
6127      lt_cv_prog_cc_static='-Bstatic'
6128      lt_cv_prog_cc_wl='-Wl,'
6129      ;;
6130
6131    uts4*)
6132      lt_cv_prog_cc_pic='-pic'
6133      lt_cv_prog_cc_static='-Bstatic'
6134      ;;
6135
6136    sysv4*MP*)
6137      if test -d /usr/nec ;then
6138	lt_cv_prog_cc_pic='-Kconform_pic'
6139	lt_cv_prog_cc_static='-Bstatic'
6140      fi
6141      ;;
6142
6143    *)
6144      lt_cv_prog_cc_can_build_shared=no
6145      ;;
6146    esac
6147  fi
6148
6149fi
6150
6151if test -z "$lt_cv_prog_cc_pic"; then
6152  echo "$as_me:$LINENO: result: none" >&5
6153echo "${ECHO_T}none" >&6
6154else
6155  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6156echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6157
6158  # Check to make sure the pic_flag actually works.
6159  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6160echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6161  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164      save_CFLAGS="$CFLAGS"
6165    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6166    cat >conftest.$ac_ext <<_ACEOF
6167#line $LINENO "configure"
6168/* confdefs.h.  */
6169_ACEOF
6170cat confdefs.h >>conftest.$ac_ext
6171cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h.  */
6173
6174int
6175main ()
6176{
6177
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182rm -f conftest.$ac_objext
6183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184  (eval $ac_compile) 2>&5
6185  ac_status=$?
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); } &&
6188         { ac_try='test -s conftest.$ac_objext'
6189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190  (eval $ac_try) 2>&5
6191  ac_status=$?
6192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); }; }; then
6194        case $host_os in
6195      hpux9* | hpux10* | hpux11*)
6196	# On HP-UX, both CC and GCC only warn that PIC is supported... then
6197	# they create non-PIC objects.  So, if there were any warnings, we
6198	# assume that PIC is not supported.
6199	if test -s conftest.err; then
6200	  lt_cv_prog_cc_pic_works=no
6201	else
6202	  lt_cv_prog_cc_pic_works=yes
6203	fi
6204	;;
6205      *)
6206	lt_cv_prog_cc_pic_works=yes
6207	;;
6208      esac
6209
6210else
6211  echo "$as_me: failed program was:" >&5
6212sed 's/^/| /' conftest.$ac_ext >&5
6213
6214      lt_cv_prog_cc_pic_works=no
6215
6216fi
6217rm -f conftest.$ac_objext conftest.$ac_ext
6218    CFLAGS="$save_CFLAGS"
6219
6220fi
6221
6222
6223  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6224    lt_cv_prog_cc_pic=
6225    lt_cv_prog_cc_can_build_shared=no
6226  else
6227    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6228  fi
6229
6230  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6231echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6232fi
6233
6234# Check for any special shared library compilation flags.
6235if test -n "$lt_cv_prog_cc_shlib"; then
6236  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6237echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6238  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
6239  else
6240   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6241echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6242    lt_cv_prog_cc_can_build_shared=no
6243  fi
6244fi
6245
6246echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6247echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6248if test "${lt_cv_prog_cc_static_works+set}" = set; then
6249  echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251    lt_cv_prog_cc_static_works=no
6252  save_LDFLAGS="$LDFLAGS"
6253  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6254  cat >conftest.$ac_ext <<_ACEOF
6255#line $LINENO "configure"
6256/* confdefs.h.  */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h.  */
6261
6262int
6263main ()
6264{
6265
6266  ;
6267  return 0;
6268}
6269_ACEOF
6270rm -f conftest.$ac_objext conftest$ac_exeext
6271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272  (eval $ac_link) 2>&5
6273  ac_status=$?
6274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275  (exit $ac_status); } &&
6276         { ac_try='test -s conftest$ac_exeext'
6277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278  (eval $ac_try) 2>&5
6279  ac_status=$?
6280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281  (exit $ac_status); }; }; then
6282  lt_cv_prog_cc_static_works=yes
6283else
6284  echo "$as_me: failed program was:" >&5
6285sed 's/^/| /' conftest.$ac_ext >&5
6286
6287fi
6288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6289  LDFLAGS="$save_LDFLAGS"
6290
6291fi
6292
6293
6294# Belt *and* braces to stop my trousers falling down:
6295test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6296echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6297echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6298
6299pic_flag="$lt_cv_prog_cc_pic"
6300special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6301wl="$lt_cv_prog_cc_wl"
6302link_static_flag="$lt_cv_prog_cc_static"
6303no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6304can_build_shared="$lt_cv_prog_cc_can_build_shared"
6305
6306
6307# Check to see if options -o and -c are simultaneously supported by compiler
6308echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6309echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6310if test "${lt_cv_compiler_c_o+set}" = set; then
6311  echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313
6314$rm -r conftest 2>/dev/null
6315mkdir conftest
6316cd conftest
6317echo "int some_variable = 0;" > conftest.$ac_ext
6318mkdir out
6319# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6320# that will create temporary files in the current directory regardless of
6321# the output directory.  Thus, making CWD read-only will cause this test
6322# to fail, enabling locking or at least warning the user not to do parallel
6323# builds.
6324chmod -w .
6325save_CFLAGS="$CFLAGS"
6326CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6327compiler_c_o=no
6328if { (eval echo configure:6328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6329  # The compiler can only warn and ignore the option if not recognized
6330  # So say no if there are warnings
6331  if test -s out/conftest.err; then
6332    lt_cv_compiler_c_o=no
6333  else
6334    lt_cv_compiler_c_o=yes
6335  fi
6336else
6337  # Append any errors to the config.log.
6338  cat out/conftest.err 1>&5
6339  lt_cv_compiler_c_o=no
6340fi
6341CFLAGS="$save_CFLAGS"
6342chmod u+w .
6343$rm conftest* out/*
6344rmdir out
6345cd ..
6346rmdir conftest
6347$rm -r conftest 2>/dev/null
6348
6349fi
6350
6351compiler_c_o=$lt_cv_compiler_c_o
6352echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6353echo "${ECHO_T}$compiler_c_o" >&6
6354
6355if test x"$compiler_c_o" = x"yes"; then
6356  # Check to see if we can write to a .lo
6357  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6358echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6359  if test "${lt_cv_compiler_o_lo+set}" = set; then
6360  echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362
6363  lt_cv_compiler_o_lo=no
6364  save_CFLAGS="$CFLAGS"
6365  CFLAGS="$CFLAGS -c -o conftest.lo"
6366  save_objext="$ac_objext"
6367  ac_objext=lo
6368  cat >conftest.$ac_ext <<_ACEOF
6369#line $LINENO "configure"
6370/* confdefs.h.  */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h.  */
6375
6376int
6377main ()
6378{
6379int some_variable = 0;
6380  ;
6381  return 0;
6382}
6383_ACEOF
6384rm -f conftest.$ac_objext
6385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386  (eval $ac_compile) 2>&5
6387  ac_status=$?
6388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389  (exit $ac_status); } &&
6390         { ac_try='test -s conftest.$ac_objext'
6391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392  (eval $ac_try) 2>&5
6393  ac_status=$?
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); }; }; then
6396      # The compiler can only warn and ignore the option if not recognized
6397    # So say no if there are warnings
6398    if test -s conftest.err; then
6399      lt_cv_compiler_o_lo=no
6400    else
6401      lt_cv_compiler_o_lo=yes
6402    fi
6403
6404else
6405  echo "$as_me: failed program was:" >&5
6406sed 's/^/| /' conftest.$ac_ext >&5
6407
6408fi
6409rm -f conftest.$ac_objext conftest.$ac_ext
6410  ac_objext="$save_objext"
6411  CFLAGS="$save_CFLAGS"
6412
6413fi
6414
6415  compiler_o_lo=$lt_cv_compiler_o_lo
6416  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6417echo "${ECHO_T}$compiler_o_lo" >&6
6418else
6419  compiler_o_lo=no
6420fi
6421
6422# Check to see if we can do hard links to lock some files if needed
6423hard_links="nottested"
6424if test "$compiler_c_o" = no && test "$need_locks" != no; then
6425  # do not overwrite the value of need_locks provided by the user
6426  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6427echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6428  hard_links=yes
6429  $rm conftest*
6430  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6431  touch conftest.a
6432  ln conftest.a conftest.b 2>&5 || hard_links=no
6433  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6434  echo "$as_me:$LINENO: result: $hard_links" >&5
6435echo "${ECHO_T}$hard_links" >&6
6436  if test "$hard_links" = no; then
6437    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6438echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6439    need_locks=warn
6440  fi
6441else
6442  need_locks=no
6443fi
6444
6445if test "$GCC" = yes; then
6446  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6447  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6448echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6449  echo "int some_variable = 0;" > conftest.$ac_ext
6450  save_CFLAGS="$CFLAGS"
6451  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6452  compiler_rtti_exceptions=no
6453  cat >conftest.$ac_ext <<_ACEOF
6454#line $LINENO "configure"
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460
6461int
6462main ()
6463{
6464int some_variable = 0;
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471  (eval $ac_compile) 2>&5
6472  ac_status=$?
6473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474  (exit $ac_status); } &&
6475         { ac_try='test -s conftest.$ac_objext'
6476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477  (eval $ac_try) 2>&5
6478  ac_status=$?
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); }; }; then
6481      # The compiler can only warn and ignore the option if not recognized
6482    # So say no if there are warnings
6483    if test -s conftest.err; then
6484      compiler_rtti_exceptions=no
6485    else
6486      compiler_rtti_exceptions=yes
6487    fi
6488
6489else
6490  echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
6492
6493fi
6494rm -f conftest.$ac_objext conftest.$ac_ext
6495  CFLAGS="$save_CFLAGS"
6496  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6497echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6498
6499  if test "$compiler_rtti_exceptions" = "yes"; then
6500    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6501  else
6502    no_builtin_flag=' -fno-builtin'
6503  fi
6504fi
6505
6506# See if the linker supports building shared libraries.
6507echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6508echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6509
6510allow_undefined_flag=
6511no_undefined_flag=
6512need_lib_prefix=unknown
6513need_version=unknown
6514# when you set need_version to no, make sure it does not cause -set_version
6515# flags to be left without arguments
6516archive_cmds=
6517archive_expsym_cmds=
6518old_archive_from_new_cmds=
6519old_archive_from_expsyms_cmds=
6520export_dynamic_flag_spec=
6521whole_archive_flag_spec=
6522thread_safe_flag_spec=
6523hardcode_into_libs=no
6524hardcode_libdir_flag_spec=
6525hardcode_libdir_separator=
6526hardcode_direct=no
6527hardcode_minus_L=no
6528hardcode_shlibpath_var=unsupported
6529runpath_var=
6530link_all_deplibs=unknown
6531always_export_symbols=no
6532export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6533# include_expsyms should be a list of space-separated symbols to be *always*
6534# included in the symbol list
6535include_expsyms=
6536# exclude_expsyms can be an egrep regular expression of symbols to exclude
6537# it will be wrapped by ` (' and `)$', so one must not match beginning or
6538# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6539# as well as any symbol that contains `d'.
6540exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6541# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6542# platforms (ab)use it in PIC code, but their linkers get confused if
6543# the symbol is explicitly referenced.  Since portable code cannot
6544# rely on this symbol name, it's probably fine to never include it in
6545# preloaded symbol tables.
6546extract_expsyms_cmds=
6547
6548case $host_os in
6549cygwin* | mingw* | pw32*)
6550  # FIXME: the MSVC++ port hasn't been tested in a loooong time
6551  # When not using gcc, we currently assume that we are using
6552  # Microsoft Visual C++.
6553  if test "$GCC" != yes; then
6554    with_gnu_ld=no
6555  fi
6556  ;;
6557openbsd*)
6558  with_gnu_ld=no
6559  ;;
6560esac
6561
6562ld_shlibs=yes
6563if test "$with_gnu_ld" = yes; then
6564  # If archive_cmds runs LD, not CC, wlarc should be empty
6565  wlarc='${wl}'
6566
6567  # See if GNU ld supports shared libraries.
6568  case $host_os in
6569  aix3* | aix4* | aix5*)
6570    # On AIX, the GNU linker is very broken
6571    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6572    ld_shlibs=no
6573    cat <<EOF 1>&2
6574
6575*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6576*** to be unable to reliably create shared libraries on AIX.
6577*** Therefore, libtool is disabling shared libraries support.  If you
6578*** really care for shared libraries, you may want to modify your PATH
6579*** so that a non-GNU linker is found, and then restart.
6580
6581EOF
6582    ;;
6583
6584  amigaos*)
6585    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)'
6586    hardcode_libdir_flag_spec='-L$libdir'
6587    hardcode_minus_L=yes
6588
6589    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6590    # that the semantics of dynamic libraries on AmigaOS, at least up
6591    # to version 4, is to share data among multiple programs linked
6592    # with the same dynamic library.  Since this doesn't match the
6593    # behavior of shared libraries on other platforms, we can use
6594    # them.
6595    ld_shlibs=no
6596    ;;
6597
6598  beos*)
6599    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6600      allow_undefined_flag=unsupported
6601      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6602      # support --undefined.  This deserves some investigation.  FIXME
6603      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6604    else
6605      ld_shlibs=no
6606    fi
6607    ;;
6608
6609  cygwin* | mingw* | pw32*)
6610    # hardcode_libdir_flag_spec is actually meaningless, as there is
6611    # no search path for DLLs.
6612    hardcode_libdir_flag_spec='-L$libdir'
6613    allow_undefined_flag=unsupported
6614    always_export_symbols=yes
6615
6616    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6617      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6618      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6619      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6620      else $CC -o impgen impgen.c ; fi)~
6621      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6622
6623    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6624
6625    # cygwin and mingw dlls have different entry points and sets of symbols
6626    # to exclude.
6627    # FIXME: what about values for MSVC?
6628    dll_entry=__cygwin_dll_entry@12
6629    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6630    case $host_os in
6631    mingw*)
6632      # mingw values
6633      dll_entry=_DllMainCRTStartup@12
6634      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6635      ;;
6636    esac
6637
6638    # mingw and cygwin differ, and it's simplest to just exclude the union
6639    # of the two symbol sets.
6640    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6641
6642    # recent cygwin and mingw systems supply a stub DllMain which the user
6643    # can override, but on older systems we have to supply one (in ltdll.c)
6644    if test "x$lt_cv_need_dllmain" = "xyes"; then
6645      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6646      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~
6647	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6648    else
6649      ltdll_obj=
6650      ltdll_cmds=
6651    fi
6652
6653    # Extract the symbol export list from an `--export-all' def file,
6654    # then regenerate the def file from the symbol export list, so that
6655    # the compiled dll only exports the symbol export list.
6656    # Be careful not to strip the DATA tag left be newer dlltools.
6657    export_symbols_cmds="$ltdll_cmds"'
6658      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6659      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6660
6661    # If the export-symbols file already is a .def file (1st line
6662    # is EXPORTS), use it as is.
6663    # If DATA tags from a recent dlltool are present, honour them!
6664    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6665	cp $export_symbols $output_objdir/$soname-def;
6666      else
6667	echo EXPORTS > $output_objdir/$soname-def;
6668	_lt_hint=1;
6669	cat $export_symbols | while read symbol; do
6670	 set dummy \$symbol;
6671	 case \$# in
6672	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6673	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6674	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6675	 esac;
6676	 _lt_hint=`expr 1 + \$_lt_hint`;
6677	done;
6678      fi~
6679      '"$ltdll_cmds"'
6680      $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~
6681      $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~
6682      $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~
6683      $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~
6684      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6685    ;;
6686
6687  netbsd*)
6688    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6689      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6690      wlarc=
6691    else
6692      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6693      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6694    fi
6695    ;;
6696
6697  solaris* | sysv5*)
6698    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6699      ld_shlibs=no
6700      cat <<EOF 1>&2
6701
6702*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6703*** create shared libraries on Solaris systems.  Therefore, libtool
6704*** is disabling shared libraries support.  We urge you to upgrade GNU
6705*** binutils to release 2.9.1 or newer.  Another option is to modify
6706*** your PATH or compiler configuration so that the native linker is
6707*** used, and then restart.
6708
6709EOF
6710    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6711      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6712      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6713    else
6714      ld_shlibs=no
6715    fi
6716    ;;
6717
6718  sunos4*)
6719    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6720    wlarc=
6721    hardcode_direct=yes
6722    hardcode_shlibpath_var=no
6723    ;;
6724
6725  *)
6726    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6727      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6729    else
6730      ld_shlibs=no
6731    fi
6732    ;;
6733  esac
6734
6735  if test "$ld_shlibs" = yes; then
6736    runpath_var=LD_RUN_PATH
6737    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6738    export_dynamic_flag_spec='${wl}--export-dynamic'
6739    case $host_os in
6740    cygwin* | mingw* | pw32*)
6741      # dlltool doesn't understand --whole-archive et. al.
6742      whole_archive_flag_spec=
6743      ;;
6744    *)
6745      # ancient GNU ld didn't support --whole-archive et. al.
6746      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6747	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6748      else
6749	whole_archive_flag_spec=
6750      fi
6751      ;;
6752    esac
6753  fi
6754else
6755  # PORTME fill in a description of your system's linker (not GNU ld)
6756  case $host_os in
6757  aix3*)
6758    allow_undefined_flag=unsupported
6759    always_export_symbols=yes
6760    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'
6761    # Note: this linker hardcodes the directories in LIBPATH if there
6762    # are no directories specified by -L.
6763    hardcode_minus_L=yes
6764    if test "$GCC" = yes && test -z "$link_static_flag"; then
6765      # Neither direct hardcoding nor static linking is supported with a
6766      # broken collect2.
6767      hardcode_direct=unsupported
6768    fi
6769    ;;
6770
6771  aix4* | aix5*)
6772    if test "$host_cpu" = ia64; then
6773      # On IA64, the linker does run time linking by default, so we don't
6774      # have to do anything special.
6775      aix_use_runtimelinking=no
6776      exp_sym_flag='-Bexport'
6777      no_entry_flag=""
6778    else
6779      aix_use_runtimelinking=no
6780
6781      # Test if we are trying to use run time linking or normal
6782      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6783      # need to do runtime linking.
6784      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6785	for ld_flag in $LDFLAGS; do
6786	  case $ld_flag in
6787	  *-brtl*)
6788	    aix_use_runtimelinking=yes
6789	    break
6790	  ;;
6791	  esac
6792	done
6793      esac
6794
6795      exp_sym_flag='-bexport'
6796      no_entry_flag='-bnoentry'
6797    fi
6798
6799    # When large executables or shared objects are built, AIX ld can
6800    # have problems creating the table of contents.  If linking a library
6801    # or program results in "error TOC overflow" add -mminimal-toc to
6802    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6803    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6804
6805    hardcode_direct=yes
6806    archive_cmds=''
6807    hardcode_libdir_separator=':'
6808    if test "$GCC" = yes; then
6809      case $host_os in aix4.[012]|aix4.[012].*)
6810	collect2name=`${CC} -print-prog-name=collect2`
6811	if test -f "$collect2name" && \
6812	  strings "$collect2name" | grep resolve_lib_name >/dev/null
6813	then
6814	  # We have reworked collect2
6815	  hardcode_direct=yes
6816	else
6817	  # We have old collect2
6818	  hardcode_direct=unsupported
6819	  # It fails to find uninstalled libraries when the uninstalled
6820	  # path is not listed in the libpath.  Setting hardcode_minus_L
6821	  # to unsupported forces relinking
6822	  hardcode_minus_L=yes
6823	  hardcode_libdir_flag_spec='-L$libdir'
6824	  hardcode_libdir_separator=
6825	fi
6826      esac
6827
6828      shared_flag='-shared'
6829    else
6830      # not using gcc
6831      if test "$host_cpu" = ia64; then
6832	shared_flag='${wl}-G'
6833      else
6834	if test "$aix_use_runtimelinking" = yes; then
6835	  shared_flag='${wl}-G'
6836	else
6837	  shared_flag='${wl}-bM:SRE'
6838	fi
6839      fi
6840    fi
6841
6842    # It seems that -bexpall can do strange things, so it is better to
6843    # generate a list of symbols to export.
6844    always_export_symbols=yes
6845    if test "$aix_use_runtimelinking" = yes; then
6846      # Warning - without using the other runtime loading flags (-brtl),
6847      # -berok will link without error, but may produce a broken library.
6848      allow_undefined_flag='-berok'
6849      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6850      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"
6851    else
6852      if test "$host_cpu" = ia64; then
6853	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6854	allow_undefined_flag="-z nodefs"
6855	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"
6856      else
6857	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6858	# Warning - without using the other run time loading flags,
6859	# -berok will link without error, but may produce a broken library.
6860	allow_undefined_flag='${wl}-berok'
6861	# This is a bit strange, but is similar to how AIX traditionally builds
6862	# it's shared libraries.
6863	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'
6864      fi
6865    fi
6866    ;;
6867
6868  amigaos*)
6869    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)'
6870    hardcode_libdir_flag_spec='-L$libdir'
6871    hardcode_minus_L=yes
6872    # see comment about different semantics on the GNU ld section
6873    ld_shlibs=no
6874    ;;
6875
6876  cygwin* | mingw* | pw32*)
6877    # When not using gcc, we currently assume that we are using
6878    # Microsoft Visual C++.
6879    # hardcode_libdir_flag_spec is actually meaningless, as there is
6880    # no search path for DLLs.
6881    hardcode_libdir_flag_spec=' '
6882    allow_undefined_flag=unsupported
6883    # Tell ltmain to make .lib files, not .a files.
6884    libext=lib
6885    # FIXME: Setting linknames here is a bad hack.
6886    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6887    # The linker will automatically build a .lib file if we build a DLL.
6888    old_archive_from_new_cmds='true'
6889    # FIXME: Should let the user specify the lib program.
6890    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6891    fix_srcfile_path='`cygpath -w "$srcfile"`'
6892    ;;
6893
6894  darwin* | rhapsody*)
6895    case "$host_os" in
6896    rhapsody* | darwin1.[012])
6897      allow_undefined_flag='-undefined suppress'
6898      ;;
6899    *) # Darwin 1.3 on
6900      allow_undefined_flag='-flat_namespace -undefined suppress'
6901      ;;
6902    esac
6903    # FIXME: Relying on posixy $() will cause problems for
6904    #        cross-compilation, but unfortunately the echo tests do not
6905    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6906    #	     `"' quotes if we put them in here... so don't!
6907    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)'
6908    # We need to add '_' to the symbols in $export_symbols first
6909    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6910    hardcode_direct=yes
6911    hardcode_shlibpath_var=no
6912    whole_archive_flag_spec='-all_load $convenience'
6913    ;;
6914
6915  freebsd1*)
6916    ld_shlibs=no
6917    ;;
6918
6919  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6920  # support.  Future versions do this automatically, but an explicit c++rt0.o
6921  # does not break anything, and helps significantly (at the cost of a little
6922  # extra space).
6923  freebsd2.2*)
6924    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6925    hardcode_libdir_flag_spec='-R$libdir'
6926    hardcode_direct=yes
6927    hardcode_shlibpath_var=no
6928    ;;
6929
6930  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6931  freebsd2*)
6932    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6933    hardcode_direct=yes
6934    hardcode_minus_L=yes
6935    hardcode_shlibpath_var=no
6936    ;;
6937
6938  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6939  freebsd*)
6940    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6941    hardcode_libdir_flag_spec='-R$libdir'
6942    hardcode_direct=yes
6943    hardcode_shlibpath_var=no
6944    ;;
6945
6946  hpux9* | hpux10* | hpux11*)
6947    case $host_os in
6948    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' ;;
6949    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6950    esac
6951    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6952    hardcode_libdir_separator=:
6953    hardcode_direct=yes
6954    hardcode_minus_L=yes # Not in the search PATH, but as the default
6955			 # location of the library.
6956    export_dynamic_flag_spec='${wl}-E'
6957    ;;
6958
6959  irix5* | irix6* | nonstopux*)
6960    if test "$GCC" = yes; then
6961      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'
6962      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6963    else
6964      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'
6965      hardcode_libdir_flag_spec='-rpath $libdir'
6966    fi
6967    hardcode_libdir_separator=:
6968    link_all_deplibs=yes
6969    ;;
6970
6971  netbsd*)
6972    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6973      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6974    else
6975      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6976    fi
6977    hardcode_libdir_flag_spec='-R$libdir'
6978    hardcode_direct=yes
6979    hardcode_shlibpath_var=no
6980    ;;
6981
6982  newsos6)
6983    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6984    hardcode_direct=yes
6985    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6986    hardcode_libdir_separator=:
6987    hardcode_shlibpath_var=no
6988    ;;
6989
6990  openbsd*)
6991    hardcode_direct=yes
6992    hardcode_shlibpath_var=no
6993    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6994      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6995      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6996      export_dynamic_flag_spec='${wl}-E'
6997    else
6998      case "$host_os" in
6999      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7000	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7001	hardcode_libdir_flag_spec='-R$libdir'
7002        ;;
7003      *)
7004        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7005        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7006        ;;
7007      esac
7008    fi
7009    ;;
7010
7011  os2*)
7012    hardcode_libdir_flag_spec='-L$libdir'
7013    hardcode_minus_L=yes
7014    allow_undefined_flag=unsupported
7015    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'
7016    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7017    ;;
7018
7019  osf3*)
7020    if test "$GCC" = yes; then
7021      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7022      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'
7023    else
7024      allow_undefined_flag=' -expect_unresolved \*'
7025      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'
7026    fi
7027    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7028    hardcode_libdir_separator=:
7029    ;;
7030
7031  osf4* | osf5*)	# as osf3* with the addition of -msym flag
7032    if test "$GCC" = yes; then
7033      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7034      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'
7035      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7036    else
7037      allow_undefined_flag=' -expect_unresolved \*'
7038      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'
7039      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7040      $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'
7041
7042      #Both c and cxx compiler support -rpath directly
7043      hardcode_libdir_flag_spec='-rpath $libdir'
7044    fi
7045    hardcode_libdir_separator=:
7046    ;;
7047
7048  sco3.2v5*)
7049    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7050    hardcode_shlibpath_var=no
7051    runpath_var=LD_RUN_PATH
7052    hardcode_runpath_var=yes
7053    export_dynamic_flag_spec='${wl}-Bexport'
7054    ;;
7055
7056  solaris*)
7057    # gcc --version < 3.0 without binutils cannot create self contained
7058    # shared libraries reliably, requiring libgcc.a to resolve some of
7059    # the object symbols generated in some cases.  Libraries that use
7060    # assert need libgcc.a to resolve __eprintf, for example.  Linking
7061    # a copy of libgcc.a into every shared library to guarantee resolving
7062    # such symbols causes other problems:  According to Tim Van Holder
7063    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7064    # (to the application) exception stack for one thing.
7065    no_undefined_flag=' -z defs'
7066    if test "$GCC" = yes; then
7067      case `$CC --version 2>/dev/null` in
7068      [12].*)
7069	cat <<EOF 1>&2
7070
7071*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7072*** create self contained shared libraries on Solaris systems, without
7073*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
7074*** -no-undefined support, which will at least allow you to build shared
7075*** libraries.  However, you may find that when you link such libraries
7076*** into an application without using GCC, you have to manually add
7077*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
7078*** upgrade to a newer version of GCC.  Another option is to rebuild your
7079*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7080
7081EOF
7082        no_undefined_flag=
7083	;;
7084      esac
7085    fi
7086    # $CC -shared without GNU ld will not create a library from C++
7087    # object files and a static libstdc++, better avoid it by now
7088    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7089    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7090		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7091    hardcode_libdir_flag_spec='-R$libdir'
7092    hardcode_shlibpath_var=no
7093    case $host_os in
7094    solaris2.[0-5] | solaris2.[0-5].*) ;;
7095    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7096      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7097    esac
7098    link_all_deplibs=yes
7099    ;;
7100
7101  sunos4*)
7102    if test "x$host_vendor" = xsequent; then
7103      # Use $CC to link under sequent, because it throws in some extra .o
7104      # files that make .init and .fini sections work.
7105      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7106    else
7107      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7108    fi
7109    hardcode_libdir_flag_spec='-L$libdir'
7110    hardcode_direct=yes
7111    hardcode_minus_L=yes
7112    hardcode_shlibpath_var=no
7113    ;;
7114
7115  sysv4)
7116    case $host_vendor in
7117      sni)
7118        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7119        hardcode_direct=yes # is this really true???
7120        ;;
7121      siemens)
7122        ## LD is ld it makes a PLAMLIB
7123        ## CC just makes a GrossModule.
7124        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7125        reload_cmds='$CC -r -o $output$reload_objs'
7126        hardcode_direct=no
7127        ;;
7128      motorola)
7129        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7130        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7131        ;;
7132    esac
7133    runpath_var='LD_RUN_PATH'
7134    hardcode_shlibpath_var=no
7135    ;;
7136
7137  sysv4.3*)
7138    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7139    hardcode_shlibpath_var=no
7140    export_dynamic_flag_spec='-Bexport'
7141    ;;
7142
7143  sysv5*)
7144    no_undefined_flag=' -z text'
7145    # $CC -shared without GNU ld will not create a library from C++
7146    # object files and a static libstdc++, better avoid it by now
7147    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7148    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7149		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7150    hardcode_libdir_flag_spec=
7151    hardcode_shlibpath_var=no
7152    runpath_var='LD_RUN_PATH'
7153    ;;
7154
7155  uts4*)
7156    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7157    hardcode_libdir_flag_spec='-L$libdir'
7158    hardcode_shlibpath_var=no
7159    ;;
7160
7161  dgux*)
7162    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7163    hardcode_libdir_flag_spec='-L$libdir'
7164    hardcode_shlibpath_var=no
7165    ;;
7166
7167  sysv4*MP*)
7168    if test -d /usr/nec; then
7169      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7170      hardcode_shlibpath_var=no
7171      runpath_var=LD_RUN_PATH
7172      hardcode_runpath_var=yes
7173      ld_shlibs=yes
7174    fi
7175    ;;
7176
7177  sysv4.2uw2*)
7178    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7179    hardcode_direct=yes
7180    hardcode_minus_L=no
7181    hardcode_shlibpath_var=no
7182    hardcode_runpath_var=yes
7183    runpath_var=LD_RUN_PATH
7184    ;;
7185
7186  sysv5uw7* | unixware7*)
7187    no_undefined_flag='${wl}-z ${wl}text'
7188    if test "$GCC" = yes; then
7189      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7190    else
7191      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192    fi
7193    runpath_var='LD_RUN_PATH'
7194    hardcode_shlibpath_var=no
7195    ;;
7196
7197  *)
7198    ld_shlibs=no
7199    ;;
7200  esac
7201fi
7202echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7203echo "${ECHO_T}$ld_shlibs" >&6
7204test "$ld_shlibs" = no && can_build_shared=no
7205
7206# Check hardcoding attributes.
7207echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7208echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7209hardcode_action=
7210if test -n "$hardcode_libdir_flag_spec" || \
7211   test -n "$runpath_var"; then
7212
7213  # We can hardcode non-existant directories.
7214  if test "$hardcode_direct" != no &&
7215     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7216     # have to relink, otherwise we might link with an installed library
7217     # when we should be linking with a yet-to-be-installed one
7218     ## test "$hardcode_shlibpath_var" != no &&
7219     test "$hardcode_minus_L" != no; then
7220    # Linking always hardcodes the temporary library directory.
7221    hardcode_action=relink
7222  else
7223    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7224    hardcode_action=immediate
7225  fi
7226else
7227  # We cannot hardcode anything, or else we can only hardcode existing
7228  # directories.
7229  hardcode_action=unsupported
7230fi
7231echo "$as_me:$LINENO: result: $hardcode_action" >&5
7232echo "${ECHO_T}$hardcode_action" >&6
7233
7234striplib=
7235old_striplib=
7236echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7237echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7238if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7239  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7240  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7241  echo "$as_me:$LINENO: result: yes" >&5
7242echo "${ECHO_T}yes" >&6
7243else
7244  echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6
7246fi
7247
7248reload_cmds='$LD$reload_flag -o $output$reload_objs'
7249test -z "$deplibs_check_method" && deplibs_check_method=unknown
7250
7251# PORTME Fill in your ld.so characteristics
7252echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7253echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7254library_names_spec=
7255libname_spec='lib$name'
7256soname_spec=
7257postinstall_cmds=
7258postuninstall_cmds=
7259finish_cmds=
7260finish_eval=
7261shlibpath_var=
7262shlibpath_overrides_runpath=unknown
7263version_type=none
7264dynamic_linker="$host_os ld.so"
7265sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
7266sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
7267
7268case $host_os in
7269aix3*)
7270  version_type=linux
7271  library_names_spec='${libname}${release}.so$versuffix $libname.a'
7272  shlibpath_var=LIBPATH
7273
7274  # AIX has no versioning support, so we append a major version to the name.
7275  soname_spec='${libname}${release}.so$major'
7276  ;;
7277
7278aix4* | aix5*)
7279  version_type=linux
7280  need_lib_prefix=no
7281  need_version=no
7282  hardcode_into_libs=yes
7283  if test "$host_cpu" = ia64; then
7284    # AIX 5 supports IA64
7285    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7286    shlibpath_var=LD_LIBRARY_PATH
7287  else
7288    # With GCC up to 2.95.x, collect2 would create an import file
7289    # for dependence libraries.  The import file would start with
7290    # the line `#! .'.  This would cause the generated library to
7291    # depend on `.', always an invalid library.  This was fixed in
7292    # development snapshots of GCC prior to 3.0.
7293    case $host_os in
7294      aix4 | aix4.[01] | aix4.[01].*)
7295	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7296	     echo ' yes '
7297	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7298	  :
7299	else
7300	  can_build_shared=no
7301	fi
7302	;;
7303    esac
7304    # AIX (on Power*) has no versioning support, so currently we can
7305    # not hardcode correct soname into executable. Probably we can
7306    # add versioning support to collect2, so additional links can
7307    # be useful in future.
7308    if test "$aix_use_runtimelinking" = yes; then
7309      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7310      # instead of lib<name>.a to let people know that these are not
7311      # typical AIX shared libraries.
7312      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7313    else
7314      # We preserve .a as extension for shared libraries through AIX4.2
7315      # and later when we are not doing run time linking.
7316      library_names_spec='${libname}${release}.a $libname.a'
7317      soname_spec='${libname}${release}.so$major'
7318    fi
7319    shlibpath_var=LIBPATH
7320  fi
7321  hardcode_into_libs=yes
7322  ;;
7323
7324amigaos*)
7325  library_names_spec='$libname.ixlibrary $libname.a'
7326  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7327  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'
7328  ;;
7329
7330beos*)
7331  library_names_spec='${libname}.so'
7332  dynamic_linker="$host_os ld.so"
7333  shlibpath_var=LIBRARY_PATH
7334  ;;
7335
7336bsdi4*)
7337  version_type=linux
7338  need_version=no
7339  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7340  soname_spec='${libname}${release}.so$major'
7341  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7342  shlibpath_var=LD_LIBRARY_PATH
7343  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7344  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7345  export_dynamic_flag_spec=-rdynamic
7346  # the default ld.so.conf also contains /usr/contrib/lib and
7347  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7348  # libtool to hard-code these into programs
7349  ;;
7350
7351cygwin* | mingw* | pw32*)
7352  version_type=windows
7353  need_version=no
7354  need_lib_prefix=no
7355  case $GCC,$host_os in
7356  yes,cygwin*)
7357    library_names_spec='$libname.dll.a'
7358    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7359    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7360      dldir=$destdir/`dirname \$dlpath`~
7361      test -d \$dldir || mkdir -p \$dldir~
7362      $install_prog .libs/$dlname \$dldir/$dlname'
7363    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7364      dlpath=$dir/\$dldll~
7365       $rm \$dlpath'
7366    ;;
7367  yes,mingw*)
7368    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7369    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7370    ;;
7371  yes,pw32*)
7372    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7373    ;;
7374  *)
7375    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7376    ;;
7377  esac
7378  dynamic_linker='Win32 ld.exe'
7379  # FIXME: first we should search . and the directory the executable is in
7380  shlibpath_var=PATH
7381  ;;
7382
7383darwin* | rhapsody*)
7384  dynamic_linker="$host_os dyld"
7385  version_type=darwin
7386  need_lib_prefix=no
7387  need_version=no
7388  # FIXME: Relying on posixy $() will cause problems for
7389  #        cross-compilation, but unfortunately the echo tests do not
7390  #        yet detect zsh echo's removal of \ escapes.
7391  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)'
7392  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7393  shlibpath_overrides_runpath=yes
7394  shlibpath_var=DYLD_LIBRARY_PATH
7395  ;;
7396
7397freebsd1*)
7398  dynamic_linker=no
7399  ;;
7400
7401freebsd*)
7402  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7403  version_type=freebsd-$objformat
7404  case $version_type in
7405    freebsd-elf*)
7406      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7407      need_version=no
7408      need_lib_prefix=no
7409      ;;
7410    freebsd-*)
7411      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7412      need_version=yes
7413      ;;
7414  esac
7415  shlibpath_var=LD_LIBRARY_PATH
7416  case $host_os in
7417  freebsd2*)
7418    shlibpath_overrides_runpath=yes
7419    ;;
7420  *)
7421    shlibpath_overrides_runpath=no
7422    hardcode_into_libs=yes
7423    ;;
7424  esac
7425  ;;
7426
7427gnu*)
7428  version_type=linux
7429  need_lib_prefix=no
7430  need_version=no
7431  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7432  soname_spec='${libname}${release}.so$major'
7433  shlibpath_var=LD_LIBRARY_PATH
7434  hardcode_into_libs=yes
7435  ;;
7436
7437hpux9* | hpux10* | hpux11*)
7438  # Give a soname corresponding to the major version so that dld.sl refuses to
7439  # link against other versions.
7440  dynamic_linker="$host_os dld.sl"
7441  version_type=sunos
7442  need_lib_prefix=no
7443  need_version=no
7444  shlibpath_var=SHLIB_PATH
7445  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7446  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7447  soname_spec='${libname}${release}.sl$major'
7448  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7449  postinstall_cmds='chmod 555 $lib'
7450  ;;
7451
7452irix5* | irix6* | nonstopux*)
7453  case $host_os in
7454    nonstopux*) version_type=nonstopux ;;
7455    *)          version_type=irix ;;
7456  esac
7457  need_lib_prefix=no
7458  need_version=no
7459  soname_spec='${libname}${release}.so$major'
7460  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7461  case $host_os in
7462  irix5* | nonstopux*)
7463    libsuff= shlibsuff=
7464    ;;
7465  *)
7466    case $LD in # libtool.m4 will add one of these switches to LD
7467    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7468    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7469    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7470    *) libsuff= shlibsuff= libmagic=never-match;;
7471    esac
7472    ;;
7473  esac
7474  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7475  shlibpath_overrides_runpath=no
7476  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7477  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7478  ;;
7479
7480# No shared lib support for Linux oldld, aout, or coff.
7481linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7482  dynamic_linker=no
7483  ;;
7484
7485# This must be Linux ELF.
7486linux-gnu*)
7487  version_type=linux
7488  need_lib_prefix=no
7489  need_version=no
7490  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7491  soname_spec='${libname}${release}.so$major'
7492  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7493  shlibpath_var=LD_LIBRARY_PATH
7494  shlibpath_overrides_runpath=no
7495  # This implies no fast_install, which is unacceptable.
7496  # Some rework will be needed to allow for fast_install
7497  # before this can be enabled.
7498  hardcode_into_libs=yes
7499
7500  case $host_cpu:$lt_cv_cc_64bit_output in
7501  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7502    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7503    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7504    ;;
7505  esac
7506
7507  # We used to test for /lib/ld.so.1 and disable shared libraries on
7508  # powerpc, because MkLinux only supported shared libraries with the
7509  # GNU dynamic linker.  Since this was broken with cross compilers,
7510  # most powerpc-linux boxes support dynamic linking these days and
7511  # people can always --disable-shared, the test was removed, and we
7512  # assume the GNU/Linux dynamic linker is in use.
7513  dynamic_linker='GNU/Linux ld.so'
7514  ;;
7515
7516netbsd*)
7517  version_type=sunos
7518  need_lib_prefix=no
7519  need_version=no
7520  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7521    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7522    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7523    dynamic_linker='NetBSD (a.out) ld.so'
7524  else
7525    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7526    soname_spec='${libname}${release}.so$major'
7527    dynamic_linker='NetBSD ld.elf_so'
7528  fi
7529  shlibpath_var=LD_LIBRARY_PATH
7530  shlibpath_overrides_runpath=yes
7531  hardcode_into_libs=yes
7532  ;;
7533
7534newsos6)
7535  version_type=linux
7536  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7537  shlibpath_var=LD_LIBRARY_PATH
7538  shlibpath_overrides_runpath=yes
7539  ;;
7540
7541openbsd*)
7542  version_type=sunos
7543  need_lib_prefix=no
7544  need_version=no
7545  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7546    case "$host_os" in
7547    openbsd2.[89] | openbsd2.[89].*)
7548      shlibpath_overrides_runpath=no
7549      ;;
7550    *)
7551      shlibpath_overrides_runpath=yes
7552      ;;
7553    esac
7554  else
7555    shlibpath_overrides_runpath=yes
7556  fi
7557  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7559  shlibpath_var=LD_LIBRARY_PATH
7560  ;;
7561
7562os2*)
7563  libname_spec='$name'
7564  need_lib_prefix=no
7565  library_names_spec='$libname.dll $libname.a'
7566  dynamic_linker='OS/2 ld.exe'
7567  shlibpath_var=LIBPATH
7568  ;;
7569
7570osf3* | osf4* | osf5*)
7571  version_type=osf
7572  need_version=no
7573  soname_spec='${libname}${release}.so$major'
7574  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7575  shlibpath_var=LD_LIBRARY_PATH
7576  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7577  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7578  hardcode_into_libs=yes
7579  ;;
7580
7581sco3.2v5*)
7582  version_type=osf
7583  soname_spec='${libname}${release}.so$major'
7584  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7585  shlibpath_var=LD_LIBRARY_PATH
7586  ;;
7587
7588solaris*)
7589  version_type=linux
7590  need_lib_prefix=no
7591  need_version=no
7592  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7593  soname_spec='${libname}${release}.so$major'
7594  shlibpath_var=LD_LIBRARY_PATH
7595  shlibpath_overrides_runpath=yes
7596  hardcode_into_libs=yes
7597  # ldd complains unless libraries are executable
7598  postinstall_cmds='chmod +x $lib'
7599  ;;
7600
7601sunos4*)
7602  version_type=sunos
7603  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7604  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7605  shlibpath_var=LD_LIBRARY_PATH
7606  shlibpath_overrides_runpath=yes
7607  if test "$with_gnu_ld" = yes; then
7608    need_lib_prefix=no
7609  fi
7610  need_version=yes
7611  ;;
7612
7613sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7614  version_type=linux
7615  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7616  soname_spec='${libname}${release}.so$major'
7617  shlibpath_var=LD_LIBRARY_PATH
7618  case $host_vendor in
7619    sni)
7620      shlibpath_overrides_runpath=no
7621      need_lib_prefix=no
7622      export_dynamic_flag_spec='${wl}-Blargedynsym'
7623      runpath_var=LD_RUN_PATH
7624      ;;
7625    siemens)
7626      need_lib_prefix=no
7627      ;;
7628    motorola)
7629      need_lib_prefix=no
7630      need_version=no
7631      shlibpath_overrides_runpath=no
7632      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7633      ;;
7634  esac
7635  ;;
7636
7637uts4*)
7638  version_type=linux
7639  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7640  soname_spec='${libname}${release}.so$major'
7641  shlibpath_var=LD_LIBRARY_PATH
7642  ;;
7643
7644dgux*)
7645  version_type=linux
7646  need_lib_prefix=no
7647  need_version=no
7648  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7649  soname_spec='${libname}${release}.so$major'
7650  shlibpath_var=LD_LIBRARY_PATH
7651  ;;
7652
7653sysv4*MP*)
7654  if test -d /usr/nec ;then
7655    version_type=linux
7656    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7657    soname_spec='$libname.so.$major'
7658    shlibpath_var=LD_LIBRARY_PATH
7659  fi
7660  ;;
7661
7662*)
7663  dynamic_linker=no
7664  ;;
7665esac
7666echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7667echo "${ECHO_T}$dynamic_linker" >&6
7668test "$dynamic_linker" = no && can_build_shared=no
7669
7670# Report the final consequences.
7671echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7672echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7673echo "$as_me:$LINENO: result: $can_build_shared" >&5
7674echo "${ECHO_T}$can_build_shared" >&6
7675
7676echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7677echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7678test "$can_build_shared" = "no" && enable_shared=no
7679
7680# On AIX, shared libraries and static libraries use the same namespace, and
7681# are all built from PIC.
7682case "$host_os" in
7683aix3*)
7684  test "$enable_shared" = yes && enable_static=no
7685  if test -n "$RANLIB"; then
7686    archive_cmds="$archive_cmds~\$RANLIB \$lib"
7687    postinstall_cmds='$RANLIB $lib'
7688  fi
7689  ;;
7690
7691aix4*)
7692  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7693    test "$enable_shared" = yes && enable_static=no
7694  fi
7695  ;;
7696esac
7697echo "$as_me:$LINENO: result: $enable_shared" >&5
7698echo "${ECHO_T}$enable_shared" >&6
7699
7700echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7701echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7702# Make sure either enable_shared or enable_static is yes.
7703test "$enable_shared" = yes || enable_static=yes
7704echo "$as_me:$LINENO: result: $enable_static" >&5
7705echo "${ECHO_T}$enable_static" >&6
7706
7707if test "$hardcode_action" = relink; then
7708  # Fast installation is not supported
7709  enable_fast_install=no
7710elif test "$shlibpath_overrides_runpath" = yes ||
7711     test "$enable_shared" = no; then
7712  # Fast installation is not necessary
7713  enable_fast_install=needless
7714fi
7715
7716variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7717if test "$GCC" = yes; then
7718  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7719fi
7720
7721if test "x$enable_dlopen" != xyes; then
7722  enable_dlopen=unknown
7723  enable_dlopen_self=unknown
7724  enable_dlopen_self_static=unknown
7725else
7726  lt_cv_dlopen=no
7727  lt_cv_dlopen_libs=
7728
7729  case $host_os in
7730  beos*)
7731    lt_cv_dlopen="load_add_on"
7732    lt_cv_dlopen_libs=
7733    lt_cv_dlopen_self=yes
7734    ;;
7735
7736  cygwin* | mingw* | pw32*)
7737    lt_cv_dlopen="LoadLibrary"
7738    lt_cv_dlopen_libs=
7739   ;;
7740
7741  *)
7742    echo "$as_me:$LINENO: checking for shl_load" >&5
7743echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7744if test "${ac_cv_func_shl_load+set}" = set; then
7745  echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747  cat >conftest.$ac_ext <<_ACEOF
7748#line $LINENO "configure"
7749/* confdefs.h.  */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h.  */
7754/* System header to define __stub macros and hopefully few prototypes,
7755    which can conflict with char shl_load (); below.
7756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757    <limits.h> exists even on freestanding compilers.  */
7758#ifdef __STDC__
7759# include <limits.h>
7760#else
7761# include <assert.h>
7762#endif
7763/* Override any gcc2 internal prototype to avoid an error.  */
7764#ifdef __cplusplus
7765extern "C"
7766{
7767#endif
7768/* We use char because int might match the return type of a gcc2
7769   builtin and then its argument prototype would still apply.  */
7770char shl_load ();
7771/* The GNU C library defines this for functions which it implements
7772    to always fail with ENOSYS.  Some functions are actually named
7773    something starting with __ and the normal name is an alias.  */
7774#if defined (__stub_shl_load) || defined (__stub___shl_load)
7775choke me
7776#else
7777char (*f) () = shl_load;
7778#endif
7779#ifdef __cplusplus
7780}
7781#endif
7782
7783int
7784main ()
7785{
7786return f != shl_load;
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791rm -f conftest.$ac_objext conftest$ac_exeext
7792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793  (eval $ac_link) 2>&5
7794  ac_status=$?
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); } &&
7797         { ac_try='test -s conftest$ac_exeext'
7798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799  (eval $ac_try) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); }; }; then
7803  ac_cv_func_shl_load=yes
7804else
7805  echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808ac_cv_func_shl_load=no
7809fi
7810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7811fi
7812echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7813echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7814if test $ac_cv_func_shl_load = yes; then
7815  lt_cv_dlopen="shl_load"
7816else
7817  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7818echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7819if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7820  echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822  ac_check_lib_save_LIBS=$LIBS
7823LIBS="-ldld  $LIBS"
7824cat >conftest.$ac_ext <<_ACEOF
7825#line $LINENO "configure"
7826/* confdefs.h.  */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h.  */
7831
7832/* Override any gcc2 internal prototype to avoid an error.  */
7833#ifdef __cplusplus
7834extern "C"
7835#endif
7836/* We use char because int might match the return type of a gcc2
7837   builtin and then its argument prototype would still apply.  */
7838char shl_load ();
7839int
7840main ()
7841{
7842shl_load ();
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847rm -f conftest.$ac_objext conftest$ac_exeext
7848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849  (eval $ac_link) 2>&5
7850  ac_status=$?
7851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852  (exit $ac_status); } &&
7853         { ac_try='test -s conftest$ac_exeext'
7854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855  (eval $ac_try) 2>&5
7856  ac_status=$?
7857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858  (exit $ac_status); }; }; then
7859  ac_cv_lib_dld_shl_load=yes
7860else
7861  echo "$as_me: failed program was:" >&5
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
7864ac_cv_lib_dld_shl_load=no
7865fi
7866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867LIBS=$ac_check_lib_save_LIBS
7868fi
7869echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7870echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7871if test $ac_cv_lib_dld_shl_load = yes; then
7872  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7873else
7874  echo "$as_me:$LINENO: checking for dlopen" >&5
7875echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7876if test "${ac_cv_func_dlopen+set}" = set; then
7877  echo $ECHO_N "(cached) $ECHO_C" >&6
7878else
7879  cat >conftest.$ac_ext <<_ACEOF
7880#line $LINENO "configure"
7881/* confdefs.h.  */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h.  */
7886/* System header to define __stub macros and hopefully few prototypes,
7887    which can conflict with char dlopen (); below.
7888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889    <limits.h> exists even on freestanding compilers.  */
7890#ifdef __STDC__
7891# include <limits.h>
7892#else
7893# include <assert.h>
7894#endif
7895/* Override any gcc2 internal prototype to avoid an error.  */
7896#ifdef __cplusplus
7897extern "C"
7898{
7899#endif
7900/* We use char because int might match the return type of a gcc2
7901   builtin and then its argument prototype would still apply.  */
7902char dlopen ();
7903/* The GNU C library defines this for functions which it implements
7904    to always fail with ENOSYS.  Some functions are actually named
7905    something starting with __ and the normal name is an alias.  */
7906#if defined (__stub_dlopen) || defined (__stub___dlopen)
7907choke me
7908#else
7909char (*f) () = dlopen;
7910#endif
7911#ifdef __cplusplus
7912}
7913#endif
7914
7915int
7916main ()
7917{
7918return f != dlopen;
7919  ;
7920  return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext conftest$ac_exeext
7924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7925  (eval $ac_link) 2>&5
7926  ac_status=$?
7927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928  (exit $ac_status); } &&
7929         { ac_try='test -s conftest$ac_exeext'
7930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931  (eval $ac_try) 2>&5
7932  ac_status=$?
7933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934  (exit $ac_status); }; }; then
7935  ac_cv_func_dlopen=yes
7936else
7937  echo "$as_me: failed program was:" >&5
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7940ac_cv_func_dlopen=no
7941fi
7942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7943fi
7944echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7945echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7946if test $ac_cv_func_dlopen = yes; then
7947  lt_cv_dlopen="dlopen"
7948else
7949  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7950echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7951if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7952  echo $ECHO_N "(cached) $ECHO_C" >&6
7953else
7954  ac_check_lib_save_LIBS=$LIBS
7955LIBS="-ldl  $LIBS"
7956cat >conftest.$ac_ext <<_ACEOF
7957#line $LINENO "configure"
7958/* confdefs.h.  */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
7962/* end confdefs.h.  */
7963
7964/* Override any gcc2 internal prototype to avoid an error.  */
7965#ifdef __cplusplus
7966extern "C"
7967#endif
7968/* We use char because int might match the return type of a gcc2
7969   builtin and then its argument prototype would still apply.  */
7970char dlopen ();
7971int
7972main ()
7973{
7974dlopen ();
7975  ;
7976  return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
7980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981  (eval $ac_link) 2>&5
7982  ac_status=$?
7983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984  (exit $ac_status); } &&
7985         { ac_try='test -s conftest$ac_exeext'
7986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987  (eval $ac_try) 2>&5
7988  ac_status=$?
7989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990  (exit $ac_status); }; }; then
7991  ac_cv_lib_dl_dlopen=yes
7992else
7993  echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
7996ac_cv_lib_dl_dlopen=no
7997fi
7998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7999LIBS=$ac_check_lib_save_LIBS
8000fi
8001echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8002echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8003if test $ac_cv_lib_dl_dlopen = yes; then
8004  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8005else
8006  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8007echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8008if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8009  echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011  ac_check_lib_save_LIBS=$LIBS
8012LIBS="-lsvld  $LIBS"
8013cat >conftest.$ac_ext <<_ACEOF
8014#line $LINENO "configure"
8015/* confdefs.h.  */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h.  */
8020
8021/* Override any gcc2 internal prototype to avoid an error.  */
8022#ifdef __cplusplus
8023extern "C"
8024#endif
8025/* We use char because int might match the return type of a gcc2
8026   builtin and then its argument prototype would still apply.  */
8027char dlopen ();
8028int
8029main ()
8030{
8031dlopen ();
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036rm -f conftest.$ac_objext conftest$ac_exeext
8037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038  (eval $ac_link) 2>&5
8039  ac_status=$?
8040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041  (exit $ac_status); } &&
8042         { ac_try='test -s conftest$ac_exeext'
8043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044  (eval $ac_try) 2>&5
8045  ac_status=$?
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); }; }; then
8048  ac_cv_lib_svld_dlopen=yes
8049else
8050  echo "$as_me: failed program was:" >&5
8051sed 's/^/| /' conftest.$ac_ext >&5
8052
8053ac_cv_lib_svld_dlopen=no
8054fi
8055rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056LIBS=$ac_check_lib_save_LIBS
8057fi
8058echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8059echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8060if test $ac_cv_lib_svld_dlopen = yes; then
8061  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8062else
8063  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8064echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8065if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8066  echo $ECHO_N "(cached) $ECHO_C" >&6
8067else
8068  ac_check_lib_save_LIBS=$LIBS
8069LIBS="-ldld  $LIBS"
8070cat >conftest.$ac_ext <<_ACEOF
8071#line $LINENO "configure"
8072/* confdefs.h.  */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h.  */
8077
8078/* Override any gcc2 internal prototype to avoid an error.  */
8079#ifdef __cplusplus
8080extern "C"
8081#endif
8082/* We use char because int might match the return type of a gcc2
8083   builtin and then its argument prototype would still apply.  */
8084char dld_link ();
8085int
8086main ()
8087{
8088dld_link ();
8089  ;
8090  return 0;
8091}
8092_ACEOF
8093rm -f conftest.$ac_objext conftest$ac_exeext
8094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095  (eval $ac_link) 2>&5
8096  ac_status=$?
8097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098  (exit $ac_status); } &&
8099         { ac_try='test -s conftest$ac_exeext'
8100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101  (eval $ac_try) 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }; }; then
8105  ac_cv_lib_dld_dld_link=yes
8106else
8107  echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110ac_cv_lib_dld_dld_link=no
8111fi
8112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8113LIBS=$ac_check_lib_save_LIBS
8114fi
8115echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8116echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8117if test $ac_cv_lib_dld_dld_link = yes; then
8118  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8119fi
8120
8121
8122fi
8123
8124
8125fi
8126
8127
8128fi
8129
8130
8131fi
8132
8133
8134fi
8135
8136    ;;
8137  esac
8138
8139  if test "x$lt_cv_dlopen" != xno; then
8140    enable_dlopen=yes
8141  else
8142    enable_dlopen=no
8143  fi
8144
8145  case $lt_cv_dlopen in
8146  dlopen)
8147    save_CPPFLAGS="$CPPFLAGS"
8148        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8149
8150    save_LDFLAGS="$LDFLAGS"
8151    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8152
8153    save_LIBS="$LIBS"
8154    LIBS="$lt_cv_dlopen_libs $LIBS"
8155
8156    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8157echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8158if test "${lt_cv_dlopen_self+set}" = set; then
8159  echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161  	  if test "$cross_compiling" = yes; then :
8162  lt_cv_dlopen_self=cross
8163else
8164    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8165  lt_status=$lt_dlunknown
8166  cat > conftest.$ac_ext <<EOF
8167#line 8167 "configure"
8168#include "confdefs.h"
8169
8170#if HAVE_DLFCN_H
8171#include <dlfcn.h>
8172#endif
8173
8174#include <stdio.h>
8175
8176#ifdef RTLD_GLOBAL
8177#  define LT_DLGLOBAL		RTLD_GLOBAL
8178#else
8179#  ifdef DL_GLOBAL
8180#    define LT_DLGLOBAL		DL_GLOBAL
8181#  else
8182#    define LT_DLGLOBAL		0
8183#  endif
8184#endif
8185
8186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8187   find out it does not work in some platform. */
8188#ifndef LT_DLLAZY_OR_NOW
8189#  ifdef RTLD_LAZY
8190#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8191#  else
8192#    ifdef DL_LAZY
8193#      define LT_DLLAZY_OR_NOW		DL_LAZY
8194#    else
8195#      ifdef RTLD_NOW
8196#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8197#      else
8198#        ifdef DL_NOW
8199#          define LT_DLLAZY_OR_NOW	DL_NOW
8200#        else
8201#          define LT_DLLAZY_OR_NOW	0
8202#        endif
8203#      endif
8204#    endif
8205#  endif
8206#endif
8207
8208#ifdef __cplusplus
8209extern "C" void exit (int);
8210#endif
8211
8212void fnord() { int i=42;}
8213int main ()
8214{
8215  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8216  int status = $lt_dlunknown;
8217
8218  if (self)
8219    {
8220      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8221      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8222      /* dlclose (self); */
8223    }
8224
8225    exit (status);
8226}
8227EOF
8228  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229  (eval $ac_link) 2>&5
8230  ac_status=$?
8231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8233    (./conftest; exit; ) 2>/dev/null
8234    lt_status=$?
8235    case x$lt_status in
8236      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8237      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8238      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8239    esac
8240  else :
8241    # compilation failed
8242    lt_cv_dlopen_self=no
8243  fi
8244fi
8245rm -fr conftest*
8246
8247
8248fi
8249echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8250echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8251
8252    if test "x$lt_cv_dlopen_self" = xyes; then
8253      LDFLAGS="$LDFLAGS $link_static_flag"
8254      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8255echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8256if test "${lt_cv_dlopen_self_static+set}" = set; then
8257  echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259  	  if test "$cross_compiling" = yes; then :
8260  lt_cv_dlopen_self_static=cross
8261else
8262    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8263  lt_status=$lt_dlunknown
8264  cat > conftest.$ac_ext <<EOF
8265#line 8265 "configure"
8266#include "confdefs.h"
8267
8268#if HAVE_DLFCN_H
8269#include <dlfcn.h>
8270#endif
8271
8272#include <stdio.h>
8273
8274#ifdef RTLD_GLOBAL
8275#  define LT_DLGLOBAL		RTLD_GLOBAL
8276#else
8277#  ifdef DL_GLOBAL
8278#    define LT_DLGLOBAL		DL_GLOBAL
8279#  else
8280#    define LT_DLGLOBAL		0
8281#  endif
8282#endif
8283
8284/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8285   find out it does not work in some platform. */
8286#ifndef LT_DLLAZY_OR_NOW
8287#  ifdef RTLD_LAZY
8288#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8289#  else
8290#    ifdef DL_LAZY
8291#      define LT_DLLAZY_OR_NOW		DL_LAZY
8292#    else
8293#      ifdef RTLD_NOW
8294#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8295#      else
8296#        ifdef DL_NOW
8297#          define LT_DLLAZY_OR_NOW	DL_NOW
8298#        else
8299#          define LT_DLLAZY_OR_NOW	0
8300#        endif
8301#      endif
8302#    endif
8303#  endif
8304#endif
8305
8306#ifdef __cplusplus
8307extern "C" void exit (int);
8308#endif
8309
8310void fnord() { int i=42;}
8311int main ()
8312{
8313  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8314  int status = $lt_dlunknown;
8315
8316  if (self)
8317    {
8318      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8319      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8320      /* dlclose (self); */
8321    }
8322
8323    exit (status);
8324}
8325EOF
8326  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327  (eval $ac_link) 2>&5
8328  ac_status=$?
8329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8331    (./conftest; exit; ) 2>/dev/null
8332    lt_status=$?
8333    case x$lt_status in
8334      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8335      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8336      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8337    esac
8338  else :
8339    # compilation failed
8340    lt_cv_dlopen_self_static=no
8341  fi
8342fi
8343rm -fr conftest*
8344
8345
8346fi
8347echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8348echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8349    fi
8350
8351    CPPFLAGS="$save_CPPFLAGS"
8352    LDFLAGS="$save_LDFLAGS"
8353    LIBS="$save_LIBS"
8354    ;;
8355  esac
8356
8357  case $lt_cv_dlopen_self in
8358  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8359  *) enable_dlopen_self=unknown ;;
8360  esac
8361
8362  case $lt_cv_dlopen_self_static in
8363  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8364  *) enable_dlopen_self_static=unknown ;;
8365  esac
8366fi
8367
8368
8369if test "$enable_shared" = yes && test "$GCC" = yes; then
8370  case $archive_cmds in
8371  *'~'*)
8372    # FIXME: we may have to deal with multi-command sequences.
8373    ;;
8374  '$CC '*)
8375    # Test whether the compiler implicitly links with -lc since on some
8376    # systems, -lgcc has to come before -lc. If gcc already passes -lc
8377    # to ld, don't add -lc before -lgcc.
8378    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8379echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8380    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8381  echo $ECHO_N "(cached) $ECHO_C" >&6
8382else
8383  $rm conftest*
8384    echo 'static int dummy;' > conftest.$ac_ext
8385
8386    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387  (eval $ac_compile) 2>&5
8388  ac_status=$?
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); }; then
8391      soname=conftest
8392      lib=conftest
8393      libobjs=conftest.$ac_objext
8394      deplibs=
8395      wl=$lt_cv_prog_cc_wl
8396      compiler_flags=-v
8397      linker_flags=-v
8398      verstring=
8399      output_objdir=.
8400      libname=conftest
8401      save_allow_undefined_flag=$allow_undefined_flag
8402      allow_undefined_flag=
8403      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8404  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8405  ac_status=$?
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); }
8408      then
8409	lt_cv_archive_cmds_need_lc=no
8410      else
8411	lt_cv_archive_cmds_need_lc=yes
8412      fi
8413      allow_undefined_flag=$save_allow_undefined_flag
8414    else
8415      cat conftest.err 1>&5
8416    fi
8417fi
8418
8419    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8420echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8421    ;;
8422  esac
8423fi
8424need_lc=${lt_cv_archive_cmds_need_lc-yes}
8425
8426# The second clause should only fire when bootstrapping the
8427# libtool distribution, otherwise you forgot to ship ltmain.sh
8428# with your package, and you will get complaints that there are
8429# no rules to generate ltmain.sh.
8430if test -f "$ltmain"; then
8431  :
8432else
8433  # If there is no Makefile yet, we rely on a make rule to execute
8434  # `config.status --recheck' to rerun these tests and create the
8435  # libtool script then.
8436  test -f Makefile && make "$ltmain"
8437fi
8438
8439if test -f "$ltmain"; then
8440  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8441  $rm -f "${ofile}T"
8442
8443  echo creating $ofile
8444
8445  # Now quote all the things that may contain metacharacters while being
8446  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8447  # variables and quote the copies for generation of the libtool script.
8448  for var in echo old_CC old_CFLAGS SED \
8449    AR AR_FLAGS CC LD LN_S NM SHELL \
8450    reload_flag reload_cmds wl \
8451    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8452    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8453    library_names_spec soname_spec \
8454    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8455    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8456    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8457    old_striplib striplib file_magic_cmd export_symbols_cmds \
8458    deplibs_check_method allow_undefined_flag no_undefined_flag \
8459    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8460    global_symbol_to_c_name_address \
8461    hardcode_libdir_flag_spec hardcode_libdir_separator  \
8462    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8463    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8464
8465    case $var in
8466    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8467    old_postinstall_cmds | old_postuninstall_cmds | \
8468    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8469    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8470    postinstall_cmds | postuninstall_cmds | \
8471    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8472      # Double-quote double-evaled strings.
8473      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8474      ;;
8475    *)
8476      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8477      ;;
8478    esac
8479  done
8480
8481  cat <<__EOF__ > "${ofile}T"
8482#! $SHELL
8483
8484# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8485# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8486# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8487#
8488# Copyright (C) 1996-2000 Free Software Foundation, Inc.
8489# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8490#
8491# This program is free software; you can redistribute it and/or modify
8492# it under the terms of the GNU General Public License as published by
8493# the Free Software Foundation; either version 2 of the License, or
8494# (at your option) any later version.
8495#
8496# This program is distributed in the hope that it will be useful, but
8497# WITHOUT ANY WARRANTY; without even the implied warranty of
8498# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8499# General Public License for more details.
8500#
8501# You should have received a copy of the GNU General Public License
8502# along with this program; if not, write to the Free Software
8503# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8504#
8505# As a special exception to the GNU General Public License, if you
8506# distribute this file as part of a program that contains a
8507# configuration script generated by Autoconf, you may include it under
8508# the same distribution terms that you use for the rest of that program.
8509
8510# A sed that does not truncate output.
8511SED=$lt_SED
8512
8513# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8514Xsed="${SED} -e s/^X//"
8515
8516# The HP-UX ksh and POSIX shell print the target directory to stdout
8517# if CDPATH is set.
8518if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8519
8520# ### BEGIN LIBTOOL CONFIG
8521
8522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8523
8524# Shell to use when invoking shell scripts.
8525SHELL=$lt_SHELL
8526
8527# Whether or not to build shared libraries.
8528build_libtool_libs=$enable_shared
8529
8530# Whether or not to build static libraries.
8531build_old_libs=$enable_static
8532
8533# Whether or not to add -lc for building shared libraries.
8534build_libtool_need_lc=$need_lc
8535
8536# Whether or not to optimize for fast installation.
8537fast_install=$enable_fast_install
8538
8539# The host system.
8540host_alias=$host_alias
8541host=$host
8542
8543# An echo program that does not interpret backslashes.
8544echo=$lt_echo
8545
8546# The archiver.
8547AR=$lt_AR
8548AR_FLAGS=$lt_AR_FLAGS
8549
8550# The default C compiler.
8551CC=$lt_CC
8552
8553# Is the compiler the GNU C compiler?
8554with_gcc=$GCC
8555
8556# The linker used to build libraries.
8557LD=$lt_LD
8558
8559# Whether we need hard or soft links.
8560LN_S=$lt_LN_S
8561
8562# A BSD-compatible nm program.
8563NM=$lt_NM
8564
8565# A symbol stripping program
8566STRIP=$STRIP
8567
8568# Used to examine libraries when file_magic_cmd begins "file"
8569MAGIC_CMD=$MAGIC_CMD
8570
8571# Used on cygwin: DLL creation program.
8572DLLTOOL="$DLLTOOL"
8573
8574# Used on cygwin: object dumper.
8575OBJDUMP="$OBJDUMP"
8576
8577# Used on cygwin: assembler.
8578AS="$AS"
8579
8580# The name of the directory that contains temporary libtool files.
8581objdir=$objdir
8582
8583# How to create reloadable object files.
8584reload_flag=$lt_reload_flag
8585reload_cmds=$lt_reload_cmds
8586
8587# How to pass a linker flag through the compiler.
8588wl=$lt_wl
8589
8590# Object file suffix (normally "o").
8591objext="$ac_objext"
8592
8593# Old archive suffix (normally "a").
8594libext="$libext"
8595
8596# Executable file suffix (normally "").
8597exeext="$exeext"
8598
8599# Additional compiler flags for building library objects.
8600pic_flag=$lt_pic_flag
8601pic_mode=$pic_mode
8602
8603# Does compiler simultaneously support -c and -o options?
8604compiler_c_o=$lt_compiler_c_o
8605
8606# Can we write directly to a .lo ?
8607compiler_o_lo=$lt_compiler_o_lo
8608
8609# Must we lock files when doing compilation ?
8610need_locks=$lt_need_locks
8611
8612# Do we need the lib prefix for modules?
8613need_lib_prefix=$need_lib_prefix
8614
8615# Do we need a version for libraries?
8616need_version=$need_version
8617
8618# Whether dlopen is supported.
8619dlopen_support=$enable_dlopen
8620
8621# Whether dlopen of programs is supported.
8622dlopen_self=$enable_dlopen_self
8623
8624# Whether dlopen of statically linked programs is supported.
8625dlopen_self_static=$enable_dlopen_self_static
8626
8627# Compiler flag to prevent dynamic linking.
8628link_static_flag=$lt_link_static_flag
8629
8630# Compiler flag to turn off builtin functions.
8631no_builtin_flag=$lt_no_builtin_flag
8632
8633# Compiler flag to allow reflexive dlopens.
8634export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8635
8636# Compiler flag to generate shared objects directly from archives.
8637whole_archive_flag_spec=$lt_whole_archive_flag_spec
8638
8639# Compiler flag to generate thread-safe objects.
8640thread_safe_flag_spec=$lt_thread_safe_flag_spec
8641
8642# Library versioning type.
8643version_type=$version_type
8644
8645# Format of library name prefix.
8646libname_spec=$lt_libname_spec
8647
8648# List of archive names.  First name is the real one, the rest are links.
8649# The last name is the one that the linker finds with -lNAME.
8650library_names_spec=$lt_library_names_spec
8651
8652# The coded name of the library, if different from the real name.
8653soname_spec=$lt_soname_spec
8654
8655# Commands used to build and install an old-style archive.
8656RANLIB=$lt_RANLIB
8657old_archive_cmds=$lt_old_archive_cmds
8658old_postinstall_cmds=$lt_old_postinstall_cmds
8659old_postuninstall_cmds=$lt_old_postuninstall_cmds
8660
8661# Create an old-style archive from a shared archive.
8662old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8663
8664# Create a temporary old-style archive to link instead of a shared archive.
8665old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8666
8667# Commands used to build and install a shared archive.
8668archive_cmds=$lt_archive_cmds
8669archive_expsym_cmds=$lt_archive_expsym_cmds
8670postinstall_cmds=$lt_postinstall_cmds
8671postuninstall_cmds=$lt_postuninstall_cmds
8672
8673# Commands to strip libraries.
8674old_striplib=$lt_old_striplib
8675striplib=$lt_striplib
8676
8677# Method to check whether dependent libraries are shared objects.
8678deplibs_check_method=$lt_deplibs_check_method
8679
8680# Command to use when deplibs_check_method == file_magic.
8681file_magic_cmd=$lt_file_magic_cmd
8682
8683# Flag that allows shared libraries with undefined symbols to be built.
8684allow_undefined_flag=$lt_allow_undefined_flag
8685
8686# Flag that forces no undefined symbols.
8687no_undefined_flag=$lt_no_undefined_flag
8688
8689# Commands used to finish a libtool library installation in a directory.
8690finish_cmds=$lt_finish_cmds
8691
8692# Same as above, but a single script fragment to be evaled but not shown.
8693finish_eval=$lt_finish_eval
8694
8695# Take the output of nm and produce a listing of raw symbols and C names.
8696global_symbol_pipe=$lt_global_symbol_pipe
8697
8698# Transform the output of nm in a proper C declaration
8699global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8700
8701# Transform the output of nm in a C name address pair
8702global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8703
8704# This is the shared library runtime path variable.
8705runpath_var=$runpath_var
8706
8707# This is the shared library path variable.
8708shlibpath_var=$shlibpath_var
8709
8710# Is shlibpath searched before the hard-coded library search path?
8711shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8712
8713# How to hardcode a shared library path into an executable.
8714hardcode_action=$hardcode_action
8715
8716# Whether we should hardcode library paths into libraries.
8717hardcode_into_libs=$hardcode_into_libs
8718
8719# Flag to hardcode \$libdir into a binary during linking.
8720# This must work even if \$libdir does not exist.
8721hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8722
8723# Whether we need a single -rpath flag with a separated argument.
8724hardcode_libdir_separator=$lt_hardcode_libdir_separator
8725
8726# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8727# resulting binary.
8728hardcode_direct=$hardcode_direct
8729
8730# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8731# resulting binary.
8732hardcode_minus_L=$hardcode_minus_L
8733
8734# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8735# the resulting binary.
8736hardcode_shlibpath_var=$hardcode_shlibpath_var
8737
8738# Variables whose values should be saved in libtool wrapper scripts and
8739# restored at relink time.
8740variables_saved_for_relink="$variables_saved_for_relink"
8741
8742# Whether libtool must link a program against all its dependency libraries.
8743link_all_deplibs=$link_all_deplibs
8744
8745# Compile-time system search path for libraries
8746sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8747
8748# Run-time system search path for libraries
8749sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8750
8751# Fix the shell variable \$srcfile for the compiler.
8752fix_srcfile_path="$fix_srcfile_path"
8753
8754# Set to yes if exported symbols are required.
8755always_export_symbols=$always_export_symbols
8756
8757# The commands to list exported symbols.
8758export_symbols_cmds=$lt_export_symbols_cmds
8759
8760# The commands to extract the exported symbol list from a shared archive.
8761extract_expsyms_cmds=$lt_extract_expsyms_cmds
8762
8763# Symbols that should not be listed in the preloaded symbols.
8764exclude_expsyms=$lt_exclude_expsyms
8765
8766# Symbols that must always be exported.
8767include_expsyms=$lt_include_expsyms
8768
8769# ### END LIBTOOL CONFIG
8770
8771__EOF__
8772
8773  case $host_os in
8774  aix3*)
8775    cat <<\EOF >> "${ofile}T"
8776
8777# AIX sometimes has problems with the GCC collect2 program.  For some
8778# reason, if we set the COLLECT_NAMES environment variable, the problems
8779# vanish in a puff of smoke.
8780if test "X${COLLECT_NAMES+set}" != Xset; then
8781  COLLECT_NAMES=
8782  export COLLECT_NAMES
8783fi
8784EOF
8785    ;;
8786  esac
8787
8788  case $host_os in
8789  cygwin* | mingw* | pw32* | os2*)
8790    cat <<'EOF' >> "${ofile}T"
8791      # This is a source program that is used to create dlls on Windows
8792      # Don't remove nor modify the starting and closing comments
8793# /* ltdll.c starts here */
8794# #define WIN32_LEAN_AND_MEAN
8795# #include <windows.h>
8796# #undef WIN32_LEAN_AND_MEAN
8797# #include <stdio.h>
8798#
8799# #ifndef __CYGWIN__
8800# #  ifdef __CYGWIN32__
8801# #    define __CYGWIN__ __CYGWIN32__
8802# #  endif
8803# #endif
8804#
8805# #ifdef __cplusplus
8806# extern "C" {
8807# #endif
8808# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8809# #ifdef __cplusplus
8810# }
8811# #endif
8812#
8813# #ifdef __CYGWIN__
8814# #include <cygwin/cygwin_dll.h>
8815# DECLARE_CYGWIN_DLL( DllMain );
8816# #endif
8817# HINSTANCE __hDllInstance_base;
8818#
8819# BOOL APIENTRY
8820# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8821# {
8822#   __hDllInstance_base = hInst;
8823#   return TRUE;
8824# }
8825# /* ltdll.c ends here */
8826	# This is a source program that is used to create import libraries
8827	# on Windows for dlls which lack them. Don't remove nor modify the
8828	# starting and closing comments
8829# /* impgen.c starts here */
8830# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8831#
8832#  This file is part of GNU libtool.
8833#
8834#  This program is free software; you can redistribute it and/or modify
8835#  it under the terms of the GNU General Public License as published by
8836#  the Free Software Foundation; either version 2 of the License, or
8837#  (at your option) any later version.
8838#
8839#  This program is distributed in the hope that it will be useful,
8840#  but WITHOUT ANY WARRANTY; without even the implied warranty of
8841#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8842#  GNU General Public License for more details.
8843#
8844#  You should have received a copy of the GNU General Public License
8845#  along with this program; if not, write to the Free Software
8846#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8847#  */
8848#
8849# #include <stdio.h>		/* for printf() */
8850# #include <unistd.h>		/* for open(), lseek(), read() */
8851# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
8852# #include <string.h>		/* for strdup() */
8853#
8854# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8855# #ifndef O_BINARY
8856# #define O_BINARY 0
8857# #endif
8858#
8859# static unsigned int
8860# pe_get16 (fd, offset)
8861#      int fd;
8862#      int offset;
8863# {
8864#   unsigned char b[2];
8865#   lseek (fd, offset, SEEK_SET);
8866#   read (fd, b, 2);
8867#   return b[0] + (b[1]<<8);
8868# }
8869#
8870# static unsigned int
8871# pe_get32 (fd, offset)
8872#     int fd;
8873#     int offset;
8874# {
8875#   unsigned char b[4];
8876#   lseek (fd, offset, SEEK_SET);
8877#   read (fd, b, 4);
8878#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8879# }
8880#
8881# static unsigned int
8882# pe_as32 (ptr)
8883#      void *ptr;
8884# {
8885#   unsigned char *b = ptr;
8886#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8887# }
8888#
8889# int
8890# main (argc, argv)
8891#     int argc;
8892#     char *argv[];
8893# {
8894#     int dll;
8895#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8896#     unsigned long export_rva, export_size, nsections, secptr, expptr;
8897#     unsigned long name_rvas, nexp;
8898#     unsigned char *expdata, *erva;
8899#     char *filename, *dll_name;
8900#
8901#     filename = argv[1];
8902#
8903#     dll = open(filename, O_RDONLY|O_BINARY);
8904#     if (dll < 1)
8905# 	return 1;
8906#
8907#     dll_name = filename;
8908#
8909#     for (i=0; filename[i]; i++)
8910# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8911# 	    dll_name = filename + i +1;
8912#
8913#     pe_header_offset = pe_get32 (dll, 0x3c);
8914#     opthdr_ofs = pe_header_offset + 4 + 20;
8915#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8916#
8917#     if (num_entries < 1) /* no exports */
8918# 	return 1;
8919#
8920#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8921#     export_size = pe_get32 (dll, opthdr_ofs + 100);
8922#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8923#     secptr = (pe_header_offset + 4 + 20 +
8924# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
8925#
8926#     expptr = 0;
8927#     for (i = 0; i < nsections; i++)
8928#     {
8929# 	char sname[8];
8930# 	unsigned long secptr1 = secptr + 40 * i;
8931# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8932# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8933# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8934# 	lseek(dll, secptr1, SEEK_SET);
8935# 	read(dll, sname, 8);
8936# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
8937# 	{
8938# 	    expptr = fptr + (export_rva - vaddr);
8939# 	    if (export_rva + export_size > vaddr + vsize)
8940# 		export_size = vsize - (export_rva - vaddr);
8941# 	    break;
8942# 	}
8943#     }
8944#
8945#     expdata = (unsigned char*)malloc(export_size);
8946#     lseek (dll, expptr, SEEK_SET);
8947#     read (dll, expdata, export_size);
8948#     erva = expdata - export_rva;
8949#
8950#     nexp = pe_as32 (expdata+24);
8951#     name_rvas = pe_as32 (expdata+32);
8952#
8953#     printf ("EXPORTS\n");
8954#     for (i = 0; i<nexp; i++)
8955#     {
8956# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8957# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8958#     }
8959#
8960#     return 0;
8961# }
8962# /* impgen.c ends here */
8963
8964EOF
8965    ;;
8966  esac
8967
8968  # We use sed instead of cat because bash on DJGPP gets confused if
8969  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8970  # text mode, it properly converts lines to CR/LF.  This bash problem
8971  # is reportedly fixed, but why not run on old versions too?
8972  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8973
8974  mv -f "${ofile}T" "$ofile" || \
8975    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8976  chmod +x "$ofile"
8977fi
8978
8979
8980
8981
8982
8983# This can be used to rebuild libtool when needed
8984LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8985
8986# Always use our own libtool.
8987LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8988
8989# Prevent multiple expansion
8990
8991
8992
8993# Check whether --enable-glibtest or --disable-glibtest was given.
8994if test "${enable_glibtest+set}" = set; then
8995  enableval="$enable_glibtest"
8996
8997else
8998  enable_glibtest=yes
8999fi;
9000
9001  pkg_config_args=glib-2.0
9002  for module in .
9003  do
9004      case "$module" in
9005         gmodule)
9006             pkg_config_args="$pkg_config_args gmodule-2.0"
9007         ;;
9008         gobject)
9009             pkg_config_args="$pkg_config_args gobject-2.0"
9010         ;;
9011         gthread)
9012             pkg_config_args="$pkg_config_args gthread-2.0"
9013         ;;
9014      esac
9015  done
9016
9017  # Extract the first word of "pkg-config", so it can be a program name with args.
9018set dummy pkg-config; ac_word=$2
9019echo "$as_me:$LINENO: checking for $ac_word" >&5
9020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9022  echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024  case $PKG_CONFIG in
9025  [\\/]* | ?:[\\/]*)
9026  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9027  ;;
9028  *)
9029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032  IFS=$as_save_IFS
9033  test -z "$as_dir" && as_dir=.
9034  for ac_exec_ext in '' $ac_executable_extensions; do
9035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038    break 2
9039  fi
9040done
9041done
9042
9043  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9044  ;;
9045esac
9046fi
9047PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9048
9049if test -n "$PKG_CONFIG"; then
9050  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9051echo "${ECHO_T}$PKG_CONFIG" >&6
9052else
9053  echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055fi
9056
9057
9058  no_glib=""
9059
9060  if test x$PKG_CONFIG != xno ; then
9061    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
9062      :
9063    else
9064      echo *** pkg-config too old; version 0.7 or better required.
9065      no_glib=yes
9066      PKG_CONFIG=no
9067    fi
9068  else
9069    no_glib=yes
9070  fi
9071
9072  min_glib_version=2.0.0
9073  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
9074echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
9075
9076  if test x$PKG_CONFIG != xno ; then
9077    ## don't try to run the test against uninstalled libtool libs
9078    if $PKG_CONFIG --uninstalled $pkg_config_args; then
9079	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
9080	  enable_glibtest=no
9081    fi
9082
9083    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
9084	  :
9085    else
9086	  no_glib=yes
9087    fi
9088  fi
9089
9090  if test x"$no_glib" = x ; then
9091    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
9092    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
9093    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
9094
9095    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
9096    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
9097    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
9098           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9099    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
9100           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9101    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
9102           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9103    if test "x$enable_glibtest" = "xyes" ; then
9104      ac_save_CFLAGS="$CFLAGS"
9105      ac_save_LIBS="$LIBS"
9106      CFLAGS="$CFLAGS $GLIB_CFLAGS"
9107      LIBS="$GLIB_LIBS $LIBS"
9108      rm -f conf.glibtest
9109      if test "$cross_compiling" = yes; then
9110  echo $ac_n "cross compiling; assumed OK... $ac_c"
9111else
9112  cat >conftest.$ac_ext <<_ACEOF
9113#line $LINENO "configure"
9114/* confdefs.h.  */
9115_ACEOF
9116cat confdefs.h >>conftest.$ac_ext
9117cat >>conftest.$ac_ext <<_ACEOF
9118/* end confdefs.h.  */
9119
9120#include <glib.h>
9121#include <stdio.h>
9122#include <stdlib.h>
9123
9124int
9125main ()
9126{
9127  int major, minor, micro;
9128  char *tmp_version;
9129
9130  system ("touch conf.glibtest");
9131
9132  /* HP/UX 9 (%@#!) writes to sscanf strings */
9133  tmp_version = g_strdup("$min_glib_version");
9134  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9135     printf("%s, bad version string\n", "$min_glib_version");
9136     exit(1);
9137   }
9138
9139  if ((glib_major_version != $glib_config_major_version) ||
9140      (glib_minor_version != $glib_config_minor_version) ||
9141      (glib_micro_version != $glib_config_micro_version))
9142    {
9143      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
9144             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
9145             glib_major_version, glib_minor_version, glib_micro_version);
9146      printf ("*** was found! If pkg-config was correct, then it is best\n");
9147      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
9148      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9149      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9150      printf("*** required on your system.\n");
9151      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
9152      printf("*** to point to the correct configuration files\n");
9153    }
9154  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
9155	   (glib_minor_version != GLIB_MINOR_VERSION) ||
9156           (glib_micro_version != GLIB_MICRO_VERSION))
9157    {
9158      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
9159	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
9160      printf("*** library (version %d.%d.%d)\n",
9161	     glib_major_version, glib_minor_version, glib_micro_version);
9162    }
9163  else
9164    {
9165      if ((glib_major_version > major) ||
9166        ((glib_major_version == major) && (glib_minor_version > minor)) ||
9167        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
9168      {
9169        return 0;
9170       }
9171     else
9172      {
9173        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
9174               glib_major_version, glib_minor_version, glib_micro_version);
9175        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
9176	       major, minor, micro);
9177        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
9178        printf("***\n");
9179        printf("*** If you have already installed a sufficiently new version, this error\n");
9180        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
9181        printf("*** being found. The easiest way to fix this is to remove the old version\n");
9182        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
9183        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
9184        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9185        printf("*** so that the correct libraries are found at run-time))\n");
9186      }
9187    }
9188  return 1;
9189}
9190
9191_ACEOF
9192rm -f conftest$ac_exeext
9193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194  (eval $ac_link) 2>&5
9195  ac_status=$?
9196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199  (eval $ac_try) 2>&5
9200  ac_status=$?
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); }; }; then
9203  :
9204else
9205  echo "$as_me: program exited with status $ac_status" >&5
9206echo "$as_me: failed program was:" >&5
9207sed 's/^/| /' conftest.$ac_ext >&5
9208
9209( exit $ac_status )
9210no_glib=yes
9211fi
9212rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9213fi
9214       CFLAGS="$ac_save_CFLAGS"
9215       LIBS="$ac_save_LIBS"
9216     fi
9217  fi
9218  if test "x$no_glib" = x ; then
9219     echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
9220echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
9221     :
9222  else
9223     echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225     if test "$PKG_CONFIG" = "no" ; then
9226       echo "*** A new enough version of pkg-config was not found."
9227       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
9228     else
9229       if test -f conf.glibtest ; then
9230        :
9231       else
9232          echo "*** Could not run GLIB test program, checking why..."
9233          ac_save_CFLAGS="$CFLAGS"
9234          ac_save_LIBS="$LIBS"
9235          CFLAGS="$CFLAGS $GLIB_CFLAGS"
9236          LIBS="$LIBS $GLIB_LIBS"
9237          cat >conftest.$ac_ext <<_ACEOF
9238#line $LINENO "configure"
9239/* confdefs.h.  */
9240_ACEOF
9241cat confdefs.h >>conftest.$ac_ext
9242cat >>conftest.$ac_ext <<_ACEOF
9243/* end confdefs.h.  */
9244
9245#include <glib.h>
9246#include <stdio.h>
9247
9248int
9249main ()
9250{
9251 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
9252  ;
9253  return 0;
9254}
9255_ACEOF
9256rm -f conftest.$ac_objext conftest$ac_exeext
9257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258  (eval $ac_link) 2>&5
9259  ac_status=$?
9260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261  (exit $ac_status); } &&
9262         { ac_try='test -s conftest$ac_exeext'
9263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264  (eval $ac_try) 2>&5
9265  ac_status=$?
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); }; }; then
9268   echo "*** The test program compiled, but did not run. This usually means"
9269          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
9270          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
9271          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9272          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
9273          echo "*** is required on your system"
9274	  echo "***"
9275          echo "*** If you have an old version installed, it is best to remove it, although"
9276          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9277else
9278  echo "$as_me: failed program was:" >&5
9279sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 echo "*** The test program failed to compile or link. See the file config.log for the"
9282          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
9283fi
9284rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9285          CFLAGS="$ac_save_CFLAGS"
9286          LIBS="$ac_save_LIBS"
9287       fi
9288     fi
9289     GLIB_CFLAGS=""
9290     GLIB_LIBS=""
9291     GLIB_GENMARSHAL=""
9292     GOBJECT_QUERY=""
9293     GLIB_MKENUMS=""
9294     :
9295  fi
9296
9297
9298
9299
9300
9301  rm -f conf.glibtest
9302
9303
9304
9305  succeeded=no
9306
9307  if test -z "$PKG_CONFIG"; then
9308    # Extract the first word of "pkg-config", so it can be a program name with args.
9309set dummy pkg-config; ac_word=$2
9310echo "$as_me:$LINENO: checking for $ac_word" >&5
9311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9312if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9313  echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315  case $PKG_CONFIG in
9316  [\\/]* | ?:[\\/]*)
9317  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9318  ;;
9319  *)
9320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323  IFS=$as_save_IFS
9324  test -z "$as_dir" && as_dir=.
9325  for ac_exec_ext in '' $ac_executable_extensions; do
9326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9329    break 2
9330  fi
9331done
9332done
9333
9334  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9335  ;;
9336esac
9337fi
9338PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9339
9340if test -n "$PKG_CONFIG"; then
9341  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9342echo "${ECHO_T}$PKG_CONFIG" >&6
9343else
9344  echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346fi
9347
9348  fi
9349
9350  if test "$PKG_CONFIG" = "no" ; then
9351     echo "*** The pkg-config script could not be found. Make sure it is"
9352     echo "*** in your path, or set the PKG_CONFIG environment variable"
9353     echo "*** to the full path to pkg-config."
9354     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9355  else
9356     PKG_CONFIG_MIN_VERSION=0.9.0
9357     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9358        echo "$as_me:$LINENO: checking for libxml-2.0" >&5
9359echo $ECHO_N "checking for libxml-2.0... $ECHO_C" >&6
9360
9361        if $PKG_CONFIG --exists "libxml-2.0" ; then
9362            echo "$as_me:$LINENO: result: yes" >&5
9363echo "${ECHO_T}yes" >&6
9364            succeeded=yes
9365
9366            echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
9367echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
9368            XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0"`
9369            echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
9370echo "${ECHO_T}$XML_CFLAGS" >&6
9371
9372            echo "$as_me:$LINENO: checking XML_LIBS" >&5
9373echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
9374            XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0"`
9375            echo "$as_me:$LINENO: result: $XML_LIBS" >&5
9376echo "${ECHO_T}$XML_LIBS" >&6
9377        else
9378            XML_CFLAGS=""
9379            XML_LIBS=""
9380            ## If we have a custom action on failure, don't print errors, but
9381            ## do set a variable so people can do so.
9382            XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
9383            echo $XML_PKG_ERRORS
9384        fi
9385
9386
9387
9388     else
9389        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9390        echo "*** See http://www.freedesktop.org/software/pkgconfig"
9391     fi
9392  fi
9393
9394  if test $succeeded = yes; then
9395     :
9396  else
9397     { { echo "$as_me:$LINENO: error: Library requirements (libxml-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9398echo "$as_me: error: Library requirements (libxml-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9399   { (exit 1); exit 1; }; }
9400  fi
9401
9402
9403
9404
9405# Extract the first word of "glib-genmarshal", so it can be a program name with args.
9406set dummy glib-genmarshal; ac_word=$2
9407echo "$as_me:$LINENO: checking for $ac_word" >&5
9408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9409if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
9410  echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412  case $GLIB_GENMARSHAL in
9413  [\\/]* | ?:[\\/]*)
9414  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
9415  ;;
9416  *)
9417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420  IFS=$as_save_IFS
9421  test -z "$as_dir" && as_dir=.
9422  for ac_exec_ext in '' $ac_executable_extensions; do
9423  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
9425    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426    break 2
9427  fi
9428done
9429done
9430
9431  ;;
9432esac
9433fi
9434GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
9435
9436if test -n "$GLIB_GENMARSHAL"; then
9437  echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
9438echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
9439else
9440  echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442fi
9443
9444
9445
9446      if test "X$prefix" = "XNONE"; then
9447    acl_final_prefix="$ac_default_prefix"
9448  else
9449    acl_final_prefix="$prefix"
9450  fi
9451  if test "X$exec_prefix" = "XNONE"; then
9452    acl_final_exec_prefix='${prefix}'
9453  else
9454    acl_final_exec_prefix="$exec_prefix"
9455  fi
9456  acl_save_prefix="$prefix"
9457  prefix="$acl_final_prefix"
9458  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9459  prefix="$acl_save_prefix"
9460
9461
9462# Check whether --with-gnu-ld or --without-gnu-ld was given.
9463if test "${with_gnu_ld+set}" = set; then
9464  withval="$with_gnu_ld"
9465  test "$withval" = no || with_gnu_ld=yes
9466else
9467  with_gnu_ld=no
9468fi;
9469ac_prog=ld
9470if test "$GCC" = yes; then
9471  # Check if gcc -print-prog-name=ld gives a path.
9472  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9473echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9474  case $host in
9475  *-*-mingw*)
9476    # gcc leaves a trailing carriage return which upsets mingw
9477    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9478  *)
9479    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9480  esac
9481  case $ac_prog in
9482    # Accept absolute paths.
9483    [\\/]* | [A-Za-z]:[\\/]*)
9484      re_direlt='/[^/][^/]*/\.\./'
9485      # Canonicalize the path of ld
9486      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9487      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9488	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9489      done
9490      test -z "$LD" && LD="$ac_prog"
9491      ;;
9492  "")
9493    # If it fails, then pretend we aren't using GCC.
9494    ac_prog=ld
9495    ;;
9496  *)
9497    # If it is relative, then search for the first ld in PATH.
9498    with_gnu_ld=unknown
9499    ;;
9500  esac
9501elif test "$with_gnu_ld" = yes; then
9502  echo "$as_me:$LINENO: checking for GNU ld" >&5
9503echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9504else
9505  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9506echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9507fi
9508if test "${acl_cv_path_LD+set}" = set; then
9509  echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511  if test -z "$LD"; then
9512  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9513  for ac_dir in $PATH; do
9514    test -z "$ac_dir" && ac_dir=.
9515    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9516      acl_cv_path_LD="$ac_dir/$ac_prog"
9517      # Check to see if the program is GNU ld.  I'd rather use --version,
9518      # but apparently some GNU ld's only accept -v.
9519      # Break only if it was the GNU/non-GNU ld that we prefer.
9520      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9521	test "$with_gnu_ld" != no && break
9522      else
9523	test "$with_gnu_ld" != yes && break
9524      fi
9525    fi
9526  done
9527  IFS="$ac_save_ifs"
9528else
9529  acl_cv_path_LD="$LD" # Let the user override the test with a path.
9530fi
9531fi
9532
9533LD="$acl_cv_path_LD"
9534if test -n "$LD"; then
9535  echo "$as_me:$LINENO: result: $LD" >&5
9536echo "${ECHO_T}$LD" >&6
9537else
9538  echo "$as_me:$LINENO: result: no" >&5
9539echo "${ECHO_T}no" >&6
9540fi
9541test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9542echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9543   { (exit 1); exit 1; }; }
9544echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9545echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9546if test "${acl_cv_prog_gnu_ld+set}" = set; then
9547  echo $ECHO_N "(cached) $ECHO_C" >&6
9548else
9549  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9550if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9551  acl_cv_prog_gnu_ld=yes
9552else
9553  acl_cv_prog_gnu_ld=no
9554fi
9555fi
9556echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9557echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9558with_gnu_ld=$acl_cv_prog_gnu_ld
9559
9560
9561
9562                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9563echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9564if test "${acl_cv_rpath+set}" = set; then
9565  echo $ECHO_N "(cached) $ECHO_C" >&6
9566else
9567
9568    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9569    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9570    . ./conftest.sh
9571    rm -f ./conftest.sh
9572    acl_cv_rpath=done
9573
9574fi
9575echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9576echo "${ECHO_T}$acl_cv_rpath" >&6
9577  wl="$acl_cv_wl"
9578  libext="$acl_cv_libext"
9579  shlibext="$acl_cv_shlibext"
9580  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9581  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9582  hardcode_direct="$acl_cv_hardcode_direct"
9583  hardcode_minus_L="$acl_cv_hardcode_minus_L"
9584  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
9585  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
9586    # Check whether --enable-rpath or --disable-rpath was given.
9587if test "${enable_rpath+set}" = set; then
9588  enableval="$enable_rpath"
9589  :
9590else
9591  enable_rpath=yes
9592fi;
9593
9594
9595
9596
9597
9598
9599
9600    use_additional=yes
9601
9602  acl_save_prefix="$prefix"
9603  prefix="$acl_final_prefix"
9604  acl_save_exec_prefix="$exec_prefix"
9605  exec_prefix="$acl_final_exec_prefix"
9606
9607    eval additional_includedir=\"$includedir\"
9608    eval additional_libdir=\"$libdir\"
9609
9610  exec_prefix="$acl_save_exec_prefix"
9611  prefix="$acl_save_prefix"
9612
9613
9614# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9615if test "${with_libiconv_prefix+set}" = set; then
9616  withval="$with_libiconv_prefix"
9617
9618    if test "X$withval" = "Xno"; then
9619      use_additional=no
9620    else
9621      if test "X$withval" = "X"; then
9622
9623  acl_save_prefix="$prefix"
9624  prefix="$acl_final_prefix"
9625  acl_save_exec_prefix="$exec_prefix"
9626  exec_prefix="$acl_final_exec_prefix"
9627
9628          eval additional_includedir=\"$includedir\"
9629          eval additional_libdir=\"$libdir\"
9630
9631  exec_prefix="$acl_save_exec_prefix"
9632  prefix="$acl_save_prefix"
9633
9634      else
9635        additional_includedir="$withval/include"
9636        additional_libdir="$withval/lib"
9637      fi
9638    fi
9639
9640fi;
9641      LIBICONV=
9642  LTLIBICONV=
9643  INCICONV=
9644  rpathdirs=
9645  ltrpathdirs=
9646  names_already_handled=
9647  names_next_round='iconv '
9648  while test -n "$names_next_round"; do
9649    names_this_round="$names_next_round"
9650    names_next_round=
9651    for name in $names_this_round; do
9652      already_handled=
9653      for n in $names_already_handled; do
9654        if test "$n" = "$name"; then
9655          already_handled=yes
9656          break
9657        fi
9658      done
9659      if test -z "$already_handled"; then
9660        names_already_handled="$names_already_handled $name"
9661                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9662        eval value=\"\$HAVE_LIB$uppername\"
9663        if test -n "$value"; then
9664          if test "$value" = yes; then
9665            eval value=\"\$LIB$uppername\"
9666            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9667            eval value=\"\$LTLIB$uppername\"
9668            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9669          else
9670                                    :
9671          fi
9672        else
9673                              found_dir=
9674          found_la=
9675          found_so=
9676          found_a=
9677          if test $use_additional = yes; then
9678            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9679              found_dir="$additional_libdir"
9680              found_so="$additional_libdir/lib$name.$shlibext"
9681              if test -f "$additional_libdir/lib$name.la"; then
9682                found_la="$additional_libdir/lib$name.la"
9683              fi
9684            else
9685              if test -f "$additional_libdir/lib$name.$libext"; then
9686                found_dir="$additional_libdir"
9687                found_a="$additional_libdir/lib$name.$libext"
9688                if test -f "$additional_libdir/lib$name.la"; then
9689                  found_la="$additional_libdir/lib$name.la"
9690                fi
9691              fi
9692            fi
9693          fi
9694          if test "X$found_dir" = "X"; then
9695            for x in $LDFLAGS $LTLIBICONV; do
9696
9697  acl_save_prefix="$prefix"
9698  prefix="$acl_final_prefix"
9699  acl_save_exec_prefix="$exec_prefix"
9700  exec_prefix="$acl_final_exec_prefix"
9701  eval x=\"$x\"
9702  exec_prefix="$acl_save_exec_prefix"
9703  prefix="$acl_save_prefix"
9704
9705              case "$x" in
9706                -L*)
9707                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9708                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9709                    found_dir="$dir"
9710                    found_so="$dir/lib$name.$shlibext"
9711                    if test -f "$dir/lib$name.la"; then
9712                      found_la="$dir/lib$name.la"
9713                    fi
9714                  else
9715                    if test -f "$dir/lib$name.$libext"; then
9716                      found_dir="$dir"
9717                      found_a="$dir/lib$name.$libext"
9718                      if test -f "$dir/lib$name.la"; then
9719                        found_la="$dir/lib$name.la"
9720                      fi
9721                    fi
9722                  fi
9723                  ;;
9724              esac
9725              if test "X$found_dir" != "X"; then
9726                break
9727              fi
9728            done
9729          fi
9730          if test "X$found_dir" != "X"; then
9731                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9732            if test "X$found_so" != "X"; then
9733                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9734                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9735              else
9736                                                                                haveit=
9737                for x in $ltrpathdirs; do
9738                  if test "X$x" = "X$found_dir"; then
9739                    haveit=yes
9740                    break
9741                  fi
9742                done
9743                if test -z "$haveit"; then
9744                  ltrpathdirs="$ltrpathdirs $found_dir"
9745                fi
9746                                if test "$hardcode_direct" = yes; then
9747                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9748                else
9749                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9750                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9751                                                            haveit=
9752                    for x in $rpathdirs; do
9753                      if test "X$x" = "X$found_dir"; then
9754                        haveit=yes
9755                        break
9756                      fi
9757                    done
9758                    if test -z "$haveit"; then
9759                      rpathdirs="$rpathdirs $found_dir"
9760                    fi
9761                  else
9762                                                                                haveit=
9763                    for x in $LDFLAGS $LIBICONV; do
9764
9765  acl_save_prefix="$prefix"
9766  prefix="$acl_final_prefix"
9767  acl_save_exec_prefix="$exec_prefix"
9768  exec_prefix="$acl_final_exec_prefix"
9769  eval x=\"$x\"
9770  exec_prefix="$acl_save_exec_prefix"
9771  prefix="$acl_save_prefix"
9772
9773                      if test "X$x" = "X-L$found_dir"; then
9774                        haveit=yes
9775                        break
9776                      fi
9777                    done
9778                    if test -z "$haveit"; then
9779                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9780                    fi
9781                    if test "$hardcode_minus_L" != no; then
9782                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9783                    else
9784                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9785                    fi
9786                  fi
9787                fi
9788              fi
9789            else
9790              if test "X$found_a" != "X"; then
9791                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9792              else
9793                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9794              fi
9795            fi
9796                        additional_includedir=
9797            case "$found_dir" in
9798              */lib | */lib/)
9799                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9800                additional_includedir="$basedir/include"
9801                ;;
9802            esac
9803            if test "X$additional_includedir" != "X"; then
9804                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9805                haveit=
9806                if test "X$additional_includedir" = "X/usr/local/include"; then
9807                  if test -n "$GCC"; then
9808                    case $host_os in
9809                      linux*) haveit=yes;;
9810                    esac
9811                  fi
9812                fi
9813                if test -z "$haveit"; then
9814                  for x in $CPPFLAGS $INCICONV; do
9815
9816  acl_save_prefix="$prefix"
9817  prefix="$acl_final_prefix"
9818  acl_save_exec_prefix="$exec_prefix"
9819  exec_prefix="$acl_final_exec_prefix"
9820  eval x=\"$x\"
9821  exec_prefix="$acl_save_exec_prefix"
9822  prefix="$acl_save_prefix"
9823
9824                    if test "X$x" = "X-I$additional_includedir"; then
9825                      haveit=yes
9826                      break
9827                    fi
9828                  done
9829                  if test -z "$haveit"; then
9830                    if test -d "$additional_includedir"; then
9831                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9832                    fi
9833                  fi
9834                fi
9835              fi
9836            fi
9837                        if test -n "$found_la"; then
9838                                                        save_libdir="$libdir"
9839              case "$found_la" in
9840                */* | *\\*) . "$found_la" ;;
9841                *) . "./$found_la" ;;
9842              esac
9843              libdir="$save_libdir"
9844                            for dep in $dependency_libs; do
9845                case "$dep" in
9846                  -L*)
9847                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9848                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9849                      haveit=
9850                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9851                        if test -n "$GCC"; then
9852                          case $host_os in
9853                            linux*) haveit=yes;;
9854                          esac
9855                        fi
9856                      fi
9857                      if test -z "$haveit"; then
9858                        haveit=
9859                        for x in $LDFLAGS $LIBICONV; do
9860
9861  acl_save_prefix="$prefix"
9862  prefix="$acl_final_prefix"
9863  acl_save_exec_prefix="$exec_prefix"
9864  exec_prefix="$acl_final_exec_prefix"
9865  eval x=\"$x\"
9866  exec_prefix="$acl_save_exec_prefix"
9867  prefix="$acl_save_prefix"
9868
9869                          if test "X$x" = "X-L$additional_libdir"; then
9870                            haveit=yes
9871                            break
9872                          fi
9873                        done
9874                        if test -z "$haveit"; then
9875                          if test -d "$additional_libdir"; then
9876                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9877                          fi
9878                        fi
9879                        haveit=
9880                        for x in $LDFLAGS $LTLIBICONV; do
9881
9882  acl_save_prefix="$prefix"
9883  prefix="$acl_final_prefix"
9884  acl_save_exec_prefix="$exec_prefix"
9885  exec_prefix="$acl_final_exec_prefix"
9886  eval x=\"$x\"
9887  exec_prefix="$acl_save_exec_prefix"
9888  prefix="$acl_save_prefix"
9889
9890                          if test "X$x" = "X-L$additional_libdir"; then
9891                            haveit=yes
9892                            break
9893                          fi
9894                        done
9895                        if test -z "$haveit"; then
9896                          if test -d "$additional_libdir"; then
9897                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9898                          fi
9899                        fi
9900                      fi
9901                    fi
9902                    ;;
9903                  -R*)
9904                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9905                    if test "$enable_rpath" != no; then
9906                                                                  haveit=
9907                      for x in $rpathdirs; do
9908                        if test "X$x" = "X$dir"; then
9909                          haveit=yes
9910                          break
9911                        fi
9912                      done
9913                      if test -z "$haveit"; then
9914                        rpathdirs="$rpathdirs $dir"
9915                      fi
9916                                                                  haveit=
9917                      for x in $ltrpathdirs; do
9918                        if test "X$x" = "X$dir"; then
9919                          haveit=yes
9920                          break
9921                        fi
9922                      done
9923                      if test -z "$haveit"; then
9924                        ltrpathdirs="$ltrpathdirs $dir"
9925                      fi
9926                    fi
9927                    ;;
9928                  -l*)
9929                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9930                    ;;
9931                  *.la)
9932                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9933                    ;;
9934                  *)
9935                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9936                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9937                    ;;
9938                esac
9939              done
9940            fi
9941          else
9942                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9943            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9944          fi
9945        fi
9946      fi
9947    done
9948  done
9949  if test "X$rpathdirs" != "X"; then
9950    if test -n "$hardcode_libdir_separator"; then
9951                        alldirs=
9952      for found_dir in $rpathdirs; do
9953        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9954      done
9955            acl_save_libdir="$libdir"
9956      libdir="$alldirs"
9957      eval flag=\"$hardcode_libdir_flag_spec\"
9958      libdir="$acl_save_libdir"
9959      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9960    else
9961            for found_dir in $rpathdirs; do
9962        acl_save_libdir="$libdir"
9963        libdir="$found_dir"
9964        eval flag=\"$hardcode_libdir_flag_spec\"
9965        libdir="$acl_save_libdir"
9966        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9967      done
9968    fi
9969  fi
9970  if test "X$ltrpathdirs" != "X"; then
9971            for found_dir in $ltrpathdirs; do
9972      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9973    done
9974  fi
9975
9976
9977
9978
9979
9980
9981
9982          am_save_CPPFLAGS="$CPPFLAGS"
9983
9984  for element in $INCICONV; do
9985    haveit=
9986    for x in $CPPFLAGS; do
9987
9988  acl_save_prefix="$prefix"
9989  prefix="$acl_final_prefix"
9990  acl_save_exec_prefix="$exec_prefix"
9991  exec_prefix="$acl_final_exec_prefix"
9992  eval x=\"$x\"
9993  exec_prefix="$acl_save_exec_prefix"
9994  prefix="$acl_save_prefix"
9995
9996      if test "X$x" = "X$element"; then
9997        haveit=yes
9998        break
9999      fi
10000    done
10001    if test -z "$haveit"; then
10002      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10003    fi
10004  done
10005
10006
10007  echo "$as_me:$LINENO: checking for iconv" >&5
10008echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10009if test "${am_cv_func_iconv+set}" = set; then
10010  echo $ECHO_N "(cached) $ECHO_C" >&6
10011else
10012
10013    am_cv_func_iconv="no, consider installing GNU libiconv"
10014    am_cv_lib_iconv=no
10015    cat >conftest.$ac_ext <<_ACEOF
10016#line $LINENO "configure"
10017/* confdefs.h.  */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h.  */
10022#include <stdlib.h>
10023#include <iconv.h>
10024int
10025main ()
10026{
10027iconv_t cd = iconv_open("","");
10028       iconv(cd,NULL,NULL,NULL,NULL);
10029       iconv_close(cd);
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036  (eval $ac_link) 2>&5
10037  ac_status=$?
10038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039  (exit $ac_status); } &&
10040         { ac_try='test -s conftest$ac_exeext'
10041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042  (eval $ac_try) 2>&5
10043  ac_status=$?
10044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045  (exit $ac_status); }; }; then
10046  am_cv_func_iconv=yes
10047else
10048  echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051fi
10052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10053    if test "$am_cv_func_iconv" != yes; then
10054      am_save_LIBS="$LIBS"
10055      LIBS="$LIBS $LIBICONV"
10056      cat >conftest.$ac_ext <<_ACEOF
10057#line $LINENO "configure"
10058/* confdefs.h.  */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h.  */
10063#include <stdlib.h>
10064#include <iconv.h>
10065int
10066main ()
10067{
10068iconv_t cd = iconv_open("","");
10069         iconv(cd,NULL,NULL,NULL,NULL);
10070         iconv_close(cd);
10071  ;
10072  return 0;
10073}
10074_ACEOF
10075rm -f conftest.$ac_objext conftest$ac_exeext
10076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077  (eval $ac_link) 2>&5
10078  ac_status=$?
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); } &&
10081         { ac_try='test -s conftest$ac_exeext'
10082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083  (eval $ac_try) 2>&5
10084  ac_status=$?
10085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086  (exit $ac_status); }; }; then
10087  am_cv_lib_iconv=yes
10088        am_cv_func_iconv=yes
10089else
10090  echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093fi
10094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10095      LIBS="$am_save_LIBS"
10096    fi
10097
10098fi
10099echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10100echo "${ECHO_T}$am_cv_func_iconv" >&6
10101  if test "$am_cv_func_iconv" = yes; then
10102
10103cat >>confdefs.h <<\_ACEOF
10104#define HAVE_ICONV 1
10105_ACEOF
10106
10107  fi
10108  if test "$am_cv_lib_iconv" = yes; then
10109    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10110echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10111    echo "$as_me:$LINENO: result: $LIBICONV" >&5
10112echo "${ECHO_T}$LIBICONV" >&6
10113  else
10114            CPPFLAGS="$am_save_CPPFLAGS"
10115    LIBICONV=
10116    LTLIBICONV=
10117  fi
10118
10119
10120
10121  if test "$am_cv_func_iconv" = yes; then
10122    echo "$as_me:$LINENO: checking for iconv declaration" >&5
10123echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10124    if test "${am_cv_proto_iconv+set}" = set; then
10125  echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127
10128      cat >conftest.$ac_ext <<_ACEOF
10129#line $LINENO "configure"
10130/* confdefs.h.  */
10131_ACEOF
10132cat confdefs.h >>conftest.$ac_ext
10133cat >>conftest.$ac_ext <<_ACEOF
10134/* end confdefs.h.  */
10135
10136#include <stdlib.h>
10137#include <iconv.h>
10138extern
10139#ifdef __cplusplus
10140"C"
10141#endif
10142#if defined(__STDC__) || defined(__cplusplus)
10143size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10144#else
10145size_t iconv();
10146#endif
10147
10148int
10149main ()
10150{
10151
10152  ;
10153  return 0;
10154}
10155_ACEOF
10156rm -f conftest.$ac_objext
10157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158  (eval $ac_compile) 2>&5
10159  ac_status=$?
10160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161  (exit $ac_status); } &&
10162         { ac_try='test -s conftest.$ac_objext'
10163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164  (eval $ac_try) 2>&5
10165  ac_status=$?
10166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167  (exit $ac_status); }; }; then
10168  am_cv_proto_iconv_arg1=""
10169else
10170  echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
10173am_cv_proto_iconv_arg1="const"
10174fi
10175rm -f conftest.$ac_objext conftest.$ac_ext
10176      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10177fi
10178
10179    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10180    echo "$as_me:$LINENO: result: ${ac_t:-
10181         }$am_cv_proto_iconv" >&5
10182echo "${ECHO_T}${ac_t:-
10183         }$am_cv_proto_iconv" >&6
10184
10185cat >>confdefs.h <<_ACEOF
10186#define ICONV_CONST $am_cv_proto_iconv_arg1
10187_ACEOF
10188
10189  fi
10190
10191
10192# Check for popt header and library
10193if test "${ac_cv_header_popt_h+set}" = set; then
10194  echo "$as_me:$LINENO: checking for popt.h" >&5
10195echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
10196if test "${ac_cv_header_popt_h+set}" = set; then
10197  echo $ECHO_N "(cached) $ECHO_C" >&6
10198fi
10199echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
10200echo "${ECHO_T}$ac_cv_header_popt_h" >&6
10201else
10202  # Is the header compilable?
10203echo "$as_me:$LINENO: checking popt.h usability" >&5
10204echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6
10205cat >conftest.$ac_ext <<_ACEOF
10206#line $LINENO "configure"
10207/* confdefs.h.  */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h.  */
10212$ac_includes_default
10213#include <popt.h>
10214_ACEOF
10215rm -f conftest.$ac_objext
10216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217  (eval $ac_compile) 2>&5
10218  ac_status=$?
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); } &&
10221         { ac_try='test -s conftest.$ac_objext'
10222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223  (eval $ac_try) 2>&5
10224  ac_status=$?
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); }; }; then
10227  ac_header_compiler=yes
10228else
10229  echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232ac_header_compiler=no
10233fi
10234rm -f conftest.$ac_objext conftest.$ac_ext
10235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10236echo "${ECHO_T}$ac_header_compiler" >&6
10237
10238# Is the header present?
10239echo "$as_me:$LINENO: checking popt.h presence" >&5
10240echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6
10241cat >conftest.$ac_ext <<_ACEOF
10242#line $LINENO "configure"
10243/* confdefs.h.  */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h.  */
10248#include <popt.h>
10249_ACEOF
10250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10251  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10252  ac_status=$?
10253  grep -v '^ *+' conftest.er1 >conftest.err
10254  rm -f conftest.er1
10255  cat conftest.err >&5
10256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); } >/dev/null; then
10258  if test -s conftest.err; then
10259    ac_cpp_err=$ac_c_preproc_warn_flag
10260  else
10261    ac_cpp_err=
10262  fi
10263else
10264  ac_cpp_err=yes
10265fi
10266if test -z "$ac_cpp_err"; then
10267  ac_header_preproc=yes
10268else
10269  echo "$as_me: failed program was:" >&5
10270sed 's/^/| /' conftest.$ac_ext >&5
10271
10272  ac_header_preproc=no
10273fi
10274rm -f conftest.err conftest.$ac_ext
10275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10276echo "${ECHO_T}$ac_header_preproc" >&6
10277
10278# So?  What about this header?
10279case $ac_header_compiler:$ac_header_preproc in
10280  yes:no )
10281    { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10282echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10283    { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
10284echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
10285    (
10286      cat <<\_ASBOX
10287## ------------------------------------ ##
10288## Report this to bug-autoconf@gnu.org. ##
10289## ------------------------------------ ##
10290_ASBOX
10291    ) |
10292      sed "s/^/$as_me: WARNING:     /" >&2
10293    ;;
10294  no:yes )
10295    { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
10296echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
10297    { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
10298echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
10299    { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
10300echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
10301    (
10302      cat <<\_ASBOX
10303## ------------------------------------ ##
10304## Report this to bug-autoconf@gnu.org. ##
10305## ------------------------------------ ##
10306_ASBOX
10307    ) |
10308      sed "s/^/$as_me: WARNING:     /" >&2
10309    ;;
10310esac
10311echo "$as_me:$LINENO: checking for popt.h" >&5
10312echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
10313if test "${ac_cv_header_popt_h+set}" = set; then
10314  echo $ECHO_N "(cached) $ECHO_C" >&6
10315else
10316  ac_cv_header_popt_h=$ac_header_preproc
10317fi
10318echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
10319echo "${ECHO_T}$ac_cv_header_popt_h" >&6
10320
10321fi
10322if test $ac_cv_header_popt_h = yes; then
10323  :
10324else
10325  { { echo "$as_me:$LINENO: error: libassetml require the popt.h header, usally from popt-devel package." >&5
10326echo "$as_me: error: libassetml require the popt.h header, usally from popt-devel package." >&2;}
10327   { (exit 1); exit 1; }; }
10328fi
10329
10330
10331
10332have_popt=false
10333POPT_LIBS=""
10334echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
10335echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
10336if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
10337  echo $ECHO_N "(cached) $ECHO_C" >&6
10338else
10339  ac_check_lib_save_LIBS=$LIBS
10340LIBS="-lpopt  $LIBS"
10341cat >conftest.$ac_ext <<_ACEOF
10342#line $LINENO "configure"
10343/* confdefs.h.  */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h.  */
10348
10349/* Override any gcc2 internal prototype to avoid an error.  */
10350#ifdef __cplusplus
10351extern "C"
10352#endif
10353/* We use char because int might match the return type of a gcc2
10354   builtin and then its argument prototype would still apply.  */
10355char poptGetContext ();
10356int
10357main ()
10358{
10359poptGetContext ();
10360  ;
10361  return 0;
10362}
10363_ACEOF
10364rm -f conftest.$ac_objext conftest$ac_exeext
10365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366  (eval $ac_link) 2>&5
10367  ac_status=$?
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); } &&
10370         { ac_try='test -s conftest$ac_exeext'
10371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372  (eval $ac_try) 2>&5
10373  ac_status=$?
10374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375  (exit $ac_status); }; }; then
10376  ac_cv_lib_popt_poptGetContext=yes
10377else
10378  echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5
10380
10381ac_cv_lib_popt_poptGetContext=no
10382fi
10383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10384LIBS=$ac_check_lib_save_LIBS
10385fi
10386echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
10387echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
10388if test $ac_cv_lib_popt_poptGetContext = yes; then
10389  have_popt=true
10390fi
10391
10392
10393if $have_popt ; then
10394   POPT_LIBS="-lpopt"
10395else
10396   { { echo "$as_me:$LINENO: error: libassetml require the popt library, usally from popt package." >&5
10397echo "$as_me: error: libassetml require the popt library, usally from popt package." >&2;}
10398   { (exit 1); exit 1; }; }
10399fi
10400
10401
10402
10403
10404ALL_LINGUAS="fr it ja"
10405
10406GETTEXT_PACKAGE=libassetml
10407
10408
10409
10410for ac_header in locale.h
10411do
10412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413if eval "test \"\${$as_ac_Header+set}\" = set"; then
10414  echo "$as_me:$LINENO: checking for $ac_header" >&5
10415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417  echo $ECHO_N "(cached) $ECHO_C" >&6
10418fi
10419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10421else
10422  # Is the header compilable?
10423echo "$as_me:$LINENO: checking $ac_header usability" >&5
10424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10425cat >conftest.$ac_ext <<_ACEOF
10426#line $LINENO "configure"
10427/* confdefs.h.  */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h.  */
10432$ac_includes_default
10433#include <$ac_header>
10434_ACEOF
10435rm -f conftest.$ac_objext
10436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437  (eval $ac_compile) 2>&5
10438  ac_status=$?
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); } &&
10441         { ac_try='test -s conftest.$ac_objext'
10442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443  (eval $ac_try) 2>&5
10444  ac_status=$?
10445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); }; }; then
10447  ac_header_compiler=yes
10448else
10449  echo "$as_me: failed program was:" >&5
10450sed 's/^/| /' conftest.$ac_ext >&5
10451
10452ac_header_compiler=no
10453fi
10454rm -f conftest.$ac_objext conftest.$ac_ext
10455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456echo "${ECHO_T}$ac_header_compiler" >&6
10457
10458# Is the header present?
10459echo "$as_me:$LINENO: checking $ac_header presence" >&5
10460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10461cat >conftest.$ac_ext <<_ACEOF
10462#line $LINENO "configure"
10463/* confdefs.h.  */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h.  */
10468#include <$ac_header>
10469_ACEOF
10470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472  ac_status=$?
10473  grep -v '^ *+' conftest.er1 >conftest.err
10474  rm -f conftest.er1
10475  cat conftest.err >&5
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); } >/dev/null; then
10478  if test -s conftest.err; then
10479    ac_cpp_err=$ac_c_preproc_warn_flag
10480  else
10481    ac_cpp_err=
10482  fi
10483else
10484  ac_cpp_err=yes
10485fi
10486if test -z "$ac_cpp_err"; then
10487  ac_header_preproc=yes
10488else
10489  echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492  ac_header_preproc=no
10493fi
10494rm -f conftest.err conftest.$ac_ext
10495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10496echo "${ECHO_T}$ac_header_preproc" >&6
10497
10498# So?  What about this header?
10499case $ac_header_compiler:$ac_header_preproc in
10500  yes:no )
10501    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10503    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10505    (
10506      cat <<\_ASBOX
10507## ------------------------------------ ##
10508## Report this to bug-autoconf@gnu.org. ##
10509## ------------------------------------ ##
10510_ASBOX
10511    ) |
10512      sed "s/^/$as_me: WARNING:     /" >&2
10513    ;;
10514  no:yes )
10515    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10517    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10518echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521    (
10522      cat <<\_ASBOX
10523## ------------------------------------ ##
10524## Report this to bug-autoconf@gnu.org. ##
10525## ------------------------------------ ##
10526_ASBOX
10527    ) |
10528      sed "s/^/$as_me: WARNING:     /" >&2
10529    ;;
10530esac
10531echo "$as_me:$LINENO: checking for $ac_header" >&5
10532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534  echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536  eval "$as_ac_Header=$ac_header_preproc"
10537fi
10538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10540
10541fi
10542if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543  cat >>confdefs.h <<_ACEOF
10544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10545_ACEOF
10546
10547fi
10548
10549done
10550
10551    if test $ac_cv_header_locale_h = yes; then
10552    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10553echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10554if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10555  echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557  cat >conftest.$ac_ext <<_ACEOF
10558#line $LINENO "configure"
10559/* confdefs.h.  */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h.  */
10564#include <locale.h>
10565int
10566main ()
10567{
10568return LC_MESSAGES
10569  ;
10570  return 0;
10571}
10572_ACEOF
10573rm -f conftest.$ac_objext conftest$ac_exeext
10574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575  (eval $ac_link) 2>&5
10576  ac_status=$?
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); } &&
10579         { ac_try='test -s conftest$ac_exeext'
10580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581  (eval $ac_try) 2>&5
10582  ac_status=$?
10583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584  (exit $ac_status); }; }; then
10585  am_cv_val_LC_MESSAGES=yes
10586else
10587  echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590am_cv_val_LC_MESSAGES=no
10591fi
10592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10593fi
10594echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10595echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10596    if test $am_cv_val_LC_MESSAGES = yes; then
10597
10598cat >>confdefs.h <<\_ACEOF
10599#define HAVE_LC_MESSAGES 1
10600_ACEOF
10601
10602    fi
10603  fi
10604     USE_NLS=yes
10605
10606
10607    gt_cv_have_gettext=no
10608
10609    CATOBJEXT=NONE
10610    XGETTEXT=:
10611    INTLLIBS=
10612
10613    if test "${ac_cv_header_libintl_h+set}" = set; then
10614  echo "$as_me:$LINENO: checking for libintl.h" >&5
10615echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
10616if test "${ac_cv_header_libintl_h+set}" = set; then
10617  echo $ECHO_N "(cached) $ECHO_C" >&6
10618fi
10619echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10620echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
10621else
10622  # Is the header compilable?
10623echo "$as_me:$LINENO: checking libintl.h usability" >&5
10624echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
10625cat >conftest.$ac_ext <<_ACEOF
10626#line $LINENO "configure"
10627/* confdefs.h.  */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h.  */
10632$ac_includes_default
10633#include <libintl.h>
10634_ACEOF
10635rm -f conftest.$ac_objext
10636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10637  (eval $ac_compile) 2>&5
10638  ac_status=$?
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); } &&
10641         { ac_try='test -s conftest.$ac_objext'
10642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643  (eval $ac_try) 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; }; then
10647  ac_header_compiler=yes
10648else
10649  echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652ac_header_compiler=no
10653fi
10654rm -f conftest.$ac_objext conftest.$ac_ext
10655echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10656echo "${ECHO_T}$ac_header_compiler" >&6
10657
10658# Is the header present?
10659echo "$as_me:$LINENO: checking libintl.h presence" >&5
10660echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
10661cat >conftest.$ac_ext <<_ACEOF
10662#line $LINENO "configure"
10663/* confdefs.h.  */
10664_ACEOF
10665cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h.  */
10668#include <libintl.h>
10669_ACEOF
10670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10671  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10672  ac_status=$?
10673  grep -v '^ *+' conftest.er1 >conftest.err
10674  rm -f conftest.er1
10675  cat conftest.err >&5
10676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677  (exit $ac_status); } >/dev/null; then
10678  if test -s conftest.err; then
10679    ac_cpp_err=$ac_c_preproc_warn_flag
10680  else
10681    ac_cpp_err=
10682  fi
10683else
10684  ac_cpp_err=yes
10685fi
10686if test -z "$ac_cpp_err"; then
10687  ac_header_preproc=yes
10688else
10689  echo "$as_me: failed program was:" >&5
10690sed 's/^/| /' conftest.$ac_ext >&5
10691
10692  ac_header_preproc=no
10693fi
10694rm -f conftest.err conftest.$ac_ext
10695echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10696echo "${ECHO_T}$ac_header_preproc" >&6
10697
10698# So?  What about this header?
10699case $ac_header_compiler:$ac_header_preproc in
10700  yes:no )
10701    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10702echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10703    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10704echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10705    (
10706      cat <<\_ASBOX
10707## ------------------------------------ ##
10708## Report this to bug-autoconf@gnu.org. ##
10709## ------------------------------------ ##
10710_ASBOX
10711    ) |
10712      sed "s/^/$as_me: WARNING:     /" >&2
10713    ;;
10714  no:yes )
10715    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10716echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10717    { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10718echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10719    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10720echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10721    (
10722      cat <<\_ASBOX
10723## ------------------------------------ ##
10724## Report this to bug-autoconf@gnu.org. ##
10725## ------------------------------------ ##
10726_ASBOX
10727    ) |
10728      sed "s/^/$as_me: WARNING:     /" >&2
10729    ;;
10730esac
10731echo "$as_me:$LINENO: checking for libintl.h" >&5
10732echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
10733if test "${ac_cv_header_libintl_h+set}" = set; then
10734  echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736  ac_cv_header_libintl_h=$ac_header_preproc
10737fi
10738echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10739echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
10740
10741fi
10742if test $ac_cv_header_libintl_h = yes; then
10743  gt_cv_func_dgettext_libintl="no"
10744      libintl_extra_libs=""
10745
10746      #
10747      # First check in libc
10748      #
10749      echo "$as_me:$LINENO: checking for dgettext in libc" >&5
10750echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
10751if test "${gt_cv_func_dgettext_libc+set}" = set; then
10752  echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754  cat >conftest.$ac_ext <<_ACEOF
10755#line $LINENO "configure"
10756/* confdefs.h.  */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h.  */
10761
10762#include <libintl.h>
10763
10764int
10765main ()
10766{
10767return (int) dgettext ("","")
10768  ;
10769  return 0;
10770}
10771_ACEOF
10772rm -f conftest.$ac_objext conftest$ac_exeext
10773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774  (eval $ac_link) 2>&5
10775  ac_status=$?
10776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777  (exit $ac_status); } &&
10778         { ac_try='test -s conftest$ac_exeext'
10779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780  (eval $ac_try) 2>&5
10781  ac_status=$?
10782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783  (exit $ac_status); }; }; then
10784  gt_cv_func_dgettext_libc=yes
10785else
10786  echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789gt_cv_func_dgettext_libc=no
10790fi
10791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10792
10793fi
10794echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10795echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
10796
10797      if test "$gt_cv_func_dgettext_libc" = "yes" ; then
10798
10799for ac_func in bind_textdomain_codeset
10800do
10801as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10802echo "$as_me:$LINENO: checking for $ac_func" >&5
10803echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10804if eval "test \"\${$as_ac_var+set}\" = set"; then
10805  echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807  cat >conftest.$ac_ext <<_ACEOF
10808#line $LINENO "configure"
10809/* confdefs.h.  */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h.  */
10814/* System header to define __stub macros and hopefully few prototypes,
10815    which can conflict with char $ac_func (); below.
10816    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817    <limits.h> exists even on freestanding compilers.  */
10818#ifdef __STDC__
10819# include <limits.h>
10820#else
10821# include <assert.h>
10822#endif
10823/* Override any gcc2 internal prototype to avoid an error.  */
10824#ifdef __cplusplus
10825extern "C"
10826{
10827#endif
10828/* We use char because int might match the return type of a gcc2
10829   builtin and then its argument prototype would still apply.  */
10830char $ac_func ();
10831/* The GNU C library defines this for functions which it implements
10832    to always fail with ENOSYS.  Some functions are actually named
10833    something starting with __ and the normal name is an alias.  */
10834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10835choke me
10836#else
10837char (*f) () = $ac_func;
10838#endif
10839#ifdef __cplusplus
10840}
10841#endif
10842
10843int
10844main ()
10845{
10846return f != $ac_func;
10847  ;
10848  return 0;
10849}
10850_ACEOF
10851rm -f conftest.$ac_objext conftest$ac_exeext
10852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853  (eval $ac_link) 2>&5
10854  ac_status=$?
10855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856  (exit $ac_status); } &&
10857         { ac_try='test -s conftest$ac_exeext'
10858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859  (eval $ac_try) 2>&5
10860  ac_status=$?
10861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862  (exit $ac_status); }; }; then
10863  eval "$as_ac_var=yes"
10864else
10865  echo "$as_me: failed program was:" >&5
10866sed 's/^/| /' conftest.$ac_ext >&5
10867
10868eval "$as_ac_var=no"
10869fi
10870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10871fi
10872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10873echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10874if test `eval echo '${'$as_ac_var'}'` = yes; then
10875  cat >>confdefs.h <<_ACEOF
10876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10877_ACEOF
10878
10879fi
10880done
10881
10882      fi
10883
10884      #
10885      # If we don't have everything we want, check in libintl
10886      #
10887      if test "$gt_cv_func_dgettext_libc" != "yes" \
10888         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10889
10890        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10891echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
10892if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10893  echo $ECHO_N "(cached) $ECHO_C" >&6
10894else
10895  ac_check_lib_save_LIBS=$LIBS
10896LIBS="-lintl  $LIBS"
10897cat >conftest.$ac_ext <<_ACEOF
10898#line $LINENO "configure"
10899/* confdefs.h.  */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h.  */
10904
10905/* Override any gcc2 internal prototype to avoid an error.  */
10906#ifdef __cplusplus
10907extern "C"
10908#endif
10909/* We use char because int might match the return type of a gcc2
10910   builtin and then its argument prototype would still apply.  */
10911char bindtextdomain ();
10912int
10913main ()
10914{
10915bindtextdomain ();
10916  ;
10917  return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext conftest$ac_exeext
10921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922  (eval $ac_link) 2>&5
10923  ac_status=$?
10924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925  (exit $ac_status); } &&
10926         { ac_try='test -s conftest$ac_exeext'
10927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928  (eval $ac_try) 2>&5
10929  ac_status=$?
10930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931  (exit $ac_status); }; }; then
10932  ac_cv_lib_intl_bindtextdomain=yes
10933else
10934  echo "$as_me: failed program was:" >&5
10935sed 's/^/| /' conftest.$ac_ext >&5
10936
10937ac_cv_lib_intl_bindtextdomain=no
10938fi
10939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10940LIBS=$ac_check_lib_save_LIBS
10941fi
10942echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10943echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
10944if test $ac_cv_lib_intl_bindtextdomain = yes; then
10945  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10946echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
10947if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10948  echo $ECHO_N "(cached) $ECHO_C" >&6
10949else
10950  ac_check_lib_save_LIBS=$LIBS
10951LIBS="-lintl  $LIBS"
10952cat >conftest.$ac_ext <<_ACEOF
10953#line $LINENO "configure"
10954/* confdefs.h.  */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h.  */
10959
10960/* Override any gcc2 internal prototype to avoid an error.  */
10961#ifdef __cplusplus
10962extern "C"
10963#endif
10964/* We use char because int might match the return type of a gcc2
10965   builtin and then its argument prototype would still apply.  */
10966char dgettext ();
10967int
10968main ()
10969{
10970dgettext ();
10971  ;
10972  return 0;
10973}
10974_ACEOF
10975rm -f conftest.$ac_objext conftest$ac_exeext
10976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977  (eval $ac_link) 2>&5
10978  ac_status=$?
10979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980  (exit $ac_status); } &&
10981         { ac_try='test -s conftest$ac_exeext'
10982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983  (eval $ac_try) 2>&5
10984  ac_status=$?
10985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986  (exit $ac_status); }; }; then
10987  ac_cv_lib_intl_dgettext=yes
10988else
10989  echo "$as_me: failed program was:" >&5
10990sed 's/^/| /' conftest.$ac_ext >&5
10991
10992ac_cv_lib_intl_dgettext=no
10993fi
10994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10995LIBS=$ac_check_lib_save_LIBS
10996fi
10997echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10998echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
10999if test $ac_cv_lib_intl_dgettext = yes; then
11000  gt_cv_func_dgettext_libintl=yes
11001fi
11002
11003fi
11004
11005
11006	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11007	  echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
11008echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
11009	  echo "$as_me:$LINENO: result: " >&5
11010echo "${ECHO_T}" >&6
11011          echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
11012echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
11013if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
11014  echo $ECHO_N "(cached) $ECHO_C" >&6
11015else
11016  ac_check_lib_save_LIBS=$LIBS
11017LIBS="-lintl -liconv $LIBS"
11018cat >conftest.$ac_ext <<_ACEOF
11019#line $LINENO "configure"
11020/* confdefs.h.  */
11021_ACEOF
11022cat confdefs.h >>conftest.$ac_ext
11023cat >>conftest.$ac_ext <<_ACEOF
11024/* end confdefs.h.  */
11025
11026/* Override any gcc2 internal prototype to avoid an error.  */
11027#ifdef __cplusplus
11028extern "C"
11029#endif
11030/* We use char because int might match the return type of a gcc2
11031   builtin and then its argument prototype would still apply.  */
11032char dcgettext ();
11033int
11034main ()
11035{
11036dcgettext ();
11037  ;
11038  return 0;
11039}
11040_ACEOF
11041rm -f conftest.$ac_objext conftest$ac_exeext
11042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043  (eval $ac_link) 2>&5
11044  ac_status=$?
11045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046  (exit $ac_status); } &&
11047         { ac_try='test -s conftest$ac_exeext'
11048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049  (eval $ac_try) 2>&5
11050  ac_status=$?
11051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052  (exit $ac_status); }; }; then
11053  ac_cv_lib_intl_dcgettext=yes
11054else
11055  echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
11058ac_cv_lib_intl_dcgettext=no
11059fi
11060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11061LIBS=$ac_check_lib_save_LIBS
11062fi
11063echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
11064echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
11065if test $ac_cv_lib_intl_dcgettext = yes; then
11066  gt_cv_func_dgettext_libintl=yes
11067			libintl_extra_libs=-liconv
11068else
11069  :
11070fi
11071
11072        fi
11073
11074        #
11075        # If we found libintl, then check in it for bind_textdomain_codeset();
11076        # we'll prefer libc if neither have bind_textdomain_codeset(),
11077        # and both have dgettext
11078        #
11079        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11080          glib_save_LIBS="$LIBS"
11081          LIBS="$LIBS -lintl $libintl_extra_libs"
11082          unset ac_cv_func_bind_textdomain_codeset
11083
11084for ac_func in bind_textdomain_codeset
11085do
11086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11087echo "$as_me:$LINENO: checking for $ac_func" >&5
11088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11089if eval "test \"\${$as_ac_var+set}\" = set"; then
11090  echo $ECHO_N "(cached) $ECHO_C" >&6
11091else
11092  cat >conftest.$ac_ext <<_ACEOF
11093#line $LINENO "configure"
11094/* confdefs.h.  */
11095_ACEOF
11096cat confdefs.h >>conftest.$ac_ext
11097cat >>conftest.$ac_ext <<_ACEOF
11098/* end confdefs.h.  */
11099/* System header to define __stub macros and hopefully few prototypes,
11100    which can conflict with char $ac_func (); below.
11101    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102    <limits.h> exists even on freestanding compilers.  */
11103#ifdef __STDC__
11104# include <limits.h>
11105#else
11106# include <assert.h>
11107#endif
11108/* Override any gcc2 internal prototype to avoid an error.  */
11109#ifdef __cplusplus
11110extern "C"
11111{
11112#endif
11113/* We use char because int might match the return type of a gcc2
11114   builtin and then its argument prototype would still apply.  */
11115char $ac_func ();
11116/* The GNU C library defines this for functions which it implements
11117    to always fail with ENOSYS.  Some functions are actually named
11118    something starting with __ and the normal name is an alias.  */
11119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11120choke me
11121#else
11122char (*f) () = $ac_func;
11123#endif
11124#ifdef __cplusplus
11125}
11126#endif
11127
11128int
11129main ()
11130{
11131return f != $ac_func;
11132  ;
11133  return 0;
11134}
11135_ACEOF
11136rm -f conftest.$ac_objext conftest$ac_exeext
11137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138  (eval $ac_link) 2>&5
11139  ac_status=$?
11140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141  (exit $ac_status); } &&
11142         { ac_try='test -s conftest$ac_exeext'
11143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144  (eval $ac_try) 2>&5
11145  ac_status=$?
11146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147  (exit $ac_status); }; }; then
11148  eval "$as_ac_var=yes"
11149else
11150  echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153eval "$as_ac_var=no"
11154fi
11155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11156fi
11157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11159if test `eval echo '${'$as_ac_var'}'` = yes; then
11160  cat >>confdefs.h <<_ACEOF
11161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11162_ACEOF
11163
11164fi
11165done
11166
11167          LIBS="$glib_save_LIBS"
11168
11169          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11170            gt_cv_func_dgettext_libc=no
11171          else
11172            if test "$gt_cv_func_dgettext_libc" = "yes"; then
11173              gt_cv_func_dgettext_libintl=no
11174            fi
11175          fi
11176        fi
11177      fi
11178
11179      if test "$gt_cv_func_dgettext_libc" = "yes" \
11180	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
11181        gt_cv_have_gettext=yes
11182      fi
11183
11184      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11185        INTLLIBS="-lintl $libintl_extra_libs"
11186      fi
11187
11188      if test "$gt_cv_have_gettext" = "yes"; then
11189
11190cat >>confdefs.h <<\_ACEOF
11191#define HAVE_GETTEXT 1
11192_ACEOF
11193
11194	# Extract the first word of "msgfmt", so it can be a program name with args.
11195set dummy msgfmt; ac_word=$2
11196echo "$as_me:$LINENO: checking for $ac_word" >&5
11197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11198if test "${ac_cv_path_MSGFMT+set}" = set; then
11199  echo $ECHO_N "(cached) $ECHO_C" >&6
11200else
11201  case "$MSGFMT" in
11202  /*)
11203  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11204  ;;
11205  *)
11206  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11207  for ac_dir in $PATH; do
11208    test -z "$ac_dir" && ac_dir=.
11209    if test -f $ac_dir/$ac_word; then
11210      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11211	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11212	break
11213      fi
11214    fi
11215  done
11216  IFS="$ac_save_ifs"
11217  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11218  ;;
11219esac
11220fi
11221MSGFMT="$ac_cv_path_MSGFMT"
11222if test "$MSGFMT" != "no"; then
11223  echo "$as_me:$LINENO: result: $MSGFMT" >&5
11224echo "${ECHO_T}$MSGFMT" >&6
11225else
11226  echo "$as_me:$LINENO: result: no" >&5
11227echo "${ECHO_T}no" >&6
11228fi
11229	if test "$MSGFMT" != "no"; then
11230
11231for ac_func in dcgettext
11232do
11233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234echo "$as_me:$LINENO: checking for $ac_func" >&5
11235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11236if eval "test \"\${$as_ac_var+set}\" = set"; then
11237  echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239  cat >conftest.$ac_ext <<_ACEOF
11240#line $LINENO "configure"
11241/* confdefs.h.  */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h.  */
11246/* System header to define __stub macros and hopefully few prototypes,
11247    which can conflict with char $ac_func (); below.
11248    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11249    <limits.h> exists even on freestanding compilers.  */
11250#ifdef __STDC__
11251# include <limits.h>
11252#else
11253# include <assert.h>
11254#endif
11255/* Override any gcc2 internal prototype to avoid an error.  */
11256#ifdef __cplusplus
11257extern "C"
11258{
11259#endif
11260/* We use char because int might match the return type of a gcc2
11261   builtin and then its argument prototype would still apply.  */
11262char $ac_func ();
11263/* The GNU C library defines this for functions which it implements
11264    to always fail with ENOSYS.  Some functions are actually named
11265    something starting with __ and the normal name is an alias.  */
11266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11267choke me
11268#else
11269char (*f) () = $ac_func;
11270#endif
11271#ifdef __cplusplus
11272}
11273#endif
11274
11275int
11276main ()
11277{
11278return f != $ac_func;
11279  ;
11280  return 0;
11281}
11282_ACEOF
11283rm -f conftest.$ac_objext conftest$ac_exeext
11284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11285  (eval $ac_link) 2>&5
11286  ac_status=$?
11287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288  (exit $ac_status); } &&
11289         { ac_try='test -s conftest$ac_exeext'
11290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291  (eval $ac_try) 2>&5
11292  ac_status=$?
11293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294  (exit $ac_status); }; }; then
11295  eval "$as_ac_var=yes"
11296else
11297  echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300eval "$as_ac_var=no"
11301fi
11302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11303fi
11304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11306if test `eval echo '${'$as_ac_var'}'` = yes; then
11307  cat >>confdefs.h <<_ACEOF
11308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309_ACEOF
11310
11311fi
11312done
11313
11314	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11315set dummy gmsgfmt; ac_word=$2
11316echo "$as_me:$LINENO: checking for $ac_word" >&5
11317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11318if test "${ac_cv_path_GMSGFMT+set}" = set; then
11319  echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321  case $GMSGFMT in
11322  [\\/]* | ?:[\\/]*)
11323  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11324  ;;
11325  *)
11326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327for as_dir in $PATH
11328do
11329  IFS=$as_save_IFS
11330  test -z "$as_dir" && as_dir=.
11331  for ac_exec_ext in '' $ac_executable_extensions; do
11332  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11335    break 2
11336  fi
11337done
11338done
11339
11340  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11341  ;;
11342esac
11343fi
11344GMSGFMT=$ac_cv_path_GMSGFMT
11345
11346if test -n "$GMSGFMT"; then
11347  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11348echo "${ECHO_T}$GMSGFMT" >&6
11349else
11350  echo "$as_me:$LINENO: result: no" >&5
11351echo "${ECHO_T}no" >&6
11352fi
11353
11354	  # Extract the first word of "xgettext", so it can be a program name with args.
11355set dummy xgettext; ac_word=$2
11356echo "$as_me:$LINENO: checking for $ac_word" >&5
11357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11358if test "${ac_cv_path_XGETTEXT+set}" = set; then
11359  echo $ECHO_N "(cached) $ECHO_C" >&6
11360else
11361  case "$XGETTEXT" in
11362  /*)
11363  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11364  ;;
11365  *)
11366  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11367  for ac_dir in $PATH; do
11368    test -z "$ac_dir" && ac_dir=.
11369    if test -f $ac_dir/$ac_word; then
11370      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11371	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11372	break
11373      fi
11374    fi
11375  done
11376  IFS="$ac_save_ifs"
11377  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11378  ;;
11379esac
11380fi
11381XGETTEXT="$ac_cv_path_XGETTEXT"
11382if test "$XGETTEXT" != ":"; then
11383  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11384echo "${ECHO_T}$XGETTEXT" >&6
11385else
11386  echo "$as_me:$LINENO: result: no" >&5
11387echo "${ECHO_T}no" >&6
11388fi
11389
11390	  cat >conftest.$ac_ext <<_ACEOF
11391#line $LINENO "configure"
11392/* confdefs.h.  */
11393_ACEOF
11394cat confdefs.h >>conftest.$ac_ext
11395cat >>conftest.$ac_ext <<_ACEOF
11396/* end confdefs.h.  */
11397
11398int
11399main ()
11400{
11401extern int _nl_msg_cat_cntr;
11402			 return _nl_msg_cat_cntr
11403  ;
11404  return 0;
11405}
11406_ACEOF
11407rm -f conftest.$ac_objext conftest$ac_exeext
11408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409  (eval $ac_link) 2>&5
11410  ac_status=$?
11411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412  (exit $ac_status); } &&
11413         { ac_try='test -s conftest$ac_exeext'
11414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415  (eval $ac_try) 2>&5
11416  ac_status=$?
11417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418  (exit $ac_status); }; }; then
11419  CATOBJEXT=.gmo
11420             DATADIRNAME=share
11421else
11422  echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425CATOBJEXT=.mo
11426             DATADIRNAME=lib
11427fi
11428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11429	  INSTOBJEXT=.mo
11430	else
11431	  gt_cv_have_gettext=no
11432	fi
11433      fi
11434
11435fi
11436
11437
11438
11439    if test "$gt_cv_have_gettext" = "yes" ; then
11440
11441cat >>confdefs.h <<\_ACEOF
11442#define ENABLE_NLS 1
11443_ACEOF
11444
11445    fi
11446
11447        if test "$XGETTEXT" != ":"; then
11448                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11449        : ;
11450      else
11451        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11452echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11453        XGETTEXT=":"
11454      fi
11455    fi
11456
11457    # We need to process the po/ directory.
11458    POSUB=po
11459
11460              ac_config_commands="$ac_config_commands default-1"
11461
11462
11463                for lang in $ALL_LINGUAS; do
11464      GMOFILES="$GMOFILES $lang.gmo"
11465      POFILES="$POFILES $lang.po"
11466    done
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480   if test "$gt_cv_have_gettext" = "yes"; then
11481     if test "x$ALL_LINGUAS" = "x"; then
11482       LINGUAS=
11483     else
11484       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11485echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11486       NEW_LINGUAS=
11487       for lang in ${LINGUAS=$ALL_LINGUAS}; do
11488         case "$ALL_LINGUAS" in
11489          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
11490         esac
11491       done
11492       LINGUAS=$NEW_LINGUAS
11493       echo "$as_me:$LINENO: result: $LINGUAS" >&5
11494echo "${ECHO_T}$LINGUAS" >&6
11495     fi
11496
11497          if test -n "$LINGUAS"; then
11498       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11499     fi
11500   fi
11501
11502            MKINSTALLDIRS=
11503   if test -n "$ac_aux_dir"; then
11504     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11505   fi
11506   if test -z "$MKINSTALLDIRS"; then
11507     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11508   fi
11509
11510
11511         test -d po || mkdir po
11512   if test "x$srcdir" != "x."; then
11513     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11514       posrcprefix="$srcdir/"
11515     else
11516       posrcprefix="../$srcdir/"
11517     fi
11518   else
11519     posrcprefix="../"
11520   fi
11521   rm -f po/POTFILES
11522   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11523	< $srcdir/po/POTFILES.in > po/POTFILES
11524
11525
11526cat >>confdefs.h <<_ACEOF
11527#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11528_ACEOF
11529
11530
11531if test "x${prefix}" = "xNONE"; then
11532  myprefix=${ac_default_prefix}
11533else
11534  myprefix=${prefix}
11535fi
11536
11537
11538cat >>confdefs.h <<_ACEOF
11539#define PACKAGE_LOCALE_DIR "${myprefix}/${DATADIRNAME}/locale"
11540_ACEOF
11541
11542
11543
11544  succeeded=no
11545
11546  if test -z "$PKG_CONFIG"; then
11547    # Extract the first word of "pkg-config", so it can be a program name with args.
11548set dummy pkg-config; ac_word=$2
11549echo "$as_me:$LINENO: checking for $ac_word" >&5
11550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11551if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11552  echo $ECHO_N "(cached) $ECHO_C" >&6
11553else
11554  case $PKG_CONFIG in
11555  [\\/]* | ?:[\\/]*)
11556  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11557  ;;
11558  *)
11559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560for as_dir in $PATH
11561do
11562  IFS=$as_save_IFS
11563  test -z "$as_dir" && as_dir=.
11564  for ac_exec_ext in '' $ac_executable_extensions; do
11565  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11566    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11568    break 2
11569  fi
11570done
11571done
11572
11573  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11574  ;;
11575esac
11576fi
11577PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11578
11579if test -n "$PKG_CONFIG"; then
11580  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11581echo "${ECHO_T}$PKG_CONFIG" >&6
11582else
11583  echo "$as_me:$LINENO: result: no" >&5
11584echo "${ECHO_T}no" >&6
11585fi
11586
11587  fi
11588
11589  if test "$PKG_CONFIG" = "no" ; then
11590     echo "*** The pkg-config script could not be found. Make sure it is"
11591     echo "*** in your path, or set the PKG_CONFIG environment variable"
11592     echo "*** to the full path to pkg-config."
11593     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11594  else
11595     PKG_CONFIG_MIN_VERSION=0.9.0
11596     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11597        echo "$as_me:$LINENO: checking for gobject-2.0" >&5
11598echo $ECHO_N "checking for gobject-2.0... $ECHO_C" >&6
11599
11600        if $PKG_CONFIG --exists "gobject-2.0" ; then
11601            echo "$as_me:$LINENO: result: yes" >&5
11602echo "${ECHO_T}yes" >&6
11603            succeeded=yes
11604
11605            echo "$as_me:$LINENO: checking GOBJECT_CFLAGS" >&5
11606echo $ECHO_N "checking GOBJECT_CFLAGS... $ECHO_C" >&6
11607            GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0"`
11608            echo "$as_me:$LINENO: result: $GOBJECT_CFLAGS" >&5
11609echo "${ECHO_T}$GOBJECT_CFLAGS" >&6
11610
11611            echo "$as_me:$LINENO: checking GOBJECT_LIBS" >&5
11612echo $ECHO_N "checking GOBJECT_LIBS... $ECHO_C" >&6
11613            GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0"`
11614            echo "$as_me:$LINENO: result: $GOBJECT_LIBS" >&5
11615echo "${ECHO_T}$GOBJECT_LIBS" >&6
11616        else
11617            GOBJECT_CFLAGS=""
11618            GOBJECT_LIBS=""
11619            ## If we have a custom action on failure, don't print errors, but
11620            ## do set a variable so people can do so.
11621            GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0"`
11622            echo $GOBJECT_PKG_ERRORS
11623        fi
11624
11625
11626
11627     else
11628        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11629        echo "*** See http://www.freedesktop.org/software/pkgconfig"
11630     fi
11631  fi
11632
11633  if test $succeeded = yes; then
11634     :
11635  else
11636     { { echo "$as_me:$LINENO: error: Library requirements (gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11637echo "$as_me: error: Library requirements (gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11638   { (exit 1); exit 1; }; }
11639  fi
11640
11641
11642
11643
11644ASSETML_DIR=assetml
11645
11646
11647cat >>confdefs.h <<_ACEOF
11648#define ASSETML_DIR "${myprefix}/${DATADIRNAME}/${ASSETML_DIR}"
11649_ACEOF
11650
11651
11652
11653# Extract the first word of "makeinfo", so it can be a program name with args.
11654set dummy makeinfo; ac_word=$2
11655echo "$as_me:$LINENO: checking for $ac_word" >&5
11656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11657if test "${ac_cv_path_TEXINFO+set}" = set; then
11658  echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660  case $TEXINFO in
11661  [\\/]* | ?:[\\/]*)
11662  ac_cv_path_TEXINFO="$TEXINFO" # Let the user override the test with a path.
11663  ;;
11664  *)
11665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666for as_dir in $PATH
11667do
11668  IFS=$as_save_IFS
11669  test -z "$as_dir" && as_dir=.
11670  for ac_exec_ext in '' $ac_executable_extensions; do
11671  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672    ac_cv_path_TEXINFO="$as_dir/$ac_word$ac_exec_ext"
11673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11674    break 2
11675  fi
11676done
11677done
11678
11679  test -z "$ac_cv_path_TEXINFO" && ac_cv_path_TEXINFO="no"
11680  ;;
11681esac
11682fi
11683TEXINFO=$ac_cv_path_TEXINFO
11684
11685if test -n "$TEXINFO"; then
11686  echo "$as_me:$LINENO: result: $TEXINFO" >&5
11687echo "${ECHO_T}$TEXINFO" >&6
11688else
11689  echo "$as_me:$LINENO: result: no" >&5
11690echo "${ECHO_T}no" >&6
11691fi
11692
11693if test x$TEXINFO = xno; then
11694  { { echo "$as_me:$LINENO: error: Couldn't find texinfo" >&5
11695echo "$as_me: error: Couldn't find texinfo" >&2;}
11696   { (exit please install the texinfo package); exit please install the texinfo package; }; }
11697fi
11698
11699# Extract the first word of "texi2html", so it can be a program name with args.
11700set dummy texi2html; ac_word=$2
11701echo "$as_me:$LINENO: checking for $ac_word" >&5
11702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11703if test "${ac_cv_path_TETEX+set}" = set; then
11704  echo $ECHO_N "(cached) $ECHO_C" >&6
11705else
11706  case $TETEX in
11707  [\\/]* | ?:[\\/]*)
11708  ac_cv_path_TETEX="$TETEX" # Let the user override the test with a path.
11709  ;;
11710  *)
11711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712for as_dir in $PATH
11713do
11714  IFS=$as_save_IFS
11715  test -z "$as_dir" && as_dir=.
11716  for ac_exec_ext in '' $ac_executable_extensions; do
11717  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11718    ac_cv_path_TETEX="$as_dir/$ac_word$ac_exec_ext"
11719    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11720    break 2
11721  fi
11722done
11723done
11724
11725  test -z "$ac_cv_path_TETEX" && ac_cv_path_TETEX="no"
11726  ;;
11727esac
11728fi
11729TETEX=$ac_cv_path_TETEX
11730
11731if test -n "$TETEX"; then
11732  echo "$as_me:$LINENO: result: $TETEX" >&5
11733echo "${ECHO_T}$TETEX" >&6
11734else
11735  echo "$as_me:$LINENO: result: no" >&5
11736echo "${ECHO_T}no" >&6
11737fi
11738
11739if test x$TETEX = xno; then
11740  { { echo "$as_me:$LINENO: error: Couldn't find texi2html usualy in the tetex package" >&5
11741echo "$as_me: error: Couldn't find texi2html usualy in the tetex package" >&2;}
11742   { (exit please install it); exit please install it; }; }
11743fi
11744
11745
11746                                                                                          ac_config_files="$ac_config_files libassetml.spec Makefile src/Makefile src/libassetml.pc src/test/Makefile src/tools/Makefile po/Makefile.in docs/Makefile docs/C/Makefile"
11747cat >confcache <<\_ACEOF
11748# This file is a shell script that caches the results of configure
11749# tests run on this system so they can be shared between configure
11750# scripts and configure runs, see configure's option --config-cache.
11751# It is not useful on other systems.  If it contains results you don't
11752# want to keep, you may remove or edit it.
11753#
11754# config.status only pays attention to the cache file if you give it
11755# the --recheck option to rerun configure.
11756#
11757# `ac_cv_env_foo' variables (set or unset) will be overridden when
11758# loading this file, other *unset* `ac_cv_foo' will be assigned the
11759# following values.
11760
11761_ACEOF
11762
11763# The following way of writing the cache mishandles newlines in values,
11764# but we know of no workaround that is simple, portable, and efficient.
11765# So, don't put newlines in cache variables' values.
11766# Ultrix sh set writes to stderr and can't be redirected directly,
11767# and sets the high bit in the cache file unless we assign to the vars.
11768{
11769  (set) 2>&1 |
11770    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11771    *ac_space=\ *)
11772      # `set' does not quote correctly, so add quotes (double-quote
11773      # substitution turns \\\\ into \\, and sed turns \\ into \).
11774      sed -n \
11775        "s/'/'\\\\''/g;
11776    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11777      ;;
11778    *)
11779      # `set' quotes correctly as required by POSIX, so do not add quotes.
11780      sed -n \
11781        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11782      ;;
11783    esac;
11784} |
11785  sed '
11786     t clear
11787     : clear
11788     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11789     t end
11790     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11791     : end' >>confcache
11792if diff $cache_file confcache >/dev/null 2>&1; then :; else
11793  if test -w $cache_file; then
11794    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11795    cat confcache >$cache_file
11796  else
11797    echo "not updating unwritable cache $cache_file"
11798  fi
11799fi
11800rm -f confcache
11801
11802test "x$prefix" = xNONE && prefix=$ac_default_prefix
11803# Let make expand exec_prefix.
11804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11805
11806# VPATH may cause trouble with some makes, so we remove $(srcdir),
11807# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11808# trailing colons and then remove the whole line if VPATH becomes empty
11809# (actually we leave an empty line to preserve line numbers).
11810if test "x$srcdir" = x.; then
11811  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
11812s/:*\$(srcdir):*/:/;
11813s/:*\${srcdir}:*/:/;
11814s/:*@srcdir@:*/:/;
11815s/^\([^=]*=[ 	]*\):*/\1/;
11816s/:*$//;
11817s/^[^=]*=[ 	]*$//;
11818}'
11819fi
11820
11821DEFS=-DHAVE_CONFIG_H
11822
11823ac_libobjs=
11824ac_ltlibobjs=
11825for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11826  # 1. Remove the extension, and $U if already installed.
11827  ac_i=`echo "$ac_i" |
11828         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11829  # 2. Add them.
11830  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11831  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11832done
11833LIBOBJS=$ac_libobjs
11834
11835LTLIBOBJS=$ac_ltlibobjs
11836
11837
11838if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11839  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11840Usually this means the macro was only invoked conditionally." >&5
11841echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11842Usually this means the macro was only invoked conditionally." >&2;}
11843   { (exit 1); exit 1; }; }
11844fi
11845if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11846  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11847Usually this means the macro was only invoked conditionally." >&5
11848echo "$as_me: error: conditional \"AMDEP\" was never defined.
11849Usually this means the macro was only invoked conditionally." >&2;}
11850   { (exit 1); exit 1; }; }
11851fi
11852if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11853  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11854Usually this means the macro was only invoked conditionally." >&5
11855echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11856Usually this means the macro was only invoked conditionally." >&2;}
11857   { (exit 1); exit 1; }; }
11858fi
11859if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11860  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11861Usually this means the macro was only invoked conditionally." >&5
11862echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11863Usually this means the macro was only invoked conditionally." >&2;}
11864   { (exit 1); exit 1; }; }
11865fi
11866
11867: ${CONFIG_STATUS=./config.status}
11868ac_clean_files_save=$ac_clean_files
11869ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11870{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11871echo "$as_me: creating $CONFIG_STATUS" >&6;}
11872cat >$CONFIG_STATUS <<_ACEOF
11873#! $SHELL
11874# Generated by $as_me.
11875# Run this file to recreate the current configuration.
11876# Compiler output produced by configure, useful for debugging
11877# configure, is in config.log if it exists.
11878
11879debug=false
11880ac_cs_recheck=false
11881ac_cs_silent=false
11882SHELL=\${CONFIG_SHELL-$SHELL}
11883_ACEOF
11884
11885cat >>$CONFIG_STATUS <<\_ACEOF
11886## --------------------- ##
11887## M4sh Initialization.  ##
11888## --------------------- ##
11889
11890# Be Bourne compatible
11891if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11892  emulate sh
11893  NULLCMD=:
11894  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11895  # is contrary to our usage.  Disable this feature.
11896  alias -g '${1+"$@"}'='"$@"'
11897elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11898  set -o posix
11899fi
11900
11901# Support unset when possible.
11902if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11903  as_unset=unset
11904else
11905  as_unset=false
11906fi
11907
11908
11909# Work around bugs in pre-3.0 UWIN ksh.
11910$as_unset ENV MAIL MAILPATH
11911PS1='$ '
11912PS2='> '
11913PS4='+ '
11914
11915# NLS nuisances.
11916for as_var in \
11917  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11918  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11919  LC_TELEPHONE LC_TIME
11920do
11921  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11922    eval $as_var=C; export $as_var
11923  else
11924    $as_unset $as_var
11925  fi
11926done
11927
11928# Required to use basename.
11929if expr a : '\(a\)' >/dev/null 2>&1; then
11930  as_expr=expr
11931else
11932  as_expr=false
11933fi
11934
11935if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11936  as_basename=basename
11937else
11938  as_basename=false
11939fi
11940
11941
11942# Name of the executable.
11943as_me=`$as_basename "$0" ||
11944$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11945	 X"$0" : 'X\(//\)$' \| \
11946	 X"$0" : 'X\(/\)$' \| \
11947	 .     : '\(.\)' 2>/dev/null ||
11948echo X/"$0" |
11949    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11950  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
11951  	  /^X\/\(\/\).*/{ s//\1/; q; }
11952  	  s/.*/./; q'`
11953
11954
11955# PATH needs CR, and LINENO needs CR and PATH.
11956# Avoid depending upon Character Ranges.
11957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11960as_cr_digits='0123456789'
11961as_cr_alnum=$as_cr_Letters$as_cr_digits
11962
11963# The user is always right.
11964if test "${PATH_SEPARATOR+set}" != set; then
11965  echo "#! /bin/sh" >conf$$.sh
11966  echo  "exit 0"   >>conf$$.sh
11967  chmod +x conf$$.sh
11968  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11969    PATH_SEPARATOR=';'
11970  else
11971    PATH_SEPARATOR=:
11972  fi
11973  rm -f conf$$.sh
11974fi
11975
11976
11977  as_lineno_1=$LINENO
11978  as_lineno_2=$LINENO
11979  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11980  test "x$as_lineno_1" != "x$as_lineno_2" &&
11981  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11982  # Find who we are.  Look in the path if we contain no path at all
11983  # relative or not.
11984  case $0 in
11985    *[\\/]* ) as_myself=$0 ;;
11986    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987for as_dir in $PATH
11988do
11989  IFS=$as_save_IFS
11990  test -z "$as_dir" && as_dir=.
11991  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11992done
11993
11994       ;;
11995  esac
11996  # We did not find ourselves, most probably we were run as `sh COMMAND'
11997  # in which case we are not to be found in the path.
11998  if test "x$as_myself" = x; then
11999    as_myself=$0
12000  fi
12001  if test ! -f "$as_myself"; then
12002    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12003echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12004   { (exit 1); exit 1; }; }
12005  fi
12006  case $CONFIG_SHELL in
12007  '')
12008    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12010do
12011  IFS=$as_save_IFS
12012  test -z "$as_dir" && as_dir=.
12013  for as_base in sh bash ksh sh5; do
12014	 case $as_dir in
12015	 /*)
12016	   if ("$as_dir/$as_base" -c '
12017  as_lineno_1=$LINENO
12018  as_lineno_2=$LINENO
12019  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12020  test "x$as_lineno_1" != "x$as_lineno_2" &&
12021  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12022	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12023	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12024	     CONFIG_SHELL=$as_dir/$as_base
12025	     export CONFIG_SHELL
12026	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12027	   fi;;
12028	 esac
12029       done
12030done
12031;;
12032  esac
12033
12034  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12035  # uniformly replaced by the line number.  The first 'sed' inserts a
12036  # line-number line before each line; the second 'sed' does the real
12037  # work.  The second script uses 'N' to pair each line-number line
12038  # with the numbered line, and appends trailing '-' during
12039  # substitution so that $LINENO is not a special case at line end.
12040  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12041  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12042  sed '=' <$as_myself |
12043    sed '
12044      N
12045      s,$,-,
12046      : loop
12047      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12048      t loop
12049      s,-$,,
12050      s,^['$as_cr_digits']*\n,,
12051    ' >$as_me.lineno &&
12052  chmod +x $as_me.lineno ||
12053    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12054echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12055   { (exit 1); exit 1; }; }
12056
12057  # Don't try to exec as it changes $[0], causing all sort of problems
12058  # (the dirname of $[0] is not the place where we might find the
12059  # original and so on.  Autoconf is especially sensible to this).
12060  . ./$as_me.lineno
12061  # Exit status is that of the last command.
12062  exit
12063}
12064
12065
12066case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12067  *c*,-n*) ECHO_N= ECHO_C='
12068' ECHO_T='	' ;;
12069  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12070  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12071esac
12072
12073if expr a : '\(a\)' >/dev/null 2>&1; then
12074  as_expr=expr
12075else
12076  as_expr=false
12077fi
12078
12079rm -f conf$$ conf$$.exe conf$$.file
12080echo >conf$$.file
12081if ln -s conf$$.file conf$$ 2>/dev/null; then
12082  # We could just check for DJGPP; but this test a) works b) is more generic
12083  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12084  if test -f conf$$.exe; then
12085    # Don't use ln at all; we don't have any links
12086    as_ln_s='cp -p'
12087  else
12088    as_ln_s='ln -s'
12089  fi
12090elif ln conf$$.file conf$$ 2>/dev/null; then
12091  as_ln_s=ln
12092else
12093  as_ln_s='cp -p'
12094fi
12095rm -f conf$$ conf$$.exe conf$$.file
12096
12097if mkdir -p . 2>/dev/null; then
12098  as_mkdir_p=:
12099else
12100  as_mkdir_p=false
12101fi
12102
12103as_executable_p="test -f"
12104
12105# Sed expression to map a string onto a valid CPP name.
12106as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12107
12108# Sed expression to map a string onto a valid variable name.
12109as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12110
12111
12112# IFS
12113# We need space, tab and new line, in precisely that order.
12114as_nl='
12115'
12116IFS=" 	$as_nl"
12117
12118# CDPATH.
12119$as_unset CDPATH
12120
12121exec 6>&1
12122
12123# Open the log real soon, to keep \$[0] and so on meaningful, and to
12124# report actual input values of CONFIG_FILES etc. instead of their
12125# values after options handling.  Logging --version etc. is OK.
12126exec 5>>config.log
12127{
12128  echo
12129  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12130## Running $as_me. ##
12131_ASBOX
12132} >&5
12133cat >&5 <<_CSEOF
12134
12135This file was extended by $as_me, which was
12136generated by GNU Autoconf 2.57.  Invocation command line was
12137
12138  CONFIG_FILES    = $CONFIG_FILES
12139  CONFIG_HEADERS  = $CONFIG_HEADERS
12140  CONFIG_LINKS    = $CONFIG_LINKS
12141  CONFIG_COMMANDS = $CONFIG_COMMANDS
12142  $ $0 $@
12143
12144_CSEOF
12145echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12146echo >&5
12147_ACEOF
12148
12149# Files that config.status was made for.
12150if test -n "$ac_config_files"; then
12151  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12152fi
12153
12154if test -n "$ac_config_headers"; then
12155  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12156fi
12157
12158if test -n "$ac_config_links"; then
12159  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12160fi
12161
12162if test -n "$ac_config_commands"; then
12163  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12164fi
12165
12166cat >>$CONFIG_STATUS <<\_ACEOF
12167
12168ac_cs_usage="\
12169\`$as_me' instantiates files from templates according to the
12170current configuration.
12171
12172Usage: $0 [OPTIONS] [FILE]...
12173
12174  -h, --help       print this help, then exit
12175  -V, --version    print version number, then exit
12176  -q, --quiet      do not print progress messages
12177  -d, --debug      don't remove temporary files
12178      --recheck    update $as_me by reconfiguring in the same conditions
12179  --file=FILE[:TEMPLATE]
12180                   instantiate the configuration file FILE
12181  --header=FILE[:TEMPLATE]
12182                   instantiate the configuration header FILE
12183
12184Configuration files:
12185$config_files
12186
12187Configuration headers:
12188$config_headers
12189
12190Configuration commands:
12191$config_commands
12192
12193Report bugs to <bug-autoconf@gnu.org>."
12194_ACEOF
12195
12196cat >>$CONFIG_STATUS <<_ACEOF
12197ac_cs_version="\\
12198config.status
12199configured by $0, generated by GNU Autoconf 2.57,
12200  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12201
12202Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12203Free Software Foundation, Inc.
12204This config.status script is free software; the Free Software Foundation
12205gives unlimited permission to copy, distribute and modify it."
12206srcdir=$srcdir
12207INSTALL="$INSTALL"
12208_ACEOF
12209
12210cat >>$CONFIG_STATUS <<\_ACEOF
12211# If no file are specified by the user, then we need to provide default
12212# value.  By we need to know if files were specified by the user.
12213ac_need_defaults=:
12214while test $# != 0
12215do
12216  case $1 in
12217  --*=*)
12218    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12219    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12220    ac_shift=:
12221    ;;
12222  -*)
12223    ac_option=$1
12224    ac_optarg=$2
12225    ac_shift=shift
12226    ;;
12227  *) # This is not an option, so the user has probably given explicit
12228     # arguments.
12229     ac_option=$1
12230     ac_need_defaults=false;;
12231  esac
12232
12233  case $ac_option in
12234  # Handling of the options.
12235_ACEOF
12236cat >>$CONFIG_STATUS <<\_ACEOF
12237  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12238    ac_cs_recheck=: ;;
12239  --version | --vers* | -V )
12240    echo "$ac_cs_version"; exit 0 ;;
12241  --he | --h)
12242    # Conflict between --help and --header
12243    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12244Try \`$0 --help' for more information." >&5
12245echo "$as_me: error: ambiguous option: $1
12246Try \`$0 --help' for more information." >&2;}
12247   { (exit 1); exit 1; }; };;
12248  --help | --hel | -h )
12249    echo "$ac_cs_usage"; exit 0 ;;
12250  --debug | --d* | -d )
12251    debug=: ;;
12252  --file | --fil | --fi | --f )
12253    $ac_shift
12254    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12255    ac_need_defaults=false;;
12256  --header | --heade | --head | --hea )
12257    $ac_shift
12258    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12259    ac_need_defaults=false;;
12260  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12261  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12262    ac_cs_silent=: ;;
12263
12264  # This is an error.
12265  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12266Try \`$0 --help' for more information." >&5
12267echo "$as_me: error: unrecognized option: $1
12268Try \`$0 --help' for more information." >&2;}
12269   { (exit 1); exit 1; }; } ;;
12270
12271  *) ac_config_targets="$ac_config_targets $1" ;;
12272
12273  esac
12274  shift
12275done
12276
12277ac_configure_extra_args=
12278
12279if $ac_cs_silent; then
12280  exec 6>/dev/null
12281  ac_configure_extra_args="$ac_configure_extra_args --silent"
12282fi
12283
12284_ACEOF
12285cat >>$CONFIG_STATUS <<_ACEOF
12286if \$ac_cs_recheck; then
12287  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12288  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12289fi
12290
12291_ACEOF
12292
12293cat >>$CONFIG_STATUS <<_ACEOF
12294#
12295# INIT-COMMANDS section.
12296#
12297
12298AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12299
12300
12301_ACEOF
12302
12303
12304
12305cat >>$CONFIG_STATUS <<\_ACEOF
12306for ac_config_target in $ac_config_targets
12307do
12308  case "$ac_config_target" in
12309  # Handling of arguments.
12310  "libassetml.spec" ) CONFIG_FILES="$CONFIG_FILES libassetml.spec" ;;
12311  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12312  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12313  "src/libassetml.pc" ) CONFIG_FILES="$CONFIG_FILES src/libassetml.pc" ;;
12314  "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
12315  "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
12316  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12317  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
12318  "docs/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/C/Makefile" ;;
12319  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12320  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12321  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12322  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12323echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12324   { (exit 1); exit 1; }; };;
12325  esac
12326done
12327
12328# If the user did not use the arguments to specify the items to instantiate,
12329# then the envvar interface is used.  Set only those that are not.
12330# We use the long form for the default assignment because of an extremely
12331# bizarre bug on SunOS 4.1.3.
12332if $ac_need_defaults; then
12333  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12334  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12335  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12336fi
12337
12338# Have a temporary directory for convenience.  Make it in the build tree
12339# simply because there is no reason to put it here, and in addition,
12340# creating and moving files from /tmp can sometimes cause problems.
12341# Create a temporary directory, and hook for its removal unless debugging.
12342$debug ||
12343{
12344  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12345  trap '{ (exit 1); exit 1; }' 1 2 13 15
12346}
12347
12348# Create a (secure) tmp directory for tmp files.
12349
12350{
12351  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12352  test -n "$tmp" && test -d "$tmp"
12353}  ||
12354{
12355  tmp=./confstat$$-$RANDOM
12356  (umask 077 && mkdir $tmp)
12357} ||
12358{
12359   echo "$me: cannot create a temporary directory in ." >&2
12360   { (exit 1); exit 1; }
12361}
12362
12363_ACEOF
12364
12365cat >>$CONFIG_STATUS <<_ACEOF
12366
12367#
12368# CONFIG_FILES section.
12369#
12370
12371# No need to generate the scripts if there are no CONFIG_FILES.
12372# This happens for instance when ./config.status config.h
12373if test -n "\$CONFIG_FILES"; then
12374  # Protect against being on the right side of a sed subst in config.status.
12375  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12376   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12377s,@SHELL@,$SHELL,;t t
12378s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12379s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12380s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12381s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12382s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12383s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12384s,@exec_prefix@,$exec_prefix,;t t
12385s,@prefix@,$prefix,;t t
12386s,@program_transform_name@,$program_transform_name,;t t
12387s,@bindir@,$bindir,;t t
12388s,@sbindir@,$sbindir,;t t
12389s,@libexecdir@,$libexecdir,;t t
12390s,@datadir@,$datadir,;t t
12391s,@sysconfdir@,$sysconfdir,;t t
12392s,@sharedstatedir@,$sharedstatedir,;t t
12393s,@localstatedir@,$localstatedir,;t t
12394s,@libdir@,$libdir,;t t
12395s,@includedir@,$includedir,;t t
12396s,@oldincludedir@,$oldincludedir,;t t
12397s,@infodir@,$infodir,;t t
12398s,@mandir@,$mandir,;t t
12399s,@build_alias@,$build_alias,;t t
12400s,@host_alias@,$host_alias,;t t
12401s,@target_alias@,$target_alias,;t t
12402s,@DEFS@,$DEFS,;t t
12403s,@ECHO_C@,$ECHO_C,;t t
12404s,@ECHO_N@,$ECHO_N,;t t
12405s,@ECHO_T@,$ECHO_T,;t t
12406s,@LIBS@,$LIBS,;t t
12407s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12408s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12409s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12410s,@CYGPATH_W@,$CYGPATH_W,;t t
12411s,@PACKAGE@,$PACKAGE,;t t
12412s,@VERSION@,$VERSION,;t t
12413s,@ACLOCAL@,$ACLOCAL,;t t
12414s,@AUTOCONF@,$AUTOCONF,;t t
12415s,@AUTOMAKE@,$AUTOMAKE,;t t
12416s,@AUTOHEADER@,$AUTOHEADER,;t t
12417s,@MAKEINFO@,$MAKEINFO,;t t
12418s,@AMTAR@,$AMTAR,;t t
12419s,@install_sh@,$install_sh,;t t
12420s,@STRIP@,$STRIP,;t t
12421s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12422s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12423s,@AWK@,$AWK,;t t
12424s,@SET_MAKE@,$SET_MAKE,;t t
12425s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12426s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12427s,@MAINT@,$MAINT,;t t
12428s,@CC@,$CC,;t t
12429s,@CFLAGS@,$CFLAGS,;t t
12430s,@LDFLAGS@,$LDFLAGS,;t t
12431s,@CPPFLAGS@,$CPPFLAGS,;t t
12432s,@ac_ct_CC@,$ac_ct_CC,;t t
12433s,@EXEEXT@,$EXEEXT,;t t
12434s,@OBJEXT@,$OBJEXT,;t t
12435s,@DEPDIR@,$DEPDIR,;t t
12436s,@am__include@,$am__include,;t t
12437s,@am__quote@,$am__quote,;t t
12438s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12439s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12440s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12441s,@CCDEPMODE@,$CCDEPMODE,;t t
12442s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12443s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12444s,@CPP@,$CPP,;t t
12445s,@EGREP@,$EGREP,;t t
12446s,@build@,$build,;t t
12447s,@build_cpu@,$build_cpu,;t t
12448s,@build_vendor@,$build_vendor,;t t
12449s,@build_os@,$build_os,;t t
12450s,@host@,$host,;t t
12451s,@host_cpu@,$host_cpu,;t t
12452s,@host_vendor@,$host_vendor,;t t
12453s,@host_os@,$host_os,;t t
12454s,@LN_S@,$LN_S,;t t
12455s,@ECHO@,$ECHO,;t t
12456s,@RANLIB@,$RANLIB,;t t
12457s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12458s,@LIBTOOL@,$LIBTOOL,;t t
12459s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12460s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
12461s,@GLIB_LIBS@,$GLIB_LIBS,;t t
12462s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
12463s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
12464s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
12465s,@XML_CFLAGS@,$XML_CFLAGS,;t t
12466s,@XML_LIBS@,$XML_LIBS,;t t
12467s,@LIBICONV@,$LIBICONV,;t t
12468s,@LTLIBICONV@,$LTLIBICONV,;t t
12469s,@POPT_LIBS@,$POPT_LIBS,;t t
12470s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
12471s,@USE_NLS@,$USE_NLS,;t t
12472s,@MSGFMT@,$MSGFMT,;t t
12473s,@GMSGFMT@,$GMSGFMT,;t t
12474s,@XGETTEXT@,$XGETTEXT,;t t
12475s,@CATALOGS@,$CATALOGS,;t t
12476s,@CATOBJEXT@,$CATOBJEXT,;t t
12477s,@DATADIRNAME@,$DATADIRNAME,;t t
12478s,@GMOFILES@,$GMOFILES,;t t
12479s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12480s,@INTLLIBS@,$INTLLIBS,;t t
12481s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
12482s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
12483s,@POFILES@,$POFILES,;t t
12484s,@POSUB@,$POSUB,;t t
12485s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12486s,@GOBJECT_CFLAGS@,$GOBJECT_CFLAGS,;t t
12487s,@GOBJECT_LIBS@,$GOBJECT_LIBS,;t t
12488s,@ASSETML_DIR@,$ASSETML_DIR,;t t
12489s,@TEXINFO@,$TEXINFO,;t t
12490s,@TETEX@,$TETEX,;t t
12491s,@LIBOBJS@,$LIBOBJS,;t t
12492s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12493CEOF
12494
12495_ACEOF
12496
12497  cat >>$CONFIG_STATUS <<\_ACEOF
12498  # Split the substitutions into bite-sized pieces for seds with
12499  # small command number limits, like on Digital OSF/1 and HP-UX.
12500  ac_max_sed_lines=48
12501  ac_sed_frag=1 # Number of current file.
12502  ac_beg=1 # First line for current file.
12503  ac_end=$ac_max_sed_lines # Line after last line for current file.
12504  ac_more_lines=:
12505  ac_sed_cmds=
12506  while $ac_more_lines; do
12507    if test $ac_beg -gt 1; then
12508      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12509    else
12510      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12511    fi
12512    if test ! -s $tmp/subs.frag; then
12513      ac_more_lines=false
12514    else
12515      # The purpose of the label and of the branching condition is to
12516      # speed up the sed processing (if there are no `@' at all, there
12517      # is no need to browse any of the substitutions).
12518      # These are the two extra sed commands mentioned above.
12519      (echo ':t
12520  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12521      if test -z "$ac_sed_cmds"; then
12522  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12523      else
12524  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12525      fi
12526      ac_sed_frag=`expr $ac_sed_frag + 1`
12527      ac_beg=$ac_end
12528      ac_end=`expr $ac_end + $ac_max_sed_lines`
12529    fi
12530  done
12531  if test -z "$ac_sed_cmds"; then
12532    ac_sed_cmds=cat
12533  fi
12534fi # test -n "$CONFIG_FILES"
12535
12536_ACEOF
12537cat >>$CONFIG_STATUS <<\_ACEOF
12538for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12539  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12540  case $ac_file in
12541  - | *:- | *:-:* ) # input from stdin
12542        cat >$tmp/stdin
12543        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12544        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12545  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12546        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12547  * )   ac_file_in=$ac_file.in ;;
12548  esac
12549
12550  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12551  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12552$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12553         X"$ac_file" : 'X\(//\)[^/]' \| \
12554         X"$ac_file" : 'X\(//\)$' \| \
12555         X"$ac_file" : 'X\(/\)' \| \
12556         .     : '\(.\)' 2>/dev/null ||
12557echo X"$ac_file" |
12558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12559  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12560  	  /^X\(\/\/\)$/{ s//\1/; q; }
12561  	  /^X\(\/\).*/{ s//\1/; q; }
12562  	  s/.*/./; q'`
12563  { if $as_mkdir_p; then
12564    mkdir -p "$ac_dir"
12565  else
12566    as_dir="$ac_dir"
12567    as_dirs=
12568    while test ! -d "$as_dir"; do
12569      as_dirs="$as_dir $as_dirs"
12570      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12572         X"$as_dir" : 'X\(//\)[^/]' \| \
12573         X"$as_dir" : 'X\(//\)$' \| \
12574         X"$as_dir" : 'X\(/\)' \| \
12575         .     : '\(.\)' 2>/dev/null ||
12576echo X"$as_dir" |
12577    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12578  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12579  	  /^X\(\/\/\)$/{ s//\1/; q; }
12580  	  /^X\(\/\).*/{ s//\1/; q; }
12581  	  s/.*/./; q'`
12582    done
12583    test ! -n "$as_dirs" || mkdir $as_dirs
12584  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12585echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12586   { (exit 1); exit 1; }; }; }
12587
12588  ac_builddir=.
12589
12590if test "$ac_dir" != .; then
12591  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12592  # A "../" for each directory in $ac_dir_suffix.
12593  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12594else
12595  ac_dir_suffix= ac_top_builddir=
12596fi
12597
12598case $srcdir in
12599  .)  # No --srcdir option.  We are building in place.
12600    ac_srcdir=.
12601    if test -z "$ac_top_builddir"; then
12602       ac_top_srcdir=.
12603    else
12604       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12605    fi ;;
12606  [\\/]* | ?:[\\/]* )  # Absolute path.
12607    ac_srcdir=$srcdir$ac_dir_suffix;
12608    ac_top_srcdir=$srcdir ;;
12609  *) # Relative path.
12610    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12611    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12612esac
12613# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12614# absolute.
12615ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12616ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12617ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12618ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12619
12620
12621  case $INSTALL in
12622  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12623  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12624  esac
12625
12626  if test x"$ac_file" != x-; then
12627    { echo "$as_me:$LINENO: creating $ac_file" >&5
12628echo "$as_me: creating $ac_file" >&6;}
12629    rm -f "$ac_file"
12630  fi
12631  # Let's still pretend it is `configure' which instantiates (i.e., don't
12632  # use $as_me), people would be surprised to read:
12633  #    /* config.h.  Generated by config.status.  */
12634  if test x"$ac_file" = x-; then
12635    configure_input=
12636  else
12637    configure_input="$ac_file.  "
12638  fi
12639  configure_input=$configure_input"Generated from `echo $ac_file_in |
12640                                     sed 's,.*/,,'` by configure."
12641
12642  # First look for the input files in the build tree, otherwise in the
12643  # src tree.
12644  ac_file_inputs=`IFS=:
12645    for f in $ac_file_in; do
12646      case $f in
12647      -) echo $tmp/stdin ;;
12648      [\\/$]*)
12649         # Absolute (can't be DOS-style, as IFS=:)
12650         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12651echo "$as_me: error: cannot find input file: $f" >&2;}
12652   { (exit 1); exit 1; }; }
12653         echo $f;;
12654      *) # Relative
12655         if test -f "$f"; then
12656           # Build tree
12657           echo $f
12658         elif test -f "$srcdir/$f"; then
12659           # Source tree
12660           echo $srcdir/$f
12661         else
12662           # /dev/null tree
12663           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12664echo "$as_me: error: cannot find input file: $f" >&2;}
12665   { (exit 1); exit 1; }; }
12666         fi;;
12667      esac
12668    done` || { (exit 1); exit 1; }
12669_ACEOF
12670cat >>$CONFIG_STATUS <<_ACEOF
12671  sed "$ac_vpsub
12672$extrasub
12673_ACEOF
12674cat >>$CONFIG_STATUS <<\_ACEOF
12675:t
12676/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12677s,@configure_input@,$configure_input,;t t
12678s,@srcdir@,$ac_srcdir,;t t
12679s,@abs_srcdir@,$ac_abs_srcdir,;t t
12680s,@top_srcdir@,$ac_top_srcdir,;t t
12681s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12682s,@builddir@,$ac_builddir,;t t
12683s,@abs_builddir@,$ac_abs_builddir,;t t
12684s,@top_builddir@,$ac_top_builddir,;t t
12685s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12686s,@INSTALL@,$ac_INSTALL,;t t
12687" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12688  rm -f $tmp/stdin
12689  if test x"$ac_file" != x-; then
12690    mv $tmp/out $ac_file
12691  else
12692    cat $tmp/out
12693    rm -f $tmp/out
12694  fi
12695
12696done
12697_ACEOF
12698cat >>$CONFIG_STATUS <<\_ACEOF
12699
12700#
12701# CONFIG_HEADER section.
12702#
12703
12704# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12705# NAME is the cpp macro being defined and VALUE is the value it is being given.
12706#
12707# ac_d sets the value in "#define NAME VALUE" lines.
12708ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
12709ac_dB='[ 	].*$,\1#\2'
12710ac_dC=' '
12711ac_dD=',;t'
12712# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12713ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
12714ac_uB='$,\1#\2define\3'
12715ac_uC=' '
12716ac_uD=',;t'
12717
12718for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12719  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12720  case $ac_file in
12721  - | *:- | *:-:* ) # input from stdin
12722        cat >$tmp/stdin
12723        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12724        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12725  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12726        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12727  * )   ac_file_in=$ac_file.in ;;
12728  esac
12729
12730  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12731echo "$as_me: creating $ac_file" >&6;}
12732
12733  # First look for the input files in the build tree, otherwise in the
12734  # src tree.
12735  ac_file_inputs=`IFS=:
12736    for f in $ac_file_in; do
12737      case $f in
12738      -) echo $tmp/stdin ;;
12739      [\\/$]*)
12740         # Absolute (can't be DOS-style, as IFS=:)
12741         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12742echo "$as_me: error: cannot find input file: $f" >&2;}
12743   { (exit 1); exit 1; }; }
12744         echo $f;;
12745      *) # Relative
12746         if test -f "$f"; then
12747           # Build tree
12748           echo $f
12749         elif test -f "$srcdir/$f"; then
12750           # Source tree
12751           echo $srcdir/$f
12752         else
12753           # /dev/null tree
12754           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12755echo "$as_me: error: cannot find input file: $f" >&2;}
12756   { (exit 1); exit 1; }; }
12757         fi;;
12758      esac
12759    done` || { (exit 1); exit 1; }
12760  # Remove the trailing spaces.
12761  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
12762
12763_ACEOF
12764
12765# Transform confdefs.h into two sed scripts, `conftest.defines' and
12766# `conftest.undefs', that substitutes the proper values into
12767# config.h.in to produce config.h.  The first handles `#define'
12768# templates, and the second `#undef' templates.
12769# And first: Protect against being on the right side of a sed subst in
12770# config.status.  Protect against being in an unquoted here document
12771# in config.status.
12772rm -f conftest.defines conftest.undefs
12773# Using a here document instead of a string reduces the quoting nightmare.
12774# Putting comments in sed scripts is not portable.
12775#
12776# `end' is used to avoid that the second main sed command (meant for
12777# 0-ary CPP macros) applies to n-ary macro definitions.
12778# See the Autoconf documentation for `clear'.
12779cat >confdef2sed.sed <<\_ACEOF
12780s/[\\&,]/\\&/g
12781s,[\\$`],\\&,g
12782t clear
12783: clear
12784s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12785t end
12786s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12787: end
12788_ACEOF
12789# If some macros were called several times there might be several times
12790# the same #defines, which is useless.  Nevertheless, we may not want to
12791# sort them, since we want the *last* AC-DEFINE to be honored.
12792uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12793sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12794rm -f confdef2sed.sed
12795
12796# This sed command replaces #undef with comments.  This is necessary, for
12797# example, in the case of _POSIX_SOURCE, which is predefined and required
12798# on some systems where configure will not decide to define it.
12799cat >>conftest.undefs <<\_ACEOF
12800s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12801_ACEOF
12802
12803# Break up conftest.defines because some shells have a limit on the size
12804# of here documents, and old seds have small limits too (100 cmds).
12805echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12806echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12807echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12808echo '  :' >>$CONFIG_STATUS
12809rm -f conftest.tail
12810while grep . conftest.defines >/dev/null
12811do
12812  # Write a limited-size here document to $tmp/defines.sed.
12813  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12814  # Speed up: don't consider the non `#define' lines.
12815  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
12816  # Work around the forget-to-reset-the-flag bug.
12817  echo 't clr' >>$CONFIG_STATUS
12818  echo ': clr' >>$CONFIG_STATUS
12819  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12820  echo 'CEOF
12821  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12822  rm -f $tmp/in
12823  mv $tmp/out $tmp/in
12824' >>$CONFIG_STATUS
12825  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12826  rm -f conftest.defines
12827  mv conftest.tail conftest.defines
12828done
12829rm -f conftest.defines
12830echo '  fi # grep' >>$CONFIG_STATUS
12831echo >>$CONFIG_STATUS
12832
12833# Break up conftest.undefs because some shells have a limit on the size
12834# of here documents, and old seds have small limits too (100 cmds).
12835echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12836rm -f conftest.tail
12837while grep . conftest.undefs >/dev/null
12838do
12839  # Write a limited-size here document to $tmp/undefs.sed.
12840  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12841  # Speed up: don't consider the non `#undef'
12842  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
12843  # Work around the forget-to-reset-the-flag bug.
12844  echo 't clr' >>$CONFIG_STATUS
12845  echo ': clr' >>$CONFIG_STATUS
12846  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12847  echo 'CEOF
12848  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12849  rm -f $tmp/in
12850  mv $tmp/out $tmp/in
12851' >>$CONFIG_STATUS
12852  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12853  rm -f conftest.undefs
12854  mv conftest.tail conftest.undefs
12855done
12856rm -f conftest.undefs
12857
12858cat >>$CONFIG_STATUS <<\_ACEOF
12859  # Let's still pretend it is `configure' which instantiates (i.e., don't
12860  # use $as_me), people would be surprised to read:
12861  #    /* config.h.  Generated by config.status.  */
12862  if test x"$ac_file" = x-; then
12863    echo "/* Generated by configure.  */" >$tmp/config.h
12864  else
12865    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12866  fi
12867  cat $tmp/in >>$tmp/config.h
12868  rm -f $tmp/in
12869  if test x"$ac_file" != x-; then
12870    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12871      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12872echo "$as_me: $ac_file is unchanged" >&6;}
12873    else
12874      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12875$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12876         X"$ac_file" : 'X\(//\)[^/]' \| \
12877         X"$ac_file" : 'X\(//\)$' \| \
12878         X"$ac_file" : 'X\(/\)' \| \
12879         .     : '\(.\)' 2>/dev/null ||
12880echo X"$ac_file" |
12881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12882  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12883  	  /^X\(\/\/\)$/{ s//\1/; q; }
12884  	  /^X\(\/\).*/{ s//\1/; q; }
12885  	  s/.*/./; q'`
12886      { if $as_mkdir_p; then
12887    mkdir -p "$ac_dir"
12888  else
12889    as_dir="$ac_dir"
12890    as_dirs=
12891    while test ! -d "$as_dir"; do
12892      as_dirs="$as_dir $as_dirs"
12893      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12894$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12895         X"$as_dir" : 'X\(//\)[^/]' \| \
12896         X"$as_dir" : 'X\(//\)$' \| \
12897         X"$as_dir" : 'X\(/\)' \| \
12898         .     : '\(.\)' 2>/dev/null ||
12899echo X"$as_dir" |
12900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12901  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12902  	  /^X\(\/\/\)$/{ s//\1/; q; }
12903  	  /^X\(\/\).*/{ s//\1/; q; }
12904  	  s/.*/./; q'`
12905    done
12906    test ! -n "$as_dirs" || mkdir $as_dirs
12907  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12908echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12909   { (exit 1); exit 1; }; }; }
12910
12911      rm -f $ac_file
12912      mv $tmp/config.h $ac_file
12913    fi
12914  else
12915    cat $tmp/config.h
12916    rm -f $tmp/config.h
12917  fi
12918_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
12919echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12920$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12921         X$ac_file : 'X\(//\)[^/]' \| \
12922         X$ac_file : 'X\(//\)$' \| \
12923         X$ac_file : 'X\(/\)' \| \
12924         .     : '\(.\)' 2>/dev/null ||
12925echo X$ac_file |
12926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12927  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12928  	  /^X\(\/\/\)$/{ s//\1/; q; }
12929  	  /^X\(\/\).*/{ s//\1/; q; }
12930  	  s/.*/./; q'`/stamp-h$_am_stamp_count
12931done
12932_ACEOF
12933cat >>$CONFIG_STATUS <<\_ACEOF
12934
12935#
12936# CONFIG_COMMANDS section.
12937#
12938for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12939  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12940  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12941  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12942$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943         X"$ac_dest" : 'X\(//\)[^/]' \| \
12944         X"$ac_dest" : 'X\(//\)$' \| \
12945         X"$ac_dest" : 'X\(/\)' \| \
12946         .     : '\(.\)' 2>/dev/null ||
12947echo X"$ac_dest" |
12948    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12949  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12950  	  /^X\(\/\/\)$/{ s//\1/; q; }
12951  	  /^X\(\/\).*/{ s//\1/; q; }
12952  	  s/.*/./; q'`
12953  ac_builddir=.
12954
12955if test "$ac_dir" != .; then
12956  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12957  # A "../" for each directory in $ac_dir_suffix.
12958  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12959else
12960  ac_dir_suffix= ac_top_builddir=
12961fi
12962
12963case $srcdir in
12964  .)  # No --srcdir option.  We are building in place.
12965    ac_srcdir=.
12966    if test -z "$ac_top_builddir"; then
12967       ac_top_srcdir=.
12968    else
12969       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12970    fi ;;
12971  [\\/]* | ?:[\\/]* )  # Absolute path.
12972    ac_srcdir=$srcdir$ac_dir_suffix;
12973    ac_top_srcdir=$srcdir ;;
12974  *) # Relative path.
12975    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12976    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12977esac
12978# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12979# absolute.
12980ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12981ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12982ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12983ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12984
12985
12986  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12987echo "$as_me: executing $ac_dest commands" >&6;}
12988  case $ac_dest in
12989    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12990  # Strip MF so we end up with the name of the file.
12991  mf=`echo "$mf" | sed -e 's/:.*$//'`
12992  # Check whether this is an Automake generated Makefile or not.
12993  # We used to match only the files named `Makefile.in', but
12994  # some people rename them; so instead we look at the file content.
12995  # Grep'ing the first line is not enough: some people post-process
12996  # each Makefile.in and add a new line on top of each file to say so.
12997  # So let's grep whole file.
12998  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12999    dirpart=`(dirname "$mf") 2>/dev/null ||
13000$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13001         X"$mf" : 'X\(//\)[^/]' \| \
13002         X"$mf" : 'X\(//\)$' \| \
13003         X"$mf" : 'X\(/\)' \| \
13004         .     : '\(.\)' 2>/dev/null ||
13005echo X"$mf" |
13006    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13007  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13008  	  /^X\(\/\/\)$/{ s//\1/; q; }
13009  	  /^X\(\/\).*/{ s//\1/; q; }
13010  	  s/.*/./; q'`
13011  else
13012    continue
13013  fi
13014  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13015  # Extract the definition of DEP_FILES from the Makefile without
13016  # running `make'.
13017  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13018  test -z "$DEPDIR" && continue
13019  # When using ansi2knr, U may be empty or an underscore; expand it
13020  U=`sed -n -e '/^U = / s///p' < "$mf"`
13021  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13022  # We invoke sed twice because it is the simplest approach to
13023  # changing $(DEPDIR) to its actual value in the expansion.
13024  for file in `sed -n -e '
13025    /^DEP_FILES = .*\\\\$/ {
13026      s/^DEP_FILES = //
13027      :loop
13028	s/\\\\$//
13029	p
13030	n
13031	/\\\\$/ b loop
13032      p
13033    }
13034    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13035       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13036    # Make sure the directory exists.
13037    test -f "$dirpart/$file" && continue
13038    fdir=`(dirname "$file") 2>/dev/null ||
13039$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13040         X"$file" : 'X\(//\)[^/]' \| \
13041         X"$file" : 'X\(//\)$' \| \
13042         X"$file" : 'X\(/\)' \| \
13043         .     : '\(.\)' 2>/dev/null ||
13044echo X"$file" |
13045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13046  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13047  	  /^X\(\/\/\)$/{ s//\1/; q; }
13048  	  /^X\(\/\).*/{ s//\1/; q; }
13049  	  s/.*/./; q'`
13050    { if $as_mkdir_p; then
13051    mkdir -p $dirpart/$fdir
13052  else
13053    as_dir=$dirpart/$fdir
13054    as_dirs=
13055    while test ! -d "$as_dir"; do
13056      as_dirs="$as_dir $as_dirs"
13057      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13059         X"$as_dir" : 'X\(//\)[^/]' \| \
13060         X"$as_dir" : 'X\(//\)$' \| \
13061         X"$as_dir" : 'X\(/\)' \| \
13062         .     : '\(.\)' 2>/dev/null ||
13063echo X"$as_dir" |
13064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13065  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13066  	  /^X\(\/\/\)$/{ s//\1/; q; }
13067  	  /^X\(\/\).*/{ s//\1/; q; }
13068  	  s/.*/./; q'`
13069    done
13070    test ! -n "$as_dirs" || mkdir $as_dirs
13071  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13072echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13073   { (exit 1); exit 1; }; }; }
13074
13075    # echo "creating $dirpart/$file"
13076    echo '# dummy' > "$dirpart/$file"
13077  done
13078done
13079 ;;
13080    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
13081        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
13082      esac ;;
13083  esac
13084done
13085_ACEOF
13086
13087cat >>$CONFIG_STATUS <<\_ACEOF
13088
13089{ (exit 0); exit 0; }
13090_ACEOF
13091chmod +x $CONFIG_STATUS
13092ac_clean_files=$ac_clean_files_save
13093
13094
13095# configure is writing to config.log, and then calls config.status.
13096# config.status does its own redirection, appending to config.log.
13097# Unfortunately, on DOS this fails, as config.log is still kept open
13098# by configure, so config.status won't be able to write to it; its
13099# output is simply discarded.  So we exec the FD to /dev/null,
13100# effectively closing config.log, so it can be properly (re)opened and
13101# appended to by config.status.  When coming back to configure, we
13102# need to make the FD available again.
13103if test "$no_create" != yes; then
13104  ac_cs_success=:
13105  ac_config_status_args=
13106  test "$silent" = yes &&
13107    ac_config_status_args="$ac_config_status_args --quiet"
13108  exec 5>/dev/null
13109  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13110  exec 5>>config.log
13111  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13112  # would make configure fail if this is the last instruction.
13113  $ac_cs_success || { (exit 1); exit 1; }
13114fi
13115
13116
13117echo ""
13118echo "***************************************************"
13119echo ""
13120echo configure complete,
13121echo libassetml will be installed in ${prefix}
13122echo to compile and install in in another directory
13123echo type sh configure --prefix=/usr
13124echo
13125echo type \'make\' to compile libassetml
13126echo type \'make install\' to install it
13127