source: ThirdParty/ASL/stable/1.2/configure @ 3156

Last change on this file since 3156 was 3156, checked in by tkr, 7 years ago

restoring BuildTools/ThirdParty?/ASL/stable/1.2

  • Property svn:executable set to *
File size: 715.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartyASL 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A HOST_TYPE HOST_IS_CYGWIN_TRUE HOST_IS_CYGWIN_FALSE ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL 1.2 to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017                          [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019                          [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL 1.2:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066                          (implies --disable-shared)
1067  --enable-debug-asl compile project ASL with debug compiler flags
1068
1069  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081  --disable-pkg-config    disable use of pkg-config (if available)
1082
1083Optional Packages:
1084  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1085  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1086  --with-asl-verbosity specify the debug verbosity level for project ASL
1087  --with-asl-checklevel specify the sanity check level for project ASL
1088  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1089  --with-pic              try to use only PIC/non-PIC objects [default=use
1090                          both]
1091  --with-tags[=TAGS]
1092                          include additional configurations [automatic]
1093  --with-coin-instdir     prefix of installation directory for precompiled
1094                          COIN packages
1095
1096Some influential environment variables:
1097  CDEFS       Additional -D flags to be used when compiling C code.
1098  ADD_CFLAGS  Additional C compiler options
1099  DBG_CFLAGS  Debug C compiler options
1100  OPT_CFLAGS  Optimize C compiler options
1101  CC          C compiler command
1102  CFLAGS      C compiler flags
1103  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104              nonstandard directory <lib dir>
1105  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106              headers in a nonstandard directory <include dir>
1107  MPICC       C MPI Compiler
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114  PKG_CONFIG  path to pkg-config utility
1115  ASLMAKEFLAGS
1116              Compilation flags necessary for compiling the AMPL solver
1117              library
1118
1119Use these variables to override the choices made by `configure' or to help
1120it to find libraries and programs with nonstandard names/locations.
1121
1122Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1123_ACEOF
1124fi
1125
1126if test "$ac_init_help" = "recursive"; then
1127  # If there are subdirs, report their specific --help.
1128  ac_popdir=`pwd`
1129  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1130    test -d $ac_dir || continue
1131    ac_builddir=.
1132
1133if test "$ac_dir" != .; then
1134  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1135  # A "../" for each directory in $ac_dir_suffix.
1136  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1137else
1138  ac_dir_suffix= ac_top_builddir=
1139fi
1140
1141case $srcdir in
1142  .)  # No --srcdir option.  We are building in place.
1143    ac_srcdir=.
1144    if test -z "$ac_top_builddir"; then
1145       ac_top_srcdir=.
1146    else
1147       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1148    fi ;;
1149  [\\/]* | ?:[\\/]* )  # Absolute path.
1150    ac_srcdir=$srcdir$ac_dir_suffix;
1151    ac_top_srcdir=$srcdir ;;
1152  *) # Relative path.
1153    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1154    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1155esac
1156
1157# Do not use `cd foo && pwd` to compute absolute paths, because
1158# the directories may not exist.
1159case `pwd` in
1160.) ac_abs_builddir="$ac_dir";;
1161*)
1162  case "$ac_dir" in
1163  .) ac_abs_builddir=`pwd`;;
1164  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1165  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1166  esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_builddir=${ac_top_builddir}.;;
1170*)
1171  case ${ac_top_builddir}. in
1172  .) ac_abs_top_builddir=$ac_abs_builddir;;
1173  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1174  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1175  esac;;
1176esac
1177case $ac_abs_builddir in
1178.) ac_abs_srcdir=$ac_srcdir;;
1179*)
1180  case $ac_srcdir in
1181  .) ac_abs_srcdir=$ac_abs_builddir;;
1182  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1183  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1184  esac;;
1185esac
1186case $ac_abs_builddir in
1187.) ac_abs_top_srcdir=$ac_top_srcdir;;
1188*)
1189  case $ac_top_srcdir in
1190  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1191  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1192  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1193  esac;;
1194esac
1195
1196    cd $ac_dir
1197    # Check for guested configure; otherwise get Cygnus style configure.
1198    if test -f $ac_srcdir/configure.gnu; then
1199      echo
1200      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1201    elif test -f $ac_srcdir/configure; then
1202      echo
1203      $SHELL $ac_srcdir/configure  --help=recursive
1204    elif test -f $ac_srcdir/configure.ac ||
1205           test -f $ac_srcdir/configure.in; then
1206      echo
1207      $ac_configure --help
1208    else
1209      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1210    fi
1211    cd $ac_popdir
1212  done
1213fi
1214
1215test -n "$ac_init_help" && exit 0
1216if $ac_init_version; then
1217  cat <<\_ACEOF
1218ThirdPartyASL configure 1.2
1219generated by GNU Autoconf 2.59
1220
1221Copyright (C) 2003 Free Software Foundation, Inc.
1222This configure script is free software; the Free Software Foundation
1223gives unlimited permission to copy, distribute and modify it.
1224
1225
1226Copyright 2006, 2007, 2009 International Business Machines and others.
1227All Rights Reserved.
1228This file is part of the open source package Coin which is distributed
1229under the Eclipse Public License.
1230_ACEOF
1231  exit 0
1232fi
1233exec 5>config.log
1234cat >&5 <<_ACEOF
1235This file contains any messages produced by compilers while
1236running configure, to aid debugging if configure makes a mistake.
1237
1238It was created by ThirdPartyASL $as_me 1.2, which was
1239generated by GNU Autoconf 2.59.  Invocation command line was
1240
1241  $ $0 $@
1242
1243_ACEOF
1244{
1245cat <<_ASUNAME
1246## --------- ##
1247## Platform. ##
1248## --------- ##
1249
1250hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1251uname -m = `(uname -m) 2>/dev/null || echo unknown`
1252uname -r = `(uname -r) 2>/dev/null || echo unknown`
1253uname -s = `(uname -s) 2>/dev/null || echo unknown`
1254uname -v = `(uname -v) 2>/dev/null || echo unknown`
1255
1256/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1257/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1258
1259/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1260/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1261/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1262hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1263/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1264/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1265/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1266
1267_ASUNAME
1268
1269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1270for as_dir in $PATH
1271do
1272  IFS=$as_save_IFS
1273  test -z "$as_dir" && as_dir=.
1274  echo "PATH: $as_dir"
1275done
1276
1277} >&5
1278
1279cat >&5 <<_ACEOF
1280
1281
1282## ----------- ##
1283## Core tests. ##
1284## ----------- ##
1285
1286_ACEOF
1287
1288
1289# Keep a trace of the command line.
1290# Strip out --no-create and --no-recursion so they do not pile up.
1291# Strip out --silent because we don't want to record it for future runs.
1292# Also quote any args containing shell meta-characters.
1293# Make two passes to allow for proper duplicate-argument suppression.
1294ac_configure_args=
1295ac_configure_args0=
1296ac_configure_args1=
1297ac_sep=
1298ac_must_keep_next=false
1299for ac_pass in 1 2
1300do
1301  for ac_arg
1302  do
1303    case $ac_arg in
1304    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1305    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306    | -silent | --silent | --silen | --sile | --sil)
1307      continue ;;
1308    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1310    esac
1311    case $ac_pass in
1312    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1313    2)
1314      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1315      if test $ac_must_keep_next = true; then
1316        ac_must_keep_next=false # Got value, back to normal.
1317      else
1318        case $ac_arg in
1319          *=* | --config-cache | -C | -disable-* | --disable-* \
1320          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1321          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1322          | -with-* | --with-* | -without-* | --without-* | --x)
1323            case "$ac_configure_args0 " in
1324              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1325            esac
1326            ;;
1327          -* ) ac_must_keep_next=true ;;
1328        esac
1329      fi
1330      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1331      # Get rid of the leading space.
1332      ac_sep=" "
1333      ;;
1334    esac
1335  done
1336done
1337$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1338$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1339
1340# When interrupted or exit'd, cleanup temporary files, and complete
1341# config.log.  We remove comments because anyway the quotes in there
1342# would cause problems or look ugly.
1343# WARNING: Be sure not to use single quotes in there, as some shells,
1344# such as our DU 5.0 friend, will then `close' the trap.
1345trap 'exit_status=$?
1346  # Save into config.log some information that might help in debugging.
1347  {
1348    echo
1349
1350    cat <<\_ASBOX
1351## ---------------- ##
1352## Cache variables. ##
1353## ---------------- ##
1354_ASBOX
1355    echo
1356    # The following way of writing the cache mishandles newlines in values,
1357{
1358  (set) 2>&1 |
1359    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1360    *ac_space=\ *)
1361      sed -n \
1362        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1363          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1364      ;;
1365    *)
1366      sed -n \
1367        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1368      ;;
1369    esac;
1370}
1371    echo
1372
1373    cat <<\_ASBOX
1374## ----------------- ##
1375## Output variables. ##
1376## ----------------- ##
1377_ASBOX
1378    echo
1379    for ac_var in $ac_subst_vars
1380    do
1381      eval ac_val=$`echo $ac_var`
1382      echo "$ac_var='"'"'$ac_val'"'"'"
1383    done | sort
1384    echo
1385
1386    if test -n "$ac_subst_files"; then
1387      cat <<\_ASBOX
1388## ------------- ##
1389## Output files. ##
1390## ------------- ##
1391_ASBOX
1392      echo
1393      for ac_var in $ac_subst_files
1394      do
1395        eval ac_val=$`echo $ac_var`
1396        echo "$ac_var='"'"'$ac_val'"'"'"
1397      done | sort
1398      echo
1399    fi
1400
1401    if test -s confdefs.h; then
1402      cat <<\_ASBOX
1403## ----------- ##
1404## confdefs.h. ##
1405## ----------- ##
1406_ASBOX
1407      echo
1408      sed "/^$/d" confdefs.h | sort
1409      echo
1410    fi
1411    test "$ac_signal" != 0 &&
1412      echo "$as_me: caught signal $ac_signal"
1413    echo "$as_me: exit $exit_status"
1414  } >&5
1415  rm -f core *.core &&
1416  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1417    exit $exit_status
1418     ' 0
1419for ac_signal in 1 2 13 15; do
1420  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1421done
1422ac_signal=0
1423
1424# confdefs.h avoids OS command line length limits that DEFS can exceed.
1425rm -rf conftest* confdefs.h
1426# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1427echo >confdefs.h
1428
1429# Predefined preprocessor variables.
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_NAME "$PACKAGE_NAME"
1433_ACEOF
1434
1435
1436cat >>confdefs.h <<_ACEOF
1437#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1438_ACEOF
1439
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_VERSION "$PACKAGE_VERSION"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_STRING "$PACKAGE_STRING"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1453_ACEOF
1454
1455
1456# Let the site file select an alternate cache file if it wants to.
1457# Prefer explicitly selected file to automatically selected ones.
1458if test -z "$CONFIG_SITE"; then
1459  if test "x$prefix" != xNONE; then
1460    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1461  else
1462    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1463  fi
1464fi
1465for ac_site_file in $CONFIG_SITE; do
1466  if test -r "$ac_site_file"; then
1467    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1468echo "$as_me: loading site script $ac_site_file" >&6;}
1469    sed 's/^/| /' "$ac_site_file" >&5
1470    . "$ac_site_file"
1471  fi
1472done
1473
1474if test -r "$cache_file"; then
1475  # Some versions of bash will fail to source /dev/null (special
1476  # files actually), so we avoid doing that.
1477  if test -f "$cache_file"; then
1478    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1479echo "$as_me: loading cache $cache_file" >&6;}
1480    case $cache_file in
1481      [\\/]* | ?:[\\/]* ) . $cache_file;;
1482      *)                      . ./$cache_file;;
1483    esac
1484  fi
1485else
1486  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1487echo "$as_me: creating cache $cache_file" >&6;}
1488  >$cache_file
1489fi
1490
1491# Check that the precious variables saved in the cache have kept the same
1492# value.
1493ac_cache_corrupted=false
1494for ac_var in `(set) 2>&1 |
1495               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1496  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1497  eval ac_new_set=\$ac_env_${ac_var}_set
1498  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1499  eval ac_new_val="\$ac_env_${ac_var}_value"
1500  case $ac_old_set,$ac_new_set in
1501    set,)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,set)
1506      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1507echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1508      ac_cache_corrupted=: ;;
1509    ,);;
1510    *)
1511      if test "x$ac_old_val" != "x$ac_new_val"; then
1512        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1513echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1514        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1515echo "$as_me:   former value:  $ac_old_val" >&2;}
1516        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1517echo "$as_me:   current value: $ac_new_val" >&2;}
1518        ac_cache_corrupted=:
1519      fi;;
1520  esac
1521  # Pass precious variables to config.status.
1522  if test "$ac_new_set" = set; then
1523    case $ac_new_val in
1524    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1525      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1526    *) ac_arg=$ac_var=$ac_new_val ;;
1527    esac
1528    case " $ac_configure_args " in
1529      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1530      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1531    esac
1532  fi
1533done
1534if $ac_cache_corrupted; then
1535  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1536echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1537  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1538echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1539   { (exit 1); exit 1; }; }
1540fi
1541
1542ac_ext=c
1543ac_cpp='$CPP $CPPFLAGS'
1544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1546ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577# List one file in the package so that the configure script can test
1578# whether the package is actually there
1579
1580
1581# Where should everything be installed by default?  Here, we want it
1582# to be installed directly in 'bin', 'lib', 'include' subdirectories
1583# of the directory where configure is run.  The default would be
1584# /usr/local.
1585
1586
1587#############################################################################
1588#                         Standard build tool stuff                         #
1589#############################################################################
1590
1591# Get the system type
1592ac_aux_dir=
1593for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594  if test -f $ac_dir/install-sh; then
1595    ac_aux_dir=$ac_dir
1596    ac_install_sh="$ac_aux_dir/install-sh -c"
1597    break
1598  elif test -f $ac_dir/install.sh; then
1599    ac_aux_dir=$ac_dir
1600    ac_install_sh="$ac_aux_dir/install.sh -c"
1601    break
1602  elif test -f $ac_dir/shtool; then
1603    ac_aux_dir=$ac_dir
1604    ac_install_sh="$ac_aux_dir/shtool install -c"
1605    break
1606  fi
1607done
1608if test -z "$ac_aux_dir"; then
1609  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611   { (exit 1); exit 1; }; }
1612fi
1613ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1616
1617# Make sure we can run config.sub.
1618$ac_config_sub sun4 >/dev/null 2>&1 ||
1619  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621   { (exit 1); exit 1; }; }
1622
1623echo "$as_me:$LINENO: checking build system type" >&5
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626  echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628  ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630  ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
1632  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634   { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638   { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649
1650# A bit of initial setup.
1651
1652# As backup, we make sure we don't loose an FLIBS if it has been set
1653# by the user
1654save_FLIBS="$FLIBS"
1655
1656# A useful makefile conditional that is always false
1657
1658
1659if false; then
1660  ALWAYS_FALSE_TRUE=
1661  ALWAYS_FALSE_FALSE='#'
1662else
1663  ALWAYS_FALSE_TRUE='#'
1664  ALWAYS_FALSE_FALSE=
1665fi
1666
1667
1668# We set the following variable so that we know later in AC_COIN_FINALIZE
1669# that we are in a project main directory
1670coin_projectdir=yes
1671
1672# Set the project's version numbers
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define ASL_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679
1680  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1681  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1682  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1683  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1684  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1685  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1686
1687cat >>confdefs.h <<_ACEOF
1688#define ASL_VERSION_MAJOR $coin_majorver
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define ASL_VERSION_MINOR $coin_minorver
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define ASL_VERSION_RELEASE $coin_releasever
1699_ACEOF
1700
1701
1702  # We use the following variable to have a string with the upper case
1703  # version of the project name
1704  COIN_PRJCT=ASL
1705
1706  # Set the project's SVN revision number. The complicated sed expression
1707  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1708  # as a single number.
1709  # Extract the first word of "svnversion", so it can be a program name with args.
1710set dummy svnversion; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_have_svnversion+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$have_svnversion"; then
1717  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726    ac_cv_prog_have_svnversion="yes"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732
1733  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1734fi
1735fi
1736have_svnversion=$ac_cv_prog_have_svnversion
1737if test -n "$have_svnversion"; then
1738  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1739echo "${ECHO_T}$have_svnversion" >&6
1740else
1741  echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6
1743fi
1744
1745  if test "x$have_svnversion" = xyes; then
1746
1747    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1748    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1749      ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1750
1751cat >>confdefs.h <<_ACEOF
1752#define ASL_SVN_REV $ASL_SVN_REV
1753_ACEOF
1754
1755    fi
1756  fi
1757
1758
1759
1760# Capture libtool library version, if given.
1761
1762
1763
1764
1765# Turn off warnings and pedantic mode since they could make trouble on some
1766# platforms, and we can't fix issues in third-party code.
1767coin_skip_warn_cflags=yes
1768
1769# Check if user wants to produce debugging code
1770
1771echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1772echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1773
1774# Check whether --enable-debug or --disable-debug was given.
1775if test "${enable_debug+set}" = set; then
1776  enableval="$enable_debug"
1777  case "${enableval}" in
1778   yes) coin_debug_compile=true
1779        if test "${enable_shared+set}" = set; then :; else
1780          enable_shared=no
1781        fi
1782        ;;
1783   no)  coin_debug_compile=false
1784        ;;
1785   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1786echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1787   { (exit 1); exit 1; }; }
1788        ;;
1789esac
1790else
1791  coin_debug_compile=false
1792fi;
1793
1794# Check whether --enable-debug-asl or --disable-debug-asl was given.
1795if test "${enable_debug_asl+set}" = set; then
1796  enableval="$enable_debug_asl"
1797  case "${enableval}" in
1798    yes) coin_debug_compile=true
1799         ;;
1800    no)  coin_debug_compile=false
1801         ;;
1802    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1803echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1804   { (exit 1); exit 1; }; }
1805         ;;
1806 esac
1807else
1808  :
1809fi;
1810
1811 # m4_ifvaln([ASL],
1812
1813if test $coin_debug_compile = true; then
1814  echo "$as_me:$LINENO: result: yes" >&5
1815echo "${ECHO_T}yes" >&6
1816else
1817  echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821
1822# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1823if test "${with_asl_verbosity+set}" = set; then
1824  withval="$with_asl_verbosity"
1825  if test "$withval" = yes; then
1826                withval=1
1827              fi
1828              coin_asl_verbosity=$withval
1829else
1830  coin_asl_verbosity=0
1831fi;
1832
1833cat >>confdefs.h <<_ACEOF
1834#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1835_ACEOF
1836
1837
1838
1839# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1840if test "${with_asl_checklevel+set}" = set; then
1841  withval="$with_asl_checklevel"
1842  if test "$withval" = yes; then
1843                withval=1
1844              fi
1845              coin_asl_checklevel=$withval
1846else
1847  coin_asl_checklevel=0
1848fi;
1849
1850cat >>confdefs.h <<_ACEOF
1851#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1852_ACEOF
1853
1854
1855 # m4_ifvaln([ASL],
1856
1857
1858
1859# We need egrep and ln -s somewhere
1860echo "$as_me:$LINENO: checking for egrep" >&5
1861echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1862if test "${ac_cv_prog_egrep+set}" = set; then
1863  echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1866    then ac_cv_prog_egrep='grep -E'
1867    else ac_cv_prog_egrep='egrep'
1868    fi
1869fi
1870echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1871echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1872 EGREP=$ac_cv_prog_egrep
1873
1874
1875echo "$as_me:$LINENO: checking whether ln -s works" >&5
1876echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1877LN_S=$as_ln_s
1878if test "$LN_S" = "ln -s"; then
1879  echo "$as_me:$LINENO: result: yes" >&5
1880echo "${ECHO_T}yes" >&6
1881else
1882  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1883echo "${ECHO_T}no, using $LN_S" >&6
1884fi
1885
1886
1887# Get the name of the C compiler and compiler flags
1888
1889
1890  # for backward compatibility
1891  # Check whether --enable-doscompile or --disable-doscompile was given.
1892if test "${enable_doscompile+set}" = set; then
1893  enableval="$enable_doscompile"
1894  enable_doscompile=$enableval
1895else
1896  enable_doscompile=no
1897fi;
1898
1899  # Check whether --enable-msvc or --disable-msvc was given.
1900if test "${enable_msvc+set}" = set; then
1901  enableval="$enable_msvc"
1902  enable_msvc=$enableval
1903else
1904  enable_msvc=no
1905     if test "$enable_doscompile" = msvc ; then
1906       enable_msvc=yes
1907     elif test "$enable_doscompile" != no ; then
1908       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1909echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1910   { (exit 1); exit 1; }; }
1911     fi
1912
1913fi;
1914
1915  if test "$enable_msvc" = MD; then
1916    enable_shared=yes
1917    enable_msvc=yes
1918  fi
1919
1920  if test "$enable_msvc" = yes; then
1921    case $build in
1922      *-cygwin* | *-mingw*) ;;
1923      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1924echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1925   { (exit 1); exit 1; }; } ;;
1926    esac
1927  fi
1928
1929
1930 case $build in
1931  *-mingw*)
1932    if test "${LD+set}" = set; then :; else
1933      LD=link
1934    fi
1935    ;;
1936 esac
1937 if test $enable_msvc = yes ; then
1938   if test "x${LD+set}" = xset; then :; else
1939     LD=link
1940   fi
1941 fi
1942
1943
1944
1945
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953# For consistency, we set the C compiler to the same value of the C++
1954# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1955if test x"$CXX" != x; then
1956  case "$CXX" in
1957    clang* ) ;;
1958    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1959      if test x"$CC" = x; then
1960        CC="$CXX"
1961        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1962echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1963      fi
1964      ;;
1965  esac
1966fi
1967
1968
1969
1970
1971
1972
1973coin_has_cc=yes
1974
1975save_cflags="$CFLAGS"
1976
1977# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1978# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1979# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1980# compiler. In this case, put cc after gcc.
1981
1982case $build in
1983  *-cygwin* | *-mingw*)
1984             if test "$enable_msvc" = yes ; then
1985               comps="icl cl gcc"
1986             else
1987               comps="gcc icl cl"
1988             fi ;;
1989  *-*-solaris*)
1990             # Extract the first word of "cc", so it can be a program name with args.
1991set dummy cc; ac_word=$2
1992echo "$as_me:$LINENO: checking for $ac_word" >&5
1993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1995  echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997  if test -n "$sol_cc_compiler"; then
1998  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1999else
2000  ac_prog_rejected=no
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006  for ac_exec_ext in '' $ac_executable_extensions; do
2007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2009       ac_prog_rejected=yes
2010       continue
2011     fi
2012    ac_cv_prog_sol_cc_compiler="cc"
2013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014    break 2
2015  fi
2016done
2017done
2018
2019if test $ac_prog_rejected = yes; then
2020  # We found a bogon in the path, so make sure we never use it.
2021  set dummy $ac_cv_prog_sol_cc_compiler
2022  shift
2023  if test $# != 0; then
2024    # We chose a different compiler from the bogus one.
2025    # However, it has the same basename, so the bogon will be chosen
2026    # first if we set sol_cc_compiler to just the basename; use the full file name.
2027    shift
2028    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2029  fi
2030fi
2031fi
2032fi
2033sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2034if test -n "$sol_cc_compiler"; then
2035  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2036echo "${ECHO_T}$sol_cc_compiler" >&6
2037else
2038  echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6
2040fi
2041
2042             if test "$sol_cc_compiler" = "cc" ; then
2043               comps="cc xlc gcc pgcc icc"
2044             else
2045               comps="xlc gcc pgcc icc cc"
2046             fi
2047             ;;
2048  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2049  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2050  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2051esac
2052
2053# We delete the cached value, since the test might not have been
2054# performed with our choice of compilers earlier
2055$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2056# AC_MSG_NOTICE([C compiler candidates: $comps])
2057ac_ext=c
2058ac_cpp='$CPP $CPPFLAGS'
2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062if test -n "$ac_tool_prefix"; then
2063  for ac_prog in $comps
2064  do
2065    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069if test "${ac_cv_prog_CC+set}" = set; then
2070  echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072  if test -n "$CC"; then
2073  ac_cv_prog_CC="$CC" # Let the user override the test.
2074else
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078  IFS=$as_save_IFS
2079  test -z "$as_dir" && as_dir=.
2080  for ac_exec_ext in '' $ac_executable_extensions; do
2081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084    break 2
2085  fi
2086done
2087done
2088
2089fi
2090fi
2091CC=$ac_cv_prog_CC
2092if test -n "$CC"; then
2093  echo "$as_me:$LINENO: result: $CC" >&5
2094echo "${ECHO_T}$CC" >&6
2095else
2096  echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6
2098fi
2099
2100    test -n "$CC" && break
2101  done
2102fi
2103if test -z "$CC"; then
2104  ac_ct_CC=$CC
2105  for ac_prog in $comps
2106do
2107  # Extract the first word of "$ac_prog", so it can be a program name with args.
2108set dummy $ac_prog; ac_word=$2
2109echo "$as_me:$LINENO: checking for $ac_word" >&5
2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2112  echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114  if test -n "$ac_ct_CC"; then
2115  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2116else
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120  IFS=$as_save_IFS
2121  test -z "$as_dir" && as_dir=.
2122  for ac_exec_ext in '' $ac_executable_extensions; do
2123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2124    ac_cv_prog_ac_ct_CC="$ac_prog"
2125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126    break 2
2127  fi
2128done
2129done
2130
2131fi
2132fi
2133ac_ct_CC=$ac_cv_prog_ac_ct_CC
2134if test -n "$ac_ct_CC"; then
2135  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136echo "${ECHO_T}$ac_ct_CC" >&6
2137else
2138  echo "$as_me:$LINENO: result: no" >&5
2139echo "${ECHO_T}no" >&6
2140fi
2141
2142  test -n "$ac_ct_CC" && break
2143done
2144
2145  CC=$ac_ct_CC
2146fi
2147
2148
2149test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2150See \`config.log' for more details." >&5
2151echo "$as_me: error: no acceptable C compiler found in \$PATH
2152See \`config.log' for more details." >&2;}
2153   { (exit 1); exit 1; }; }
2154
2155# Provide some information about the compiler.
2156echo "$as_me:$LINENO:" \
2157     "checking for C compiler version" >&5
2158ac_compiler=`set X $ac_compile; echo $2`
2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2160  (eval $ac_compiler --version </dev/null >&5) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2165  (eval $ac_compiler -v </dev/null >&5) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }
2169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2170  (eval $ac_compiler -V </dev/null >&5) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }
2174
2175cat >conftest.$ac_ext <<_ACEOF
2176/* confdefs.h.  */
2177_ACEOF
2178cat confdefs.h >>conftest.$ac_ext
2179cat >>conftest.$ac_ext <<_ACEOF
2180/* end confdefs.h.  */
2181
2182int
2183main ()
2184{
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190ac_clean_files_save=$ac_clean_files
2191ac_clean_files="$ac_clean_files a.out a.exe b.out"
2192# Try to create an executable without -o first, disregard a.out.
2193# It will help us diagnose broken compilers, and finding out an intuition
2194# of exeext.
2195echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2196echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2197ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2198if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2199  (eval $ac_link_default) 2>&5
2200  ac_status=$?
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); }; then
2203  # Find the output, starting from the most likely.  This scheme is
2204# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2205# resort.
2206
2207# Be careful to initialize this variable, since it used to be cached.
2208# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2209ac_cv_exeext=
2210# b.out is created by i960 compilers.
2211for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2212do
2213  test -f "$ac_file" || continue
2214  case $ac_file in
2215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2216        ;;
2217    conftest.$ac_ext )
2218        # This is the source file.
2219        ;;
2220    [ab].out )
2221        # We found the default executable, but exeext='' is most
2222        # certainly right.
2223        break;;
2224    *.* )
2225        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226        # FIXME: I believe we export ac_cv_exeext for Libtool,
2227        # but it would be cool to find out if it's true.  Does anybody
2228        # maintain Libtool? --akim.
2229        export ac_cv_exeext
2230        break;;
2231    * )
2232        break;;
2233  esac
2234done
2235else
2236  echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: C compiler cannot create executables
2242See \`config.log' for more details." >&2;}
2243   { (exit 77); exit 77; }; }
2244fi
2245
2246ac_exeext=$ac_cv_exeext
2247echo "$as_me:$LINENO: result: $ac_file" >&5
2248echo "${ECHO_T}$ac_file" >&6
2249
2250# Check the compiler produces executables we can run.  If not, either
2251# the compiler is broken, or we cross compile.
2252echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2253echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2254# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2255# If not cross compiling, check that we can run a simple program.
2256if test "$cross_compiling" != yes; then
2257  if { ac_try='./$ac_file'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; }; then
2263    cross_compiling=no
2264  else
2265    if test "$cross_compiling" = maybe; then
2266        cross_compiling=yes
2267    else
2268        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269If you meant to cross compile, use \`--host'.
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot run C compiled programs.
2272If you meant to cross compile, use \`--host'.
2273See \`config.log' for more details." >&2;}
2274   { (exit 1); exit 1; }; }
2275    fi
2276  fi
2277fi
2278echo "$as_me:$LINENO: result: yes" >&5
2279echo "${ECHO_T}yes" >&6
2280
2281rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282ac_clean_files=$ac_clean_files_save
2283# Check the compiler produces executables we can run.  If not, either
2284# the compiler is broken, or we cross compile.
2285echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2287echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288echo "${ECHO_T}$cross_compiling" >&6
2289
2290echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2293  (eval $ac_link) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }; then
2297  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2298# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2299# work properly (i.e., refer to `conftest.exe'), while it won't with
2300# `rm'.
2301for ac_file in conftest.exe conftest conftest.*; do
2302  test -f "$ac_file" || continue
2303  case $ac_file in
2304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2305    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306          export ac_cv_exeext
2307          break;;
2308    * ) break;;
2309  esac
2310done
2311else
2312  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&5
2314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&2;}
2316   { (exit 1); exit 1; }; }
2317fi
2318
2319rm -f conftest$ac_cv_exeext
2320echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321echo "${ECHO_T}$ac_cv_exeext" >&6
2322
2323rm -f conftest.$ac_ext
2324EXEEXT=$ac_cv_exeext
2325ac_exeext=$EXEEXT
2326echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2328if test "${ac_cv_objext+set}" = set; then
2329  echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331  cat >conftest.$ac_ext <<_ACEOF
2332/* confdefs.h.  */
2333_ACEOF
2334cat confdefs.h >>conftest.$ac_ext
2335cat >>conftest.$ac_ext <<_ACEOF
2336/* end confdefs.h.  */
2337
2338int
2339main ()
2340{
2341
2342  ;
2343  return 0;
2344}
2345_ACEOF
2346rm -f conftest.o conftest.obj
2347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348  (eval $ac_compile) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; then
2352  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2353  case $ac_file in
2354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2355    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356       break;;
2357  esac
2358done
2359else
2360  echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&5
2365echo "$as_me: error: cannot compute suffix of object files: cannot compile
2366See \`config.log' for more details." >&2;}
2367   { (exit 1); exit 1; }; }
2368fi
2369
2370rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371fi
2372echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2373echo "${ECHO_T}$ac_cv_objext" >&6
2374OBJEXT=$ac_cv_objext
2375ac_objext=$OBJEXT
2376echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2378if test "${ac_cv_c_compiler_gnu+set}" = set; then
2379  echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391#ifndef __GNUC__
2392       choke me
2393#endif
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>conftest.er1
2402  ac_status=$?
2403  grep -v '^ *+' conftest.er1 >conftest.err
2404  rm -f conftest.er1
2405  cat conftest.err >&5
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); } &&
2408         { ac_try='test -z "$ac_c_werror_flag"
2409                         || test ! -s conftest.err'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; } &&
2415         { ac_try='test -s conftest.$ac_objext'
2416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417  (eval $ac_try) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; }; then
2421  ac_compiler_gnu=yes
2422else
2423  echo "$as_me: failed program was:" >&5
2424sed 's/^/| /' conftest.$ac_ext >&5
2425
2426ac_compiler_gnu=no
2427fi
2428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
2435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
2437CFLAGS="-g"
2438echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2440if test "${ac_cv_prog_cc_g+set}" = set; then
2441  echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443  cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449
2450int
2451main ()
2452{
2453
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460  (eval $ac_compile) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } &&
2467         { ac_try='test -z "$ac_c_werror_flag"
2468                         || test ! -s conftest.err'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; } &&
2474         { ac_try='test -s conftest.$ac_objext'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; }; then
2480  ac_cv_prog_cc_g=yes
2481else
2482  echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485ac_cv_prog_cc_g=no
2486fi
2487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488fi
2489echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2490echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2491if test "$ac_test_CFLAGS" = set; then
2492  CFLAGS=$ac_save_CFLAGS
2493elif test $ac_cv_prog_cc_g = yes; then
2494  if test "$GCC" = yes; then
2495    CFLAGS="-g -O2"
2496  else
2497    CFLAGS="-g"
2498  fi
2499else
2500  if test "$GCC" = yes; then
2501    CFLAGS="-O2"
2502  else
2503    CFLAGS=
2504  fi
2505fi
2506echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2507echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2508if test "${ac_cv_prog_cc_stdc+set}" = set; then
2509  echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511  ac_cv_prog_cc_stdc=no
2512ac_save_CC=$CC
2513cat >conftest.$ac_ext <<_ACEOF
2514/* confdefs.h.  */
2515_ACEOF
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>conftest.$ac_ext <<_ACEOF
2518/* end confdefs.h.  */
2519#include <stdarg.h>
2520#include <stdio.h>
2521#include <sys/types.h>
2522#include <sys/stat.h>
2523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2524struct buf { int x; };
2525FILE * (*rcsopen) (struct buf *, struct stat *, int);
2526static char *e (p, i)
2527     char **p;
2528     int i;
2529{
2530  return p[i];
2531}
2532static char *f (char * (*g) (char **, int), char **p, ...)
2533{
2534  char *s;
2535  va_list v;
2536  va_start (v,p);
2537  s = g (p, va_arg (v,int));
2538  va_end (v);
2539  return s;
2540}
2541
2542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2543   function prototypes and stuff, but not '\xHH' hex character constants.
2544   These don't provoke an error unfortunately, instead are silently treated
2545   as 'x'.  The following induces an error, until -std1 is added to get
2546   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2547   array size at least.  It's necessary to write '\x00'==0 to get something
2548   that's true only with -std1.  */
2549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2550
2551int test (int i, double x);
2552struct s1 {int (*f) (int a);};
2553struct s2 {int (*f) (double a);};
2554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2555int argc;
2556char **argv;
2557int
2558main ()
2559{
2560return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565# Don't try gcc -ansi; that turns off useful extensions and
2566# breaks some systems' header files.
2567# AIX                   -qlanglvl=ansi
2568# Ultrix and OSF/1      -std1
2569# HP-UX 10.20 and later -Ae
2570# HP-UX older versions  -Aa -D_HPUX_SOURCE
2571# SVR4                  -Xc -D__EXTENSIONS__
2572for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2573do
2574  CC="$ac_save_CC $ac_arg"
2575  rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577  (eval $ac_compile) 2>conftest.er1
2578  ac_status=$?
2579  grep -v '^ *+' conftest.er1 >conftest.err
2580  rm -f conftest.er1
2581  cat conftest.err >&5
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); } &&
2584         { ac_try='test -z "$ac_c_werror_flag"
2585                         || test ! -s conftest.err'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; } &&
2591         { ac_try='test -s conftest.$ac_objext'
2592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593  (eval $ac_try) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; }; then
2597  ac_cv_prog_cc_stdc=$ac_arg
2598break
2599else
2600  echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603fi
2604rm -f conftest.err conftest.$ac_objext
2605done
2606rm -f conftest.$ac_ext conftest.$ac_objext
2607CC=$ac_save_CC
2608
2609fi
2610
2611case "x$ac_cv_prog_cc_stdc" in
2612  x|xno)
2613    echo "$as_me:$LINENO: result: none needed" >&5
2614echo "${ECHO_T}none needed" >&6 ;;
2615  *)
2616    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2617echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2618    CC="$CC $ac_cv_prog_cc_stdc" ;;
2619esac
2620
2621# Some people use a C++ compiler to compile C.  Since we use `exit',
2622# in C++ we need to declare it.  In case someone uses the same compiler
2623# for both compiling C and C++ we need to have the C++ compiler decide
2624# the declaration of exit, since it's the most demanding environment.
2625cat >conftest.$ac_ext <<_ACEOF
2626#ifndef __cplusplus
2627  choke me
2628#endif
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632  (eval $ac_compile) 2>conftest.er1
2633  ac_status=$?
2634  grep -v '^ *+' conftest.er1 >conftest.err
2635  rm -f conftest.er1
2636  cat conftest.err >&5
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); } &&
2639         { ac_try='test -z "$ac_c_werror_flag"
2640                         || test ! -s conftest.err'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; } &&
2646         { ac_try='test -s conftest.$ac_objext'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; }; then
2652  for ac_declaration in \
2653   '' \
2654   'extern "C" void std::exit (int) throw (); using std::exit;' \
2655   'extern "C" void std::exit (int); using std::exit;' \
2656   'extern "C" void exit (int) throw ();' \
2657   'extern "C" void exit (int);' \
2658   'void exit (int);'
2659do
2660  cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666$ac_declaration
2667#include <stdlib.h>
2668int
2669main ()
2670{
2671exit (42);
2672  ;
2673  return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678  (eval $ac_compile) 2>conftest.er1
2679  ac_status=$?
2680  grep -v '^ *+' conftest.er1 >conftest.err
2681  rm -f conftest.er1
2682  cat conftest.err >&5
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); } &&
2685         { ac_try='test -z "$ac_c_werror_flag"
2686                         || test ! -s conftest.err'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; } &&
2692         { ac_try='test -s conftest.$ac_objext'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; }; then
2698  :
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703continue
2704fi
2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706  cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712$ac_declaration
2713int
2714main ()
2715{
2716exit (42);
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721rm -f conftest.$ac_objext
2722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723  (eval $ac_compile) 2>conftest.er1
2724  ac_status=$?
2725  grep -v '^ *+' conftest.er1 >conftest.err
2726  rm -f conftest.er1
2727  cat conftest.err >&5
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); } &&
2730         { ac_try='test -z "$ac_c_werror_flag"
2731                         || test ! -s conftest.err'
2732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733  (eval $ac_try) 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; } &&
2737         { ac_try='test -s conftest.$ac_objext'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; }; then
2743  break
2744else
2745  echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748fi
2749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750done
2751rm -f conftest*
2752if test -n "$ac_declaration"; then
2753  echo '#ifdef __cplusplus' >>confdefs.h
2754  echo $ac_declaration      >>confdefs.h
2755  echo '#endif'             >>confdefs.h
2756fi
2757
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762fi
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770if test -z "$CC" ; then
2771  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2772echo "$as_me: error: Failed to find a C compiler!" >&2;}
2773   { (exit 1); exit 1; }; }
2774fi
2775# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2776case "$CC" in
2777  clang* ) ;;
2778  cl* | */cl* | CL* | */CL* )
2779    if test "$ac_cv_prog_cc_g" = yes ; then
2780      ac_cv_prog_cc_g=no
2781      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2782echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2783    fi ;;
2784  * )
2785    if test x"$CYGPATH_W" = x ; then
2786      CYGPATH_W=echo
2787    fi
2788    ;;
2789esac
2790CFLAGS="$save_cflags"
2791
2792# add automake conditional so we can recognize cl compiler in makefile
2793coin_cc_is_cl=false
2794case "$CC" in
2795  clang* ) ;;
2796  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2797    coin_cc_is_cl=true
2798    ;;
2799esac
2800
2801
2802if test $coin_cc_is_cl = true; then
2803  COIN_CC_IS_CL_TRUE=
2804  COIN_CC_IS_CL_FALSE='#'
2805else
2806  COIN_CC_IS_CL_TRUE='#'
2807  COIN_CC_IS_CL_FALSE=
2808fi
2809
2810
2811# Check if a project specific CFLAGS variable has been set
2812if test x$COIN_PRJCT != x; then
2813  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2814  if test x$coin_tmp = xset; then
2815    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2816  fi
2817fi
2818
2819if test x"$CFLAGS" = x; then
2820
2821  coin_add_cflags=
2822  coin_opt_cflags=
2823  coin_dbg_cflags=
2824  coin_warn_cflags=
2825
2826  if test "$GCC" = "yes"; then
2827    case "$CC" in
2828      icc* | */icc*)
2829        ;;
2830      *)
2831        coin_opt_cflags="-O3"
2832        coin_add_cflags="-pipe"
2833        coin_dbg_cflags="-g -O0"
2834        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2835        case $build in
2836          *-darwin*)
2837            ;;
2838          *)
2839            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2840            ;;
2841        esac
2842    esac
2843  fi
2844  if test -z "$coin_opt_cflags"; then
2845    case $build in
2846      *-cygwin* | *-mingw*)
2847        case "$CC" in
2848          clang* ) ;;
2849          cl* | */cl* | CL* | */CL*)
2850            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2851              coin_opt_cflags='-MD -O2'
2852              coin_dbg_cflags='-MDd'
2853            else
2854              coin_opt_cflags='-MT -O2'
2855              coin_dbg_cflags='-MTd'
2856            fi
2857            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2858            ;;
2859          icl* | */icl* | ICL* | */ICL*)
2860            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2861              coin_opt_cflags='-MD -Ox'
2862              coin_dbg_cflags='-MDd -debug'
2863            else
2864              coin_opt_cflags='-MT -Ox'
2865              coin_dbg_cflags='-MTd -debug'
2866            fi
2867            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2868            ;;
2869        esac
2870        ;;
2871      *-linux-*)
2872        case "$CC" in
2873          icc* | */icc*)
2874            coin_opt_cflags="-O3 -ip -mp1"
2875            coin_add_cflags=""
2876            coin_dbg_cflags="-g"
2877            # Check if -i_dynamic is necessary (for new glibc library)
2878            CFLAGS=
2879            cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885
2886int
2887main ()
2888{
2889int i=0; i++;
2890  ;
2891  return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext conftest$ac_exeext
2895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2896  (eval $ac_link) 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } &&
2903         { ac_try='test -z "$ac_c_werror_flag"
2904                         || test ! -s conftest.err'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; } &&
2910         { ac_try='test -s conftest$ac_exeext'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; }; then
2916  :
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921coin_add_cflags="-i_dynamic $coin_add_cflags"
2922fi
2923rm -f conftest.err conftest.$ac_objext \
2924      conftest$ac_exeext conftest.$ac_ext
2925            ;;
2926          pgcc* | */pgcc*)
2927            coin_opt_cflags="-fast"
2928            coin_add_cflags="-Kieee -pc 64"
2929            coin_dbg_cflags="-g"
2930            ;;
2931        esac
2932        ;;
2933      *-ibm-*)
2934        case "$CC" in
2935          xlc* | */xlc* | mpxlc* | */mpxlc*)
2936            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2937            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2938            coin_dbg_cflags="-g"
2939          ;;
2940        esac
2941        ;;
2942      *-hp-*)
2943        coin_opt_cflags="-O"
2944        coin_add_cflags="-Ae"
2945        coin_dbg_cflags="-g"
2946        ;;
2947      *-*-solaris*)
2948        coin_opt_cflags="-xO4"
2949        coin_dbg_cflags="-g"
2950        ;;
2951      *-sgi-*)
2952        coin_opt_cflags="-O -OPT:Olimit=0"
2953        coin_dbg_cflags="-g"
2954        ;;
2955    esac
2956  fi
2957
2958  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2959    coin_dbg_cflags="-g"
2960  fi
2961
2962  if test -z "$coin_opt_cflags"; then
2963    # Try if -O option works if nothing else is set
2964    CFLAGS="-O"
2965    cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h.  */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h.  */
2971
2972int
2973main ()
2974{
2975int i=0; i++;
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980rm -f conftest.$ac_objext conftest$ac_exeext
2981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982  (eval $ac_link) 2>conftest.er1
2983  ac_status=$?
2984  grep -v '^ *+' conftest.er1 >conftest.err
2985  rm -f conftest.er1
2986  cat conftest.err >&5
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); } &&
2989         { ac_try='test -z "$ac_c_werror_flag"
2990                         || test ! -s conftest.err'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; } &&
2996         { ac_try='test -s conftest$ac_exeext'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; }; then
3002  coin_opt_cflags="-O"
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007fi
3008rm -f conftest.err conftest.$ac_objext \
3009      conftest$ac_exeext conftest.$ac_ext
3010  fi
3011
3012  # if PM doesn't want the warning messages, take them out
3013  if test x"$coin_skip_warn_cflags" = xyes; then
3014    coin_warn_cflags=
3015  fi
3016
3017  if test x${DBG_CFLAGS+set} != xset; then
3018    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3019  fi
3020  if test x${OPT_CFLAGS+set} != xset; then
3021    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3022  fi
3023
3024  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3025  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3026
3027  if test "$coin_debug_compile" = "true"; then
3028    CFLAGS="$DBG_CFLAGS"
3029  else
3030    CFLAGS="$OPT_CFLAGS"
3031  fi
3032else
3033  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3034  if test x${DBG_CFLAGS+set} != xset; then
3035    DBG_CFLAGS="$CFLAGS"
3036  fi
3037  if test x${OPT_CFLAGS+set} != xset; then
3038    OPT_CFLAGS="$CFLAGS"
3039  fi
3040fi
3041
3042# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3043if test x$COIN_PRJCT != x; then
3044  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3045fi
3046
3047# Try if CFLAGS works
3048save_CFLAGS="$CFLAGS"
3049cat >conftest.$ac_ext <<_ACEOF
3050/* confdefs.h.  */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h.  */
3055
3056int
3057main ()
3058{
3059int i=0; i++;
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext conftest$ac_exeext
3065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066  (eval $ac_link) 2>conftest.er1
3067  ac_status=$?
3068  grep -v '^ *+' conftest.er1 >conftest.err
3069  rm -f conftest.er1
3070  cat conftest.err >&5
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); } &&
3073         { ac_try='test -z "$ac_c_werror_flag"
3074                         || test ! -s conftest.err'
3075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076  (eval $ac_try) 2>&5
3077  ac_status=$?
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); }; } &&
3080         { ac_try='test -s conftest$ac_exeext'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; }; then
3086  :
3087else
3088  echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091CFLAGS=
3092fi
3093rm -f conftest.err conftest.$ac_objext \
3094      conftest$ac_exeext conftest.$ac_ext
3095if test -z "$CFLAGS"; then
3096  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3097echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3098  CFLAGS='-O'
3099  cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h.  */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h.  */
3105
3106int
3107main ()
3108{
3109int i=0; i++;
3110  ;
3111  return 0;
3112}
3113_ACEOF
3114rm -f conftest.$ac_objext conftest$ac_exeext
3115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3116  (eval $ac_link) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } &&
3123         { ac_try='test -z "$ac_c_werror_flag"
3124                         || test ! -s conftest.err'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; } &&
3130         { ac_try='test -s conftest$ac_exeext'
3131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132  (eval $ac_try) 2>&5
3133  ac_status=$?
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; }; then
3136  :
3137else
3138  echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141CFLAGS=
3142fi
3143rm -f conftest.err conftest.$ac_objext \
3144      conftest$ac_exeext conftest.$ac_ext
3145  if test -z "$CFLAGS"; then
3146    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3147echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3148  fi
3149fi
3150
3151{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3152echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3153
3154
3155if test x"$MPICC" = x; then :; else
3156  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3157echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3158  CC="$MPICC"
3159fi
3160
3161# Correct the LD variable if we are using the MS or Intel-windows compiler
3162case "$CC" in
3163  clang* ) ;;
3164  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3165
3166 case $build in
3167  *-mingw*)
3168    if test "${LD+set}" = set; then :; else
3169      LD=link
3170    fi
3171    ;;
3172 esac
3173 if test $enable_msvc = yes ; then
3174   if test "x${LD+set}" = xset; then :; else
3175     LD=link
3176   fi
3177 fi
3178
3179    ;;
3180esac
3181
3182ac_ext=c
3183ac_cpp='$CPP $CPPFLAGS'
3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188
3189
3190# Initialize automake and libtool
3191{
3192
3193
3194
3195# START
3196
3197coin_disable_shared=no
3198# Test if force_shared has been set
3199if test "x" = xforce_shared; then
3200  if test x$enable_shared = xno; then
3201    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3202echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3203   { (exit 1); exit 1; }; }
3204  fi
3205  enable_shared=yes;
3206else
3207  # On Cygwin and AIX, building DLLs doesn't work
3208  case $build in
3209    *-cygwin* | *-mingw*)
3210      coin_disable_shared=yes
3211      if test x"$enable_shared" = xyes; then
3212        case "$CC" in
3213          clang* )
3214            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3215echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3216            ;;
3217          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3218            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
3219echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
3220            ;;
3221          *gcc*)
3222            if test x"$enable_dependency_linking" = xyes; then
3223              coin_disable_shared=no
3224            else
3225              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
3226echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
3227            fi
3228            ;;
3229          *)
3230            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3231echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3232            ;;
3233        esac
3234      fi
3235    ;;
3236    *-aix*)
3237      coin_disable_shared=yes
3238      platform=AIX
3239      if test x"$enable_shared" = xyes; then
3240        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3241echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3242      fi
3243    ;;
3244  esac
3245fi
3246if test x"$coin_disable_shared" = xyes; then
3247  if test x"$enable_shared" = xyes; then
3248    :
3249  else
3250    # we don't disable shared, because it was not selected anyway
3251    coin_disable_shared=no
3252  fi
3253  enable_shared=no
3254fi
3255# By default, we only want the shared objects to be compiled
3256# Check whether --enable-static or --disable-static was given.
3257if test "${enable_static+set}" = set; then
3258  enableval="$enable_static"
3259  p=${PACKAGE-default}
3260    case $enableval in
3261    yes) enable_static=yes ;;
3262    no) enable_static=no ;;
3263    *)
3264     enable_static=no
3265      # Look at the argument we got.  We use all the common list separators.
3266      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3267      for pkg in $enableval; do
3268        IFS="$lt_save_ifs"
3269        if test "X$pkg" = "X$p"; then
3270          enable_static=yes
3271        fi
3272      done
3273      IFS="$lt_save_ifs"
3274      ;;
3275    esac
3276else
3277  enable_static=no
3278fi;
3279
3280
3281
3282
3283# Initialize automake
3284am__api_version="1.9"
3285# Find a good install program.  We prefer a C program (faster),
3286# so one script is as good as another.  But avoid the broken or
3287# incompatible versions:
3288# SysV /etc/install, /usr/sbin/install
3289# SunOS /usr/etc/install
3290# IRIX /sbin/install
3291# AIX /bin/install
3292# AmigaOS /C/install, which installs bootblocks on floppy discs
3293# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3294# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3295# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3296# OS/2's system install, which has a completely different semantic
3297# ./install, which can be erroneously created by make from ./install.sh.
3298echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3299echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3300if test -z "$INSTALL"; then
3301if test "${ac_cv_path_install+set}" = set; then
3302  echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH
3306do
3307  IFS=$as_save_IFS
3308  test -z "$as_dir" && as_dir=.
3309  # Account for people who put trailing slashes in PATH elements.
3310case $as_dir/ in
3311  ./ | .// | /cC/* | \
3312  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3313  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3314  /usr/ucb/* ) ;;
3315  *)
3316    # OSF1 and SCO ODT 3.0 have their own names for install.
3317    # Don't use installbsd from OSF since it installs stuff as root
3318    # by default.
3319    for ac_prog in ginstall scoinst install; do
3320      for ac_exec_ext in '' $ac_executable_extensions; do
3321        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3322          if test $ac_prog = install &&
3323            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3324            # AIX install.  It has an incompatible calling convention.
3325            :
3326          elif test $ac_prog = install &&
3327            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3328            # program-specific install script used by HP pwplus--don't use.
3329            :
3330          else
3331            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3332            break 3
3333          fi
3334        fi
3335      done
3336    done
3337    ;;
3338esac
3339done
3340
3341
3342fi
3343  if test "${ac_cv_path_install+set}" = set; then
3344    INSTALL=$ac_cv_path_install
3345  else
3346    # As a last resort, use the slow shell script.  We don't cache a
3347    # path for INSTALL within a source directory, because that will
3348    # break other packages using the cache if that directory is
3349    # removed, or if the path is relative.
3350    INSTALL=$ac_install_sh
3351  fi
3352fi
3353echo "$as_me:$LINENO: result: $INSTALL" >&5
3354echo "${ECHO_T}$INSTALL" >&6
3355
3356# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3357# It thinks the first close brace ends the variable substitution.
3358test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3359
3360test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3361
3362test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3363
3364echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3365echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3366# Just in case
3367sleep 1
3368echo timestamp > conftest.file
3369# Do `set' in a subshell so we don't clobber the current shell's
3370# arguments.  Must try -L first in case configure is actually a
3371# symlink; some systems play weird games with the mod time of symlinks
3372# (eg FreeBSD returns the mod time of the symlink's containing
3373# directory).
3374if (
3375   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3376   if test "$*" = "X"; then
3377      # -L didn't work.
3378      set X `ls -t $srcdir/configure conftest.file`
3379   fi
3380   rm -f conftest.file
3381   if test "$*" != "X $srcdir/configure conftest.file" \
3382      && test "$*" != "X conftest.file $srcdir/configure"; then
3383
3384      # If neither matched, then we have a broken ls.  This can happen
3385      # if, for instance, CONFIG_SHELL is bash and it inherits a
3386      # broken ls alias from the environment.  This has actually
3387      # happened.  Such a system could not be considered "sane".
3388      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3389alias in your environment" >&5
3390echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3391alias in your environment" >&2;}
3392   { (exit 1); exit 1; }; }
3393   fi
3394
3395   test "$2" = conftest.file
3396   )
3397then
3398   # Ok.
3399   :
3400else
3401   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3402Check your system clock" >&5
3403echo "$as_me: error: newly created file is older than distributed files!
3404Check your system clock" >&2;}
3405   { (exit 1); exit 1; }; }
3406fi
3407echo "$as_me:$LINENO: result: yes" >&5
3408echo "${ECHO_T}yes" >&6
3409test "$program_prefix" != NONE &&
3410  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3411# Use a double $ so make ignores it.
3412test "$program_suffix" != NONE &&
3413  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3414# Double any \ or $.  echo might interpret backslashes.
3415# By default was `s,x,x', remove it if useless.
3416cat <<\_ACEOF >conftest.sed
3417s/[\\$]/&&/g;s/;s,x,x,$//
3418_ACEOF
3419program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3420rm conftest.sed
3421
3422# expand $ac_aux_dir to an absolute path
3423am_aux_dir=`cd $ac_aux_dir && pwd`
3424
3425test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3426# Use eval to expand $SHELL
3427if eval "$MISSING --run true"; then
3428  am_missing_run="$MISSING --run "
3429else
3430  am_missing_run=
3431  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3432echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3433fi
3434
3435if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3436  # We used to keeping the `.' as first argument, in order to
3437  # allow $(mkdir_p) to be used without argument.  As in
3438  #   $(mkdir_p) $(somedir)
3439  # where $(somedir) is conditionally defined.  However this is wrong
3440  # for two reasons:
3441  #  1. if the package is installed by a user who cannot write `.'
3442  #     make install will fail,
3443  #  2. the above comment should most certainly read
3444  #     $(mkdir_p) $(DESTDIR)$(somedir)
3445  #     so it does not work when $(somedir) is undefined and
3446  #     $(DESTDIR) is not.
3447  #  To support the latter case, we have to write
3448  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3449  #  so the `.' trick is pointless.
3450  mkdir_p='mkdir -p --'
3451else
3452  # On NextStep and OpenStep, the `mkdir' command does not
3453  # recognize any option.  It will interpret all options as
3454  # directories to create, and then abort because `.' already
3455  # exists.
3456  for d in ./-p ./--version;
3457  do
3458    test -d $d && rmdir $d
3459  done
3460  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3461  if test -f "$ac_aux_dir/mkinstalldirs"; then
3462    mkdir_p='$(mkinstalldirs)'
3463  else
3464    mkdir_p='$(install_sh) -d'
3465  fi
3466fi
3467
3468for ac_prog in gawk mawk nawk awk
3469do
3470  # Extract the first word of "$ac_prog", so it can be a program name with args.
3471set dummy $ac_prog; ac_word=$2
3472echo "$as_me:$LINENO: checking for $ac_word" >&5
3473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474if test "${ac_cv_prog_AWK+set}" = set; then
3475  echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477  if test -n "$AWK"; then
3478  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3479else
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH
3482do
3483  IFS=$as_save_IFS
3484  test -z "$as_dir" && as_dir=.
3485  for ac_exec_ext in '' $ac_executable_extensions; do
3486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487    ac_cv_prog_AWK="$ac_prog"
3488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489    break 2
3490  fi
3491done
3492done
3493
3494fi
3495fi
3496AWK=$ac_cv_prog_AWK
3497if test -n "$AWK"; then
3498  echo "$as_me:$LINENO: result: $AWK" >&5
3499echo "${ECHO_T}$AWK" >&6
3500else
3501  echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
3503fi
3504
3505  test -n "$AWK" && break
3506done
3507
3508echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3509echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3510set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3511if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3512  echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514  cat >conftest.make <<\_ACEOF
3515all:
3516        @echo 'ac_maketemp="$(MAKE)"'
3517_ACEOF
3518# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3519eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3520if test -n "$ac_maketemp"; then
3521  eval ac_cv_prog_make_${ac_make}_set=yes
3522else
3523  eval ac_cv_prog_make_${ac_make}_set=no
3524fi
3525rm -f conftest.make
3526fi
3527if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3528  echo "$as_me:$LINENO: result: yes" >&5
3529echo "${ECHO_T}yes" >&6
3530  SET_MAKE=
3531else
3532  echo "$as_me:$LINENO: result: no" >&5
3533echo "${ECHO_T}no" >&6
3534  SET_MAKE="MAKE=${MAKE-make}"
3535fi
3536
3537rm -rf .tst 2>/dev/null
3538mkdir .tst 2>/dev/null
3539if test -d .tst; then
3540  am__leading_dot=.
3541else
3542  am__leading_dot=_
3543fi
3544rmdir .tst 2>/dev/null
3545
3546DEPDIR="${am__leading_dot}deps"
3547
3548          ac_config_commands="$ac_config_commands depfiles"
3549
3550
3551am_make=${MAKE-make}
3552cat > confinc << 'END'
3553am__doit:
3554        @echo done
3555.PHONY: am__doit
3556END
3557# If we don't find an include directive, just comment out the code.
3558echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3559echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3560am__include="#"
3561am__quote=
3562_am_result=none
3563# First try GNU make style include.
3564echo "include confinc" > confmf
3565# We grep out `Entering directory' and `Leaving directory'
3566# messages which can occur if `w' ends up in MAKEFLAGS.
3567# In particular we don't look at `^make:' because GNU make might
3568# be invoked under some other name (usually "gmake"), in which
3569# case it prints its new name instead of `make'.
3570if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3571   am__include=include
3572   am__quote=
3573   _am_result=GNU
3574fi
3575# Now try BSD make style include.
3576if test "$am__include" = "#"; then
3577   echo '.include "confinc"' > confmf
3578   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3579      am__include=.include
3580      am__quote="\""
3581      _am_result=BSD
3582   fi
3583fi
3584
3585
3586echo "$as_me:$LINENO: result: $_am_result" >&5
3587echo "${ECHO_T}$_am_result" >&6
3588rm -f confinc confmf
3589
3590# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3591if test "${enable_dependency_tracking+set}" = set; then
3592  enableval="$enable_dependency_tracking"
3593
3594fi;
3595if test "x$enable_dependency_tracking" != xno; then
3596  am_depcomp="$ac_aux_dir/depcomp"
3597  AMDEPBACKSLASH='\'
3598fi
3599
3600
3601if test "x$enable_dependency_tracking" != xno; then
3602  AMDEP_TRUE=
3603  AMDEP_FALSE='#'
3604else
3605  AMDEP_TRUE='#'
3606  AMDEP_FALSE=
3607fi
3608
3609
3610
3611
3612
3613
3614# AC_MSG_NOTICE([Beginning automake initialisation.])
3615# Stuff for automake
3616# test to see if srcdir already configured
3617if test "`cd $srcdir && pwd`" != "`pwd`" &&
3618   test -f $srcdir/config.status; then
3619  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3620echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3621   { (exit 1); exit 1; }; }
3622fi
3623
3624# test whether we have cygpath
3625if test -z "$CYGPATH_W"; then
3626  if (cygpath --version) >/dev/null 2>/dev/null; then
3627    CYGPATH_W='cygpath -w'
3628  else
3629    CYGPATH_W=echo
3630  fi
3631fi
3632
3633
3634# Define the identity of the package.
3635 PACKAGE='thirdpartyasl'
3636 VERSION='1.2'
3637
3638
3639cat >>confdefs.h <<_ACEOF
3640#define PACKAGE "$PACKAGE"
3641_ACEOF
3642
3643
3644cat >>confdefs.h <<_ACEOF
3645#define VERSION "$VERSION"
3646_ACEOF
3647
3648# Some tools Automake needs.
3649
3650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3651
3652
3653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3654
3655
3656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3657
3658
3659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3660
3661
3662MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3663
3664install_sh=${install_sh-"$am_aux_dir/install-sh"}
3665
3666# Installed binaries are usually stripped using `strip' when the user
3667# run `make install-strip'.  However `strip' might not be the right
3668# tool to use in cross-compilation environments, therefore Automake
3669# will honor the `STRIP' environment variable to overrule this program.
3670if test "$cross_compiling" != no; then
3671  if test -n "$ac_tool_prefix"; then
3672  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3673set dummy ${ac_tool_prefix}strip; ac_word=$2
3674echo "$as_me:$LINENO: checking for $ac_word" >&5
3675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3676if test "${ac_cv_prog_STRIP+set}" = set; then
3677  echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679  if test -n "$STRIP"; then
3680  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3681else
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685  IFS=$as_save_IFS
3686  test -z "$as_dir" && as_dir=.
3687  for ac_exec_ext in '' $ac_executable_extensions; do
3688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691    break 2
3692  fi
3693done
3694done
3695
3696fi
3697fi
3698STRIP=$ac_cv_prog_STRIP
3699if test -n "$STRIP"; then
3700  echo "$as_me:$LINENO: result: $STRIP" >&5
3701echo "${ECHO_T}$STRIP" >&6
3702else
3703  echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6
3705fi
3706
3707fi
3708if test -z "$ac_cv_prog_STRIP"; then
3709  ac_ct_STRIP=$STRIP
3710  # Extract the first word of "strip", so it can be a program name with args.
3711set dummy strip; ac_word=$2
3712echo "$as_me:$LINENO: checking for $ac_word" >&5
3713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3715  echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717  if test -n "$ac_ct_STRIP"; then
3718  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723  IFS=$as_save_IFS
3724  test -z "$as_dir" && as_dir=.
3725  for ac_exec_ext in '' $ac_executable_extensions; do
3726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727    ac_cv_prog_ac_ct_STRIP="strip"
3728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729    break 2
3730  fi
3731done
3732done
3733
3734  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3735fi
3736fi
3737ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3738if test -n "$ac_ct_STRIP"; then
3739  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3740echo "${ECHO_T}$ac_ct_STRIP" >&6
3741else
3742  echo "$as_me:$LINENO: result: no" >&5
3743echo "${ECHO_T}no" >&6
3744fi
3745
3746  STRIP=$ac_ct_STRIP
3747else
3748  STRIP="$ac_cv_prog_STRIP"
3749fi
3750
3751fi
3752INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3753
3754# We need awk for the "check" target.  The system "awk" is bad on
3755# some platforms.
3756# Always define AMTAR for backward compatibility.
3757
3758AMTAR=${AMTAR-"${am_missing_run}tar"}
3759
3760am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3761
3762
3763
3764
3765depcc="$CC"   am_compiler_list=
3766
3767echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3769if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773  # We make a subdir and do the tests there.  Otherwise we can end up
3774  # making bogus files that we don't know about and never remove.  For
3775  # instance it was reported that on HP-UX the gcc test will end up
3776  # making a dummy file named `D' -- because `-MD' means `put the output
3777  # in D'.
3778  mkdir conftest.dir
3779  # Copy depcomp to subdir because otherwise we won't find it if we're
3780  # using a relative directory.
3781  cp "$am_depcomp" conftest.dir
3782  cd conftest.dir
3783  # We will build objects and dependencies in a subdirectory because
3784  # it helps to detect inapplicable dependency modes.  For instance
3785  # both Tru64's cc and ICC support -MD to output dependencies as a
3786  # side effect of compilation, but ICC will put the dependencies in
3787  # the current directory while Tru64 will put them in the object
3788  # directory.
3789  mkdir sub
3790
3791  am_cv_CC_dependencies_compiler_type=none
3792  if test "$am_compiler_list" = ""; then
3793     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3794  fi
3795  for depmode in $am_compiler_list; do
3796    # Setup a source with many dependencies, because some compilers
3797    # like to wrap large dependency lists on column 80 (with \), and
3798    # we should not choose a depcomp mode which is confused by this.
3799    #
3800    # We need to recreate these files for each test, as the compiler may
3801    # overwrite some of them when testing with obscure command lines.
3802    # This happens at least with the AIX C compiler.
3803    : > sub/conftest.c
3804    for i in 1 2 3 4 5 6; do
3805      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3806      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3807      # Solaris 8's {/usr,}/bin/sh.
3808      touch sub/conftst$i.h
3809    done
3810    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3811
3812    case $depmode in
3813    nosideeffect)
3814      # after this tag, mechanisms are not by side-effect, so they'll
3815      # only be used when explicitly requested
3816      if test "x$enable_dependency_tracking" = xyes; then
3817        continue
3818      else
3819        break
3820      fi
3821      ;;
3822    none) break ;;
3823    esac
3824    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825    # mode.  It turns out that the SunPro C++ compiler does not properly
3826    # handle `-M -o', and we need to detect this.
3827    if depmode=$depmode \
3828       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3829       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3831         >/dev/null 2>conftest.err &&
3832       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3834       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835      # icc doesn't choke on unknown options, it will just issue warnings
3836      # or remarks (even with -Werror).  So we grep stderr for any message
3837      # that says an option was ignored or not supported.
3838      # When given -MP, icc 7.0 and 7.1 complain thusly:
3839      #   icc: Command line warning: ignoring option '-M'; no argument required
3840      # The diagnosis changed in icc 8.0:
3841      #   icc: Command line remark: option '-MP' not supported
3842      if (grep 'ignoring option' conftest.err ||
3843          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844        am_cv_CC_dependencies_compiler_type=$depmode
3845        break
3846      fi
3847    fi
3848  done
3849
3850  cd ..
3851  rm -rf conftest.dir
3852else
3853  am_cv_CC_dependencies_compiler_type=none
3854fi
3855
3856fi
3857echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3858echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3860
3861
3862
3863if
3864  test "x$enable_dependency_tracking" != xno \
3865  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3866  am__fastdepCC_TRUE=
3867  am__fastdepCC_FALSE='#'
3868else
3869  am__fastdepCC_TRUE='#'
3870  am__fastdepCC_FALSE=
3871fi
3872
3873
3874
3875echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3876echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3877    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3878if test "${enable_maintainer_mode+set}" = set; then
3879  enableval="$enable_maintainer_mode"
3880  USE_MAINTAINER_MODE=$enableval
3881else
3882  USE_MAINTAINER_MODE=no
3883fi;
3884  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3885echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3886
3887
3888if test $USE_MAINTAINER_MODE = yes; then
3889  MAINTAINER_MODE_TRUE=
3890  MAINTAINER_MODE_FALSE='#'
3891else
3892  MAINTAINER_MODE_TRUE='#'
3893  MAINTAINER_MODE_FALSE=
3894fi
3895
3896  MAINT=$MAINTAINER_MODE_TRUE
3897
3898
3899
3900coin_have_externals=no
3901if test "$enable_maintainer_mode" = yes; then
3902
3903  # If maintainer mode is chosen, we make sure that the correct versions
3904  # of the tools are used, and that we know where libtool.m4 is (to
3905  # recreate acinclude.m4)
3906
3907
3908  LIBTOOLM4=
3909  # Normally, $HOME
3910  AUTOTOOLS_DFLT=$HOME
3911
3912  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3913echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3914if test "${ac_cv_use_correct_autotools+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  ac_cv_use_correct_autotools=check
3918fi
3919echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3920echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3921
3922  if test $ac_cv_use_correct_autotools = check; then
3923    ac_cv_use_correct_autotools=yes
3924    # Check if we have autoconf
3925    # Extract the first word of "autoconf", so it can be a program name with args.
3926set dummy autoconf; ac_word=$2
3927echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929if test "${ac_cv_prog_have_autoconf+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  if test -n "$have_autoconf"; then
3933  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940  for ac_exec_ext in '' $ac_executable_extensions; do
3941  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942    ac_cv_prog_have_autoconf="yes"
3943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944    break 2
3945  fi
3946done
3947done
3948
3949  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3950fi
3951fi
3952have_autoconf=$ac_cv_prog_have_autoconf
3953if test -n "$have_autoconf"; then
3954  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3955echo "${ECHO_T}$have_autoconf" >&6
3956else
3957  echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6
3959fi
3960
3961    if test $have_autoconf = no; then
3962      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3963echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3964   { (exit 1); exit 1; }; }
3965    fi
3966
3967    # Check whether autoconf is the correct version
3968    correct_version='2.59'
3969    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3970    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3971echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3972    autoconf --version > confauto.out 2>&1
3973    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3974      echo "$as_me:$LINENO: result: yes" >&5
3975echo "${ECHO_T}yes" >&6
3976    else
3977      rm -f confauto.out
3978      echo "$as_me:$LINENO: result: no" >&5
3979echo "${ECHO_T}no" >&6
3980      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
3981echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
3982   { (exit 1); exit 1; }; }
3983    fi
3984    rm -f confauto.out
3985
3986    # Check if the executable autoconf is picked up from the correct location
3987    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
3988echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
3989    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
3990    autoconf_dir=`cd $autoconf_dir; pwd`
3991    if test x$AUTOTOOLS_DIR = x; then
3992      want_dir=$AUTOTOOLS_DFLT/bin
3993    else
3994      want_dir=$AUTOTOOLS_DIR/bin
3995    fi
3996    if test $autoconf_dir = `cd $want_dir; pwd`; then
3997      echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
3999    else
4000      rm -f confauto.out
4001      echo "$as_me:$LINENO: result: no" >&5
4002echo "${ECHO_T}no" >&6
4003      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4004echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4005   { (exit 1); exit 1; }; }
4006    fi
4007
4008    # Check if we have automake
4009    # Extract the first word of "automake", so it can be a program name with args.
4010set dummy automake; ac_word=$2
4011echo "$as_me:$LINENO: checking for $ac_word" >&5
4012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013if test "${ac_cv_prog_have_automake+set}" = set; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016  if test -n "$have_automake"; then
4017  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024  for ac_exec_ext in '' $ac_executable_extensions; do
4025  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026    ac_cv_prog_have_automake="yes"
4027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028    break 2
4029  fi
4030done
4031done
4032
4033  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4034fi
4035fi
4036have_automake=$ac_cv_prog_have_automake
4037if test -n "$have_automake"; then
4038  echo "$as_me:$LINENO: result: $have_automake" >&5
4039echo "${ECHO_T}$have_automake" >&6
4040else
4041  echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043fi
4044
4045    if test $have_automake = no; then
4046      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4047echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4048   { (exit 1); exit 1; }; }
4049    fi
4050
4051    # Check whether automake is the correct version
4052    correct_version='1.9.6'
4053    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4054    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4055echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4056    automake --version > confauto.out 2>&1
4057    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4058      echo "$as_me:$LINENO: result: yes" >&5
4059echo "${ECHO_T}yes" >&6
4060    else
4061      rm -f confauto.out
4062      echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
4064      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4065echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4066   { (exit 1); exit 1; }; }
4067    fi
4068    rm -f confauto.out
4069
4070    # Check if the executable automake is picked up from the correct location
4071    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4072echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4073    automake_dir=`which automake | sed -e 's=/automake=='`
4074    automake_dir=`cd $automake_dir; pwd`
4075    if test x$AUTOTOOLS_DIR = x; then
4076      want_dir=$AUTOTOOLS_DFLT/bin
4077    else
4078      want_dir=$AUTOTOOLS_DIR/bin
4079    fi
4080    if test $automake_dir = `cd $want_dir; pwd`; then
4081      echo "$as_me:$LINENO: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
4083    else
4084      rm -f confauto.out
4085      echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4088echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4089   { (exit 1); exit 1; }; }
4090    fi
4091
4092    # Check if this is the correct version of libtool (with escaped dots)
4093    if test x$AUTOTOOLS_DIR = x; then
4094      want_dir=$AUTOTOOLS_DFLT/share
4095    else
4096      want_dir=$AUTOTOOLS_DIR/share
4097    fi
4098    correct_version='1.5.22'
4099    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4100    if test -r $want_dir/libtool/ltmain.sh; then
4101  have_ltmain=yes
4102  :
4103else
4104  have_ltmain=no
4105  :
4106fi
4107
4108    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4109echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4110    if test $have_ltmain = yes; then
4111    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4112        echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114      else
4115        echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4118echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4119   { (exit 1); exit 1; }; }
4120      fi
4121    else
4122      echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6
4124      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4125echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4126   { (exit 1); exit 1; }; }
4127    fi
4128  fi
4129
4130  # Check if we can find the libtool file
4131  if test x$AUTOTOOLS_DIR = x; then
4132    want_dir=$AUTOTOOLS_DFLT/share
4133  else
4134    want_dir=$AUTOTOOLS_DIR/share
4135  fi
4136  if test -r $want_dir/aclocal/libtool.m4; then
4137  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4138  :
4139else
4140  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4141echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4142   { (exit 1); exit 1; }; }
4143  :
4144fi
4145
4146
4147  # Check if we have an Dependencies file
4148  if test -r $srcdir/Dependencies; then
4149    coin_have_externals=yes
4150  fi
4151  # Check if subversion is installed and understands https
4152  # Extract the first word of "svn", so it can be a program name with args.
4153set dummy svn; ac_word=$2
4154echo "$as_me:$LINENO: checking for $ac_word" >&5
4155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156if test "${ac_cv_prog_have_svn+set}" = set; then
4157  echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
4159  if test -n "$have_svn"; then
4160  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165  IFS=$as_save_IFS
4166  test -z "$as_dir" && as_dir=.
4167  for ac_exec_ext in '' $ac_executable_extensions; do
4168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169    ac_cv_prog_have_svn="yes"
4170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171    break 2
4172  fi
4173done
4174done
4175
4176  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4177fi
4178fi
4179have_svn=$ac_cv_prog_have_svn
4180if test -n "$have_svn"; then
4181  echo "$as_me:$LINENO: result: $have_svn" >&5
4182echo "${ECHO_T}$have_svn" >&6
4183else
4184  echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6
4186fi
4187
4188  if test x$have_svn = xyes; then
4189    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4190echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4191if test "${ac_cv_svn_understands_https+set}" = set; then
4192  echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194  svn --version > confauto.out 2>&1
4195                    if $EGREP https confauto.out >/dev/null 2>&1; then
4196                      ac_cv_svn_understands_https=yes
4197                    else
4198                      ac_cv_svn_understands_https=no
4199                      have_svn=no
4200                      ac_cv_prog_have_svn=no
4201                    fi
4202                    rm -f confauto.out
4203fi
4204echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4205echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4206  fi
4207
4208  # Find the location of the BuildTools directory
4209  BUILDTOOLSDIR=
4210  if test -r $srcdir/BuildTools/coin.m4; then
4211    BUILDTOOLSDIR=$srcdir/BuildTools
4212  else
4213    if test -r $srcdir/../BuildTools/coin.m4; then
4214      BUILDTOOLSDIR=$srcdir/../BuildTools
4215    else
4216      if test -r $srcdir/../../BuildTools/coin.m4; then
4217        BUILDTOOLSDIR=$srcdir/../../BuildTools
4218      else
4219        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4220echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4221   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4222      fi
4223    fi
4224  fi
4225
4226
4227  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4228  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4229    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4230  fi
4231
4232  # The following variable is set to the name of the directory where
4233  # the autotool scripts are located
4234
4235  AUX_DIR=$ac_aux_dir
4236fi
4237
4238# helpful variable for the base directory of this package
4239abs_source_dir=`cd $srcdir; pwd`
4240
4241
4242# Stuff for example Makefiles
4243if test x$prefix = xNONE; then
4244  full_prefix=$ac_default_prefix
4245else
4246  full_prefix=$prefix
4247fi
4248full_prefix=`cd $full_prefix ; pwd`
4249
4250abs_lib_dir=$full_prefix/lib
4251
4252abs_include_dir=$full_prefix/include
4253
4254abs_bin_dir=$full_prefix/bin
4255
4256
4257
4258if test $coin_have_externals = yes && test x$have_svn = xyes; then
4259  HAVE_EXTERNALS_TRUE=
4260  HAVE_EXTERNALS_FALSE='#'
4261else
4262  HAVE_EXTERNALS_TRUE='#'
4263  HAVE_EXTERNALS_FALSE=
4264fi
4265
4266
4267# AC_MSG_NOTICE([End automake initialisation.])
4268
4269
4270
4271LIBTOOL=
4272if test -f ../libtool; then
4273  coin_config_dir=..
4274  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4275fi
4276if test "x$LIBTOOL" = x; then
4277  if test -f ../../libtool; then
4278    coin_config_dir=../..
4279    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4280  fi
4281fi
4282
4283if test "x$LIBTOOL" = x; then
4284# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4285  # Stuff for libtool
4286  # Check whether --enable-shared or --disable-shared was given.
4287if test "${enable_shared+set}" = set; then
4288  enableval="$enable_shared"
4289  p=${PACKAGE-default}
4290    case $enableval in
4291    yes) enable_shared=yes ;;
4292    no) enable_shared=no ;;
4293    *)
4294      enable_shared=no
4295      # Look at the argument we got.  We use all the common list separators.
4296      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4297      for pkg in $enableval; do
4298        IFS="$lt_save_ifs"
4299        if test "X$pkg" = "X$p"; then
4300          enable_shared=yes
4301        fi
4302      done
4303      IFS="$lt_save_ifs"
4304      ;;
4305    esac
4306else
4307  enable_shared=yes
4308fi;
4309
4310# Check whether --enable-fast-install or --disable-fast-install was given.
4311if test "${enable_fast_install+set}" = set; then
4312  enableval="$enable_fast_install"
4313  p=${PACKAGE-default}
4314    case $enableval in
4315    yes) enable_fast_install=yes ;;
4316    no) enable_fast_install=no ;;
4317    *)
4318      enable_fast_install=no
4319      # Look at the argument we got.  We use all the common list separators.
4320      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4321      for pkg in $enableval; do
4322        IFS="$lt_save_ifs"
4323        if test "X$pkg" = "X$p"; then
4324          enable_fast_install=yes
4325        fi
4326      done
4327      IFS="$lt_save_ifs"
4328      ;;
4329    esac
4330else
4331  enable_fast_install=yes
4332fi;
4333
4334echo "$as_me:$LINENO: checking host system type" >&5
4335echo $ECHO_N "checking host system type... $ECHO_C" >&6
4336if test "${ac_cv_host+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  ac_cv_host_alias=$host_alias
4340test -z "$ac_cv_host_alias" &&
4341  ac_cv_host_alias=$ac_cv_build_alias
4342ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4343  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4344echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4345   { (exit 1); exit 1; }; }
4346
4347fi
4348echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4349echo "${ECHO_T}$ac_cv_host" >&6
4350host=$ac_cv_host
4351host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4352host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4353host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4354
4355
4356echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4357echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4358if test "${lt_cv_path_SED+set}" = set; then
4359  echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361  # Loop through the user's path and test for sed and gsed.
4362# Then use that list of sed's as ones to test for truncation.
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368  for lt_ac_prog in sed gsed; do
4369    for ac_exec_ext in '' $ac_executable_extensions; do
4370      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4371        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4372      fi
4373    done
4374  done
4375done
4376lt_ac_max=0
4377lt_ac_count=0
4378# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4379# along with /bin/sed that truncates output.
4380for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4381  test ! -f $lt_ac_sed && continue
4382  cat /dev/null > conftest.in
4383  lt_ac_count=0
4384  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4385  # Check for GNU sed and select it if it is found.
4386  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4387    lt_cv_path_SED=$lt_ac_sed
4388    break
4389  fi
4390  while true; do
4391    cat conftest.in conftest.in >conftest.tmp
4392    mv conftest.tmp conftest.in
4393    cp conftest.in conftest.nl
4394    echo >>conftest.nl
4395    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4396    cmp -s conftest.out conftest.nl || break
4397    # 10000 chars as input seems more than enough
4398    test $lt_ac_count -gt 10 && break
4399    lt_ac_count=`expr $lt_ac_count + 1`
4400    if test $lt_ac_count -gt $lt_ac_max; then
4401      lt_ac_max=$lt_ac_count
4402      lt_cv_path_SED=$lt_ac_sed
4403    fi
4404  done
4405done
4406
4407fi
4408
4409SED=$lt_cv_path_SED
4410echo "$as_me:$LINENO: result: $SED" >&5
4411echo "${ECHO_T}$SED" >&6
4412
4413
4414# Check whether --with-gnu-ld or --without-gnu-ld was given.
4415if test "${with_gnu_ld+set}" = set; then
4416  withval="$with_gnu_ld"
4417  test "$withval" = no || with_gnu_ld=yes
4418else
4419  with_gnu_ld=no
4420fi;
4421ac_prog=ld
4422if test "$GCC" = yes; then
4423  # Check if gcc -print-prog-name=ld gives a path.
4424  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4425echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4426  case $host in
4427  *-*-mingw*)
4428    # gcc leaves a trailing carriage return which upsets mingw
4429    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4430  *)
4431    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4432  esac
4433  case $ac_prog in
4434    # Accept absolute paths.
4435    [\\/]* | ?:[\\/]*)
4436      re_direlt='/[^/][^/]*/\.\./'
4437      # Canonicalize the pathname of ld
4438      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4439      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4440        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4441      done
4442      test -z "$LD" && LD="$ac_prog"
4443      ;;
4444  "")
4445    # If it fails, then pretend we aren't using GCC.
4446    ac_prog=ld
4447    ;;
4448  *)
4449    # If it is relative, then search for the first ld in PATH.
4450    with_gnu_ld=unknown
4451    ;;
4452  esac
4453elif test "$with_gnu_ld" = yes; then
4454  echo "$as_me:$LINENO: checking for GNU ld" >&5
4455echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4456else
4457  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4458echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4459fi
4460if test "${lt_cv_path_LD+set}" = set; then
4461  echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
4463  if test -z "$LD"; then
4464  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4465  for ac_dir in $PATH; do
4466    IFS="$lt_save_ifs"
4467    test -z "$ac_dir" && ac_dir=.
4468    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4469      lt_cv_path_LD="$ac_dir/$ac_prog"
4470      # Check to see if the program is GNU ld.  I'd rather use --version,
4471      # but apparently some variants of GNU ld only accept -v.
4472      # Break only if it was the GNU/non-GNU ld that we prefer.
4473      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4474      *GNU* | *'with BFD'*)
4475        test "$with_gnu_ld" != no && break
4476        ;;
4477      *)
4478        test "$with_gnu_ld" != yes && break
4479        ;;
4480      esac
4481    fi
4482  done
4483  IFS="$lt_save_ifs"
4484else
4485  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4486fi
4487fi
4488
4489LD="$lt_cv_path_LD"
4490if test -n "$LD"; then
4491  echo "$as_me:$LINENO: result: $LD" >&5
4492echo "${ECHO_T}$LD" >&6
4493else
4494  echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6
4496fi
4497test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4498echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4499   { (exit 1); exit 1; }; }
4500echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4501echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4502if test "${lt_cv_prog_gnu_ld+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4506case `$LD -v 2>&1 </dev/null` in
4507*GNU* | *'with BFD'*)
4508  lt_cv_prog_gnu_ld=yes
4509  ;;
4510*)
4511  lt_cv_prog_gnu_ld=no
4512  ;;
4513esac
4514fi
4515echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4516echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4517with_gnu_ld=$lt_cv_prog_gnu_ld
4518
4519
4520echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4521echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4522if test "${lt_cv_ld_reload_flag+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  lt_cv_ld_reload_flag='-r'
4526fi
4527echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4528echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4529reload_flag=$lt_cv_ld_reload_flag
4530case $reload_flag in
4531"" | " "*) ;;
4532*) reload_flag=" $reload_flag" ;;
4533esac
4534reload_cmds='$LD$reload_flag -o $output$reload_objs'
4535case $host_os in
4536  darwin*)
4537    if test "$GCC" = yes; then
4538      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4539    else
4540      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4541    fi
4542    ;;
4543esac
4544
4545echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4546echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4547if test "${lt_cv_path_NM+set}" = set; then
4548  echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550  if test -n "$NM"; then
4551  # Let the user override the test.
4552  lt_cv_path_NM="$NM"
4553else
4554  lt_nm_to_check="${ac_tool_prefix}nm"
4555  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4556    lt_nm_to_check="$lt_nm_to_check nm"
4557  fi
4558  for lt_tmp_nm in $lt_nm_to_check; do
4559    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4560    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4561      IFS="$lt_save_ifs"
4562      test -z "$ac_dir" && ac_dir=.
4563      tmp_nm="$ac_dir/$lt_tmp_nm"
4564      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4565        # Check to see if the nm accepts a BSD-compat flag.
4566        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4567        #   nm: unknown option "B" ignored
4568        # Tru64's nm complains that /dev/null is an invalid object file
4569        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4570        */dev/null* | *'Invalid file or object type'*)
4571          lt_cv_path_NM="$tmp_nm -B"
4572          break
4573          ;;
4574        *)
4575          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4576          */dev/null*)
4577            lt_cv_path_NM="$tmp_nm -p"
4578            break
4579            ;;
4580          *)
4581            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4582            continue # so that we can try to find one that supports BSD flags
4583            ;;
4584          esac
4585          ;;
4586        esac
4587      fi
4588    done
4589    IFS="$lt_save_ifs"
4590  done
4591  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4592fi
4593fi
4594echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4595echo "${ECHO_T}$lt_cv_path_NM" >&6
4596NM="$lt_cv_path_NM"
4597
4598echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4599echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4600if test "${lt_cv_deplibs_check_method+set}" = set; then
4601  echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603  lt_cv_file_magic_cmd='$MAGIC_CMD'
4604lt_cv_file_magic_test_file=
4605lt_cv_deplibs_check_method='unknown'
4606# Need to set the preceding variable on all platforms that support
4607# interlibrary dependencies.
4608# 'none' -- dependencies not supported.
4609# `unknown' -- same as none, but documents that we really don't know.
4610# 'pass_all' -- all dependencies passed with no checks.
4611# 'test_compile' -- check by making test program.
4612# 'file_magic [[regex]]' -- check by looking for files in library path
4613# which responds to the $file_magic_cmd with a given extended regex.
4614# If you have `file' or equivalent on your system and you're not sure
4615# whether `pass_all' will *always* work, you probably want this one.
4616
4617case $host_os in
4618aix4* | aix5*)
4619  lt_cv_deplibs_check_method=pass_all
4620  ;;
4621
4622beos*)
4623  lt_cv_deplibs_check_method=pass_all
4624  ;;
4625
4626bsdi[45]*)
4627  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4628  lt_cv_file_magic_cmd='/usr/bin/file -L'
4629  lt_cv_file_magic_test_file=/shlib/libc.so
4630  ;;
4631
4632cygwin*)
4633  # func_win32_libid is a shell function defined in ltmain.sh
4634  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4635  lt_cv_file_magic_cmd='func_win32_libid'
4636  ;;
4637
4638mingw* | pw32*)
4639  # Base MSYS/MinGW do not provide the 'file' command needed by
4640  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4641  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4642  lt_cv_file_magic_cmd='$OBJDUMP -f'
4643  ;;
4644
4645darwin* | rhapsody*)
4646  lt_cv_deplibs_check_method=pass_all
4647  ;;
4648
4649freebsd* | kfreebsd*-gnu | dragonfly*)
4650  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4651    case $host_cpu in
4652    i*86 )
4653      # Not sure whether the presence of OpenBSD here was a mistake.
4654      # Let's accept both of them until this is cleared up.
4655      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4656      lt_cv_file_magic_cmd=/usr/bin/file
4657      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4658      ;;
4659    esac
4660  else
4661    lt_cv_deplibs_check_method=pass_all
4662  fi
4663  ;;
4664
4665gnu*)
4666  lt_cv_deplibs_check_method=pass_all
4667  ;;
4668
4669hpux10.20* | hpux11*)
4670  lt_cv_file_magic_cmd=/usr/bin/file
4671  case $host_cpu in
4672  ia64*)
4673    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4674    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4675    ;;
4676  hppa*64*)
4677    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4678    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4679    ;;
4680  *)
4681    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4682    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4683    ;;
4684  esac
4685  ;;
4686
4687interix3*)
4688  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4689  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4690  ;;
4691
4692irix5* | irix6* | nonstopux*)
4693  case $LD in
4694  *-32|*"-32 ") libmagic=32-bit;;
4695  *-n32|*"-n32 ") libmagic=N32;;
4696  *-64|*"-64 ") libmagic=64-bit;;
4697  *) libmagic=never-match;;
4698  esac
4699  lt_cv_deplibs_check_method=pass_all
4700  ;;
4701
4702# This must be Linux ELF.
4703linux*)
4704  lt_cv_deplibs_check_method=pass_all
4705  ;;
4706
4707netbsd*)
4708  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4709    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4710  else
4711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4712  fi
4713  ;;
4714
4715newos6*)
4716  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4717  lt_cv_file_magic_cmd=/usr/bin/file
4718  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4719  ;;
4720
4721nto-qnx*)
4722  lt_cv_deplibs_check_method=unknown
4723  ;;
4724
4725openbsd*)
4726  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4727    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4728  else
4729    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4730  fi
4731  ;;
4732
4733osf3* | osf4* | osf5*)
4734  lt_cv_deplibs_check_method=pass_all
4735  ;;
4736
4737solaris*)
4738  lt_cv_deplibs_check_method=pass_all
4739  ;;
4740
4741sysv4 | sysv4.3*)
4742  case $host_vendor in
4743  motorola)
4744    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]'
4745    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4746    ;;
4747  ncr)
4748    lt_cv_deplibs_check_method=pass_all
4749    ;;
4750  sequent)
4751    lt_cv_file_magic_cmd='/bin/file'
4752    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4753    ;;
4754  sni)
4755    lt_cv_file_magic_cmd='/bin/file'
4756    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4757    lt_cv_file_magic_test_file=/lib/libc.so
4758    ;;
4759  siemens)
4760    lt_cv_deplibs_check_method=pass_all
4761    ;;
4762  pc)
4763    lt_cv_deplibs_check_method=pass_all
4764    ;;
4765  esac
4766  ;;
4767
4768sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4769  lt_cv_deplibs_check_method=pass_all
4770  ;;
4771esac
4772
4773fi
4774echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4775echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4776file_magic_cmd=$lt_cv_file_magic_cmd
4777deplibs_check_method=$lt_cv_deplibs_check_method
4778test -z "$deplibs_check_method" && deplibs_check_method=unknown
4779
4780
4781
4782
4783# If no C compiler was specified, use CC.
4784LTCC=${LTCC-"$CC"}
4785
4786# If no C compiler flags were specified, use CFLAGS.
4787LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4788
4789# Allow CC to be a program name with arguments.
4790compiler=$CC
4791
4792# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4793if test "${enable_libtool_lock+set}" = set; then
4794  enableval="$enable_libtool_lock"
4795
4796fi;
4797test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4798
4799# Some flags need to be propagated to the compiler or linker for good
4800# libtool support.
4801case $host in
4802ia64-*-hpux*)
4803  # Find out which ABI we are using.
4804  echo 'int i;' > conftest.$ac_ext
4805  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806  (eval $ac_compile) 2>&5
4807  ac_status=$?
4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809  (exit $ac_status); }; then
4810    case `/usr/bin/file conftest.$ac_objext` in
4811    *ELF-32*)
4812      HPUX_IA64_MODE="32"
4813      ;;
4814    *ELF-64*)
4815      HPUX_IA64_MODE="64"
4816      ;;
4817    esac
4818  fi
4819  rm -rf conftest*
4820  ;;
4821*-*-irix6*)
4822  # Find out which ABI we are using.
4823  echo '#line 4823 "configure"' > conftest.$ac_ext
4824  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825  (eval $ac_compile) 2>&5
4826  ac_status=$?
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); }; then
4829   if test "$lt_cv_prog_gnu_ld" = yes; then
4830    case `/usr/bin/file conftest.$ac_objext` in
4831    *32-bit*)
4832      LD="${LD-ld} -melf32bsmip"
4833      ;;
4834    *N32*)
4835      LD="${LD-ld} -melf32bmipn32"
4836      ;;
4837    *64-bit*)
4838      LD="${LD-ld} -melf64bmip"
4839      ;;
4840    esac
4841   else
4842    case `/usr/bin/file conftest.$ac_objext` in
4843    *32-bit*)
4844      LD="${LD-ld} -32"
4845      ;;
4846    *N32*)
4847      LD="${LD-ld} -n32"
4848      ;;
4849    *64-bit*)
4850      LD="${LD-ld} -64"
4851      ;;
4852    esac
4853   fi
4854  fi
4855  rm -rf conftest*
4856  ;;
4857
4858x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4859  # Find out which ABI we are using.
4860  echo 'int i;' > conftest.$ac_ext
4861  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862  (eval $ac_compile) 2>&5
4863  ac_status=$?
4864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); }; then
4866    case `/usr/bin/file conftest.o` in
4867    *32-bit*)
4868      case $host in
4869        x86_64-*linux*)
4870          LD="${LD-ld} -m elf_i386"
4871          ;;
4872        ppc64-*linux*|powerpc64-*linux*)
4873          LD="${LD-ld} -m elf32ppclinux"
4874          ;;
4875        s390x-*linux*)
4876          LD="${LD-ld} -m elf_s390"
4877          ;;
4878        sparc64-*linux*)
4879          LD="${LD-ld} -m elf32_sparc"
4880          ;;
4881      esac
4882      ;;
4883    *64-bit*)
4884      case $host in
4885        x86_64-*linux*)
4886          LD="${LD-ld} -m elf_x86_64"
4887          ;;
4888        ppc*-*linux*|powerpc*-*linux*)
4889          LD="${LD-ld} -m elf64ppc"
4890          ;;
4891        s390*-*linux*)
4892          LD="${LD-ld} -m elf64_s390"
4893          ;;
4894        sparc*-*linux*)
4895          LD="${LD-ld} -m elf64_sparc"
4896          ;;
4897      esac
4898      ;;
4899    esac
4900  fi
4901  rm -rf conftest*
4902  ;;
4903
4904*-*-sco3.2v5*)
4905  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4906  SAVE_CFLAGS="$CFLAGS"
4907  CFLAGS="$CFLAGS -belf"
4908  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4909echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4910if test "${lt_cv_cc_needs_belf+set}" = set; then
4911  echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913  ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919     cat >conftest.$ac_ext <<_ACEOF
4920/* confdefs.h.  */
4921_ACEOF
4922cat confdefs.h >>conftest.$ac_ext
4923cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h.  */
4925
4926int
4927main ()
4928{
4929
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext conftest$ac_exeext
4935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4936  (eval $ac_link) 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } &&
4943         { ac_try='test -z "$ac_c_werror_flag"
4944                         || test ! -s conftest.err'
4945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946  (eval $ac_try) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); }; } &&
4950         { ac_try='test -s conftest$ac_exeext'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  lt_cv_cc_needs_belf=yes
4957else
4958  echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961lt_cv_cc_needs_belf=no
4962fi
4963rm -f conftest.err conftest.$ac_objext \
4964      conftest$ac_exeext conftest.$ac_ext
4965     ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971fi
4972echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4973echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4974  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4975    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4976    CFLAGS="$SAVE_CFLAGS"
4977  fi
4978  ;;
4979sparc*-*solaris*)
4980  # Find out which ABI we are using.
4981  echo 'int i;' > conftest.$ac_ext
4982  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983  (eval $ac_compile) 2>&5
4984  ac_status=$?
4985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986  (exit $ac_status); }; then
4987    case `/usr/bin/file conftest.o` in
4988    *64-bit*)
4989      case $lt_cv_prog_gnu_ld in
4990      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4991      *)    LD="${LD-ld} -64" ;;
4992      esac
4993      ;;
4994    esac
4995  fi
4996  rm -rf conftest*
4997  ;;
4998
4999
5000esac
5001
5002need_locks="$enable_libtool_lock"
5003
5004
5005ac_ext=c
5006ac_cpp='$CPP $CPPFLAGS'
5007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5011echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5012# On Suns, sometimes $CPP names a directory.
5013if test -n "$CPP" && test -d "$CPP"; then
5014  CPP=
5015fi
5016if test -z "$CPP"; then
5017  if test "${ac_cv_prog_CPP+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020      # Double quotes because CPP needs to be expanded
5021    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5022    do
5023      ac_preproc_ok=false
5024for ac_c_preproc_warn_flag in '' yes
5025do
5026  # Use a header file that comes with gcc, so configuring glibc
5027  # with a fresh cross-compiler works.
5028  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5029  # <limits.h> exists even on freestanding compilers.
5030  # On the NeXT, cc -E runs the code through the compiler's parser,
5031  # not just through cpp. "Syntax error" is here to catch this case.
5032  cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h.  */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h.  */
5038#ifdef __STDC__
5039# include <limits.h>
5040#else
5041# include <assert.h>
5042#endif
5043                     Syntax error
5044_ACEOF
5045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } >/dev/null; then
5053  if test -s conftest.err; then
5054    ac_cpp_err=$ac_c_preproc_warn_flag
5055    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5056  else
5057    ac_cpp_err=
5058  fi
5059else
5060  ac_cpp_err=yes
5061fi
5062if test -z "$ac_cpp_err"; then
5063  :
5064else
5065  echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068  # Broken: fails on valid input.
5069continue
5070fi
5071rm -f conftest.err conftest.$ac_ext
5072
5073  # OK, works on sane cases.  Now check whether non-existent headers
5074  # can be detected and how.
5075  cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h.  */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h.  */
5081#include <ac_nonexistent.h>
5082_ACEOF
5083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5085  ac_status=$?
5086  grep -v '^ *+' conftest.er1 >conftest.err
5087  rm -f conftest.er1
5088  cat conftest.err >&5
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); } >/dev/null; then
5091  if test -s conftest.err; then
5092    ac_cpp_err=$ac_c_preproc_warn_flag
5093    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5094  else
5095    ac_cpp_err=
5096  fi
5097else
5098  ac_cpp_err=yes
5099fi
5100if test -z "$ac_cpp_err"; then
5101  # Broken: success on invalid input.
5102continue
5103else
5104  echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
5107  # Passes both tests.
5108ac_preproc_ok=:
5109break
5110fi
5111rm -f conftest.err conftest.$ac_ext
5112
5113done
5114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5115rm -f conftest.err conftest.$ac_ext
5116if $ac_preproc_ok; then
5117  break
5118fi
5119
5120    done
5121    ac_cv_prog_CPP=$CPP
5122
5123fi
5124  CPP=$ac_cv_prog_CPP
5125else
5126  ac_cv_prog_CPP=$CPP
5127fi
5128echo "$as_me:$LINENO: result: $CPP" >&5
5129echo "${ECHO_T}$CPP" >&6
5130ac_preproc_ok=false
5131for ac_c_preproc_warn_flag in '' yes
5132do
5133  # Use a header file that comes with gcc, so configuring glibc
5134  # with a fresh cross-compiler works.
5135  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136  # <limits.h> exists even on freestanding compilers.
5137  # On the NeXT, cc -E runs the code through the compiler's parser,
5138  # not just through cpp. "Syntax error" is here to catch this case.
5139  cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h.  */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h.  */
5145#ifdef __STDC__
5146# include <limits.h>
5147#else
5148# include <assert.h>
5149#endif
5150                     Syntax error
5151_ACEOF
5152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5154  ac_status=$?
5155  grep -v '^ *+' conftest.er1 >conftest.err
5156  rm -f conftest.er1
5157  cat conftest.err >&5
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); } >/dev/null; then
5160  if test -s conftest.err; then
5161    ac_cpp_err=$ac_c_preproc_warn_flag
5162    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5163  else
5164    ac_cpp_err=
5165  fi
5166else
5167  ac_cpp_err=yes
5168fi
5169if test -z "$ac_cpp_err"; then
5170  :
5171else
5172  echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175  # Broken: fails on valid input.
5176continue
5177fi
5178rm -f conftest.err conftest.$ac_ext
5179
5180  # OK, works on sane cases.  Now check whether non-existent headers
5181  # can be detected and how.
5182  cat >conftest.$ac_ext <<_ACEOF
5183/* confdefs.h.  */
5184_ACEOF
5185cat confdefs.h >>conftest.$ac_ext
5186cat >>conftest.$ac_ext <<_ACEOF
5187/* end confdefs.h.  */
5188#include <ac_nonexistent.h>
5189_ACEOF
5190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5191  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5192  ac_status=$?
5193  grep -v '^ *+' conftest.er1 >conftest.err
5194  rm -f conftest.er1
5195  cat conftest.err >&5
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); } >/dev/null; then
5198  if test -s conftest.err; then
5199    ac_cpp_err=$ac_c_preproc_warn_flag
5200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5201  else
5202    ac_cpp_err=
5203  fi
5204else
5205  ac_cpp_err=yes
5206fi
5207if test -z "$ac_cpp_err"; then
5208  # Broken: success on invalid input.
5209continue
5210else
5211  echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214  # Passes both tests.
5215ac_preproc_ok=:
5216break
5217fi
5218rm -f conftest.err conftest.$ac_ext
5219
5220done
5221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5222rm -f conftest.err conftest.$ac_ext
5223if $ac_preproc_ok; then
5224  :
5225else
5226  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5227See \`config.log' for more details." >&5
5228echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5229See \`config.log' for more details." >&2;}
5230   { (exit 1); exit 1; }; }
5231fi
5232
5233ac_ext=c
5234ac_cpp='$CPP $CPPFLAGS'
5235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238
5239
5240echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5241echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5242if test "${ac_cv_header_stdc+set}" = set; then
5243  echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245  cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h.  */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h.  */
5251#include <stdlib.h>
5252#include <stdarg.h>
5253#include <string.h>
5254#include <float.h>
5255
5256int
5257main ()
5258{
5259
5260  ;
5261  return 0;
5262}
5263_ACEOF
5264rm -f conftest.$ac_objext
5265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266  (eval $ac_compile) 2>conftest.er1
5267  ac_status=$?
5268  grep -v '^ *+' conftest.er1 >conftest.err
5269  rm -f conftest.er1
5270  cat conftest.err >&5
5271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272  (exit $ac_status); } &&
5273         { ac_try='test -z "$ac_c_werror_flag"
5274                         || test ! -s conftest.err'
5275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276  (eval $ac_try) 2>&5
5277  ac_status=$?
5278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279  (exit $ac_status); }; } &&
5280         { ac_try='test -s conftest.$ac_objext'
5281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282  (eval $ac_try) 2>&5
5283  ac_status=$?
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); }; }; then
5286  ac_cv_header_stdc=yes
5287else
5288  echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291ac_cv_header_stdc=no
5292fi
5293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294
5295if test $ac_cv_header_stdc = yes; then
5296  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5297  cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h.  */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h.  */
5303#include <string.h>
5304
5305_ACEOF
5306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307  $EGREP "memchr" >/dev/null 2>&1; then
5308  :
5309else
5310  ac_cv_header_stdc=no
5311fi
5312rm -f conftest*
5313
5314fi
5315
5316if test $ac_cv_header_stdc = yes; then
5317  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5318  cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h.  */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h.  */
5324#include <stdlib.h>
5325
5326_ACEOF
5327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5328  $EGREP "free" >/dev/null 2>&1; then
5329  :
5330else
5331  ac_cv_header_stdc=no
5332fi
5333rm -f conftest*
5334
5335fi
5336
5337if test $ac_cv_header_stdc = yes; then
5338  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5339  if test "$cross_compiling" = yes; then
5340  :
5341else
5342  cat >conftest.$ac_ext <<_ACEOF
5343/* confdefs.h.  */
5344_ACEOF
5345cat confdefs.h >>conftest.$ac_ext
5346cat >>conftest.$ac_ext <<_ACEOF
5347/* end confdefs.h.  */
5348#include <ctype.h>
5349#if ((' ' & 0x0FF) == 0x020)
5350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5352#else
5353# define ISLOWER(c) \
5354                   (('a' <= (c) && (c) <= 'i') \
5355                     || ('j' <= (c) && (c) <= 'r') \
5356                     || ('s' <= (c) && (c) <= 'z'))
5357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5358#endif
5359
5360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5361int
5362main ()
5363{
5364  int i;
5365  for (i = 0; i < 256; i++)
5366    if (XOR (islower (i), ISLOWER (i))
5367        || toupper (i) != TOUPPER (i))
5368      exit(2);
5369  exit (0);
5370}
5371_ACEOF
5372rm -f conftest$ac_exeext
5373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374  (eval $ac_link) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379  (eval $ac_try) 2>&5
5380  ac_status=$?
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); }; }; then
5383  :
5384else
5385  echo "$as_me: program exited with status $ac_status" >&5
5386echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389( exit $ac_status )
5390ac_cv_header_stdc=no
5391fi
5392rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5393fi
5394fi
5395fi
5396echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5397echo "${ECHO_T}$ac_cv_header_stdc" >&6
5398if test $ac_cv_header_stdc = yes; then
5399
5400cat >>confdefs.h <<\_ACEOF
5401#define STDC_HEADERS 1
5402_ACEOF
5403
5404fi
5405
5406# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5417                  inttypes.h stdint.h unistd.h
5418do
5419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420echo "$as_me:$LINENO: checking for $ac_header" >&5
5421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5422if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423  echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425  cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h.  */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h.  */
5431$ac_includes_default
5432
5433#include <$ac_header>
5434_ACEOF
5435rm -f conftest.$ac_objext
5436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437  (eval $ac_compile) 2>conftest.er1
5438  ac_status=$?
5439  grep -v '^ *+' conftest.er1 >conftest.err
5440  rm -f conftest.er1
5441  cat conftest.err >&5
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); } &&
5444         { ac_try='test -z "$ac_c_werror_flag"
5445                         || test ! -s conftest.err'
5446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447  (eval $ac_try) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; } &&
5451         { ac_try='test -s conftest.$ac_objext'
5452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453  (eval $ac_try) 2>&5
5454  ac_status=$?
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); }; }; then
5457  eval "$as_ac_Header=yes"
5458else
5459  echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
5462eval "$as_ac_Header=no"
5463fi
5464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465fi
5466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5468if test `eval echo '${'$as_ac_Header'}'` = yes; then
5469  cat >>confdefs.h <<_ACEOF
5470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5471_ACEOF
5472
5473fi
5474
5475done
5476
5477
5478
5479for ac_header in dlfcn.h
5480do
5481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5482if eval "test \"\${$as_ac_Header+set}\" = set"; then
5483  echo "$as_me:$LINENO: checking for $ac_header" >&5
5484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5485if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486  echo $ECHO_N "(cached) $ECHO_C" >&6
5487fi
5488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5490else
5491  # Is the header compilable?
5492echo "$as_me:$LINENO: checking $ac_header usability" >&5
5493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5494cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h.  */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h.  */
5500$ac_includes_default
5501#include <$ac_header>
5502_ACEOF
5503rm -f conftest.$ac_objext
5504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505  (eval $ac_compile) 2>conftest.er1
5506  ac_status=$?
5507  grep -v '^ *+' conftest.er1 >conftest.err
5508  rm -f conftest.er1
5509  cat conftest.err >&5
5510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); } &&
5512         { ac_try='test -z "$ac_c_werror_flag"
5513                         || test ! -s conftest.err'
5514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515  (eval $ac_try) 2>&5
5516  ac_status=$?
5517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518  (exit $ac_status); }; } &&
5519         { ac_try='test -s conftest.$ac_objext'
5520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521  (eval $ac_try) 2>&5
5522  ac_status=$?
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); }; }; then
5525  ac_header_compiler=yes
5526else
5527  echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530ac_header_compiler=no
5531fi
5532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5534echo "${ECHO_T}$ac_header_compiler" >&6
5535
5536# Is the header present?
5537echo "$as_me:$LINENO: checking $ac_header presence" >&5
5538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5539cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h.  */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h.  */
5545#include <$ac_header>
5546_ACEOF
5547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5548  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5549  ac_status=$?
5550  grep -v '^ *+' conftest.er1 >conftest.err
5551  rm -f conftest.er1
5552  cat conftest.err >&5
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); } >/dev/null; then
5555  if test -s conftest.err; then
5556    ac_cpp_err=$ac_c_preproc_warn_flag
5557    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5558  else
5559    ac_cpp_err=
5560  fi
5561else
5562  ac_cpp_err=yes
5563fi
5564if test -z "$ac_cpp_err"; then
5565  ac_header_preproc=yes
5566else
5567  echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570  ac_header_preproc=no
5571fi
5572rm -f conftest.err conftest.$ac_ext
5573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5574echo "${ECHO_T}$ac_header_preproc" >&6
5575
5576# So?  What about this header?
5577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5578  yes:no: )
5579    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5581    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5583    ac_header_preproc=yes
5584    ;;
5585  no:yes:* )
5586    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5588    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5589echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5590    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5592    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5593echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5596    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5598    (
5599      cat <<\_ASBOX
5600## --------------------------------------------------------------- ##
5601## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5602## --------------------------------------------------------------- ##
5603_ASBOX
5604    ) |
5605      sed "s/^/$as_me: WARNING:     /" >&2
5606    ;;
5607esac
5608echo "$as_me:$LINENO: checking for $ac_header" >&5
5609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5610if eval "test \"\${$as_ac_Header+set}\" = set"; then
5611  echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613  eval "$as_ac_Header=\$ac_header_preproc"
5614fi
5615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5617
5618fi
5619if test `eval echo '${'$as_ac_Header'}'` = yes; then
5620  cat >>confdefs.h <<_ACEOF
5621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622_ACEOF
5623
5624fi
5625
5626done
5627
5628ac_ext=cc
5629ac_cpp='$CXXCPP $CPPFLAGS'
5630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5633if test -n "$ac_tool_prefix"; then
5634  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5635  do
5636    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5638echo "$as_me:$LINENO: checking for $ac_word" >&5
5639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640if test "${ac_cv_prog_CXX+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  if test -n "$CXX"; then
5644  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651  for ac_exec_ext in '' $ac_executable_extensions; do
5652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658done
5659
5660fi
5661fi
5662CXX=$ac_cv_prog_CXX
5663if test -n "$CXX"; then
5664  echo "$as_me:$LINENO: result: $CXX" >&5
5665echo "${ECHO_T}$CXX" >&6
5666else
5667  echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
5669fi
5670
5671    test -n "$CXX" && break
5672  done
5673fi
5674if test -z "$CXX"; then
5675  ac_ct_CXX=$CXX
5676  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5677do
5678  # Extract the first word of "$ac_prog", so it can be a program name with args.
5679set dummy $ac_prog; ac_word=$2
5680echo "$as_me:$LINENO: checking for $ac_word" >&5
5681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5682if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5683  echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685  if test -n "$ac_ct_CXX"; then
5686  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691  IFS=$as_save_IFS
5692  test -z "$as_dir" && as_dir=.
5693  for ac_exec_ext in '' $ac_executable_extensions; do
5694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695    ac_cv_prog_ac_ct_CXX="$ac_prog"
5696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697    break 2
5698  fi
5699done
5700done
5701
5702fi
5703fi
5704ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5705if test -n "$ac_ct_CXX"; then
5706  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5707echo "${ECHO_T}$ac_ct_CXX" >&6
5708else
5709  echo "$as_me:$LINENO: result: no" >&5
5710echo "${ECHO_T}no" >&6
5711fi
5712
5713  test -n "$ac_ct_CXX" && break
5714done
5715test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5716
5717  CXX=$ac_ct_CXX
5718fi
5719
5720
5721# Provide some information about the compiler.
5722echo "$as_me:$LINENO:" \
5723     "checking for C++ compiler version" >&5
5724ac_compiler=`set X $ac_compile; echo $2`
5725{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5726  (eval $ac_compiler --version </dev/null >&5) 2>&5
5727  ac_status=$?
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); }
5730{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5731  (eval $ac_compiler -v </dev/null >&5) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }
5735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5736  (eval $ac_compiler -V </dev/null >&5) 2>&5
5737  ac_status=$?
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); }
5740
5741echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5742echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5743if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5744  echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746  cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h.  */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h.  */
5752
5753int
5754main ()
5755{
5756#ifndef __GNUC__
5757       choke me
5758#endif
5759
5760  ;
5761  return 0;
5762}
5763_ACEOF
5764rm -f conftest.$ac_objext
5765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766  (eval $ac_compile) 2>conftest.er1
5767  ac_status=$?
5768  grep -v '^ *+' conftest.er1 >conftest.err
5769  rm -f conftest.er1
5770  cat conftest.err >&5
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); } &&
5773         { ac_try='test -z "$ac_cxx_werror_flag"
5774                         || test ! -s conftest.err'
5775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776  (eval $ac_try) 2>&5
5777  ac_status=$?
5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779  (exit $ac_status); }; } &&
5780         { ac_try='test -s conftest.$ac_objext'
5781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782  (eval $ac_try) 2>&5
5783  ac_status=$?
5784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785  (exit $ac_status); }; }; then
5786  ac_compiler_gnu=yes
5787else
5788  echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791ac_compiler_gnu=no
5792fi
5793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5794ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5795
5796fi
5797echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5798echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5799GXX=`test $ac_compiler_gnu = yes && echo yes`
5800ac_test_CXXFLAGS=${CXXFLAGS+set}
5801ac_save_CXXFLAGS=$CXXFLAGS
5802CXXFLAGS="-g"
5803echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5804echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5805if test "${ac_cv_prog_cxx_g+set}" = set; then
5806  echo $ECHO_N "(cached) $ECHO_C" >&6
5807else
5808  cat >conftest.$ac_ext <<_ACEOF
5809/* confdefs.h.  */
5810_ACEOF
5811cat confdefs.h >>conftest.$ac_ext
5812cat >>conftest.$ac_ext <<_ACEOF
5813/* end confdefs.h.  */
5814
5815int
5816main ()
5817{
5818
5819  ;
5820  return 0;
5821}
5822_ACEOF
5823rm -f conftest.$ac_objext
5824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825  (eval $ac_compile) 2>conftest.er1
5826  ac_status=$?
5827  grep -v '^ *+' conftest.er1 >conftest.err
5828  rm -f conftest.er1
5829  cat conftest.err >&5
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); } &&
5832         { ac_try='test -z "$ac_cxx_werror_flag"
5833                         || test ! -s conftest.err'
5834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835  (eval $ac_try) 2>&5
5836  ac_status=$?
5837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838  (exit $ac_status); }; } &&
5839         { ac_try='test -s conftest.$ac_objext'
5840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841  (eval $ac_try) 2>&5
5842  ac_status=$?
5843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844  (exit $ac_status); }; }; then
5845  ac_cv_prog_cxx_g=yes
5846else
5847  echo "$as_me: failed program was:" >&5
5848sed 's/^/| /' conftest.$ac_ext >&5
5849
5850ac_cv_prog_cxx_g=no
5851fi
5852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853fi
5854echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5855echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5856if test "$ac_test_CXXFLAGS" = set; then
5857  CXXFLAGS=$ac_save_CXXFLAGS
5858elif test $ac_cv_prog_cxx_g = yes; then
5859  if test "$GXX" = yes; then
5860    CXXFLAGS="-g -O2"
5861  else
5862    CXXFLAGS="-g"
5863  fi
5864else
5865  if test "$GXX" = yes; then
5866    CXXFLAGS="-O2"
5867  else
5868    CXXFLAGS=
5869  fi
5870fi
5871for ac_declaration in \
5872   '' \
5873   'extern "C" void std::exit (int) throw (); using std::exit;' \
5874   'extern "C" void std::exit (int); using std::exit;' \
5875   'extern "C" void exit (int) throw ();' \
5876   'extern "C" void exit (int);' \
5877   'void exit (int);'
5878do
5879  cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h.  */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h.  */
5885$ac_declaration
5886#include <stdlib.h>
5887int
5888main ()
5889{
5890exit (42);
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895rm -f conftest.$ac_objext
5896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897  (eval $ac_compile) 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } &&
5904         { ac_try='test -z "$ac_cxx_werror_flag"
5905                         || test ! -s conftest.err'
5906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907  (eval $ac_try) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; } &&
5911         { ac_try='test -s conftest.$ac_objext'
5912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913  (eval $ac_try) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; }; then
5917  :
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922continue
5923fi
5924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5925  cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h.  */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h.  */
5931$ac_declaration
5932int
5933main ()
5934{
5935exit (42);
5936  ;
5937  return 0;
5938}
5939_ACEOF
5940rm -f conftest.$ac_objext
5941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942  (eval $ac_compile) 2>conftest.er1
5943  ac_status=$?
5944  grep -v '^ *+' conftest.er1 >conftest.err
5945  rm -f conftest.er1
5946  cat conftest.err >&5
5947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948  (exit $ac_status); } &&
5949         { ac_try='test -z "$ac_cxx_werror_flag"
5950                         || test ! -s conftest.err'
5951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952  (eval $ac_try) 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; } &&
5956         { ac_try='test -s conftest.$ac_objext'
5957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958  (eval $ac_try) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); }; }; then
5962  break
5963else
5964  echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967fi
5968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5969done
5970rm -f conftest*
5971if test -n "$ac_declaration"; then
5972  echo '#ifdef __cplusplus' >>confdefs.h
5973  echo $ac_declaration      >>confdefs.h
5974  echo '#endif'             >>confdefs.h
5975fi
5976
5977ac_ext=cc
5978ac_cpp='$CXXCPP $CPPFLAGS'
5979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5982
5983depcc="$CXX"  am_compiler_list=
5984
5985echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5986echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5987if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5988  echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5991  # We make a subdir and do the tests there.  Otherwise we can end up
5992  # making bogus files that we don't know about and never remove.  For
5993  # instance it was reported that on HP-UX the gcc test will end up
5994  # making a dummy file named `D' -- because `-MD' means `put the output
5995  # in D'.
5996  mkdir conftest.dir
5997  # Copy depcomp to subdir because otherwise we won't find it if we're
5998  # using a relative directory.
5999  cp "$am_depcomp" conftest.dir
6000  cd conftest.dir
6001  # We will build objects and dependencies in a subdirectory because
6002  # it helps to detect inapplicable dependency modes.  For instance
6003  # both Tru64's cc and ICC support -MD to output dependencies as a
6004  # side effect of compilation, but ICC will put the dependencies in
6005  # the current directory while Tru64 will put them in the object
6006  # directory.
6007  mkdir sub
6008
6009  am_cv_CXX_dependencies_compiler_type=none
6010  if test "$am_compiler_list" = ""; then
6011     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6012  fi
6013  for depmode in $am_compiler_list; do
6014    # Setup a source with many dependencies, because some compilers
6015    # like to wrap large dependency lists on column 80 (with \), and
6016    # we should not choose a depcomp mode which is confused by this.
6017    #
6018    # We need to recreate these files for each test, as the compiler may
6019    # overwrite some of them when testing with obscure command lines.
6020    # This happens at least with the AIX C compiler.
6021    : > sub/conftest.c
6022    for i in 1 2 3 4 5 6; do
6023      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6024      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6025      # Solaris 8's {/usr,}/bin/sh.
6026      touch sub/conftst$i.h
6027    done
6028    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6029
6030    case $depmode in
6031    nosideeffect)
6032      # after this tag, mechanisms are not by side-effect, so they'll
6033      # only be used when explicitly requested
6034      if test "x$enable_dependency_tracking" = xyes; then
6035        continue
6036      else
6037        break
6038      fi
6039      ;;
6040    none) break ;;
6041    esac
6042    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6043    # mode.  It turns out that the SunPro C++ compiler does not properly
6044    # handle `-M -o', and we need to detect this.
6045    if depmode=$depmode \
6046       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6047       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6048       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6049         >/dev/null 2>conftest.err &&
6050       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6051       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6052       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6053      # icc doesn't choke on unknown options, it will just issue warnings
6054      # or remarks (even with -Werror).  So we grep stderr for any message
6055      # that says an option was ignored or not supported.
6056      # When given -MP, icc 7.0 and 7.1 complain thusly:
6057      #   icc: Command line warning: ignoring option '-M'; no argument required
6058      # The diagnosis changed in icc 8.0:
6059      #   icc: Command line remark: option '-MP' not supported
6060      if (grep 'ignoring option' conftest.err ||
6061          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6062        am_cv_CXX_dependencies_compiler_type=$depmode
6063        break
6064      fi
6065    fi
6066  done
6067
6068  cd ..
6069  rm -rf conftest.dir
6070else
6071  am_cv_CXX_dependencies_compiler_type=none
6072fi
6073
6074fi
6075echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6076echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6077CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6078
6079
6080
6081if
6082  test "x$enable_dependency_tracking" != xno \
6083  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6084  am__fastdepCXX_TRUE=
6085  am__fastdepCXX_FALSE='#'
6086else
6087  am__fastdepCXX_TRUE='#'
6088  am__fastdepCXX_FALSE=
6089fi
6090
6091
6092
6093
6094if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6095    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6096    (test "X$CXX" != "Xg++"))) ; then
6097  ac_ext=cc
6098ac_cpp='$CXXCPP $CPPFLAGS'
6099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6102echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6103echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6104if test -z "$CXXCPP"; then
6105  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6106  echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108      # Double quotes because CXXCPP needs to be expanded
6109    for CXXCPP in "$CXX -E" "/lib/cpp"
6110    do
6111      ac_preproc_ok=false
6112for ac_cxx_preproc_warn_flag in '' yes
6113do
6114  # Use a header file that comes with gcc, so configuring glibc
6115  # with a fresh cross-compiler works.
6116  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117  # <limits.h> exists even on freestanding compilers.
6118  # On the NeXT, cc -E runs the code through the compiler's parser,
6119  # not just through cpp. "Syntax error" is here to catch this case.
6120  cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h.  */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h.  */
6126#ifdef __STDC__
6127# include <limits.h>
6128#else
6129# include <assert.h>
6130#endif
6131                     Syntax error
6132_ACEOF
6133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135  ac_status=$?
6136  grep -v '^ *+' conftest.er1 >conftest.err
6137  rm -f conftest.er1
6138  cat conftest.err >&5
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); } >/dev/null; then
6141  if test -s conftest.err; then
6142    ac_cpp_err=$ac_cxx_preproc_warn_flag
6143    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6144  else
6145    ac_cpp_err=
6146  fi
6147else
6148  ac_cpp_err=yes
6149fi
6150if test -z "$ac_cpp_err"; then
6151  :
6152else
6153  echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156  # Broken: fails on valid input.
6157continue
6158fi
6159rm -f conftest.err conftest.$ac_ext
6160
6161  # OK, works on sane cases.  Now check whether non-existent headers
6162  # can be detected and how.
6163  cat >conftest.$ac_ext <<_ACEOF
6164/* confdefs.h.  */
6165_ACEOF
6166cat confdefs.h >>conftest.$ac_ext
6167cat >>conftest.$ac_ext <<_ACEOF
6168/* end confdefs.h.  */
6169#include <ac_nonexistent.h>
6170_ACEOF
6171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173  ac_status=$?
6174  grep -v '^ *+' conftest.er1 >conftest.err
6175  rm -f conftest.er1
6176  cat conftest.err >&5
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); } >/dev/null; then
6179  if test -s conftest.err; then
6180    ac_cpp_err=$ac_cxx_preproc_warn_flag
6181    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6182  else
6183    ac_cpp_err=
6184  fi
6185else
6186  ac_cpp_err=yes
6187fi
6188if test -z "$ac_cpp_err"; then
6189  # Broken: success on invalid input.
6190continue
6191else
6192  echo "$as_me: failed program was:" >&5
6193sed 's/^/| /' conftest.$ac_ext >&5
6194
6195  # Passes both tests.
6196ac_preproc_ok=:
6197break
6198fi
6199rm -f conftest.err conftest.$ac_ext
6200
6201done
6202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203rm -f conftest.err conftest.$ac_ext
6204if $ac_preproc_ok; then
6205  break
6206fi
6207
6208    done
6209    ac_cv_prog_CXXCPP=$CXXCPP
6210
6211fi
6212  CXXCPP=$ac_cv_prog_CXXCPP
6213else
6214  ac_cv_prog_CXXCPP=$CXXCPP
6215fi
6216echo "$as_me:$LINENO: result: $CXXCPP" >&5
6217echo "${ECHO_T}$CXXCPP" >&6
6218ac_preproc_ok=false
6219for ac_cxx_preproc_warn_flag in '' yes
6220do
6221  # Use a header file that comes with gcc, so configuring glibc
6222  # with a fresh cross-compiler works.
6223  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224  # <limits.h> exists even on freestanding compilers.
6225  # On the NeXT, cc -E runs the code through the compiler's parser,
6226  # not just through cpp. "Syntax error" is here to catch this case.
6227  cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h.  */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h.  */
6233#ifdef __STDC__
6234# include <limits.h>
6235#else
6236# include <assert.h>
6237#endif
6238                     Syntax error
6239_ACEOF
6240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242  ac_status=$?
6243  grep -v '^ *+' conftest.er1 >conftest.err
6244  rm -f conftest.er1
6245  cat conftest.err >&5
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); } >/dev/null; then
6248  if test -s conftest.err; then
6249    ac_cpp_err=$ac_cxx_preproc_warn_flag
6250    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6251  else
6252    ac_cpp_err=
6253  fi
6254else
6255  ac_cpp_err=yes
6256fi
6257if test -z "$ac_cpp_err"; then
6258  :
6259else
6260  echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263  # Broken: fails on valid input.
6264continue
6265fi
6266rm -f conftest.err conftest.$ac_ext
6267
6268  # OK, works on sane cases.  Now check whether non-existent headers
6269  # can be detected and how.
6270  cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h.  */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h.  */
6276#include <ac_nonexistent.h>
6277_ACEOF
6278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6280  ac_status=$?
6281  grep -v '^ *+' conftest.er1 >conftest.err
6282  rm -f conftest.er1
6283  cat conftest.err >&5
6284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285  (exit $ac_status); } >/dev/null; then
6286  if test -s conftest.err; then
6287    ac_cpp_err=$ac_cxx_preproc_warn_flag
6288    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6289  else
6290    ac_cpp_err=
6291  fi
6292else
6293  ac_cpp_err=yes
6294fi
6295if test -z "$ac_cpp_err"; then
6296  # Broken: success on invalid input.
6297continue
6298else
6299  echo "$as_me: failed program was:" >&5
6300sed 's/^/| /' conftest.$ac_ext >&5
6301
6302  # Passes both tests.
6303ac_preproc_ok=:
6304break
6305fi
6306rm -f conftest.err conftest.$ac_ext
6307
6308done
6309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310rm -f conftest.err conftest.$ac_ext
6311if $ac_preproc_ok; then
6312  :
6313else
6314  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6315See \`config.log' for more details." >&5
6316echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6317See \`config.log' for more details." >&2;}
6318   { (exit 1); exit 1; }; }
6319fi
6320
6321ac_ext=cc
6322ac_cpp='$CXXCPP $CPPFLAGS'
6323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6326
6327fi
6328
6329
6330ac_ext=f
6331ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6332ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6334if test -n "$ac_tool_prefix"; then
6335  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6336  do
6337    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6338set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6339echo "$as_me:$LINENO: checking for $ac_word" >&5
6340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6341if test "${ac_cv_prog_F77+set}" = set; then
6342  echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344  if test -n "$F77"; then
6345  ac_cv_prog_F77="$F77" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350  IFS=$as_save_IFS
6351  test -z "$as_dir" && as_dir=.
6352  for ac_exec_ext in '' $ac_executable_extensions; do
6353  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359done
6360
6361fi
6362fi
6363F77=$ac_cv_prog_F77
6364if test -n "$F77"; then
6365  echo "$as_me:$LINENO: result: $F77" >&5
6366echo "${ECHO_T}$F77" >&6
6367else
6368  echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6
6370fi
6371
6372    test -n "$F77" && break
6373  done
6374fi
6375if test -z "$F77"; then
6376  ac_ct_F77=$F77
6377  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6378do
6379  # Extract the first word of "$ac_prog", so it can be a program name with args.
6380set dummy $ac_prog; ac_word=$2
6381echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6383if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6384  echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386  if test -n "$ac_ct_F77"; then
6387  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392  IFS=$as_save_IFS
6393  test -z "$as_dir" && as_dir=.
6394  for ac_exec_ext in '' $ac_executable_extensions; do
6395  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396    ac_cv_prog_ac_ct_F77="$ac_prog"
6397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398    break 2
6399  fi
6400done
6401done
6402
6403fi
6404fi
6405ac_ct_F77=$ac_cv_prog_ac_ct_F77
6406if test -n "$ac_ct_F77"; then
6407  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6408echo "${ECHO_T}$ac_ct_F77" >&6
6409else
6410  echo "$as_me:$LINENO: result: no" >&5
6411echo "${ECHO_T}no" >&6
6412fi
6413
6414  test -n "$ac_ct_F77" && break
6415done
6416
6417  F77=$ac_ct_F77
6418fi
6419
6420
6421# Provide some information about the compiler.
6422echo "$as_me:6422:" \
6423     "checking for Fortran 77 compiler version" >&5
6424ac_compiler=`set X $ac_compile; echo $2`
6425{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6426  (eval $ac_compiler --version </dev/null >&5) 2>&5
6427  ac_status=$?
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); }
6430{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6431  (eval $ac_compiler -v </dev/null >&5) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }
6435{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6436  (eval $ac_compiler -V </dev/null >&5) 2>&5
6437  ac_status=$?
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); }
6440rm -f a.out
6441
6442# If we don't use `.F' as extension, the preprocessor is not run on the
6443# input file.  (Note that this only needs to work for GNU compilers.)
6444ac_save_ext=$ac_ext
6445ac_ext=F
6446echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6447echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6448if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6449  echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451  cat >conftest.$ac_ext <<_ACEOF
6452      program main
6453#ifndef __GNUC__
6454       choke me
6455#endif
6456
6457      end
6458_ACEOF
6459rm -f conftest.$ac_objext
6460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461  (eval $ac_compile) 2>conftest.er1
6462  ac_status=$?
6463  grep -v '^ *+' conftest.er1 >conftest.err
6464  rm -f conftest.er1
6465  cat conftest.err >&5
6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467  (exit $ac_status); } &&
6468         { ac_try='test -z "$ac_f77_werror_flag"
6469                         || test ! -s conftest.err'
6470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471  (eval $ac_try) 2>&5
6472  ac_status=$?
6473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474  (exit $ac_status); }; } &&
6475         { ac_try='test -s conftest.$ac_objext'
6476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477  (eval $ac_try) 2>&5
6478  ac_status=$?
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); }; }; then
6481  ac_compiler_gnu=yes
6482else
6483  echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486ac_compiler_gnu=no
6487fi
6488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6489ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6490
6491fi
6492echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6493echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6494ac_ext=$ac_save_ext
6495ac_test_FFLAGS=${FFLAGS+set}
6496ac_save_FFLAGS=$FFLAGS
6497FFLAGS=
6498echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6499echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6500if test "${ac_cv_prog_f77_g+set}" = set; then
6501  echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503  FFLAGS=-g
6504cat >conftest.$ac_ext <<_ACEOF
6505      program main
6506
6507      end
6508_ACEOF
6509rm -f conftest.$ac_objext
6510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511  (eval $ac_compile) 2>conftest.er1
6512  ac_status=$?
6513  grep -v '^ *+' conftest.er1 >conftest.err
6514  rm -f conftest.er1
6515  cat conftest.err >&5
6516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517  (exit $ac_status); } &&
6518         { ac_try='test -z "$ac_f77_werror_flag"
6519                         || test ! -s conftest.err'
6520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521  (eval $ac_try) 2>&5
6522  ac_status=$?
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); }; } &&
6525         { ac_try='test -s conftest.$ac_objext'
6526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527  (eval $ac_try) 2>&5
6528  ac_status=$?
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); }; }; then
6531  ac_cv_prog_f77_g=yes
6532else
6533  echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536ac_cv_prog_f77_g=no
6537fi
6538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539
6540fi
6541echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6542echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6543if test "$ac_test_FFLAGS" = set; then
6544  FFLAGS=$ac_save_FFLAGS
6545elif test $ac_cv_prog_f77_g = yes; then
6546  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6547    FFLAGS="-g -O2"
6548  else
6549    FFLAGS="-g"
6550  fi
6551else
6552  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6553    FFLAGS="-O2"
6554  else
6555    FFLAGS=
6556  fi
6557fi
6558
6559G77=`test $ac_compiler_gnu = yes && echo yes`
6560ac_ext=c
6561ac_cpp='$CPP $CPPFLAGS'
6562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565
6566
6567
6568# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6569
6570# find the maximum length of command line arguments
6571echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6572echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6573if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6574  echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576    i=0
6577  teststring="ABCD"
6578
6579  case $build_os in
6580  msdosdjgpp*)
6581    # On DJGPP, this test can blow up pretty badly due to problems in libc
6582    # (any single argument exceeding 2000 bytes causes a buffer overrun
6583    # during glob expansion).  Even if it were fixed, the result of this
6584    # check would be larger than it should be.
6585    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6586    ;;
6587
6588  gnu*)
6589    # Under GNU Hurd, this test is not required because there is
6590    # no limit to the length of command line arguments.
6591    # Libtool will interpret -1 as no limit whatsoever
6592    lt_cv_sys_max_cmd_len=-1;
6593    ;;
6594
6595  cygwin* | mingw*)
6596    # On Win9x/ME, this test blows up -- it succeeds, but takes
6597    # about 5 minutes as the teststring grows exponentially.
6598    # Worse, since 9x/ME are not pre-emptively multitasking,
6599    # you end up with a "frozen" computer, even though with patience
6600    # the test eventually succeeds (with a max line length of 256k).
6601    # Instead, let's just punt: use the minimum linelength reported by
6602    # all of the supported platforms: 8192 (on NT/2K/XP).
6603    lt_cv_sys_max_cmd_len=8192;
6604    ;;
6605
6606  amigaos*)
6607    # On AmigaOS with pdksh, this test takes hours, literally.
6608    # So we just punt and use a minimum line length of 8192.
6609    lt_cv_sys_max_cmd_len=8192;
6610    ;;
6611
6612  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6613    # This has been around since 386BSD, at least.  Likely further.
6614    if test -x /sbin/sysctl; then
6615      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6616    elif test -x /usr/sbin/sysctl; then
6617      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6618    else
6619      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6620    fi
6621    # And add a safety zone
6622    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6623    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6624    ;;
6625
6626  interix*)
6627    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6628    lt_cv_sys_max_cmd_len=196608
6629    ;;
6630
6631  osf*)
6632    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6633    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6634    # nice to cause kernel panics so lets avoid the loop below.
6635    # First set a reasonable default.
6636    lt_cv_sys_max_cmd_len=16384
6637    #
6638    if test -x /sbin/sysconfig; then
6639      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6640        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6641      esac
6642    fi
6643    ;;
6644  sco3.2v5*)
6645    lt_cv_sys_max_cmd_len=102400
6646    ;;
6647  sysv5* | sco5v6* | sysv4.2uw2*)
6648    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6649    if test -n "$kargmax"; then
6650      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6651    else
6652      lt_cv_sys_max_cmd_len=32768
6653    fi
6654    ;;
6655  *)
6656    # If test is not a shell built-in, we'll probably end up computing a
6657    # maximum length that is only half of the actual maximum length, but
6658    # we can't tell.
6659    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6660    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6661               = "XX$teststring") >/dev/null 2>&1 &&
6662            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6663            lt_cv_sys_max_cmd_len=$new_result &&
6664            test $i != 17 # 1/2 MB should be enough
6665    do
6666      i=`expr $i + 1`
6667      teststring=$teststring$teststring
6668    done
6669    teststring=
6670    # Add a significant safety factor because C++ compilers can tack on massive
6671    # amounts of additional arguments before passing them to the linker.
6672    # It appears as though 1/2 is a usable value.
6673    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6674    ;;
6675  esac
6676
6677fi
6678
6679if test -n $lt_cv_sys_max_cmd_len ; then
6680  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6681echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6682else
6683  echo "$as_me:$LINENO: result: none" >&5
6684echo "${ECHO_T}none" >&6
6685fi
6686
6687
6688
6689
6690# Check for command to grab the raw symbol name followed by C symbol from nm.
6691echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6692echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6693if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6694  echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696
6697# These are sane defaults that work on at least a few old systems.
6698# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6699
6700# Character class describing NM global symbol codes.
6701symcode='[BCDEGRST]'
6702
6703# Regexp to match symbols that can be accessed directly from C.
6704sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6705
6706# Transform an extracted symbol line into a proper C declaration
6707lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6708
6709# Transform an extracted symbol line into symbol name and symbol address
6710lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6711
6712# Define system-specific variables.
6713case $host_os in
6714aix*)
6715  symcode='[BCDT]'
6716  ;;
6717cygwin* | mingw* | pw32*)
6718  symcode='[ABCDGISTW]'
6719  ;;
6720hpux*) # Its linker distinguishes data from code symbols
6721  if test "$host_cpu" = ia64; then
6722    symcode='[ABCDEGRST]'
6723  fi
6724  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6725  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6726  ;;
6727linux*)
6728  if test "$host_cpu" = ia64; then
6729    symcode='[ABCDGIRSTW]'
6730    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6731    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6732  fi
6733  ;;
6734irix* | nonstopux*)
6735  symcode='[BCDEGRST]'
6736  ;;
6737osf*)
6738  symcode='[BCDEGQRST]'
6739  ;;
6740solaris*)
6741  symcode='[BDRT]'
6742  ;;
6743sco3.2v5*)
6744  symcode='[DT]'
6745  ;;
6746sysv4.2uw2*)
6747  symcode='[DT]'
6748  ;;
6749sysv5* | sco5v6* | unixware* | OpenUNIX*)
6750  symcode='[ABDT]'
6751  ;;
6752sysv4)
6753  symcode='[DFNSTU]'
6754  ;;
6755esac
6756
6757# Handle CRLF in mingw tool chain
6758opt_cr=
6759case $build_os in
6760mingw*)
6761  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6762  ;;
6763esac
6764
6765# If we're using GNU nm, then use its standard symbol codes.
6766case `$NM -V 2>&1` in
6767*GNU* | *'with BFD'*)
6768  symcode='[ABCDGIRSTW]' ;;
6769esac
6770
6771# Try without a prefix undercore, then with it.
6772for ac_symprfx in "" "_"; do
6773
6774  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6775  symxfrm="\\1 $ac_symprfx\\2 \\2"
6776
6777  # Write the raw and C identifiers.
6778  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6779
6780  # Check to see that the pipe works correctly.
6781  pipe_works=no
6782
6783  rm -f conftest*
6784  cat > conftest.$ac_ext <<EOF
6785#ifdef __cplusplus
6786extern "C" {
6787#endif
6788char nm_test_var;
6789void nm_test_func(){}
6790#ifdef __cplusplus
6791}
6792#endif
6793int main(){nm_test_var='a';nm_test_func();return(0);}
6794EOF
6795
6796  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797  (eval $ac_compile) 2>&5
6798  ac_status=$?
6799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800  (exit $ac_status); }; then
6801    # Now try to grab the symbols.
6802    nlist=conftest.nm
6803    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6804  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6805  ac_status=$?
6806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807  (exit $ac_status); } && test -s "$nlist"; then
6808      # Try sorting and uniquifying the output.
6809      if sort "$nlist" | uniq > "$nlist"T; then
6810        mv -f "$nlist"T "$nlist"
6811      else
6812        rm -f "$nlist"T
6813      fi
6814
6815      # Make sure that we snagged all the symbols we need.
6816      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6817        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6818          cat <<EOF > conftest.$ac_ext
6819#ifdef __cplusplus
6820extern "C" {
6821#endif
6822
6823EOF
6824          # Now generate the symbol file.
6825          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6826
6827          cat <<EOF >> conftest.$ac_ext
6828#if defined (__STDC__) && __STDC__
6829# define lt_ptr_t void *
6830#else
6831# define lt_ptr_t char *
6832# define const
6833#endif
6834
6835/* The mapping between symbol names and symbols. */
6836const struct {
6837  const char *name;
6838  lt_ptr_t address;
6839}
6840lt_preloaded_symbols[] =
6841{
6842EOF
6843          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6844          cat <<\EOF >> conftest.$ac_ext
6845  {0, (lt_ptr_t) 0}
6846};
6847
6848#ifdef __cplusplus
6849}
6850#endif
6851EOF
6852          # Now try linking the two files.
6853          mv conftest.$ac_objext conftstm.$ac_objext
6854          lt_save_LIBS="$LIBS"
6855          lt_save_CFLAGS="$CFLAGS"
6856          LIBS="conftstm.$ac_objext"
6857          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6858          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6859  (eval $ac_link) 2>&5
6860  ac_status=$?
6861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6863            pipe_works=yes
6864          fi
6865          LIBS="$lt_save_LIBS"
6866          CFLAGS="$lt_save_CFLAGS"
6867        else
6868          echo "cannot find nm_test_func in $nlist" >&5
6869        fi
6870      else
6871        echo "cannot find nm_test_var in $nlist" >&5
6872      fi
6873    else
6874      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6875    fi
6876  else
6877    echo "$progname: failed program was:" >&5
6878    cat conftest.$ac_ext >&5
6879  fi
6880  rm -f conftest* conftst*
6881
6882  # Do not use the global_symbol_pipe unless it works.
6883  if test "$pipe_works" = yes; then
6884    break
6885  else
6886    lt_cv_sys_global_symbol_pipe=
6887  fi
6888done
6889
6890fi
6891
6892if test -z "$lt_cv_sys_global_symbol_pipe"; then
6893  lt_cv_sys_global_symbol_to_cdecl=
6894fi
6895if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6896  echo "$as_me:$LINENO: result: failed" >&5
6897echo "${ECHO_T}failed" >&6
6898else
6899  echo "$as_me:$LINENO: result: ok" >&5
6900echo "${ECHO_T}ok" >&6
6901fi
6902
6903echo "$as_me:$LINENO: checking for objdir" >&5
6904echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6905if test "${lt_cv_objdir+set}" = set; then
6906  echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908  rm -f .libs 2>/dev/null
6909mkdir .libs 2>/dev/null
6910if test -d .libs; then
6911  lt_cv_objdir=.libs
6912else
6913  # MS-DOS does not allow filenames that begin with a dot.
6914  lt_cv_objdir=_libs
6915fi
6916rmdir .libs 2>/dev/null
6917fi
6918echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6919echo "${ECHO_T}$lt_cv_objdir" >&6
6920objdir=$lt_cv_objdir
6921
6922
6923
6924
6925
6926case $host_os in
6927aix3*)
6928  # AIX sometimes has problems with the GCC collect2 program.  For some
6929  # reason, if we set the COLLECT_NAMES environment variable, the problems
6930  # vanish in a puff of smoke.
6931  if test "X${COLLECT_NAMES+set}" != Xset; then
6932    COLLECT_NAMES=
6933    export COLLECT_NAMES
6934  fi
6935  ;;
6936esac
6937
6938# Sed substitution that helps us do robust quoting.  It backslashifies
6939# metacharacters that are still active within double-quoted strings.
6940Xsed='sed -e 1s/^X//'
6941sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6942
6943# Same as above, but do not quote variable references.
6944double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6945
6946# Sed substitution to delay expansion of an escaped shell variable in a
6947# double_quote_subst'ed string.
6948delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6949
6950# Sed substitution to avoid accidental globbing in evaled expressions
6951no_glob_subst='s/\*/\\\*/g'
6952
6953# Constants:
6954rm="rm -f"
6955
6956# Global variables:
6957default_ofile=libtool
6958can_build_shared=yes
6959
6960# All known linkers require a `.a' archive for static linking (except MSVC,
6961# which needs '.lib').
6962libext=a
6963ltmain="$ac_aux_dir/ltmain.sh"
6964ofile="$default_ofile"
6965with_gnu_ld="$lt_cv_prog_gnu_ld"
6966
6967if test -n "$ac_tool_prefix"; then
6968  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}ar; ac_word=$2
6970echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6972if test "${ac_cv_prog_AR+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  if test -n "$AR"; then
6976  ac_cv_prog_AR="$AR" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983  for ac_exec_ext in '' $ac_executable_extensions; do
6984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985    ac_cv_prog_AR="${ac_tool_prefix}ar"
6986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987    break 2
6988  fi
6989done
6990done
6991
6992fi
6993fi
6994AR=$ac_cv_prog_AR
6995if test -n "$AR"; then
6996  echo "$as_me:$LINENO: result: $AR" >&5
6997echo "${ECHO_T}$AR" >&6
6998else
6999  echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6
7001fi
7002
7003fi
7004if test -z "$ac_cv_prog_AR"; then
7005  ac_ct_AR=$AR
7006  # Extract the first word of "ar", so it can be a program name with args.
7007set dummy ar; ac_word=$2
7008echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7010if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7011  echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013  if test -n "$ac_ct_AR"; then
7014  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019  IFS=$as_save_IFS
7020  test -z "$as_dir" && as_dir=.
7021  for ac_exec_ext in '' $ac_executable_extensions; do
7022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023    ac_cv_prog_ac_ct_AR="ar"
7024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025    break 2
7026  fi
7027done
7028done
7029
7030  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7031fi
7032fi
7033ac_ct_AR=$ac_cv_prog_ac_ct_AR
7034if test -n "$ac_ct_AR"; then
7035  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7036echo "${ECHO_T}$ac_ct_AR" >&6
7037else
7038  echo "$as_me:$LINENO: result: no" >&5
7039echo "${ECHO_T}no" >&6
7040fi
7041
7042  AR=$ac_ct_AR
7043else
7044  AR="$ac_cv_prog_AR"
7045fi
7046
7047if test -n "$ac_tool_prefix"; then
7048  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7049set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7050echo "$as_me:$LINENO: checking for $ac_word" >&5
7051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7052if test "${ac_cv_prog_RANLIB+set}" = set; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  if test -n "$RANLIB"; then
7056  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063  for ac_exec_ext in '' $ac_executable_extensions; do
7064  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070done
7071
7072fi
7073fi
7074RANLIB=$ac_cv_prog_RANLIB
7075if test -n "$RANLIB"; then
7076  echo "$as_me:$LINENO: result: $RANLIB" >&5
7077echo "${ECHO_T}$RANLIB" >&6
7078else
7079  echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6
7081fi
7082
7083fi
7084if test -z "$ac_cv_prog_RANLIB"; then
7085  ac_ct_RANLIB=$RANLIB
7086  # Extract the first word of "ranlib", so it can be a program name with args.
7087set dummy ranlib; ac_word=$2
7088echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7090if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7091  echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093  if test -n "$ac_ct_RANLIB"; then
7094  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7095else
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099  IFS=$as_save_IFS
7100  test -z "$as_dir" && as_dir=.
7101  for ac_exec_ext in '' $ac_executable_extensions; do
7102  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103    ac_cv_prog_ac_ct_RANLIB="ranlib"
7104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105    break 2
7106  fi
7107done
7108done
7109
7110  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7111fi
7112fi
7113ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7114if test -n "$ac_ct_RANLIB"; then
7115  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7116echo "${ECHO_T}$ac_ct_RANLIB" >&6
7117else
7118  echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
7120fi
7121
7122  RANLIB=$ac_ct_RANLIB
7123else
7124  RANLIB="$ac_cv_prog_RANLIB"
7125fi
7126
7127if test -n "$ac_tool_prefix"; then
7128  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7129set dummy ${ac_tool_prefix}strip; ac_word=$2
7130echo "$as_me:$LINENO: checking for $ac_word" >&5
7131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132if test "${ac_cv_prog_STRIP+set}" = set; then
7133  echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135  if test -n "$STRIP"; then
7136  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141  IFS=$as_save_IFS
7142  test -z "$as_dir" && as_dir=.
7143  for ac_exec_ext in '' $ac_executable_extensions; do
7144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150done
7151
7152fi
7153fi
7154STRIP=$ac_cv_prog_STRIP
7155if test -n "$STRIP"; then
7156  echo "$as_me:$LINENO: result: $STRIP" >&5
7157echo "${ECHO_T}$STRIP" >&6
7158else
7159  echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161fi
7162
7163fi
7164if test -z "$ac_cv_prog_STRIP"; then
7165  ac_ct_STRIP=$STRIP
7166  # Extract the first word of "strip", so it can be a program name with args.
7167set dummy strip; ac_word=$2
7168echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7171  echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173  if test -n "$ac_ct_STRIP"; then
7174  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179  IFS=$as_save_IFS
7180  test -z "$as_dir" && as_dir=.
7181  for ac_exec_ext in '' $ac_executable_extensions; do
7182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183    ac_cv_prog_ac_ct_STRIP="strip"
7184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188done
7189
7190  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7191fi
7192fi
7193ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7194if test -n "$ac_ct_STRIP"; then
7195  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7196echo "${ECHO_T}$ac_ct_STRIP" >&6
7197else
7198  echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6
7200fi
7201
7202  STRIP=$ac_ct_STRIP
7203else
7204  STRIP="$ac_cv_prog_STRIP"
7205fi
7206
7207
7208old_CC="$CC"
7209old_CFLAGS="$CFLAGS"
7210
7211# Set sane defaults for various variables
7212test -z "$AR" && AR=ar
7213test -z "$AR_FLAGS" && AR_FLAGS=cru
7214test -z "$AS" && AS=as
7215test -z "$CC" && CC=cc
7216test -z "$LTCC" && LTCC=$CC
7217test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7218test -z "$DLLTOOL" && DLLTOOL=dlltool
7219test -z "$LD" && LD=ld
7220test -z "$LN_S" && LN_S="ln -s"
7221test -z "$MAGIC_CMD" && MAGIC_CMD=file
7222test -z "$NM" && NM=nm
7223test -z "$SED" && SED=sed
7224test -z "$OBJDUMP" && OBJDUMP=objdump
7225test -z "$RANLIB" && RANLIB=:
7226test -z "$STRIP" && STRIP=:
7227test -z "$ac_objext" && ac_objext=o
7228
7229# Determine commands to create old-style static archives.
7230old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7231old_postinstall_cmds='chmod 644 $oldlib'
7232old_postuninstall_cmds=
7233
7234if test -n "$RANLIB"; then
7235  case $host_os in
7236  openbsd*)
7237    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7238    ;;
7239  *)
7240    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7241    ;;
7242  esac
7243  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7244fi
7245
7246for cc_temp in $compiler""; do
7247  case $cc_temp in
7248    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7249    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7250    \-*) ;;
7251    *) break;;
7252  esac
7253done
7254cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7255
7256
7257# Only perform the check for file, if the check method requires it
7258case $deplibs_check_method in
7259file_magic*)
7260  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7261    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7262echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7263if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7264  echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266  case $MAGIC_CMD in
7267[\\/*] |  ?:[\\/]*)
7268  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7269  ;;
7270*)
7271  lt_save_MAGIC_CMD="$MAGIC_CMD"
7272  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7274  for ac_dir in $ac_dummy; do
7275    IFS="$lt_save_ifs"
7276    test -z "$ac_dir" && ac_dir=.
7277    if test -f $ac_dir/${ac_tool_prefix}file; then
7278      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7279      if test -n "$file_magic_test_file"; then
7280        case $deplibs_check_method in
7281        "file_magic "*)
7282          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7283          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7284          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7285            $EGREP "$file_magic_regex" > /dev/null; then
7286            :
7287          else
7288            cat <<EOF 1>&2
7289
7290*** Warning: the command libtool uses to detect shared libraries,
7291*** $file_magic_cmd, produces output that libtool cannot recognize.
7292*** The result is that libtool may fail to recognize shared libraries
7293*** as such.  This will affect the creation of libtool libraries that
7294*** depend on shared libraries, but programs linked with such libtool
7295*** libraries will work regardless of this problem.  Nevertheless, you
7296*** may want to report the problem to your system manager and/or to
7297*** bug-libtool@gnu.org
7298
7299EOF
7300          fi ;;
7301        esac
7302      fi
7303      break
7304    fi
7305  done
7306  IFS="$lt_save_ifs"
7307  MAGIC_CMD="$lt_save_MAGIC_CMD"
7308  ;;
7309esac
7310fi
7311
7312MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313if test -n "$MAGIC_CMD"; then
7314  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7315echo "${ECHO_T}$MAGIC_CMD" >&6
7316else
7317  echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6
7319fi
7320
7321if test -z "$lt_cv_path_MAGIC_CMD"; then
7322  if test -n "$ac_tool_prefix"; then
7323    echo "$as_me:$LINENO: checking for file" >&5
7324echo $ECHO_N "checking for file... $ECHO_C" >&6
7325if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326  echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328  case $MAGIC_CMD in
7329[\\/*] |  ?:[\\/]*)
7330  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331  ;;
7332*)
7333  lt_save_MAGIC_CMD="$MAGIC_CMD"
7334  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336  for ac_dir in $ac_dummy; do
7337    IFS="$lt_save_ifs"
7338    test -z "$ac_dir" && ac_dir=.
7339    if test -f $ac_dir/file; then
7340      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7341      if test -n "$file_magic_test_file"; then
7342        case $deplibs_check_method in
7343        "file_magic "*)
7344          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347            $EGREP "$file_magic_regex" > /dev/null; then
7348            :
7349          else
7350            cat <<EOF 1>&2
7351
7352*** Warning: the command libtool uses to detect shared libraries,
7353*** $file_magic_cmd, produces output that libtool cannot recognize.
7354*** The result is that libtool may fail to recognize shared libraries
7355*** as such.  This will affect the creation of libtool libraries that
7356*** depend on shared libraries, but programs linked with such libtool
7357*** libraries will work regardless of this problem.  Nevertheless, you
7358*** may want to report the problem to your system manager and/or to
7359*** bug-libtool@gnu.org
7360
7361EOF
7362          fi ;;
7363        esac
7364      fi
7365      break
7366    fi
7367  done
7368  IFS="$lt_save_ifs"
7369  MAGIC_CMD="$lt_save_MAGIC_CMD"
7370  ;;
7371esac
7372fi
7373
7374MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375if test -n "$MAGIC_CMD"; then
7376  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377echo "${ECHO_T}$MAGIC_CMD" >&6
7378else
7379  echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6
7381fi
7382
7383  else
7384    MAGIC_CMD=:
7385  fi
7386fi
7387
7388  fi
7389  ;;
7390esac
7391
7392enable_dlopen=no
7393enable_win32_dll=no
7394
7395# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7396if test "${enable_libtool_lock+set}" = set; then
7397  enableval="$enable_libtool_lock"
7398
7399fi;
7400test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7401
7402
7403# Check whether --with-pic or --without-pic was given.
7404if test "${with_pic+set}" = set; then
7405  withval="$with_pic"
7406  pic_mode="$withval"
7407else
7408  pic_mode=default
7409fi;
7410test -z "$pic_mode" && pic_mode=default
7411
7412# Use C for the default configuration in the libtool script
7413tagname=
7414lt_save_CC="$CC"
7415ac_ext=c
7416ac_cpp='$CPP $CPPFLAGS'
7417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420
7421
7422# Source file extension for C test sources.
7423ac_ext=c
7424
7425# Object file extension for compiled C test sources.
7426objext=o
7427objext=$objext
7428
7429# Code to be used in simple compile tests
7430lt_simple_compile_test_code="int some_variable = 0;\n"
7431
7432# Code to be used in simple link tests
7433lt_simple_link_test_code='int main(){return(0);}\n'
7434
7435
7436# If no C compiler was specified, use CC.
7437LTCC=${LTCC-"$CC"}
7438
7439# If no C compiler flags were specified, use CFLAGS.
7440LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7441
7442# Allow CC to be a program name with arguments.
7443compiler=$CC
7444
7445
7446# save warnings/boilerplate of simple test code
7447ac_outfile=conftest.$ac_objext
7448printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7449eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7450_lt_compiler_boilerplate=`cat conftest.err`
7451$rm conftest*
7452
7453ac_outfile=conftest.$ac_objext
7454printf "$lt_simple_link_test_code" >conftest.$ac_ext
7455eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7456_lt_linker_boilerplate=`cat conftest.err`
7457$rm conftest*
7458
7459
7460## CAVEAT EMPTOR:
7461## There is no encapsulation within the following macros, do not change
7462## the running order or otherwise move them around unless you know exactly
7463## what you are doing...
7464
7465lt_prog_compiler_no_builtin_flag=
7466
7467if test "$GCC" = yes; then
7468  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7469
7470
7471echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7472echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7473if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7474  echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476  lt_cv_prog_compiler_rtti_exceptions=no
7477  ac_outfile=conftest.$ac_objext
7478   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7479   lt_compiler_flag="-fno-rtti -fno-exceptions"
7480   # Insert the option either (1) after the last *FLAGS variable, or
7481   # (2) before a word containing "conftest.", or (3) at the end.
7482   # Note that $ac_compile itself does not contain backslashes and begins
7483   # with a dollar sign (not a hyphen), so the echo should work correctly.
7484   # The option is referenced via a variable to avoid confusing sed.
7485   lt_compile=`echo "$ac_compile" | $SED \
7486   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7487   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7488   -e 's:$: $lt_compiler_flag:'`
7489   (eval echo "\"\$as_me:7489: $lt_compile\"" >&5)
7490   (eval "$lt_compile" 2>conftest.err)
7491   ac_status=$?
7492   cat conftest.err >&5
7493   echo "$as_me:7493: \$? = $ac_status" >&5
7494   if (exit $ac_status) && test -s "$ac_outfile"; then
7495     # The compiler can only warn and ignore the option if not recognized
7496     # So say no if there are warnings other than the usual output.
7497     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7498     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7499     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7500       lt_cv_prog_compiler_rtti_exceptions=yes
7501     fi
7502   fi
7503   $rm conftest*
7504
7505fi
7506echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7507echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7508
7509if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7510    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7511else
7512    :
7513fi
7514
7515fi
7516
7517lt_prog_compiler_wl=
7518lt_prog_compiler_pic=
7519lt_prog_compiler_static=
7520
7521echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7522echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7523
7524  if test "$GCC" = yes; then
7525    lt_prog_compiler_wl='-Wl,'
7526    lt_prog_compiler_static='-static'
7527
7528    case $host_os in
7529      aix*)
7530      # All AIX code is PIC.
7531      if test "$host_cpu" = ia64; then
7532        # AIX 5 now supports IA64 processor
7533        lt_prog_compiler_static='-Bstatic'
7534      fi
7535      ;;
7536
7537    amigaos*)
7538      # FIXME: we need at least 68020 code to build shared libraries, but
7539      # adding the `-m68020' flag to GCC prevents building anything better,
7540      # like `-m68040'.
7541      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7542      ;;
7543
7544    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7545      # PIC is the default for these OSes.
7546      ;;
7547
7548    mingw* | pw32* | os2*)
7549      # This hack is so that the source file can tell whether it is being
7550      # built for inclusion in a dll (and should export symbols for example).
7551      lt_prog_compiler_pic='-DDLL_EXPORT'
7552      ;;
7553
7554    darwin* | rhapsody*)
7555      # PIC is the default on this platform
7556      # Common symbols not allowed in MH_DYLIB files
7557      lt_prog_compiler_pic='-fno-common'
7558      ;;
7559
7560    interix3*)
7561      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7562      # Instead, we relocate shared libraries at runtime.
7563      ;;
7564
7565    msdosdjgpp*)
7566      # Just because we use GCC doesn't mean we suddenly get shared libraries
7567      # on systems that don't support them.
7568      lt_prog_compiler_can_build_shared=no
7569      enable_shared=no
7570      ;;
7571
7572    sysv4*MP*)
7573      if test -d /usr/nec; then
7574        lt_prog_compiler_pic=-Kconform_pic
7575      fi
7576      ;;
7577
7578    hpux*)
7579      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7580      # not for PA HP-UX.
7581      case $host_cpu in
7582      hppa*64*|ia64*)
7583        # +Z the default
7584        ;;
7585      *)
7586        lt_prog_compiler_pic='-fPIC'
7587        ;;
7588      esac
7589      ;;
7590
7591    *)
7592      lt_prog_compiler_pic='-fPIC'
7593      ;;
7594    esac
7595  else
7596    # PORTME Check for flag to pass linker flags through the system compiler.
7597    case $host_os in
7598    aix*)
7599      lt_prog_compiler_wl='-Wl,'
7600      if test "$host_cpu" = ia64; then
7601        # AIX 5 now supports IA64 processor
7602        lt_prog_compiler_static='-Bstatic'
7603      else
7604        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7605      fi
7606      ;;
7607      darwin*)
7608        # PIC is the default on this platform
7609        # Common symbols not allowed in MH_DYLIB files
7610       case $cc_basename in
7611         xlc*)
7612         lt_prog_compiler_pic='-qnocommon'
7613         lt_prog_compiler_wl='-Wl,'
7614         ;;
7615       esac
7616       ;;
7617
7618    mingw* | pw32* | os2*)
7619      # This hack is so that the source file can tell whether it is being
7620      # built for inclusion in a dll (and should export symbols for example).
7621      lt_prog_compiler_pic='-DDLL_EXPORT'
7622      ;;
7623
7624    hpux9* | hpux10* | hpux11*)
7625      lt_prog_compiler_wl='-Wl,'
7626      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7627      # not for PA HP-UX.
7628      case $host_cpu in
7629      hppa*64*|ia64*)
7630        # +Z the default
7631        ;;
7632      *)
7633        lt_prog_compiler_pic='+Z'
7634        ;;
7635      esac
7636      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7637      lt_prog_compiler_static='${wl}-a ${wl}archive'
7638      ;;
7639
7640    irix5* | irix6* | nonstopux*)
7641      lt_prog_compiler_wl='-Wl,'
7642      # PIC (with -KPIC) is the default.
7643      lt_prog_compiler_static='-non_shared'
7644      ;;
7645
7646    newsos6)
7647      lt_prog_compiler_pic='-KPIC'
7648      lt_prog_compiler_static='-Bstatic'
7649      ;;
7650
7651    linux*)
7652      case $cc_basename in
7653      icc* | ecc*)
7654        lt_prog_compiler_wl='-Wl,'
7655        lt_prog_compiler_pic='-KPIC'
7656        lt_prog_compiler_static='-static'
7657        ;;
7658      pgcc* | pgf77* | pgf90* | pgf95*)
7659        # Portland Group compilers (*not* the Pentium gcc compiler,
7660        # which looks to be a dead project)
7661        lt_prog_compiler_wl='-Wl,'
7662        lt_prog_compiler_pic='-fpic'
7663        lt_prog_compiler_static='-Bstatic'
7664        ;;
7665      ccc*)
7666        lt_prog_compiler_wl='-Wl,'
7667        # All Alpha code is PIC.
7668        lt_prog_compiler_static='-non_shared'
7669        ;;
7670      esac
7671      ;;
7672
7673    osf3* | osf4* | osf5*)
7674      lt_prog_compiler_wl='-Wl,'
7675      # All OSF/1 code is PIC.
7676      lt_prog_compiler_static='-non_shared'
7677      ;;
7678
7679    solaris*)
7680      lt_prog_compiler_pic='-KPIC'
7681      lt_prog_compiler_static='-Bstatic'
7682      case $cc_basename in
7683      f77* | f90* | f95*)
7684        lt_prog_compiler_wl='-Qoption ld ';;
7685      *)
7686        lt_prog_compiler_wl='-Wl,';;
7687      esac
7688      ;;
7689
7690    sunos4*)
7691      lt_prog_compiler_wl='-Qoption ld '
7692      lt_prog_compiler_pic='-PIC'
7693      lt_prog_compiler_static='-Bstatic'
7694      ;;
7695
7696    sysv4 | sysv4.2uw2* | sysv4.3*)
7697      lt_prog_compiler_wl='-Wl,'
7698      lt_prog_compiler_pic='-KPIC'
7699      lt_prog_compiler_static='-Bstatic'
7700      ;;
7701
7702    sysv4*MP*)
7703      if test -d /usr/nec ;then
7704        lt_prog_compiler_pic='-Kconform_pic'
7705        lt_prog_compiler_static='-Bstatic'
7706      fi
7707      ;;
7708
7709    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7710      lt_prog_compiler_wl='-Wl,'
7711      lt_prog_compiler_pic='-KPIC'
7712      lt_prog_compiler_static='-Bstatic'
7713      ;;
7714
7715    unicos*)
7716      lt_prog_compiler_wl='-Wl,'
7717      lt_prog_compiler_can_build_shared=no
7718      ;;
7719
7720    uts4*)
7721      lt_prog_compiler_pic='-pic'
7722      lt_prog_compiler_static='-Bstatic'
7723      ;;
7724
7725    *)
7726      lt_prog_compiler_can_build_shared=no
7727      ;;
7728    esac
7729  fi
7730
7731echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7732echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7733
7734#
7735# Check to make sure the PIC flag actually works.
7736#
7737if test -n "$lt_prog_compiler_pic"; then
7738
7739echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7740echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7741if test "${lt_prog_compiler_pic_works+set}" = set; then
7742  echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744  lt_prog_compiler_pic_works=no
7745  ac_outfile=conftest.$ac_objext
7746   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7747   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7748   # Insert the option either (1) after the last *FLAGS variable, or
7749   # (2) before a word containing "conftest.", or (3) at the end.
7750   # Note that $ac_compile itself does not contain backslashes and begins
7751   # with a dollar sign (not a hyphen), so the echo should work correctly.
7752   # The option is referenced via a variable to avoid confusing sed.
7753   lt_compile=`echo "$ac_compile" | $SED \
7754   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7755   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7756   -e 's:$: $lt_compiler_flag:'`
7757   (eval echo "\"\$as_me:7757: $lt_compile\"" >&5)
7758   (eval "$lt_compile" 2>conftest.err)
7759   ac_status=$?
7760   cat conftest.err >&5
7761   echo "$as_me:7761: \$? = $ac_status" >&5
7762   if (exit $ac_status) && test -s "$ac_outfile"; then
7763     # The compiler can only warn and ignore the option if not recognized
7764     # So say no if there are warnings other than the usual output.
7765     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7766     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7767     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7768       lt_prog_compiler_pic_works=yes
7769     fi
7770   fi
7771   $rm conftest*
7772
7773fi
7774echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7775echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7776
7777if test x"$lt_prog_compiler_pic_works" = xyes; then
7778    case $lt_prog_compiler_pic in
7779     "" | " "*) ;;
7780     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7781     esac
7782else
7783    lt_prog_compiler_pic=
7784     lt_prog_compiler_can_build_shared=no
7785fi
7786
7787fi
7788case $host_os in
7789  # For platforms which do not support PIC, -DPIC is meaningless:
7790  *djgpp*)
7791    lt_prog_compiler_pic=
7792    ;;
7793  *)
7794    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7795    ;;
7796esac
7797
7798#
7799# Check to make sure the static flag actually works.
7800#
7801wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7802echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7803echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7804if test "${lt_prog_compiler_static_works+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807  lt_prog_compiler_static_works=no
7808   save_LDFLAGS="$LDFLAGS"
7809   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7810   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7811   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7812     # The linker can only warn and ignore the option if not recognized
7813     # So say no if there are warnings
7814     if test -s conftest.err; then
7815       # Append any errors to the config.log.
7816       cat conftest.err 1>&5
7817       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7818       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7819       if diff conftest.exp conftest.er2 >/dev/null; then
7820         lt_prog_compiler_static_works=yes
7821       fi
7822     else
7823       lt_prog_compiler_static_works=yes
7824     fi
7825   fi
7826   $rm conftest*
7827   LDFLAGS="$save_LDFLAGS"
7828
7829fi
7830echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7831echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7832
7833if test x"$lt_prog_compiler_static_works" = xyes; then
7834    :
7835else
7836    lt_prog_compiler_static=
7837fi
7838
7839
7840echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7841echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7842if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7843  echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845  lt_cv_prog_compiler_c_o=no
7846   $rm -r conftest 2>/dev/null
7847   mkdir conftest
7848   cd conftest
7849   mkdir out
7850   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7851
7852   lt_compiler_flag="-o out/conftest2.$ac_objext"
7853   # Insert the option either (1) after the last *FLAGS variable, or
7854   # (2) before a word containing "conftest.", or (3) at the end.
7855   # Note that $ac_compile itself does not contain backslashes and begins
7856   # with a dollar sign (not a hyphen), so the echo should work correctly.
7857   lt_compile=`echo "$ac_compile" | $SED \
7858   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7859   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7860   -e 's:$: $lt_compiler_flag:'`
7861   (eval echo "\"\$as_me:7861: $lt_compile\"" >&5)
7862   (eval "$lt_compile" 2>out/conftest.err)
7863   ac_status=$?
7864   cat out/conftest.err >&5
7865   echo "$as_me:7865: \$? = $ac_status" >&5
7866   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7867   then
7868     # The compiler can only warn and ignore the option if not recognized
7869     # So say no if there are warnings
7870     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7871     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7872     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7873       lt_cv_prog_compiler_c_o=yes
7874     fi
7875   fi
7876   chmod u+w . 2>&5
7877   $rm conftest*
7878   # SGI C++ compiler will create directory out/ii_files/ for
7879   # template instantiation
7880   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7881   $rm out/* && rmdir out
7882   cd ..
7883   rmdir conftest
7884   $rm conftest*
7885
7886fi
7887echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7888echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7889
7890
7891hard_links="nottested"
7892if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7893  # do not overwrite the value of need_locks provided by the user
7894  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7895echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7896  hard_links=yes
7897  $rm conftest*
7898  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7899  touch conftest.a
7900  ln conftest.a conftest.b 2>&5 || hard_links=no
7901  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7902  echo "$as_me:$LINENO: result: $hard_links" >&5
7903echo "${ECHO_T}$hard_links" >&6
7904  if test "$hard_links" = no; then
7905    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7906echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7907    need_locks=warn
7908  fi
7909else
7910  need_locks=no
7911fi
7912
7913echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7914echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7915
7916  runpath_var=
7917  allow_undefined_flag=
7918  enable_shared_with_static_runtimes=no
7919  archive_cmds=
7920  archive_expsym_cmds=
7921  old_archive_From_new_cmds=
7922  old_archive_from_expsyms_cmds=
7923  export_dynamic_flag_spec=
7924  whole_archive_flag_spec=
7925  thread_safe_flag_spec=
7926  hardcode_libdir_flag_spec=
7927  hardcode_libdir_flag_spec_ld=
7928  hardcode_libdir_separator=
7929  hardcode_direct=no
7930  hardcode_minus_L=no
7931  hardcode_shlibpath_var=unsupported
7932  link_all_deplibs=unknown
7933  hardcode_automatic=no
7934  module_cmds=
7935  module_expsym_cmds=
7936  always_export_symbols=no
7937  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7938  # include_expsyms should be a list of space-separated symbols to be *always*
7939  # included in the symbol list
7940  include_expsyms=
7941  # exclude_expsyms can be an extended regexp of symbols to exclude
7942  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7943  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7944  # as well as any symbol that contains `d'.
7945  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7946  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7947  # platforms (ab)use it in PIC code, but their linkers get confused if
7948  # the symbol is explicitly referenced.  Since portable code cannot
7949  # rely on this symbol name, it's probably fine to never include it in
7950  # preloaded symbol tables.
7951  extract_expsyms_cmds=
7952  # Just being paranoid about ensuring that cc_basename is set.
7953  for cc_temp in $compiler""; do
7954  case $cc_temp in
7955    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7956    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7957    \-*) ;;
7958    *) break;;
7959  esac
7960done
7961cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7962
7963  case $host_os in
7964  cygwin* | mingw* | pw32*)
7965    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7966    # When not using gcc, we currently assume that we are using
7967    # Microsoft Visual C++.
7968    if test "$GCC" != yes; then
7969      with_gnu_ld=no
7970    fi
7971    ;;
7972  interix*)
7973    # we just hope/assume this is gcc and not c89 (= MSVC++)
7974    with_gnu_ld=yes
7975    ;;
7976  openbsd*)
7977    with_gnu_ld=no
7978    ;;
7979  esac
7980
7981  ld_shlibs=yes
7982  if test "$with_gnu_ld" = yes; then
7983    # If archive_cmds runs LD, not CC, wlarc should be empty
7984    wlarc='${wl}'
7985
7986    # Set some defaults for GNU ld with shared library support. These
7987    # are reset later if shared libraries are not supported. Putting them
7988    # here allows them to be overridden if necessary.
7989    runpath_var=LD_RUN_PATH
7990    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7991    export_dynamic_flag_spec='${wl}--export-dynamic'
7992    # ancient GNU ld didn't support --whole-archive et. al.
7993    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7994        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7995      else
7996        whole_archive_flag_spec=
7997    fi
7998    supports_anon_versioning=no
7999    case `$LD -v 2>/dev/null` in
8000      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8001      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8002      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8003      *\ 2.11.*) ;; # other 2.11 versions
8004      *) supports_anon_versioning=yes ;;
8005    esac
8006
8007    # See if GNU ld supports shared libraries.
8008    case $host_os in
8009    aix3* | aix4* | aix5*)
8010      # On AIX/PPC, the GNU linker is very broken
8011      if test "$host_cpu" != ia64; then
8012        ld_shlibs=no
8013        cat <<EOF 1>&2
8014
8015*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8016*** to be unable to reliably create shared libraries on AIX.
8017*** Therefore, libtool is disabling shared libraries support.  If you
8018*** really care for shared libraries, you may want to modify your PATH
8019*** so that a non-GNU linker is found, and then restart.
8020
8021EOF
8022      fi
8023      ;;
8024
8025    amigaos*)
8026      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)'
8027      hardcode_libdir_flag_spec='-L$libdir'
8028      hardcode_minus_L=yes
8029
8030      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8031      # that the semantics of dynamic libraries on AmigaOS, at least up
8032      # to version 4, is to share data among multiple programs linked
8033      # with the same dynamic library.  Since this doesn't match the
8034      # behavior of shared libraries on other platforms, we can't use
8035      # them.
8036      ld_shlibs=no
8037      ;;
8038
8039    beos*)
8040      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8041        allow_undefined_flag=unsupported
8042        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8043        # support --undefined.  This deserves some investigation.  FIXME
8044        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8045      else
8046        ld_shlibs=no
8047      fi
8048      ;;
8049
8050    cygwin* | mingw* | pw32*)
8051      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8052      # as there is no search path for DLLs.
8053      hardcode_libdir_flag_spec='-L$libdir'
8054      allow_undefined_flag=unsupported
8055      always_export_symbols=no
8056      enable_shared_with_static_runtimes=yes
8057      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8058
8059      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8060        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8061        # If the export-symbols file already is a .def file (1st line
8062        # is EXPORTS), use it as is; otherwise, prepend...
8063        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8064          cp $export_symbols $output_objdir/$soname.def;
8065        else
8066          echo EXPORTS > $output_objdir/$soname.def;
8067          cat $export_symbols >> $output_objdir/$soname.def;
8068        fi~
8069        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8070      else
8071        ld_shlibs=no
8072      fi
8073      ;;
8074
8075    interix3*)
8076      hardcode_direct=no
8077      hardcode_shlibpath_var=no
8078      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8079      export_dynamic_flag_spec='${wl}-E'
8080      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8081      # Instead, shared libraries are loaded at an image base (0x10000000 by
8082      # default) and relocated if they conflict, which is a slow very memory
8083      # consuming and fragmenting process.  To avoid this, we pick a random,
8084      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8085      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8086      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8087      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'
8088      ;;
8089
8090    linux*)
8091      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8092        tmp_addflag=
8093        case $cc_basename,$host_cpu in
8094        pgcc*)                          # Portland Group C compiler
8095          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8096          tmp_addflag=' $pic_flag'
8097          ;;
8098        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8099          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8100          tmp_addflag=' $pic_flag -Mnomain' ;;
8101        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8102          tmp_addflag=' -i_dynamic' ;;
8103        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8104          tmp_addflag=' -i_dynamic -nofor_main' ;;
8105        ifc* | ifort*)                  # Intel Fortran compiler
8106          tmp_addflag=' -nofor_main' ;;
8107        esac
8108        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109
8110        if test $supports_anon_versioning = yes; then
8111          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8112  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8113  $echo "local: *; };" >> $output_objdir/$libname.ver~
8114          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8115        fi
8116      else
8117        ld_shlibs=no
8118      fi
8119      ;;
8120
8121    netbsd*)
8122      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8123        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8124        wlarc=
8125      else
8126        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8128      fi
8129      ;;
8130
8131    solaris*)
8132      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8133        ld_shlibs=no
8134        cat <<EOF 1>&2
8135
8136*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8137*** create shared libraries on Solaris systems.  Therefore, libtool
8138*** is disabling shared libraries support.  We urge you to upgrade GNU
8139*** binutils to release 2.9.1 or newer.  Another option is to modify
8140*** your PATH or compiler configuration so that the native linker is
8141*** used, and then restart.
8142
8143EOF
8144      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8147      else
8148        ld_shlibs=no
8149      fi
8150      ;;
8151
8152    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8153      case `$LD -v 2>&1` in
8154        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8155        ld_shlibs=no
8156        cat <<_LT_EOF 1>&2
8157
8158*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8159*** reliably create shared libraries on SCO systems.  Therefore, libtool
8160*** is disabling shared libraries support.  We urge you to upgrade GNU
8161*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8162*** your PATH or compiler configuration so that the native linker is
8163*** used, and then restart.
8164
8165_LT_EOF
8166        ;;
8167        *)
8168          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8170            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8171            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8172          else
8173            ld_shlibs=no
8174          fi
8175        ;;
8176      esac
8177      ;;
8178
8179    sunos4*)
8180      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8181      wlarc=
8182      hardcode_direct=yes
8183      hardcode_shlibpath_var=no
8184      ;;
8185
8186    *)
8187      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8188        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8189        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8190      else
8191        ld_shlibs=no
8192      fi
8193      ;;
8194    esac
8195
8196    if test "$ld_shlibs" = no; then
8197      runpath_var=
8198      hardcode_libdir_flag_spec=
8199      export_dynamic_flag_spec=
8200      whole_archive_flag_spec=
8201    fi
8202  else
8203    # PORTME fill in a description of your system's linker (not GNU ld)
8204    case $host_os in
8205    aix3*)
8206      allow_undefined_flag=unsupported
8207      always_export_symbols=yes
8208      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'
8209      # Note: this linker hardcodes the directories in LIBPATH if there
8210      # are no directories specified by -L.
8211      hardcode_minus_L=yes
8212      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8213        # Neither direct hardcoding nor static linking is supported with a
8214        # broken collect2.
8215        hardcode_direct=unsupported
8216      fi
8217      ;;
8218
8219    aix4* | aix5*)
8220      if test "$host_cpu" = ia64; then
8221        # On IA64, the linker does run time linking by default, so we don't
8222        # have to do anything special.
8223        aix_use_runtimelinking=no
8224        exp_sym_flag='-Bexport'
8225        no_entry_flag=""
8226      else
8227        # If we're using GNU nm, then we don't want the "-C" option.
8228        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8229        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8230          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8231        else
8232          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'
8233        fi
8234        aix_use_runtimelinking=no
8235
8236        # Test if we are trying to use run time linking or normal
8237        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8238        # need to do runtime linking.
8239        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8240          for ld_flag in $LDFLAGS; do
8241          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8242            aix_use_runtimelinking=yes
8243            break
8244          fi
8245          done
8246          ;;
8247        esac
8248
8249        exp_sym_flag='-bexport'
8250        no_entry_flag='-bnoentry'
8251      fi
8252
8253      # When large executables or shared objects are built, AIX ld can
8254      # have problems creating the table of contents.  If linking a library
8255      # or program results in "error TOC overflow" add -mminimal-toc to
8256      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8257      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8258
8259      archive_cmds=''
8260      hardcode_direct=yes
8261      hardcode_libdir_separator=':'
8262      link_all_deplibs=yes
8263
8264      if test "$GCC" = yes; then
8265        case $host_os in aix4.[012]|aix4.[012].*)
8266        # We only want to do this on AIX 4.2 and lower, the check
8267        # below for broken collect2 doesn't work under 4.3+
8268          collect2name=`${CC} -print-prog-name=collect2`
8269          if test -f "$collect2name" && \
8270           strings "$collect2name" | grep resolve_lib_name >/dev/null
8271          then
8272          # We have reworked collect2
8273          hardcode_direct=yes
8274          else
8275          # We have old collect2
8276          hardcode_direct=unsupported
8277          # It fails to find uninstalled libraries when the uninstalled
8278          # path is not listed in the libpath.  Setting hardcode_minus_L
8279          # to unsupported forces relinking
8280          hardcode_minus_L=yes
8281          hardcode_libdir_flag_spec='-L$libdir'
8282          hardcode_libdir_separator=
8283          fi
8284          ;;
8285        esac
8286        shared_flag='-shared'
8287        if test "$aix_use_runtimelinking" = yes; then
8288          shared_flag="$shared_flag "'${wl}-G'
8289        fi
8290      else
8291        # not using gcc
8292        if test "$host_cpu" = ia64; then
8293        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8294        # chokes on -Wl,-G. The following line is correct:
8295          shared_flag='-G'
8296        else
8297          if test "$aix_use_runtimelinking" = yes; then
8298            shared_flag='${wl}-G'
8299          else
8300            shared_flag='${wl}-bM:SRE'
8301          fi
8302        fi
8303      fi
8304
8305      # It seems that -bexpall does not export symbols beginning with
8306      # underscore (_), so it is better to generate a list of symbols to export.
8307      always_export_symbols=yes
8308      if test "$aix_use_runtimelinking" = yes; then
8309        # Warning - without using the other runtime loading flags (-brtl),
8310        # -berok will link without error, but may produce a broken library.
8311        allow_undefined_flag='-berok'
8312       # Determine the default libpath from the value encoded in an empty executable.
8313       cat >conftest.$ac_ext <<_ACEOF
8314/* confdefs.h.  */
8315_ACEOF
8316cat confdefs.h >>conftest.$ac_ext
8317cat >>conftest.$ac_ext <<_ACEOF
8318/* end confdefs.h.  */
8319
8320int
8321main ()
8322{
8323
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328rm -f conftest.$ac_objext conftest$ac_exeext
8329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330  (eval $ac_link) 2>conftest.er1
8331  ac_status=$?
8332  grep -v '^ *+' conftest.er1 >conftest.err
8333  rm -f conftest.er1
8334  cat conftest.err >&5
8335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336  (exit $ac_status); } &&
8337         { ac_try='test -z "$ac_c_werror_flag"
8338                         || test ! -s conftest.err'
8339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340  (eval $ac_try) 2>&5
8341  ac_status=$?
8342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343  (exit $ac_status); }; } &&
8344         { ac_try='test -s conftest$ac_exeext'
8345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346  (eval $ac_try) 2>&5
8347  ac_status=$?
8348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349  (exit $ac_status); }; }; then
8350
8351aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8352}'`
8353# Check for a 64-bit object if we didn't find anything.
8354if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8355}'`; fi
8356else
8357  echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360fi
8361rm -f conftest.err conftest.$ac_objext \
8362      conftest$ac_exeext conftest.$ac_ext
8363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8364
8365       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8366        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8367       else
8368        if test "$host_cpu" = ia64; then
8369          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8370          allow_undefined_flag="-z nodefs"
8371          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"
8372        else
8373         # Determine the default libpath from the value encoded in an empty executable.
8374         cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h.  */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h.  */
8380
8381int
8382main ()
8383{
8384
8385  ;
8386  return 0;
8387}
8388_ACEOF
8389rm -f conftest.$ac_objext conftest$ac_exeext
8390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391  (eval $ac_link) 2>conftest.er1
8392  ac_status=$?
8393  grep -v '^ *+' conftest.er1 >conftest.err
8394  rm -f conftest.er1
8395  cat conftest.err >&5
8396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397  (exit $ac_status); } &&
8398         { ac_try='test -z "$ac_c_werror_flag"
8399                         || test ! -s conftest.err'
8400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401  (eval $ac_try) 2>&5
8402  ac_status=$?
8403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404  (exit $ac_status); }; } &&
8405         { ac_try='test -s conftest$ac_exeext'
8406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407  (eval $ac_try) 2>&5
8408  ac_status=$?
8409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410  (exit $ac_status); }; }; then
8411
8412aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8413}'`
8414# Check for a 64-bit object if we didn't find anything.
8415if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8416}'`; fi
8417else
8418  echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421fi
8422rm -f conftest.err conftest.$ac_objext \
8423      conftest$ac_exeext conftest.$ac_ext
8424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8425
8426         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8427          # Warning - without using the other run time loading flags,
8428          # -berok will link without error, but may produce a broken library.
8429          no_undefined_flag=' ${wl}-bernotok'
8430          allow_undefined_flag=' ${wl}-berok'
8431          # Exported symbols can be pulled into shared objects from archives
8432          whole_archive_flag_spec='$convenience'
8433          archive_cmds_need_lc=yes
8434          # This is similar to how AIX traditionally builds its shared libraries.
8435          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'
8436        fi
8437      fi
8438      ;;
8439
8440    amigaos*)
8441      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)'
8442      hardcode_libdir_flag_spec='-L$libdir'
8443      hardcode_minus_L=yes
8444      # see comment about different semantics on the GNU ld section
8445      ld_shlibs=no
8446      ;;
8447
8448    bsdi[45]*)
8449      export_dynamic_flag_spec=-rdynamic
8450      ;;
8451
8452    cygwin* | mingw* | pw32*)
8453      # When not using gcc, we currently assume that we are using
8454      # Microsoft Visual C++.
8455      # hardcode_libdir_flag_spec is actually meaningless, as there is
8456      # no search path for DLLs.
8457      hardcode_libdir_flag_spec=' '
8458      allow_undefined_flag=unsupported
8459      # Tell ltmain to make .lib files, not .a files.
8460      libext=lib
8461      # Tell ltmain to make .dll files, not .so files.
8462      shrext_cmds=".dll"
8463      # FIXME: Setting linknames here is a bad hack.
8464      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8465      # The linker will automatically build a .lib file if we build a DLL.
8466      old_archive_From_new_cmds='true'
8467      # FIXME: Should let the user specify the lib program.
8468      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8469      fix_srcfile_path='`cygpath -w "$srcfile"`'
8470      enable_shared_with_static_runtimes=yes
8471      ;;
8472
8473    darwin* | rhapsody*)
8474      case $host_os in
8475        rhapsody* | darwin1.[012])
8476         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8477         ;;
8478       *) # Darwin 1.3 on
8479         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8480           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8481         else
8482           case ${MACOSX_DEPLOYMENT_TARGET} in
8483             10.[012])
8484               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8485               ;;
8486             10.*)
8487               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8488               ;;
8489           esac
8490         fi
8491         ;;
8492      esac
8493      archive_cmds_need_lc=no
8494      hardcode_direct=no
8495      hardcode_automatic=yes
8496      hardcode_shlibpath_var=unsupported
8497      whole_archive_flag_spec=''
8498      link_all_deplibs=yes
8499    if test "$GCC" = yes ; then
8500        output_verbose_link_cmd='echo'
8501        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8502      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8503      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8504      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8505      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8506    else
8507      case $cc_basename in
8508        xlc*)
8509         output_verbose_link_cmd='echo'
8510         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8511         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8512          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8513         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8514          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8515          ;;
8516       *)
8517         ld_shlibs=no
8518          ;;
8519      esac
8520    fi
8521      ;;
8522
8523    dgux*)
8524      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8525      hardcode_libdir_flag_spec='-L$libdir'
8526      hardcode_shlibpath_var=no
8527      ;;
8528
8529    freebsd1*)
8530      ld_shlibs=no
8531      ;;
8532
8533    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8534    # support.  Future versions do this automatically, but an explicit c++rt0.o
8535    # does not break anything, and helps significantly (at the cost of a little
8536    # extra space).
8537    freebsd2.2*)
8538      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8539      hardcode_libdir_flag_spec='-R$libdir'
8540      hardcode_direct=yes
8541      hardcode_shlibpath_var=no
8542      ;;
8543
8544    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8545    freebsd2*)
8546      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8547      hardcode_direct=yes
8548      hardcode_minus_L=yes
8549      hardcode_shlibpath_var=no
8550      ;;
8551
8552    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8553    freebsd* | kfreebsd*-gnu | dragonfly*)
8554      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8555      hardcode_libdir_flag_spec='-R$libdir'
8556      hardcode_direct=yes
8557      hardcode_shlibpath_var=no
8558      ;;
8559
8560    hpux9*)
8561      if test "$GCC" = yes; then
8562        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'
8563      else
8564        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'
8565      fi
8566      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567      hardcode_libdir_separator=:
8568      hardcode_direct=yes
8569
8570      # hardcode_minus_L: Not really in the search PATH,
8571      # but as the default location of the library.
8572      hardcode_minus_L=yes
8573      export_dynamic_flag_spec='${wl}-E'
8574      ;;
8575
8576    hpux10*)
8577      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8578        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8579      else
8580        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8581      fi
8582      if test "$with_gnu_ld" = no; then
8583        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584        hardcode_libdir_separator=:
8585
8586        hardcode_direct=yes
8587        export_dynamic_flag_spec='${wl}-E'
8588
8589        # hardcode_minus_L: Not really in the search PATH,
8590        # but as the default location of the library.
8591        hardcode_minus_L=yes
8592      fi
8593      ;;
8594
8595    hpux11*)
8596      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8597        case $host_cpu in
8598        hppa*64*)
8599          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8600          ;;
8601        ia64*)
8602          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8603          ;;
8604        *)
8605          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8606          ;;
8607        esac
8608      else
8609        case $host_cpu in
8610        hppa*64*)
8611          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8612          ;;
8613        ia64*)
8614          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8615          ;;
8616        *)
8617          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8618          ;;
8619        esac
8620      fi
8621      if test "$with_gnu_ld" = no; then
8622        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8623        hardcode_libdir_separator=:
8624
8625        case $host_cpu in
8626        hppa*64*|ia64*)
8627          hardcode_libdir_flag_spec_ld='+b $libdir'
8628          hardcode_direct=no
8629          hardcode_shlibpath_var=no
8630          ;;
8631        *)
8632          hardcode_direct=yes
8633          export_dynamic_flag_spec='${wl}-E'
8634
8635          # hardcode_minus_L: Not really in the search PATH,
8636          # but as the default location of the library.
8637          hardcode_minus_L=yes
8638          ;;
8639        esac
8640      fi
8641      ;;
8642
8643    irix5* | irix6* | nonstopux*)
8644      if test "$GCC" = yes; then
8645        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8646      else
8647        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8648        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8649      fi
8650      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8651      hardcode_libdir_separator=:
8652      link_all_deplibs=yes
8653      ;;
8654
8655    netbsd*)
8656      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8657        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8658      else
8659        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8660      fi
8661      hardcode_libdir_flag_spec='-R$libdir'
8662      hardcode_direct=yes
8663      hardcode_shlibpath_var=no
8664      ;;
8665
8666    newsos6)
8667      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668      hardcode_direct=yes
8669      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670      hardcode_libdir_separator=:
8671      hardcode_shlibpath_var=no
8672      ;;
8673
8674    openbsd*)
8675      hardcode_direct=yes
8676      hardcode_shlibpath_var=no
8677      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8678        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8679        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8680        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8681        export_dynamic_flag_spec='${wl}-E'
8682      else
8683       case $host_os in
8684         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8685           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686           hardcode_libdir_flag_spec='-R$libdir'
8687           ;;
8688         *)
8689           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8690           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8691           ;;
8692       esac
8693      fi
8694      ;;
8695
8696    os2*)
8697      hardcode_libdir_flag_spec='-L$libdir'
8698      hardcode_minus_L=yes
8699      allow_undefined_flag=unsupported
8700      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'
8701      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8702      ;;
8703
8704    osf3*)
8705      if test "$GCC" = yes; then
8706        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8708      else
8709        allow_undefined_flag=' -expect_unresolved \*'
8710        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8711      fi
8712      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8713      hardcode_libdir_separator=:
8714      ;;
8715
8716    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8717      if test "$GCC" = yes; then
8718        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8719        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8720        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721      else
8722        allow_undefined_flag=' -expect_unresolved \*'
8723        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8724        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8725        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8726
8727        # Both c and cxx compiler support -rpath directly
8728        hardcode_libdir_flag_spec='-rpath $libdir'
8729      fi
8730      hardcode_libdir_separator=:
8731      ;;
8732
8733    solaris*)
8734      no_undefined_flag=' -z text'
8735      if test "$GCC" = yes; then
8736        wlarc='${wl}'
8737        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8739          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8740      else
8741        wlarc=''
8742        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8744        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8745      fi
8746      hardcode_libdir_flag_spec='-R$libdir'
8747      hardcode_shlibpath_var=no
8748      case $host_os in
8749      solaris2.[0-5] | solaris2.[0-5].*) ;;
8750      *)
8751        # The compiler driver will combine linker options so we
8752        # cannot just pass the convience library names through
8753        # without $wl, iff we do not link with $LD.
8754        # Luckily, gcc supports the same syntax we need for Sun Studio.
8755        # Supported since Solaris 2.6 (maybe 2.5.1?)
8756        case $wlarc in
8757        '')
8758          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8759        *)
8760          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8761        esac ;;
8762      esac
8763      link_all_deplibs=yes
8764      ;;
8765
8766    sunos4*)
8767      if test "x$host_vendor" = xsequent; then
8768        # Use $CC to link under sequent, because it throws in some extra .o
8769        # files that make .init and .fini sections work.
8770        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8771      else
8772        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8773      fi
8774      hardcode_libdir_flag_spec='-L$libdir'
8775      hardcode_direct=yes
8776      hardcode_minus_L=yes
8777      hardcode_shlibpath_var=no
8778      ;;
8779
8780    sysv4)
8781      case $host_vendor in
8782        sni)
8783          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784          hardcode_direct=yes # is this really true???
8785        ;;
8786        siemens)
8787          ## LD is ld it makes a PLAMLIB
8788          ## CC just makes a GrossModule.
8789          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8790          reload_cmds='$CC -r -o $output$reload_objs'
8791          hardcode_direct=no
8792        ;;
8793        motorola)
8794          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8796        ;;
8797      esac
8798      runpath_var='LD_RUN_PATH'
8799      hardcode_shlibpath_var=no
8800      ;;
8801
8802    sysv4.3*)
8803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804      hardcode_shlibpath_var=no
8805      export_dynamic_flag_spec='-Bexport'
8806      ;;
8807
8808    sysv4*MP*)
8809      if test -d /usr/nec; then
8810        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811        hardcode_shlibpath_var=no
8812        runpath_var=LD_RUN_PATH
8813        hardcode_runpath_var=yes
8814        ld_shlibs=yes
8815      fi
8816      ;;
8817
8818    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8819      no_undefined_flag='${wl}-z,text'
8820      archive_cmds_need_lc=no
8821      hardcode_shlibpath_var=no
8822      runpath_var='LD_RUN_PATH'
8823
8824      if test "$GCC" = yes; then
8825        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827      else
8828        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8830      fi
8831      ;;
8832
8833    sysv5* | sco3.2v5* | sco5v6*)
8834      # Note: We can NOT use -z defs as we might desire, because we do not
8835      # link with -lc, and that would cause any symbols used from libc to
8836      # always be unresolved, which means just about no library would
8837      # ever link correctly.  If we're not using GNU ld we use -z text
8838      # though, which does catch some bad symbols but isn't as heavy-handed
8839      # as -z defs.
8840      no_undefined_flag='${wl}-z,text'
8841      allow_undefined_flag='${wl}-z,nodefs'
8842      archive_cmds_need_lc=no
8843      hardcode_shlibpath_var=no
8844      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8845      hardcode_libdir_separator=':'
8846      link_all_deplibs=yes
8847      export_dynamic_flag_spec='${wl}-Bexport'
8848      runpath_var='LD_RUN_PATH'
8849
8850      if test "$GCC" = yes; then
8851        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853      else
8854        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856      fi
8857      ;;
8858
8859    uts4*)
8860      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861      hardcode_libdir_flag_spec='-L$libdir'
8862      hardcode_shlibpath_var=no
8863      ;;
8864
8865    *)
8866      ld_shlibs=no
8867      ;;
8868    esac
8869  fi
8870
8871echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8872echo "${ECHO_T}$ld_shlibs" >&6
8873test "$ld_shlibs" = no && can_build_shared=no
8874
8875#
8876# Do we need to explicitly link libc?
8877#
8878case "x$archive_cmds_need_lc" in
8879x|xyes)
8880  # Assume -lc should be added
8881  archive_cmds_need_lc=yes
8882
8883  if test "$enable_shared" = yes && test "$GCC" = yes; then
8884    case $archive_cmds in
8885    *'~'*)
8886      # FIXME: we may have to deal with multi-command sequences.
8887      ;;
8888    '$CC '*)
8889      # Test whether the compiler implicitly links with -lc since on some
8890      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8891      # to ld, don't add -lc before -lgcc.
8892      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8893echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8894      $rm conftest*
8895      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8896
8897      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898  (eval $ac_compile) 2>&5
8899  ac_status=$?
8900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901  (exit $ac_status); } 2>conftest.err; then
8902        soname=conftest
8903        lib=conftest
8904        libobjs=conftest.$ac_objext
8905        deplibs=
8906        wl=$lt_prog_compiler_wl
8907        pic_flag=$lt_prog_compiler_pic
8908        compiler_flags=-v
8909        linker_flags=-v
8910        verstring=
8911        output_objdir=.
8912        libname=conftest
8913        lt_save_allow_undefined_flag=$allow_undefined_flag
8914        allow_undefined_flag=
8915        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8916  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }
8920        then
8921          archive_cmds_need_lc=no
8922        else
8923          archive_cmds_need_lc=yes
8924        fi
8925        allow_undefined_flag=$lt_save_allow_undefined_flag
8926      else
8927        cat conftest.err 1>&5
8928      fi
8929      $rm conftest*
8930      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8931echo "${ECHO_T}$archive_cmds_need_lc" >&6
8932      ;;
8933    esac
8934  fi
8935  ;;
8936esac
8937
8938echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8939echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8940library_names_spec=
8941libname_spec='lib$name'
8942soname_spec=
8943shrext_cmds=".so"
8944postinstall_cmds=
8945postuninstall_cmds=
8946finish_cmds=
8947finish_eval=
8948shlibpath_var=
8949shlibpath_overrides_runpath=unknown
8950version_type=none
8951dynamic_linker="$host_os ld.so"
8952sys_lib_dlsearch_path_spec="/lib /usr/lib"
8953if test "$GCC" = yes; then
8954  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8955  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8956    # if the path contains ";" then we assume it to be the separator
8957    # otherwise default to the standard path separator (i.e. ":") - it is
8958    # assumed that no part of a normal pathname contains ";" but that should
8959    # okay in the real world where ";" in dirpaths is itself problematic.
8960    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8961  else
8962    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8963  fi
8964else
8965  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8966fi
8967need_lib_prefix=unknown
8968hardcode_into_libs=no
8969
8970# when you set need_version to no, make sure it does not cause -set_version
8971# flags to be left without arguments
8972need_version=unknown
8973
8974case $host_os in
8975aix3*)
8976  version_type=linux
8977  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8978  shlibpath_var=LIBPATH
8979
8980  # AIX 3 has no versioning support, so we append a major version to the name.
8981  soname_spec='${libname}${release}${shared_ext}$major'
8982  ;;
8983
8984aix4* | aix5*)
8985  version_type=linux
8986  need_lib_prefix=no
8987  need_version=no
8988  hardcode_into_libs=yes
8989  if test "$host_cpu" = ia64; then
8990    # AIX 5 supports IA64
8991    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8992    shlibpath_var=LD_LIBRARY_PATH
8993  else
8994    # With GCC up to 2.95.x, collect2 would create an import file
8995    # for dependence libraries.  The import file would start with
8996    # the line `#! .'.  This would cause the generated library to
8997    # depend on `.', always an invalid library.  This was fixed in
8998    # development snapshots of GCC prior to 3.0.
8999    case $host_os in
9000      aix4 | aix4.[01] | aix4.[01].*)
9001      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9002           echo ' yes '
9003           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9004        :
9005      else
9006        can_build_shared=no
9007      fi
9008      ;;
9009    esac
9010    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9011    # soname into executable. Probably we can add versioning support to
9012    # collect2, so additional links can be useful in future.
9013    if test "$aix_use_runtimelinking" = yes; then
9014      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9015      # instead of lib<name>.a to let people know that these are not
9016      # typical AIX shared libraries.
9017      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018    else
9019      # We preserve .a as extension for shared libraries through AIX4.2
9020      # and later when we are not doing run time linking.
9021      library_names_spec='${libname}${release}.a $libname.a'
9022      soname_spec='${libname}${release}${shared_ext}$major'
9023    fi
9024    shlibpath_var=LIBPATH
9025  fi
9026  ;;
9027
9028amigaos*)
9029  library_names_spec='$libname.ixlibrary $libname.a'
9030  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9031  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9032  ;;
9033
9034beos*)
9035  library_names_spec='${libname}${shared_ext}'
9036  dynamic_linker="$host_os ld.so"
9037  shlibpath_var=LIBRARY_PATH
9038  ;;
9039
9040bsdi[45]*)
9041  version_type=linux
9042  need_version=no
9043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044  soname_spec='${libname}${release}${shared_ext}$major'
9045  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9046  shlibpath_var=LD_LIBRARY_PATH
9047  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9048  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9049  # the default ld.so.conf also contains /usr/contrib/lib and
9050  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9051  # libtool to hard-code these into programs
9052  ;;
9053
9054cygwin* | mingw* | pw32*)
9055  version_type=windows
9056  shrext_cmds=".dll"
9057  need_version=no
9058  need_lib_prefix=no
9059
9060  case $GCC,$host_os in
9061  yes,cygwin* | yes,mingw* | yes,pw32*)
9062    library_names_spec='$libname.dll.a'
9063    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9064    postinstall_cmds='base_file=`basename \${file}`~
9065      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9066      dldir=$destdir/`dirname \$dlpath`~
9067      test -d \$dldir || mkdir -p \$dldir~
9068      $install_prog $dir/$dlname \$dldir/$dlname~
9069      chmod a+x \$dldir/$dlname'
9070    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9071      dlpath=$dir/\$dldll~
9072       $rm \$dlpath'
9073    shlibpath_overrides_runpath=yes
9074
9075    case $host_os in
9076    cygwin*)
9077      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9078      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9079      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9080      ;;
9081    mingw*)
9082      # MinGW DLLs use traditional 'lib' prefix
9083      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9084      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9085      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9086        # It is most probably a Windows format PATH printed by
9087        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9088        # path with ; separators, and with drive letters. We can handle the
9089        # drive letters (cygwin fileutils understands them), so leave them,
9090        # especially as we might pass files found there to a mingw objdump,
9091        # which wouldn't understand a cygwinified path. Ahh.
9092        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9093      else
9094        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9095      fi
9096      ;;
9097    pw32*)
9098      # pw32 DLLs use 'pw' prefix rather than 'lib'
9099      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9100      ;;
9101    esac
9102    ;;
9103
9104  *)
9105    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9106    ;;
9107  esac
9108  dynamic_linker='Win32 ld.exe'
9109  # FIXME: first we should search . and the directory the executable is in
9110  shlibpath_var=PATH
9111  ;;
9112
9113darwin* | rhapsody*)
9114  dynamic_linker="$host_os dyld"
9115  version_type=darwin
9116  need_lib_prefix=no
9117  need_version=no
9118  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9119  soname_spec='${libname}${release}${major}$shared_ext'
9120  shlibpath_overrides_runpath=yes
9121  shlibpath_var=DYLD_LIBRARY_PATH
9122  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9123  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9124  if test "$GCC" = yes; then
9125    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9126  else
9127    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9128  fi
9129  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9130  ;;
9131
9132dgux*)
9133  version_type=linux
9134  need_lib_prefix=no
9135  need_version=no
9136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9137  soname_spec='${libname}${release}${shared_ext}$major'
9138  shlibpath_var=LD_LIBRARY_PATH
9139  ;;
9140
9141freebsd1*)
9142  dynamic_linker=no
9143  ;;
9144
9145kfreebsd*-gnu)
9146  version_type=linux
9147  need_lib_prefix=no
9148  need_version=no
9149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150  soname_spec='${libname}${release}${shared_ext}$major'
9151  shlibpath_var=LD_LIBRARY_PATH
9152  shlibpath_overrides_runpath=no
9153  hardcode_into_libs=yes
9154  dynamic_linker='GNU ld.so'
9155  ;;
9156
9157freebsd* | dragonfly*)
9158  # DragonFly does not have aout.  When/if they implement a new
9159  # versioning mechanism, adjust this.
9160  if test -x /usr/bin/objformat; then
9161    objformat=`/usr/bin/objformat`
9162  else
9163    case $host_os in
9164    freebsd[123]*) objformat=aout ;;
9165    *) objformat=elf ;;
9166    esac
9167  fi
9168  version_type=freebsd-$objformat
9169  case $version_type in
9170    freebsd-elf*)
9171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9172      need_version=no
9173      need_lib_prefix=no
9174      ;;
9175    freebsd-*)
9176      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9177      need_version=yes
9178      ;;
9179  esac
9180  shlibpath_var=LD_LIBRARY_PATH
9181  case $host_os in
9182  freebsd2*)
9183    shlibpath_overrides_runpath=yes
9184    ;;
9185  freebsd3.[01]* | freebsdelf3.[01]*)
9186    shlibpath_overrides_runpath=yes
9187    hardcode_into_libs=yes
9188    ;;
9189  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9190  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9191    shlibpath_overrides_runpath=no
9192    hardcode_into_libs=yes
9193    ;;
9194  freebsd*) # from 4.6 on
9195    shlibpath_overrides_runpath=yes
9196    hardcode_into_libs=yes
9197    ;;
9198  esac
9199  ;;
9200
9201gnu*)
9202  version_type=linux
9203  need_lib_prefix=no
9204  need_version=no
9205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9206  soname_spec='${libname}${release}${shared_ext}$major'
9207  shlibpath_var=LD_LIBRARY_PATH
9208  hardcode_into_libs=yes
9209  ;;
9210
9211hpux9* | hpux10* | hpux11*)
9212  # Give a soname corresponding to the major version so that dld.sl refuses to
9213  # link against other versions.
9214  version_type=sunos
9215  need_lib_prefix=no
9216  need_version=no
9217  case $host_cpu in
9218  ia64*)
9219    shrext_cmds='.so'
9220    hardcode_into_libs=yes
9221    dynamic_linker="$host_os dld.so"
9222    shlibpath_var=LD_LIBRARY_PATH
9223    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9224    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225    soname_spec='${libname}${release}${shared_ext}$major'
9226    if test "X$HPUX_IA64_MODE" = X32; then
9227      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9228    else
9229      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9230    fi
9231    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9232    ;;
9233   hppa*64*)
9234     shrext_cmds='.sl'
9235     hardcode_into_libs=yes
9236     dynamic_linker="$host_os dld.sl"
9237     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9238     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240     soname_spec='${libname}${release}${shared_ext}$major'
9241     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9242     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9243     ;;
9244   *)
9245    shrext_cmds='.sl'
9246    dynamic_linker="$host_os dld.sl"
9247    shlibpath_var=SHLIB_PATH
9248    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9249    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250    soname_spec='${libname}${release}${shared_ext}$major'
9251    ;;
9252  esac
9253  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9254  postinstall_cmds='chmod 555 $lib'
9255  ;;
9256
9257interix3*)
9258  version_type=linux
9259  need_lib_prefix=no
9260  need_version=no
9261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9262  soname_spec='${libname}${release}${shared_ext}$major'
9263  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9264  shlibpath_var=LD_LIBRARY_PATH
9265  shlibpath_overrides_runpath=no
9266  hardcode_into_libs=yes
9267  ;;
9268
9269irix5* | irix6* | nonstopux*)
9270  case $host_os in
9271    nonstopux*) version_type=nonstopux ;;
9272    *)
9273        if test "$lt_cv_prog_gnu_ld" = yes; then
9274                version_type=linux
9275        else
9276                version_type=irix
9277        fi ;;
9278  esac
9279  need_lib_prefix=no
9280  need_version=no
9281  soname_spec='${libname}${release}${shared_ext}$major'
9282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9283  case $host_os in
9284  irix5* | nonstopux*)
9285    libsuff= shlibsuff=
9286    ;;
9287  *)
9288    case $LD in # libtool.m4 will add one of these switches to LD
9289    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9290      libsuff= shlibsuff= libmagic=32-bit;;
9291    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9292      libsuff=32 shlibsuff=N32 libmagic=N32;;
9293    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9294      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9295    *) libsuff= shlibsuff= libmagic=never-match;;
9296    esac
9297    ;;
9298  esac
9299  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9300  shlibpath_overrides_runpath=no
9301  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9302  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9303  hardcode_into_libs=yes
9304  ;;
9305
9306# No shared lib support for Linux oldld, aout, or coff.
9307linux*oldld* | linux*aout* | linux*coff*)
9308  dynamic_linker=no
9309  ;;
9310
9311# This must be Linux ELF.
9312linux*)
9313  version_type=linux
9314  need_lib_prefix=no
9315  need_version=no
9316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317  soname_spec='${libname}${release}${shared_ext}$major'
9318  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9319  shlibpath_var=LD_LIBRARY_PATH
9320  shlibpath_overrides_runpath=no
9321  # This implies no fast_install, which is unacceptable.
9322  # Some rework will be needed to allow for fast_install
9323  # before this can be enabled.
9324  hardcode_into_libs=yes
9325
9326  # Append ld.so.conf contents to the search path
9327  if test -f /etc/ld.so.conf; then
9328    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9329    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9330  fi
9331
9332  # We used to test for /lib/ld.so.1 and disable shared libraries on
9333  # powerpc, because MkLinux only supported shared libraries with the
9334  # GNU dynamic linker.  Since this was broken with cross compilers,
9335  # most powerpc-linux boxes support dynamic linking these days and
9336  # people can always --disable-shared, the test was removed, and we
9337  # assume the GNU/Linux dynamic linker is in use.
9338  dynamic_linker='GNU/Linux ld.so'
9339  ;;
9340
9341knetbsd*-gnu)
9342  version_type=linux
9343  need_lib_prefix=no
9344  need_version=no
9345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9346  soname_spec='${libname}${release}${shared_ext}$major'
9347  shlibpath_var=LD_LIBRARY_PATH
9348  shlibpath_overrides_runpath=no
9349  hardcode_into_libs=yes
9350  dynamic_linker='GNU ld.so'
9351  ;;
9352
9353netbsd*)
9354  version_type=sunos
9355  need_lib_prefix=no
9356  need_version=no
9357  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9359    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9360    dynamic_linker='NetBSD (a.out) ld.so'
9361  else
9362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9363    soname_spec='${libname}${release}${shared_ext}$major'
9364    dynamic_linker='NetBSD ld.elf_so'
9365  fi
9366  shlibpath_var=LD_LIBRARY_PATH
9367  shlibpath_overrides_runpath=yes
9368  hardcode_into_libs=yes
9369  ;;
9370
9371newsos6)
9372  version_type=linux
9373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374  shlibpath_var=LD_LIBRARY_PATH
9375  shlibpath_overrides_runpath=yes
9376  ;;
9377
9378nto-qnx*)
9379  version_type=linux
9380  need_lib_prefix=no
9381  need_version=no
9382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383  soname_spec='${libname}${release}${shared_ext}$major'
9384  shlibpath_var=LD_LIBRARY_PATH
9385  shlibpath_overrides_runpath=yes
9386  ;;
9387
9388openbsd*)
9389  version_type=sunos
9390  sys_lib_dlsearch_path_spec="/usr/lib"
9391  need_lib_prefix=no
9392  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9393  case $host_os in
9394    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9395    *)                         need_version=no  ;;
9396  esac
9397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9399  shlibpath_var=LD_LIBRARY_PATH
9400  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9401    case $host_os in
9402      openbsd2.[89] | openbsd2.[89].*)
9403        shlibpath_overrides_runpath=no
9404        ;;
9405      *)
9406        shlibpath_overrides_runpath=yes
9407        ;;
9408      esac
9409  else
9410    shlibpath_overrides_runpath=yes
9411  fi
9412  ;;
9413
9414os2*)
9415  libname_spec='$name'
9416  shrext_cmds=".dll"
9417  need_lib_prefix=no
9418  library_names_spec='$libname${shared_ext} $libname.a'
9419  dynamic_linker='OS/2 ld.exe'
9420  shlibpath_var=LIBPATH
9421  ;;
9422
9423osf3* | osf4* | osf5*)
9424  version_type=osf
9425  need_lib_prefix=no
9426  need_version=no
9427  soname_spec='${libname}${release}${shared_ext}$major'
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429  shlibpath_var=LD_LIBRARY_PATH
9430  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9431  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9432  ;;
9433
9434solaris*)
9435  version_type=linux
9436  need_lib_prefix=no
9437  need_version=no
9438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439  soname_spec='${libname}${release}${shared_ext}$major'
9440  shlibpath_var=LD_LIBRARY_PATH
9441  shlibpath_overrides_runpath=yes
9442  hardcode_into_libs=yes
9443  # ldd complains unless libraries are executable
9444  postinstall_cmds='chmod +x $lib'
9445  ;;
9446
9447sunos4*)
9448  version_type=sunos
9449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9450  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9451  shlibpath_var=LD_LIBRARY_PATH
9452  shlibpath_overrides_runpath=yes
9453  if test "$with_gnu_ld" = yes; then
9454    need_lib_prefix=no
9455  fi
9456  need_version=yes
9457  ;;
9458
9459sysv4 | sysv4.3*)
9460  version_type=linux
9461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462  soname_spec='${libname}${release}${shared_ext}$major'
9463  shlibpath_var=LD_LIBRARY_PATH
9464  case $host_vendor in
9465    sni)
9466      shlibpath_overrides_runpath=no
9467      need_lib_prefix=no
9468      export_dynamic_flag_spec='${wl}-Blargedynsym'
9469      runpath_var=LD_RUN_PATH
9470      ;;
9471    siemens)
9472      need_lib_prefix=no
9473      ;;
9474    motorola)
9475      need_lib_prefix=no
9476      need_version=no
9477      shlibpath_overrides_runpath=no
9478      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9479      ;;
9480  esac
9481  ;;
9482
9483sysv4*MP*)
9484  if test -d /usr/nec ;then
9485    version_type=linux
9486    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9487    soname_spec='$libname${shared_ext}.$major'
9488    shlibpath_var=LD_LIBRARY_PATH
9489  fi
9490  ;;
9491
9492sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9493  version_type=freebsd-elf
9494  need_lib_prefix=no
9495  need_version=no
9496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9497  soname_spec='${libname}${release}${shared_ext}$major'
9498  shlibpath_var=LD_LIBRARY_PATH
9499  hardcode_into_libs=yes
9500  if test "$with_gnu_ld" = yes; then
9501    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9502    shlibpath_overrides_runpath=no
9503  else
9504    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9505    shlibpath_overrides_runpath=yes
9506    case $host_os in
9507      sco3.2v5*)
9508        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9509        ;;
9510    esac
9511  fi
9512  sys_lib_dlsearch_path_spec='/usr/lib'
9513  ;;
9514
9515uts4*)
9516  version_type=linux
9517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518  soname_spec='${libname}${release}${shared_ext}$major'
9519  shlibpath_var=LD_LIBRARY_PATH
9520  ;;
9521
9522*)
9523  dynamic_linker=no
9524  ;;
9525esac
9526echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9527echo "${ECHO_T}$dynamic_linker" >&6
9528test "$dynamic_linker" = no && can_build_shared=no
9529
9530variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9531if test "$GCC" = yes; then
9532  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9533fi
9534
9535echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9536echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9537hardcode_action=
9538if test -n "$hardcode_libdir_flag_spec" || \
9539   test -n "$runpath_var" || \
9540   test "X$hardcode_automatic" = "Xyes" ; then
9541
9542  # We can hardcode non-existant directories.
9543  if test "$hardcode_direct" != no &&
9544     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9545     # have to relink, otherwise we might link with an installed library
9546     # when we should be linking with a yet-to-be-installed one
9547     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9548     test "$hardcode_minus_L" != no; then
9549    # Linking always hardcodes the temporary library directory.
9550    hardcode_action=relink
9551  else
9552    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9553    hardcode_action=immediate
9554  fi
9555else
9556  # We cannot hardcode anything, or else we can only hardcode existing
9557  # directories.
9558  hardcode_action=unsupported
9559fi
9560echo "$as_me:$LINENO: result: $hardcode_action" >&5
9561echo "${ECHO_T}$hardcode_action" >&6
9562
9563if test "$hardcode_action" = relink; then
9564  # Fast installation is not supported
9565  enable_fast_install=no
9566elif test "$shlibpath_overrides_runpath" = yes ||
9567     test "$enable_shared" = no; then
9568  # Fast installation is not necessary
9569  enable_fast_install=needless
9570fi
9571
9572striplib=
9573old_striplib=
9574echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9575echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9576if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9577  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9578  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9579  echo "$as_me:$LINENO: result: yes" >&5
9580echo "${ECHO_T}yes" >&6
9581else
9582# FIXME - insert some real tests, host_os isn't really good enough
9583  case $host_os in
9584   darwin*)
9585       if test -n "$STRIP" ; then
9586         striplib="$STRIP -x"
9587         echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589       else
9590  echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592fi
9593       ;;
9594   *)
9595  echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
9597    ;;
9598  esac
9599fi
9600
9601if test "x$enable_dlopen" != xyes; then
9602  enable_dlopen=unknown
9603  enable_dlopen_self=unknown
9604  enable_dlopen_self_static=unknown
9605else
9606  lt_cv_dlopen=no
9607  lt_cv_dlopen_libs=
9608
9609  case $host_os in
9610  beos*)
9611    lt_cv_dlopen="load_add_on"
9612    lt_cv_dlopen_libs=
9613    lt_cv_dlopen_self=yes
9614    ;;
9615
9616  mingw* | pw32*)
9617    lt_cv_dlopen="LoadLibrary"
9618    lt_cv_dlopen_libs=
9619   ;;
9620
9621  cygwin*)
9622    lt_cv_dlopen="dlopen"
9623    lt_cv_dlopen_libs=
9624   ;;
9625
9626  darwin*)
9627  # if libdl is installed we need to link against it
9628    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9629echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9630if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9631  echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633  ac_check_lib_save_LIBS=$LIBS
9634LIBS="-ldl  $LIBS"
9635cat >conftest.$ac_ext <<_ACEOF
9636/* confdefs.h.  */
9637_ACEOF
9638cat confdefs.h >>conftest.$ac_ext
9639cat >>conftest.$ac_ext <<_ACEOF
9640/* end confdefs.h.  */
9641
9642/* Override any gcc2 internal prototype to avoid an error.  */
9643#ifdef __cplusplus
9644extern "C"
9645#endif
9646/* We use char because int might match the return type of a gcc2
9647   builtin and then its argument prototype would still apply.  */
9648char dlopen ();
9649int
9650main ()
9651{
9652dlopen ();
9653  ;
9654  return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
9658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659  (eval $ac_link) 2>conftest.er1
9660  ac_status=$?
9661  grep -v '^ *+' conftest.er1 >conftest.err
9662  rm -f conftest.er1
9663  cat conftest.err >&5
9664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665  (exit $ac_status); } &&
9666         { ac_try='test -z "$ac_c_werror_flag"
9667                         || test ! -s conftest.err'
9668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669  (eval $ac_try) 2>&5
9670  ac_status=$?
9671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672  (exit $ac_status); }; } &&
9673         { ac_try='test -s conftest$ac_exeext'
9674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675  (eval $ac_try) 2>&5
9676  ac_status=$?
9677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678  (exit $ac_status); }; }; then
9679  ac_cv_lib_dl_dlopen=yes
9680else
9681  echo "$as_me: failed program was:" >&5
9682sed 's/^/| /' conftest.$ac_ext >&5
9683
9684ac_cv_lib_dl_dlopen=no
9685fi
9686rm -f conftest.err conftest.$ac_objext \
9687      conftest$ac_exeext conftest.$ac_ext
9688LIBS=$ac_check_lib_save_LIBS
9689fi
9690echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9691echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9692if test $ac_cv_lib_dl_dlopen = yes; then
9693  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9694else
9695
9696    lt_cv_dlopen="dyld"
9697    lt_cv_dlopen_libs=
9698    lt_cv_dlopen_self=yes
9699
9700fi
9701
9702   ;;
9703
9704  *)
9705    echo "$as_me:$LINENO: checking for shl_load" >&5
9706echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9707if test "${ac_cv_func_shl_load+set}" = set; then
9708  echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710  cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h.  */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h.  */
9716/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9717   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9718#define shl_load innocuous_shl_load
9719
9720/* System header to define __stub macros and hopefully few prototypes,
9721    which can conflict with char shl_load (); below.
9722    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9723    <limits.h> exists even on freestanding compilers.  */
9724
9725#ifdef __STDC__
9726# include <limits.h>
9727#else
9728# include <assert.h>
9729#endif
9730
9731#undef shl_load
9732
9733/* Override any gcc2 internal prototype to avoid an error.  */
9734#ifdef __cplusplus
9735extern "C"
9736{
9737#endif
9738/* We use char because int might match the return type of a gcc2
9739   builtin and then its argument prototype would still apply.  */
9740char shl_load ();
9741/* The GNU C library defines this for functions which it implements
9742    to always fail with ENOSYS.  Some functions are actually named
9743    something starting with __ and the normal name is an alias.  */
9744#if defined (__stub_shl_load) || defined (__stub___shl_load)
9745choke me
9746#else
9747char (*f) () = shl_load;
9748#endif
9749#ifdef __cplusplus
9750}
9751#endif
9752
9753int
9754main ()
9755{
9756return f != shl_load;
9757  ;
9758  return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext conftest$ac_exeext
9762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763  (eval $ac_link) 2>conftest.er1
9764  ac_status=$?
9765  grep -v '^ *+' conftest.er1 >conftest.err
9766  rm -f conftest.er1
9767  cat conftest.err >&5
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); } &&
9770         { ac_try='test -z "$ac_c_werror_flag"
9771                         || test ! -s conftest.err'
9772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773  (eval $ac_try) 2>&5
9774  ac_status=$?
9775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776  (exit $ac_status); }; } &&
9777         { ac_try='test -s conftest$ac_exeext'
9778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779  (eval $ac_try) 2>&5
9780  ac_status=$?
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); }; }; then
9783  ac_cv_func_shl_load=yes
9784else
9785  echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
9788ac_cv_func_shl_load=no
9789fi
9790rm -f conftest.err conftest.$ac_objext \
9791      conftest$ac_exeext conftest.$ac_ext
9792fi
9793echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9794echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9795if test $ac_cv_func_shl_load = yes; then
9796  lt_cv_dlopen="shl_load"
9797else
9798  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9799echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9800if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9801  echo $ECHO_N "(cached) $ECHO_C" >&6
9802else
9803  ac_check_lib_save_LIBS=$LIBS
9804LIBS="-ldld  $LIBS"
9805cat >conftest.$ac_ext <<_ACEOF
9806/* confdefs.h.  */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h.  */
9811
9812/* Override any gcc2 internal prototype to avoid an error.  */
9813#ifdef __cplusplus
9814extern "C"
9815#endif
9816/* We use char because int might match the return type of a gcc2
9817   builtin and then its argument prototype would still apply.  */
9818char shl_load ();
9819int
9820main ()
9821{
9822shl_load ();
9823  ;
9824  return 0;
9825}
9826_ACEOF
9827rm -f conftest.$ac_objext conftest$ac_exeext
9828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829  (eval $ac_link) 2>conftest.er1
9830  ac_status=$?
9831  grep -v '^ *+' conftest.er1 >conftest.err
9832  rm -f conftest.er1
9833  cat conftest.err >&5
9834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835  (exit $ac_status); } &&
9836         { ac_try='test -z "$ac_c_werror_flag"
9837                         || test ! -s conftest.err'
9838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839  (eval $ac_try) 2>&5
9840  ac_status=$?
9841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); }; } &&
9843         { ac_try='test -s conftest$ac_exeext'
9844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845  (eval $ac_try) 2>&5
9846  ac_status=$?
9847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848  (exit $ac_status); }; }; then
9849  ac_cv_lib_dld_shl_load=yes
9850else
9851  echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
9854ac_cv_lib_dld_shl_load=no
9855fi
9856rm -f conftest.err conftest.$ac_objext \
9857      conftest$ac_exeext conftest.$ac_ext
9858LIBS=$ac_check_lib_save_LIBS
9859fi
9860echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9861echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9862if test $ac_cv_lib_dld_shl_load = yes; then
9863  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9864else
9865  echo "$as_me:$LINENO: checking for dlopen" >&5
9866echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9867if test "${ac_cv_func_dlopen+set}" = set; then
9868  echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870  cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9877   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9878#define dlopen innocuous_dlopen
9879
9880/* System header to define __stub macros and hopefully few prototypes,
9881    which can conflict with char dlopen (); below.
9882    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9883    <limits.h> exists even on freestanding compilers.  */
9884
9885#ifdef __STDC__
9886# include <limits.h>
9887#else
9888# include <assert.h>
9889#endif
9890
9891#undef dlopen
9892
9893/* Override any gcc2 internal prototype to avoid an error.  */
9894#ifdef __cplusplus
9895extern "C"
9896{
9897#endif
9898/* We use char because int might match the return type of a gcc2
9899   builtin and then its argument prototype would still apply.  */
9900char dlopen ();
9901/* The GNU C library defines this for functions which it implements
9902    to always fail with ENOSYS.  Some functions are actually named
9903    something starting with __ and the normal name is an alias.  */
9904#if defined (__stub_dlopen) || defined (__stub___dlopen)
9905choke me
9906#else
9907char (*f) () = dlopen;
9908#endif
9909#ifdef __cplusplus
9910}
9911#endif
9912
9913int
9914main ()
9915{
9916return f != dlopen;
9917  ;
9918  return 0;
9919}
9920_ACEOF
9921rm -f conftest.$ac_objext conftest$ac_exeext
9922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923  (eval $ac_link) 2>conftest.er1
9924  ac_status=$?
9925  grep -v '^ *+' conftest.er1 >conftest.err
9926  rm -f conftest.er1
9927  cat conftest.err >&5
9928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929  (exit $ac_status); } &&
9930         { ac_try='test -z "$ac_c_werror_flag"
9931                         || test ! -s conftest.err'
9932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933  (eval $ac_try) 2>&5
9934  ac_status=$?
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); }; } &&
9937         { ac_try='test -s conftest$ac_exeext'
9938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939  (eval $ac_try) 2>&5
9940  ac_status=$?
9941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942  (exit $ac_status); }; }; then
9943  ac_cv_func_dlopen=yes
9944else
9945  echo "$as_me: failed program was:" >&5
9946sed 's/^/| /' conftest.$ac_ext >&5
9947
9948ac_cv_func_dlopen=no
9949fi
9950rm -f conftest.err conftest.$ac_objext \
9951      conftest$ac_exeext conftest.$ac_ext
9952fi
9953echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9954echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9955if test $ac_cv_func_dlopen = yes; then
9956  lt_cv_dlopen="dlopen"
9957else
9958  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9959echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9960if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  ac_check_lib_save_LIBS=$LIBS
9964LIBS="-ldl  $LIBS"
9965cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h.  */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h.  */
9971
9972/* Override any gcc2 internal prototype to avoid an error.  */
9973#ifdef __cplusplus
9974extern "C"
9975#endif
9976/* We use char because int might match the return type of a gcc2
9977   builtin and then its argument prototype would still apply.  */
9978char dlopen ();
9979int
9980main ()
9981{
9982dlopen ();
9983  ;
9984  return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989  (eval $ac_link) 2>conftest.er1
9990  ac_status=$?
9991  grep -v '^ *+' conftest.er1 >conftest.err
9992  rm -f conftest.er1
9993  cat conftest.err >&5
9994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995  (exit $ac_status); } &&
9996         { ac_try='test -z "$ac_c_werror_flag"
9997                         || test ! -s conftest.err'
9998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999  (eval $ac_try) 2>&5
10000  ac_status=$?
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); }; } &&
10003         { ac_try='test -s conftest$ac_exeext'
10004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005  (eval $ac_try) 2>&5
10006  ac_status=$?
10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008  (exit $ac_status); }; }; then
10009  ac_cv_lib_dl_dlopen=yes
10010else
10011  echo "$as_me: failed program was:" >&5
10012sed 's/^/| /' conftest.$ac_ext >&5
10013
10014ac_cv_lib_dl_dlopen=no
10015fi
10016rm -f conftest.err conftest.$ac_objext \
10017      conftest$ac_exeext conftest.$ac_ext
10018LIBS=$ac_check_lib_save_LIBS
10019fi
10020echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10021echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10022if test $ac_cv_lib_dl_dlopen = yes; then
10023  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10024else
10025  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10026echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10027if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10028  echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030  ac_check_lib_save_LIBS=$LIBS
10031LIBS="-lsvld  $LIBS"
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h.  */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h.  */
10038
10039/* Override any gcc2 internal prototype to avoid an error.  */
10040#ifdef __cplusplus
10041extern "C"
10042#endif
10043/* We use char because int might match the return type of a gcc2
10044   builtin and then its argument prototype would still apply.  */
10045char dlopen ();
10046int
10047main ()
10048{
10049dlopen ();
10050  ;
10051  return 0;
10052}
10053_ACEOF
10054rm -f conftest.$ac_objext conftest$ac_exeext
10055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056  (eval $ac_link) 2>conftest.er1
10057  ac_status=$?
10058  grep -v '^ *+' conftest.er1 >conftest.err
10059  rm -f conftest.er1
10060  cat conftest.err >&5
10061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062  (exit $ac_status); } &&
10063         { ac_try='test -z "$ac_c_werror_flag"
10064                         || test ! -s conftest.err'
10065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066  (eval $ac_try) 2>&5
10067  ac_status=$?
10068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069  (exit $ac_status); }; } &&
10070         { ac_try='test -s conftest$ac_exeext'
10071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072  (eval $ac_try) 2>&5
10073  ac_status=$?
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); }; }; then
10076  ac_cv_lib_svld_dlopen=yes
10077else
10078  echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081ac_cv_lib_svld_dlopen=no
10082fi
10083rm -f conftest.err conftest.$ac_objext \
10084      conftest$ac_exeext conftest.$ac_ext
10085LIBS=$ac_check_lib_save_LIBS
10086fi
10087echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10088echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10089if test $ac_cv_lib_svld_dlopen = yes; then
10090  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10091else
10092  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10094if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095  echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097  ac_check_lib_save_LIBS=$LIBS
10098LIBS="-ldld  $LIBS"
10099cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h.  */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h.  */
10105
10106/* Override any gcc2 internal prototype to avoid an error.  */
10107#ifdef __cplusplus
10108extern "C"
10109#endif
10110/* We use char because int might match the return type of a gcc2
10111   builtin and then its argument prototype would still apply.  */
10112char dld_link ();
10113int
10114main ()
10115{
10116dld_link ();
10117  ;
10118  return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext conftest$ac_exeext
10122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123  (eval $ac_link) 2>conftest.er1
10124  ac_status=$?
10125  grep -v '^ *+' conftest.er1 >conftest.err
10126  rm -f conftest.er1
10127  cat conftest.err >&5
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); } &&
10130         { ac_try='test -z "$ac_c_werror_flag"
10131                         || test ! -s conftest.err'
10132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133  (eval $ac_try) 2>&5
10134  ac_status=$?
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); }; } &&
10137         { ac_try='test -s conftest$ac_exeext'
10138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139  (eval $ac_try) 2>&5
10140  ac_status=$?
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); }; }; then
10143  ac_cv_lib_dld_dld_link=yes
10144else
10145  echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
10148ac_cv_lib_dld_dld_link=no
10149fi
10150rm -f conftest.err conftest.$ac_objext \
10151      conftest$ac_exeext conftest.$ac_ext
10152LIBS=$ac_check_lib_save_LIBS
10153fi
10154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10155echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10156if test $ac_cv_lib_dld_dld_link = yes; then
10157  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10158fi
10159
10160
10161fi
10162
10163
10164fi
10165
10166
10167fi
10168
10169
10170fi
10171
10172
10173fi
10174
10175    ;;
10176  esac
10177
10178  if test "x$lt_cv_dlopen" != xno; then
10179    enable_dlopen=yes
10180  else
10181    enable_dlopen=no
10182  fi
10183
10184  case $lt_cv_dlopen in
10185  dlopen)
10186    save_CPPFLAGS="$CPPFLAGS"
10187    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10188
10189    save_LDFLAGS="$LDFLAGS"
10190    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10191
10192    save_LIBS="$LIBS"
10193    LIBS="$lt_cv_dlopen_libs $LIBS"
10194
10195    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10196echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10197if test "${lt_cv_dlopen_self+set}" = set; then
10198  echo $ECHO_N "(cached) $ECHO_C" >&6
10199else
10200          if test "$cross_compiling" = yes; then :
10201  lt_cv_dlopen_self=cross
10202else
10203  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10204  lt_status=$lt_dlunknown
10205  cat > conftest.$ac_ext <<EOF
10206#line 10206 "configure"
10207#include "confdefs.h"
10208
10209#if HAVE_DLFCN_H
10210#include <dlfcn.h>
10211#endif
10212
10213#include <stdio.h>
10214
10215#ifdef RTLD_GLOBAL
10216#  define LT_DLGLOBAL           RTLD_GLOBAL
10217#else
10218#  ifdef DL_GLOBAL
10219#    define LT_DLGLOBAL         DL_GLOBAL
10220#  else
10221#    define LT_DLGLOBAL         0
10222#  endif
10223#endif
10224
10225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10226   find out it does not work in some platform. */
10227#ifndef LT_DLLAZY_OR_NOW
10228#  ifdef RTLD_LAZY
10229#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10230#  else
10231#    ifdef DL_LAZY
10232#      define LT_DLLAZY_OR_NOW          DL_LAZY
10233#    else
10234#      ifdef RTLD_NOW
10235#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10236#      else
10237#        ifdef DL_NOW
10238#          define LT_DLLAZY_OR_NOW      DL_NOW
10239#        else
10240#          define LT_DLLAZY_OR_NOW      0
10241#        endif
10242#      endif
10243#    endif
10244#  endif
10245#endif
10246
10247#ifdef __cplusplus
10248extern "C" void exit (int);
10249#endif
10250
10251void fnord() { int i=42;}
10252int main ()
10253{
10254  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10255  int status = $lt_dlunknown;
10256
10257  if (self)
10258    {
10259      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10260      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10261      /* dlclose (self); */
10262    }
10263  else
10264    puts (dlerror ());
10265
10266    exit (status);
10267}
10268EOF
10269  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10270  (eval $ac_link) 2>&5
10271  ac_status=$?
10272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10274    (./conftest; exit; ) >&5 2>/dev/null
10275    lt_status=$?
10276    case x$lt_status in
10277      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10278      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10279      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10280    esac
10281  else :
10282    # compilation failed
10283    lt_cv_dlopen_self=no
10284  fi
10285fi
10286rm -fr conftest*
10287
10288
10289fi
10290echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10291echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10292
10293    if test "x$lt_cv_dlopen_self" = xyes; then
10294      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10295      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10296echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10297if test "${lt_cv_dlopen_self_static+set}" = set; then
10298  echo $ECHO_N "(cached) $ECHO_C" >&6
10299else
10300          if test "$cross_compiling" = yes; then :
10301  lt_cv_dlopen_self_static=cross
10302else
10303  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10304  lt_status=$lt_dlunknown
10305  cat > conftest.$ac_ext <<EOF
10306#line 10306 "configure"
10307#include "confdefs.h"
10308
10309#if HAVE_DLFCN_H
10310#include <dlfcn.h>
10311#endif
10312
10313#include <stdio.h>
10314
10315#ifdef RTLD_GLOBAL
10316#  define LT_DLGLOBAL           RTLD_GLOBAL
10317#else
10318#  ifdef DL_GLOBAL
10319#    define LT_DLGLOBAL         DL_GLOBAL
10320#  else
10321#    define LT_DLGLOBAL         0
10322#  endif
10323#endif
10324
10325/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10326   find out it does not work in some platform. */
10327#ifndef LT_DLLAZY_OR_NOW
10328#  ifdef RTLD_LAZY
10329#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10330#  else
10331#    ifdef DL_LAZY
10332#      define LT_DLLAZY_OR_NOW          DL_LAZY
10333#    else
10334#      ifdef RTLD_NOW
10335#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10336#      else
10337#        ifdef DL_NOW
10338#          define LT_DLLAZY_OR_NOW      DL_NOW
10339#        else
10340#          define LT_DLLAZY_OR_NOW      0
10341#        endif
10342#      endif
10343#    endif
10344#  endif
10345#endif
10346
10347#ifdef __cplusplus
10348extern "C" void exit (int);
10349#endif
10350
10351void fnord() { int i=42;}
10352int main ()
10353{
10354  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10355  int status = $lt_dlunknown;
10356
10357  if (self)
10358    {
10359      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10360      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10361      /* dlclose (self); */
10362    }
10363  else
10364    puts (dlerror ());
10365
10366    exit (status);
10367}
10368EOF
10369  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370  (eval $ac_link) 2>&5
10371  ac_status=$?
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10374    (./conftest; exit; ) >&5 2>/dev/null
10375    lt_status=$?
10376    case x$lt_status in
10377      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10378      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10379      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10380    esac
10381  else :
10382    # compilation failed
10383    lt_cv_dlopen_self_static=no
10384  fi
10385fi
10386rm -fr conftest*
10387
10388
10389fi
10390echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10391echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10392    fi
10393
10394    CPPFLAGS="$save_CPPFLAGS"
10395    LDFLAGS="$save_LDFLAGS"
10396    LIBS="$save_LIBS"
10397    ;;
10398  esac
10399
10400  case $lt_cv_dlopen_self in
10401  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10402  *) enable_dlopen_self=unknown ;;
10403  esac
10404
10405  case $lt_cv_dlopen_self_static in
10406  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10407  *) enable_dlopen_self_static=unknown ;;
10408  esac
10409fi
10410
10411
10412# Report which library types will actually be built
10413echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10414echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10415echo "$as_me:$LINENO: result: $can_build_shared" >&5
10416echo "${ECHO_T}$can_build_shared" >&6
10417
10418echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10419echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10420test "$can_build_shared" = "no" && enable_shared=no
10421
10422# On AIX, shared libraries and static libraries use the same namespace, and
10423# are all built from PIC.
10424case $host_os in
10425aix3*)
10426  test "$enable_shared" = yes && enable_static=no
10427  if test -n "$RANLIB"; then
10428    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10429    postinstall_cmds='$RANLIB $lib'
10430  fi
10431  ;;
10432
10433aix4* | aix5*)
10434  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10435    test "$enable_shared" = yes && enable_static=no
10436  fi
10437    ;;
10438esac
10439echo "$as_me:$LINENO: result: $enable_shared" >&5
10440echo "${ECHO_T}$enable_shared" >&6
10441
10442echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10443echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10444# Make sure either enable_shared or enable_static is yes.
10445test "$enable_shared" = yes || enable_static=yes
10446echo "$as_me:$LINENO: result: $enable_static" >&5
10447echo "${ECHO_T}$enable_static" >&6
10448
10449# The else clause should only fire when bootstrapping the
10450# libtool distribution, otherwise you forgot to ship ltmain.sh
10451# with your package, and you will get complaints that there are
10452# no rules to generate ltmain.sh.
10453if test -f "$ltmain"; then
10454  # See if we are running on zsh, and set the options which allow our commands through
10455  # without removal of \ escapes.
10456  if test -n "${ZSH_VERSION+set}" ; then
10457    setopt NO_GLOB_SUBST
10458  fi
10459  # Now quote all the things that may contain metacharacters while being
10460  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10461  # variables and quote the copies for generation of the libtool script.
10462  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10463    SED SHELL STRIP \
10464    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10465    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10466    deplibs_check_method reload_flag reload_cmds need_locks \
10467    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10468    lt_cv_sys_global_symbol_to_c_name_address \
10469    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10470    old_postinstall_cmds old_postuninstall_cmds \
10471    compiler \
10472    CC \
10473    LD \
10474    lt_prog_compiler_wl \
10475    lt_prog_compiler_pic \
10476    lt_prog_compiler_static \
10477    lt_prog_compiler_no_builtin_flag \
10478    export_dynamic_flag_spec \
10479    thread_safe_flag_spec \
10480    whole_archive_flag_spec \
10481    enable_shared_with_static_runtimes \
10482    old_archive_cmds \
10483    old_archive_from_new_cmds \
10484    predep_objects \
10485    postdep_objects \
10486    predeps \
10487    postdeps \
10488    compiler_lib_search_path \
10489    archive_cmds \
10490    archive_expsym_cmds \
10491    postinstall_cmds \
10492    postuninstall_cmds \
10493    old_archive_from_expsyms_cmds \
10494    allow_undefined_flag \
10495    no_undefined_flag \
10496    export_symbols_cmds \
10497    hardcode_libdir_flag_spec \
10498    hardcode_libdir_flag_spec_ld \
10499    hardcode_libdir_separator \
10500    hardcode_automatic \
10501    module_cmds \
10502    module_expsym_cmds \
10503    lt_cv_prog_compiler_c_o \
10504    exclude_expsyms \
10505    include_expsyms; do
10506
10507    case $var in
10508    old_archive_cmds | \
10509    old_archive_from_new_cmds | \
10510    archive_cmds | \
10511    archive_expsym_cmds | \
10512    module_cmds | \
10513    module_expsym_cmds | \
10514    old_archive_from_expsyms_cmds | \
10515    export_symbols_cmds | \
10516    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10517    postinstall_cmds | postuninstall_cmds | \
10518    old_postinstall_cmds | old_postuninstall_cmds | \
10519    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10520      # Double-quote double-evaled strings.
10521      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10522      ;;
10523    *)
10524      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10525      ;;
10526    esac
10527  done
10528
10529  case $lt_echo in
10530  *'\$0 --fallback-echo"')
10531    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10532    ;;
10533  esac
10534
10535cfgfile="${ofile}T"
10536  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10537  $rm -f "$cfgfile"
10538  { echo "$as_me:$LINENO: creating $ofile" >&5
10539echo "$as_me: creating $ofile" >&6;}
10540
10541  cat <<__EOF__ >> "$cfgfile"
10542#! $SHELL
10543
10544# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10545# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10546# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10547#
10548# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10549# Free Software Foundation, Inc.
10550#
10551# This file is part of GNU Libtool:
10552# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10553#
10554# This program is free software; you can redistribute it and/or modify
10555# it under the terms of the GNU General Public License as published by
10556# the Free Software Foundation; either version 2 of the License, or
10557# (at your option) any later version.
10558#
10559# This program is distributed in the hope that it will be useful, but
10560# WITHOUT ANY WARRANTY; without even the implied warranty of
10561# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10562# General Public License for more details.
10563#
10564# You should have received a copy of the GNU General Public License
10565# along with this program; if not, write to the Free Software
10566# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10567#
10568# As a special exception to the GNU General Public License, if you
10569# distribute this file as part of a program that contains a
10570# configuration script generated by Autoconf, you may include it under
10571# the same distribution terms that you use for the rest of that program.
10572
10573# A sed program that does not truncate output.
10574SED=$lt_SED
10575
10576# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10577Xsed="$SED -e 1s/^X//"
10578
10579# The HP-UX ksh and POSIX shell print the target directory to stdout
10580# if CDPATH is set.
10581(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10582
10583# The names of the tagged configurations supported by this script.
10584available_tags=
10585
10586# ### BEGIN LIBTOOL CONFIG
10587
10588# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10589
10590# Shell to use when invoking shell scripts.
10591SHELL=$lt_SHELL
10592
10593# Whether or not to build shared libraries.
10594build_libtool_libs=$enable_shared
10595
10596# Whether or not to build static libraries.
10597build_old_libs=$enable_static
10598
10599# Whether or not to add -lc for building shared libraries.
10600build_libtool_need_lc=$archive_cmds_need_lc
10601
10602# Whether or not to disallow shared libs when runtime libs are static
10603allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10604
10605# Whether or not to optimize for fast installation.
10606fast_install=$enable_fast_install
10607
10608# The host system.
10609host_alias=$host_alias
10610host=$host
10611host_os=$host_os
10612
10613# The build system.
10614build_alias=$build_alias
10615build=$build
10616build_os=$build_os
10617
10618# An echo program that does not interpret backslashes.
10619echo=$lt_echo
10620
10621# The archiver.
10622AR=$lt_AR
10623AR_FLAGS=$lt_AR_FLAGS
10624
10625# A C compiler.
10626LTCC=$lt_LTCC
10627
10628# LTCC compiler flags.
10629LTCFLAGS=$lt_LTCFLAGS
10630
10631# A language-specific compiler.
10632CC=$lt_compiler
10633
10634# Is the compiler the GNU C compiler?
10635with_gcc=$GCC
10636
10637# An ERE matcher.
10638EGREP=$lt_EGREP
10639
10640# The linker used to build libraries.
10641LD=$lt_LD
10642
10643# Whether we need hard or soft links.
10644LN_S=$lt_LN_S
10645
10646# A BSD-compatible nm program.
10647NM=$lt_NM
10648
10649# A symbol stripping program
10650STRIP=$lt_STRIP
10651
10652# Used to examine libraries when file_magic_cmd begins "file"
10653MAGIC_CMD=$MAGIC_CMD
10654
10655# Used on cygwin: DLL creation program.
10656DLLTOOL="$DLLTOOL"
10657
10658# Used on cygwin: object dumper.
10659OBJDUMP="$OBJDUMP"
10660
10661# Used on cygwin: assembler.
10662AS="$AS"
10663
10664# The name of the directory that contains temporary libtool files.
10665objdir=$objdir
10666
10667# How to create reloadable object files.
10668reload_flag=$lt_reload_flag
10669reload_cmds=$lt_reload_cmds
10670
10671# How to pass a linker flag through the compiler.
10672wl=$lt_lt_prog_compiler_wl
10673
10674# Object file suffix (normally "o").
10675objext="$ac_objext"
10676
10677# Old archive suffix (normally "a").
10678libext="$libext"
10679
10680# Shared library suffix (normally ".so").
10681shrext_cmds='$shrext_cmds'
10682
10683# Executable file suffix (normally "").
10684exeext="$exeext"
10685
10686# Additional compiler flags for building library objects.
10687pic_flag=$lt_lt_prog_compiler_pic
10688pic_mode=$pic_mode
10689
10690# What is the maximum length of a command?
10691max_cmd_len=$lt_cv_sys_max_cmd_len
10692
10693# Does compiler simultaneously support -c and -o options?
10694compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10695
10696# Must we lock files when doing compilation?
10697need_locks=$lt_need_locks
10698
10699# Do we need the lib prefix for modules?
10700need_lib_prefix=$need_lib_prefix
10701
10702# Do we need a version for libraries?
10703need_version=$need_version
10704
10705# Whether dlopen is supported.
10706dlopen_support=$enable_dlopen
10707
10708# Whether dlopen of programs is supported.
10709dlopen_self=$enable_dlopen_self
10710
10711# Whether dlopen of statically linked programs is supported.
10712dlopen_self_static=$enable_dlopen_self_static
10713
10714# Compiler flag to prevent dynamic linking.
10715link_static_flag=$lt_lt_prog_compiler_static
10716
10717# Compiler flag to turn off builtin functions.
10718no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10719
10720# Compiler flag to allow reflexive dlopens.
10721export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10722
10723# Compiler flag to generate shared objects directly from archives.
10724whole_archive_flag_spec=$lt_whole_archive_flag_spec
10725
10726# Compiler flag to generate thread-safe objects.
10727thread_safe_flag_spec=$lt_thread_safe_flag_spec
10728
10729# Library versioning type.
10730version_type=$version_type
10731
10732# Format of library name prefix.
10733libname_spec=$lt_libname_spec
10734
10735# List of archive names.  First name is the real one, the rest are links.
10736# The last name is the one that the linker finds with -lNAME.
10737library_names_spec=$lt_library_names_spec
10738
10739# The coded name of the library, if different from the real name.
10740soname_spec=$lt_soname_spec
10741
10742# Commands used to build and install an old-style archive.
10743RANLIB=$lt_RANLIB
10744old_archive_cmds=$lt_old_archive_cmds
10745old_postinstall_cmds=$lt_old_postinstall_cmds
10746old_postuninstall_cmds=$lt_old_postuninstall_cmds
10747
10748# Create an old-style archive from a shared archive.
10749old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10750
10751# Create a temporary old-style archive to link instead of a shared archive.
10752old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10753
10754# Commands used to build and install a shared archive.
10755archive_cmds=$lt_archive_cmds
10756archive_expsym_cmds=$lt_archive_expsym_cmds
10757postinstall_cmds=$lt_postinstall_cmds
10758postuninstall_cmds=$lt_postuninstall_cmds
10759
10760# Commands used to build a loadable module (assumed same as above if empty)
10761module_cmds=$lt_module_cmds
10762module_expsym_cmds=$lt_module_expsym_cmds
10763
10764# Commands to strip libraries.
10765old_striplib=$lt_old_striplib
10766striplib=$lt_striplib
10767
10768# Dependencies to place before the objects being linked to create a
10769# shared library.
10770predep_objects=$lt_predep_objects
10771
10772# Dependencies to place after the objects being linked to create a
10773# shared library.
10774postdep_objects=$lt_postdep_objects
10775
10776# Dependencies to place before the objects being linked to create a
10777# shared library.
10778predeps=$lt_predeps
10779
10780# Dependencies to place after the objects being linked to create a
10781# shared library.
10782postdeps=$lt_postdeps
10783
10784# The library search path used internally by the compiler when linking
10785# a shared li