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

Last change on this file since 2495 was 2495, checked in by tkr, 8 years ago

Re-running autotools

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