source: ThirdParty/SCIP/stable/1.0/configure @ 2420

Last change on this file since 2420 was 2420, checked in by stefan, 10 years ago

sync with trunk rev2419

  • Property svn:executable set to *
File size: 887.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyScip 1.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='1.0'
433PACKAGE_STRING='ThirdPartyScip 1.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="scip/src/scip/scip.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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SCIP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX 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 EGREP LN_S MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE QSOINCDIR QSOLIB COIN_HAS_QSO_TRUE COIN_HAS_QSO_FALSE SCIPLPI_SPX_TRUE SCIPLPI_SPX_FALSE SCIPLPI_CLP_TRUE SCIPLPI_CLP_FALSE SCIPLPI_CPX_TRUE SCIPLPI_CPX_FALSE SCIPLPI_MSK_TRUE SCIPLPI_MSK_FALSE SCIPLPI_XPR_TRUE SCIPLPI_XPR_FALSE SCIPLPI_GRB_TRUE SCIPLPI_GRB_FALSE SCIPLPI_QSO_TRUE SCIPLPI_QSO_FALSE SCIPLPI_NONE_TRUE SCIPLPI_NONE_FALSE IPOPT_LIBS IPOPT_CFLAGS IPOPT_DATA IPOPT_DEPENDENCIES IPOPT_LIBS_INSTALLED IPOPT_CFLAGS_INSTALLED IPOPT_DATA_INSTALLED SCIPLIB_CFLAGS SCIPLIB_LIBS SCIPLIB_PCLIBS SCIPLIB_PCREQUIRES SCIPLIB_DEPENDENCIES SCIPLIB_CFLAGS_INSTALLED SCIPLIB_LIBS_INSTALLED COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CPPAD_LIBS CPPAD_CFLAGS CPPAD_DATA CPPAD_DEPENDENCIES CPPAD_LIBS_INSTALLED CPPAD_CFLAGS_INSTALLED CPPAD_DATA_INSTALLED COIN_HAS_CPPAD_TRUE COIN_HAS_CPPAD_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_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
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip 1.0 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyScip 1.0:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-scip compile project SCIP with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-static[=PKGS]
1092                          build static libraries [default=no]
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --disable-cplex-libcheck
1105                          skip the link check at configuration time
1106  --disable-mosek-libcheck
1107                          skip the link check at configuration time
1108  --disable-xpress-libcheck
1109                          skip the link check at configuration time
1110  --disable-gurobi-libcheck
1111                          skip the link check at configuration time
1112  --disable-qsopt-libcheck
1113                          skip the link check at configuration time
1114  --enable-gnu-packages   compile with GNU packages (disabled by default)
1115
1116Optional Packages:
1117  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1118  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1119  --with-scip-verbosity specify the debug verbosity level for project SCIP
1120  --with-scip-checklevel specify the sanity check level for project SCIP
1121  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1122  --with-pic              try to use only PIC/non-PIC objects [default=use
1123                          both]
1124  --with-tags[=TAGS]
1125                          include additional configurations [automatic]
1126  --with-coin-instdir     prefix of installation directory for precompiled
1127                          COIN packages
1128
1129  --with-soplex-lib linker flags for using package SoPlex
1130  --with-soplex-incdir directory with header files for using package SoPlex
1131  --with-soplex-datadir directory with data files for using package SoPlex
1132  --with-clp-lib linker flags for using package Clp
1133  --with-clp-incdir directory with header files for using package Clp
1134  --with-clp-datadir directory with data files for using package Clp
1135  --with-cplex-incdir specify the header file directory for library Cplex
1136  --with-cplex-lib specify the flags used to link with the library Cplex
1137  --with-mosek-incdir specify the header file directory for library Mosek
1138  --with-mosek-lib specify the flags used to link with the library Mosek
1139  --with-xpress-incdir specify the header file directory for library Xpress
1140  --with-xpress-lib specify the flags used to link with the library Xpress
1141  --with-gurobi-incdir specify the header file directory for library Gurobi
1142  --with-gurobi-lib specify the flags used to link with the library Gurobi
1143  --with-qsopt-incdir specify the header file directory for library QSopt
1144  --with-qsopt-lib specify the flags used to link with the library QSopt
1145  --with-scip-lpsolver    specify LP solver to use in SCIP (soplex, clp,
1146                          cplex, mosek, xpress, gurobi, qsopt, none)
1147  --with-ipopt-lib linker flags for using package Ipopt
1148  --with-ipopt-incdir directory with header files for using package Ipopt
1149  --with-ipopt-datadir directory with data files for using package Ipopt
1150  --with-cppad-lib linker flags for using package CppAD
1151  --with-cppad-incdir directory with header files for using package CppAD
1152  --with-cppad-datadir directory with data files for using package CppAD
1153
1154Some influential environment variables:
1155  CDEFS       Additional -D flags to be used when compiling C code.
1156  ADD_CFLAGS  Additional C compiler options
1157  DBG_CFLAGS  Debug C compiler options
1158  OPT_CFLAGS  Optimize C compiler options
1159  CC          C compiler command
1160  CFLAGS      C compiler flags
1161  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1162              nonstandard directory <lib dir>
1163  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1164              headers in a nonstandard directory <include dir>
1165  MPICC       C MPI Compiler
1166  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1167  ADD_CXXFLAGS
1168              Additional C++ compiler options
1169  DBG_CXXFLAGS
1170              Debug C++ compiler options
1171  OPT_CXXFLAGS
1172              Optimize C++ compiler options
1173  CXX         C++ compiler command
1174  CXXFLAGS    C++ compiler flags
1175  MPICXX      C++ MPI Compiler
1176  CPP         C preprocessor
1177  CXXCPP      C++ preprocessor
1178  F77         Fortran 77 compiler command
1179  FFLAGS      Fortran 77 compiler flags
1180  PKG_CONFIG  path to pkg-config utility
1181
1182Use these variables to override the choices made by `configure' or to help
1183it to find libraries and programs with nonstandard names/locations.
1184
1185Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1186_ACEOF
1187fi
1188
1189if test "$ac_init_help" = "recursive"; then
1190  # If there are subdirs, report their specific --help.
1191  ac_popdir=`pwd`
1192  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1193    test -d $ac_dir || continue
1194    ac_builddir=.
1195
1196if test "$ac_dir" != .; then
1197  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1198  # A "../" for each directory in $ac_dir_suffix.
1199  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1200else
1201  ac_dir_suffix= ac_top_builddir=
1202fi
1203
1204case $srcdir in
1205  .)  # No --srcdir option.  We are building in place.
1206    ac_srcdir=.
1207    if test -z "$ac_top_builddir"; then
1208       ac_top_srcdir=.
1209    else
1210       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1211    fi ;;
1212  [\\/]* | ?:[\\/]* )  # Absolute path.
1213    ac_srcdir=$srcdir$ac_dir_suffix;
1214    ac_top_srcdir=$srcdir ;;
1215  *) # Relative path.
1216    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1217    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1218esac
1219
1220# Do not use `cd foo && pwd` to compute absolute paths, because
1221# the directories may not exist.
1222case `pwd` in
1223.) ac_abs_builddir="$ac_dir";;
1224*)
1225  case "$ac_dir" in
1226  .) ac_abs_builddir=`pwd`;;
1227  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1228  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1229  esac;;
1230esac
1231case $ac_abs_builddir in
1232.) ac_abs_top_builddir=${ac_top_builddir}.;;
1233*)
1234  case ${ac_top_builddir}. in
1235  .) ac_abs_top_builddir=$ac_abs_builddir;;
1236  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1237  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1238  esac;;
1239esac
1240case $ac_abs_builddir in
1241.) ac_abs_srcdir=$ac_srcdir;;
1242*)
1243  case $ac_srcdir in
1244  .) ac_abs_srcdir=$ac_abs_builddir;;
1245  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1246  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1247  esac;;
1248esac
1249case $ac_abs_builddir in
1250.) ac_abs_top_srcdir=$ac_top_srcdir;;
1251*)
1252  case $ac_top_srcdir in
1253  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1255  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1256  esac;;
1257esac
1258
1259    cd $ac_dir
1260    # Check for guested configure; otherwise get Cygnus style configure.
1261    if test -f $ac_srcdir/configure.gnu; then
1262      echo
1263      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1264    elif test -f $ac_srcdir/configure; then
1265      echo
1266      $SHELL $ac_srcdir/configure  --help=recursive
1267    elif test -f $ac_srcdir/configure.ac ||
1268           test -f $ac_srcdir/configure.in; then
1269      echo
1270      $ac_configure --help
1271    else
1272      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1273    fi
1274    cd $ac_popdir
1275  done
1276fi
1277
1278test -n "$ac_init_help" && exit 0
1279if $ac_init_version; then
1280  cat <<\_ACEOF
1281ThirdPartyScip configure 1.0
1282generated by GNU Autoconf 2.59
1283
1284Copyright (C) 2003 Free Software Foundation, Inc.
1285This configure script is free software; the Free Software Foundation
1286gives unlimited permission to copy, distribute and modify it.
1287
1288
1289Copyright 2011 Stefan Vigerske and others.
1290All Rights Reserved.
1291This file is part of the open source package COIN-OR which is distributed
1292under the Eclipse Public License.
1293_ACEOF
1294  exit 0
1295fi
1296exec 5>config.log
1297cat >&5 <<_ACEOF
1298This file contains any messages produced by compilers while
1299running configure, to aid debugging if configure makes a mistake.
1300
1301It was created by ThirdPartyScip $as_me 1.0, which was
1302generated by GNU Autoconf 2.59.  Invocation command line was
1303
1304  $ $0 $@
1305
1306_ACEOF
1307{
1308cat <<_ASUNAME
1309## --------- ##
1310## Platform. ##
1311## --------- ##
1312
1313hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1314uname -m = `(uname -m) 2>/dev/null || echo unknown`
1315uname -r = `(uname -r) 2>/dev/null || echo unknown`
1316uname -s = `(uname -s) 2>/dev/null || echo unknown`
1317uname -v = `(uname -v) 2>/dev/null || echo unknown`
1318
1319/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1320/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1321
1322/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1323/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1324/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1325hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1326/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1327/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1328/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1329
1330_ASUNAME
1331
1332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333for as_dir in $PATH
1334do
1335  IFS=$as_save_IFS
1336  test -z "$as_dir" && as_dir=.
1337  echo "PATH: $as_dir"
1338done
1339
1340} >&5
1341
1342cat >&5 <<_ACEOF
1343
1344
1345## ----------- ##
1346## Core tests. ##
1347## ----------- ##
1348
1349_ACEOF
1350
1351
1352# Keep a trace of the command line.
1353# Strip out --no-create and --no-recursion so they do not pile up.
1354# Strip out --silent because we don't want to record it for future runs.
1355# Also quote any args containing shell meta-characters.
1356# Make two passes to allow for proper duplicate-argument suppression.
1357ac_configure_args=
1358ac_configure_args0=
1359ac_configure_args1=
1360ac_sep=
1361ac_must_keep_next=false
1362for ac_pass in 1 2
1363do
1364  for ac_arg
1365  do
1366    case $ac_arg in
1367    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1368    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1369    | -silent | --silent | --silen | --sile | --sil)
1370      continue ;;
1371    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1372      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1373    esac
1374    case $ac_pass in
1375    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1376    2)
1377      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1378      if test $ac_must_keep_next = true; then
1379        ac_must_keep_next=false # Got value, back to normal.
1380      else
1381        case $ac_arg in
1382          *=* | --config-cache | -C | -disable-* | --disable-* \
1383          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1384          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1385          | -with-* | --with-* | -without-* | --without-* | --x)
1386            case "$ac_configure_args0 " in
1387              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1388            esac
1389            ;;
1390          -* ) ac_must_keep_next=true ;;
1391        esac
1392      fi
1393      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1394      # Get rid of the leading space.
1395      ac_sep=" "
1396      ;;
1397    esac
1398  done
1399done
1400$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1401$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1402
1403# When interrupted or exit'd, cleanup temporary files, and complete
1404# config.log.  We remove comments because anyway the quotes in there
1405# would cause problems or look ugly.
1406# WARNING: Be sure not to use single quotes in there, as some shells,
1407# such as our DU 5.0 friend, will then `close' the trap.
1408trap 'exit_status=$?
1409  # Save into config.log some information that might help in debugging.
1410  {
1411    echo
1412
1413    cat <<\_ASBOX
1414## ---------------- ##
1415## Cache variables. ##
1416## ---------------- ##
1417_ASBOX
1418    echo
1419    # The following way of writing the cache mishandles newlines in values,
1420{
1421  (set) 2>&1 |
1422    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1423    *ac_space=\ *)
1424      sed -n \
1425        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1426          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1427      ;;
1428    *)
1429      sed -n \
1430        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1431      ;;
1432    esac;
1433}
1434    echo
1435
1436    cat <<\_ASBOX
1437## ----------------- ##
1438## Output variables. ##
1439## ----------------- ##
1440_ASBOX
1441    echo
1442    for ac_var in $ac_subst_vars
1443    do
1444      eval ac_val=$`echo $ac_var`
1445      echo "$ac_var='"'"'$ac_val'"'"'"
1446    done | sort
1447    echo
1448
1449    if test -n "$ac_subst_files"; then
1450      cat <<\_ASBOX
1451## ------------- ##
1452## Output files. ##
1453## ------------- ##
1454_ASBOX
1455      echo
1456      for ac_var in $ac_subst_files
1457      do
1458        eval ac_val=$`echo $ac_var`
1459        echo "$ac_var='"'"'$ac_val'"'"'"
1460      done | sort
1461      echo
1462    fi
1463
1464    if test -s confdefs.h; then
1465      cat <<\_ASBOX
1466## ----------- ##
1467## confdefs.h. ##
1468## ----------- ##
1469_ASBOX
1470      echo
1471      sed "/^$/d" confdefs.h | sort
1472      echo
1473    fi
1474    test "$ac_signal" != 0 &&
1475      echo "$as_me: caught signal $ac_signal"
1476    echo "$as_me: exit $exit_status"
1477  } >&5
1478  rm -f core *.core &&
1479  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1480    exit $exit_status
1481     ' 0
1482for ac_signal in 1 2 13 15; do
1483  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1484done
1485ac_signal=0
1486
1487# confdefs.h avoids OS command line length limits that DEFS can exceed.
1488rm -rf conftest* confdefs.h
1489# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1490echo >confdefs.h
1491
1492# Predefined preprocessor variables.
1493
1494cat >>confdefs.h <<_ACEOF
1495#define PACKAGE_NAME "$PACKAGE_NAME"
1496_ACEOF
1497
1498
1499cat >>confdefs.h <<_ACEOF
1500#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1501_ACEOF
1502
1503
1504cat >>confdefs.h <<_ACEOF
1505#define PACKAGE_VERSION "$PACKAGE_VERSION"
1506_ACEOF
1507
1508
1509cat >>confdefs.h <<_ACEOF
1510#define PACKAGE_STRING "$PACKAGE_STRING"
1511_ACEOF
1512
1513
1514cat >>confdefs.h <<_ACEOF
1515#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1516_ACEOF
1517
1518
1519# Let the site file select an alternate cache file if it wants to.
1520# Prefer explicitly selected file to automatically selected ones.
1521if test -z "$CONFIG_SITE"; then
1522  if test "x$prefix" != xNONE; then
1523    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1524  else
1525    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1526  fi
1527fi
1528for ac_site_file in $CONFIG_SITE; do
1529  if test -r "$ac_site_file"; then
1530    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1531echo "$as_me: loading site script $ac_site_file" >&6;}
1532    sed 's/^/| /' "$ac_site_file" >&5
1533    . "$ac_site_file"
1534  fi
1535done
1536
1537if test -r "$cache_file"; then
1538  # Some versions of bash will fail to source /dev/null (special
1539  # files actually), so we avoid doing that.
1540  if test -f "$cache_file"; then
1541    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1542echo "$as_me: loading cache $cache_file" >&6;}
1543    case $cache_file in
1544      [\\/]* | ?:[\\/]* ) . $cache_file;;
1545      *)                      . ./$cache_file;;
1546    esac
1547  fi
1548else
1549  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1550echo "$as_me: creating cache $cache_file" >&6;}
1551  >$cache_file
1552fi
1553
1554# Check that the precious variables saved in the cache have kept the same
1555# value.
1556ac_cache_corrupted=false
1557for ac_var in `(set) 2>&1 |
1558               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1559  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1560  eval ac_new_set=\$ac_env_${ac_var}_set
1561  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1562  eval ac_new_val="\$ac_env_${ac_var}_value"
1563  case $ac_old_set,$ac_new_set in
1564    set,)
1565      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1566echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1567      ac_cache_corrupted=: ;;
1568    ,set)
1569      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1570echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1571      ac_cache_corrupted=: ;;
1572    ,);;
1573    *)
1574      if test "x$ac_old_val" != "x$ac_new_val"; then
1575        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1576echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1577        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1578echo "$as_me:   former value:  $ac_old_val" >&2;}
1579        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1580echo "$as_me:   current value: $ac_new_val" >&2;}
1581        ac_cache_corrupted=:
1582      fi;;
1583  esac
1584  # Pass precious variables to config.status.
1585  if test "$ac_new_set" = set; then
1586    case $ac_new_val in
1587    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1588      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1589    *) ac_arg=$ac_var=$ac_new_val ;;
1590    esac
1591    case " $ac_configure_args " in
1592      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1593      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1594    esac
1595  fi
1596done
1597if $ac_cache_corrupted; then
1598  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1599echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1600  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1601echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1602   { (exit 1); exit 1; }; }
1603fi
1604
1605ac_ext=c
1606ac_cpp='$CPP $CPPFLAGS'
1607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1609ac_compiler_gnu=$ac_cv_c_compiler_gnu
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640# List one file in the package so that the configure script can test
1641# whether the package is actually there
1642
1643
1644# Where should everything be installed by default?  Here, we want it
1645# to be installed directly in 'bin', 'lib', 'include' subdirectories
1646# of the directory where configure is run.  The default would be
1647# /usr/local.
1648
1649
1650
1651# As backup, we make sure we don't loose an FLIBS if it has been set
1652# by the user
1653save_FLIBS="$FLIBS"
1654
1655# A useful makefile conditional that is always false
1656
1657
1658if false; then
1659  ALWAYS_FALSE_TRUE=
1660  ALWAYS_FALSE_FALSE='#'
1661else
1662  ALWAYS_FALSE_TRUE='#'
1663  ALWAYS_FALSE_FALSE=
1664fi
1665
1666
1667# We set the following variable so that we know later in AC_COIN_FINALIZE
1668# that we are in a project main directory
1669coin_projectdir=yes
1670
1671# Set the project's version numbers
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define SCIP_VERSION "$PACKAGE_VERSION"
1676_ACEOF
1677
1678
1679  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1680  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1681  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1682  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1683  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1684  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1685
1686cat >>confdefs.h <<_ACEOF
1687#define SCIP_VERSION_MAJOR $coin_majorver
1688_ACEOF
1689
1690
1691cat >>confdefs.h <<_ACEOF
1692#define SCIP_VERSION_MINOR $coin_minorver
1693_ACEOF
1694
1695
1696cat >>confdefs.h <<_ACEOF
1697#define SCIP_VERSION_RELEASE $coin_releasever
1698_ACEOF
1699
1700
1701  # We use the following variable to have a string with the upper case
1702  # version of the project name
1703  COIN_PRJCT=SCIP
1704
1705  # Set the project's SVN revision number. The complicated sed expression
1706  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1707  # as a single number.
1708  # Extract the first word of "svnversion", so it can be a program name with args.
1709set dummy svnversion; ac_word=$2
1710echo "$as_me:$LINENO: checking for $ac_word" >&5
1711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712if test "${ac_cv_prog_have_svnversion+set}" = set; then
1713  echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715  if test -n "$have_svnversion"; then
1716  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1717else
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721  IFS=$as_save_IFS
1722  test -z "$as_dir" && as_dir=.
1723  for ac_exec_ext in '' $ac_executable_extensions; do
1724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725    ac_cv_prog_have_svnversion="yes"
1726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727    break 2
1728  fi
1729done
1730done
1731
1732  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1733fi
1734fi
1735have_svnversion=$ac_cv_prog_have_svnversion
1736if test -n "$have_svnversion"; then
1737  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1738echo "${ECHO_T}$have_svnversion" >&6
1739else
1740  echo "$as_me:$LINENO: result: no" >&5
1741echo "${ECHO_T}no" >&6
1742fi
1743
1744  if test "x$have_svnversion" = xyes; then
1745
1746    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1747    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1748      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1749
1750cat >>confdefs.h <<_ACEOF
1751#define SCIP_SVN_REV $SCIP_SVN_REV
1752_ACEOF
1753
1754    fi
1755  fi
1756
1757
1758
1759# Capture libtool library version, if given.
1760
1761
1762
1763
1764#############################################################################
1765#                         Standard build tool stuff                         #
1766#############################################################################
1767
1768# Get the system type
1769ac_aux_dir=
1770for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1771  if test -f $ac_dir/install-sh; then
1772    ac_aux_dir=$ac_dir
1773    ac_install_sh="$ac_aux_dir/install-sh -c"
1774    break
1775  elif test -f $ac_dir/install.sh; then
1776    ac_aux_dir=$ac_dir
1777    ac_install_sh="$ac_aux_dir/install.sh -c"
1778    break
1779  elif test -f $ac_dir/shtool; then
1780    ac_aux_dir=$ac_dir
1781    ac_install_sh="$ac_aux_dir/shtool install -c"
1782    break
1783  fi
1784done
1785if test -z "$ac_aux_dir"; then
1786  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1787echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1788   { (exit 1); exit 1; }; }
1789fi
1790ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1791ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1792ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1793
1794# Make sure we can run config.sub.
1795$ac_config_sub sun4 >/dev/null 2>&1 ||
1796  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1797echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1798   { (exit 1); exit 1; }; }
1799
1800echo "$as_me:$LINENO: checking build system type" >&5
1801echo $ECHO_N "checking build system type... $ECHO_C" >&6
1802if test "${ac_cv_build+set}" = set; then
1803  echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805  ac_cv_build_alias=$build_alias
1806test -z "$ac_cv_build_alias" &&
1807  ac_cv_build_alias=`$ac_config_guess`
1808test -z "$ac_cv_build_alias" &&
1809  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1810echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1811   { (exit 1); exit 1; }; }
1812ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1813  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1814echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1815   { (exit 1); exit 1; }; }
1816
1817fi
1818echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1819echo "${ECHO_T}$ac_cv_build" >&6
1820build=$ac_cv_build
1821build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1822build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1823build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1824
1825
1826
1827# Check if user wants to produce debugging code
1828
1829echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1830echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1831
1832# Check whether --enable-debug or --disable-debug was given.
1833if test "${enable_debug+set}" = set; then
1834  enableval="$enable_debug"
1835  case "${enableval}" in
1836   yes) coin_debug_compile=true
1837        if test "${enable_shared+set}" = set; then :; else
1838          enable_shared=no
1839        fi
1840        ;;
1841   no)  coin_debug_compile=false
1842        ;;
1843   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1844echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1845   { (exit 1); exit 1; }; }
1846        ;;
1847esac
1848else
1849  coin_debug_compile=false
1850fi;
1851
1852# Check whether --enable-debug-scip or --disable-debug-scip was given.
1853if test "${enable_debug_scip+set}" = set; then
1854  enableval="$enable_debug_scip"
1855  case "${enableval}" in
1856    yes) coin_debug_compile=true
1857         ;;
1858    no)  coin_debug_compile=false
1859         ;;
1860    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1861echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1862   { (exit 1); exit 1; }; }
1863         ;;
1864 esac
1865else
1866  :
1867fi;
1868
1869 # m4_ifvaln([SCIP],
1870
1871if test $coin_debug_compile = true; then
1872  echo "$as_me:$LINENO: result: yes" >&5
1873echo "${ECHO_T}yes" >&6
1874else
1875  echo "$as_me:$LINENO: result: no" >&5
1876echo "${ECHO_T}no" >&6
1877fi
1878
1879
1880# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1881if test "${with_scip_verbosity+set}" = set; then
1882  withval="$with_scip_verbosity"
1883  if test "$withval" = yes; then
1884                withval=1
1885              fi
1886              coin_scip_verbosity=$withval
1887else
1888  coin_scip_verbosity=0
1889fi;
1890
1891cat >>confdefs.h <<_ACEOF
1892#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1893_ACEOF
1894
1895
1896
1897# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1898if test "${with_scip_checklevel+set}" = set; then
1899  withval="$with_scip_checklevel"
1900  if test "$withval" = yes; then
1901                withval=1
1902              fi
1903              coin_scip_checklevel=$withval
1904else
1905  coin_scip_checklevel=0
1906fi;
1907
1908cat >>confdefs.h <<_ACEOF
1909#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1910_ACEOF
1911
1912
1913 # m4_ifvaln([SCIP],
1914
1915
1916
1917# Get the name of the C compiler and appropriate compiler options
1918case $build in
1919  *-mingw*)
1920    if test "${LD+set}" = set; then :; else
1921      LD=link
1922    fi
1923    ;;
1924 esac
1925 case $enable_doscompile in
1926   msvc)
1927     if test "x${LD+set}" = xset; then :; else
1928       LD=link
1929     fi
1930     ;;
1931 esac
1932
1933
1934 # Check whether --enable-doscompile or --disable-doscompile was given.
1935if test "${enable_doscompile+set}" = set; then
1936  enableval="$enable_doscompile"
1937  if test "$enable_doscompile" != no; then
1938     case $build in
1939       *-cygwin* | *-mingw*) ;;
1940       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1941echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1942   { (exit 1); exit 1; }; } ;;
1943     esac
1944   fi
1945else
1946  enable_doscompile=no
1947fi;
1948 case "$enable_doscompile" in
1949   mingw)
1950     case $build in
1951       *-mingw*) enable_doscompile=no ;;
1952     esac
1953     ;;
1954   msvc|no) ;;
1955   yes) enable_doscompile=mingw ;;
1956   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1957                    Try configure --help=recursive." >&5
1958echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1959                    Try configure --help=recursive." >&2;}
1960   { (exit 1); exit 1; }; }
1961      ;;
1962  esac
1963  if test "$enable_doscompile" != no ; then
1964    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1965echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1966  fi
1967
1968
1969
1970
1971ac_ext=c
1972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976
1977
1978# For consistency, we set the C compiler to the same value of the C++
1979# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1980if test x"$CXX" != x; then
1981  case "$CXX" in
1982    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1983      if test x"$CC" = x; then
1984        CC="$CXX"
1985        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1986echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1987      fi
1988      ;;
1989  esac
1990fi
1991
1992
1993
1994
1995
1996
1997coin_has_cc=yes
1998
1999save_cflags="$CFLAGS"
2000
2001# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2002# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2003# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2004# compiler. In this case, put cc after gcc.
2005
2006case $build in
2007  *-cygwin* | *-mingw*)
2008             if test "$enable_doscompile" = msvc ; then
2009               comps="icl cl"
2010             else
2011               comps="gcc cl"
2012             fi ;;
2013  *-*-solaris*)
2014             # Extract the first word of "cc", so it can be a program name with args.
2015set dummy cc; ac_word=$2
2016echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2019  echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021  if test -n "$sol_cc_compiler"; then
2022  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2023else
2024  ac_prog_rejected=no
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028  IFS=$as_save_IFS
2029  test -z "$as_dir" && as_dir=.
2030  for ac_exec_ext in '' $ac_executable_extensions; do
2031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2033       ac_prog_rejected=yes
2034       continue
2035     fi
2036    ac_cv_prog_sol_cc_compiler="cc"
2037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038    break 2
2039  fi
2040done
2041done
2042
2043if test $ac_prog_rejected = yes; then
2044  # We found a bogon in the path, so make sure we never use it.
2045  set dummy $ac_cv_prog_sol_cc_compiler
2046  shift
2047  if test $# != 0; then
2048    # We chose a different compiler from the bogus one.
2049    # However, it has the same basename, so the bogon will be chosen
2050    # first if we set sol_cc_compiler to just the basename; use the full file name.
2051    shift
2052    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2053  fi
2054fi
2055fi
2056fi
2057sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2058if test -n "$sol_cc_compiler"; then
2059  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2060echo "${ECHO_T}$sol_cc_compiler" >&6
2061else
2062  echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066             if test "$sol_cc_compiler" = "cc" ; then
2067               comps="cc xlc gcc pgcc icc"
2068             else
2069               comps="xlc gcc pgcc icc cc"
2070             fi
2071             ;;
2072  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2073  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2074  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2075esac
2076
2077# We delete the cached value, since the test might not have been
2078# performed with our choice of compilers earlier
2079$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2080# AC_MSG_NOTICE([C compiler candidates: $comps])
2081ac_ext=c
2082ac_cpp='$CPP $CPPFLAGS'
2083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086if test -n "$ac_tool_prefix"; then
2087  for ac_prog in $comps
2088  do
2089    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091echo "$as_me:$LINENO: checking for $ac_word" >&5
2092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093if test "${ac_cv_prog_CC+set}" = set; then
2094  echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096  if test -n "$CC"; then
2097  ac_cv_prog_CC="$CC" # Let the user override the test.
2098else
2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102  IFS=$as_save_IFS
2103  test -z "$as_dir" && as_dir=.
2104  for ac_exec_ext in '' $ac_executable_extensions; do
2105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108    break 2
2109  fi
2110done
2111done
2112
2113fi
2114fi
2115CC=$ac_cv_prog_CC
2116if test -n "$CC"; then
2117  echo "$as_me:$LINENO: result: $CC" >&5
2118echo "${ECHO_T}$CC" >&6
2119else
2120  echo "$as_me:$LINENO: result: no" >&5
2121echo "${ECHO_T}no" >&6
2122fi
2123
2124    test -n "$CC" && break
2125  done
2126fi
2127if test -z "$CC"; then
2128  ac_ct_CC=$CC
2129  for ac_prog in $comps
2130do
2131  # Extract the first word of "$ac_prog", so it can be a program name with args.
2132set dummy $ac_prog; ac_word=$2
2133echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136  echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138  if test -n "$ac_ct_CC"; then
2139  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140else
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144  IFS=$as_save_IFS
2145  test -z "$as_dir" && as_dir=.
2146  for ac_exec_ext in '' $ac_executable_extensions; do
2147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148    ac_cv_prog_ac_ct_CC="$ac_prog"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155fi
2156fi
2157ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158if test -n "$ac_ct_CC"; then
2159  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160echo "${ECHO_T}$ac_ct_CC" >&6
2161else
2162  echo "$as_me:$LINENO: result: no" >&5
2163echo "${ECHO_T}no" >&6
2164fi
2165
2166  test -n "$ac_ct_CC" && break
2167done
2168
2169  CC=$ac_ct_CC
2170fi
2171
2172
2173test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2174See \`config.log' for more details." >&5
2175echo "$as_me: error: no acceptable C compiler found in \$PATH
2176See \`config.log' for more details." >&2;}
2177   { (exit 1); exit 1; }; }
2178
2179# Provide some information about the compiler.
2180echo "$as_me:$LINENO:" \
2181     "checking for C compiler version" >&5
2182ac_compiler=`set X $ac_compile; echo $2`
2183{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2184  (eval $ac_compiler --version </dev/null >&5) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }
2188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2189  (eval $ac_compiler -v </dev/null >&5) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }
2193{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2194  (eval $ac_compiler -V </dev/null >&5) 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }
2198
2199cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h.  */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h.  */
2205
2206int
2207main ()
2208{
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214ac_clean_files_save=$ac_clean_files
2215ac_clean_files="$ac_clean_files a.out a.exe b.out"
2216# Try to create an executable without -o first, disregard a.out.
2217# It will help us diagnose broken compilers, and finding out an intuition
2218# of exeext.
2219echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2220echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2221ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2222if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2223  (eval $ac_link_default) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }; then
2227  # Find the output, starting from the most likely.  This scheme is
2228# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2229# resort.
2230
2231# Be careful to initialize this variable, since it used to be cached.
2232# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2233ac_cv_exeext=
2234# b.out is created by i960 compilers.
2235for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2236do
2237  test -f "$ac_file" || continue
2238  case $ac_file in
2239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2240        ;;
2241    conftest.$ac_ext )
2242        # This is the source file.
2243        ;;
2244    [ab].out )
2245        # We found the default executable, but exeext='' is most
2246        # certainly right.
2247        break;;
2248    *.* )
2249        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2250        # FIXME: I believe we export ac_cv_exeext for Libtool,
2251        # but it would be cool to find out if it's true.  Does anybody
2252        # maintain Libtool? --akim.
2253        export ac_cv_exeext
2254        break;;
2255    * )
2256        break;;
2257  esac
2258done
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2264See \`config.log' for more details." >&5
2265echo "$as_me: error: C compiler cannot create executables
2266See \`config.log' for more details." >&2;}
2267   { (exit 77); exit 77; }; }
2268fi
2269
2270ac_exeext=$ac_cv_exeext
2271echo "$as_me:$LINENO: result: $ac_file" >&5
2272echo "${ECHO_T}$ac_file" >&6
2273
2274# Check the compiler produces executables we can run.  If not, either
2275# the compiler is broken, or we cross compile.
2276echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2277echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2278# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2279# If not cross compiling, check that we can run a simple program.
2280if test "$cross_compiling" != yes; then
2281  if { ac_try='./$ac_file'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; }; then
2287    cross_compiling=no
2288  else
2289    if test "$cross_compiling" = maybe; then
2290        cross_compiling=yes
2291    else
2292        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2293If you meant to cross compile, use \`--host'.
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot run C compiled programs.
2296If you meant to cross compile, use \`--host'.
2297See \`config.log' for more details." >&2;}
2298   { (exit 1); exit 1; }; }
2299    fi
2300  fi
2301fi
2302echo "$as_me:$LINENO: result: yes" >&5
2303echo "${ECHO_T}yes" >&6
2304
2305rm -f a.out a.exe conftest$ac_cv_exeext b.out
2306ac_clean_files=$ac_clean_files_save
2307# Check the compiler produces executables we can run.  If not, either
2308# the compiler is broken, or we cross compile.
2309echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2310echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2311echo "$as_me:$LINENO: result: $cross_compiling" >&5
2312echo "${ECHO_T}$cross_compiling" >&6
2313
2314echo "$as_me:$LINENO: checking for suffix of executables" >&5
2315echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2317  (eval $ac_link) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }; then
2321  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2322# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2323# work properly (i.e., refer to `conftest.exe'), while it won't with
2324# `rm'.
2325for ac_file in conftest.exe conftest conftest.*; do
2326  test -f "$ac_file" || continue
2327  case $ac_file in
2328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2329    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330          export ac_cv_exeext
2331          break;;
2332    * ) break;;
2333  esac
2334done
2335else
2336  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339See \`config.log' for more details." >&2;}
2340   { (exit 1); exit 1; }; }
2341fi
2342
2343rm -f conftest$ac_cv_exeext
2344echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345echo "${ECHO_T}$ac_cv_exeext" >&6
2346
2347rm -f conftest.$ac_ext
2348EXEEXT=$ac_cv_exeext
2349ac_exeext=$EXEEXT
2350echo "$as_me:$LINENO: checking for suffix of object files" >&5
2351echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2352if test "${ac_cv_objext+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370rm -f conftest.o conftest.obj
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372  (eval $ac_compile) 2>&5
2373  ac_status=$?
2374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375  (exit $ac_status); }; then
2376  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2377  case $ac_file in
2378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2379    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2380       break;;
2381  esac
2382done
2383else
2384  echo "$as_me: failed program was:" >&5
2385sed 's/^/| /' conftest.$ac_ext >&5
2386
2387{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388See \`config.log' for more details." >&5
2389echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390See \`config.log' for more details." >&2;}
2391   { (exit 1); exit 1; }; }
2392fi
2393
2394rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395fi
2396echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397echo "${ECHO_T}$ac_cv_objext" >&6
2398OBJEXT=$ac_cv_objext
2399ac_objext=$OBJEXT
2400echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2402if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h.  */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h.  */
2411
2412int
2413main ()
2414{
2415#ifndef __GNUC__
2416       choke me
2417#endif
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423rm -f conftest.$ac_objext
2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425  (eval $ac_compile) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } &&
2432         { ac_try='test -z "$ac_c_werror_flag"
2433                         || test ! -s conftest.err'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; } &&
2439         { ac_try='test -s conftest.$ac_objext'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; }; then
2445  ac_compiler_gnu=yes
2446else
2447  echo "$as_me: failed program was:" >&5
2448sed 's/^/| /' conftest.$ac_ext >&5
2449
2450ac_compiler_gnu=no
2451fi
2452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455fi
2456echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2458GCC=`test $ac_compiler_gnu = yes && echo yes`
2459ac_test_CFLAGS=${CFLAGS+set}
2460ac_save_CFLAGS=$CFLAGS
2461CFLAGS="-g"
2462echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2463echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2464if test "${ac_cv_prog_cc_g+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  cat >conftest.$ac_ext <<_ACEOF
2468/* confdefs.h.  */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h.  */
2473
2474int
2475main ()
2476{
2477
2478  ;
2479  return 0;
2480}
2481_ACEOF
2482rm -f conftest.$ac_objext
2483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484  (eval $ac_compile) 2>conftest.er1
2485  ac_status=$?
2486  grep -v '^ *+' conftest.er1 >conftest.err
2487  rm -f conftest.er1
2488  cat conftest.err >&5
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); } &&
2491         { ac_try='test -z "$ac_c_werror_flag"
2492                         || test ! -s conftest.err'
2493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494  (eval $ac_try) 2>&5
2495  ac_status=$?
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); }; } &&
2498         { ac_try='test -s conftest.$ac_objext'
2499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500  (eval $ac_try) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; }; then
2504  ac_cv_prog_cc_g=yes
2505else
2506  echo "$as_me: failed program was:" >&5
2507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509ac_cv_prog_cc_g=no
2510fi
2511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512fi
2513echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2514echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2515if test "$ac_test_CFLAGS" = set; then
2516  CFLAGS=$ac_save_CFLAGS
2517elif test $ac_cv_prog_cc_g = yes; then
2518  if test "$GCC" = yes; then
2519    CFLAGS="-g -O2"
2520  else
2521    CFLAGS="-g"
2522  fi
2523else
2524  if test "$GCC" = yes; then
2525    CFLAGS="-O2"
2526  else
2527    CFLAGS=
2528  fi
2529fi
2530echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2531echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2532if test "${ac_cv_prog_cc_stdc+set}" = set; then
2533  echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535  ac_cv_prog_cc_stdc=no
2536ac_save_CC=$CC
2537cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h.  */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h.  */
2543#include <stdarg.h>
2544#include <stdio.h>
2545#include <sys/types.h>
2546#include <sys/stat.h>
2547/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2548struct buf { int x; };
2549FILE * (*rcsopen) (struct buf *, struct stat *, int);
2550static char *e (p, i)
2551     char **p;
2552     int i;
2553{
2554  return p[i];
2555}
2556static char *f (char * (*g) (char **, int), char **p, ...)
2557{
2558  char *s;
2559  va_list v;
2560  va_start (v,p);
2561  s = g (p, va_arg (v,int));
2562  va_end (v);
2563  return s;
2564}
2565
2566/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2567   function prototypes and stuff, but not '\xHH' hex character constants.
2568   These don't provoke an error unfortunately, instead are silently treated
2569   as 'x'.  The following induces an error, until -std1 is added to get
2570   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2571   array size at least.  It's necessary to write '\x00'==0 to get something
2572   that's true only with -std1.  */
2573int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2574
2575int test (int i, double x);
2576struct s1 {int (*f) (int a);};
2577struct s2 {int (*f) (double a);};
2578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2579int argc;
2580char **argv;
2581int
2582main ()
2583{
2584return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589# Don't try gcc -ansi; that turns off useful extensions and
2590# breaks some systems' header files.
2591# AIX                   -qlanglvl=ansi
2592# Ultrix and OSF/1      -std1
2593# HP-UX 10.20 and later -Ae
2594# HP-UX older versions  -Aa -D_HPUX_SOURCE
2595# SVR4                  -Xc -D__EXTENSIONS__
2596for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2597do
2598  CC="$ac_save_CC $ac_arg"
2599  rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601  (eval $ac_compile) 2>conftest.er1
2602  ac_status=$?
2603  grep -v '^ *+' conftest.er1 >conftest.err
2604  rm -f conftest.er1
2605  cat conftest.err >&5
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); } &&
2608         { ac_try='test -z "$ac_c_werror_flag"
2609                         || test ! -s conftest.err'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; } &&
2615         { ac_try='test -s conftest.$ac_objext'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; }; then
2621  ac_cv_prog_cc_stdc=$ac_arg
2622break
2623else
2624  echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627fi
2628rm -f conftest.err conftest.$ac_objext
2629done
2630rm -f conftest.$ac_ext conftest.$ac_objext
2631CC=$ac_save_CC
2632
2633fi
2634
2635case "x$ac_cv_prog_cc_stdc" in
2636  x|xno)
2637    echo "$as_me:$LINENO: result: none needed" >&5
2638echo "${ECHO_T}none needed" >&6 ;;
2639  *)
2640    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2641echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2642    CC="$CC $ac_cv_prog_cc_stdc" ;;
2643esac
2644
2645# Some people use a C++ compiler to compile C.  Since we use `exit',
2646# in C++ we need to declare it.  In case someone uses the same compiler
2647# for both compiling C and C++ we need to have the C++ compiler decide
2648# the declaration of exit, since it's the most demanding environment.
2649cat >conftest.$ac_ext <<_ACEOF
2650#ifndef __cplusplus
2651  choke me
2652#endif
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656  (eval $ac_compile) 2>conftest.er1
2657  ac_status=$?
2658  grep -v '^ *+' conftest.er1 >conftest.err
2659  rm -f conftest.er1
2660  cat conftest.err >&5
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); } &&
2663         { ac_try='test -z "$ac_c_werror_flag"
2664                         || test ! -s conftest.err'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; } &&
2670         { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  for ac_declaration in \
2677   '' \
2678   'extern "C" void std::exit (int) throw (); using std::exit;' \
2679   'extern "C" void std::exit (int); using std::exit;' \
2680   'extern "C" void exit (int) throw ();' \
2681   'extern "C" void exit (int);' \
2682   'void exit (int);'
2683do
2684  cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690$ac_declaration
2691#include <stdlib.h>
2692int
2693main ()
2694{
2695exit (42);
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702  (eval $ac_compile) 2>conftest.er1
2703  ac_status=$?
2704  grep -v '^ *+' conftest.er1 >conftest.err
2705  rm -f conftest.er1
2706  cat conftest.err >&5
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); } &&
2709         { ac_try='test -z "$ac_c_werror_flag"
2710                         || test ! -s conftest.err'
2711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712  (eval $ac_try) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }; } &&
2716         { ac_try='test -s conftest.$ac_objext'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; }; then
2722  :
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727continue
2728fi
2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730  cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h.  */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h.  */
2736$ac_declaration
2737int
2738main ()
2739{
2740exit (42);
2741  ;
2742  return 0;
2743}
2744_ACEOF
2745rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747  (eval $ac_compile) 2>conftest.er1
2748  ac_status=$?
2749  grep -v '^ *+' conftest.er1 >conftest.err
2750  rm -f conftest.er1
2751  cat conftest.err >&5
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); } &&
2754         { ac_try='test -z "$ac_c_werror_flag"
2755                         || test ! -s conftest.err'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; } &&
2761         { ac_try='test -s conftest.$ac_objext'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; }; then
2767  break
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772fi
2773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774done
2775rm -f conftest*
2776if test -n "$ac_declaration"; then
2777  echo '#ifdef __cplusplus' >>confdefs.h
2778  echo $ac_declaration      >>confdefs.h
2779  echo '#endif'             >>confdefs.h
2780fi
2781
2782else
2783  echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786fi
2787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788ac_ext=c
2789ac_cpp='$CPP $CPPFLAGS'
2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794if test -z "$CC" ; then
2795  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2796echo "$as_me: error: Failed to find a C compiler!" >&2;}
2797   { (exit 1); exit 1; }; }
2798fi
2799# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2800case "$CC" in
2801  cl* | */cl* | CL* | */CL* )
2802    if test "$ac_cv_prog_cc_g" = yes ; then
2803      ac_cv_prog_cc_g=no
2804      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2805echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2806    fi ;;
2807esac
2808CFLAGS="$save_cflags"
2809
2810# add automake conditional so we can recognize cl compiler in makefile
2811coin_cc_is_cl=false
2812case "$CC" in
2813  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2814    coin_cc_is_cl=true
2815    ;;
2816esac
2817
2818
2819if test $coin_cc_is_cl = true; then
2820  COIN_CC_IS_CL_TRUE=
2821  COIN_CC_IS_CL_FALSE='#'
2822else
2823  COIN_CC_IS_CL_TRUE='#'
2824  COIN_CC_IS_CL_FALSE=
2825fi
2826
2827
2828# Check if a project specific CFLAGS variable has been set
2829if test x$COIN_PRJCT != x; then
2830  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2831  if test x$coin_tmp = xset; then
2832    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2833  fi
2834fi
2835
2836if test x"$CFLAGS" = x; then
2837
2838  coin_add_cflags=
2839  coin_opt_cflags=
2840  coin_dbg_cflags=
2841  coin_warn_cflags=
2842
2843  if test "$GCC" = "yes"; then
2844    case "$CC" in
2845      icc* | */icc*)
2846        ;;
2847      *)
2848        coin_opt_cflags="-O3"
2849        coin_add_cflags="-pipe"
2850        coin_dbg_cflags="-g -O0"
2851        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2852        case $build in
2853          *-darwin*)
2854            ;;
2855          *)
2856            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2857            ;;
2858        esac
2859        case $enable_doscompile in
2860          mingw)
2861            CFLAGS="-mno-cygwin"
2862            cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h.  */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h.  */
2868
2869int
2870main ()
2871{
2872int i=0; i++;
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext conftest$ac_exeext
2878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879  (eval $ac_link) 2>conftest.er1
2880  ac_status=$?
2881  grep -v '^ *+' conftest.er1 >conftest.err
2882  rm -f conftest.er1
2883  cat conftest.err >&5
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); } &&
2886         { ac_try='test -z "$ac_c_werror_flag"
2887                         || test ! -s conftest.err'
2888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889  (eval $ac_try) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; } &&
2893         { ac_try='test -s conftest$ac_exeext'
2894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895  (eval $ac_try) 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }; }; then
2899  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2900else
2901  echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904fi
2905rm -f conftest.err conftest.$ac_objext \
2906      conftest$ac_exeext conftest.$ac_ext
2907            CFLAGS=
2908          ;;
2909        esac
2910    esac
2911  fi
2912  if test -z "$coin_opt_cflags"; then
2913    case $build in
2914      *-cygwin* | *-mingw*)
2915        case "$CC" in
2916          cl* | */cl* | CL* | */CL*)
2917            coin_opt_cflags='-MT -O2'
2918            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2919            coin_dbg_cflags='-MTd'
2920            ;;
2921          icl* | */icl* | ICL* | */ICL*)
2922            coin_opt_cflags='-MT -Ox'
2923            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2924            coin_dbg_cflags='-MTd -debug'
2925            ;;
2926        esac
2927        ;;
2928      *-linux-*)
2929        case "$CC" in
2930          icc* | */icc*)
2931            coin_opt_cflags="-O3 -ip -mp1"
2932            coin_add_cflags=""
2933            coin_dbg_cflags="-g"
2934            # Check if -i_dynamic is necessary (for new glibc library)
2935            CFLAGS=
2936            cat >conftest.$ac_ext <<_ACEOF
2937/* confdefs.h.  */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h.  */
2942
2943int
2944main ()
2945{
2946int i=0; i++;
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext conftest$ac_exeext
2952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2953  (eval $ac_link) 2>conftest.er1
2954  ac_status=$?
2955  grep -v '^ *+' conftest.er1 >conftest.err
2956  rm -f conftest.er1
2957  cat conftest.err >&5
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); } &&
2960         { ac_try='test -z "$ac_c_werror_flag"
2961                         || test ! -s conftest.err'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; } &&
2967         { ac_try='test -s conftest$ac_exeext'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; }; then
2973  :
2974else
2975  echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978coin_add_cflags="-i_dynamic $coin_add_cflags"
2979fi
2980rm -f conftest.err conftest.$ac_objext \
2981      conftest$ac_exeext conftest.$ac_ext
2982            ;;
2983          pgcc* | */pgcc*)
2984            coin_opt_cflags="-fast"
2985            coin_add_cflags="-Kieee -pc 64"
2986            coin_dbg_cflags="-g"
2987            ;;
2988        esac
2989        ;;
2990      *-ibm-*)
2991        case "$CC" in
2992          xlc* | */xlc* | mpxlc* | */mpxlc*)
2993            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2994            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2995            coin_dbg_cflags="-g"
2996          ;;
2997        esac
2998        ;;
2999      *-hp-*)
3000        coin_opt_cflags="-O"
3001        coin_add_cflags="-Ae"
3002        coin_dbg_cflags="-g"
3003        ;;
3004      *-*-solaris*)
3005        coin_opt_cflags="-xO4"
3006        coin_dbg_cflags="-g"
3007        ;;
3008      *-sgi-*)
3009        coin_opt_cflags="-O -OPT:Olimit=0"
3010        coin_dbg_cflags="-g"
3011        ;;
3012    esac
3013  fi
3014
3015  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3016    coin_dbg_cflags="-g"
3017  fi
3018
3019  if test -z "$coin_opt_cflags"; then
3020    # Try if -O option works if nothing else is set
3021    CFLAGS="-O"
3022    cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h.  */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h.  */
3028
3029int
3030main ()
3031{
3032int i=0; i++;
3033  ;
3034  return 0;
3035}
3036_ACEOF
3037rm -f conftest.$ac_objext conftest$ac_exeext
3038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3039  (eval $ac_link) 2>conftest.er1
3040  ac_status=$?
3041  grep -v '^ *+' conftest.er1 >conftest.err
3042  rm -f conftest.er1
3043  cat conftest.err >&5
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); } &&
3046         { ac_try='test -z "$ac_c_werror_flag"
3047                         || test ! -s conftest.err'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; } &&
3053         { ac_try='test -s conftest$ac_exeext'
3054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055  (eval $ac_try) 2>&5
3056  ac_status=$?
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); }; }; then
3059  coin_opt_cflags="-O"
3060else
3061  echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064fi
3065rm -f conftest.err conftest.$ac_objext \
3066      conftest$ac_exeext conftest.$ac_ext
3067  fi
3068
3069  # if PM doesn't want the warning messages, take them out
3070  if test x"$coin_skip_warn_cflags" = xyes; then
3071    coin_warn_cflags=
3072  fi
3073
3074  if test x${DBG_CFLAGS+set} != xset; then
3075    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3076  fi
3077  if test x${OPT_CFLAGS+set} != xset; then
3078    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3079  fi
3080
3081  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3082  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3083
3084  if test "$coin_debug_compile" = "true"; then
3085    CFLAGS="$DBG_CFLAGS"
3086  else
3087    CFLAGS="$OPT_CFLAGS"
3088  fi
3089else
3090  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3091  if test x${DBG_CFLAGS+set} != xset; then
3092    DBG_CFLAGS="$CFLAGS"
3093  fi
3094  if test x${OPT_CFLAGS+set} != xset; then
3095    OPT_CFLAGS="$CFLAGS"
3096  fi
3097fi
3098
3099# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3100
3101case "$CFLAGS" in
3102  *-mno-cygwin*)
3103    if test x${CPPFLAGS+set} != xset ; then
3104      CPPFLAGS="-mno-cygwin"
3105    else
3106      case "$CPPFLAGS" in
3107        *-mno-cygwin*)
3108          ;;
3109        *)
3110          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3111          ;;
3112      esac
3113    fi ;;
3114esac
3115
3116# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3117if test x$COIN_PRJCT != x; then
3118  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3119fi
3120
3121# Try if CFLAGS works
3122save_CFLAGS="$CFLAGS"
3123cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h.  */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h.  */
3129
3130int
3131main ()
3132{
3133int i=0; i++;
3134  ;
3135  return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext conftest$ac_exeext
3139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140  (eval $ac_link) 2>conftest.er1
3141  ac_status=$?
3142  grep -v '^ *+' conftest.er1 >conftest.err
3143  rm -f conftest.er1
3144  cat conftest.err >&5
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); } &&
3147         { ac_try='test -z "$ac_c_werror_flag"
3148                         || test ! -s conftest.err'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; } &&
3154         { ac_try='test -s conftest$ac_exeext'
3155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156  (eval $ac_try) 2>&5
3157  ac_status=$?
3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); }; }; then
3160  :
3161else
3162  echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165CFLAGS=
3166fi
3167rm -f conftest.err conftest.$ac_objext \
3168      conftest$ac_exeext conftest.$ac_ext
3169if test -z "$CFLAGS"; then
3170  { 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
3171echo "$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;}
3172  CFLAGS='-O'
3173  cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h.  */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183int i=0; i++;
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext conftest$ac_exeext
3189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3190  (eval $ac_link) 2>conftest.er1
3191  ac_status=$?
3192  grep -v '^ *+' conftest.er1 >conftest.err
3193  rm -f conftest.er1
3194  cat conftest.err >&5
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); } &&
3197         { ac_try='test -z "$ac_c_werror_flag"
3198                         || test ! -s conftest.err'
3199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200  (eval $ac_try) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }; } &&
3204         { ac_try='test -s conftest$ac_exeext'
3205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206  (eval $ac_try) 2>&5
3207  ac_status=$?
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }; }; then
3210  :
3211else
3212  echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215CFLAGS=
3216fi
3217rm -f conftest.err conftest.$ac_objext \
3218      conftest$ac_exeext conftest.$ac_ext
3219  if test -z "$CFLAGS"; then
3220    { 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
3221echo "$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;}
3222  fi
3223fi
3224
3225{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3226echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3227
3228
3229if test x"$MPICC" = x; then :; else
3230  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3231echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3232  CC="$MPICC"
3233fi
3234
3235# Correct the LD variable if we are using the MS or Intel-windows compiler
3236case "$CC" in
3237  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3238    case $build in
3239  *-mingw*)
3240    if test "${LD+set}" = set; then :; else
3241      LD=link
3242    fi
3243    ;;
3244 esac
3245 case $enable_doscompile in
3246   msvc)
3247     if test "x${LD+set}" = xset; then :; else
3248       LD=link
3249     fi
3250     ;;
3251 esac
3252
3253    ;;
3254esac
3255
3256ac_ext=c
3257ac_cpp='$CPP $CPPFLAGS'
3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261
3262
3263
3264# Get the name of the C++ compiler and appropriate compiler options
3265
3266 #Let's try if that overcomes configuration problem with VC++ 6.0
3267
3268ac_ext=cc
3269ac_cpp='$CXXCPP $CPPFLAGS'
3270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3273
3274
3275
3276
3277
3278
3279
3280coin_has_cxx=yes
3281
3282save_cxxflags="$CXXFLAGS"
3283# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3284case $build in
3285  *-cygwin* | *-mingw*)
3286             if test "$enable_doscompile" = msvc ; then
3287               comps="icl cl"
3288             else
3289               comps="g++ cl"
3290             fi ;;
3291  *-*-solaris*)
3292             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3293  *-darwin*) comps="g++ c++ CC" ;;
3294  *-linux-gnu*)
3295             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3296          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3297esac
3298
3299# We delete the cached value, since the test might not have been
3300# performed with our choice of compilers earlier
3301$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3302# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3303ac_ext=cc
3304ac_cpp='$CXXCPP $CPPFLAGS'
3305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3308if test -n "$ac_tool_prefix"; then
3309  for ac_prog in $CCC $comps
3310  do
3311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313echo "$as_me:$LINENO: checking for $ac_word" >&5
3314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315if test "${ac_cv_prog_CXX+set}" = set; then
3316  echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318  if test -n "$CXX"; then
3319  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326  for ac_exec_ext in '' $ac_executable_extensions; do
3327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333done
3334
3335fi
3336fi
3337CXX=$ac_cv_prog_CXX
3338if test -n "$CXX"; then
3339  echo "$as_me:$LINENO: result: $CXX" >&5
3340echo "${ECHO_T}$CXX" >&6
3341else
3342  echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
3344fi
3345
3346    test -n "$CXX" && break
3347  done
3348fi
3349if test -z "$CXX"; then
3350  ac_ct_CXX=$CXX
3351  for ac_prog in $CCC $comps
3352do
3353  # Extract the first word of "$ac_prog", so it can be a program name with args.
3354set dummy $ac_prog; ac_word=$2
3355echo "$as_me:$LINENO: checking for $ac_word" >&5
3356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3358  echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360  if test -n "$ac_ct_CXX"; then
3361  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3362else
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368  for ac_exec_ext in '' $ac_executable_extensions; do
3369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370    ac_cv_prog_ac_ct_CXX="$ac_prog"
3371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374done
3375done
3376
3377fi
3378fi
3379ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3380if test -n "$ac_ct_CXX"; then
3381  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3382echo "${ECHO_T}$ac_ct_CXX" >&6
3383else
3384  echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386fi
3387
3388  test -n "$ac_ct_CXX" && break
3389done
3390test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3391
3392  CXX=$ac_ct_CXX
3393fi
3394
3395
3396# Provide some information about the compiler.
3397echo "$as_me:$LINENO:" \
3398     "checking for C++ compiler version" >&5
3399ac_compiler=`set X $ac_compile; echo $2`
3400{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3401  (eval $ac_compiler --version </dev/null >&5) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }
3405{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3406  (eval $ac_compiler -v </dev/null >&5) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }
3410{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3411  (eval $ac_compiler -V </dev/null >&5) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }
3415
3416echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3417echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3418if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3419  echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421  cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h.  */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h.  */
3427
3428int
3429main ()
3430{
3431#ifndef __GNUC__
3432       choke me
3433#endif
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext
3440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441  (eval $ac_compile) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -z "$ac_cxx_werror_flag"
3449                         || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455         { ac_try='test -s conftest.$ac_objext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  ac_compiler_gnu=yes
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466ac_compiler_gnu=no
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3470
3471fi
3472echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3473echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3474GXX=`test $ac_compiler_gnu = yes && echo yes`
3475ac_test_CXXFLAGS=${CXXFLAGS+set}
3476ac_save_CXXFLAGS=$CXXFLAGS
3477CXXFLAGS="-g"
3478echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3479echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3480if test "${ac_cv_prog_cxx_g+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500  (eval $ac_compile) 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } &&
3507         { ac_try='test -z "$ac_cxx_werror_flag"
3508                         || test ! -s conftest.err'
3509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510  (eval $ac_try) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }; } &&
3514         { ac_try='test -s conftest.$ac_objext'
3515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516  (eval $ac_try) 2>&5
3517  ac_status=$?
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); }; }; then
3520  ac_cv_prog_cxx_g=yes
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525ac_cv_prog_cxx_g=no
3526fi
3527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528fi
3529echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3530echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3531if test "$ac_test_CXXFLAGS" = set; then
3532  CXXFLAGS=$ac_save_CXXFLAGS
3533elif test $ac_cv_prog_cxx_g = yes; then
3534  if test "$GXX" = yes; then
3535    CXXFLAGS="-g -O2"
3536  else
3537    CXXFLAGS="-g"
3538  fi
3539else
3540  if test "$GXX" = yes; then
3541    CXXFLAGS="-O2"
3542  else
3543    CXXFLAGS=
3544  fi
3545fi
3546for ac_declaration in \
3547   '' \
3548   'extern "C" void std::exit (int) throw (); using std::exit;' \
3549   'extern "C" void std::exit (int); using std::exit;' \
3550   'extern "C" void exit (int) throw ();' \
3551   'extern "C" void exit (int);' \
3552   'void exit (int);'
3553do
3554  cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h.  */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h.  */
3560$ac_declaration
3561#include <stdlib.h>
3562int
3563main ()
3564{
3565exit (42);
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570rm -f conftest.$ac_objext
3571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572  (eval $ac_compile) 2>conftest.er1
3573  ac_status=$?
3574  grep -v '^ *+' conftest.er1 >conftest.err
3575  rm -f conftest.er1
3576  cat conftest.err >&5
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); } &&
3579         { ac_try='test -z "$ac_cxx_werror_flag"
3580                         || test ! -s conftest.err'
3581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582  (eval $ac_try) 2>&5
3583  ac_status=$?
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); }; } &&
3586         { ac_try='test -s conftest.$ac_objext'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; }; then
3592  :
3593else
3594  echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597continue
3598fi
3599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600  cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h.  */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h.  */
3606$ac_declaration
3607int
3608main ()
3609{
3610exit (42);
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617  (eval $ac_compile) 2>conftest.er1
3618  ac_status=$?
3619  grep -v '^ *+' conftest.er1 >conftest.err
3620  rm -f conftest.er1
3621  cat conftest.err >&5
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); } &&
3624         { ac_try='test -z "$ac_cxx_werror_flag"
3625                         || test ! -s conftest.err'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; } &&
3631         { ac_try='test -s conftest.$ac_objext'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  break
3638else
3639  echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642fi
3643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3644done
3645rm -f conftest*
3646if test -n "$ac_declaration"; then
3647  echo '#ifdef __cplusplus' >>confdefs.h
3648  echo $ac_declaration      >>confdefs.h
3649  echo '#endif'             >>confdefs.h
3650fi
3651
3652ac_ext=cc
3653ac_cpp='$CXXCPP $CPPFLAGS'
3654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3657
3658
3659#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3660#thus, we test here whether $CXX is actually working
3661ac_ext=cc
3662ac_cpp='$CXXCPP $CPPFLAGS'
3663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3666
3667echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3668echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3669cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h.  */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h.  */
3675
3676int
3677main ()
3678{
3679int i=0;
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext
3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686  (eval $ac_compile) 2>conftest.er1
3687  ac_status=$?
3688  grep -v '^ *+' conftest.er1 >conftest.err
3689  rm -f conftest.er1
3690  cat conftest.err >&5
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } &&
3693         { ac_try='test -z "$ac_cxx_werror_flag"
3694                         || test ! -s conftest.err'
3695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696  (eval $ac_try) 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; } &&
3700         { ac_try='test -s conftest.$ac_objext'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; }; then
3706  echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712echo "$as_me:$LINENO: result: no" >&5
3713echo "${ECHO_T}no" >&6
3714   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3715echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3716   { (exit 1); exit 1; }; }
3717
3718fi
3719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720ac_ext=cc
3721ac_cpp='$CXXCPP $CPPFLAGS'
3722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725
3726
3727coin_cxx_is_cl=false
3728# It seems that we need to cleanup something here for the Windows
3729case "$CXX" in
3730  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3731    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3732    mv confdefs.hh confdefs.h
3733    coin_cxx_is_cl=true
3734    ;;
3735esac
3736
3737# add automake conditional so we can recognize cl compiler in makefile
3738
3739
3740if test $coin_cxx_is_cl = true; then
3741  COIN_CXX_IS_CL_TRUE=
3742  COIN_CXX_IS_CL_FALSE='#'
3743else
3744  COIN_CXX_IS_CL_TRUE='#'
3745  COIN_CXX_IS_CL_FALSE=
3746fi
3747
3748
3749# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3750case "$CXX" in
3751  cl* | */cl* | CL* | */CL* )
3752    if test "$ac_cv_prog_cxx_g" = yes ; then
3753      ac_cv_prog_cxx_g=no
3754      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3755echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3756    fi ;;
3757esac
3758CXXFLAGS="$save_cxxflags"
3759
3760# Check if a project specific CXXFLAGS variable has been set
3761if test x$COIN_PRJCT != x; then
3762  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3763  if test x$coin_tmp = xset; then
3764    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3765  fi
3766fi
3767
3768if test x"$CXXFLAGS" = x; then
3769
3770# ToDo decide whether we want -DNDEBUG for optimization
3771  coin_add_cxxflags=
3772  coin_opt_cxxflags=
3773  coin_dbg_cxxflags=
3774  coin_warn_cxxflags=
3775
3776  if test "$GXX" = "yes"; then
3777    case "$CXX" in
3778      icpc* | */icpc*)
3779        ;;
3780      *)
3781# ToDo decide about unroll-loops
3782        coin_opt_cxxflags="-O3"
3783        coin_add_cxxflags="-pipe"
3784        coin_dbg_cxxflags="-g -O0"
3785        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3786        case $build in
3787          *-darwin*)
3788            ;;
3789          *)
3790            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3791            ;;
3792        esac
3793
3794        case $enable_doscompile in
3795          mingw)
3796            CXXFLAGS="-mno-cygwin"
3797            cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h.  */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807int i=0; i++;
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext conftest$ac_exeext
3813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814  (eval $ac_link) 2>conftest.er1
3815  ac_status=$?
3816  grep -v '^ *+' conftest.er1 >conftest.err
3817  rm -f conftest.er1
3818  cat conftest.err >&5
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); } &&
3821         { ac_try='test -z "$ac_cxx_werror_flag"
3822                         || test ! -s conftest.err'
3823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824  (eval $ac_try) 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }; } &&
3828         { ac_try='test -s conftest$ac_exeext'
3829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830  (eval $ac_try) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; }; then
3834  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3835else
3836  echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839fi
3840rm -f conftest.err conftest.$ac_objext \
3841      conftest$ac_exeext conftest.$ac_ext
3842            CXXFLAGS=
3843          ;;
3844        esac
3845    esac
3846  fi
3847
3848# Note that we do not need to cover GCC in the following tests.
3849
3850  if test -z "$coin_opt_cxxflags"; then
3851    case $build in
3852      *-cygwin* | *-mingw*)
3853        case "$CXX" in
3854          cl* | */cl* | CL* | */CL*)
3855            # The MT and MTd options are mutually exclusive
3856            coin_opt_cxxflags='-MT -O2'
3857            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3858            coin_dbg_cxxflags='-MTd'
3859            ;;
3860          icl* | */icl* | ICL* | */ICL*)
3861            # The MT and MTd options are mutually exclusive
3862            coin_opt_cxxflags='-MT -Ox'
3863            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3864            coin_dbg_cxxflags='-MTd -debug'
3865            ;;
3866        esac
3867        ;;
3868      *-linux-*)
3869        case "$CXX" in
3870          icpc* | */icpc*)
3871            coin_opt_cxxflags="-O3 -ip -mp1"
3872            coin_add_cxxflags=""
3873            coin_dbg_cxxflags="-g"
3874            # Check if -i_dynamic is necessary (for new glibc library)
3875            CXXFLAGS=
3876            cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h.  */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h.  */
3882
3883int
3884main ()
3885{
3886int i=0; i++;
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891rm -f conftest.$ac_objext conftest$ac_exeext
3892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893  (eval $ac_link) 2>conftest.er1
3894  ac_status=$?
3895  grep -v '^ *+' conftest.er1 >conftest.err
3896  rm -f conftest.er1
3897  cat conftest.err >&5
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } &&
3900         { ac_try='test -z "$ac_cxx_werror_flag"
3901                         || test ! -s conftest.err'
3902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903  (eval $ac_try) 2>&5
3904  ac_status=$?
3905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906  (exit $ac_status); }; } &&
3907         { ac_try='test -s conftest$ac_exeext'
3908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909  (eval $ac_try) 2>&5
3910  ac_status=$?
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); }; }; then
3913  :
3914else
3915  echo "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3919fi
3920rm -f conftest.err conftest.$ac_objext \
3921      conftest$ac_exeext conftest.$ac_ext
3922            ;;
3923          pgCC* | */pgCC*)
3924            coin_opt_cxxflags="-fast"
3925            coin_add_cxxflags="-Kieee -pc 64"
3926            coin_dbg_cxxflags="-g"
3927            ;;
3928        esac
3929        ;;
3930      *-ibm-*)
3931        case "$CXX" in
3932          xlC* | */xlC* | mpxlC* | */mpxlC*)
3933            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3934            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3935            coin_dbg_cxxflags="-g"
3936            ;;
3937        esac
3938        ;;
3939      *-hp-*)
3940        case "$CXX" in
3941          aCC* | */aCC* )
3942            coin_opt_cxxflags="-O"
3943            coin_add_cxxflags="-AA"
3944            coin_dbg_cxxflags="-g"
3945            ;;
3946        esac
3947        ;;
3948      *-*-solaris*)
3949          coin_opt_cxxflags="-O4"
3950          coin_dbg_cxxflags="-g"
3951        ;;
3952    esac
3953  fi
3954
3955# Generic flag settings. If these don't work, add a case above.
3956
3957  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3958    coin_dbg_cxxflags="-g"
3959  fi
3960
3961  if test -z "$coin_opt_cxxflags"; then
3962    # Try if -O option works if nothing else is set
3963    CXXFLAGS=-O
3964    cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h.  */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h.  */
3970
3971int
3972main ()
3973{
3974int i=0; i++;
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext conftest$ac_exeext
3980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981  (eval $ac_link) 2>conftest.er1
3982  ac_status=$?
3983  grep -v '^ *+' conftest.er1 >conftest.err
3984  rm -f conftest.er1
3985  cat conftest.err >&5
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); } &&
3988         { ac_try='test -z "$ac_cxx_werror_flag"
3989                         || test ! -s conftest.err'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; } &&
3995         { ac_try='test -s conftest$ac_exeext'
3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997  (eval $ac_try) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); }; }; then
4001  coin_opt_cxxflags="-O"
4002else
4003  echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006fi
4007rm -f conftest.err conftest.$ac_objext \
4008      conftest$ac_exeext conftest.$ac_ext
4009  fi
4010
4011  # if PM doesn't want the warning messages, take them out
4012  if test x"$coin_skip_warn_cxxflags" = xyes; then
4013    coin_warn_cxxflags=
4014  fi
4015
4016# Do final setup of flags based on values determined above.
4017
4018  if test x${DBG_CXXFLAGS+set} != xset; then
4019    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4020  fi
4021  if test x${OPT_CXXFLAGS+set} != xset; then
4022    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4023  fi
4024
4025  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4026  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4027
4028  if test "$coin_debug_compile" = "true"; then
4029    CXXFLAGS="$DBG_CXXFLAGS"
4030  else
4031    CXXFLAGS="$OPT_CXXFLAGS"
4032  fi
4033
4034# Handle the case where CXXFLAGS was set externally.
4035else
4036  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4037  if test x${DBG_CXXFLAGS+set} != xset; then
4038    DBG_CXXFLAGS="$CXXFLAGS"
4039  fi
4040  if test x${OPT_CXXFLAGS+set} != xset; then
4041    OPT_CXXFLAGS="$CXXFLAGS"
4042  fi
4043fi
4044
4045# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4046
4047case "$CXXFLAGS" in
4048  *-mno-cygwin*)
4049    if test x${CPPFLAGS+set} != xset ; then
4050      CPPFLAGS="-mno-cygwin"
4051    else
4052      case "$CPPFLAGS" in
4053        *-mno-cygwin*)
4054          ;;
4055        *)
4056          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4057          ;;
4058      esac
4059    fi ;;
4060esac
4061
4062# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4063if test x$COIN_PRJCT != x; then
4064  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4065fi
4066
4067# Try if CXXFLAGS works
4068save_CXXFLAGS="$CXXFLAGS"
4069cat >conftest.$ac_ext <<_ACEOF
4070/* confdefs.h.  */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h.  */
4075
4076int
4077main ()
4078{
4079int i=0; i++;
4080  ;
4081  return 0;
4082}
4083_ACEOF
4084rm -f conftest.$ac_objext conftest$ac_exeext
4085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4086  (eval $ac_link) 2>conftest.er1
4087  ac_status=$?
4088  grep -v '^ *+' conftest.er1 >conftest.err
4089  rm -f conftest.er1
4090  cat conftest.err >&5
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); } &&
4093         { ac_try='test -z "$ac_cxx_werror_flag"
4094                         || test ! -s conftest.err'
4095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096  (eval $ac_try) 2>&5
4097  ac_status=$?
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); }; } &&
4100         { ac_try='test -s conftest$ac_exeext'
4101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102  (eval $ac_try) 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); }; }; then
4106  :
4107else
4108  echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111CXXFLAGS=
4112fi
4113rm -f conftest.err conftest.$ac_objext \
4114      conftest$ac_exeext conftest.$ac_ext
4115if test -z "$CXXFLAGS"; then
4116  { 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
4117echo "$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;}
4118  CXXFLAGS='-O'
4119  cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h.  */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h.  */
4125
4126int
4127main ()
4128{
4129int i=0; i++;
4130  ;
4131  return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext conftest$ac_exeext
4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136  (eval $ac_link) 2>conftest.er1
4137  ac_status=$?
4138  grep -v '^ *+' conftest.er1 >conftest.err
4139  rm -f conftest.er1
4140  cat conftest.err >&5
4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142  (exit $ac_status); } &&
4143         { ac_try='test -z "$ac_cxx_werror_flag"
4144                         || test ! -s conftest.err'
4145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146  (eval $ac_try) 2>&5
4147  ac_status=$?
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); }; } &&
4150         { ac_try='test -s conftest$ac_exeext'
4151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152  (eval $ac_try) 2>&5
4153  ac_status=$?
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); }; }; then
4156  :
4157else
4158  echo "$as_me: failed program was:" >&5
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
4161CXXFLAGS=
4162fi
4163rm -f conftest.err conftest.$ac_objext \
4164      conftest$ac_exeext conftest.$ac_ext
4165  if test -z "$CXXFLAGS"; then
4166    { 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
4167echo "$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;}
4168  fi
4169fi
4170
4171{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4172echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4173
4174
4175if test x"$MPICXX" = x; then :; else
4176  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4177echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4178  CXX="$MPICXX"
4179fi
4180
4181# correct the LD variable in a mingw build with MS or intel compiler
4182case "$CXX" in
4183  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4184    case $build in
4185  *-mingw*)
4186    if test "${LD+set}" = set; then :; else
4187      LD=link
4188    fi
4189    ;;
4190 esac
4191 case $enable_doscompile in
4192   msvc)
4193     if test "x${LD+set}" = xset; then :; else
4194       LD=link
4195     fi
4196     ;;
4197 esac
4198
4199    ;;
4200esac
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209
4210# Initialize automake
4211am__api_version="1.9"
4212# Find a good install program.  We prefer a C program (faster),
4213# so one script is as good as another.  But avoid the broken or
4214# incompatible versions:
4215# SysV /etc/install, /usr/sbin/install
4216# SunOS /usr/etc/install
4217# IRIX /sbin/install
4218# AIX /bin/install
4219# AmigaOS /C/install, which installs bootblocks on floppy discs
4220# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4221# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4222# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4223# OS/2's system install, which has a completely different semantic
4224# ./install, which can be erroneously created by make from ./install.sh.
4225echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4226echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4227if test -z "$INSTALL"; then
4228if test "${ac_cv_path_install+set}" = set; then
4229  echo $ECHO_N "(cached) $ECHO_C" >&6
4230else
4231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236  # Account for people who put trailing slashes in PATH elements.
4237case $as_dir/ in
4238  ./ | .// | /cC/* | \
4239  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4240  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4241  /usr/ucb/* ) ;;
4242  *)
4243    # OSF1 and SCO ODT 3.0 have their own names for install.
4244    # Don't use installbsd from OSF since it installs stuff as root
4245    # by default.
4246    for ac_prog in ginstall scoinst install; do
4247      for ac_exec_ext in '' $ac_executable_extensions; do
4248        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4249          if test $ac_prog = install &&
4250            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4251            # AIX install.  It has an incompatible calling convention.
4252            :
4253          elif test $ac_prog = install &&
4254            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4255            # program-specific install script used by HP pwplus--don't use.
4256            :
4257          else
4258            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4259            break 3
4260          fi
4261        fi
4262      done
4263    done
4264    ;;
4265esac
4266done
4267
4268
4269fi
4270  if test "${ac_cv_path_install+set}" = set; then
4271    INSTALL=$ac_cv_path_install
4272  else
4273    # As a last resort, use the slow shell script.  We don't cache a
4274    # path for INSTALL within a source directory, because that will
4275    # break other packages using the cache if that directory is
4276    # removed, or if the path is relative.
4277    INSTALL=$ac_install_sh
4278  fi
4279fi
4280echo "$as_me:$LINENO: result: $INSTALL" >&5
4281echo "${ECHO_T}$INSTALL" >&6
4282
4283# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4284# It thinks the first close brace ends the variable substitution.
4285test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4286
4287test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4288
4289test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4290
4291echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4292echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4293# Just in case
4294sleep 1
4295echo timestamp > conftest.file
4296# Do `set' in a subshell so we don't clobber the current shell's
4297# arguments.  Must try -L first in case configure is actually a
4298# symlink; some systems play weird games with the mod time of symlinks
4299# (eg FreeBSD returns the mod time of the symlink's containing
4300# directory).
4301if (
4302   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4303   if test "$*" = "X"; then
4304      # -L didn't work.
4305      set X `ls -t $srcdir/configure conftest.file`
4306   fi
4307   rm -f conftest.file
4308   if test "$*" != "X $srcdir/configure conftest.file" \
4309      && test "$*" != "X conftest.file $srcdir/configure"; then
4310
4311      # If neither matched, then we have a broken ls.  This can happen
4312      # if, for instance, CONFIG_SHELL is bash and it inherits a
4313      # broken ls alias from the environment.  This has actually
4314      # happened.  Such a system could not be considered "sane".
4315      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4316alias in your environment" >&5
4317echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4318alias in your environment" >&2;}
4319   { (exit 1); exit 1; }; }
4320   fi
4321
4322   test "$2" = conftest.file
4323   )
4324then
4325   # Ok.
4326   :
4327else
4328   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4329Check your system clock" >&5
4330echo "$as_me: error: newly created file is older than distributed files!
4331Check your system clock" >&2;}
4332   { (exit 1); exit 1; }; }
4333fi
4334echo "$as_me:$LINENO: result: yes" >&5
4335echo "${ECHO_T}yes" >&6
4336test "$program_prefix" != NONE &&
4337  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4338# Use a double $ so make ignores it.
4339test "$program_suffix" != NONE &&
4340  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4341# Double any \ or $.  echo might interpret backslashes.
4342# By default was `s,x,x', remove it if useless.
4343cat <<\_ACEOF >conftest.sed
4344s/[\\$]/&&/g;s/;s,x,x,$//
4345_ACEOF
4346program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4347rm conftest.sed
4348
4349# expand $ac_aux_dir to an absolute path
4350am_aux_dir=`cd $ac_aux_dir && pwd`
4351
4352test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4353# Use eval to expand $SHELL
4354if eval "$MISSING --run true"; then
4355  am_missing_run="$MISSING --run "
4356else
4357  am_missing_run=
4358  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4359echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4360fi
4361
4362if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4363  # We used to keeping the `.' as first argument, in order to
4364  # allow $(mkdir_p) to be used without argument.  As in
4365  #   $(mkdir_p) $(somedir)
4366  # where $(somedir) is conditionally defined.  However this is wrong
4367  # for two reasons:
4368  #  1. if the package is installed by a user who cannot write `.'
4369  #     make install will fail,
4370  #  2. the above comment should most certainly read
4371  #     $(mkdir_p) $(DESTDIR)$(somedir)
4372  #     so it does not work when $(somedir) is undefined and
4373  #     $(DESTDIR) is not.
4374  #  To support the latter case, we have to write
4375  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4376  #  so the `.' trick is pointless.
4377  mkdir_p='mkdir -p --'
4378else
4379  # On NextStep and OpenStep, the `mkdir' command does not
4380  # recognize any option.  It will interpret all options as
4381  # directories to create, and then abort because `.' already
4382  # exists.
4383  for d in ./-p ./--version;
4384  do
4385    test -d $d && rmdir $d
4386  done
4387  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4388  if test -f "$ac_aux_dir/mkinstalldirs"; then
4389    mkdir_p='$(mkinstalldirs)'
4390  else
4391    mkdir_p='$(install_sh) -d'
4392  fi
4393fi
4394
4395for ac_prog in gawk mawk nawk awk
4396do
4397  # Extract the first word of "$ac_prog", so it can be a program name with args.
4398set dummy $ac_prog; ac_word=$2
4399echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401if test "${ac_cv_prog_AWK+set}" = set; then
4402  echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404  if test -n "$AWK"; then
4405  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412  for ac_exec_ext in '' $ac_executable_extensions; do
4413  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414    ac_cv_prog_AWK="$ac_prog"
4415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416    break 2
4417  fi
4418done
4419done
4420
4421fi
4422fi
4423AWK=$ac_cv_prog_AWK
4424if test -n "$AWK"; then
4425  echo "$as_me:$LINENO: result: $AWK" >&5
4426echo "${ECHO_T}$AWK" >&6
4427else
4428  echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6
4430fi
4431
4432  test -n "$AWK" && break
4433done
4434
4435echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4436echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4437set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4438if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4439  echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441  cat >conftest.make <<\_ACEOF
4442all:
4443        @echo 'ac_maketemp="$(MAKE)"'
4444_ACEOF
4445# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4446eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4447if test -n "$ac_maketemp"; then
4448  eval ac_cv_prog_make_${ac_make}_set=yes
4449else
4450  eval ac_cv_prog_make_${ac_make}_set=no
4451fi
4452rm -f conftest.make
4453fi
4454if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4455  echo "$as_me:$LINENO: result: yes" >&5
4456echo "${ECHO_T}yes" >&6
4457  SET_MAKE=
4458else
4459  echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
4461  SET_MAKE="MAKE=${MAKE-make}"
4462fi
4463
4464rm -rf .tst 2>/dev/null
4465mkdir .tst 2>/dev/null
4466if test -d .tst; then
4467  am__leading_dot=.
4468else
4469  am__leading_dot=_
4470fi
4471rmdir .tst 2>/dev/null
4472
4473DEPDIR="${am__leading_dot}deps"
4474
4475          ac_config_commands="$ac_config_commands depfiles"
4476
4477
4478am_make=${MAKE-make}
4479cat > confinc << 'END'
4480am__doit:
4481        @echo done
4482.PHONY: am__doit
4483END
4484# If we don't find an include directive, just comment out the code.
4485echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4486echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4487am__include="#"
4488am__quote=
4489_am_result=none
4490# First try GNU make style include.
4491echo "include confinc" > confmf
4492# We grep out `Entering directory' and `Leaving directory'
4493# messages which can occur if `w' ends up in MAKEFLAGS.
4494# In particular we don't look at `^make:' because GNU make might
4495# be invoked under some other name (usually "gmake"), in which
4496# case it prints its new name instead of `make'.
4497if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4498   am__include=include
4499   am__quote=
4500   _am_result=GNU
4501fi
4502# Now try BSD make style include.
4503if test "$am__include" = "#"; then
4504   echo '.include "confinc"' > confmf
4505   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4506      am__include=.include
4507      am__quote="\""
4508      _am_result=BSD
4509   fi
4510fi
4511
4512
4513echo "$as_me:$LINENO: result: $_am_result" >&5
4514echo "${ECHO_T}$_am_result" >&6
4515rm -f confinc confmf
4516
4517# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4518if test "${enable_dependency_tracking+set}" = set; then
4519  enableval="$enable_dependency_tracking"
4520
4521fi;
4522if test "x$enable_dependency_tracking" != xno; then
4523  am_depcomp="$ac_aux_dir/depcomp"
4524  AMDEPBACKSLASH='\'
4525fi
4526
4527
4528if test "x$enable_dependency_tracking" != xno; then
4529  AMDEP_TRUE=
4530  AMDEP_FALSE='#'
4531else
4532  AMDEP_TRUE='#'
4533  AMDEP_FALSE=
4534fi
4535
4536
4537
4538# test to see if srcdir already configured
4539if test "`cd $srcdir && pwd`" != "`pwd`" &&
4540   test -f $srcdir/config.status; then
4541  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4542echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4543   { (exit 1); exit 1; }; }
4544fi
4545
4546# test whether we have cygpath
4547if test -z "$CYGPATH_W"; then
4548  if (cygpath --version) >/dev/null 2>/dev/null; then
4549    CYGPATH_W='cygpath -w'
4550  else
4551    CYGPATH_W=echo
4552  fi
4553fi
4554
4555
4556# Define the identity of the package.
4557 PACKAGE='thirdpartyscip'
4558 VERSION='1.0'
4559
4560
4561cat >>confdefs.h <<_ACEOF
4562#define PACKAGE "$PACKAGE"
4563_ACEOF
4564
4565
4566cat >>confdefs.h <<_ACEOF
4567#define VERSION "$VERSION"
4568_ACEOF
4569
4570# Some tools Automake needs.
4571
4572ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4573
4574
4575AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4576
4577
4578AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4579
4580
4581AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4582
4583
4584MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4585
4586install_sh=${install_sh-"$am_aux_dir/install-sh"}
4587
4588# Installed binaries are usually stripped using `strip' when the user
4589# run `make install-strip'.  However `strip' might not be the right
4590# tool to use in cross-compilation environments, therefore Automake
4591# will honor the `STRIP' environment variable to overrule this program.
4592if test "$cross_compiling" != no; then
4593  if test -n "$ac_tool_prefix"; then
4594  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4595set dummy ${ac_tool_prefix}strip; ac_word=$2
4596echo "$as_me:$LINENO: checking for $ac_word" >&5
4597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598if test "${ac_cv_prog_STRIP+set}" = set; then
4599  echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601  if test -n "$STRIP"; then
4602  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607  IFS=$as_save_IFS
4608  test -z "$as_dir" && as_dir=.
4609  for ac_exec_ext in '' $ac_executable_extensions; do
4610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613    break 2
4614  fi
4615done
4616done
4617
4618fi
4619fi
4620STRIP=$ac_cv_prog_STRIP
4621if test -n "$STRIP"; then
4622  echo "$as_me:$LINENO: result: $STRIP" >&5
4623echo "${ECHO_T}$STRIP" >&6
4624else
4625  echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
4627fi
4628
4629fi
4630if test -z "$ac_cv_prog_STRIP"; then
4631  ac_ct_STRIP=$STRIP
4632  # Extract the first word of "strip", so it can be a program name with args.
4633set dummy strip; ac_word=$2
4634echo "$as_me:$LINENO: checking for $ac_word" >&5
4635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4636if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4637  echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639  if test -n "$ac_ct_STRIP"; then
4640  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647  for ac_exec_ext in '' $ac_executable_extensions; do
4648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649    ac_cv_prog_ac_ct_STRIP="strip"
4650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651    break 2
4652  fi
4653done
4654done
4655
4656  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4657fi
4658fi
4659ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4660if test -n "$ac_ct_STRIP"; then
4661  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4662echo "${ECHO_T}$ac_ct_STRIP" >&6
4663else
4664  echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
4666fi
4667
4668  STRIP=$ac_ct_STRIP
4669else
4670  STRIP="$ac_cv_prog_STRIP"
4671fi
4672
4673fi
4674INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4675
4676# We need awk for the "check" target.  The system "awk" is bad on
4677# some platforms.
4678# Always define AMTAR for backward compatibility.
4679
4680AMTAR=${AMTAR-"${am_missing_run}tar"}
4681
4682am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4683
4684
4685
4686
4687depcc="$CC"   am_compiler_list=
4688
4689echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4690echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4691if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4692  echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4695  # We make a subdir and do the tests there.  Otherwise we can end up
4696  # making bogus files that we don't know about and never remove.  For
4697  # instance it was reported that on HP-UX the gcc test will end up
4698  # making a dummy file named `D' -- because `-MD' means `put the output
4699  # in D'.
4700  mkdir conftest.dir
4701  # Copy depcomp to subdir because otherwise we won't find it if we're
4702  # using a relative directory.
4703  cp "$am_depcomp" conftest.dir
4704  cd conftest.dir
4705  # We will build objects and dependencies in a subdirectory because
4706  # it helps to detect inapplicable dependency modes.  For instance
4707  # both Tru64's cc and ICC support -MD to output dependencies as a
4708  # side effect of compilation, but ICC will put the dependencies in
4709  # the current directory while Tru64 will put them in the object
4710  # directory.
4711  mkdir sub
4712
4713  am_cv_CC_dependencies_compiler_type=none
4714  if test "$am_compiler_list" = ""; then
4715     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4716  fi
4717  for depmode in $am_compiler_list; do
4718    # Setup a source with many dependencies, because some compilers
4719    # like to wrap large dependency lists on column 80 (with \), and
4720    # we should not choose a depcomp mode which is confused by this.
4721    #
4722    # We need to recreate these files for each test, as the compiler may
4723    # overwrite some of them when testing with obscure command lines.
4724    # This happens at least with the AIX C compiler.
4725    : > sub/conftest.c
4726    for i in 1 2 3 4 5 6; do
4727      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4728      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4729      # Solaris 8's {/usr,}/bin/sh.
4730      touch sub/conftst$i.h
4731    done
4732    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4733
4734    case $depmode in
4735    nosideeffect)
4736      # after this tag, mechanisms are not by side-effect, so they'll
4737      # only be used when explicitly requested
4738      if test "x$enable_dependency_tracking" = xyes; then
4739        continue
4740      else
4741        break
4742      fi
4743      ;;
4744    none) break ;;
4745    esac
4746    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4747    # mode.  It turns out that the SunPro C++ compiler does not properly
4748    # handle `-M -o', and we need to detect this.
4749    if depmode=$depmode \
4750       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4751       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4752       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4753         >/dev/null 2>conftest.err &&
4754       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4755       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4756       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4757      # icc doesn't choke on unknown options, it will just issue warnings
4758      # or remarks (even with -Werror).  So we grep stderr for any message
4759      # that says an option was ignored or not supported.
4760      # When given -MP, icc 7.0 and 7.1 complain thusly:
4761      #   icc: Command line warning: ignoring option '-M'; no argument required
4762      # The diagnosis changed in icc 8.0:
4763      #   icc: Command line remark: option '-MP' not supported
4764      if (grep 'ignoring option' conftest.err ||
4765          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4766        am_cv_CC_dependencies_compiler_type=$depmode
4767        break
4768      fi
4769    fi
4770  done
4771
4772  cd ..
4773  rm -rf conftest.dir
4774else
4775  am_cv_CC_dependencies_compiler_type=none
4776fi
4777
4778fi
4779echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4780echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4781CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4782
4783
4784
4785if
4786  test "x$enable_dependency_tracking" != xno \
4787  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4788  am__fastdepCC_TRUE=
4789  am__fastdepCC_FALSE='#'
4790else
4791  am__fastdepCC_TRUE='#'
4792  am__fastdepCC_FALSE=
4793fi
4794
4795
4796depcc="$CXX"  am_compiler_list=
4797
4798echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4799echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4800if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4801  echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4804  # We make a subdir and do the tests there.  Otherwise we can end up
4805  # making bogus files that we don't know about and never remove.  For
4806  # instance it was reported that on HP-UX the gcc test will end up
4807  # making a dummy file named `D' -- because `-MD' means `put the output
4808  # in D'.
4809  mkdir conftest.dir
4810  # Copy depcomp to subdir because otherwise we won't find it if we're
4811  # using a relative directory.
4812  cp "$am_depcomp" conftest.dir
4813  cd conftest.dir
4814  # We will build objects and dependencies in a subdirectory because
4815  # it helps to detect inapplicable dependency modes.  For instance
4816  # both Tru64's cc and ICC support -MD to output dependencies as a
4817  # side effect of compilation, but ICC will put the dependencies in
4818  # the current directory while Tru64 will put them in the object
4819  # directory.
4820  mkdir sub
4821
4822  am_cv_CXX_dependencies_compiler_type=none
4823  if test "$am_compiler_list" = ""; then
4824     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4825  fi
4826  for depmode in $am_compiler_list; do
4827    # Setup a source with many dependencies, because some compilers
4828    # like to wrap large dependency lists on column 80 (with \), and
4829    # we should not choose a depcomp mode which is confused by this.
4830    #
4831    # We need to recreate these files for each test, as the compiler may
4832    # overwrite some of them when testing with obscure command lines.
4833    # This happens at least with the AIX C compiler.
4834    : > sub/conftest.c
4835    for i in 1 2 3 4 5 6; do
4836      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4837      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4838      # Solaris 8's {/usr,}/bin/sh.
4839      touch sub/conftst$i.h
4840    done
4841    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4842
4843    case $depmode in
4844    nosideeffect)
4845      # after this tag, mechanisms are not by side-effect, so they'll
4846      # only be used when explicitly requested
4847      if test "x$enable_dependency_tracking" = xyes; then
4848        continue
4849      else
4850        break
4851      fi
4852      ;;
4853    none) break ;;
4854    esac
4855    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4856    # mode.  It turns out that the SunPro C++ compiler does not properly
4857    # handle `-M -o', and we need to detect this.
4858    if depmode=$depmode \
4859       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4860       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4862         >/dev/null 2>conftest.err &&
4863       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4864       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4865       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4866      # icc doesn't choke on unknown options, it will just issue warnings
4867      # or remarks (even with -Werror).  So we grep stderr for any message
4868      # that says an option was ignored or not supported.
4869      # When given -MP, icc 7.0 and 7.1 complain thusly:
4870      #   icc: Command line warning: ignoring option '-M'; no argument required
4871      # The diagnosis changed in icc 8.0:
4872      #   icc: Command line remark: option '-MP' not supported
4873      if (grep 'ignoring option' conftest.err ||
4874          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4875        am_cv_CXX_dependencies_compiler_type=$depmode
4876        break
4877      fi
4878    fi
4879  done
4880
4881  cd ..
4882  rm -rf conftest.dir
4883else
4884  am_cv_CXX_dependencies_compiler_type=none
4885fi
4886
4887fi
4888echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4889echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4890CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4891
4892
4893
4894if
4895  test "x$enable_dependency_tracking" != xno \
4896  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4897  am__fastdepCXX_TRUE=
4898  am__fastdepCXX_FALSE='#'
4899else
4900  am__fastdepCXX_TRUE='#'
4901  am__fastdepCXX_FALSE=
4902fi
4903
4904
4905
4906if test "x$CC" != xcc; then
4907  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4908echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4909else
4910  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4911echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4912fi
4913set dummy $CC; ac_cc=`echo $2 |
4914                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4915if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918  cat >conftest.$ac_ext <<_ACEOF
4919/* confdefs.h.  */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
4923/* end confdefs.h.  */
4924
4925int
4926main ()
4927{
4928
4929  ;
4930  return 0;
4931}
4932_ACEOF
4933# Make sure it works both with $CC and with simple cc.
4934# We do the test twice because some compilers refuse to overwrite an
4935# existing .o file with -o, though they will create one.
4936ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4937if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938  (eval $ac_try) 2>&5
4939  ac_status=$?
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } &&
4942   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943  (eval $ac_try) 2>&5
4944  ac_status=$?
4945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); };
4947then
4948  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4949  if test "x$CC" != xcc; then
4950    # Test first that cc exists at all.
4951    if { ac_try='cc -c conftest.$ac_ext >&5'
4952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953  (eval $ac_try) 2>&5
4954  ac_status=$?
4955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); }; }; then
4957      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4958      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959  (eval $ac_try) 2>&5
4960  ac_status=$?
4961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962  (exit $ac_status); } &&
4963         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964  (eval $ac_try) 2>&5
4965  ac_status=$?
4966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); };
4968      then
4969        # cc works too.
4970        :
4971      else
4972        # cc exists but doesn't like -o.
4973        eval ac_cv_prog_cc_${ac_cc}_c_o=no
4974      fi
4975    fi
4976  fi
4977else
4978  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4979fi
4980rm -f conftest*
4981
4982fi
4983if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4984  echo "$as_me:$LINENO: result: yes" >&5
4985echo "${ECHO_T}yes" >&6
4986else
4987  echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6
4989
4990cat >>confdefs.h <<\_ACEOF
4991#define NO_MINUS_C_MINUS_O 1
4992_ACEOF
4993
4994fi
4995
4996# FIXME: we rely on the cache variable name because
4997# there is no other way.
4998set dummy $CC
4999ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5000if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5001   # Losing compiler, so override with the script.
5002   # FIXME: It is wrong to rewrite CC.
5003   # But if we don't then we get into trouble of one sort or another.
5004   # A longer-term fix would be to have automake use am__CC in this case,
5005   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5006   CC="$am_aux_dir/compile $CC"
5007fi
5008
5009{
5010
5011
5012
5013# START
5014
5015# Test if force_shared has been set
5016if test "x" = xforce_shared; then
5017  if test x$enable_shared = xno; then
5018    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5019echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5020   { (exit 1); exit 1; }; }
5021  fi
5022  enable_shared=yes;
5023else
5024  # On Cygwin and AIX, building DLLs doesn't work
5025  case $build in
5026    *-cygwin*)
5027      coin_disable_shared=yes
5028      platform=Cygwin
5029    ;;
5030    *-aix*)
5031      coin_disable_shared=yes
5032      platform=AIX
5033    ;;
5034    *-mingw*)
5035      coin_disable_shared=yes
5036      platform="Msys"
5037#      case "$CXX" in
5038#        cl*)
5039#          coin_disable_shared=yes
5040#          platform="Msys with cl"
5041#      ;;
5042#      esac
5043    ;;
5044  esac
5045fi
5046if test x"$coin_disable_shared" = xyes; then
5047  if test x"$enable_shared" = xyes; then
5048    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5049echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5050  fi
5051  enable_shared=no
5052fi
5053# By default, we only want the shared objects to be compiled
5054# Check whether --enable-static or --disable-static was given.
5055if test "${enable_static+set}" = set; then
5056  enableval="$enable_static"
5057  p=${PACKAGE-default}
5058    case $enableval in
5059    yes) enable_static=yes ;;
5060    no) enable_static=no ;;
5061    *)
5062     enable_static=no
5063      # Look at the argument we got.  We use all the common list separators.
5064      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5065      for pkg in $enableval; do
5066        IFS="$lt_save_ifs"
5067        if test "X$pkg" = "X$p"; then
5068          enable_static=yes
5069        fi
5070      done
5071      IFS="$lt_save_ifs"
5072      ;;
5073    esac
5074else
5075  enable_static=no
5076fi;
5077
5078
5079
5080
5081# Initialize automake
5082echo "$as_me:$LINENO: checking for egrep" >&5
5083echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5084if test "${ac_cv_prog_egrep+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5088    then ac_cv_prog_egrep='grep -E'
5089    else ac_cv_prog_egrep='egrep'
5090    fi
5091fi
5092echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5093echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5094 EGREP=$ac_cv_prog_egrep
5095
5096
5097echo "$as_me:$LINENO: checking whether ln -s works" >&5
5098echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5099LN_S=$as_ln_s
5100if test "$LN_S" = "ln -s"; then
5101  echo "$as_me:$LINENO: result: yes" >&5
5102echo "${ECHO_T}yes" >&6
5103else
5104  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5105echo "${ECHO_T}no, using $LN_S" >&6
5106fi
5107
5108
5109
5110
5111# AC_MSG_NOTICE([Beginning automake initialisation.])
5112# Stuff for automake
5113# test to see if srcdir already configured
5114if test "`cd $srcdir && pwd`" != "`pwd`" &&
5115   test -f $srcdir/config.status; then
5116  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5117echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5118   { (exit 1); exit 1; }; }
5119fi
5120
5121# test whether we have cygpath
5122if test -z "$CYGPATH_W"; then
5123  if (cygpath --version) >/dev/null 2>/dev/null; then
5124    CYGPATH_W='cygpath -w'
5125  else
5126    CYGPATH_W=echo
5127  fi
5128fi
5129
5130
5131# Define the identity of the package.
5132 PACKAGE='thirdpartyscip'
5133 VERSION='1.0'
5134
5135
5136cat >>confdefs.h <<_ACEOF
5137#define PACKAGE "$PACKAGE"
5138_ACEOF
5139
5140
5141cat >>confdefs.h <<_ACEOF
5142#define VERSION "$VERSION"
5143_ACEOF
5144
5145# Some tools Automake needs.
5146
5147ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5148
5149
5150AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5151
5152
5153AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5154
5155
5156AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5157
5158
5159MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5160
5161install_sh=${install_sh-"$am_aux_dir/install-sh"}
5162
5163# Installed binaries are usually stripped using `strip' when the user
5164# run `make install-strip'.  However `strip' might not be the right
5165# tool to use in cross-compilation environments, therefore Automake
5166# will honor the `STRIP' environment variable to overrule this program.
5167if test "$cross_compiling" != no; then
5168  if test -n "$ac_tool_prefix"; then
5169  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5170set dummy ${ac_tool_prefix}strip; ac_word=$2
5171echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173if test "${ac_cv_prog_STRIP+set}" = set; then
5174  echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176  if test -n "$STRIP"; then
5177  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182  IFS=$as_save_IFS
5183  test -z "$as_dir" && as_dir=.
5184  for ac_exec_ext in '' $ac_executable_extensions; do
5185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188    break 2
5189  fi
5190done
5191done
5192
5193fi
5194fi
5195STRIP=$ac_cv_prog_STRIP
5196if test -n "$STRIP"; then
5197  echo "$as_me:$LINENO: result: $STRIP" >&5
5198echo "${ECHO_T}$STRIP" >&6
5199else
5200  echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202fi
5203
5204fi
5205if test -z "$ac_cv_prog_STRIP"; then
5206  ac_ct_STRIP=$STRIP
5207  # Extract the first word of "strip", so it can be a program name with args.
5208set dummy strip; ac_word=$2
5209echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5212  echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214  if test -n "$ac_ct_STRIP"; then
5215  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220  IFS=$as_save_IFS
5221  test -z "$as_dir" && as_dir=.
5222  for ac_exec_ext in '' $ac_executable_extensions; do
5223  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224    ac_cv_prog_ac_ct_STRIP="strip"
5225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226    break 2
5227  fi
5228done
5229done
5230
5231  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5232fi
5233fi
5234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5235if test -n "$ac_ct_STRIP"; then
5236  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5237echo "${ECHO_T}$ac_ct_STRIP" >&6
5238else
5239  echo "$as_me:$LINENO: result: no" >&5
5240echo "${ECHO_T}no" >&6
5241fi
5242
5243  STRIP=$ac_ct_STRIP
5244else
5245  STRIP="$ac_cv_prog_STRIP"
5246fi
5247
5248fi
5249INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5250
5251# We need awk for the "check" target.  The system "awk" is bad on
5252# some platforms.
5253# Always define AMTAR for backward compatibility.
5254
5255AMTAR=${AMTAR-"${am_missing_run}tar"}
5256
5257am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5258
5259
5260
5261
5262depcc="$CC"   am_compiler_list=
5263
5264echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5265echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5266if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5267  echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270  # We make a subdir and do the tests there.  Otherwise we can end up
5271  # making bogus files that we don't know about and never remove.  For
5272  # instance it was reported that on HP-UX the gcc test will end up
5273  # making a dummy file named `D' -- because `-MD' means `put the output
5274  # in D'.
5275  mkdir conftest.dir
5276  # Copy depcomp to subdir because otherwise we won't find it if we're
5277  # using a relative directory.
5278  cp "$am_depcomp" conftest.dir
5279  cd conftest.dir
5280  # We will build objects and dependencies in a subdirectory because
5281  # it helps to detect inapplicable dependency modes.  For instance
5282  # both Tru64's cc and ICC support -MD to output dependencies as a
5283  # side effect of compilation, but ICC will put the dependencies in
5284  # the current directory while Tru64 will put them in the object
5285  # directory.
5286  mkdir sub
5287
5288  am_cv_CC_dependencies_compiler_type=none
5289  if test "$am_compiler_list" = ""; then
5290     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5291  fi
5292  for depmode in $am_compiler_list; do
5293    # Setup a source with many dependencies, because some compilers
5294    # like to wrap large dependency lists on column 80 (with \), and
5295    # we should not choose a depcomp mode which is confused by this.
5296    #
5297    # We need to recreate these files for each test, as the compiler may
5298    # overwrite some of them when testing with obscure command lines.
5299    # This happens at least with the AIX C compiler.
5300    : > sub/conftest.c
5301    for i in 1 2 3 4 5 6; do
5302      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5303      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5304      # Solaris 8's {/usr,}/bin/sh.
5305      touch sub/conftst$i.h
5306    done
5307    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5308
5309    case $depmode in
5310    nosideeffect)
5311      # after this tag, mechanisms are not by side-effect, so they'll
5312      # only be used when explicitly requested
5313      if test "x$enable_dependency_tracking" = xyes; then
5314        continue
5315      else
5316        break
5317      fi
5318      ;;
5319    none) break ;;
5320    esac
5321    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5322    # mode.  It turns out that the SunPro C++ compiler does not properly
5323    # handle `-M -o', and we need to detect this.
5324    if depmode=$depmode \
5325       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5326       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5327       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5328         >/dev/null 2>conftest.err &&
5329       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5330       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5331       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5332      # icc doesn't choke on unknown options, it will just issue warnings
5333      # or remarks (even with -Werror).  So we grep stderr for any message
5334      # that says an option was ignored or not supported.
5335      # When given -MP, icc 7.0 and 7.1 complain thusly:
5336      #   icc: Command line warning: ignoring option '-M'; no argument required
5337      # The diagnosis changed in icc 8.0:
5338      #   icc: Command line remark: option '-MP' not supported
5339      if (grep 'ignoring option' conftest.err ||
5340          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5341        am_cv_CC_dependencies_compiler_type=$depmode
5342        break
5343      fi
5344    fi
5345  done
5346
5347  cd ..
5348  rm -rf conftest.dir
5349else
5350  am_cv_CC_dependencies_compiler_type=none
5351fi
5352
5353fi
5354echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5355echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5356CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5357
5358
5359
5360if
5361  test "x$enable_dependency_tracking" != xno \
5362  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5363  am__fastdepCC_TRUE=
5364  am__fastdepCC_FALSE='#'
5365else
5366  am__fastdepCC_TRUE='#'
5367  am__fastdepCC_FALSE=
5368fi
5369
5370
5371depcc="$CXX"  am_compiler_list=
5372
5373echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5374echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5375if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5376  echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5379  # We make a subdir and do the tests there.  Otherwise we can end up
5380  # making bogus files that we don't know about and never remove.  For
5381  # instance it was reported that on HP-UX the gcc test will end up
5382  # making a dummy file named `D' -- because `-MD' means `put the output
5383  # in D'.
5384  mkdir conftest.dir
5385  # Copy depcomp to subdir because otherwise we won't find it if we're
5386  # using a relative directory.
5387  cp "$am_depcomp" conftest.dir
5388  cd conftest.dir
5389  # We will build objects and dependencies in a subdirectory because
5390  # it helps to detect inapplicable dependency modes.  For instance
5391  # both Tru64's cc and ICC support -MD to output dependencies as a
5392  # side effect of compilation, but ICC will put the dependencies in
5393  # the current directory while Tru64 will put them in the object
5394  # directory.
5395  mkdir sub
5396
5397  am_cv_CXX_dependencies_compiler_type=none
5398  if test "$am_compiler_list" = ""; then
5399     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5400  fi
5401  for depmode in $am_compiler_list; do
5402    # Setup a source with many dependencies, because some compilers
5403    # like to wrap large dependency lists on column 80 (with \), and
5404    # we should not choose a depcomp mode which is confused by this.
5405    #
5406    # We need to recreate these files for each test, as the compiler may
5407    # overwrite some of them when testing with obscure command lines.
5408    # This happens at least with the AIX C compiler.
5409    : > sub/conftest.c
5410    for i in 1 2 3 4 5 6; do
5411      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5412      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5413      # Solaris 8's {/usr,}/bin/sh.
5414      touch sub/conftst$i.h
5415    done
5416    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5417
5418    case $depmode in
5419    nosideeffect)
5420      # after this tag, mechanisms are not by side-effect, so they'll
5421      # only be used when explicitly requested
5422      if test "x$enable_dependency_tracking" = xyes; then
5423        continue
5424      else
5425        break
5426      fi
5427      ;;
5428    none) break ;;
5429    esac
5430    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5431    # mode.  It turns out that the SunPro C++ compiler does not properly
5432    # handle `-M -o', and we need to detect this.
5433    if depmode=$depmode \
5434       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5435       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5436       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5437         >/dev/null 2>conftest.err &&
5438       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5439       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5440       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5441      # icc doesn't choke on unknown options, it will just issue warnings
5442      # or remarks (even with -Werror).  So we grep stderr for any message
5443      # that says an option was ignored or not supported.
5444      # When given -MP, icc 7.0 and 7.1 complain thusly:
5445      #   icc: Command line warning: ignoring option '-M'; no argument required
5446      # The diagnosis changed in icc 8.0:
5447      #   icc: Command line remark: option '-MP' not supported
5448      if (grep 'ignoring option' conftest.err ||
5449          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5450        am_cv_CXX_dependencies_compiler_type=$depmode
5451        break
5452      fi
5453    fi
5454  done
5455
5456  cd ..
5457  rm -rf conftest.dir
5458else
5459  am_cv_CXX_dependencies_compiler_type=none
5460fi
5461
5462fi
5463echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5464echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5465CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5466
5467
5468
5469if
5470  test "x$enable_dependency_tracking" != xno \
5471  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5472  am__fastdepCXX_TRUE=
5473  am__fastdepCXX_FALSE='#'
5474else
5475  am__fastdepCXX_TRUE='#'
5476  am__fastdepCXX_FALSE=
5477fi
5478
5479
5480
5481echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5482echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5483    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5484if test "${enable_maintainer_mode+set}" = set; then
5485  enableval="$enable_maintainer_mode"
5486  USE_MAINTAINER_MODE=$enableval
5487else
5488  USE_MAINTAINER_MODE=no
5489fi;
5490  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5491echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5492
5493
5494if test $USE_MAINTAINER_MODE = yes; then
5495  MAINTAINER_MODE_TRUE=
5496  MAINTAINER_MODE_FALSE='#'
5497else
5498  MAINTAINER_MODE_TRUE='#'
5499  MAINTAINER_MODE_FALSE=
5500fi
5501
5502  MAINT=$MAINTAINER_MODE_TRUE
5503
5504
5505
5506coin_have_externals=no
5507if test "$enable_maintainer_mode" = yes; then
5508
5509  # If maintainer mode is chosen, we make sure that the correct versions
5510  # of the tools are used, and that we know where libtool.m4 is (to
5511  # recreate acinclude.m4)
5512
5513
5514  LIBTOOLM4=
5515  # Normally, $HOME
5516  AUTOTOOLS_DFLT=$HOME
5517
5518  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5519echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5520if test "${ac_cv_use_correct_autotools+set}" = set; then
5521  echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523  ac_cv_use_correct_autotools=check
5524fi
5525echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5526echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5527
5528  if test $ac_cv_use_correct_autotools = check; then
5529    ac_cv_use_correct_autotools=yes
5530    # Check if we have autoconf
5531    # Extract the first word of "autoconf", so it can be a program name with args.
5532set dummy autoconf; ac_word=$2
5533echo "$as_me:$LINENO: checking for $ac_word" >&5
5534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535if test "${ac_cv_prog_have_autoconf+set}" = set; then
5536  echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538  if test -n "$have_autoconf"; then
5539  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544  IFS=$as_save_IFS
5545  test -z "$as_dir" && as_dir=.
5546  for ac_exec_ext in '' $ac_executable_extensions; do
5547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548    ac_cv_prog_have_autoconf="yes"
5549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550    break 2
5551  fi
5552done
5553done
5554
5555  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5556fi
5557fi
5558have_autoconf=$ac_cv_prog_have_autoconf
5559if test -n "$have_autoconf"; then
5560  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5561echo "${ECHO_T}$have_autoconf" >&6
5562else
5563  echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565fi
5566
5567    if test $have_autoconf = no; then
5568      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5569echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5570   { (exit 1); exit 1; }; }
5571    fi
5572
5573    # Check whether autoconf is the correct version
5574    correct_version='2.59'
5575    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5576    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5577echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5578    autoconf --version > confauto.out 2>&1
5579    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5580      echo "$as_me:$LINENO: result: yes" >&5
5581echo "${ECHO_T}yes" >&6
5582    else
5583      rm -f confauto.out
5584      echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
5586      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5587echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5588   { (exit 1); exit 1; }; }
5589    fi
5590    rm -f confauto.out
5591
5592    # Check if the executable autoconf is picked up from the correct location
5593    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5594echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5595    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5596    autoconf_dir=`cd $autoconf_dir; pwd`
5597    if test x$AUTOTOOLS_DIR = x; then
5598      want_dir=$AUTOTOOLS_DFLT/bin
5599    else
5600      want_dir=$AUTOTOOLS_DIR/bin
5601    fi
5602    if test $autoconf_dir = `cd $want_dir; pwd`; then
5603      echo "$as_me:$LINENO: result: yes" >&5
5604echo "${ECHO_T}yes" >&6
5605    else
5606      rm -f confauto.out
5607      echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5610echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5611   { (exit 1); exit 1; }; }
5612    fi
5613
5614    # Check if we have automake
5615    # Extract the first word of "automake", so it can be a program name with args.
5616set dummy automake; ac_word=$2
5617echo "$as_me:$LINENO: checking for $ac_word" >&5
5618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5619if test "${ac_cv_prog_have_automake+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  if test -n "$have_automake"; then
5623  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630  for ac_exec_ext in '' $ac_executable_extensions; do
5631  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632    ac_cv_prog_have_automake="yes"
5633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637done
5638
5639  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5640fi
5641fi
5642have_automake=$ac_cv_prog_have_automake
5643if test -n "$have_automake"; then
5644  echo "$as_me:$LINENO: result: $have_automake" >&5
5645echo "${ECHO_T}$have_automake" >&6
5646else
5647  echo "$as_me:$LINENO: result: no" >&5
5648echo "${ECHO_T}no" >&6
5649fi
5650
5651    if test $have_automake = no; then
5652      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5653echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5654   { (exit 1); exit 1; }; }
5655    fi
5656
5657    # Check whether automake is the correct version
5658    correct_version='1.9.6'
5659    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5660    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5661echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5662    automake --version > confauto.out 2>&1
5663    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5664      echo "$as_me:$LINENO: result: yes" >&5
5665echo "${ECHO_T}yes" >&6
5666    else
5667      rm -f confauto.out
5668      echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5671echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5672   { (exit 1); exit 1; }; }
5673    fi
5674    rm -f confauto.out
5675
5676    # Check if the executable automake is picked up from the correct location
5677    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5678echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5679    automake_dir=`which automake | sed -e 's=/automake=='`
5680    automake_dir=`cd $automake_dir; pwd`
5681    if test x$AUTOTOOLS_DIR = x; then
5682      want_dir=$AUTOTOOLS_DFLT/bin
5683    else
5684      want_dir=$AUTOTOOLS_DIR/bin
5685    fi
5686    if test $automake_dir = `cd $want_dir; pwd`; then
5687      echo "$as_me:$LINENO: result: yes" >&5
5688echo "${ECHO_T}yes" >&6
5689    else
5690      rm -f confauto.out
5691      echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5694echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5695   { (exit 1); exit 1; }; }
5696    fi
5697
5698    # Check if this is the correct version of libtool (with escaped dots)
5699    if test x$AUTOTOOLS_DIR = x; then
5700      want_dir=$AUTOTOOLS_DFLT/share
5701    else
5702      want_dir=$AUTOTOOLS_DIR/share
5703    fi
5704    correct_version='1.5.22'
5705    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5706    if test -r $want_dir/libtool/ltmain.sh; then
5707  have_ltmain=yes
5708  :
5709else
5710  have_ltmain=no
5711  :
5712fi
5713
5714    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5715echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5716    if test $have_ltmain = yes; then
5717    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5718        echo "$as_me:$LINENO: result: yes" >&5
5719echo "${ECHO_T}yes" >&6
5720      else
5721        echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
5723        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5724echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5725   { (exit 1); exit 1; }; }
5726      fi
5727    else
5728      echo "$as_me:$LINENO: result: no" >&5
5729echo "${ECHO_T}no" >&6
5730      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5731echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5732   { (exit 1); exit 1; }; }
5733    fi
5734  fi
5735
5736  # Check if we can find the libtool file
5737  if test x$AUTOTOOLS_DIR = x; then
5738    want_dir=$AUTOTOOLS_DFLT/share
5739  else
5740    want_dir=$AUTOTOOLS_DIR/share
5741  fi
5742  if test -r $want_dir/aclocal/libtool.m4; then
5743  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5744  :
5745else
5746  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5747echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5748   { (exit 1); exit 1; }; }
5749  :
5750fi
5751
5752
5753  # Check if we have an Dependencies file
5754  if test -r $srcdir/Dependencies; then
5755    coin_have_externals=yes
5756  fi
5757  # Check if subversion is installed and understands https
5758  # Extract the first word of "svn", so it can be a program name with args.
5759set dummy svn; ac_word=$2
5760echo "$as_me:$LINENO: checking for $ac_word" >&5
5761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762if test "${ac_cv_prog_have_svn+set}" = set; then
5763  echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765  if test -n "$have_svn"; then
5766  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771  IFS=$as_save_IFS
5772  test -z "$as_dir" && as_dir=.
5773  for ac_exec_ext in '' $ac_executable_extensions; do
5774  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775    ac_cv_prog_have_svn="yes"
5776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777    break 2
5778  fi
5779done
5780done
5781
5782  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5783fi
5784fi
5785have_svn=$ac_cv_prog_have_svn
5786if test -n "$have_svn"; then
5787  echo "$as_me:$LINENO: result: $have_svn" >&5
5788echo "${ECHO_T}$have_svn" >&6
5789else
5790  echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792fi
5793
5794  if test x$have_svn = xyes; then
5795    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5796echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5797if test "${ac_cv_svn_understands_https+set}" = set; then
5798  echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800  svn --version > confauto.out 2>&1
5801                    if $EGREP https confauto.out >/dev/null 2>&1; then
5802                      ac_cv_svn_understands_https=yes
5803                    else
5804                      ac_cv_svn_understands_https=no
5805                      have_svn=no
5806                      ac_cv_prog_have_svn=no
5807                    fi
5808                    rm -f confauto.out
5809fi
5810echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5811echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5812  fi
5813
5814  # Find the location of the BuildTools directory
5815  BUILDTOOLSDIR=
5816  if test -r $srcdir/BuildTools/coin.m4; then
5817    BUILDTOOLSDIR=$srcdir/BuildTools
5818  else
5819    if test -r $srcdir/../BuildTools/coin.m4; then
5820      BUILDTOOLSDIR=$srcdir/../BuildTools
5821    else
5822      if test -r $srcdir/../../BuildTools/coin.m4; then
5823        BUILDTOOLSDIR=$srcdir/../../BuildTools
5824      else
5825        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5826echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5827   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5828      fi
5829    fi
5830  fi
5831
5832
5833  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5834  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5835    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5836  fi
5837
5838  # The following variable is set to the name of the directory where
5839  # the autotool scripts are located
5840
5841  AUX_DIR=$ac_aux_dir
5842fi
5843
5844# helpful variable for the base directory of this package
5845abs_source_dir=`cd $srcdir; pwd`
5846
5847
5848# Stuff for example Makefiles
5849if test x$prefix = xNONE; then
5850  full_prefix=$ac_default_prefix
5851else
5852  full_prefix=$prefix
5853fi
5854full_prefix=`cd $full_prefix ; pwd`
5855
5856abs_lib_dir=$full_prefix/lib
5857
5858abs_include_dir=$full_prefix/include
5859
5860abs_bin_dir=$full_prefix/bin
5861
5862
5863
5864if test $coin_have_externals = yes && test x$have_svn = xyes; then
5865  HAVE_EXTERNALS_TRUE=
5866  HAVE_EXTERNALS_FALSE='#'
5867else
5868  HAVE_EXTERNALS_TRUE='#'
5869  HAVE_EXTERNALS_FALSE=
5870fi
5871
5872
5873# AC_MSG_NOTICE([End automake initialisation.])
5874
5875
5876
5877LIBTOOL=
5878if test -r ../libtool; then
5879  coin_config_dir=..
5880  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5881fi
5882if test "x$LIBTOOL" = x; then
5883  if test -r ../../libtool; then
5884    coin_config_dir=../..
5885    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5886  fi
5887fi
5888
5889if test "x$LIBTOOL" = x; then
5890# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5891  # Stuff for libtool
5892  # Check whether --enable-shared or --disable-shared was given.
5893if test "${enable_shared+set}" = set; then
5894  enableval="$enable_shared"
5895  p=${PACKAGE-default}
5896    case $enableval in
5897    yes) enable_shared=yes ;;
5898    no) enable_shared=no ;;
5899    *)
5900      enable_shared=no
5901      # Look at the argument we got.  We use all the common list separators.
5902      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5903      for pkg in $enableval; do
5904        IFS="$lt_save_ifs"
5905        if test "X$pkg" = "X$p"; then
5906          enable_shared=yes
5907        fi
5908      done
5909      IFS="$lt_save_ifs"
5910      ;;
5911    esac
5912else
5913  enable_shared=yes
5914fi;
5915
5916# Check whether --enable-fast-install or --disable-fast-install was given.
5917if test "${enable_fast_install+set}" = set; then
5918  enableval="$enable_fast_install"
5919  p=${PACKAGE-default}
5920    case $enableval in
5921    yes) enable_fast_install=yes ;;
5922    no) enable_fast_install=no ;;
5923    *)
5924      enable_fast_install=no
5925      # Look at the argument we got.  We use all the common list separators.
5926      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5927      for pkg in $enableval; do
5928        IFS="$lt_save_ifs"
5929        if test "X$pkg" = "X$p"; then
5930          enable_fast_install=yes
5931        fi
5932      done
5933      IFS="$lt_save_ifs"
5934      ;;
5935    esac
5936else
5937  enable_fast_install=yes
5938fi;
5939
5940echo "$as_me:$LINENO: checking host system type" >&5
5941echo $ECHO_N "checking host system type... $ECHO_C" >&6
5942if test "${ac_cv_host+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  ac_cv_host_alias=$host_alias
5946test -z "$ac_cv_host_alias" &&
5947  ac_cv_host_alias=$ac_cv_build_alias
5948ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5949  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5950echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5951   { (exit 1); exit 1; }; }
5952
5953fi
5954echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5955echo "${ECHO_T}$ac_cv_host" >&6
5956host=$ac_cv_host
5957host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5958host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5959host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5960
5961
5962echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5963echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5964if test "${lt_cv_path_SED+set}" = set; then
5965  echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967  # Loop through the user's path and test for sed and gsed.
5968# Then use that list of sed's as ones to test for truncation.
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972  IFS=$as_save_IFS
5973  test -z "$as_dir" && as_dir=.
5974  for lt_ac_prog in sed gsed; do
5975    for ac_exec_ext in '' $ac_executable_extensions; do
5976      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5977        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5978      fi
5979    done
5980  done
5981done
5982lt_ac_max=0
5983lt_ac_count=0
5984# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5985# along with /bin/sed that truncates output.
5986for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5987  test ! -f $lt_ac_sed && continue
5988  cat /dev/null > conftest.in
5989  lt_ac_count=0
5990  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5991  # Check for GNU sed and select it if it is found.
5992  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5993    lt_cv_path_SED=$lt_ac_sed
5994    break
5995  fi
5996  while true; do
5997    cat conftest.in conftest.in >conftest.tmp
5998    mv conftest.tmp conftest.in
5999    cp conftest.in conftest.nl
6000    echo >>conftest.nl
6001    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6002    cmp -s conftest.out conftest.nl || break
6003    # 10000 chars as input seems more than enough
6004    test $lt_ac_count -gt 10 && break
6005    lt_ac_count=`expr $lt_ac_count + 1`
6006    if test $lt_ac_count -gt $lt_ac_max; then
6007      lt_ac_max=$lt_ac_count
6008      lt_cv_path_SED=$lt_ac_sed
6009    fi
6010  done
6011done
6012
6013fi
6014
6015SED=$lt_cv_path_SED
6016echo "$as_me:$LINENO: result: $SED" >&5
6017echo "${ECHO_T}$SED" >&6
6018
6019
6020# Check whether --with-gnu-ld or --without-gnu-ld was given.
6021if test "${with_gnu_ld+set}" = set; then
6022  withval="$with_gnu_ld"
6023  test "$withval" = no || with_gnu_ld=yes
6024else
6025  with_gnu_ld=no
6026fi;
6027ac_prog=ld
6028if test "$GCC" = yes; then
6029  # Check if gcc -print-prog-name=ld gives a path.
6030  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6031echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6032  case $host in
6033  *-*-mingw*)
6034    # gcc leaves a trailing carriage return which upsets mingw
6035    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6036  *)
6037    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6038  esac
6039  case $ac_prog in
6040    # Accept absolute paths.
6041    [\\/]* | ?:[\\/]*)
6042      re_direlt='/[^/][^/]*/\.\./'
6043      # Canonicalize the pathname of ld
6044      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6045      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6046        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6047      done
6048      test -z "$LD" && LD="$ac_prog"
6049      ;;
6050  "")
6051    # If it fails, then pretend we aren't using GCC.
6052    ac_prog=ld
6053    ;;
6054  *)
6055    # If it is relative, then search for the first ld in PATH.
6056    with_gnu_ld=unknown
6057    ;;
6058  esac
6059elif test "$with_gnu_ld" = yes; then
6060  echo "$as_me:$LINENO: checking for GNU ld" >&5
6061echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6062else
6063  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6064echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6065fi
6066if test "${lt_cv_path_LD+set}" = set; then
6067  echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069  if test -z "$LD"; then
6070  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6071  for ac_dir in $PATH; do
6072    IFS="$lt_save_ifs"
6073    test -z "$ac_dir" && ac_dir=.
6074    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6075      lt_cv_path_LD="$ac_dir/$ac_prog"
6076      # Check to see if the program is GNU ld.  I'd rather use --version,
6077      # but apparently some variants of GNU ld only accept -v.
6078      # Break only if it was the GNU/non-GNU ld that we prefer.
6079      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6080      *GNU* | *'with BFD'*)
6081        test "$with_gnu_ld" != no && break
6082        ;;
6083      *)
6084        test "$with_gnu_ld" != yes && break
6085        ;;
6086      esac
6087    fi
6088  done
6089  IFS="$lt_save_ifs"
6090else
6091  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6092fi
6093fi
6094
6095LD="$lt_cv_path_LD"
6096if test -n "$LD"; then
6097  echo "$as_me:$LINENO: result: $LD" >&5
6098echo "${ECHO_T}$LD" >&6
6099else
6100  echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102fi
6103test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6104echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6105   { (exit 1); exit 1; }; }
6106echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6107echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6108if test "${lt_cv_prog_gnu_ld+set}" = set; then
6109  echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6112case `$LD -v 2>&1 </dev/null` in
6113*GNU* | *'with BFD'*)
6114  lt_cv_prog_gnu_ld=yes
6115  ;;
6116*)
6117  lt_cv_prog_gnu_ld=no
6118  ;;
6119esac
6120fi
6121echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6122echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6123with_gnu_ld=$lt_cv_prog_gnu_ld
6124
6125
6126echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6127echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6128if test "${lt_cv_ld_reload_flag+set}" = set; then
6129  echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131  lt_cv_ld_reload_flag='-r'
6132fi
6133echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6134echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6135reload_flag=$lt_cv_ld_reload_flag
6136case $reload_flag in
6137"" | " "*) ;;
6138*) reload_flag=" $reload_flag" ;;
6139esac
6140reload_cmds='$LD$reload_flag -o $output$reload_objs'
6141case $host_os in
6142  darwin*)
6143    if test "$GCC" = yes; then
6144      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6145    else
6146      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6147    fi
6148    ;;
6149esac
6150
6151echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6152echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6153if test "${lt_cv_path_NM+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  if test -n "$NM"; then
6157  # Let the user override the test.
6158  lt_cv_path_NM="$NM"
6159else
6160  lt_nm_to_check="${ac_tool_prefix}nm"
6161  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6162    lt_nm_to_check="$lt_nm_to_check nm"
6163  fi
6164  for lt_tmp_nm in $lt_nm_to_check; do
6165    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6166    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6167      IFS="$lt_save_ifs"
6168      test -z "$ac_dir" && ac_dir=.
6169      tmp_nm="$ac_dir/$lt_tmp_nm"
6170      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6171        # Check to see if the nm accepts a BSD-compat flag.
6172        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6173        #   nm: unknown option "B" ignored
6174        # Tru64's nm complains that /dev/null is an invalid object file
6175        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6176        */dev/null* | *'Invalid file or object type'*)
6177          lt_cv_path_NM="$tmp_nm -B"
6178          break
6179          ;;
6180        *)
6181          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6182          */dev/null*)
6183            lt_cv_path_NM="$tmp_nm -p"
6184            break
6185            ;;
6186          *)
6187            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6188            continue # so that we can try to find one that supports BSD flags
6189            ;;
6190          esac
6191          ;;
6192        esac
6193      fi
6194    done
6195    IFS="$lt_save_ifs"
6196  done
6197  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6198fi
6199fi
6200echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6201echo "${ECHO_T}$lt_cv_path_NM" >&6
6202NM="$lt_cv_path_NM"
6203
6204echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6205echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6206if test "${lt_cv_deplibs_check_method+set}" = set; then
6207  echo $ECHO_N "(cached) $ECHO_C" >&6
6208else
6209  lt_cv_file_magic_cmd='$MAGIC_CMD'
6210lt_cv_file_magic_test_file=
6211lt_cv_deplibs_check_method='unknown'
6212# Need to set the preceding variable on all platforms that support
6213# interlibrary dependencies.
6214# 'none' -- dependencies not supported.
6215# `unknown' -- same as none, but documents that we really don't know.
6216# 'pass_all' -- all dependencies passed with no checks.
6217# 'test_compile' -- check by making test program.
6218# 'file_magic [[regex]]' -- check by looking for files in library path
6219# which responds to the $file_magic_cmd with a given extended regex.
6220# If you have `file' or equivalent on your system and you're not sure
6221# whether `pass_all' will *always* work, you probably want this one.
6222
6223case $host_os in
6224aix4* | aix5*)
6225  lt_cv_deplibs_check_method=pass_all
6226  ;;
6227
6228beos*)
6229  lt_cv_deplibs_check_method=pass_all
6230  ;;
6231
6232bsdi[45]*)
6233  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6234  lt_cv_file_magic_cmd='/usr/bin/file -L'
6235  lt_cv_file_magic_test_file=/shlib/libc.so
6236  ;;
6237
6238cygwin*)
6239  # func_win32_libid is a shell function defined in ltmain.sh
6240  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6241  lt_cv_file_magic_cmd='func_win32_libid'
6242  ;;
6243
6244mingw* | pw32*)
6245  # Base MSYS/MinGW do not provide the 'file' command needed by
6246  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6247  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6248  lt_cv_file_magic_cmd='$OBJDUMP -f'
6249  ;;
6250
6251darwin* | rhapsody*)
6252  lt_cv_deplibs_check_method=pass_all
6253  ;;
6254
6255freebsd* | kfreebsd*-gnu | dragonfly*)
6256  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6257    case $host_cpu in
6258    i*86 )
6259      # Not sure whether the presence of OpenBSD here was a mistake.
6260      # Let's accept both of them until this is cleared up.
6261      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6262      lt_cv_file_magic_cmd=/usr/bin/file
6263      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6264      ;;
6265    esac
6266  else
6267    lt_cv_deplibs_check_method=pass_all
6268  fi
6269  ;;
6270
6271gnu*)
6272  lt_cv_deplibs_check_method=pass_all
6273  ;;
6274
6275hpux10.20* | hpux11*)
6276  lt_cv_file_magic_cmd=/usr/bin/file
6277  case $host_cpu in
6278  ia64*)
6279    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6280    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6281    ;;
6282  hppa*64*)
6283    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]'
6284    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6285    ;;
6286  *)
6287    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6288    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6289    ;;
6290  esac
6291  ;;
6292
6293interix3*)
6294  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6295  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6296  ;;
6297
6298irix5* | irix6* | nonstopux*)
6299  case $LD in
6300  *-32|*"-32 ") libmagic=32-bit;;
6301  *-n32|*"-n32 ") libmagic=N32;;
6302  *-64|*"-64 ") libmagic=64-bit;;
6303  *) libmagic=never-match;;
6304  esac
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308# This must be Linux ELF.
6309linux*)
6310  lt_cv_deplibs_check_method=pass_all
6311  ;;
6312
6313netbsd*)
6314  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6316  else
6317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6318  fi
6319  ;;
6320
6321newos6*)
6322  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6323  lt_cv_file_magic_cmd=/usr/bin/file
6324  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6325  ;;
6326
6327nto-qnx*)
6328  lt_cv_deplibs_check_method=unknown
6329  ;;
6330
6331openbsd*)
6332  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6333    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6334  else
6335    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336  fi
6337  ;;
6338
6339osf3* | osf4* | osf5*)
6340  lt_cv_deplibs_check_method=pass_all
6341  ;;
6342
6343solaris*)
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346
6347sysv4 | sysv4.3*)
6348  case $host_vendor in
6349  motorola)
6350    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]'
6351    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6352    ;;
6353  ncr)
6354    lt_cv_deplibs_check_method=pass_all
6355    ;;
6356  sequent)
6357    lt_cv_file_magic_cmd='/bin/file'
6358    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6359    ;;
6360  sni)
6361    lt_cv_file_magic_cmd='/bin/file'
6362    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6363    lt_cv_file_magic_test_file=/lib/libc.so
6364    ;;
6365  siemens)
6366    lt_cv_deplibs_check_method=pass_all
6367    ;;
6368  pc)
6369    lt_cv_deplibs_check_method=pass_all
6370    ;;
6371  esac
6372  ;;
6373
6374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6375  lt_cv_deplibs_check_method=pass_all
6376  ;;
6377esac
6378
6379fi
6380echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6381echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6382file_magic_cmd=$lt_cv_file_magic_cmd
6383deplibs_check_method=$lt_cv_deplibs_check_method
6384test -z "$deplibs_check_method" && deplibs_check_method=unknown
6385
6386
6387
6388
6389# If no C compiler was specified, use CC.
6390LTCC=${LTCC-"$CC"}
6391
6392# If no C compiler flags were specified, use CFLAGS.
6393LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6394
6395# Allow CC to be a program name with arguments.
6396compiler=$CC
6397
6398# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6399if test "${enable_libtool_lock+set}" = set; then
6400  enableval="$enable_libtool_lock"
6401
6402fi;
6403test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6404
6405# Some flags need to be propagated to the compiler or linker for good
6406# libtool support.
6407case $host in
6408ia64-*-hpux*)
6409  # Find out which ABI we are using.
6410  echo 'int i;' > conftest.$ac_ext
6411  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412  (eval $ac_compile) 2>&5
6413  ac_status=$?
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); }; then
6416    case `/usr/bin/file conftest.$ac_objext` in
6417    *ELF-32*)
6418      HPUX_IA64_MODE="32"
6419      ;;
6420    *ELF-64*)
6421      HPUX_IA64_MODE="64"
6422      ;;
6423    esac
6424  fi
6425  rm -rf conftest*
6426  ;;
6427*-*-irix6*)
6428  # Find out which ABI we are using.
6429  echo '#line 6429 "configure"' > conftest.$ac_ext
6430  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431  (eval $ac_compile) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }; then
6435   if test "$lt_cv_prog_gnu_ld" = yes; then
6436    case `/usr/bin/file conftest.$ac_objext` in
6437    *32-bit*)
6438      LD="${LD-ld} -melf32bsmip"
6439      ;;
6440    *N32*)
6441      LD="${LD-ld} -melf32bmipn32"
6442      ;;
6443    *64-bit*)
6444      LD="${LD-ld} -melf64bmip"
6445      ;;
6446    esac
6447   else
6448    case `/usr/bin/file conftest.$ac_objext` in
6449    *32-bit*)
6450      LD="${LD-ld} -32"
6451      ;;
6452    *N32*)
6453      LD="${LD-ld} -n32"
6454      ;;
6455    *64-bit*)
6456      LD="${LD-ld} -64"
6457      ;;
6458    esac
6459   fi
6460  fi
6461  rm -rf conftest*
6462  ;;
6463
6464x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6465  # Find out which ABI we are using.
6466  echo 'int i;' > conftest.$ac_ext
6467  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468  (eval $ac_compile) 2>&5
6469  ac_status=$?
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); }; then
6472    case `/usr/bin/file conftest.o` in
6473    *32-bit*)
6474      case $host in
6475        x86_64-*linux*)
6476          LD="${LD-ld} -m elf_i386"
6477          ;;
6478        ppc64-*linux*|powerpc64-*linux*)
6479          LD="${LD-ld} -m elf32ppclinux"
6480          ;;
6481        s390x-*linux*)
6482          LD="${LD-ld} -m elf_s390"
6483          ;;
6484        sparc64-*linux*)
6485          LD="${LD-ld} -m elf32_sparc"
6486          ;;
6487      esac
6488      ;;
6489    *64-bit*)
6490      case $host in
6491        x86_64-*linux*)
6492          LD="${LD-ld} -m elf_x86_64"
6493          ;;
6494        ppc*-*linux*|powerpc*-*linux*)
6495          LD="${LD-ld} -m elf64ppc"
6496          ;;
6497        s390*-*linux*)
6498          LD="${LD-ld} -m elf64_s390"
6499          ;;
6500        sparc*-*linux*)
6501          LD="${LD-ld} -m elf64_sparc"
6502          ;;
6503      esac
6504      ;;
6505    esac
6506  fi
6507  rm -rf conftest*
6508  ;;
6509
6510*-*-sco3.2v5*)
6511  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6512  SAVE_CFLAGS="$CFLAGS"
6513  CFLAGS="$CFLAGS -belf"
6514  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6515echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6516if test "${lt_cv_cc_needs_belf+set}" = set; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519  ac_ext=c
6520ac_cpp='$CPP $CPPFLAGS'
6521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523ac_compiler_gnu=$ac_cv_c_compiler_gnu
6524
6525     cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h.  */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h.  */
6531
6532int
6533main ()
6534{
6535
6536  ;
6537  return 0;
6538}
6539_ACEOF
6540rm -f conftest.$ac_objext conftest$ac_exeext
6541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542  (eval $ac_link) 2>conftest.er1
6543  ac_status=$?
6544  grep -v '^ *+' conftest.er1 >conftest.err
6545  rm -f conftest.er1
6546  cat conftest.err >&5
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); } &&
6549         { ac_try='test -z "$ac_c_werror_flag"
6550                         || test ! -s conftest.err'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; } &&
6556         { ac_try='test -s conftest$ac_exeext'
6557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558  (eval $ac_try) 2>&5
6559  ac_status=$?
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); }; }; then
6562  lt_cv_cc_needs_belf=yes
6563else
6564  echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567lt_cv_cc_needs_belf=no
6568fi
6569rm -f conftest.err conftest.$ac_objext \
6570      conftest$ac_exeext conftest.$ac_ext
6571     ac_ext=c
6572ac_cpp='$CPP $CPPFLAGS'
6573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576
6577fi
6578echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6579echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6580  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6581    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6582    CFLAGS="$SAVE_CFLAGS"
6583  fi
6584  ;;
6585sparc*-*solaris*)
6586  # Find out which ABI we are using.
6587  echo 'int i;' > conftest.$ac_ext
6588  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589  (eval $ac_compile) 2>&5
6590  ac_status=$?
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); }; then
6593    case `/usr/bin/file conftest.o` in
6594    *64-bit*)
6595      case $lt_cv_prog_gnu_ld in
6596      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6597      *)    LD="${LD-ld} -64" ;;
6598      esac
6599      ;;
6600    esac
6601  fi
6602  rm -rf conftest*
6603  ;;
6604
6605
6606esac
6607
6608need_locks="$enable_libtool_lock"
6609
6610
6611ac_ext=c
6612ac_cpp='$CPP $CPPFLAGS'
6613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6617echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6618# On Suns, sometimes $CPP names a directory.
6619if test -n "$CPP" && test -d "$CPP"; then
6620  CPP=
6621fi
6622if test -z "$CPP"; then
6623  if test "${ac_cv_prog_CPP+set}" = set; then
6624  echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626      # Double quotes because CPP needs to be expanded
6627    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6628    do
6629      ac_preproc_ok=false
6630for ac_c_preproc_warn_flag in '' yes
6631do
6632  # Use a header file that comes with gcc, so configuring glibc
6633  # with a fresh cross-compiler works.
6634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6635  # <limits.h> exists even on freestanding compilers.
6636  # On the NeXT, cc -E runs the code through the compiler's parser,
6637  # not just through cpp. "Syntax error" is here to catch this case.
6638  cat >conftest.$ac_ext <<_ACEOF
6639/* confdefs.h.  */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h.  */
6644#ifdef __STDC__
6645# include <limits.h>
6646#else
6647# include <assert.h>
6648#endif
6649                     Syntax error
6650_ACEOF
6651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6652  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6653  ac_status=$?
6654  grep -v '^ *+' conftest.er1 >conftest.err
6655  rm -f conftest.er1
6656  cat conftest.err >&5
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); } >/dev/null; then
6659  if test -s conftest.err; then
6660    ac_cpp_err=$ac_c_preproc_warn_flag
6661    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6662  else
6663    ac_cpp_err=
6664  fi
6665else
6666  ac_cpp_err=yes
6667fi
6668if test -z "$ac_cpp_err"; then
6669  :
6670else
6671  echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674  # Broken: fails on valid input.
6675continue
6676fi
6677rm -f conftest.err conftest.$ac_ext
6678
6679  # OK, works on sane cases.  Now check whether non-existent headers
6680  # can be detected and how.
6681  cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h.  */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h.  */
6687#include <ac_nonexistent.h>
6688_ACEOF
6689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6690  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6691  ac_status=$?
6692  grep -v '^ *+' conftest.er1 >conftest.err
6693  rm -f conftest.er1
6694  cat conftest.err >&5
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); } >/dev/null; then
6697  if test -s conftest.err; then
6698    ac_cpp_err=$ac_c_preproc_warn_flag
6699    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6700  else
6701    ac_cpp_err=
6702  fi
6703else
6704  ac_cpp_err=yes
6705fi
6706if test -z "$ac_cpp_err"; then
6707  # Broken: success on invalid input.
6708continue
6709else
6710  echo "$as_me: failed program was:" >&5
6711sed 's/^/| /' conftest.$ac_ext >&5
6712
6713  # Passes both tests.
6714ac_preproc_ok=:
6715break
6716fi
6717rm -f conftest.err conftest.$ac_ext
6718
6719done
6720# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6721rm -f conftest.err conftest.$ac_ext
6722if $ac_preproc_ok; then
6723  break
6724fi
6725
6726    done
6727    ac_cv_prog_CPP=$CPP
6728
6729fi
6730  CPP=$ac_cv_prog_CPP
6731else
6732  ac_cv_prog_CPP=$CPP
6733fi
6734echo "$as_me:$LINENO: result: $CPP" >&5
6735echo "${ECHO_T}$CPP" >&6
6736ac_preproc_ok=false
6737for ac_c_preproc_warn_flag in '' yes
6738do
6739  # Use a header file that comes with gcc, so configuring glibc
6740  # with a fresh cross-compiler works.
6741  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742  # <limits.h> exists even on freestanding compilers.
6743  # On the NeXT, cc -E runs the code through the compiler's parser,
6744  # not just through cpp. "Syntax error" is here to catch this case.
6745  cat >conftest.$ac_ext <<_ACEOF
6746/* confdefs.h.  */
6747_ACEOF
6748cat confdefs.h >>conftest.$ac_ext
6749cat >>conftest.$ac_ext <<_ACEOF
6750/* end confdefs.h.  */
6751#ifdef __STDC__
6752# include <limits.h>
6753#else
6754# include <assert.h>
6755#endif
6756                     Syntax error
6757_ACEOF
6758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6760  ac_status=$?
6761  grep -v '^ *+' conftest.er1 >conftest.err
6762  rm -f conftest.er1
6763  cat conftest.err >&5
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); } >/dev/null; then
6766  if test -s conftest.err; then
6767    ac_cpp_err=$ac_c_preproc_warn_flag
6768    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6769  else
6770    ac_cpp_err=
6771  fi
6772else
6773  ac_cpp_err=yes
6774fi
6775if test -z "$ac_cpp_err"; then
6776  :
6777else
6778  echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781  # Broken: fails on valid input.
6782continue
6783fi
6784rm -f conftest.err conftest.$ac_ext
6785
6786  # OK, works on sane cases.  Now check whether non-existent headers
6787  # can be detected and how.
6788  cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h.  */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h.  */
6794#include <ac_nonexistent.h>
6795_ACEOF
6796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6798  ac_status=$?
6799  grep -v '^ *+' conftest.er1 >conftest.err
6800  rm -f conftest.er1
6801  cat conftest.err >&5
6802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803  (exit $ac_status); } >/dev/null; then
6804  if test -s conftest.err; then
6805    ac_cpp_err=$ac_c_preproc_warn_flag
6806    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6807  else
6808    ac_cpp_err=
6809  fi
6810else
6811  ac_cpp_err=yes
6812fi
6813if test -z "$ac_cpp_err"; then
6814  # Broken: success on invalid input.
6815continue
6816else
6817  echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820  # Passes both tests.
6821ac_preproc_ok=:
6822break
6823fi
6824rm -f conftest.err conftest.$ac_ext
6825
6826done
6827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6828rm -f conftest.err conftest.$ac_ext
6829if $ac_preproc_ok; then
6830  :
6831else
6832  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6833See \`config.log' for more details." >&5
6834echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6835See \`config.log' for more details." >&2;}
6836   { (exit 1); exit 1; }; }
6837fi
6838
6839ac_ext=c
6840ac_cpp='$CPP $CPPFLAGS'
6841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844
6845
6846echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6847echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6848if test "${ac_cv_header_stdc+set}" = set; then
6849  echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851  cat >conftest.$ac_ext <<_ACEOF
6852/* confdefs.h.  */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h.  */
6857#include <stdlib.h>
6858#include <stdarg.h>
6859#include <string.h>
6860#include <float.h>
6861
6862int
6863main ()
6864{
6865
6866  ;
6867  return 0;
6868}
6869_ACEOF
6870rm -f conftest.$ac_objext
6871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872  (eval $ac_compile) 2>conftest.er1
6873  ac_status=$?
6874  grep -v '^ *+' conftest.er1 >conftest.err
6875  rm -f conftest.er1
6876  cat conftest.err >&5
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); } &&
6879         { ac_try='test -z "$ac_c_werror_flag"
6880                         || test ! -s conftest.err'
6881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882  (eval $ac_try) 2>&5
6883  ac_status=$?
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); }; } &&
6886         { ac_try='test -s conftest.$ac_objext'
6887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888  (eval $ac_try) 2>&5
6889  ac_status=$?
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); }; }; then
6892  ac_cv_header_stdc=yes
6893else
6894  echo "$as_me: failed program was:" >&5
6895sed 's/^/| /' conftest.$ac_ext >&5
6896
6897ac_cv_header_stdc=no
6898fi
6899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900
6901if test $ac_cv_header_stdc = yes; then
6902  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6903  cat >conftest.$ac_ext <<_ACEOF
6904/* confdefs.h.  */
6905_ACEOF
6906cat confdefs.h >>conftest.$ac_ext
6907cat >>conftest.$ac_ext <<_ACEOF
6908/* end confdefs.h.  */
6909#include <string.h>
6910
6911_ACEOF
6912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6913  $EGREP "memchr" >/dev/null 2>&1; then
6914  :
6915else
6916  ac_cv_header_stdc=no
6917fi
6918rm -f conftest*
6919
6920fi
6921
6922if test $ac_cv_header_stdc = yes; then
6923  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6924  cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h.  */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h.  */
6930#include <stdlib.h>
6931
6932_ACEOF
6933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6934  $EGREP "free" >/dev/null 2>&1; then
6935  :
6936else
6937  ac_cv_header_stdc=no
6938fi
6939rm -f conftest*
6940
6941fi
6942
6943if test $ac_cv_header_stdc = yes; then
6944  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6945  if test "$cross_compiling" = yes; then
6946  :
6947else
6948  cat >conftest.$ac_ext <<_ACEOF
6949/* confdefs.h.  */
6950_ACEOF
6951cat confdefs.h >>conftest.$ac_ext
6952cat >>conftest.$ac_ext <<_ACEOF
6953/* end confdefs.h.  */
6954#include <ctype.h>
6955#if ((' ' & 0x0FF) == 0x020)
6956# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6957# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6958#else
6959# define ISLOWER(c) \
6960                   (('a' <= (c) && (c) <= 'i') \
6961                     || ('j' <= (c) && (c) <= 'r') \
6962                     || ('s' <= (c) && (c) <= 'z'))
6963# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6964#endif
6965
6966#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6967int
6968main ()
6969{
6970  int i;
6971  for (i = 0; i < 256; i++)
6972    if (XOR (islower (i), ISLOWER (i))
6973        || toupper (i) != TOUPPER (i))
6974      exit(2);
6975  exit (0);
6976}
6977_ACEOF
6978rm -f conftest$ac_exeext
6979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980  (eval $ac_link) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985  (eval $ac_try) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }; }; then
6989  :
6990else
6991  echo "$as_me: program exited with status $ac_status" >&5
6992echo "$as_me: failed program was:" >&5
6993sed 's/^/| /' conftest.$ac_ext >&5
6994
6995( exit $ac_status )
6996ac_cv_header_stdc=no
6997fi
6998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6999fi
7000fi
7001fi
7002echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7003echo "${ECHO_T}$ac_cv_header_stdc" >&6
7004if test $ac_cv_header_stdc = yes; then
7005
7006cat >>confdefs.h <<\_ACEOF
7007#define STDC_HEADERS 1
7008_ACEOF
7009
7010fi
7011
7012# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7023                  inttypes.h stdint.h unistd.h
7024do
7025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7026echo "$as_me:$LINENO: checking for $ac_header" >&5
7027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7028if eval "test \"\${$as_ac_Header+set}\" = set"; then
7029  echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031  cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h.  */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h.  */
7037$ac_includes_default
7038
7039#include <$ac_header>
7040_ACEOF
7041rm -f conftest.$ac_objext
7042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043  (eval $ac_compile) 2>conftest.er1
7044  ac_status=$?
7045  grep -v '^ *+' conftest.er1 >conftest.err
7046  rm -f conftest.er1
7047  cat conftest.err >&5
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); } &&
7050         { ac_try='test -z "$ac_c_werror_flag"
7051                         || test ! -s conftest.err'
7052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053  (eval $ac_try) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); }; } &&
7057         { ac_try='test -s conftest.$ac_objext'
7058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059  (eval $ac_try) 2>&5
7060  ac_status=$?
7061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062  (exit $ac_status); }; }; then
7063  eval "$as_ac_Header=yes"
7064else
7065  echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068eval "$as_ac_Header=no"
7069fi
7070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071fi
7072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7074if test `eval echo '${'$as_ac_Header'}'` = yes; then
7075  cat >>confdefs.h <<_ACEOF
7076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7077_ACEOF
7078
7079fi
7080
7081done
7082
7083
7084
7085for ac_header in dlfcn.h
7086do
7087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089  echo "$as_me:$LINENO: checking for $ac_header" >&5
7090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7091if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092  echo $ECHO_N "(cached) $ECHO_C" >&6
7093fi
7094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096else
7097  # Is the header compilable?
7098echo "$as_me:$LINENO: checking $ac_header usability" >&5
7099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7100cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h.  */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h.  */
7106$ac_includes_default
7107#include <$ac_header>
7108_ACEOF
7109rm -f conftest.$ac_objext
7110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111  (eval $ac_compile) 2>conftest.er1
7112  ac_status=$?
7113  grep -v '^ *+' conftest.er1 >conftest.err
7114  rm -f conftest.er1
7115  cat conftest.err >&5
7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117  (exit $ac_status); } &&
7118         { ac_try='test -z "$ac_c_werror_flag"
7119                         || test ! -s conftest.err'
7120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121  (eval $ac_try) 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); }; } &&
7125         { ac_try='test -s conftest.$ac_objext'
7126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127  (eval $ac_try) 2>&5
7128  ac_status=$?
7129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); }; }; then
7131  ac_header_compiler=yes
7132else
7133  echo "$as_me: failed program was:" >&5
7134sed 's/^/| /' conftest.$ac_ext >&5
7135
7136ac_header_compiler=no
7137fi
7138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7140echo "${ECHO_T}$ac_header_compiler" >&6
7141
7142# Is the header present?
7143echo "$as_me:$LINENO: checking $ac_header presence" >&5
7144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7145cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h.  */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h.  */
7151#include <$ac_header>
7152_ACEOF
7153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155  ac_status=$?
7156  grep -v '^ *+' conftest.er1 >conftest.err
7157  rm -f conftest.er1
7158  cat conftest.err >&5
7159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160  (exit $ac_status); } >/dev/null; then
7161  if test -s conftest.err; then
7162    ac_cpp_err=$ac_c_preproc_warn_flag
7163    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7164  else
7165    ac_cpp_err=
7166  fi
7167else
7168  ac_cpp_err=yes
7169fi
7170if test -z "$ac_cpp_err"; then
7171  ac_header_preproc=yes
7172else
7173  echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176  ac_header_preproc=no
7177fi
7178rm -f conftest.err conftest.$ac_ext
7179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7180echo "${ECHO_T}$ac_header_preproc" >&6
7181
7182# So?  What about this header?
7183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7184  yes:no: )
7185    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7189    ac_header_preproc=yes
7190    ;;
7191  no:yes:* )
7192    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7194    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7195echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7196    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7198    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7199echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7200    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7202    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7204    (
7205      cat <<\_ASBOX
7206## --------------------------------------------------------------- ##
7207## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7208## --------------------------------------------------------------- ##
7209_ASBOX
7210    ) |
7211      sed "s/^/$as_me: WARNING:     /" >&2
7212    ;;
7213esac
7214echo "$as_me:$LINENO: checking for $ac_header" >&5
7215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217  echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219  eval "$as_ac_Header=\$ac_header_preproc"
7220fi
7221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223
7224fi
7225if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226  cat >>confdefs.h <<_ACEOF
7227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228_ACEOF
7229
7230fi
7231
7232done
7233
7234
7235
7236if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7237    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7238    (test "X$CXX" != "Xg++"))) ; then
7239  ac_ext=cc
7240ac_cpp='$CXXCPP $CPPFLAGS'
7241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7244echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7245echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7246if test -z "$CXXCPP"; then
7247  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250      # Double quotes because CXXCPP needs to be expanded
7251    for CXXCPP in "$CXX -E" "/lib/cpp"
7252    do
7253      ac_preproc_ok=false
7254for ac_cxx_preproc_warn_flag in '' yes
7255do
7256  # Use a header file that comes with gcc, so configuring glibc
7257  # with a fresh cross-compiler works.
7258  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7259  # <limits.h> exists even on freestanding compilers.
7260  # On the NeXT, cc -E runs the code through the compiler's parser,
7261  # not just through cpp. "Syntax error" is here to catch this case.
7262  cat >conftest.$ac_ext <<_ACEOF
7263/* confdefs.h.  */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h.  */
7268#ifdef __STDC__
7269# include <limits.h>
7270#else
7271# include <assert.h>
7272#endif
7273                     Syntax error
7274_ACEOF
7275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7276  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7277  ac_status=$?
7278  grep -v '^ *+' conftest.er1 >conftest.err
7279  rm -f conftest.er1
7280  cat conftest.err >&5
7281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282  (exit $ac_status); } >/dev/null; then
7283  if test -s conftest.err; then
7284    ac_cpp_err=$ac_cxx_preproc_warn_flag
7285    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7286  else
7287    ac_cpp_err=
7288  fi
7289else
7290  ac_cpp_err=yes
7291fi
7292if test -z "$ac_cpp_err"; then
7293  :
7294else
7295  echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298  # Broken: fails on valid input.
7299continue
7300fi
7301rm -f conftest.err conftest.$ac_ext
7302
7303  # OK, works on sane cases.  Now check whether non-existent headers
7304  # can be detected and how.
7305  cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h.  */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h.  */
7311#include <ac_nonexistent.h>
7312_ACEOF
7313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7314  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7315  ac_status=$?
7316  grep -v '^ *+' conftest.er1 >conftest.err
7317  rm -f conftest.er1
7318  cat conftest.err >&5
7319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320  (exit $ac_status); } >/dev/null; then
7321  if test -s conftest.err; then
7322    ac_cpp_err=$ac_cxx_preproc_warn_flag
7323    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7324  else
7325    ac_cpp_err=
7326  fi
7327else
7328  ac_cpp_err=yes
7329fi
7330if test -z "$ac_cpp_err"; then
7331  # Broken: success on invalid input.
7332continue
7333else
7334  echo "$as_me: failed program was:" >&5
7335sed 's/^/| /' conftest.$ac_ext >&5
7336
7337  # Passes both tests.
7338ac_preproc_ok=:
7339break
7340fi
7341rm -f conftest.err conftest.$ac_ext
7342
7343done
7344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7345rm -f conftest.err conftest.$ac_ext
7346if $ac_preproc_ok; then
7347  break
7348fi
7349
7350    done
7351    ac_cv_prog_CXXCPP=$CXXCPP
7352
7353fi
7354  CXXCPP=$ac_cv_prog_CXXCPP
7355else
7356  ac_cv_prog_CXXCPP=$CXXCPP
7357fi
7358echo "$as_me:$LINENO: result: $CXXCPP" >&5
7359echo "${ECHO_T}$CXXCPP" >&6
7360ac_preproc_ok=false
7361for ac_cxx_preproc_warn_flag in '' yes
7362do
7363  # Use a header file that comes with gcc, so configuring glibc
7364  # with a fresh cross-compiler works.
7365  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7366  # <limits.h> exists even on freestanding compilers.
7367  # On the NeXT, cc -E runs the code through the compiler's parser,
7368  # not just through cpp. "Syntax error" is here to catch this case.
7369  cat >conftest.$ac_ext <<_ACEOF
7370/* confdefs.h.  */
7371_ACEOF
7372cat confdefs.h >>conftest.$ac_ext
7373cat >>conftest.$ac_ext <<_ACEOF
7374/* end confdefs.h.  */
7375#ifdef __STDC__
7376# include <limits.h>
7377#else
7378# include <assert.h>
7379#endif
7380                     Syntax error
7381_ACEOF
7382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384  ac_status=$?
7385  grep -v '^ *+' conftest.er1 >conftest.err
7386  rm -f conftest.er1
7387  cat conftest.err >&5
7388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); } >/dev/null; then
7390  if test -s conftest.err; then
7391    ac_cpp_err=$ac_cxx_preproc_warn_flag
7392    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7393  else
7394    ac_cpp_err=
7395  fi
7396else
7397  ac_cpp_err=yes
7398fi
7399if test -z "$ac_cpp_err"; then
7400  :
7401else
7402  echo "$as_me: failed program was:" >&5
7403sed 's/^/| /' conftest.$ac_ext >&5
7404
7405  # Broken: fails on valid input.
7406continue
7407fi
7408rm -f conftest.err conftest.$ac_ext
7409
7410  # OK, works on sane cases.  Now check whether non-existent headers
7411  # can be detected and how.
7412  cat >conftest.$ac_ext <<_ACEOF
7413/* confdefs.h.  */
7414_ACEOF
7415cat confdefs.h >>conftest.$ac_ext
7416cat >>conftest.$ac_ext <<_ACEOF
7417/* end confdefs.h.  */
7418#include <ac_nonexistent.h>
7419_ACEOF
7420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7422  ac_status=$?
7423  grep -v '^ *+' conftest.er1 >conftest.err
7424  rm -f conftest.er1
7425  cat conftest.err >&5
7426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427  (exit $ac_status); } >/dev/null; then
7428  if test -s conftest.err; then
7429    ac_cpp_err=$ac_cxx_preproc_warn_flag
7430    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7431  else
7432    ac_cpp_err=
7433  fi
7434else
7435  ac_cpp_err=yes
7436fi
7437if test -z "$ac_cpp_err"; then
7438  # Broken: success on invalid input.
7439continue
7440else
7441  echo "$as_me: failed program was:" >&5
7442sed 's/^/| /' conftest.$ac_ext >&5
7443
7444  # Passes both tests.
7445ac_preproc_ok=:
7446break
7447fi
7448rm -f conftest.err conftest.$ac_ext
7449
7450done
7451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7452rm -f conftest.err conftest.$ac_ext
7453if $ac_preproc_ok; then
7454  :
7455else
7456  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7457See \`config.log' for more details." >&5
7458echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7459See \`config.log' for more details." >&2;}
7460   { (exit 1); exit 1; }; }
7461fi
7462
7463ac_ext=cc
7464ac_cpp='$CXXCPP $CPPFLAGS'
7465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7468
7469fi
7470
7471ac_ext=f
7472ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7473ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7475if test -n "$ac_tool_prefix"; then
7476  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7477  do
7478    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7479set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7480echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7482if test "${ac_cv_prog_F77+set}" = set; then
7483  echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485  if test -n "$F77"; then
7486  ac_cv_prog_F77="$F77" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491  IFS=$as_save_IFS
7492  test -z "$as_dir" && as_dir=.
7493  for ac_exec_ext in '' $ac_executable_extensions; do
7494  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497    break 2
7498  fi
7499done
7500done
7501
7502fi
7503fi
7504F77=$ac_cv_prog_F77
7505if test -n "$F77"; then
7506  echo "$as_me:$LINENO: result: $F77" >&5
7507echo "${ECHO_T}$F77" >&6
7508else
7509  echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
7511fi
7512
7513    test -n "$F77" && break
7514  done
7515fi
7516if test -z "$F77"; then
7517  ac_ct_F77=$F77
7518  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7519do
7520  # Extract the first word of "$ac_prog", so it can be a program name with args.
7521set dummy $ac_prog; ac_word=$2
7522echo "$as_me:$LINENO: checking for $ac_word" >&5
7523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7524if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7525  echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527  if test -n "$ac_ct_F77"; then
7528  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7529else
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533  IFS=$as_save_IFS
7534  test -z "$as_dir" && as_dir=.
7535  for ac_exec_ext in '' $ac_executable_extensions; do
7536  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537    ac_cv_prog_ac_ct_F77="$ac_prog"
7538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539    break 2
7540  fi
7541done
7542done
7543
7544fi
7545fi
7546ac_ct_F77=$ac_cv_prog_ac_ct_F77
7547if test -n "$ac_ct_F77"; then
7548  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7549echo "${ECHO_T}$ac_ct_F77" >&6
7550else
7551  echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6
7553fi
7554
7555  test -n "$ac_ct_F77" && break
7556done
7557
7558  F77=$ac_ct_F77
7559fi
7560
7561
7562# Provide some information about the compiler.
7563echo "$as_me:7563:" \
7564     "checking for Fortran 77 compiler version" >&5
7565ac_compiler=`set X $ac_compile; echo $2`
7566{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7567  (eval $ac_compiler --version </dev/null >&5) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); }
7571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7572  (eval $ac_compiler -v </dev/null >&5) 2>&5
7573  ac_status=$?
7574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575  (exit $ac_status); }
7576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7577  (eval $ac_compiler -V </dev/null >&5) 2>&5
7578  ac_status=$?
7579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580  (exit $ac_status); }
7581rm -f a.out
7582
7583# If we don't use `.F' as extension, the preprocessor is not run on the
7584# input file.  (Note that this only needs to work for GNU compilers.)
7585ac_save_ext=$ac_ext
7586ac_ext=F
7587echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7588echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7589if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7590  echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592  cat >conftest.$ac_ext <<_ACEOF
7593      program main
7594#ifndef __GNUC__
7595       choke me
7596#endif
7597
7598      end
7599_ACEOF
7600rm -f conftest.$ac_objext
7601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602  (eval $ac_compile) 2>conftest.er1
7603  ac_status=$?
7604  grep -v '^ *+' conftest.er1 >conftest.err
7605  rm -f conftest.er1
7606  cat conftest.err >&5
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); } &&
7609         { ac_try='test -z "$ac_f77_werror_flag"
7610                         || test ! -s conftest.err'
7611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612  (eval $ac_try) 2>&5
7613  ac_status=$?
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); }; } &&
7616         { ac_try='test -s conftest.$ac_objext'
7617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618  (eval $ac_try) 2>&5
7619  ac_status=$?
7620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621  (exit $ac_status); }; }; then
7622  ac_compiler_gnu=yes
7623else
7624  echo "$as_me: failed program was:" >&5
7625sed 's/^/| /' conftest.$ac_ext >&5
7626
7627ac_compiler_gnu=no
7628fi
7629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7631
7632fi
7633echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7634echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7635ac_ext=$ac_save_ext
7636ac_test_FFLAGS=${FFLAGS+set}
7637ac_save_FFLAGS=$FFLAGS
7638FFLAGS=
7639echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7640echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7641if test "${ac_cv_prog_f77_g+set}" = set; then
7642  echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644  FFLAGS=-g
7645cat >conftest.$ac_ext <<_ACEOF
7646      program main
7647
7648      end
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652  (eval $ac_compile) 2>conftest.er1
7653  ac_status=$?
7654  grep -v '^ *+' conftest.er1 >conftest.err
7655  rm -f conftest.er1
7656  cat conftest.err >&5
7657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658  (exit $ac_status); } &&
7659         { ac_try='test -z "$ac_f77_werror_flag"
7660                         || test ! -s conftest.err'
7661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662  (eval $ac_try) 2>&5
7663  ac_status=$?
7664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665  (exit $ac_status); }; } &&
7666         { ac_try='test -s conftest.$ac_objext'
7667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668  (eval $ac_try) 2>&5
7669  ac_status=$?
7670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671  (exit $ac_status); }; }; then
7672  ac_cv_prog_f77_g=yes
7673else
7674  echo "$as_me: failed program was:" >&5
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677ac_cv_prog_f77_g=no
7678fi
7679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7680
7681fi
7682echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7683echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7684if test "$ac_test_FFLAGS" = set; then
7685  FFLAGS=$ac_save_FFLAGS
7686elif test $ac_cv_prog_f77_g = yes; then
7687  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7688    FFLAGS="-g -O2"
7689  else
7690    FFLAGS="-g"
7691  fi
7692else
7693  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7694    FFLAGS="-O2"
7695  else
7696    FFLAGS=
7697  fi
7698fi
7699
7700G77=`test $ac_compiler_gnu = yes && echo yes`
7701ac_ext=c
7702ac_cpp='$CPP $CPPFLAGS'
7703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706
7707
7708
7709# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7710
7711# find the maximum length of command line arguments
7712echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7713echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7714if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717    i=0
7718  teststring="ABCD"
7719
7720  case $build_os in
7721  msdosdjgpp*)
7722    # On DJGPP, this test can blow up pretty badly due to problems in libc
7723    # (any single argument exceeding 2000 bytes causes a buffer overrun
7724    # during glob expansion).  Even if it were fixed, the result of this
7725    # check would be larger than it should be.
7726    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7727    ;;
7728
7729  gnu*)
7730    # Under GNU Hurd, this test is not required because there is
7731    # no limit to the length of command line arguments.
7732    # Libtool will interpret -1 as no limit whatsoever
7733    lt_cv_sys_max_cmd_len=-1;
7734    ;;
7735
7736  cygwin* | mingw*)
7737    # On Win9x/ME, this test blows up -- it succeeds, but takes
7738    # about 5 minutes as the teststring grows exponentially.
7739    # Worse, since 9x/ME are not pre-emptively multitasking,
7740    # you end up with a "frozen" computer, even though with patience
7741    # the test eventually succeeds (with a max line length of 256k).
7742    # Instead, let's just punt: use the minimum linelength reported by
7743    # all of the supported platforms: 8192 (on NT/2K/XP).
7744    lt_cv_sys_max_cmd_len=8192;
7745    ;;
7746
7747  amigaos*)
7748    # On AmigaOS with pdksh, this test takes hours, literally.
7749    # So we just punt and use a minimum line length of 8192.
7750    lt_cv_sys_max_cmd_len=8192;
7751    ;;
7752
7753  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7754    # This has been around since 386BSD, at least.  Likely further.
7755    if test -x /sbin/sysctl; then
7756      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7757    elif test -x /usr/sbin/sysctl; then
7758      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7759    else
7760      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7761    fi
7762    # And add a safety zone
7763    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7764    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7765    ;;
7766
7767  interix*)
7768    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7769    lt_cv_sys_max_cmd_len=196608
7770    ;;
7771
7772  osf*)
7773    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7774    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7775    # nice to cause kernel panics so lets avoid the loop below.
7776    # First set a reasonable default.
7777    lt_cv_sys_max_cmd_len=16384
7778    #
7779    if test -x /sbin/sysconfig; then
7780      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7781        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7782      esac
7783    fi
7784    ;;
7785  sco3.2v5*)
7786    lt_cv_sys_max_cmd_len=102400
7787    ;;
7788  sysv5* | sco5v6* | sysv4.2uw2*)
7789    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7790    if test -n "$kargmax"; then
7791      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7792    else
7793      lt_cv_sys_max_cmd_len=32768
7794    fi
7795    ;;
7796  *)
7797    # If test is not a shell built-in, we'll probably end up computing a
7798    # maximum length that is only half of the actual maximum length, but
7799    # we can't tell.
7800    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7801    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7802               = "XX$teststring") >/dev/null 2>&1 &&
7803            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7804            lt_cv_sys_max_cmd_len=$new_result &&
7805            test $i != 17 # 1/2 MB should be enough
7806    do
7807      i=`expr $i + 1`
7808      teststring=$teststring$teststring
7809    done
7810    teststring=
7811    # Add a significant safety factor because C++ compilers can tack on massive
7812    # amounts of additional arguments before passing them to the linker.
7813    # It appears as though 1/2 is a usable value.
7814    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7815    ;;
7816  esac
7817
7818fi
7819
7820if test -n $lt_cv_sys_max_cmd_len ; then
7821  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7822echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7823else
7824  echo "$as_me:$LINENO: result: none" >&5
7825echo "${ECHO_T}none" >&6
7826fi
7827
7828
7829
7830
7831# Check for command to grab the raw symbol name followed by C symbol from nm.
7832echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7833echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7834if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7835  echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837
7838# These are sane defaults that work on at least a few old systems.
7839# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7840
7841# Character class describing NM global symbol codes.
7842symcode='[BCDEGRST]'
7843
7844# Regexp to match symbols that can be accessed directly from C.
7845sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7846
7847# Transform an extracted symbol line into a proper C declaration
7848lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7849
7850# Transform an extracted symbol line into symbol name and symbol address
7851lt_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'"
7852
7853# Define system-specific variables.
7854case $host_os in
7855aix*)
7856  symcode='[BCDT]'
7857  ;;
7858cygwin* | mingw* | pw32*)
7859  symcode='[ABCDGISTW]'
7860  ;;
7861hpux*) # Its linker distinguishes data from code symbols
7862  if test "$host_cpu" = ia64; then
7863    symcode='[ABCDEGRST]'
7864  fi
7865  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7866  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'"
7867  ;;
7868linux*)
7869  if test "$host_cpu" = ia64; then
7870    symcode='[ABCDGIRSTW]'
7871    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7872    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'"
7873  fi
7874  ;;
7875irix* | nonstopux*)
7876  symcode='[BCDEGRST]'
7877  ;;
7878osf*)
7879  symcode='[BCDEGQRST]'
7880  ;;
7881solaris*)
7882  symcode='[BDRT]'
7883  ;;
7884sco3.2v5*)
7885  symcode='[DT]'
7886  ;;
7887sysv4.2uw2*)
7888  symcode='[DT]'
7889  ;;
7890sysv5* | sco5v6* | unixware* | OpenUNIX*)
7891  symcode='[ABDT]'
7892  ;;
7893sysv4)
7894  symcode='[DFNSTU]'
7895  ;;
7896esac
7897
7898# Handle CRLF in mingw tool chain
7899opt_cr=
7900case $build_os in
7901mingw*)
7902  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7903  ;;
7904esac
7905
7906# If we're using GNU nm, then use its standard symbol codes.
7907case `$NM -V 2>&1` in
7908*GNU* | *'with BFD'*)
7909  symcode='[ABCDGIRSTW]' ;;
7910esac
7911
7912# Try without a prefix undercore, then with it.
7913for ac_symprfx in "" "_"; do
7914
7915  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7916  symxfrm="\\1 $ac_symprfx\\2 \\2"
7917
7918  # Write the raw and C identifiers.
7919  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7920
7921  # Check to see that the pipe works correctly.
7922  pipe_works=no
7923
7924  rm -f conftest*
7925  cat > conftest.$ac_ext <<EOF
7926#ifdef __cplusplus
7927extern "C" {
7928#endif
7929char nm_test_var;
7930void nm_test_func(){}
7931#ifdef __cplusplus
7932}
7933#endif
7934int main(){nm_test_var='a';nm_test_func();return(0);}
7935EOF
7936
7937  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938  (eval $ac_compile) 2>&5
7939  ac_status=$?
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); }; then
7942    # Now try to grab the symbols.
7943    nlist=conftest.nm
7944    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7945  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7946  ac_status=$?
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); } && test -s "$nlist"; then
7949      # Try sorting and uniquifying the output.
7950      if sort "$nlist" | uniq > "$nlist"T; then
7951        mv -f "$nlist"T "$nlist"
7952      else
7953        rm -f "$nlist"T
7954      fi
7955
7956      # Make sure that we snagged all the symbols we need.
7957      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7958        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7959          cat <<EOF > conftest.$ac_ext
7960#ifdef __cplusplus
7961extern "C" {
7962#endif
7963
7964EOF
7965          # Now generate the symbol file.
7966          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7967
7968          cat <<EOF >> conftest.$ac_ext
7969#if defined (__STDC__) && __STDC__
7970# define lt_ptr_t void *
7971#else
7972# define lt_ptr_t char *
7973# define const
7974#endif
7975
7976/* The mapping between symbol names and symbols. */
7977const struct {
7978  const char *name;
7979  lt_ptr_t address;
7980}
7981lt_preloaded_symbols[] =
7982{
7983EOF
7984          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7985          cat <<\EOF >> conftest.$ac_ext
7986  {0, (lt_ptr_t) 0}
7987};
7988
7989#ifdef __cplusplus
7990}
7991#endif
7992EOF
7993          # Now try linking the two files.
7994          mv conftest.$ac_objext conftstm.$ac_objext
7995          lt_save_LIBS="$LIBS"
7996          lt_save_CFLAGS="$CFLAGS"
7997          LIBS="conftstm.$ac_objext"
7998          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7999          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000  (eval $ac_link) 2>&5
8001  ac_status=$?
8002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8004            pipe_works=yes
8005          fi
8006          LIBS="$lt_save_LIBS"
8007          CFLAGS="$lt_save_CFLAGS"
8008        else
8009          echo "cannot find nm_test_func in $nlist" >&5
8010        fi
8011      else
8012        echo "cannot find nm_test_var in $nlist" >&5
8013      fi
8014    else
8015      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8016    fi
8017  else
8018    echo "$progname: failed program was:" >&5
8019    cat conftest.$ac_ext >&5
8020  fi
8021  rm -f conftest* conftst*
8022
8023  # Do not use the global_symbol_pipe unless it works.
8024  if test "$pipe_works" = yes; then
8025    break
8026  else
8027    lt_cv_sys_global_symbol_pipe=
8028  fi
8029done
8030
8031fi
8032
8033if test -z "$lt_cv_sys_global_symbol_pipe"; then
8034  lt_cv_sys_global_symbol_to_cdecl=
8035fi
8036if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8037  echo "$as_me:$LINENO: result: failed" >&5
8038echo "${ECHO_T}failed" >&6
8039else
8040  echo "$as_me:$LINENO: result: ok" >&5
8041echo "${ECHO_T}ok" >&6
8042fi
8043
8044echo "$as_me:$LINENO: checking for objdir" >&5
8045echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8046if test "${lt_cv_objdir+set}" = set; then
8047  echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049  rm -f .libs 2>/dev/null
8050mkdir .libs 2>/dev/null
8051if test -d .libs; then
8052  lt_cv_objdir=.libs
8053else
8054  # MS-DOS does not allow filenames that begin with a dot.
8055  lt_cv_objdir=_libs
8056fi
8057rmdir .libs 2>/dev/null
8058fi
8059echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8060echo "${ECHO_T}$lt_cv_objdir" >&6
8061objdir=$lt_cv_objdir
8062
8063
8064
8065
8066
8067case $host_os in
8068aix3*)
8069  # AIX sometimes has problems with the GCC collect2 program.  For some
8070  # reason, if we set the COLLECT_NAMES environment variable, the problems
8071  # vanish in a puff of smoke.
8072  if test "X${COLLECT_NAMES+set}" != Xset; then
8073    COLLECT_NAMES=
8074    export COLLECT_NAMES
8075  fi
8076  ;;
8077esac
8078
8079# Sed substitution that helps us do robust quoting.  It backslashifies
8080# metacharacters that are still active within double-quoted strings.
8081Xsed='sed -e 1s/^X//'
8082sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8083
8084# Same as above, but do not quote variable references.
8085double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8086
8087# Sed substitution to delay expansion of an escaped shell variable in a
8088# double_quote_subst'ed string.
8089delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8090
8091# Sed substitution to avoid accidental globbing in evaled expressions
8092no_glob_subst='s/\*/\\\*/g'
8093
8094# Constants:
8095rm="rm -f"
8096
8097# Global variables:
8098default_ofile=libtool
8099can_build_shared=yes
8100
8101# All known linkers require a `.a' archive for static linking (except MSVC,
8102# which needs '.lib').
8103libext=a
8104ltmain="$ac_aux_dir/ltmain.sh"
8105ofile="$default_ofile"
8106with_gnu_ld="$lt_cv_prog_gnu_ld"
8107
8108if test -n "$ac_tool_prefix"; then
8109  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8110set dummy ${ac_tool_prefix}ar; ac_word=$2
8111echo "$as_me:$LINENO: checking for $ac_word" >&5
8112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8113if test "${ac_cv_prog_AR+set}" = set; then
8114  echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116  if test -n "$AR"; then
8117  ac_cv_prog_AR="$AR" # Let the user override the test.
8118else
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122  IFS=$as_save_IFS
8123  test -z "$as_dir" && as_dir=.
8124  for ac_exec_ext in '' $ac_executable_extensions; do
8125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126    ac_cv_prog_AR="${ac_tool_prefix}ar"
8127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128    break 2
8129  fi
8130done
8131done
8132
8133fi
8134fi
8135AR=$ac_cv_prog_AR
8136if test -n "$AR"; then
8137  echo "$as_me:$LINENO: result: $AR" >&5
8138echo "${ECHO_T}$AR" >&6
8139else
8140  echo "$as_me:$LINENO: result: no" >&5
8141echo "${ECHO_T}no" >&6
8142fi
8143
8144fi
8145if test -z "$ac_cv_prog_AR"; then
8146  ac_ct_AR=$AR
8147  # Extract the first word of "ar", so it can be a program name with args.
8148set dummy ar; ac_word=$2
8149echo "$as_me:$LINENO: checking for $ac_word" >&5
8150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8152  echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154  if test -n "$ac_ct_AR"; then
8155  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8156else
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160  IFS=$as_save_IFS
8161  test -z "$as_dir" && as_dir=.
8162  for ac_exec_ext in '' $ac_executable_extensions; do
8163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164    ac_cv_prog_ac_ct_AR="ar"
8165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166    break 2
8167  fi
8168done
8169done
8170
8171  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8172fi
8173fi
8174ac_ct_AR=$ac_cv_prog_ac_ct_AR
8175if test -n "$ac_ct_AR"; then
8176  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8177echo "${ECHO_T}$ac_ct_AR" >&6
8178else
8179  echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6
8181fi
8182
8183  AR=$ac_ct_AR
8184else
8185  AR="$ac_cv_prog_AR"
8186fi
8187
8188if test -n "$ac_tool_prefix"; then
8189  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8190set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8191echo "$as_me:$LINENO: checking for $ac_word" >&5
8192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8193if test "${ac_cv_prog_RANLIB+set}" = set; then
8194  echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196  if test -n "$RANLIB"; then
8197  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8198else
8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202  IFS=$as_save_IFS
8203  test -z "$as_dir" && as_dir=.
8204  for ac_exec_ext in '' $ac_executable_extensions; do
8205  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208    break 2
8209  fi
8210done
8211done
8212
8213fi
8214fi
8215RANLIB=$ac_cv_prog_RANLIB
8216if test -n "$RANLIB"; then
8217  echo "$as_me:$LINENO: result: $RANLIB" >&5
8218echo "${ECHO_T}$RANLIB" >&6
8219else
8220  echo "$as_me:$LINENO: result: no" >&5
8221echo "${ECHO_T}no" >&6
8222fi
8223
8224fi
8225if test -z "$ac_cv_prog_RANLIB"; then
8226  ac_ct_RANLIB=$RANLIB
8227  # Extract the first word of "ranlib", so it can be a program name with args.
8228set dummy ranlib; ac_word=$2
8229echo "$as_me:$LINENO: checking for $ac_word" >&5
8230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8231if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234  if test -n "$ac_ct_RANLIB"; then
8235  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8236else
8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240  IFS=$as_save_IFS
8241  test -z "$as_dir" && as_dir=.
8242  for ac_exec_ext in '' $ac_executable_extensions; do
8243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244    ac_cv_prog_ac_ct_RANLIB="ranlib"
8245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246    break 2
8247  fi
8248done
8249done
8250
8251  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8252fi
8253fi
8254ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8255if test -n "$ac_ct_RANLIB"; then
8256  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8257echo "${ECHO_T}$ac_ct_RANLIB" >&6
8258else
8259  echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6
8261fi
8262
8263  RANLIB=$ac_ct_RANLIB
8264else
8265  RANLIB="$ac_cv_prog_RANLIB"
8266fi
8267
8268if test -n "$ac_tool_prefix"; then
8269  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8270set dummy ${ac_tool_prefix}strip; ac_word=$2
8271echo "$as_me:$LINENO: checking for $ac_word" >&5
8272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8273if test "${ac_cv_prog_STRIP+set}" = set; then
8274  echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276  if test -n "$STRIP"; then
8277  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8278else
8279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282  IFS=$as_save_IFS
8283  test -z "$as_dir" && as_dir=.
8284  for ac_exec_ext in '' $ac_executable_extensions; do
8285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8286    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8288    break 2
8289  fi
8290done
8291done
8292
8293fi
8294fi
8295STRIP=$ac_cv_prog_STRIP
8296if test -n "$STRIP"; then
8297  echo "$as_me:$LINENO: result: $STRIP" >&5
8298echo "${ECHO_T}$STRIP" >&6
8299else
8300  echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
8302fi
8303
8304fi
8305if test -z "$ac_cv_prog_STRIP"; then
8306  ac_ct_STRIP=$STRIP
8307  # Extract the first word of "strip", so it can be a program name with args.
8308set dummy strip; ac_word=$2
8309echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8312  echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314  if test -n "$ac_ct_STRIP"; then
8315  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8316else
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320  IFS=$as_save_IFS
8321  test -z "$as_dir" && as_dir=.
8322  for ac_exec_ext in '' $ac_executable_extensions; do
8323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324    ac_cv_prog_ac_ct_STRIP="strip"
8325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326    break 2
8327  fi
8328done
8329done
8330
8331  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8332fi
8333fi
8334ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8335if test -n "$ac_ct_STRIP"; then
8336  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8337echo "${ECHO_T}$ac_ct_STRIP" >&6
8338else
8339  echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341fi
8342
8343  STRIP=$ac_ct_STRIP
8344else
8345  STRIP="$ac_cv_prog_STRIP"
8346fi
8347
8348
8349old_CC="$CC"
8350old_CFLAGS="$CFLAGS"
8351
8352# Set sane defaults for various variables
8353test -z "$AR" && AR=ar
8354test -z "$AR_FLAGS" && AR_FLAGS=cru
8355test -z "$AS" && AS=as
8356test -z "$CC" && CC=cc
8357test -z "$LTCC" && LTCC=$CC
8358test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8359test -z "$DLLTOOL" && DLLTOOL=dlltool
8360test -z "$LD" && LD=ld
8361test -z "$LN_S" && LN_S="ln -s"
8362test -z "$MAGIC_CMD" && MAGIC_CMD=file
8363test -z "$NM" && NM=nm
8364test -z "$SED" && SED=sed
8365test -z "$OBJDUMP" && OBJDUMP=objdump
8366test -z "$RANLIB" && RANLIB=:
8367test -z "$STRIP" && STRIP=:
8368test -z "$ac_objext" && ac_objext=o
8369
8370# Determine commands to create old-style static archives.
8371old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8372old_postinstall_cmds='chmod 644 $oldlib'
8373old_postuninstall_cmds=
8374
8375if test -n "$RANLIB"; then
8376  case $host_os in
8377  openbsd*)
8378    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8379    ;;
8380  *)
8381    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8382    ;;
8383  esac
8384  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8385fi
8386
8387for cc_temp in $compiler""; do
8388  case $cc_temp in
8389    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8390    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8391    \-*) ;;
8392    *) break;;
8393  esac
8394done
8395cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8396
8397
8398# Only perform the check for file, if the check method requires it
8399case $deplibs_check_method in
8400file_magic*)
8401  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8402    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8403echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8404if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8405  echo $ECHO_N "(cached) $ECHO_C" >&6
8406else
8407  case $MAGIC_CMD in
8408[\\/*] |  ?:[\\/]*)
8409  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8410  ;;
8411*)
8412  lt_save_MAGIC_CMD="$MAGIC_CMD"
8413  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415  for ac_dir in $ac_dummy; do
8416    IFS="$lt_save_ifs"
8417    test -z "$ac_dir" && ac_dir=.
8418    if test -f $ac_dir/${ac_tool_prefix}file; then
8419      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8420      if test -n "$file_magic_test_file"; then
8421        case $deplibs_check_method in
8422        "file_magic "*)
8423          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426            $EGREP "$file_magic_regex" > /dev/null; then
8427            :
8428          else
8429            cat <<EOF 1>&2
8430
8431*** Warning: the command libtool uses to detect shared libraries,
8432*** $file_magic_cmd, produces output that libtool cannot recognize.
8433*** The result is that libtool may fail to recognize shared libraries
8434*** as such.  This will affect the creation of libtool libraries that
8435*** depend on shared libraries, but programs linked with such libtool
8436*** libraries will work regardless of this problem.  Nevertheless, you
8437*** may want to report the problem to your system manager and/or to
8438*** bug-libtool@gnu.org
8439
8440EOF
8441          fi ;;
8442        esac
8443      fi
8444      break
8445    fi
8446  done
8447  IFS="$lt_save_ifs"
8448  MAGIC_CMD="$lt_save_MAGIC_CMD"
8449  ;;
8450esac
8451fi
8452
8453MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454if test -n "$MAGIC_CMD"; then
8455  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8456echo "${ECHO_T}$MAGIC_CMD" >&6
8457else
8458  echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
8460fi
8461
8462if test -z "$lt_cv_path_MAGIC_CMD"; then
8463  if test -n "$ac_tool_prefix"; then
8464    echo "$as_me:$LINENO: checking for file" >&5
8465echo $ECHO_N "checking for file... $ECHO_C" >&6
8466if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8467  echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469  case $MAGIC_CMD in
8470[\\/*] |  ?:[\\/]*)
8471  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472  ;;
8473*)
8474  lt_save_MAGIC_CMD="$MAGIC_CMD"
8475  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477  for ac_dir in $ac_dummy; do
8478    IFS="$lt_save_ifs"
8479    test -z "$ac_dir" && ac_dir=.
8480    if test -f $ac_dir/file; then
8481      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8482      if test -n "$file_magic_test_file"; then
8483        case $deplibs_check_method in
8484        "file_magic "*)
8485          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488            $EGREP "$file_magic_regex" > /dev/null; then
8489            :
8490          else
8491            cat <<EOF 1>&2
8492
8493*** Warning: the command libtool uses to detect shared libraries,
8494*** $file_magic_cmd, produces output that libtool cannot recognize.
8495*** The result is that libtool may fail to recognize shared libraries
8496*** as such.  This will affect the creation of libtool libraries that
8497*** depend on shared libraries, but programs linked with such libtool
8498*** libraries will work regardless of this problem.  Nevertheless, you
8499*** may want to report the problem to your system manager and/or to
8500*** bug-libtool@gnu.org
8501
8502EOF
8503          fi ;;
8504        esac
8505      fi
8506      break
8507    fi
8508  done
8509  IFS="$lt_save_ifs"
8510  MAGIC_CMD="$lt_save_MAGIC_CMD"
8511  ;;
8512esac
8513fi
8514
8515MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516if test -n "$MAGIC_CMD"; then
8517  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8518echo "${ECHO_T}$MAGIC_CMD" >&6
8519else
8520  echo "$as_me:$LINENO: result: no" >&5
8521echo "${ECHO_T}no" >&6
8522fi
8523
8524  else
8525    MAGIC_CMD=:
8526  fi
8527fi
8528
8529  fi
8530  ;;
8531esac
8532
8533enable_dlopen=no
8534enable_win32_dll=no
8535
8536# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8537if test "${enable_libtool_lock+set}" = set; then
8538  enableval="$enable_libtool_lock"
8539
8540fi;
8541test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8542
8543
8544# Check whether --with-pic or --without-pic was given.
8545if test "${with_pic+set}" = set; then
8546  withval="$with_pic"
8547  pic_mode="$withval"
8548else
8549  pic_mode=default
8550fi;
8551test -z "$pic_mode" && pic_mode=default
8552
8553# Use C for the default configuration in the libtool script
8554tagname=
8555lt_save_CC="$CC"
8556ac_ext=c
8557ac_cpp='$CPP $CPPFLAGS'
8558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560ac_compiler_gnu=$ac_cv_c_compiler_gnu
8561
8562
8563# Source file extension for C test sources.
8564ac_ext=c
8565
8566# Object file extension for compiled C test sources.
8567objext=o
8568objext=$objext
8569
8570# Code to be used in simple compile tests
8571lt_simple_compile_test_code="int some_variable = 0;\n"
8572
8573# Code to be used in simple link tests
8574lt_simple_link_test_code='int main(){return(0);}\n'
8575
8576
8577# If no C compiler was specified, use CC.
8578LTCC=${LTCC-"$CC"}
8579
8580# If no C compiler flags were specified, use CFLAGS.
8581LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8582
8583# Allow CC to be a program name with arguments.
8584compiler=$CC
8585
8586
8587# save warnings/boilerplate of simple test code
8588ac_outfile=conftest.$ac_objext
8589printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8590eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8591_lt_compiler_boilerplate=`cat conftest.err`
8592$rm conftest*
8593
8594ac_outfile=conftest.$ac_objext
8595printf "$lt_simple_link_test_code" >conftest.$ac_ext
8596eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8597_lt_linker_boilerplate=`cat conftest.err`
8598$rm conftest*
8599
8600
8601## CAVEAT EMPTOR:
8602## There is no encapsulation within the following macros, do not change
8603## the running order or otherwise move them around unless you know exactly
8604## what you are doing...
8605
8606lt_prog_compiler_no_builtin_flag=
8607
8608if test "$GCC" = yes; then
8609  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8610
8611
8612echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8613echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8614if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8615  echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617  lt_cv_prog_compiler_rtti_exceptions=no
8618  ac_outfile=conftest.$ac_objext
8619   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8620   lt_compiler_flag="-fno-rtti -fno-exceptions"
8621   # Insert the option either (1) after the last *FLAGS variable, or
8622   # (2) before a word containing "conftest.", or (3) at the end.
8623   # Note that $ac_compile itself does not contain backslashes and begins
8624   # with a dollar sign (not a hyphen), so the echo should work correctly.
8625   # The option is referenced via a variable to avoid confusing sed.
8626   lt_compile=`echo "$ac_compile" | $SED \
8627   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8628   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8629   -e 's:$: $lt_compiler_flag:'`
8630   (eval echo "\"\$as_me:8630: $lt_compile\"" >&5)
8631   (eval "$lt_compile" 2>conftest.err)
8632   ac_status=$?
8633   cat conftest.err >&5
8634   echo "$as_me:8634: \$? = $ac_status" >&5
8635   if (exit $ac_status) && test -s "$ac_outfile"; then
8636     # The compiler can only warn and ignore the option if not recognized
8637     # So say no if there are warnings other than the usual output.
8638     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8639     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8640     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8641       lt_cv_prog_compiler_rtti_exceptions=yes
8642     fi
8643   fi
8644   $rm conftest*
8645
8646fi
8647echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8648echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8649
8650if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8651    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8652else
8653    :
8654fi
8655
8656fi
8657
8658lt_prog_compiler_wl=
8659lt_prog_compiler_pic=
8660lt_prog_compiler_static=
8661
8662echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8663echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8664
8665  if test "$GCC" = yes; then
8666    lt_prog_compiler_wl='-Wl,'
8667    lt_prog_compiler_static='-static'
8668
8669    case $host_os in
8670      aix*)
8671      # All AIX code is PIC.
8672      if test "$host_cpu" = ia64; then
8673        # AIX 5 now supports IA64 processor
8674        lt_prog_compiler_static='-Bstatic'
8675      fi
8676      ;;
8677
8678    amigaos*)
8679      # FIXME: we need at least 68020 code to build shared libraries, but
8680      # adding the `-m68020' flag to GCC prevents building anything better,
8681      # like `-m68040'.
8682      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8683      ;;
8684
8685    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8686      # PIC is the default for these OSes.
8687      ;;
8688
8689    mingw* | pw32* | os2*)
8690      # This hack is so that the source file can tell whether it is being
8691      # built for inclusion in a dll (and should export symbols for example).
8692      lt_prog_compiler_pic='-DDLL_EXPORT'
8693      ;;
8694
8695    darwin* | rhapsody*)
8696      # PIC is the default on this platform
8697      # Common symbols not allowed in MH_DYLIB files
8698      lt_prog_compiler_pic='-fno-common'
8699      ;;
8700
8701    interix3*)
8702      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8703      # Instead, we relocate shared libraries at runtime.
8704      ;;
8705
8706    msdosdjgpp*)
8707      # Just because we use GCC doesn't mean we suddenly get shared libraries
8708      # on systems that don't support them.
8709      lt_prog_compiler_can_build_shared=no
8710      enable_shared=no
8711      ;;
8712
8713    sysv4*MP*)
8714      if test -d /usr/nec; then
8715        lt_prog_compiler_pic=-Kconform_pic
8716      fi
8717      ;;
8718
8719    hpux*)
8720      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8721      # not for PA HP-UX.
8722      case $host_cpu in
8723      hppa*64*|ia64*)
8724        # +Z the default
8725        ;;
8726      *)
8727        lt_prog_compiler_pic='-fPIC'
8728        ;;
8729      esac
8730      ;;
8731
8732    *)
8733      lt_prog_compiler_pic='-fPIC'
8734      ;;
8735    esac
8736  else
8737    # PORTME Check for flag to pass linker flags through the system compiler.
8738    case $host_os in
8739    aix*)
8740      lt_prog_compiler_wl='-Wl,'
8741      if test "$host_cpu" = ia64; then
8742        # AIX 5 now supports IA64 processor
8743        lt_prog_compiler_static='-Bstatic'
8744      else
8745        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8746      fi
8747      ;;
8748      darwin*)
8749        # PIC is the default on this platform
8750        # Common symbols not allowed in MH_DYLIB files
8751       case $cc_basename in
8752         xlc*)
8753         lt_prog_compiler_pic='-qnocommon'
8754         lt_prog_compiler_wl='-Wl,'
8755         ;;
8756       esac
8757       ;;
8758
8759    mingw* | pw32* | os2*)
8760      # This hack is so that the source file can tell whether it is being
8761      # built for inclusion in a dll (and should export symbols for example).
8762      lt_prog_compiler_pic='-DDLL_EXPORT'
8763      ;;
8764
8765    hpux9* | hpux10* | hpux11*)
8766      lt_prog_compiler_wl='-Wl,'
8767      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8768      # not for PA HP-UX.
8769      case $host_cpu in
8770      hppa*64*|ia64*)
8771        # +Z the default
8772        ;;
8773      *)
8774        lt_prog_compiler_pic='+Z'
8775        ;;
8776      esac
8777      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8778      lt_prog_compiler_static='${wl}-a ${wl}archive'
8779      ;;
8780
8781    irix5* | irix6* | nonstopux*)
8782      lt_prog_compiler_wl='-Wl,'
8783      # PIC (with -KPIC) is the default.
8784      lt_prog_compiler_static='-non_shared'
8785      ;;
8786
8787    newsos6)
8788      lt_prog_compiler_pic='-KPIC'
8789      lt_prog_compiler_static='-Bstatic'
8790      ;;
8791
8792    linux*)
8793      case $cc_basename in
8794      icc* | ecc*)
8795        lt_prog_compiler_wl='-Wl,'
8796        lt_prog_compiler_pic='-KPIC'
8797        lt_prog_compiler_static='-static'
8798        ;;
8799      pgcc* | pgf77* | pgf90* | pgf95*)
8800        # Portland Group compilers (*not* the Pentium gcc compiler,
8801        # which looks to be a dead project)
8802        lt_prog_compiler_wl='-Wl,'
8803        lt_prog_compiler_pic='-fpic'
8804        lt_prog_compiler_static='-Bstatic'
8805        ;;
8806      ccc*)
8807        lt_prog_compiler_wl='-Wl,'
8808        # All Alpha code is PIC.
8809        lt_prog_compiler_static='-non_shared'
8810        ;;
8811      esac
8812      ;;
8813
8814    osf3* | osf4* | osf5*)
8815      lt_prog_compiler_wl='-Wl,'
8816      # All OSF/1 code is PIC.
8817      lt_prog_compiler_static='-non_shared'
8818      ;;
8819
8820    solaris*)
8821      lt_prog_compiler_pic='-KPIC'
8822      lt_prog_compiler_static='-Bstatic'
8823      case $cc_basename in
8824      f77* | f90* | f95*)
8825        lt_prog_compiler_wl='-Qoption ld ';;
8826      *)
8827        lt_prog_compiler_wl='-Wl,';;
8828      esac
8829      ;;
8830
8831    sunos4*)
8832      lt_prog_compiler_wl='-Qoption ld '
8833      lt_prog_compiler_pic='-PIC'
8834      lt_prog_compiler_static='-Bstatic'
8835      ;;
8836
8837    sysv4 | sysv4.2uw2* | sysv4.3*)
8838      lt_prog_compiler_wl='-Wl,'
8839      lt_prog_compiler_pic='-KPIC'
8840      lt_prog_compiler_static='-Bstatic'
8841      ;;
8842
8843    sysv4*MP*)
8844      if test -d /usr/nec ;then
8845        lt_prog_compiler_pic='-Kconform_pic'
8846        lt_prog_compiler_static='-Bstatic'
8847      fi
8848      ;;
8849
8850    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8851      lt_prog_compiler_wl='-Wl,'
8852      lt_prog_compiler_pic='-KPIC'
8853      lt_prog_compiler_static='-Bstatic'
8854      ;;
8855
8856    unicos*)
8857      lt_prog_compiler_wl='-Wl,'
8858      lt_prog_compiler_can_build_shared=no
8859      ;;
8860
8861    uts4*)
8862      lt_prog_compiler_pic='-pic'
8863      lt_prog_compiler_static='-Bstatic'
8864      ;;
8865
8866    *)
8867      lt_prog_compiler_can_build_shared=no
8868      ;;
8869    esac
8870  fi
8871
8872echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8873echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8874
8875#
8876# Check to make sure the PIC flag actually works.
8877#
8878if test -n "$lt_prog_compiler_pic"; then
8879
8880echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8881echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8882if test "${lt_prog_compiler_pic_works+set}" = set; then
8883  echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885  lt_prog_compiler_pic_works=no
8886  ac_outfile=conftest.$ac_objext
8887   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8888   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8889   # Insert the option either (1) after the last *FLAGS variable, or
8890   # (2) before a word containing "conftest.", or (3) at the end.
8891   # Note that $ac_compile itself does not contain backslashes and begins
8892   # with a dollar sign (not a hyphen), so the echo should work correctly.
8893   # The option is referenced via a variable to avoid confusing sed.
8894   lt_compile=`echo "$ac_compile" | $SED \
8895   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8896   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8897   -e 's:$: $lt_compiler_flag:'`
8898   (eval echo "\"\$as_me:8898: $lt_compile\"" >&5)
8899   (eval "$lt_compile" 2>conftest.err)
8900   ac_status=$?
8901   cat conftest.err >&5
8902   echo "$as_me:8902: \$? = $ac_status" >&5
8903   if (exit $ac_status) && test -s "$ac_outfile"; then
8904     # The compiler can only warn and ignore the option if not recognized
8905     # So say no if there are warnings other than the usual output.
8906     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8907     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8908     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8909       lt_prog_compiler_pic_works=yes
8910     fi
8911   fi
8912   $rm conftest*
8913
8914fi
8915echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8916echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8917
8918if test x"$lt_prog_compiler_pic_works" = xyes; then
8919    case $lt_prog_compiler_pic in
8920     "" | " "*) ;;
8921     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8922     esac
8923else
8924    lt_prog_compiler_pic=
8925     lt_prog_compiler_can_build_shared=no
8926fi
8927
8928fi
8929case $host_os in
8930  # For platforms which do not support PIC, -DPIC is meaningless:
8931  *djgpp*)
8932    lt_prog_compiler_pic=
8933    ;;
8934  *)
8935    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8936    ;;
8937esac
8938
8939#
8940# Check to make sure the static flag actually works.
8941#
8942wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8943echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8944echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8945if test "${lt_prog_compiler_static_works+set}" = set; then
8946  echo $ECHO_N "(cached) $ECHO_C" >&6
8947else
8948  lt_prog_compiler_static_works=no
8949   save_LDFLAGS="$LDFLAGS"
8950   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8951   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8952   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8953     # The linker can only warn and ignore the option if not recognized
8954     # So say no if there are warnings
8955     if test -s conftest.err; then
8956       # Append any errors to the config.log.
8957       cat conftest.err 1>&5
8958       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8959       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8960       if diff conftest.exp conftest.er2 >/dev/null; then
8961         lt_prog_compiler_static_works=yes
8962       fi
8963     else
8964       lt_prog_compiler_static_works=yes
8965     fi
8966   fi
8967   $rm conftest*
8968   LDFLAGS="$save_LDFLAGS"
8969
8970fi
8971echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8972echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8973
8974if test x"$lt_prog_compiler_static_works" = xyes; then
8975    :
8976else
8977    lt_prog_compiler_static=
8978fi
8979
8980
8981echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8982echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8983if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8984  echo $ECHO_N "(cached) $ECHO_C" >&6
8985else
8986  lt_cv_prog_compiler_c_o=no
8987   $rm -r conftest 2>/dev/null
8988   mkdir conftest
8989   cd conftest
8990   mkdir out
8991   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8992
8993   lt_compiler_flag="-o out/conftest2.$ac_objext"
8994   # Insert the option either (1) after the last *FLAGS variable, or
8995   # (2) before a word containing "conftest.", or (3) at the end.
8996   # Note that $ac_compile itself does not contain backslashes and begins
8997   # with a dollar sign (not a hyphen), so the echo should work correctly.
8998   lt_compile=`echo "$ac_compile" | $SED \
8999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001   -e 's:$: $lt_compiler_flag:'`
9002   (eval echo "\"\$as_me:9002: $lt_compile\"" >&5)
9003   (eval "$lt_compile" 2>out/conftest.err)
9004   ac_status=$?
9005   cat out/conftest.err >&5
9006   echo "$as_me:9006: \$? = $ac_status" >&5
9007   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9008   then
9009     # The compiler can only warn and ignore the option if not recognized
9010     # So say no if there are warnings
9011     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9012     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9013     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9014       lt_cv_prog_compiler_c_o=yes
9015     fi
9016   fi
9017   chmod u+w . 2>&5
9018   $rm conftest*
9019   # SGI C++ compiler will create directory out/ii_files/ for
9020   # template instantiation
9021   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9022   $rm out/* && rmdir out
9023   cd ..
9024   rmdir conftest
9025   $rm conftest*
9026
9027fi
9028echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9029echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9030
9031
9032hard_links="nottested"
9033if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9034  # do not overwrite the value of need_locks provided by the user
9035  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9036echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9037  hard_links=yes
9038  $rm conftest*
9039  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9040  touch conftest.a
9041  ln conftest.a conftest.b 2>&5 || hard_links=no
9042  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9043  echo "$as_me:$LINENO: result: $hard_links" >&5
9044echo "${ECHO_T}$hard_links" >&6
9045  if test "$hard_links" = no; then
9046    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9047echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9048    need_locks=warn
9049  fi
9050else
9051  need_locks=no
9052fi
9053
9054echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9055echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9056
9057  runpath_var=
9058  allow_undefined_flag=
9059  enable_shared_with_static_runtimes=no
9060  archive_cmds=
9061  archive_expsym_cmds=
9062  old_archive_From_new_cmds=
9063  old_archive_from_expsyms_cmds=
9064  export_dynamic_flag_spec=
9065  whole_archive_flag_spec=
9066  thread_safe_flag_spec=
9067  hardcode_libdir_flag_spec=
9068  hardcode_libdir_flag_spec_ld=
9069  hardcode_libdir_separator=
9070  hardcode_direct=no
9071  hardcode_minus_L=no
9072  hardcode_shlibpath_var=unsupported
9073  link_all_deplibs=unknown
9074  hardcode_automatic=no
9075  module_cmds=
9076  module_expsym_cmds=
9077  always_export_symbols=no
9078  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9079  # include_expsyms should be a list of space-separated symbols to be *always*
9080  # included in the symbol list
9081  include_expsyms=
9082  # exclude_expsyms can be an extended regexp of symbols to exclude
9083  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9084  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9085  # as well as any symbol that contains `d'.
9086  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9087  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9088  # platforms (ab)use it in PIC code, but their linkers get confused if
9089  # the symbol is explicitly referenced.  Since portable code cannot
9090  # rely on this symbol name, it's probably fine to never include it in
9091  # preloaded symbol tables.
9092  extract_expsyms_cmds=
9093  # Just being paranoid about ensuring that cc_basename is set.
9094  for cc_temp in $compiler""; do
9095  case $cc_temp in
9096    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9097    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9098    \-*) ;;
9099    *) break;;
9100  esac
9101done
9102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9103
9104  case $host_os in
9105  cygwin* | mingw* | pw32*)
9106    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9107    # When not using gcc, we currently assume that we are using
9108    # Microsoft Visual C++.
9109    if test "$GCC" != yes; then
9110      with_gnu_ld=no
9111    fi
9112    ;;
9113  interix*)
9114    # we just hope/assume this is gcc and not c89 (= MSVC++)
9115    with_gnu_ld=yes
9116    ;;
9117  openbsd*)
9118    with_gnu_ld=no
9119    ;;
9120  esac
9121
9122  ld_shlibs=yes
9123  if test "$with_gnu_ld" = yes; then
9124    # If archive_cmds runs LD, not CC, wlarc should be empty
9125    wlarc='${wl}'
9126
9127    # Set some defaults for GNU ld with shared library support. These
9128    # are reset later if shared libraries are not supported. Putting them
9129    # here allows them to be overridden if necessary.
9130    runpath_var=LD_RUN_PATH
9131    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9132    export_dynamic_flag_spec='${wl}--export-dynamic'
9133    # ancient GNU ld didn't support --whole-archive et. al.
9134    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9135        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9136      else
9137        whole_archive_flag_spec=
9138    fi
9139    supports_anon_versioning=no
9140    case `$LD -v 2>/dev/null` in
9141      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9142      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9143      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9144      *\ 2.11.*) ;; # other 2.11 versions
9145      *) supports_anon_versioning=yes ;;
9146    esac
9147
9148    # See if GNU ld supports shared libraries.
9149    case $host_os in
9150    aix3* | aix4* | aix5*)
9151      # On AIX/PPC, the GNU linker is very broken
9152      if test "$host_cpu" != ia64; then
9153        ld_shlibs=no
9154        cat <<EOF 1>&2
9155
9156*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9157*** to be unable to reliably create shared libraries on AIX.
9158*** Therefore, libtool is disabling shared libraries support.  If you
9159*** really care for shared libraries, you may want to modify your PATH
9160*** so that a non-GNU linker is found, and then restart.
9161
9162EOF
9163      fi
9164      ;;
9165
9166    amigaos*)
9167      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)'
9168      hardcode_libdir_flag_spec='-L$libdir'
9169      hardcode_minus_L=yes
9170
9171      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9172      # that the semantics of dynamic libraries on AmigaOS, at least up
9173      # to version 4, is to share data among multiple programs linked
9174      # with the same dynamic library.  Since this doesn't match the
9175      # behavior of shared libraries on other platforms, we can't use
9176      # them.
9177      ld_shlibs=no
9178      ;;
9179
9180    beos*)
9181      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9182        allow_undefined_flag=unsupported
9183        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9184        # support --undefined.  This deserves some investigation.  FIXME
9185        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186      else
9187        ld_shlibs=no
9188      fi
9189      ;;
9190
9191    cygwin* | mingw* | pw32*)
9192      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9193      # as there is no search path for DLLs.
9194      hardcode_libdir_flag_spec='-L$libdir'
9195      allow_undefined_flag=unsupported
9196      always_export_symbols=no
9197      enable_shared_with_static_runtimes=yes
9198      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9199
9200      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9201        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9202        # If the export-symbols file already is a .def file (1st line
9203        # is EXPORTS), use it as is; otherwise, prepend...
9204        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9205          cp $export_symbols $output_objdir/$soname.def;
9206        else
9207          echo EXPORTS > $output_objdir/$soname.def;
9208          cat $export_symbols >> $output_objdir/$soname.def;
9209        fi~
9210        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9211      else
9212        ld_shlibs=no
9213      fi
9214      ;;
9215
9216    interix3*)
9217      hardcode_direct=no
9218      hardcode_shlibpath_var=no
9219      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9220      export_dynamic_flag_spec='${wl}-E'
9221      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9222      # Instead, shared libraries are loaded at an image base (0x10000000 by
9223      # default) and relocated if they conflict, which is a slow very memory
9224      # consuming and fragmenting process.  To avoid this, we pick a random,
9225      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9226      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9227      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9228      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'
9229      ;;
9230
9231    linux*)
9232      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9233        tmp_addflag=
9234        case $cc_basename,$host_cpu in
9235        pgcc*)                          # Portland Group C compiler
9236          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'
9237          tmp_addflag=' $pic_flag'
9238          ;;
9239        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9240          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'
9241          tmp_addflag=' $pic_flag -Mnomain' ;;
9242        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9243          tmp_addflag=' -i_dynamic' ;;
9244        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9245          tmp_addflag=' -i_dynamic -nofor_main' ;;
9246        ifc* | ifort*)                  # Intel Fortran compiler
9247          tmp_addflag=' -nofor_main' ;;
9248        esac
9249        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250
9251        if test $supports_anon_versioning = yes; then
9252          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9253  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9254  $echo "local: *; };" >> $output_objdir/$libname.ver~
9255          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9256        fi
9257      else
9258        ld_shlibs=no
9259      fi
9260      ;;
9261
9262    netbsd*)
9263      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9264        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9265        wlarc=
9266      else
9267        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269      fi
9270      ;;
9271
9272    solaris*)
9273      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9274        ld_shlibs=no
9275        cat <<EOF 1>&2
9276
9277*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9278*** create shared libraries on Solaris systems.  Therefore, libtool
9279*** is disabling shared libraries support.  We urge you to upgrade GNU
9280*** binutils to release 2.9.1 or newer.  Another option is to modify
9281*** your PATH or compiler configuration so that the native linker is
9282*** used, and then restart.
9283
9284EOF
9285      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9286        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9288      else
9289        ld_shlibs=no
9290      fi
9291      ;;
9292
9293    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9294      case `$LD -v 2>&1` in
9295        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9296        ld_shlibs=no
9297        cat <<_LT_EOF 1>&2
9298
9299*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9300*** reliably create shared libraries on SCO systems.  Therefore, libtool
9301*** is disabling shared libraries support.  We urge you to upgrade GNU
9302*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9303*** your PATH or compiler configuration so that the native linker is
9304*** used, and then restart.
9305
9306_LT_EOF
9307        ;;
9308        *)
9309          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9310            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9311            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9312            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9313          else
9314            ld_shlibs=no
9315          fi
9316        ;;
9317      esac
9318      ;;
9319
9320    sunos4*)
9321      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322      wlarc=
9323      hardcode_direct=yes
9324      hardcode_shlibpath_var=no
9325      ;;
9326
9327    *)
9328      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9329        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9331      else
9332        ld_shlibs=no
9333      fi
9334      ;;
9335    esac
9336
9337    if test "$ld_shlibs" = no; then
9338      runpath_var=
9339      hardcode_libdir_flag_spec=
9340      export_dynamic_flag_spec=
9341      whole_archive_flag_spec=
9342    fi
9343  else
9344    # PORTME fill in a description of your system's linker (not GNU ld)
9345    case $host_os in
9346    aix3*)
9347      allow_undefined_flag=unsupported
9348      always_export_symbols=yes
9349      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'
9350      # Note: this linker hardcodes the directories in LIBPATH if there
9351      # are no directories specified by -L.
9352      hardcode_minus_L=yes
9353      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9354        # Neither direct hardcoding nor static linking is supported with a
9355        # broken collect2.
9356        hardcode_direct=unsupported
9357      fi
9358      ;;
9359
9360    aix4* | aix5*)
9361      if test "$host_cpu" = ia64; then
9362        # On IA64, the linker does run time linking by default, so we don't
9363        # have to do anything special.
9364        aix_use_runtimelinking=no
9365        exp_sym_flag='-Bexport'
9366        no_entry_flag=""
9367      else
9368        # If we're using GNU nm, then we don't want the "-C" option.
9369        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9370        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9371          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'
9372        else
9373          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'
9374        fi
9375        aix_use_runtimelinking=no
9376
9377        # Test if we are trying to use run time linking or normal
9378        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9379        # need to do runtime linking.
9380        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9381          for ld_flag in $LDFLAGS; do
9382          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9383            aix_use_runtimelinking=yes
9384            break
9385          fi
9386          done
9387          ;;
9388        esac
9389
9390        exp_sym_flag='-bexport'
9391        no_entry_flag='-bnoentry'
9392      fi
9393
9394      # When large executables or shared objects are built, AIX ld can
9395      # have problems creating the table of contents.  If linking a library
9396      # or program results in "error TOC overflow" add -mminimal-toc to
9397      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9398      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9399
9400      archive_cmds=''
9401      hardcode_direct=yes
9402      hardcode_libdir_separator=':'
9403      link_all_deplibs=yes
9404
9405      if test "$GCC" = yes; then
9406        case $host_os in aix4.[012]|aix4.[012].*)
9407        # We only want to do this on AIX 4.2 and lower, the check
9408        # below for broken collect2 doesn't work under 4.3+
9409          collect2name=`${CC} -print-prog-name=collect2`
9410          if test -f "$collect2name" && \
9411           strings "$collect2name" | grep resolve_lib_name >/dev/null
9412          then
9413          # We have reworked collect2
9414          hardcode_direct=yes
9415          else
9416          # We have old collect2
9417          hardcode_direct=unsupported
9418          # It fails to find uninstalled libraries when the uninstalled
9419          # path is not listed in the libpath.  Setting hardcode_minus_L
9420          # to unsupported forces relinking
9421          hardcode_minus_L=yes
9422          hardcode_libdir_flag_spec='-L$libdir'
9423          hardcode_libdir_separator=
9424          fi
9425          ;;
9426        esac
9427        shared_flag='-shared'
9428        if test "$aix_use_runtimelinking" = yes; then
9429          shared_flag="$shared_flag "'${wl}-G'
9430        fi
9431      else
9432        # not using gcc
9433        if test "$host_cpu" = ia64; then
9434        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9435        # chokes on -Wl,-G. The following line is correct:
9436          shared_flag='-G'
9437        else
9438          if test "$aix_use_runtimelinking" = yes; then
9439            shared_flag='${wl}-G'
9440          else
9441            shared_flag='${wl}-bM:SRE'
9442          fi
9443        fi
9444      fi
9445
9446      # It seems that -bexpall does not export symbols beginning with
9447      # underscore (_), so it is better to generate a list of symbols to export.
9448      always_export_symbols=yes
9449      if test "$aix_use_runtimelinking" = yes; then
9450        # Warning - without using the other runtime loading flags (-brtl),
9451        # -berok will link without error, but may produce a broken library.
9452        allow_undefined_flag='-berok'
9453       # Determine the default libpath from the value encoded in an empty executable.
9454       cat >conftest.$ac_ext <<_ACEOF
9455/* confdefs.h.  */
9456_ACEOF
9457cat confdefs.h >>conftest.$ac_ext
9458cat >>conftest.$ac_ext <<_ACEOF
9459/* end confdefs.h.  */
9460
9461int
9462main ()
9463{
9464
9465  ;
9466  return 0;
9467}
9468_ACEOF
9469rm -f conftest.$ac_objext conftest$ac_exeext
9470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471  (eval $ac_link) 2>conftest.er1
9472  ac_status=$?
9473  grep -v '^ *+' conftest.er1 >conftest.err
9474  rm -f conftest.er1
9475  cat conftest.err >&5
9476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477  (exit $ac_status); } &&
9478         { ac_try='test -z "$ac_c_werror_flag"
9479                         || test ! -s conftest.err'
9480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481  (eval $ac_try) 2>&5
9482  ac_status=$?
9483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484  (exit $ac_status); }; } &&
9485         { ac_try='test -s conftest$ac_exeext'
9486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487  (eval $ac_try) 2>&5
9488  ac_status=$?
9489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490  (exit $ac_status); }; }; then
9491
9492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9493}'`
9494# Check for a 64-bit object if we didn't find anything.
9495if 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; }
9496}'`; fi
9497else
9498  echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501fi
9502rm -f conftest.err conftest.$ac_objext \
9503      conftest$ac_exeext conftest.$ac_ext
9504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9505
9506       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9507        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"
9508       else
9509        if test "$host_cpu" = ia64; then
9510          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9511          allow_undefined_flag="-z nodefs"
9512          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"
9513        else
9514         # Determine the default libpath from the value encoded in an empty executable.
9515         cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h.  */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
9520/* end confdefs.h.  */
9521
9522int
9523main ()
9524{
9525
9526  ;
9527  return 0;
9528}
9529_ACEOF
9530rm -f conftest.$ac_objext conftest$ac_exeext
9531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532  (eval $ac_link) 2>conftest.er1
9533  ac_status=$?
9534  grep -v '^ *+' conftest.er1 >conftest.err
9535  rm -f conftest.er1
9536  cat conftest.err >&5
9537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538  (exit $ac_status); } &&
9539         { ac_try='test -z "$ac_c_werror_flag"
9540                         || test ! -s conftest.err'
9541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542  (eval $ac_try) 2>&5
9543  ac_status=$?
9544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545  (exit $ac_status); }; } &&
9546         { ac_try='test -s conftest$ac_exeext'
9547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548  (eval $ac_try) 2>&5
9549  ac_status=$?
9550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551  (exit $ac_status); }; }; then
9552
9553aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9554}'`
9555# Check for a 64-bit object if we didn't find anything.
9556if 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; }
9557}'`; fi
9558else
9559  echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
9562fi
9563rm -f conftest.err conftest.$ac_objext \
9564      conftest$ac_exeext conftest.$ac_ext
9565if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9566
9567         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9568          # Warning - without using the other run time loading flags,
9569          # -berok will link without error, but may produce a broken library.
9570          no_undefined_flag=' ${wl}-bernotok'
9571          allow_undefined_flag=' ${wl}-berok'
9572          # Exported symbols can be pulled into shared objects from archives
9573          whole_archive_flag_spec='$convenience'
9574          archive_cmds_need_lc=yes
9575          # This is similar to how AIX traditionally builds its shared libraries.
9576          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'
9577        fi
9578      fi
9579      ;;
9580
9581    amigaos*)
9582      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)'
9583      hardcode_libdir_flag_spec='-L$libdir'
9584      hardcode_minus_L=yes
9585      # see comment about different semantics on the GNU ld section
9586      ld_shlibs=no
9587      ;;
9588
9589    bsdi[45]*)
9590      export_dynamic_flag_spec=-rdynamic
9591      ;;
9592
9593    cygwin* | mingw* | pw32*)
9594      # When not using gcc, we currently assume that we are using
9595      # Microsoft Visual C++.
9596      # hardcode_libdir_flag_spec is actually meaningless, as there is
9597      # no search path for DLLs.
9598      hardcode_libdir_flag_spec=' '
9599      allow_undefined_flag=unsupported
9600      # Tell ltmain to make .lib files, not .a files.
9601      libext=lib
9602      # Tell ltmain to make .dll files, not .so files.
9603      shrext_cmds=".dll"
9604      # FIXME: Setting linknames here is a bad hack.
9605      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9606      # The linker will automatically build a .lib file if we build a DLL.
9607      old_archive_From_new_cmds='true'
9608      # FIXME: Should let the user specify the lib program.
9609      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9610      fix_srcfile_path='`cygpath -w "$srcfile"`'
9611      enable_shared_with_static_runtimes=yes
9612      ;;
9613
9614    darwin* | rhapsody*)
9615      case $host_os in
9616        rhapsody* | darwin1.[012])
9617         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9618         ;;
9619       *) # Darwin 1.3 on
9620         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9621           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9622         else
9623           case ${MACOSX_DEPLOYMENT_TARGET} in
9624             10.[012])
9625               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9626               ;;
9627             10.*)
9628               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9629               ;;
9630           esac
9631         fi
9632         ;;
9633      esac
9634      archive_cmds_need_lc=no
9635      hardcode_direct=no
9636      hardcode_automatic=yes
9637      hardcode_shlibpath_var=unsupported
9638      whole_archive_flag_spec=''
9639      link_all_deplibs=yes
9640    if test "$GCC" = yes ; then
9641        output_verbose_link_cmd='echo'
9642        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9643      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9644      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9645      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}'
9646      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}'
9647    else
9648      case $cc_basename in
9649        xlc*)
9650         output_verbose_link_cmd='echo'
9651         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9652         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9653          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9654         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}'
9655          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}'
9656          ;;
9657       *)
9658         ld_shlibs=no
9659          ;;
9660      esac
9661    fi
9662      ;;
9663
9664    dgux*)
9665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666      hardcode_libdir_flag_spec='-L$libdir'
9667      hardcode_shlibpath_var=no
9668      ;;
9669
9670    freebsd1*)
9671      ld_shlibs=no
9672      ;;
9673
9674    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9675    # support.  Future versions do this automatically, but an explicit c++rt0.o
9676    # does not break anything, and helps significantly (at the cost of a little
9677    # extra space).
9678    freebsd2.2*)
9679      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9680      hardcode_libdir_flag_spec='-R$libdir'
9681      hardcode_direct=yes
9682      hardcode_shlibpath_var=no
9683      ;;
9684
9685    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9686    freebsd2*)
9687      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9688      hardcode_direct=yes
9689      hardcode_minus_L=yes
9690      hardcode_shlibpath_var=no
9691      ;;
9692
9693    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9694    freebsd* | kfreebsd*-gnu | dragonfly*)
9695      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9696      hardcode_libdir_flag_spec='-R$libdir'
9697      hardcode_direct=yes
9698      hardcode_shlibpath_var=no
9699      ;;
9700
9701    hpux9*)
9702      if test "$GCC" = yes; then
9703        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'
9704      else
9705        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'
9706      fi
9707      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9708      hardcode_libdir_separator=:
9709      hardcode_direct=yes
9710
9711      # hardcode_minus_L: Not really in the search PATH,
9712      # but as the default location of the library.
9713      hardcode_minus_L=yes
9714      export_dynamic_flag_spec='${wl}-E'
9715      ;;
9716
9717    hpux10*)
9718      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9719        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9720      else
9721        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9722      fi
9723      if test "$with_gnu_ld" = no; then
9724        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9725        hardcode_libdir_separator=:
9726
9727        hardcode_direct=yes
9728        export_dynamic_flag_spec='${wl}-E'
9729
9730        # hardcode_minus_L: Not really in the search PATH,
9731        # but as the default location of the library.
9732        hardcode_minus_L=yes
9733      fi
9734      ;;
9735
9736    hpux11*)
9737      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9738        case $host_cpu in
9739        hppa*64*)
9740          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9741          ;;
9742        ia64*)
9743          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9744          ;;
9745        *)
9746          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747          ;;
9748        esac
9749      else
9750        case $host_cpu in
9751        hppa*64*)
9752          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9753          ;;
9754        ia64*)
9755          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9756          ;;
9757        *)
9758          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9759          ;;
9760        esac
9761      fi
9762      if test "$with_gnu_ld" = no; then
9763        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9764        hardcode_libdir_separator=:
9765
9766        case $host_cpu in
9767        hppa*64*|ia64*)
9768          hardcode_libdir_flag_spec_ld='+b $libdir'
9769          hardcode_direct=no
9770          hardcode_shlibpath_var=no
9771          ;;
9772        *)
9773          hardcode_direct=yes
9774          export_dynamic_flag_spec='${wl}-E'
9775
9776          # hardcode_minus_L: Not really in the search PATH,
9777          # but as the default location of the library.
9778          hardcode_minus_L=yes
9779          ;;
9780        esac
9781      fi
9782      ;;
9783
9784    irix5* | irix6* | nonstopux*)
9785      if test "$GCC" = yes; then
9786        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'
9787      else
9788        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'
9789        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9790      fi
9791      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792      hardcode_libdir_separator=:
9793      link_all_deplibs=yes
9794      ;;
9795
9796    netbsd*)
9797      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9798        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9799      else
9800        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9801      fi
9802      hardcode_libdir_flag_spec='-R$libdir'
9803      hardcode_direct=yes
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    newsos6)
9808      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809      hardcode_direct=yes
9810      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811      hardcode_libdir_separator=:
9812      hardcode_shlibpath_var=no
9813      ;;
9814
9815    openbsd*)
9816      hardcode_direct=yes
9817      hardcode_shlibpath_var=no
9818      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9819        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9820        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9821        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9822        export_dynamic_flag_spec='${wl}-E'
9823      else
9824       case $host_os in
9825         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9826           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9827           hardcode_libdir_flag_spec='-R$libdir'
9828           ;;
9829         *)
9830           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9831           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9832           ;;
9833       esac
9834      fi
9835      ;;
9836
9837    os2*)
9838      hardcode_libdir_flag_spec='-L$libdir'
9839      hardcode_minus_L=yes
9840      allow_undefined_flag=unsupported
9841      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'
9842      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9843      ;;
9844
9845    osf3*)
9846      if test "$GCC" = yes; then
9847        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9848        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'
9849      else
9850        allow_undefined_flag=' -expect_unresolved \*'
9851        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'
9852      fi
9853      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9854      hardcode_libdir_separator=:
9855      ;;
9856
9857    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9858      if test "$GCC" = yes; then
9859        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9860        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'
9861        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9862      else
9863        allow_undefined_flag=' -expect_unresolved \*'
9864        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'
9865        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9866        $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'
9867
9868        # Both c and cxx compiler support -rpath directly
9869        hardcode_libdir_flag_spec='-rpath $libdir'
9870      fi
9871      hardcode_libdir_separator=:
9872      ;;
9873
9874    solaris*)
9875      no_undefined_flag=' -z text'
9876      if test "$GCC" = yes; then
9877        wlarc='${wl}'
9878        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9879        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9880          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9881      else
9882        wlarc=''
9883        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9885        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9886      fi
9887      hardcode_libdir_flag_spec='-R$libdir'
9888      hardcode_shlibpath_var=no
9889      case $host_os in
9890      solaris2.[0-5] | solaris2.[0-5].*) ;;
9891      *)
9892        # The compiler driver will combine linker options so we
9893        # cannot just pass the convience library names through
9894        # without $wl, iff we do not link with $LD.
9895        # Luckily, gcc supports the same syntax we need for Sun Studio.
9896        # Supported since Solaris 2.6 (maybe 2.5.1?)
9897        case $wlarc in
9898        '')
9899          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9900        *)
9901          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' ;;
9902        esac ;;
9903      esac
9904      link_all_deplibs=yes
9905      ;;
9906
9907    sunos4*)
9908      if test "x$host_vendor" = xsequent; then
9909        # Use $CC to link under sequent, because it throws in some extra .o
9910        # files that make .init and .fini sections work.
9911        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9912      else
9913        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9914      fi
9915      hardcode_libdir_flag_spec='-L$libdir'
9916      hardcode_direct=yes
9917      hardcode_minus_L=yes
9918      hardcode_shlibpath_var=no
9919      ;;
9920
9921    sysv4)
9922      case $host_vendor in
9923        sni)
9924          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925          hardcode_direct=yes # is this really true???
9926        ;;
9927        siemens)
9928          ## LD is ld it makes a PLAMLIB
9929          ## CC just makes a GrossModule.
9930          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9931          reload_cmds='$CC -r -o $output$reload_objs'
9932          hardcode_direct=no
9933        ;;
9934        motorola)
9935          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9937        ;;
9938      esac
9939      runpath_var='LD_RUN_PATH'
9940      hardcode_shlibpath_var=no
9941      ;;
9942
9943    sysv4.3*)
9944      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945      hardcode_shlibpath_var=no
9946      export_dynamic_flag_spec='-Bexport'
9947      ;;
9948
9949    sysv4*MP*)
9950      if test -d /usr/nec; then
9951        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952        hardcode_shlibpath_var=no
9953        runpath_var=LD_RUN_PATH
9954        hardcode_runpath_var=yes
9955        ld_shlibs=yes
9956      fi
9957      ;;
9958
9959    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9960      no_undefined_flag='${wl}-z,text'
9961      archive_cmds_need_lc=no
9962      hardcode_shlibpath_var=no
9963      runpath_var='LD_RUN_PATH'
9964
9965      if test "$GCC" = yes; then
9966        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9967        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9968      else
9969        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971      fi
9972      ;;
9973
9974    sysv5* | sco3.2v5* | sco5v6*)
9975      # Note: We can NOT use -z defs as we might desire, because we do not
9976      # link with -lc, and that would cause any symbols used from libc to
9977      # always be unresolved, which means just about no library would
9978      # ever link correctly.  If we're not using GNU ld we use -z text
9979      # though, which does catch some bad symbols but isn't as heavy-handed
9980      # as -z defs.
9981      no_undefined_flag='${wl}-z,text'
9982      allow_undefined_flag='${wl}-z,nodefs'
9983      archive_cmds_need_lc=no
9984      hardcode_shlibpath_var=no
9985      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9986      hardcode_libdir_separator=':'
9987      link_all_deplibs=yes
9988      export_dynamic_flag_spec='${wl}-Bexport'
9989      runpath_var='LD_RUN_PATH'
9990
9991      if test "$GCC" = yes; then
9992        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9993        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9994      else
9995        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9996        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9997      fi
9998      ;;
9999
10000    uts4*)
10001      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002      hardcode_libdir_flag_spec='-L$libdir'
10003      hardcode_shlibpath_var=no
10004      ;;
10005
10006    *)
10007      ld_shlibs=no
10008      ;;
10009    esac
10010  fi
10011
10012echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10013echo "${ECHO_T}$ld_shlibs" >&6
10014test "$ld_shlibs" = no && can_build_shared=no
10015
10016#
10017# Do we need to explicitly link libc?
10018#
10019case "x$archive_cmds_need_lc" in
10020x|xyes)
10021  # Assume -lc should be added
10022  archive_cmds_need_lc=yes
10023
10024  if test "$enable_shared" = yes && test "$GCC" = yes; then
10025    case $archive_cmds in
10026    *'~'*)
10027      # FIXME: we may have to deal with multi-command sequences.
10028      ;;
10029    '$CC '*)
10030      # Test whether the compiler implicitly links with -lc since on some
10031      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10032      # to ld, don't add -lc before -lgcc.
10033      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10034echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10035      $rm conftest*
10036      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10037
10038      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10039  (eval $ac_compile) 2>&5
10040  ac_status=$?
10041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042  (exit $ac_status); } 2>conftest.err; then
10043        soname=conftest
10044        lib=conftest
10045        libobjs=conftest.$ac_objext
10046        deplibs=
10047        wl=$lt_prog_compiler_wl
10048        pic_flag=$lt_prog_compiler_pic
10049        compiler_flags=-v
10050        linker_flags=-v
10051        verstring=
10052        output_objdir=.
10053        libname=conftest
10054        lt_save_allow_undefined_flag=$allow_undefined_flag
10055        allow_undefined_flag=
10056        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10057  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10058  ac_status=$?
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); }
10061        then
10062          archive_cmds_need_lc=no
10063        else
10064          archive_cmds_need_lc=yes
10065        fi
10066        allow_undefined_flag=$lt_save_allow_undefined_flag
10067      else
10068        cat conftest.err 1>&5
10069      fi
10070      $rm conftest*
10071      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10072echo "${ECHO_T}$archive_cmds_need_lc" >&6
10073      ;;
10074    esac
10075  fi
10076  ;;
10077esac
10078
10079echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10080echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10081library_names_spec=
10082libname_spec='lib$name'
10083soname_spec=
10084shrext_cmds=".so"
10085postinstall_cmds=
10086postuninstall_cmds=
10087finish_cmds=
10088finish_eval=
10089shlibpath_var=
10090shlibpath_overrides_runpath=unknown
10091version_type=none
10092dynamic_linker="$host_os ld.so"
10093sys_lib_dlsearch_path_spec="/lib /usr/lib"
10094if test "$GCC" = yes; then
10095  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10096  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10097    # if the path contains ";" then we assume it to be the separator
10098    # otherwise default to the standard path separator (i.e. ":") - it is
10099    # assumed that no part of a normal pathname contains ";" but that should
10100    # okay in the real world where ";" in dirpaths is itself problematic.
10101    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10102  else
10103    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10104  fi
10105else
10106  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10107fi
10108need_lib_prefix=unknown
10109hardcode_into_libs=no
10110
10111# when you set need_version to no, make sure it does not cause -set_version
10112# flags to be left without arguments
10113need_version=unknown
10114
10115case $host_os in
10116aix3*)
10117  version_type=linux
10118  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10119  shlibpath_var=LIBPATH
10120
10121  # AIX 3 has no versioning support, so we append a major version to the name.
10122  soname_spec='${libname}${release}${shared_ext}$major'
10123  ;;
10124
10125aix4* | aix5*)
10126  version_type=linux
10127  need_lib_prefix=no
10128  need_version=no
10129  hardcode_into_libs=yes
10130  if test "$host_cpu" = ia64; then
10131    # AIX 5 supports IA64
10132    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10133    shlibpath_var=LD_LIBRARY_PATH
10134  else
10135    # With GCC up to 2.95.x, collect2 would create an import file
10136    # for dependence libraries.  The import file would start with
10137    # the line `#! .'.  This would cause the generated library to
10138    # depend on `.', always an invalid library.  This was fixed in
10139    # development snapshots of GCC prior to 3.0.
10140    case $host_os in
10141      aix4 | aix4.[01] | aix4.[01].*)
10142      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10143           echo ' yes '
10144           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10145        :
10146      else
10147        can_build_shared=no
10148      fi
10149      ;;
10150    esac
10151    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10152    # soname into executable. Probably we can add versioning support to
10153    # collect2, so additional links can be useful in future.
10154    if test "$aix_use_runtimelinking" = yes; then
10155      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10156      # instead of lib<name>.a to let people know that these are not
10157      # typical AIX shared libraries.
10158      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159    else
10160      # We preserve .a as extension for shared libraries through AIX4.2
10161      # and later when we are not doing run time linking.
10162      library_names_spec='${libname}${release}.a $libname.a'
10163      soname_spec='${libname}${release}${shared_ext}$major'
10164    fi
10165    shlibpath_var=LIBPATH
10166  fi
10167  ;;
10168
10169amigaos*)
10170  library_names_spec='$libname.ixlibrary $libname.a'
10171  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10172  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'
10173  ;;
10174
10175beos*)
10176  library_names_spec='${libname}${shared_ext}'
10177  dynamic_linker="$host_os ld.so"
10178  shlibpath_var=LIBRARY_PATH
10179  ;;
10180
10181bsdi[45]*)
10182  version_type=linux
10183  need_version=no
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185  soname_spec='${libname}${release}${shared_ext}$major'
10186  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10189  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10190  # the default ld.so.conf also contains /usr/contrib/lib and
10191  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10192  # libtool to hard-code these into programs
10193  ;;
10194
10195cygwin* | mingw* | pw32*)
10196  version_type=windows
10197  shrext_cmds=".dll"
10198  need_version=no
10199  need_lib_prefix=no
10200
10201  case $GCC,$host_os in
10202  yes,cygwin* | yes,mingw* | yes,pw32*)
10203    library_names_spec='$libname.dll.a'
10204    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10205    postinstall_cmds='base_file=`basename \${file}`~
10206      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10207      dldir=$destdir/`dirname \$dlpath`~
10208      test -d \$dldir || mkdir -p \$dldir~
10209      $install_prog $dir/$dlname \$dldir/$dlname~
10210      chmod a+x \$dldir/$dlname'
10211    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10212      dlpath=$dir/\$dldll~
10213       $rm \$dlpath'
10214    shlibpath_overrides_runpath=yes
10215
10216    case $host_os in
10217    cygwin*)
10218      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10219      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10221      ;;
10222    mingw*)
10223      # MinGW DLLs use traditional 'lib' prefix
10224      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10226      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10227        # It is most probably a Windows format PATH printed by
10228        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10229        # path with ; separators, and with drive letters. We can handle the
10230        # drive letters (cygwin fileutils understands them), so leave them,
10231        # especially as we might pass files found there to a mingw objdump,
10232        # which wouldn't understand a cygwinified path. Ahh.
10233        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10234      else
10235        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10236      fi
10237      ;;
10238    pw32*)
10239      # pw32 DLLs use 'pw' prefix rather than 'lib'
10240      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10241      ;;
10242    esac
10243    ;;
10244
10245  *)
10246    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10247    ;;
10248  esac
10249  dynamic_linker='Win32 ld.exe'
10250  # FIXME: first we should search . and the directory the executable is in
10251  shlibpath_var=PATH
10252  ;;
10253
10254darwin* | rhapsody*)
10255  dynamic_linker="$host_os dyld"
10256  version_type=darwin
10257  need_lib_prefix=no
10258  need_version=no
10259  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10260  soname_spec='${libname}${release}${major}$shared_ext'
10261  shlibpath_overrides_runpath=yes
10262  shlibpath_var=DYLD_LIBRARY_PATH
10263  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10264  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10265  if test "$GCC" = yes; then
10266    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"`
10267  else
10268    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10269  fi
10270  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10271  ;;
10272
10273dgux*)
10274  version_type=linux
10275  need_lib_prefix=no
10276  need_version=no
10277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10278  soname_spec='${libname}${release}${shared_ext}$major'
10279  shlibpath_var=LD_LIBRARY_PATH
10280  ;;
10281
10282freebsd1*)
10283  dynamic_linker=no
10284  ;;
10285
10286kfreebsd*-gnu)
10287  version_type=linux
10288  need_lib_prefix=no
10289  need_version=no
10290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10291  soname_spec='${libname}${release}${shared_ext}$major'
10292  shlibpath_var=LD_LIBRARY_PATH
10293  shlibpath_overrides_runpath=no
10294  hardcode_into_libs=yes
10295  dynamic_linker='GNU ld.so'
10296  ;;
10297
10298freebsd* | dragonfly*)
10299  # DragonFly does not have aout.  When/if they implement a new
10300  # versioning mechanism, adjust this.
10301  if test -x /usr/bin/objformat; then
10302    objformat=`/usr/bin/objformat`
10303  else
10304    case $host_os in
10305    freebsd[123]*) objformat=aout ;;
10306    *) objformat=elf ;;
10307    esac
10308  fi
10309  version_type=freebsd-$objformat
10310  case $version_type in
10311    freebsd-elf*)
10312      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10313      need_version=no
10314      need_lib_prefix=no
10315      ;;
10316    freebsd-*)
10317      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10318      need_version=yes
10319      ;;
10320  esac
10321  shlibpath_var=LD_LIBRARY_PATH
10322  case $host_os in
10323  freebsd2*)
10324    shlibpath_overrides_runpath=yes
10325    ;;
10326  freebsd3.[01]* | freebsdelf3.[01]*)
10327    shlibpath_overrides_runpath=yes
10328    hardcode_into_libs=yes
10329    ;;
10330  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10331  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10332    shlibpath_overrides_runpath=no
10333    hardcode_into_libs=yes
10334    ;;
10335  freebsd*) # from 4.6 on
10336    shlibpath_overrides_runpath=yes
10337    hardcode_into_libs=yes
10338    ;;
10339  esac
10340  ;;
10341
10342gnu*)
10343  version_type=linux
10344  need_lib_prefix=no
10345  need_version=no
10346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10347  soname_spec='${libname}${release}${shared_ext}$major'
10348  shlibpath_var=LD_LIBRARY_PATH
10349  hardcode_into_libs=yes
10350  ;;
10351
10352hpux9* | hpux10* | hpux11*)
10353  # Give a soname corresponding to the major version so that dld.sl refuses to
10354  # link against other versions.
10355  version_type=sunos
10356  need_lib_prefix=no
10357  need_version=no
10358  case $host_cpu in
10359  ia64*)
10360    shrext_cmds='.so'
10361    hardcode_into_libs=yes
10362    dynamic_linker="$host_os dld.so"
10363    shlibpath_var=LD_LIBRARY_PATH
10364    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366    soname_spec='${libname}${release}${shared_ext}$major'
10367    if test "X$HPUX_IA64_MODE" = X32; then
10368      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10369    else
10370      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10371    fi
10372    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10373    ;;
10374   hppa*64*)
10375     shrext_cmds='.sl'
10376     hardcode_into_libs=yes
10377     dynamic_linker="$host_os dld.sl"
10378     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10379     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381     soname_spec='${libname}${release}${shared_ext}$major'
10382     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10383     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10384     ;;
10385   *)
10386    shrext_cmds='.sl'
10387    dynamic_linker="$host_os dld.sl"
10388    shlibpath_var=SHLIB_PATH
10389    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10390    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391    soname_spec='${libname}${release}${shared_ext}$major'
10392    ;;
10393  esac
10394  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10395  postinstall_cmds='chmod 555 $lib'
10396  ;;
10397
10398interix3*)
10399  version_type=linux
10400  need_lib_prefix=no
10401  need_version=no
10402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10403  soname_spec='${libname}${release}${shared_ext}$major'
10404  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10405  shlibpath_var=LD_LIBRARY_PATH
10406  shlibpath_overrides_runpath=no
10407  hardcode_into_libs=yes
10408  ;;
10409
10410irix5* | irix6* | nonstopux*)
10411  case $host_os in
10412    nonstopux*) version_type=nonstopux ;;
10413    *)
10414        if test "$lt_cv_prog_gnu_ld" = yes; then
10415                version_type=linux
10416        else
10417                version_type=irix
10418        fi ;;
10419  esac
10420  need_lib_prefix=no
10421  need_version=no
10422  soname_spec='${libname}${release}${shared_ext}$major'
10423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10424  case $host_os in
10425  irix5* | nonstopux*)
10426    libsuff= shlibsuff=
10427    ;;
10428  *)
10429    case $LD in # libtool.m4 will add one of these switches to LD
10430    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10431      libsuff= shlibsuff= libmagic=32-bit;;
10432    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10433      libsuff=32 shlibsuff=N32 libmagic=N32;;
10434    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10435      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10436    *) libsuff= shlibsuff= libmagic=never-match;;
10437    esac
10438    ;;
10439  esac
10440  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10441  shlibpath_overrides_runpath=no
10442  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10443  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10444  hardcode_into_libs=yes
10445  ;;
10446
10447# No shared lib support for Linux oldld, aout, or coff.
10448linux*oldld* | linux*aout* | linux*coff*)
10449  dynamic_linker=no
10450  ;;
10451
10452# This must be Linux ELF.
10453linux*)
10454  version_type=linux
10455  need_lib_prefix=no
10456  need_version=no
10457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458  soname_spec='${libname}${release}${shared_ext}$major'
10459  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10460  shlibpath_var=LD_LIBRARY_PATH
10461  shlibpath_overrides_runpath=no
10462  # This implies no fast_install, which is unacceptable.
10463  # Some rework will be needed to allow for fast_install
10464  # before this can be enabled.
10465  hardcode_into_libs=yes
10466
10467  # Append ld.so.conf contents to the search path
10468  if test -f /etc/ld.so.conf; then
10469    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' ' '`
10470    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10471  fi
10472
10473  # We used to test for /lib/ld.so.1 and disable shared libraries on
10474  # powerpc, because MkLinux only supported shared libraries with the
10475  # GNU dynamic linker.  Since this was broken with cross compilers,
10476  # most powerpc-linux boxes support dynamic linking these days and
10477  # people can always --disable-shared, the test was removed, and we
10478  # assume the GNU/Linux dynamic linker is in use.
10479  dynamic_linker='GNU/Linux ld.so'
10480  ;;
10481
10482knetbsd*-gnu)
10483  version_type=linux
10484  need_lib_prefix=no
10485  need_version=no
10486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10487  soname_spec='${libname}${release}${shared_ext}$major'
10488  shlibpath_var=LD_LIBRARY_PATH
10489  shlibpath_overrides_runpath=no
10490  hardcode_into_libs=yes
10491  dynamic_linker='GNU ld.so'
10492  ;;
10493
10494netbsd*)
10495  version_type=sunos
10496  need_lib_prefix=no
10497  need_version=no
10498  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10500    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10501    dynamic_linker='NetBSD (a.out) ld.so'
10502  else
10503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10504    soname_spec='${libname}${release}${shared_ext}$major'
10505    dynamic_linker='NetBSD ld.elf_so'
10506  fi
10507  shlibpath_var=LD_LIBRARY_PATH
10508  shlibpath_overrides_runpath=yes
10509  hardcode_into_libs=yes
10510  ;;
10511
10512newsos6)
10513  version_type=linux
10514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515  shlibpath_var=LD_LIBRARY_PATH
10516  shlibpath_overrides_runpath=yes
10517  ;;
10518
10519nto-qnx*)
10520  version_type=linux
10521  need_lib_prefix=no
10522  need_version=no
10523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524  soname_spec='${libname}${release}${shared_ext}$major'
10525  shlibpath_var=LD_LIBRARY_PATH
10526  shlibpath_overrides_runpath=yes
10527  ;;
10528
10529openbsd*)
10530  version_type=sunos
10531  sys_lib_dlsearch_path_spec="/usr/lib"
10532  need_lib_prefix=no
10533  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10534  case $host_os in
10535    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10536    *)                         need_version=no  ;;
10537  esac
10538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10539  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10540  shlibpath_var=LD_LIBRARY_PATH
10541  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10542    case $host_os in
10543      openbsd2.[89] | openbsd2.[89].*)
10544        shlibpath_overrides_runpath=no
10545        ;;
10546      *)
10547        shlibpath_overrides_runpath=yes
10548        ;;
10549      esac
10550  else
10551    shlibpath_overrides_runpath=yes
10552  fi
10553  ;;
10554
10555os2*)
10556  libname_spec='$name'
10557  shrext_cmds=".dll"
10558  need_lib_prefix=no
10559  library_names_spec='$libname${shared_ext} $libname.a'
10560  dynamic_linker='OS/2 ld.exe'
10561  shlibpath_var=LIBPATH
10562  ;;
10563
10564osf3* | osf4* | osf5*)
10565  version_type=osf
10566  need_lib_prefix=no
10567  need_version=no
10568  soname_spec='${libname}${release}${shared_ext}$major'
10569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570  shlibpath_var=LD_LIBRARY_PATH
10571  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10572  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10573  ;;
10574
10575solaris*)
10576  version_type=linux
10577  need_lib_prefix=no
10578  need_version=no
10579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580  soname_spec='${libname}${release}${shared_ext}$major'
10581  shlibpath_var=LD_LIBRARY_PATH
10582  shlibpath_overrides_runpath=yes
10583  hardcode_into_libs=yes
10584  # ldd complains unless libraries are executable
10585  postinstall_cmds='chmod +x $lib'
10586  ;;
10587
10588sunos4*)
10589  version_type=sunos
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10591  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10592  shlibpath_var=LD_LIBRARY_PATH
10593  shlibpath_overrides_runpath=yes
10594  if test "$with_gnu_ld" = yes; then
10595    need_lib_prefix=no
10596  fi
10597  need_version=yes
10598  ;;
10599
10600sysv4 | sysv4.3*)
10601  version_type=linux
10602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603  soname_spec='${libname}${release}${shared_ext}$major'
10604  shlibpath_var=LD_LIBRARY_PATH
10605  case $host_vendor in
10606    sni)
10607      shlibpath_overrides_runpath=no
10608      need_lib_prefix=no
10609      export_dynamic_flag_spec='${wl}-Blargedynsym'
10610      runpath_var=LD_RUN_PATH
10611      ;;
10612    siemens)
10613      need_lib_prefix=no
10614      ;;
10615    motorola)
10616      need_lib_prefix=no
10617      need_version=no
10618      shlibpath_overrides_runpath=no
10619      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10620      ;;
10621  esac
10622  ;;
10623
10624sysv4*MP*)
10625  if test -d /usr/nec ;then
10626    version_type=linux
10627    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10628    soname_spec='$libname${shared_ext}.$major'
10629    shlibpath_var=LD_LIBRARY_PATH
10630  fi
10631  ;;
10632
10633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10634  version_type=freebsd-elf
10635  need_lib_prefix=no
10636  need_version=no
10637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638  soname_spec='${libname}${release}${shared_ext}$major'
10639  shlibpath_var=LD_LIBRARY_PATH
10640  hardcode_into_libs=yes
10641  if test "$with_gnu_ld" = yes; then
10642    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10643    shlibpath_overrides_runpath=no
10644  else
10645    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10646    shlibpath_overrides_runpath=yes
10647    case $host_os in
10648      sco3.2v5*)
10649        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10650        ;;
10651    esac
10652  fi
10653  sys_lib_dlsearch_path_spec='/usr/lib'
10654  ;;
10655
10656uts4*)
10657  version_type=linux
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659  soname_spec='${libname}${release}${shared_ext}$major'
10660  shlibpath_var=LD_LIBRARY_PATH
10661  ;;
10662
10663*)
10664  dynamic_linker=no
10665  ;;
10666esac
10667echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10668echo "${ECHO_T}$dynamic_linker" >&6
10669test "$dynamic_linker" = no && can_build_shared=no
10670
10671variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10672if test "$GCC" = yes; then
10673  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10674fi
10675
10676echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10677echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10678hardcode_action=
10679if test -n "$hardcode_libdir_flag_spec" || \
10680   test -n "$runpath_var" || \
10681   test "X$hardcode_automatic" = "Xyes" ; then
10682
10683  # We can hardcode non-existant directories.
10684  if test "$hardcode_direct" != no &&
10685     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10686     # have to relink, otherwise we might link with an installed library
10687     # when we should be linking with a yet-to-be-installed one
10688     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10689     test "$hardcode_minus_L" != no; then
10690    # Linking always hardcodes the temporary library directory.
10691    hardcode_action=relink
10692  else
10693    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10694    hardcode_action=immediate
10695  fi
10696else
10697  # We cannot hardcode anything, or else we can only hardcode existing
10698  # directories.
10699  hardcode_action=unsupported
10700fi
10701echo "$as_me:$LINENO: result: $hardcode_action" >&5
10702echo "${ECHO_T}$hardcode_action" >&6
10703
10704if test "$hardcode_action" = relink; then
10705  # Fast installation is not supported
10706  enable_fast_install=no
10707elif test "$shlibpath_overrides_runpath" = yes ||
10708     test "$enable_shared" = no; then
10709  # Fast installation is not necessary
10710  enable_fast_install=needless
10711fi
10712
10713striplib=
10714old_striplib=
10715echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10716echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10717if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10718  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10719  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10720  echo "$as_me:$LINENO: result: yes" >&5
10721echo "${ECHO_T}yes" >&6
10722else