source: ThirdParty/SCIP/trunk/configure @ 2690

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

allow for several LP solvers in one SCIP library - yeah :-)

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