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