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