source: stable/BSPsplit/CoinMP/configure @ 273

Last change on this file since 273 was 273, checked in by andreasw, 10 years ago

a few bugfixes for instdir

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