source: configure

Last change on this file was 1, checked in by coin, 8 years ago

Initial import

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