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

Last change on this file since 3196 was 3196, checked in by stefan, 7 years ago

temporarily committing release candidate

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